OSDN Git Service

2009-12-01 Grigori Fursin <grigori.fursin@inria.fr>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
2             Joern Rennecke  <amylaar@spamcop.net>
3
4         * cgraphunit.c (plugin.h): Include.
5         (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
6         PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
7         * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
8         (enum plugin_event): Define by including plugin.def.
9         Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
10         (plugin_event_name): Change type to const char **.
11         (get_event_last, get_named_event_id, unregister_callback): Declare.
12         (register_callback): Change type of event argument to int.
13         (highlev-plugin-common.h): New file.
14         * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
15         $(HASHTAB_H)
16         (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
17         (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
18         (s-header-vars): New rule.
19         (install-plugin): Depend on s-header-vars.  Install b-header-vars.
20         * params.c (get_num_compiler_params): New function.
21         * params.h (get_num_compiler_params): Declare.
22         * passes.c (plugin.h): Include.
23         (make_pass_instance): Invoke PLUGIN_NEW_PASS.
24         (do_per_function_toporder, pass_init_dump_file): No longer static.
25         (pass_fini_dump_file): Likewise.
26         (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
27         PLUGIN_PASS_EXECUTION.
28         (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
29         PLUGIN_EARLY_GIMPLE_PASSES_END.
30         * plugin.c (plugin_event_name_init): New array, defined by
31         including plugin.def.
32         (FMT_FOR_PLUGIN_EVENT): Update.
33         (plugin_event_name): Change type to const char ** and initialize
34         to plugin_event_name_init.
35         (event_tab, event_last, event_horizon): New variable.
36         (get_event_last): New function.
37         (plugin_callbacks_init): New array.
38         (plugin_callbacks: Change type to struct callback_info **.
39         Initialize to plugin_callbacks_init.
40         (htab_event_eq, get_named_event_id, unregister_callback): New function.
41         (invoke_plugin_va_callbacks): Likewise.
42         (register_callback): Change type of event argument to int.
43         Handle new events.  Allow dynamic events.
44         (invoke_plugin_callbacks): Likewise.  Return success status.
45         (plugins_active_p): Allow dynamic callbacks.
46         * plugin.def: New file.
47         * plugin.h (invoke_plugin_callbacks): Update prototype.
48         (invoke_plugin_va_callbacks): Declare.
49         * tree-optimize.c (plugin.h): Include.
50         (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
51         PLUGIN_ALL_PASSES_END.
52         * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
53         (pass_fini_dump_file, do_per_function_toporder): Likewise.
54         * doc/plugin.texi: Document new event types.
55
56 2009-12-01  Martin Jambor  <mjambor@suse.cz>
57
58         PR tree-optimization/42237
59         * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
60         in between references into two.
61
62 2009-12-01  Richard Guenther  <rguenther@suse.de>
63
64         * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
65         to the block of the call when remapping a type.
66
67 2009-12-01  Martin Jambor  <mjambor@suse.cz>
68
69         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
70         unsigned short int.
71         * ipa-prop.h (struct ipa_param_call_note): Likewise.
72         * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
73
74 2009-12-01  Richard Guenther  <rguenther@suse.de>
75
76         * final.c (rest_of_clean_state): If -fcompare-debug is
77         given dump final insns without UIDs.
78         * tree-ssa-live.c (remove_unused_scope_block_p): Remove
79         after_inlining checks.
80
81 2009-11-30  Chao-ying Fu  <fu@mips.com>
82
83         * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
84
85 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
86
87         * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
88         status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
89         * configure: Regenerate.
90         * config.in: Regenerate.
91
92         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
93         options for Cygwin DLL libstdc++ support wrappers.
94         (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
95         according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
96         (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
97         whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
98         (LINK_SPEC): Include CXX_WRAP_SPEC.
99         * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
100         (i386_find_on_wrapper_list): Check if a function is found on the list
101         of libstdc++ wrapper options.
102         (i386_pe_file_end): If we are importing a wrapped function, also emit
103         an external declaration for the real version.
104         * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
105         Cygwin targets. Update copyright year.
106
107 2009-11-30  Steve Ellcey  <sje@cup.hp.com>
108             Jakub Jelinek <jakub@redhat.com>
109
110         * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
111         before forcing mode.
112
113 2009-11-30  Anatoly Sokolov  <aesok@post.ru>
114
115         * config/sh/sh.c (sh_promote_prototypes): Make static.
116         (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
117         functions.
118         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
119         * config/sh/sh.h: (FUNCTION_VALUE_REGNO_P): Redefine, use
120         sh_function_value_regno_p.
121         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
122         * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
123         (sh_promote_prototypes) : Remove.
124
125 2009-11-30  Julian Brown  <julian@codesourcery.com>
126
127         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
128         reloads to LO_REGS.
129
130 2009-11-30  Richard Henderson  <rth@redhat.com>
131
132         * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
133         (bdesc_special_args): Update insn codes.
134         (avx_vpermilp_parallel): Correct range check.
135         (ix86_rtx_costs): Handle vector permutation rtx codes.
136         (struct expand_vec_perm_d): Move earlier.
137         (get_mode_wider_vector): New.
138         (expand_vec_perm_broadcast_1): New.
139         (ix86_expand_vector_init_duplicate): Use it.  Tidy AVX modes.
140         (expand_vec_perm_broadcast): New.
141         (ix86_expand_vec_perm_builtin_1): Use it.
142         * config/i386/i386-protos.h: Update.
143         * config/i386/predicates.md (avx_vbroadcast_operand): New.
144         * config/i386/sse.md (AVX256MODE24P): New.
145         (ssescalarmodesuffix2s): New.
146         (avxhalfvecmode, avxscalarmode): Fill out to all modes.
147         (avxmodesuffixf2c): Add V8SI, V4DI.
148         (vec_dupv4sf): New expander.
149         (*vec_dupv4sf_avx): Add vbroadcastss alternative.
150         (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
151         V4SF and V4SI.  Move C alternatives to front.  Add insertps and
152         pinsrd alternatives.
153         (*vec_set<mode>_0_sse2): Split out from ...
154         (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
155         (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
156         destination; use ix86_vec_interleave_v2df_operator_ok, instead of
157         ix86_fixup_binary_operands.
158         (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
159         (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
160         (*avx_movddup, *sse3_movddup): Remove.  New splitter from
161         vec_select form to vec_duplicate form.
162         (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
163         ix86_vec_interleave_v2df_operator_ok.
164         (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ... 
165         (*avx_unpcklpd256): ... here.
166         (*vec_dupv4si_avx): New.
167         (*vec_dupv2di_avx): Add movddup alternative.
168         (*vec_dupv2di_sse3): New.
169         (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
170         avx_vbroadcastss256; represent with vec_duplicate instead of 
171         nested vec_concat operations.
172         (avx_vbroadcastf128_<mode>): Rename from
173         avx_vbroadcastf128_p<avxmodesuffixf2c>256.
174         (*avx_vperm_broadcast_v4sf): New.
175         (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
176
177 2009-11-30  Martin Jambor  <mjambor@suse.cz>
178
179         PR middle-end/42196
180         * tree-sra.c (struct access): New field grp_different_types.
181         (dump_access): Dump grp_different_types.
182         (compare_access_positions): Prefer scalars and vectors over other
183         scalar types.
184         (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
185         (sra_modify_expr): Use the original also when dealing with a complex
186          or vector group accessed as multiple types.
187
188 2009-11-30  Richard Henderson  <rth@redhat.com>
189
190         * config/i386/i386.c (avx_vperm2f128_parallel): New.
191         * config/i386/i386-protos.h: Declare it.
192         * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
193         avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
194         * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
195         (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
196         (*avx_vperm2f128<mode>_nozero): New.
197
198 2009-11-30  Richard Henderson  <rth@redhat.com>
199
200         * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
201         (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
202         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
203         V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
204         (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
205         (bdesc_args): Add them.
206         (ix86_expand_builtin): Expand them.
207         (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
208
209 2009-11-30  Martin Jambor  <mjambor@suse.cz>
210
211         PR middle-end/42206
212         * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
213
214 2009-11-30  Jakub Jelinek  <jakub@redhat.com>
215
216         * ipa-reference.c (propagate): Only dump bitmaps if computed.
217
218 2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>
219
220         PR middle-end/39806
221         * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
222         (new_var_hash): Likewise.
223         (is_in_new_vars_htab): Likewise.
224         (add_to_new_vars_htab): Likewise.
225
226 2009-11-30  Ira Rosen  <irar@il.ibm.com>
227
228         * tree-vect-stmts.c (vectorizable_assignment): Support
229         multiple types.
230
231 2009-11-30  Richard Guenther  <rguenther@suse.de>
232
233         * doc/contrib.texi (Contributors): Add myself.
234
235 2009-11-30  Richard Guenther  <rguenther@suse.de>
236
237         * tree.c (free_lang_data): Do not set debug_info_level to
238         none if terse.
239
240 2009-11-30  Richard Guenther  <rguenther@suse.de>
241
242         PR middle-end/42119
243         PR fortran/38530
244         * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
245         of CONST_DECLs.
246
247 2009-11-30  Richard Guenther  <rguenther@suse.de>
248
249         * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
250         variable UID order.
251
252 2009-11-30  Richard Guenther  <rguenther@suse.de>
253
254         * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
255         * tree-pass.h (TDF_NOUID): Likewise.
256         * print-rtl.c: Include tree-pass.h.
257         (print_mem_expr): Pass dump_flags.
258         (print_rtx): Likewise.
259         * print-tree.c: Include tree-pass.h.
260         (print_node_brief): Handle TDF_NOUID.
261         (print_node): Likewise.
262         * tree-pretty-print.c (dump_decl_name): Likewise.
263         (dump_generic_node): Likewise.
264         * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
265         dependency.
266
267 2009-11-30  Nick Clifton  <nickc@redhat.com>
268
269         * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
270         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
271         stormy16-lib2-count-leading-zeros.c.
272         * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
273         __stormy16_count_leading_zeros() into this function.
274         (__ctzhi2): Use __builtin_clz.
275         (__ffshi2): Likewise.
276
277 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
278
279         * config/sparc/sparc.c (DF_MODES): Simplify.
280         (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
281         (TF_MODES, OF_MODES): Adjust for above change.
282         (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
283         *  config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
284
285 2009-11-30  Paolo Bonzini  <bonzini@gnu.org>
286
287         PR rtl-optimization/41812
288         * fwprop.c (local_md, local_lr): New globals.
289         (process_defs, process_uses): Remove local_md argument.  Never
290         consider dead pseudos to have singleton def-use chains.
291         (single_def_use_enter_block): Perform LR simulation.
292         (build_single_def_use_links): Remove local_md local variable.
293         Add DF_NOTE.  Allocate local_lr.
294         (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
295         * df-problems.c (df_md_scratch): New.
296         (df_md_alloc, df_md_free): Allocate/free it.
297         (df_md_local_compute): Only include live registers in init.
298         (df_md_transfer_function): Prune the in-set computed by
299         the confluence function, and the gen-set too.
300
301 2009-11-30  Hans-Peter Nilsson  <hp@axis.com>
302
303         PR rtl-optimization/40086
304         * reorg.c (relax_delay_slots): When looking for redundant insn at
305         the branch target, use next_real_insn, not next_active_insn.
306
307 2009-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
308
309         * doc/install.texi: Update minimum MPC version to 0.8.
310
311 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
312
313         * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
314         HONOR_SIGNED_ZEROS final condition.
315         (fnmsubsf4_powerpc_1): Same.
316         (fnmadddf4_fpr_1): Same.
317         (fnmsubdf4_fpr_1): Same.
318
319 2009-11-29  Ira Rosen  <irar@il.ibm.com>
320
321         PR tree-optimization/42193
322         * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
323         to 1 in case of basic block SLP.
324         (vectorizable_load): Likewise.
325
326 2009-11-28  Jan Hubicka  <jh@suse.cz>
327
328         * cgraph.c (same_body_alias_1): Break out of
329         (same_body_alias): ... here; remove comdat check; it is handled
330         in cp already.
331         (cgraph_add_thunk): New.
332         (dump_cgraph_node): Dump aliases and thunks.
333         * cgraph.h (cgraph_thunk_info): New structure.
334         (struct cgraph_node): Add thunk info.
335         (cgraph_add_thunk): New.
336         * cgraphunit.c (cgraph_emit_thunks): Remove.
337         (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
338         (assemble_thunk): New function.
339         (cgraph_expand_function): Handle thunks.
340         (thunk_adjust): New.
341         (init_lowered_empty_function): New.
342         * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
343         * lto-cgraph.c (lto_output_node): Stream thunk info.
344         (input_node): Likewise.
345         * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
346         * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
347         (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
348         * i386.c (x86_output_mi_thunk): Make output prettier.
349
350 2009-11-28  Richard Guenther  <rguenther@suse.de>
351
352         PR tree-optimization/42183
353         * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
354         address taken.  Merge the addressable state of the NRV
355         variable and the result instead of copying it.
356
357 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
358
359         * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
360         malloc_fname variable.
361         (check_allocation_function): Remove unused gsi and bb_level_0
362         variables.
363         (transform_access_sites): Remove unused d_type_size and d_type_size_k
364         variables.
365         * omega.c (resurrect_subs): Remove unused n variable.
366         (omega_solve_geq): Remove unused neweqns variable.
367         * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
368         * tree-inline.c (declare_return_variable): Remove USE_P argument,
369         return use instead of var.
370         (remap_decl, remap_block): Remove unused fn variable.
371         (expand_call_inline): Remove unused retvar variable, adjust
372         declare_return_variable caller.
373         (optimize_inline_calls): Remove unused prev_fn variable.
374         * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
375         variable.
376         (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
377         variables.
378         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
379         properly.
380         * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
381         variable.
382         (vect_create_epilog_for_reduction): Remove unused bytesize variable.
383         * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
384         parameter.  Remove unused par_stmt variable.
385         (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
386         (expand_omp_sections): Remove unused l1 variable.
387         (lower_omp_for): Remove unused ilist variable.
388         * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
389         Remove unused has_upstream_mem_write_p variable.
390         * recog.c (decode_asm_operands): Remove unused noperands variable.
391         * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
392         size2 variable.
393         * libgcov.c (__gcov_merge_delta): Remove unused last variable.
394         * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
395         base_nm variable.
396         (gen_conditions_for_pow): Remove unused ec variable.
397         * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
398         variable.
399         * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
400         fndecl variable.
401         * tree-ssa-sink.c (statement_sink_location): Remove unused code
402         variable.
403         * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
404         variables.
405         * tree-complex.c (create_one_component_var): Remove unused inner_type
406         variable.
407         * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
408         unnecessarily when GEN_*CALL omits that argument.
409         * regrename.c (regrename_optimize): Remove unused regs_seen variable.
410         (build_def_use): Remove unused icode variable.
411         * ipa-pure-const.c (check_call): Remove unused callee and avail
412         variables.
413         * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
414         * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
415         variable.
416         (vect_pattern_recog): Remove unused stmt variable.
417         * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
418         new_regions variable.
419         * postreload.c (reload_cse_simplify_operands): Remove unused mode
420         variable.
421         * tree-parloops.c (create_call_for_reduction_1): Remove unused
422         addr_type variable.
423         (create_parallel_loop): Remove unused res variable.
424         (gen_parallel_loop): Remove unused nloop variable.
425         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
426         * value-prof.c (gimple_mod_subtract_transform,
427         gimple_stringops_transform): Remove unused value variable.
428         (gimple_stringops_values_to_profile): Remove unused fcode variable.
429         * tree-vrp.c (register_new_assert_for): Remove unused found variable.
430         (vrp_visit_switch_stmt): Remove unused n variable.
431         * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
432         variable.
433         (vectorizable_operation): Remove unused shift_p variable.
434         (vectorizable_store): Remove unused first_stmt_vinfo variable.
435         * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
436         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
437         variable.
438         (vect_permute_store_chain): Remove unused scalar_dest variable.
439         (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
440         variable.
441         * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
442         local_info variable.
443         * tree-optimize.c (tree_rest_of_compilation): Remove unused node
444         variable.
445         * optabs.c (expand_binop): Remove unused equiv_value variable.
446         (emit_libcall_block): Remove unused prev variable.
447         (init_optabs): Remove unused int_mode variable.
448         * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
449         variable.
450         (do_structure_copy): Remove unused lhsbase and rhsbase variables.
451         (find_func_aliases): Remove unused rhstype variable.
452         (ipa_pta_execute): Remove unused varid variable.
453
454 2009-11-28  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
455
456         * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add. 
457
458 2009-11-28  David Binderman  <dcb314@hotmail.com>
459
460         * ira-color.c (put_allocno_into_bucket): Remove set but not used
461         local variable hard_regs_num.
462         * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
463         * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
464         * lower-subreg.c (decompose_multiword_subregs): Remove next.
465
466 2009-11-27  Martin Jambor  <mjambor@suse.cz>
467
468         PR middle-end/42006
469         * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
470         instead of create_tmp_var.  Set DECL_GIMPLE_REG_P to one manually
471         for vector and complex types.
472         (get_adjustment_for_base): Describe return value in the comment.
473
474 2009-11-27  Nick Clifton  <nickc@redhat.com>
475
476         * longlong.h (count_leading_zeros): Define macro for stormy16
477         target.
478         (COUNT_LEADING_ZEROS_0): Likewise.      
479         * config/stormy16/stormy16-lib2.c: Arrange for separate
480         compilation of each function.
481         (__ffshi2): New function.
482         (__stormy16_count_leading_zeros): New function.
483         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
484         compile each function into its own object file.
485         (stormy16-lib2-ashlsi3.c): New stub file.
486         (stormy16-lib2-ashrsi3.c): New stub file.
487         (stormy16-lib2-clzhi2.c): New stub file.
488         (stormy16-lib2-count-leading-zeros.c): New stub file.
489         (stormy16-lib2-ctzhi2.c): New stub file.
490         (stormy16-lib2-divsi3.c): New stub file.
491         (stormy16-lib2-ffshi2.c): New stub file.
492         (stormy16-lib2-lshrsi3.c): New stub file.
493         (stormy16-lib2-modsi3.c): New stub file.
494         (stormy16-lib2-parityhi2.c): New stub file.
495         (stormy16-lib2-popcounthi2.c): New stub file.
496         (stormy16-lib2-udivmodsi4.c): New stub file.
497         (stormy16-lib2-udivsi3.c): New stub file.
498         (stormy16-lib2-umodsi3.c): New stub file.
499
500 2009-11-27  Richard Henderson  <rth@redhat.com>
501
502         * config/i386/sse.md (vec_interleave_highv16qi,
503         vec_interleave_lowv16qi, vec_interleave_highv8hi,
504         vec_interleave_lowv8hi, vec_interleave_highv4si,
505         vec_interleave_lowv4si, vec_interleave_highv2di,
506         vec_interleave_lowv2di, vec_interleave_highv4sf,
507         vec_interleave_lowv4sf, vec_interleave_highv2df,
508         vec_interleave_lowv2df): Remove expanders.
509         (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
510         sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
511         sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
512         Rename to their proper vec_interleave equivalent.  Update all users
513         to the new name.
514         * config/i386/i386.c, config/i386/i386.md: Update all users.
515
516 2009-11-27  Michael Matz  <matz@suse.de>
517
518         PR rtl-optimization/42084
519         * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
520         use it to stop walking.
521         (expand_gimple_cond): Adjust call to above.
522
523 2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
524
525         PR target/41810
526         * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
527         [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
528         __extension__ to allow cast from function pointer to object
529         pointer in C++.
530         * doc/install.texi (--enable-threads): Clarify use of Solaris
531         threads.
532
533 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
534
535         * config/ia64/itanium1.md: Remove.
536         * config/ia64/ia64.md: Do not include it.
537         * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
538         "itanium1", and "merced" from the processor alias table.
539         (clocks, add_cycles): Remove global variables.
540         (ia64_sched_reorder2): Don't set/use them.
541         (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
542         (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
543
544 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
545
546         * config/s390/s390.c (last_scheduled_insn): New variable.
547         (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
548         functions.
549         (s390_sched_reorder, s390_sched_variable_issue): New functions.
550         (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
551         defined.
552
553 2009-11-27  Michael Matz  <matz@suse.de>
554
555         PR c++/41906
556         * tree-eh.c (lower_catch): Stop after expanding a catch-all.
557
558 2009-11-27  Richard Guenther  <rguenther@suse.de>
559
560         * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
561         TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
562         * loop-init.c (pass_rtl_move_loop_invariants): Use
563         TV_LOOP_MOVE_INVARIANTS.
564         (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
565         (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
566         (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
567
568 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
569
570         * emit-rtl.c (next_active_insn, prev_active_insn): Correct
571         comment.
572
573 2009-11-27  Jakub Jelinek  <jakub@redhat.com>
574
575         * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
576         unused insn variable.
577         * genemit.c (output_peephole2_scratches): Only declare and initialize
578         _regs_allocated if it will be ever used.
579         * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
580         succ_bb variable.
581         (create_empty_loop_on_edge): Remove unused freq and cnt variables.
582         * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
583         variable.
584
585         * opts.c (decode_options): If optimize is bigger than 255,
586         set it to 255.
587
588 2009-11-26  Richard Henderson  <rth@redhat.com>
589
590         * config/i386/sse.md (mulv16qi3): Change back from an expander
591         to an insn-and-split.
592         (mulv4si): Mention AVX not XOP for AVX exception.
593         (*sse2_mulv4si3): Likewise.
594         (mulv2di3): Use vmulld not vpmacsdd for XOP expansion.  Tidy.
595
596 2009-11-26  Bernd Schmidt  <bernd.schmidt@analog.com>
597
598         * cfgexpand (n_stack_vars_conflict): New static variable.
599         (triangular_index): Reduce likelyhood of overflow by performing
600         the division before the multiplication.
601         (resize_stack_vars_conflict): Call fatal_error if overflow
602         occurred in triangular_index.  Update n_stack_vars_conflict.
603
604         PR rtl-opt/38582
605         * regrename.c (struct du_chain): Remove member earlyclobber.
606         (scan_rtx_reg): Don't set it.  Remove argument earlyclobber,
607         all callers changed.
608         (scan_rtx): Remove argument earlyclobber, all callers changed.
609         (hide_operands, restore_operands, record_out_operands): New functions,
610         broken out of build_def_use.
611         (build_def_use): Call them as necessary.
612
613         * regrename.c (struct du_head): New members id, conflicts,
614         hard_conflicts and cannot_rename.
615         (enum scan_actions): Remove terminate_all_read and
616         terminate_overlapping_read; add mark_all_read.
617         (scan_actions_name): Likewise.
618         (du_head_p): New typedef.  Define a vector type for it.
619         (id_to_chain): New static variable.
620         (note_sets, clear_dead_regs): Delete functions.
621         (free_chain_data): New function.
622         (merge_overlapping_regs): Simply walk the conflicts bitmap.
623         Remove argument B, all callers changed.
624         (regrename_optimize): Allocate id_to_chain.  Ignore chains that have
625         the cannot_rename bit set.  Update regno and nregs of a renamed chain.
626         Call free_chain_data when done.
627         (do_replace): Remove death notes when the renamed reg is set in the
628         last insn; add them if not.
629         (mark_conflict, note_sets_clobbers): New static function.
630         (fail_current_block, current_id, open_chains_set, live_hard_regs): New
631         static variables.
632         (scan_rtx_reg): Keep track of conflicts between chains, and between
633         chains and hard regs.  Don't terminate chains when we find a read we
634         can't handle, mark it unrenameable instead.  For terminate_write,
635         terminate chains that are written with an exact match or a superset
636         of registers.  Set fail_current_block if multi-word lifetimes are too
637         complex to handle.
638         (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
639         (build_def_use): Initialize current_id, live_chains and live_hard_regs;
640         free memory for them when done.
641         Rearrange the steps so that earlyclobbers are noted before reads
642         are processed.  Add new steps to keep track of hard register lifetimes
643         outside insn operands.
644
645 2009-11-26  Richard Guenther  <rguenther@suse.de>
646
647         * tree-ssa-dce.c (nr_walks): New variable.
648         (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
649         (perform_tree_ssa_dce): Init nr_walks.
650
651 2009-11-26  Michael Matz  <matz@suse.de>
652
653         PR tree-optimization/41905
654         * tree-eh.c (lower_eh_constructs_2): Don't add assignments
655         below statements that can't fall thru.
656
657 2009-11-26  Michael Matz  <matz@suse.de>
658
659         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
660         expand_builtin_sprintf): Remove.
661         (expand_builtin): Don't call them.
662
663 2009-11-26  Richard Guenther  <rguenther@suse.de>
664
665         * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
666
667 2009-11-26  Nick Clifton  <nickc@redhat.com>
668
669         * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
670         being used incorrectly.
671         (rx_function_ok_for_sibcall): New function.  Do not allow indirect
672         sibcalls, or sibcalls from interrupt functions.
673         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
674         * config/rx/rx.md (sibcall): Convert to a define_expand.  Check
675         for a MEM inside a MEM.
676         (sibcall_value): Likewise.
677         (sibcall_internal): New pattern containing old sibcall pattern.
678         (sibcall_value_internal): Likewise.
679
680 2009-11-25  Richard Henderson  <rth@redhat.com>
681
682         * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
683         optional 3rd argument to define the mode.
684         * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
685         (V2UDI, V4USI, V8UHI, V16UQI): New.
686         (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
687         V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
688         V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
689         * config/i386/i386-modes.def: Rearrange for double-wide AVX.
690         * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
691         * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
692         (bdesc_args): Add the builtin definitions to match.
693         (ix86_expand_builtin): Expand them.
694         (ix86_builtin_vectorization_cost): Rename from
695         x86_builtin_vectorization_cost.
696         (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
697         doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
698         expand_vec_perm_blend, expand_vec_perm_vpermil,
699         expand_vec_perm_pshufb, expand_vec_perm_1,
700         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
701         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
702         expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
703         ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
704         ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
705         ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
706         TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
707         * sse.md (SSEMODE_EO): New.
708         (vec_extract_even<mode>): Use SSEMODE_EO and
709         ix86_expand_vec_extract_even_odd.
710         (vec_extract_odd<mode>): Likewise.
711         (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
712         vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
713
714 2009-11-25  Richard Henderson  <rth@redhat.com>
715
716         * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
717         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
718         * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
719         * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
720         the vector constant here...
721         (vect_transform_slp_perm_load): ... do it here instead.  Validate
722         that the permutation vector is implementable by the target.
723
724 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
725
726         * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
727         * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
728
729         * print-rtl.c (print_rtx): When printing newline, append
730         print_rtx_head and indentation after the newline.
731
732         PR target/42165
733         * config/i386/i386.c (print_operand): For 32-byte memory use
734         YMMWORD in -masm=intel mode.  Use TBYTE instead of XWORD.
735         * config/i386/i386.md (crc32modesuffix): Expand to nothing
736         in -masm=intel mode.
737         (sse4_2_crc32di): Print just crc32 instead of crc32q in
738         -masm=intel mode.
739         * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
740         memory operand in -masm=intel mode.
741         * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
742         *sse2_pinsrw): Likewise.
743         (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
744         q suffix in -masm=intel mode.
745
746 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
747
748         PR target/10127
749         PR ada/20548
750         PR middle-end/42004
751         * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
752         (dwarf2out_stack_adjust): ...this.  Do not adjust the arg size for
753         ACCUMULATE_OUTGOING_ARGS targets.  Rename former version to...
754         (dwarf2out_notice_stack_adjust): ...this.  Adjust for above renaming.
755         (dwarf2out_frame_debug_expr): Revert previous change and adjust for
756         above renaming.
757         (dwarf2out_frame_debug): Add ??? comment.  Adjust for above renaming.
758
759 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
760
761         * config/i386/predicates.md (emms_operation): New predicate.
762         (vzeroupper_operation): Ditto.
763         (vzeroall_operation): Improve pattern recognition.
764         * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
765         (avx_vzeroupper): Change insn pattern to expander.
766         (*avx_vzeroupper): New insn pattern.  Use vzeroupper_operation
767         predicate.
768         (*avx_vzeroall): Remove operands 1 and 2.
769         * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
770         (mmx_femms): Ditto.
771         (*mmx_emms): New insn pattern.  Use emms_operation predicate.
772         (*mmx_femms): Ditto.
773         * config/i386/i386.c (enum ix86_builtins)
774         <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
775         (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
776         Remove initailization.
777         <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
778         
779 2009-11-25  Paul Brook  <paul@codesourcery.com>
780
781         * config/arm/arm.md (consttable_4): Handle (high ...).
782
783 2009-11-25  Robert Nelson  <robert.nelson@digikey.com>
784             Richard Earnshaw  <rearnsha@arm.com>
785
786         * arm.h (enum vfp_reg_type): Add VFP_NONE.
787         * arm.c (all_fpus): Use it for floating point units that aren't based
788         on the VFP architecture.
789         (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
790         enum machine_mode.
791
792 2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * alias.c: Remove trailing white spaces.
795         * alloc-pool.c: Likewise.
796         * alloc-pool.h: Likewise.
797         * attribs.c: Likewise.
798         * auto-inc-dec.c: Likewise.
799         * basic-block.h: Likewise.
800         * bb-reorder.c: Likewise.
801         * bt-load.c: Likewise.
802         * builtins.c: Likewise.
803         * builtins.def: Likewise.
804         * c-common.c: Likewise.
805         * c-common.h: Likewise.
806         * c-cppbuiltin.c: Likewise.
807         * c-decl.c: Likewise.
808         * c-format.c: Likewise.
809         * c-lex.c: Likewise.
810         * c-omp.c: Likewise.
811         * c-opts.c: Likewise.
812         * c-parser.c: Likewise.
813         * c-pretty-print.c: Likewise.
814         * c-tree.h: Likewise.
815         * c-typeck.c: Likewise.
816         * caller-save.c: Likewise.
817         * calls.c: Likewise.
818         * cfg.c: Likewise.
819         * cfganal.c: Likewise.
820         * cfgexpand.c: Likewise.
821         * cfghooks.c: Likewise.
822         * cfghooks.h: Likewise.
823         * cfglayout.c: Likewise.
824         * cfgloop.c: Likewise.
825         * cfgloop.h: Likewise.
826         * cfgloopmanip.c: Likewise.
827         * cfgrtl.c: Likewise.
828         * cgraph.c: Likewise.
829         * cgraph.h: Likewise.
830         * cgraphbuild.c: Likewise.
831         * cgraphunit.c: Likewise.
832         * cif-code.def: Likewise.
833         * collect2.c: Likewise.
834         * combine.c: Likewise.
835         * convert.c: Likewise.
836         * coverage.c: Likewise.
837         * crtstuff.c: Likewise.
838         * cse.c: Likewise.
839         * cselib.c: Likewise.
840         * dbgcnt.c: Likewise.
841         * dbgcnt.def: Likewise.
842         * dbgcnt.h: Likewise.
843         * dbxout.c: Likewise.
844         * dce.c: Likewise.
845         * ddg.c: Likewise.
846         * ddg.h: Likewise.
847         * defaults.h: Likewise.
848         * df-byte-scan.c: Likewise.
849         * df-core.c: Likewise.
850         * df-problems.c: Likewise.
851         * df-scan.c: Likewise.
852         * df.h: Likewise.
853         * dfp.c: Likewise.
854         * diagnostic.c: Likewise.
855         * diagnostic.h: Likewise.
856         * dominance.c: Likewise.
857         * domwalk.c: Likewise.
858         * double-int.c: Likewise.
859         * double-int.h: Likewise.
860         * dse.c: Likewise.
861         * dwarf2asm.c: Likewise.
862         * dwarf2asm.h: Likewise.
863         * dwarf2out.c: Likewise.
864         * ebitmap.c: Likewise.
865         * ebitmap.h: Likewise.
866         * emit-rtl.c: Likewise.
867         * et-forest.c: Likewise.
868         * except.c: Likewise.
869         * except.h: Likewise.
870         * expmed.c: Likewise.
871         * expr.c: Likewise.
872         * expr.h: Likewise.
873         * final.c: Likewise.
874         * flags.h: Likewise.
875         * fold-const.c: Likewise.
876         * function.c: Likewise.
877         * function.h: Likewise.
878         * fwprop.c: Likewise.
879         * gcc.c: Likewise.
880         * gcov-dump.c: Likewise.
881         * gcov-io.c: Likewise.
882         * gcov-io.h: Likewise.
883         * gcov.c: Likewise.
884         * gcse.c: Likewise.
885         * genattr.c: Likewise.
886         * genattrtab.c: Likewise.
887         * genautomata.c: Likewise.
888         * genchecksum.c: Likewise.
889         * genconfig.c: Likewise.
890         * genflags.c: Likewise.
891         * gengtype-parse.c: Likewise.
892         * gengtype.c: Likewise.
893         * gengtype.h: Likewise.
894         * genmddeps.c: Likewise.
895         * genmodes.c: Likewise.
896         * genopinit.c: Likewise.
897         * genpreds.c: Likewise.
898         * gensupport.c: Likewise.
899         * ggc-common.c: Likewise.
900         * ggc-page.c: Likewise.
901         * ggc-zone.c: Likewise.
902         * ggc.h: Likewise.
903         * gimple-iterator.c: Likewise.
904         * gimple-low.c: Likewise.
905         * gimple-pretty-print.c: Likewise.
906         * gimple.c: Likewise.
907         * gimple.def: Likewise.
908         * gimple.h: Likewise.
909         * gimplify.c: Likewise.
910         * graphds.c: Likewise.
911         * graphite-clast-to-gimple.c: Likewise.
912         * gthr-nks.h: Likewise.
913         * gthr-posix.c: Likewise.
914         * gthr-posix.h: Likewise.
915         * gthr-posix95.h: Likewise.
916         * gthr-single.h: Likewise.
917         * gthr-tpf.h: Likewise.
918         * gthr-vxworks.h: Likewise.
919         * gthr.h: Likewise.
920         * haifa-sched.c: Likewise.
921         * hard-reg-set.h: Likewise.
922         * hooks.c: Likewise.
923         * hooks.h: Likewise.
924         * hosthooks.h: Likewise.
925         * hwint.h: Likewise.
926         * ifcvt.c: Likewise.
927         * incpath.c: Likewise.
928         * init-regs.c: Likewise.
929         * integrate.c: Likewise.
930         * ipa-cp.c: Likewise.
931         * ipa-inline.c: Likewise.
932         * ipa-prop.c: Likewise.
933         * ipa-pure-const.c: Likewise.
934         * ipa-reference.c: Likewise.
935         * ipa-struct-reorg.c: Likewise.
936         * ipa-struct-reorg.h: Likewise.
937         * ipa-type-escape.c: Likewise.
938         * ipa-type-escape.h: Likewise.
939         * ipa-utils.c: Likewise.
940         * ipa-utils.h: Likewise.
941         * ipa.c: Likewise.
942         * ira-build.c: Likewise.
943         * ira-color.c: Likewise.
944         * ira-conflicts.c: Likewise.
945         * ira-costs.c: Likewise.
946         * ira-emit.c: Likewise.
947         * ira-int.h: Likewise.
948         * ira-lives.c: Likewise.
949         * ira.c: Likewise.
950         * jump.c: Likewise.
951         * lambda-code.c: Likewise.
952         * lambda-mat.c: Likewise.
953         * lambda-trans.c: Likewise.
954         * lambda.h: Likewise.
955         * langhooks.c: Likewise.
956         * lcm.c: Likewise.
957         * libgcov.c: Likewise.
958         * lists.c: Likewise.
959         * loop-doloop.c: Likewise.
960         * loop-init.c: Likewise.
961         * loop-invariant.c: Likewise.
962         * loop-iv.c: Likewise.
963         * loop-unroll.c: Likewise.
964         * lower-subreg.c: Likewise.
965         * lto-cgraph.c: Likewise.
966         * lto-compress.c: Likewise.
967         * lto-opts.c: Likewise.
968         * lto-section-in.c: Likewise.
969         * lto-section-out.c: Likewise.
970         * lto-streamer-in.c: Likewise.
971         * lto-streamer-out.c: Likewise.
972         * lto-streamer.c: Likewise.
973         * lto-streamer.h: Likewise.
974         * lto-symtab.c: Likewise.
975         * lto-wpa-fixup.c: Likewise.
976         * matrix-reorg.c: Likewise.
977         * mcf.c: Likewise.
978         * mode-switching.c: Likewise.
979         * modulo-sched.c: Likewise.
980         * omega.c: Likewise.
981         * omega.h: Likewise.
982         * omp-low.c: Likewise.
983         * optabs.c: Likewise.
984         * optabs.h: Likewise.
985         * opts-common.c: Likewise.
986         * opts.c: Likewise.
987         * params.def: Likewise.
988         * params.h: Likewise.
989         * passes.c: Likewise.
990         * plugin.c: Likewise.
991         * postreload-gcse.c: Likewise.
992         * postreload.c: Likewise.
993         * predict.c: Likewise.
994         * predict.def: Likewise.
995         * pretty-print.c: Likewise.
996         * pretty-print.h: Likewise.
997         * print-rtl.c: Likewise.
998         * print-tree.c: Likewise.
999         * profile.c: Likewise.
1000         * read-rtl.c: Likewise.
1001         * real.c: Likewise.
1002         * recog.c: Likewise.
1003         * reg-stack.c: Likewise.
1004         * regcprop.c: Likewise.
1005         * reginfo.c: Likewise.
1006         * regmove.c: Likewise.
1007         * regrename.c: Likewise.
1008         * regs.h: Likewise.
1009         * regstat.c: Likewise.
1010         * reload.c: Likewise.
1011         * reload1.c: Likewise.
1012         * resource.c: Likewise.
1013         * rtl.c: Likewise.
1014         * rtl.def: Likewise.
1015         * rtl.h: Likewise.
1016         * rtlanal.c: Likewise.
1017         * sbitmap.c: Likewise.
1018         * sched-deps.c: Likewise.
1019         * sched-ebb.c: Likewise.
1020         * sched-int.h: Likewise.
1021         * sched-rgn.c: Likewise.
1022         * sched-vis.c: Likewise.
1023         * sdbout.c: Likewise.
1024         * sel-sched-dump.c: Likewise.
1025         * sel-sched-dump.h: Likewise.
1026         * sel-sched-ir.c: Likewise.
1027         * sel-sched-ir.h: Likewise.
1028         * sel-sched.c: Likewise.
1029         * sel-sched.h: Likewise.
1030         * sese.c: Likewise.
1031         * sese.h: Likewise.
1032         * simplify-rtx.c: Likewise.
1033         * stack-ptr-mod.c: Likewise.
1034         * stmt.c: Likewise.
1035         * stor-layout.c: Likewise.
1036         * store-motion.c: Likewise.
1037         * stringpool.c: Likewise.
1038         * stub-objc.c: Likewise.
1039         * sync-builtins.def: Likewise.
1040         * target-def.h: Likewise.
1041         * target.h: Likewise.
1042         * targhooks.c: Likewise.
1043         * targhooks.h: Likewise.
1044         * timevar.c: Likewise.
1045         * tlink.c: Likewise.
1046         * toplev.c: Likewise.
1047         * toplev.h: Likewise.
1048         * tracer.c: Likewise.
1049         * tree-affine.c: Likewise.
1050         * tree-affine.h: Likewise.
1051         * tree-browser.def: Likewise.
1052         * tree-call-cdce.c: Likewise.
1053         * tree-cfg.c: Likewise.
1054         * tree-cfgcleanup.c: Likewise.
1055         * tree-chrec.c: Likewise.
1056         * tree-chrec.h: Likewise.
1057         * tree-complex.c: Likewise.
1058         * tree-data-ref.c: Likewise.
1059         * tree-data-ref.h: Likewise.
1060         * tree-dfa.c: Likewise.
1061         * tree-dump.c: Likewise.
1062         * tree-dump.h: Likewise.
1063         * tree-eh.c: Likewise.
1064         * tree-flow-inline.h: Likewise.
1065         * tree-flow.h: Likewise.
1066         * tree-if-conv.c: Likewise.
1067         * tree-inline.c: Likewise.
1068         * tree-into-ssa.c: Likewise.
1069         * tree-loop-distribution.c: Likewise.
1070         * tree-loop-linear.c: Likewise.
1071         * tree-mudflap.c: Likewise.
1072         * tree-nested.c: Likewise.
1073         * tree-nomudflap.c: Likewise.
1074         * tree-nrv.c: Likewise.
1075         * tree-object-size.c: Likewise.
1076         * tree-optimize.c: Likewise.
1077         * tree-outof-ssa.c: Likewise.
1078         * tree-parloops.c: Likewise.
1079         * tree-pass.h: Likewise.
1080         * tree-phinodes.c: Likewise.
1081         * tree-predcom.c: Likewise.
1082         * tree-pretty-print.c: Likewise.
1083         * tree-profile.c: Likewise.
1084         * tree-scalar-evolution.c: Likewise.
1085         * tree-ssa-address.c: Likewise.
1086         * tree-ssa-alias.c: Likewise.
1087         * tree-ssa-ccp.c: Likewise.
1088         * tree-ssa-coalesce.c: Likewise.
1089         * tree-ssa-copy.c: Likewise.
1090         * tree-ssa-copyrename.c: Likewise.
1091         * tree-ssa-dce.c: Likewise.
1092         * tree-ssa-dom.c: Likewise.
1093         * tree-ssa-dse.c: Likewise.
1094         * tree-ssa-forwprop.c: Likewise.
1095         * tree-ssa-ifcombine.c: Likewise.
1096         * tree-ssa-live.c: Likewise.
1097         * tree-ssa-live.h: Likewise.
1098         * tree-ssa-loop-ch.c: Likewise.
1099         * tree-ssa-loop-im.c: Likewise.
1100         * tree-ssa-loop-ivcanon.c: Likewise.
1101         * tree-ssa-loop-ivopts.c: Likewise.
1102         * tree-ssa-loop-manip.c: Likewise.
1103         * tree-ssa-loop-niter.c: Likewise.
1104         * tree-ssa-loop-prefetch.c: Likewise.
1105         * tree-ssa-loop-unswitch.c: Likewise.
1106         * tree-ssa-loop.c: Likewise.
1107         * tree-ssa-math-opts.c: Likewise.
1108         * tree-ssa-operands.c: Likewise.
1109         * tree-ssa-operands.h: Likewise.
1110         * tree-ssa-phiopt.c: Likewise.
1111         * tree-ssa-phiprop.c: Likewise.
1112         * tree-ssa-pre.c: Likewise.
1113         * tree-ssa-propagate.c: Likewise.
1114         * tree-ssa-reassoc.c: Likewise.
1115         * tree-ssa-sccvn.c: Likewise.
1116         * tree-ssa-sink.c: Likewise.
1117         * tree-ssa-structalias.c: Likewise.
1118         * tree-ssa-ter.c: Likewise.
1119         * tree-ssa-threadedge.c: Likewise.
1120         * tree-ssa-threadupdate.c: Likewise.
1121         * tree-ssa-uncprop.c: Likewise.
1122         * tree-ssa.c: Likewise.
1123         * tree-ssanames.c: Likewise.
1124         * tree-switch-conversion.c: Likewise.
1125         * tree-tailcall.c: Likewise.
1126         * tree-vect-data-refs.c: Likewise.
1127         * tree-vect-generic.c: Likewise.
1128         * tree-vect-loop-manip.c: Likewise.
1129         * tree-vect-loop.c: Likewise.
1130         * tree-vect-patterns.c: Likewise.
1131         * tree-vect-slp.c: Likewise.
1132         * tree-vect-stmts.c: Likewise.
1133         * tree-vectorizer.c: Likewise.
1134         * tree-vectorizer.h: Likewise.
1135         * tree-vrp.c: Likewise.
1136         * tree.c: Likewise.
1137         * tree.def: Likewise.
1138         * tree.h: Likewise.
1139         * treestruct.def: Likewise.
1140         * unwind-compat.c: Likewise.
1141         * unwind-dw2-fde-glibc.c: Likewise.
1142         * unwind-dw2.c: Likewise.
1143         * value-prof.c: Likewise.
1144         * value-prof.h: Likewise.
1145         * var-tracking.c: Likewise.
1146         * varasm.c: Likewise.
1147         * varpool.c: Likewise.
1148         * vec.c: Likewise.
1149         * vec.h: Likewise.
1150         * vmsdbgout.c: Likewise.
1151         * web.c: Likewise.
1152         * xcoffout.c: Likewise.
1153
1154 2009-11-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1155
1156         * pa.c (output_call): Only use sr4 for long interspace calls if
1157         call binds local and generating non PIC code.
1158         (attr_length_call): Adjust length calculation for above.
1159
1160 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1161
1162         * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
1163         (add<mode>3_carry): Change operand order of plus RTX.
1164         (*add<mode>3_carry): Ditto.
1165         (*addsi3_carry_zext): Ditto.
1166         (*add<dwi>3_doubleword): Update for changed operand order.
1167         (*negti2_1 splitter): Ditto.
1168         (*negdi2_1 splitter): Ditto.
1169         (<plusminus_insn><mode>3_carry): Macroize expander from
1170         {add,sub}<mode>3_carry patterns using plusminus code iterator.
1171         (*<plusminus_insn><mode>3_carry): Macroize insn from
1172         *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
1173         (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
1174         patterns using SDWIM mode iterator.
1175         (*neg<dwi>2_doubleword): New insn_and_split pattern.  Macroize
1176         pattern from *neg{di,ti}2_1 patterns and corresponding splitters
1177         using DWIH mode iterator.
1178         (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
1179         using SWI mode iterator.
1180         (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
1181         (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
1182         patterns using SWIM mode iterator.
1183         (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
1184         patterns using SWI248 mode iterator.
1185         (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
1186         patterns using SWI mode iterator.
1187         (*one_cmpl<mode>2_2 splitter): Macroize splitter from
1188         one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
1189
1190 2009-11-24  Michael Matz  <matz@suse.de>
1191
1192         * expr.c (set_storage_via_libcall): Fix build_call_expr call.
1193
1194 2009-11-24  David Binderman  <dcb314@hotmail.com>
1195
1196         * expr.c (store_field): Remove set but not used local variable
1197         width_mask.
1198         (expand_expr_real_2): Remove treeop2.
1199         * gcse.c (update_ld_motion_stores): Remove new_rtx.
1200         * haifa-sched.c (max_issue): Remove points.
1201         (sched_create_recovery_edges): Remove e.
1202         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
1203
1204 2009-11-24  Nick Clifton  <nickc@redhat.com>
1205
1206         * config/v850/v850.c (function_arg): Fix handling of zero-length
1207         function arguments.
1208
1209 2009-11-24  Michael Matz  <matz@suse.de>
1210
1211         * tree.h (union tree_ann_d): Don't declare.
1212         (tree_base): Remove ann field.
1213         (struct var_ann_d): Declare forward.
1214         (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
1215         (DECL_VAR_ANN_PTR): New macro.
1216         * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
1217         accept only VAR, PARM or RESULT decls.
1218         (create_tree_common_ann): Remove.
1219         (remove_referenced_var): Use DECL_VAR_ANN_PTR.
1220         * tree-eh.c (lookup_expr_eh_lp): Remove.
1221         * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
1222         DECL_VAR_ANN_PTR.
1223         (ann_type, tree_common_ann, get_tree_common_ann): Remove.
1224         * tree-flow.h (enum tree_ann_type): Remove.
1225         (struct tree_ann_common_d): Remove.
1226         (struct var_ann_d): Remove common field.
1227         (union tree_ann_d): Remove.
1228         (tree_ann_t, tree_ann_common_t): Remove typedefs.
1229         (tree_common_ann, get_tree_common_ann, ann_type,
1230         create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
1231         * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
1232         * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
1233         * builtins.c (expand_builtin_memcpy): Use
1234         currently_expanding_gimple_stmt instead of tree annotation.
1235         (expand_builtin_memset_args): Ditto.
1236         * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
1237         (expand_call_stmt): Don't set tree annotation.
1238         (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
1239         * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
1240         * gimple.h (currently_expanding_gimple_stmt): Declare.
1241
1242 2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1243
1244         * dwarf2out.c (add_location_or_const_value_attribute): Remove
1245         useless NOTE_VAR_LOCATION_STATUS call.
1246         * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
1247
1248 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
1249
1250         * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
1251         being called recursively.
1252
1253 2009-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1254
1255         * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
1256         $(MD5_H) params.def params.h prefix.h tree-inline.h.
1257
1258 2009-11-24  Paul Brook  <paul@codesourcery.com>
1259
1260         * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
1261         typo.
1262
1263 2009-11-24  Julian Brown  <julian@codesourcery.com>
1264             Paul Brook  <paul@codesourcery.com>
1265
1266         * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
1267         (arm_dwarf_register_span): New function.
1268         (arm_dbx_register_number): Add VFPv3 dwarf numbering.
1269
1270 2009-11-24  David Binderman  <dcb314@hotmail.com>
1271
1272         * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
1273         local variable bb_note.
1274         * dominance.c (get_dominated_by): Likewise local var n.
1275         (output_file_names): Likewise local var idx.
1276         (add_location_or_const_value_attribute): Likewise local var status.
1277         * dwarf2out.c (gen_variable_die): Likewise local var field.
1278         * emit-rtl.c (no_line_numbers): Remove.
1279         (init_emit_once): Remove line_numbers parameter.
1280         * rtl.h (init_emit_once): Adjust prototype.
1281         * toplev.c (backend_init): Adjust init_emit_once call.
1282
1283 2009-11-24  Richard Guenther  <rguenther@suse.de>
1284
1285         PR tree-optimization/42142
1286         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1287         Handle iv-dependent (non-)kills properly.
1288         (mark_aliased_reaching_defs_necessary): Pass the basic-block
1289         of the reference statement to mark_aliased_reaching_defs_necessary_1.
1290
1291 2009-11-24  Martin Jambor  <mjambor@suse.cz>
1292
1293         PR tree-optimization/42154
1294         * tree-sra.c (struct access): Added comments.
1295         (sra_modify_expr): Build references to the old aggregate with
1296         build_ref_for_offset instead of reusing access->expr.
1297         (load_assign_lhs_subreplacements): Likewise.
1298
1299 2009-11-24  Uros Bizjak  <ubizjak@gmail.com>
1300
1301         * config/i386/i386.md (add<mode>3_carry): Change insn pattern
1302         to expander.
1303         (sub<mode>3_carry): Ditto.
1304         (x86_mov<mode>cc_0_m1): Ditto.
1305         (*add<mode>3_carry): New insn pattern.  Use VOIDmode match_operator
1306         for ix86_carry_flag_operator operator predicate.
1307         (*sub<mode>3_carry): Ditto.
1308         (*x86_mov<mode>cc_0_m1): Ditto.
1309         (*addsi3_carry_zext): Use VOIDmode match_operator for
1310         ix86_carry_flag_operator operator predicate.
1311         (*subsi3_carry_zext): Ditto.
1312         (*x86_mov<mode>cc_0_m1_s): Ditto.
1313         (*x86_mov<mode>cc_0_m1_neg): Ditto.
1314         * config/i386/predocates.md (ix86_carry_flag_operator): Do not
1315         check operator sub-expressions for FLAGS_REG and const0_rtx.
1316         * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
1317         (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
1318         (ix86_expand_int_addcc): Update calls to
1319         gen_{add,sub}{qi,hi,si,di}3_carry.  Do not set mode of compare_op.
1320         (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
1321         Do not set mode of compare operation.
1322
1323 2009-11-23  Jan Hubicka  <jh@suse.cz>
1324
1325         PR middle-end/42151
1326         * ipa-inline.c (inline_transform): Avoid ICE when transform is called
1327         twice.
1328
1329 2009-11-23  Jan Hubicka  <jh@suse.cz>
1330
1331         * ipa-cp.c (ipcp_compute_node_scale): Work around completely
1332         wrong profile updates.
1333         * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
1334         having largest frequency.
1335         * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
1336         used uninitalized warning.
1337         * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
1338         frequencies.
1339
1340 2009-11-23  Uros Bizjak  <ubizjak@gmail.com>
1341
1342         * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
1343         of gen_rtx_REG to generate operand 5.
1344         (*cmp_ssub_sidi): Ditto.
1345
1346 2009-11-23  Richard Henderson  <rth@redhat.com>
1347
1348         * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
1349         mismatch.
1350
1351 2009-11-23  Paul Brook  <paul@codesourcery.com>
1352
1353         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
1354         case for noreturn functions.
1355         (arm_compute_save_reg_mask): Remove special noreturn handling.
1356
1357 2009-11-23  Richard Guenther  <rguenther@suse.de>
1358
1359         * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
1360         size for DECL bases.
1361
1362 2009-11-22  Richard Henderson  <rth@redhat.com>
1363
1364         * i386.c (avx_vpermilp_parallel): New function.
1365         * i386-protos.h: Declare it.
1366         * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
1367         avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
1368         * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
1369         (ssescalarnum, ssedoublesizemode): Add AVX modes.
1370         (vpermilbits): Remove.
1371         (avx_vpermil<mode>): Change insns to expanders.
1372         (*avx_vpermil<mode>): New.  Use vec_select.
1373
1374 2009-11-22  Richard Earnshaw  <rearnsha@arm.com>
1375
1376         * opts.c (decode_options): Don't enable flag_schedule_insns
1377         when optimizing for size.
1378         * doc/invoke.texi: Document change.
1379
1380 2009-11-22  Uros Bizjak  <ubizjak@gmail.com>
1381
1382         PR target/42113
1383         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
1384         of scratch register to SImode.
1385         (*cmp_sadd_sidi): Ditto.
1386         (*cmp_ssub_si): Ditto.
1387         (*cmp_ssub_sidi): Ditto.
1388
1389 2009-11-21  Ian Lance Taylor  <iant@google.com>
1390
1391         * Makefile.in (HOST_LIBS): Move higher in file.
1392         (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
1393         is not empty, set to $(CC) and $(CFLAGS).
1394
1395 2009-11-22  Martin Jambor  <mjambor@suse.cz>
1396
1397         * tree-cfg.c (verify_types_in_gimple_reference): Error out on
1398         V_C_E of an SSA_NAME or an invariant if lvalue is required.
1399         (verify_gimple_call): Verify LHS also with with
1400         verify_types_in_gimple_reference.
1401
1402 2009-11-21  Martin Jambor  <mjambor@suse.cz>
1403
1404         PR middle-end/42025
1405         * tree-sra.c (access_precludes_ipa_sra_p): New function.
1406         (splice_param_accesses): Check all accesses by calling
1407         access_precludes_ipa_sra_p.
1408         (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
1409         not convert types if it is true.
1410         (sra_ipa_modify_assign): Convert types in case of mismatch.
1411
1412 2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1413
1414         * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
1415         for operand 1.
1416
1417 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
1418
1419         * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
1420         (mips_mulsidi3_gen_fn): Declare new function.
1421         * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
1422         * config/mips/mips.md (<u>mulsidi3): Change condition to use
1423         mips_mulsidi3_gen_fn.  Use mips_mulsidi3_gen_fn to generate the insn.
1424         (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
1425         (mulsidi3_64bit_dmul): New define_insn.
1426
1427 2009-11-21  Ben Elliston  <bje@au.ibm.com>
1428
1429         * gengtype-lex.l: Enable noinput flex option.
1430         (YY_NO_INPUT): Remove define.
1431
1432 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1433
1434         * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
1435         (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
1436         (insert_debug_temps_for_defs): Handle PHI nodes.
1437         * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
1438         SSA names.
1439
1440 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1441
1442         * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
1443         after remove_phi_node.
1444
1445 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1446
1447         PR tree-optimization/42078
1448         * gimple.h (gimple_replace_lhs): New declaration.
1449         * gimple.c (gimple_replace_lhs): New function.
1450         * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
1451         modifying the call.
1452
1453 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
1454
1455         * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
1456         (xop_mulv2div2di3_low): Same.
1457         (*xop_pmacsdqh_mem): Same.
1458
1459 2009-11-20  Richard Henderson  <rth@redhat.com>
1460
1461         * config/i386/i386-builtin-types.awk: New file.
1462         * config/i386/i386-builtin-types.def: New file.
1463         * config/i386/t-i386: Use them to build i386-builtin-types.inc.
1464         * config/i386/i386.c: Include it.
1465         (ix86_builtin_type_tab, ix86_get_builtin_type): New.
1466         (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
1467         (struct builtin_isa): Remove GTY marker.  Replace tree type with
1468         ix86_builtin_func_type; add set_and_not_built_p.
1469         (def_builtin): Change type parameter to tcode; use
1470         ix86_get_builtin_func_type; update all callers.  Accept zero mask
1471         to mean the builtin is unconditionally available.
1472         (ix86_add_new_builtins): Use set_and_not_built_p instead of type
1473         being set to NULL.
1474         (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
1475         Update some users to rationalized enumeration codes from new include.
1476         (enum multi_arg_type): Remove.  Replace all enumeration values
1477         with defines to new ix86_builtin_func_type.
1478         (ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
1479         all type resolution to def_builtin.
1480         (ix86_init_builtin_types): Split out from ...
1481         (ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
1482
1483 2009-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1484
1485         PR target/41787
1486         * config/rs6000/rs6000.c (struct machine_function): Revert
1487         2009-10-23 change to set VRSAVE to non-0 if we use VSX.
1488         (rs6000_expand_to_rtl_hook): Ditto.
1489         (rs6000_check_vector_mode): Ditto.
1490         (compute_vrsave_mask): Ditto.
1491
1492 2009-11-20  Paul Brook  <paul@codesourcery.com>
1493
1494         * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
1495         * config/arm/arm-cores.def: Add cortex-a5.
1496         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
1497         * config/arm/arm-tune.md: Regenerate.
1498
1499 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
1500
1501         PR middle-end/39960
1502         * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
1503         (ref_pos): New field in structure.
1504         (insert_new_var_in_stmt): New function.
1505
1506
1507 2009-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1508
1509         * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
1510         * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
1511         (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
1512         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
1513         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1514         INT_LEAST64_TYPE): Define.
1515         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
1516         UINT_LEAST64_TYPE): Define.
1517         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
1518         INT_FAST64_TYPE): Define.
1519         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1520         UINT_FAST64_TYPE): Define.
1521         (INTPTR_TYPE, UINTPTR_TYPE): Define.
1522
1523 2009-11-20  Julian Brown  <julian@codesourcery.com>
1524
1525         * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
1526         specially for Thumb-1.
1527         (ASM_OUTPUT_REG_POP): Likewise.
1528
1529 2009-11-19  Jason Merrill  <jason@redhat.com>
1530
1531         * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
1532
1533 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1534             Rafael Avila de Espindola  <espindola@google.com>
1535
1536         * doc/plugins.texi (Plugin initialization): Added advices for
1537         retrieving the version of GCC at plugin compilation and loading times.
1538
1539 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1540
1541         * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
1542         (dump_active_plugins): output to file everything. Use
1543         internationalized dump & FMT_FOR_PLUGIN_EVENT.
1544
1545 2009-11-19  Richard Guenther  <rguenther@suse.de>
1546
1547         * gimple.c (canonicalize_cond_expr_cond): Strip conversions
1548         around truth-valued expressions.
1549         * tree.c (free_lang_data): Untangle check for LTO frontend.
1550
1551 2009-11-19  Jakub Jelinek  <jakub@redhat.com>
1552
1553         * tree.c (need_assembler_name_p): Use cgraph_get_node instead
1554         of cgraph_node_for_decl.
1555         * cgraph.h (cgraph_node_for_decl): Remove prototype.
1556         * cgraph.c (cgraph_node_for_decl): Remove.
1557         (cgraph_get_node): Just return NULL if !cgraph_hash.
1558
1559 2009-11-19  Paul Brook  <paul@codesourcery.com>
1560
1561         * config.gcc: Add new ARM --with-fpu options.
1562         * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
1563         * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
1564
1565 2009-11-18  Richard Guenther  <rguenther@suse.de>
1566
1567         * gimple.h (union gimple_statement_d): Add gsmembase member.
1568         (gimple_vuse_op): Use gsmembase for access.
1569         (gimple_vdef_op): Likewise.
1570         (gimple_vuse): Likewise.
1571         (gimple_vdef): Likewise.
1572         (gimple_vuse_ptr): Likewise.
1573         (gimple_vdef_ptr): Likewise.
1574         (gimple_set_vuse): Likewise.
1575         (gimple_set_vdef): Likewise.
1576         * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
1577
1578 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1579
1580         * doc/arm-neon-intrinsics.texi: Regenerated.
1581
1582 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1583
1584         * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
1585
1586 2009-11-18  Paul Brook  <paul@codesourcery.com>
1587             Daniel Jacobowitz  <dan@codesourcery.com>
1588
1589         * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
1590         (arm_arch7em): New variable.
1591         (all_architectures): Add armv7e-m.
1592         (arm_override_options): Set arm_arch7em.
1593         * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
1594         Include arm_arch7em.
1595         (arm_arch7em): Declare.
1596
1597 2009-11-18  Richard Guenther  <rguenther@suse.de>
1598
1599         * lto-streamer-in.c (input_gimple_stmt): Assert that we find
1600         a valid field decl if checking is enabled.
1601
1602 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1603
1604         * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
1605         (lto_ipa_fixup_call_notes): Declare.
1606         * ipa-prop.c (ipa_note_param_call): Store gimple uid.
1607         (update_call_notes_after_inlining): Copy call stmt uid to the new
1608         edge.
1609         (ipa_write_param_call_note): New function.
1610         (ipa_read_param_call_note): New function
1611         (ipa_write_node_info): Write also param call notes.  Removed a bogus
1612         comment, reformatted to fit 80 columns.
1613         (ipa_read_node_info): Read also param call notes. Removed a bogus
1614         comment.  Remove ipa_edge_args_vector growth.
1615         (lto_ipa_fixup_call_notes): New function.
1616         * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
1617         * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
1618         inlining regardless of flag_wpa.
1619         (cgraph_decide_inlining_of_small_functions): Likewise.
1620         (cgraph_decide_inlining): Likewise.
1621         (inline_read_summary): Likewise.
1622
1623 2009-11-18  Jan Hubicka  <jh@suse.cz>
1624
1625         * predict.c (compute_function_frequency): Export.
1626         * predict.h (compute_function_frequency): Declare.
1627         * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
1628
1629 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1630
1631         * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
1632         on all nodes we write summaries for.
1633
1634 2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
1635
1636         PR middle-end/22201
1637         * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
1638         (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
1639         (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
1640         (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
1641         (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
1642         (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
1643         (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
1644         description string.
1645
1646 2009-11-18  Jakub Jelinek  <jakub@redhat.com>
1647
1648         * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
1649         unnecessarily.
1650         (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
1651
1652         PR c++/3187
1653         * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
1654         fields.
1655         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1656         prototypes.
1657         * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
1658         cgraph_materialize_all_clones): Handle same_body aliases.
1659         * cgraph.c (cgraph_allocate_node): New function.
1660         (cgraph_create_node): Use it.
1661         (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
1662         cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
1663         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1664         functions.
1665         * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
1666         (input_node): Stream in same_body aliases.
1667         * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
1668         for same_body aliases.
1669         (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
1670
1671 2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1672
1673         PR other/39888
1674         * config/darwin.h: Use the extension stub libraries to access
1675         current libgcc_s features.
1676
1677 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1678
1679         PR debug/41926
1680         * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
1681         (vect_transform_loop): Call it.
1682
1683 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1684
1685         * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
1686         released SSA names.
1687
1688 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1689
1690         PR debug/41888
1691         PR debug/41886
1692         * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
1693         are ok.
1694         * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
1695         (try_generate_gimple_bb): Skip debug stmts when finding data refs.
1696         * sese.c (sese_build_liveouts_bb): Skip debug stmts.
1697         (sese_bad_liveouts_use): New.
1698         (sese_reset_debug_liveouts_bb): New.
1699         (sese_build_liveouts): Use it.
1700         (rename_variables_in_stmt): Reset debug stmts rather than creating
1701         new vars for them.
1702         (expand_scalar_variable_stmt): Likewise.
1703
1704 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1705
1706         * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
1707         (df_ref_remove): Likewise.
1708
1709 2009-11-17  Jan Hubicka  <jh@suse.cz>
1710
1711         * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
1712         info.
1713
1714 2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1715
1716         * toplev.c (process_options): Remove dead code.
1717         * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
1718
1719 2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
1720
1721         * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
1722         nodes.
1723
1724 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1725
1726         PR tree-optimization/41857
1727         * tree-ssa-address.c (move_hint_to_base): Use void pointer to
1728         TYPE's address space instead of pointer to TYPE.
1729
1730 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1731
1732         * reload.c (find_reloads_address): Fix typo.
1733
1734 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1735
1736         * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
1737         registers in leaf functions if possible.
1738
1739 2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
1740
1741         * config/m68k/m68k-devices.def: Add MCF5441x family.
1742
1743 2009-11-17  Jan Hubicka  <jh@suse.cz>
1744
1745         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
1746         removed node.
1747         * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
1748
1749 2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
1750
1751         * config/i386/predicates.md (x86_64_szext_general_operand): Do not
1752         nest ior expressions.
1753         (x86_64_szext_nonmemory_operand): Ditto.
1754         (call_insn_operand): Ditto.
1755
1756 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1757
1758         * stmt.c (expand_asm_stmt): Get locus from stmt.
1759
1760 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1761
1762         * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
1763         Create the decl label for the new dest block on demand.  Require
1764         a fallthrough edge if no asm labels were redirected.
1765
1766 2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
1767
1768         * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
1769         operand 1 predicate.
1770         (cstoresi4): Ditto for operand 2.
1771         (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
1772         patterns using SDWIM mode iterator.
1773         (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
1774         using SWIM mode iterator.
1775         (cmpdi_1): Rename from cmpdi_1_rex64.
1776         (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
1777         SWI48 mode iterator.
1778         (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
1779         using SWI mode iterator.
1780         (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
1781         (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
1782         (*cmpqi_ext_3_insn): Make private.
1783         (*cmpqi_ext_3_insn_rex64): Make private.
1784         (cmpstrnsi): Update for renamed cmpdi_1_rex64.
1785         * config/i386/predicates.md (cmpsi_operand): Remove.
1786
1787 2009-11-16  Paul Brook  <paul@codesourcery.com>
1788
1789         * doc/invoke.texi: Document ARM VFPv4 based FPUs.
1790         * config/arm/arm.c (all_fpus): Add VFPv4 entries.
1791
1792 2009-11-14  Jan Hubicka  <jh@suse.cz>
1793
1794         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
1795         ENTRY_BLOCK_PTR.
1796         * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
1797         zero out all callees.
1798         * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
1799         frequency and count match.
1800         * ipa-inline.c (update_noncloned_frequencies): New function.
1801         (cgraph_clone_inlined_nodes): Use it.
1802         * tree-inline.c (copy_bb): Fix frequency scaling; output
1803         diagnostic on frequency mismatches to dump file.
1804         (initialize_cfun): Do not scale frequency; fix count scaling;
1805         initialize entry and exit block frequencies; copy profile info.
1806         (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
1807         (copy_body): Use frequency_scale as argument.
1808         (expand_call_inline): Compute frequency scale and output diagnostic
1809         to dump file.
1810         (delete_unreachable_blocks_update_callgrah): Remove checking that
1811         has to be done after edge redirection.
1812         (tree_function_versioning): Update initialize_cfun and copy_body call.
1813
1814 2009-11-14  Jan Hubicka  <jh@suse.cz>
1815
1816         * cgraph.c (cgraph_release_function_body): Update use of
1817         ipa_transforms_to_apply.
1818         (cgraph_remove_node): Remove ipa_transforms_to_apply.
1819         * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
1820         * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
1821         copied body.
1822         (cgraph_materialize_clone): Remove original if dead.
1823         * lto-streamer-in.c (lto_read_body): Remove FIXME and
1824         ipa_transforms_to_apply hack.
1825         * function.h (struct function): Add ipa_transforms_to_apply.
1826         * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
1827         * tree-inline.c (copy_bb): Update sanity check.
1828         (initialize_cfun): Do not copy ipa_transforms_to_apply.
1829         (expand_call_inline): remove dead clone originals.
1830         (tree_function_versioning): Merge transformation queues.
1831         * passes.c (add_ipa_transform_pass): Remove.
1832         (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
1833         tracking.
1834         (execute_all_ipa_transforms): Update.
1835         (execute_one_pass): Update.
1836
1837 2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1838
1839         PR target/21078, 21080
1840         * config/avr/avr.c (avr_return_addr_rtx): New function for
1841         builtin_return_address.
1842         (expand_prologue): Calculate stack usage.
1843         (avr_asm_function_end_prologue): Output stack size and offset label.
1844         * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
1845         (machine_function): Add stack_usage.
1846         * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
1847
1848 2009-11-14  Anatoly Sokolov  <aesok@post.ru>
1849
1850         * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
1851         new 'outgoing' argument.
1852         (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
1853         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1854         * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1855         iq2000_function_value_regno_p.
1856         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1857         * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
1858         Declare.
1859
1860 2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
1861
1862         PR target/42031
1863         * arm.md (adddi_sesidi_di): Place tied contraint first.
1864         (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
1865         (subdi_zesidi_di, subdi_sesidi_di): Likewise.
1866         (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
1867         (mulsi3addsi, mulsi3addsi_compare0): Likewise.
1868         (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
1869         (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
1870         (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
1871         (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
1872         (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
1873
1874 2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
1875
1876         * config/i386/predicates.md (call_register_no_elim_operand):
1877         New predicate.  Reject stack register as valid call operand
1878         for 32bit targets.
1879         (call_insn_operand): Use call_register_no_elim_operand.
1880
1881 2009-11-13  Richard Henderson  <rth@redhat.com>
1882
1883         * function.c (stack_protect_prologue): Don't bypass expand_expr
1884         for stack_protect_guard and guard_decl.
1885         (stack_protect_epilogue): Likewise.
1886
1887 2009-11-13  Jan Hubicka  <jh@suse.cz>
1888
1889         * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
1890         when to PUBLIC is set.
1891
1892 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1893
1894         PR middle-end/42029
1895         * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
1896         tmp_load if needed.
1897
1898 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
1899
1900         PR target/41900
1901         * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
1902         *call_value_1): Use "lsm" as operand 1 constraint.
1903         * config/i386/predicates.md (call_insn_operand): Depend on
1904         index_register_operand to avoid %esp register.
1905
1906 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
1907
1908         Revert:
1909         2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
1910
1911         PR target/41900
1912         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
1913         (TARGET_CALL_ESP): New define.
1914         * config/i386/i386.c (initial_ix86_tune_features): Initialize
1915         X86_ARCH_CALL_ESP.
1916         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
1917         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
1918         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
1919         TARGET_CALL_ESP.
1920         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
1921         New patterns, use "lsm" as operand 1 constraint.
1922         * config/i386/predicates.md (call_insn_operand): Depend on
1923         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
1924
1925 2009-11-13  Jason Merrill  <jason@redhat.com>
1926
1927         PR debug/26965
1928         * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
1929         Don't emit a second declaration at any scope.
1930
1931 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
1932
1933         PR rtl-optimization/41697
1934         * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
1935         a conditional jump has a single successor.
1936
1937 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
1938
1939         * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
1940         allocate reg_last when in case lazy_reg_last is true.
1941         (init_deps_reg_last): New.
1942         (free_deps): When max_reg is 0, this context is already freed.
1943         * sched-int.h (init_deps_reg_last): Export.
1944         (init_deps): Update prototype.
1945         * sched-ebb.c (schedule_ebb): Update the call to init_deps.
1946         * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
1947         * ddg.c (build_intra_loop_deps): Likewise.
1948         * sel-sched-ir.c (copy_deps_context, create_deps_context,
1949         reset_deps_context, deps_init_id): Likewise.
1950         (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
1951         (free_data_for_scheduled_insn): New, break down from ...
1952         (free_first_time_insn_data): ... here.
1953         (has_dependence_p): Allocate reg_last now, when it is needed.
1954         (extend_insn_data): When maximal LUID is big enough, allocate
1955         per-insn data in smaller chunks.
1956         * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
1957         * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
1958         in scheduled insn.
1959
1960 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
1961
1962         * config/i386/i386.md (call_value): Fix comment.
1963         (sibcall_value): Ditto.
1964
1965 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1966
1967         * config/i386/linux-unwind.h (x86_frob_update_context): New function.
1968         (MD_FROB_UPDATE_CONTEXT): Define.
1969
1970 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1971             Laurent GUERBY  <laurent@guerby.net>
1972
1973         * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
1974         Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
1975         (sparc_fallback_frame_state): Tidy.  Compensate for RETURN_ADDR_OFFSET.
1976
1977 2009-11-12  Jan Hubicka  <jh@suse.cz>
1978
1979         * ipa.c (function_and_variable_visibility): Fix my accidentail commit
1980         and clear DECL_COMMON on localized declarations.
1981
1982 2009-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
1983
1984         PR rtl-opt/38582
1985         * regrename.c (struct du_head): New structure; some elements moved
1986         from...
1987         (struct du_chain): ... this one.
1988         (open_chains, closed_chains): Now of type struct du_head *.
1989         (do_replace): Accept du_head argument, not du_chain.  All callers
1990         changed.  Modified code to match new data structures.
1991         (build_def_use): Return a list of du_head structures.  Modified code
1992         to match new data structures.
1993         (dump_def_use_chain): Accept du_head argument, not du_chain.  All
1994         callers changed.  Modified code to match new data structures.
1995         (merge_overlapping_regs): Accept du_head argument, not du_chain.  All
1996         callers changed.  Modified code to match new data structures.
1997         (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
1998         Allocate a du_head structure as well as a du_chain when creating a
1999         new chain.  Modified other code to match new data structures.
2000
2001 2009-11-12  Jan Hubicka  <jh@suse.cz>
2002
2003         * cgraph.h (varpool_node_name): Declare.
2004         * cgraphunit.c (process_function_and_variable_attributes): Set
2005         force_output flag on used variables.
2006         * ipa.c (function_and_variable_visibility): Dump externally visible
2007         and needed variables.
2008         * varpool.c (varpool_node_name): Export.
2009         (decide_is_variable_needed): Check COMDAT for externally visible vars;
2010         ignore needed flag.
2011
2012 2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
2013
2014         PR middle-end/41930
2015         * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
2016         processing if XEXP (x, i) is NULL.
2017
2018 2009-11-12  Jan Hubicka  <jh@suse.cz>
2019
2020         * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
2021         imply PUBLIC || EXTERNAL.
2022
2023 2009-11-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2024
2025         PR middle-end/41440
2026         * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
2027         single successor block, ending with jump created by RTL expander.
2028
2029 2009-11-11  Jan Hubicka  <jh@suse.cz>
2030
2031         PR middle-end/41729
2032         * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
2033         and WEAK variables at -fwhole-program.
2034
2035         PR middle-end/41735
2036         * ipa.c (whole_program_function_and_variable_visility): COMDAT
2037         functions/variables are not needed even if they are externally visible.
2038
2039 2009-11-11  Jan Hubicka  <jh@suse.cz>
2040
2041         (patch by Richard Guenther)
2042         * lto-streamer-out.c (output_function): Output head of argument list
2043         earlier.
2044         * lto-streamer-in.c (input_function): Re-map arguments into merged
2045         declaration.
2046
2047 2009-11-11  Jan Hubicka  <jh@suse.cz>
2048
2049         * lto-cgraph.c: Include gcov-io.h
2050         (output_profile_summary): New function.
2051         (output_cgraph): Use it.
2052         (input_profile_summary): New function.
2053         (input_cgraph): Use it.
2054         * coverage.c (build_ctr_info_value): Use varpool; initalize
2055         DECL_ASSEMBLER_NAME.
2056         (create_coverage): Likewise.
2057         * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
2058         (tree_init_edge_profiler): Likewise.
2059         * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
2060
2061 2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
2062
2063         * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2064         * c-pragma.c (def_pragma_macro_value): Likewise.
2065         (def_pragma_macro): Likewise.
2066         (pushed_macro_table): Likewise.
2067         (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
2068         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2069
2070 2009-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
2071
2072         * doc/plugins.texi (Registering custom attributes): section
2073         renamed as (Registering custom attributes or pragmas).
2074         Mentions custom attributes & pragmas, and c_register_pragma, with
2075         a small example.
2076         * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
2077         pragmas.
2078         * doc/extend.texi (Function Attributes): Mentions that plugin can
2079         provide their attributes.
2080
2081 2009-11-11  Jon Beniston  <jon@beniston.com>
2082
2083         * config.gcc: Add lm32 elf and uclinux targets.
2084         * config/lm32: New directory.
2085         * config/lm32/lm32.c: New file.
2086         * config/lm32/lm32.h: New file.
2087         * config/lm32/lm32.md: New file.
2088         * config/lm32/lm32.opt: New file.
2089         * config/lm32/lm32-protos.h: New file.
2090         * config/lm32/constraints.md: New file.
2091         * config/lm32/predicates.md: New file.
2092         * config/lm32/sfp-machine.h: New file.
2093         * config/lm32/t-fprules-softfp: New file.
2094         * config/lm32/uclinux-elf.h: New file.
2095         * doc/invoke.texi: Document lm32 options.
2096         * doc/contrib.texi: Document lm32 porter.
2097         * doc/install.texi: Document lm32 targets.
2098
2099 2009-11-11  Martin Jambor  <mjambor@suse.cz>
2100
2101         PR lto/41932
2102         * ipa-prop.c (ipa_update_after_lto_read): Call
2103         ipa_check_create_node_params and ipa_check_create_edge_args.  Also
2104         call ipa_initialize_node_params instead of ipa_populate_param_decls.
2105
2106 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2107
2108         * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
2109         (neon_expand_vector_init): Use them.  Also handle non-constant
2110         vectors with identical elements and vectors with only one
2111         non-constant element.
2112         (arm_print_operand): Handle 'y' modifier.
2113         * config/arm/arm-protos.h (neon_make_constant): Declare.
2114         * config/arm/neon.md (neon_vdup_n<mode>): Split into two
2115         patterns.  Use VX instead of VDQW for the first one.  Allow
2116         a VFP alternative and V32 modes for the second one.
2117         * config/arm/neon.ml (shape_elt): Add Alternatives.
2118         (ops): Use Alternatives for vdup lane instructions.
2119         * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
2120         * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
2121
2122 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2123
2124         * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
2125         operands.
2126         (movti, mov<mode>): Call force_reg on one operand if required.
2127         * config/arm/vec-common.md (mov<mode>): Likewise.
2128
2129 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2130
2131         * config/arm/arm.c (arm_override_options): Enable scheduling for
2132         Thumb-2.
2133
2134 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2135
2136         PR target/10127
2137         PR ada/20548
2138         * expr.h (anti_adjust_stack_and_probe): Declare.
2139         * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
2140         parameter and rewrite head comment.
2141         (allocate_dynamic_stack_space): Adjust call to above function.
2142         * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
2143
2144         * tree.h (dwarf2out_args_size): Delete.
2145         * dwarf2out.c (dwarf2out_args_size): Make static and move around.
2146         (dwarf2out_args_size_adjust): Delete prototype and move around.
2147         (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
2148         ACCUMULATE_OUTGOING_ARGS targets.
2149
2150 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2151
2152         * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
2153         DECL_SIZE of DECL_RESULT before evaluating it.
2154
2155 2009-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2156
2157         PR tree-optimization/41987
2158         * fold-const.c (const_binop): Avoid using fold_buildN().
2159
2160 2009-11-10  Martin Jambor  <mjambor@suse.cz>
2161
2162         * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
2163         (execute_all_ipa_stmt_fixups): Declare.
2164         * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
2165         * ipa-inline.c (pass_ipa_inline): Likewise.
2166         * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
2167         * ipa-reference.c (pass_ipa_reference): Likewise.
2168         * ipa.c (pass_ipa_whole_program_visibility): Likewise.
2169         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
2170         (pass_ipa_lto_finish_out): Likewise.
2171         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
2172         * passes.c (execute_ipa_stmt_fixups): New function.
2173         (execute_all_ipa_stmt_fixups): New function.
2174         * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
2175
2176 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2177
2178         PR ada/20548
2179         * explow.c (probe_stack_range): Fix typo.
2180         * config/sparc/sparc.md (probe_stack): New expander.
2181
2182 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2183
2184         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
2185
2186 2009-11-09  Jason Merrill  <jason@redhat.com>
2187
2188         * gdbinit.in (pgq): New function for printing gimple sequence.
2189
2190 2009-11-09  Paul Brook  <paul@codesourcery.com>
2191             Daniel Jacobowitz  <dan@codesourcery.com>
2192             Sandra Loosemore  <sandra@codesourcery.com>
2193
2194         * doc/extend.texi (Half-Precision): Update wording to reflect
2195         that there are now multiple -mfpu options that enable fp16
2196         hardware support.
2197         * doc/invoke.texi: Update list of ARM -mfpu= options.
2198         * config.gcc: Update ARM --with-fpu option list.
2199         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
2200         vfpv3xd and vfpv3xd-fp16.
2201         (use_vfp_abi): New function.
2202         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
2203         when undesirable.
2204         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
2205         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
2206         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
2207         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
2208         provides them.
2209         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
2210         NEON.
2211         (arm_print_operand): Handle 'p' modifier.
2212         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
2213         TARGET_FP16.
2214         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
2215         (TARGET_FP16): Define.
2216         * config/arm/vfp.md: Disable double-precision patterns if the FPU
2217         does not provide them.
2218         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
2219         double-precision values on a single-precision FPU.
2220         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
2221         double-precision constants.
2222         (movhf_vfp_neon): New pattern (was movhf_vfp).
2223         (movhf_vfp): Remove NEON instructions.
2224         * config/arm/constraints.md: Add new "Dy" constraint for
2225         double-precision constants.  Update description of "Dv".
2226         * config/arm/arm.md: Disable double-precision patterns if the FPU
2227         does not provide them
2228
2229 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
2230
2231         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
2232         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
2233         diagnostics.
2234
2235 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
2236
2237         * collect2.c (main): Search PLUGIN_LD for plugin linker.
2238
2239         * configure.ac (--with-plugin-ld): New.  Default to ld.
2240         * configure: Regenerated.
2241         * config.in: Likewise.
2242
2243         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
2244         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
2245
2246 2009-11-08  Jonathan Gray  <jsg@openbsd.org>
2247
2248         * config/openbsd-stdint.h: Change to reflect what
2249         c_common_nodes_and_builtins expects.
2250
2251 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
2252
2253         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
2254
2255 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
2256
2257         PR target/41985
2258         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
2259         function contains at least one local dynamic name.
2260         (print_operand) <case '&'>: Instead output operand lossage diagnostics
2261         here if that happens.
2262
2263 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
2264             Joern Rennecke  <amylaar@spamcop.net>
2265
2266         * cfgrtl.c (pass_free_cfg): Add pass name.
2267         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
2268         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
2269         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
2270         * df-core.c (pass_df_initialize_no_opt): Likewise.
2271         * except.c (pass_rtl_eh): Likewise.
2272         * function.c (pass_init_function, pass_leaf_regs): Likewise.
2273         * gcse.c (pass_rtl_pre): Change pass name.
2274         * passes.c (pass_postreload): Add pass name.
2275         (make_pass_instance): Don't use duplicate-tracking logic for
2276         names starting with '*'.
2277         (next_pass_1): Assert that pass has a name.
2278         (register_one_dump_file): If there is an space in the name,
2279         skip past it.
2280         * predict.c (pass_strip_predict_hints): Add pass name.
2281         * reg-stack.c (pass_stack_regs): Likewise.
2282         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2283         * tree-cfg.c (pass_warn_function_return,
2284         pass_warn_function_noreturn): Add pass name.
2285         * tree-dfa.c (pass_referenced_vars): Likewise.
2286         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
2287         Fix whitespace before comment.
2288         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
2289         (pass_init_datastructures): Add pass name.
2290         * tree-ssa-loop.c (pass_record_bounds): Likewise.
2291         * tree-ssa.c (pass_early_warn_uninitialized,
2292         pass_late_warn_uninitialized): Likewise.
2293         * tree.c (pass_ipa_free_lang_data): Likewise.
2294         * doc/passes.texi (pass manager): Document how to disambiguate
2295         pass names.
2296
2297 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
2298
2299         * df-problems.c: Fix documentation for forward simulation of LR.
2300         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
2301         (df_simulate_finalize_forwards): Remove.
2302         * df.h (df_simulate_finalize_forwards): Remove.
2303
2304 2009-11-08  Richard Guenther  <rguenther@suse.de>
2305
2306         * tree-ssa-structalias.c (build_succ_graph): Properly make
2307         variables escape if they are stored to anything.
2308
2309 2009-11-08  Richard Guenther  <rguenther@suse.de>
2310
2311         PR rtl-optimization/41928
2312         * loop-invariant.c (free_loop_data): If we didn't allocate
2313         loop data do not try to free it.
2314
2315 2009-11-07  Jason Merrill  <jason@redhat.com>
2316
2317         * tree.c (reconstruct_complex_type): Preserve attributes.
2318
2319 2009-11-07  Richard Guenther  <rguenther@suse.de>
2320
2321         * tree-ssa-structalias.c (build_succ_graph): Feed stores
2322         to anything only to variables that can take pointers.
2323         (get_constraint_for_ssa_var): Properly exclude full
2324         variables from expanding.
2325         (first_vi_for_offset): Avoid overflow in arithmetic.
2326         (first_or_preceding_vi_for_offset): Likewise.
2327         (count_num_arguments): Fix implementation.
2328         (gate_ipa_pta): Do not run when not optimizing.
2329
2330 2009-11-07  David Binderman <dcb314@hotmail.com>
2331
2332         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
2333         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
2334         set but not used variables.
2335         (apply_args_reg_offset): Comment out as unused.
2336         * calls.c (flags_from_decl_or_type): Likewise.
2337         * genautomata.c (check_regexp_units_distribution): Likewise.
2338
2339 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
2340
2341         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
2342         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
2343         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
2344         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
2345         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
2346         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
2347         operand alternatives.
2348
2349 2009-11-06  Michael Matz  <matz@suse.de>
2350
2351         PR middle-end/41963
2352         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
2353         of a potential reciprocal to really be reciprocals.
2354
2355 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
2356
2357         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
2358         lwpintrin.h after immintrin.h.
2359         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
2360         typedefs.
2361
2362         PR middle-end/41935
2363         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
2364         or non-constant index, allow index one past the last element and
2365         allow exceeding array bound in arrays that might be used as flexible
2366         array members.
2367
2368 2009-11-05  Richard Henderson  <rth@redhat.com>
2369
2370         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
2371
2372 2009-11-05  Paul Brook  <paul@codesourcery.com>
2373
2374         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
2375         (arm_fpu_desc): New.
2376         (all_fpus): Add FPU details.
2377         (fp_model_for_fpu): Remove.
2378         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
2379         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
2380         (arm_file_start): Use arm_fpu_desc.
2381         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
2382         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
2383         arm_fpu_desc.
2384         (TARGET_FPA_EMU2): Define.
2385         (arm_fp_model, fputype, arm_fpu_tune): Remove.
2386         (vfp_reg_type, arm_fpu_desc): New.
2387         * config/arm/arm.md (attr fpu): Simplify.
2388         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
2389         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
2390         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
2391         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
2392         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
2393
2394 2009-11-05  Michael Matz  <matz@suse.de>
2395
2396         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
2397         on TARGET_RECIP.
2398         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
2399         for 1/sqrtf.
2400
2401 2009-11-04  Jason Merrill  <jason@redhat.com>
2402
2403         PR c++/36912
2404         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
2405         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
2406         (output_constant): Avoid crash after error.
2407
2408 2009-11-05  Martin Jambor  <mjambor@suse.cz>
2409
2410         * tree-sra.c (struct access): Changed comment of next_sibling field.
2411         (analyze_modified_params): Loop over accesses of a group rather than
2412         over all with the ame base, pass a common bitmap to
2413         walk_aliased_vdefs.
2414         (unmodified_by_ref_scalar_representative): Build link lists of
2415         accesses of a group.
2416         (splice_param_accesses): Likewise.
2417
2418 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
2419
2420         * df-scan.c (df-uses-record): Add case zero_extract of mem.
2421
2422 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2423
2424         PR target/10127
2425         PR ada/20548
2426         * config/i386/i386.md (probe_stack): New expander.
2427         (logical operation peepholes): Do not split stack checking probes.
2428
2429 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2430             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2431
2432         * doc/invoke.texi (-mlwp): Add documentation.
2433         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
2434         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
2435         (x86_64-*-*): Ditto.
2436         * config/i386/lwpintrin.h: New file, provide x86 compiler
2437         intrinisics for LWP.
2438         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
2439         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
2440         * config/i386/i386-c.c (ix86_target_macros_internal): Check
2441         ISA_FLAG for LWP.
2442         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
2443         * config/i386/i386.opt (-mlwp): New switch for LWP support.
2444         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
2445         (OPTION_MASK_ISA_LWP_UNSET): New.
2446         (ix86_handle_option): Handle -mlwp.
2447         (isa_opts): Handle -mlwp.
2448         (enum pta_flags): Add PTA_LWP.
2449         (override_options): Add LWP support.
2450         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
2451         (IX86_BUILTIN_LLWPCB32): Ditto.
2452         (IX86_BUILTIN_LLWPCB64): Ditto.
2453         (IX86_BUILTIN_SLWPCB16): Ditto.
2454         (IX86_BUILTIN_SLWPCB32): Ditto.
2455         (IX86_BUILTIN_SLWPCB64): Ditto.
2456         (IX86_BUILTIN_LWPVAL16): Ditto.
2457         (IX86_BUILTIN_LWPVAL32): Ditto.
2458         (IX86_BUILTIN_LWPVAL64): Ditto.
2459         (IX86_BUILTIN_LWPINS16): Ditto.
2460         (IX86_BUILTIN_LWPINS32): Ditto.
2461         (IX86_BUILTIN_LWPINS64): Ditto.
2462         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
2463         (builtin_description): Ditto.
2464         (ix86_init_mmx_sse_builtins): Ditto.
2465         (ix86_expand_special_args_builtin): Ditto.
2466         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
2467         LWP support.
2468         (UNSPEC_SLWP_INTRINSIC): Ditto.
2469         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
2470         (UNSPECV_LWPINS_INTRINSIC): Ditto.
2471         (lwp_llwpcbhi1): New lwp pattern.
2472         (lwp_llwpcbsi1): Ditto.
2473         (lwp_llwpcbdi1): Ditto.
2474         (lwp_slwpcbhi1): Ditto.
2475         (lwp_slwpcbsi1): Ditto.
2476         (lwp_slwpcbdi1): Ditto.
2477         (lwp_lwpvalhi3): Ditto.
2478         (lwp_lwpvalsi3): Ditto.
2479         (lwp_lwpvaldi3): Ditto.
2480         (lwp_lwpinshi3): Ditto.
2481         (lwp_lwpinssi3): Ditto.
2482         (lwp_lwpinsdi3): Ditto.
2483
2484 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2485             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2486
2487         PR rtl-opt/41833
2488         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
2489         a vec_duplicate.
2490
2491 2009-11-04  Richard Guenther  <rguenther@suse.de>
2492             Rafael Avila de Espindola  <espindola@google.com>
2493
2494         * gcc.c (process_command): Handle arguments name@offset.
2495
2496 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2497             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2498
2499         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
2500         (x86_64-*-*): Ditto.
2501         * config/i386/xopintrin.h: New file, provide common x86 compiler
2502         intrinisics for XOP.
2503         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
2504         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
2505         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2506         ISA_FLAG for XOP.
2507         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
2508         * config/i386/i386.opt (-mxop): New switch for XOP support.
2509         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
2510         (UNSPEC_XOP_TRUEFALSE)
2511         (UNSPEC_XOP_PERMUTE)
2512         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
2513         (PPERM_*): New constants for vpperm instruction.
2514         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
2515         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
2516         (OPTION_MASK_ISA_XOP_UNSET): New.
2517         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
2518         (ix86_handle_option): Handle -mxop.
2519         (isa_opts): Handle -mxop.
2520         (enum pta_flags): Add PTA_XOP.
2521         (override_options): Add XOP support.
2522         (print_operand): Add code for XOP compare instructions.
2523         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
2524         (ix86_expand_int_vcond): Extend for XOP compare instruction.
2525
2526         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
2527         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
2528         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
2529         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
2530         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
2531         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
2532         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
2533
2534         (IX86_BUILTIN_VPCMOV256): Ditto.
2535         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
2536         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
2537         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
2538         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
2539         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
2540         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
2541
2542         (IX86_BUILTIN_VPPERM): Ditto.
2543
2544         (IX86_BUILTIN_VPMACSSWW): Ditto.
2545         (IX86_BUILTIN_VPMACSWW): Ditto.
2546         (IX86_BUILTIN_VPMACSSWD): Ditto.
2547         (IX86_BUILTIN_VPMACSWD): Ditto.
2548         (IX86_BUILTIN_VPMACSSDD): Ditto.
2549         (IX86_BUILTIN_VPMACSDD): Ditto.
2550         (IX86_BUILTIN_VPMACSSDQL): Ditto.
2551         (IX86_BUILTIN_VPMACSSDQH): Ditto.
2552         (IX86_BUILTIN_VPMACSDQL): Ditto.
2553         (IX86_BUILTIN_VPMACSDQH): Ditto.
2554         (IX86_BUILTIN_VPMADCSSWD): Ditto.
2555         (IX86_BUILTIN_VPMADCSWD): Ditto.
2556
2557         (IX86_BUILTIN_VPHADDBW): Ditto.
2558         (IX86_BUILTIN_VPHADDBD): Ditto.
2559         (IX86_BUILTIN_VPHADDBQ): Ditto.
2560         (IX86_BUILTIN_VPHADDWD): Ditto.
2561         (IX86_BUILTIN_VPHADDWQ): Ditto.
2562         (IX86_BUILTIN_VPHADDDQ): Ditto.
2563         (IX86_BUILTIN_VPHADDUBW): Ditto.
2564         (IX86_BUILTIN_VPHADDUBD): Ditto.
2565         (IX86_BUILTIN_VPHADDUBQ): Ditto.
2566         (IX86_BUILTIN_VPHADDUWD): Ditto.
2567         (IX86_BUILTIN_VPHADDUWQ): Ditto.
2568         (IX86_BUILTIN_VPHADDUDQ): Ditto.
2569         (IX86_BUILTIN_VPHSUBBW): Ditto.
2570         (IX86_BUILTIN_VPHSUBWD): Ditto.
2571         (IX86_BUILTIN_VPHSUBDQ): Ditto.
2572
2573         (IX86_BUILTIN_VPROTB): Ditto.
2574         (IX86_BUILTIN_VPROTW): Ditto.
2575         (IX86_BUILTIN_VPROTD): Ditto.
2576         (IX86_BUILTIN_VPROTQ): Ditto.
2577         (IX86_BUILTIN_VPROTB_IMM): Ditto.
2578         (IX86_BUILTIN_VPROTW_IMM): Ditto.
2579         (IX86_BUILTIN_VPROTD_IMM): Ditto.
2580         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
2581
2582         (IX86_BUILTIN_VPSHLB): Ditto.
2583         (IX86_BUILTIN_VPSHLW): Ditto.
2584         (IX86_BUILTIN_VPSHLD): Ditto.
2585         (IX86_BUILTIN_VPSHLQ): Ditto.
2586         (IX86_BUILTIN_VPSHAB): Ditto.
2587         (IX86_BUILTIN_VPSHAW): Ditto.
2588         (IX86_BUILTIN_VPSHAD): Ditto.
2589         (IX86_BUILTIN_VPSHAQ): Ditto.
2590
2591         (IX86_BUILTIN_VFRCZSS): Ditto.
2592         (IX86_BUILTIN_VFRCZSD): Ditto.
2593         (IX86_BUILTIN_VFRCZPS): Ditto.
2594         (IX86_BUILTIN_VFRCZPD): Ditto.
2595         (IX86_BUILTIN_VFRCZPS256): Ditto.
2596         (IX86_BUILTIN_VFRCZPD256): Ditto.
2597
2598         (IX86_BUILTIN_VPCOMEQUB): Ditto.
2599         (IX86_BUILTIN_VPCOMNEUB): Ditto.
2600         (IX86_BUILTIN_VPCOMLTUB): Ditto.
2601         (IX86_BUILTIN_VPCOMLEUB): Ditto.
2602         (IX86_BUILTIN_VPCOMGTUB): Ditto.
2603         (IX86_BUILTIN_VPCOMGEUB): Ditto.
2604         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
2605         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
2606
2607         (IX86_BUILTIN_VPCOMEQUW): Ditto.
2608         (IX86_BUILTIN_VPCOMNEUW): Ditto.
2609         (IX86_BUILTIN_VPCOMLTUW): Ditto.
2610         (IX86_BUILTIN_VPCOMLEUW): Ditto.
2611         (IX86_BUILTIN_VPCOMGTUW): Ditto.
2612         (IX86_BUILTIN_VPCOMGEUW): Ditto.
2613         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
2614         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
2615
2616         (IX86_BUILTIN_VPCOMEQUD): Ditto.
2617         (IX86_BUILTIN_VPCOMNEUD): Ditto.
2618         (IX86_BUILTIN_VPCOMLTUD): Ditto.
2619         (IX86_BUILTIN_VPCOMLEUD): Ditto.
2620         (IX86_BUILTIN_VPCOMGTUD): Ditto.
2621         (IX86_BUILTIN_VPCOMGEUD): Ditto.
2622         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
2623         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
2624
2625         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
2626         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
2627         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
2628         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
2629         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
2630         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
2631         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
2632         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
2633
2634         (IX86_BUILTIN_VPCOMEQB): Ditto.
2635         (IX86_BUILTIN_VPCOMNEB): Ditto.
2636         (IX86_BUILTIN_VPCOMLTB): Ditto.
2637         (IX86_BUILTIN_VPCOMLEB): Ditto.
2638         (IX86_BUILTIN_VPCOMGTB): Ditto.
2639         (IX86_BUILTIN_VPCOMGEB): Ditto.
2640         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
2641         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
2642
2643         (IX86_BUILTIN_VPCOMEQW): Ditto.
2644         (IX86_BUILTIN_VPCOMNEW): Ditto.
2645         (IX86_BUILTIN_VPCOMLTW): Ditto.
2646         (IX86_BUILTIN_VPCOMLEW): Ditto.
2647         (IX86_BUILTIN_VPCOMGTW): Ditto.
2648         (IX86_BUILTIN_VPCOMGEW): Ditto.
2649         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
2650         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
2651
2652         (IX86_BUILTIN_VPCOMEQD): Ditto.
2653         (IX86_BUILTIN_VPCOMNED): Ditto.
2654         (IX86_BUILTIN_VPCOMLTD): Ditto.
2655         (IX86_BUILTIN_VPCOMLED): Ditto.
2656         (IX86_BUILTIN_VPCOMGTD): Ditto.
2657         (IX86_BUILTIN_VPCOMGED): Ditto.
2658         (IX86_BUILTIN_VPCOMFALSED): Ditto.
2659         (IX86_BUILTIN_VPCOMTRUED): Ditto.
2660
2661         (IX86_BUILTIN_VPCOMEQQ): Ditto.
2662         (IX86_BUILTIN_VPCOMNEQ): Ditto.
2663         (IX86_BUILTIN_VPCOMLTQ): Ditto.
2664         (IX86_BUILTIN_VPCOMLEQ): Ditto.
2665         (IX86_BUILTIN_VPCOMGTQ): Ditto.
2666         (IX86_BUILTIN_VPCOMGEQ): Ditto.
2667         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
2668         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
2669
2670         (enum multi_arg_type): New enum for describing the various XOP
2671         intrinsic argument types.
2672         (bdesc_multi_arg): New table for XOP intrinsics.
2673         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
2674         (ix86_expand_multi_arg_builtin): New function for creating XOP
2675         intrinsics.
2676
2677         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
2678         (xop_pmacsww): Ditto.
2679         (xop_pmacssww): Ditto.
2680         (xop_pmacsdd): Ditto.
2681         (xop_pmacssdd): Ditto.
2682         (xop_pmacssdql): Ditto.
2683         (xop_pmacssdqh): Ditto.
2684         (xop_pmacsdql): Ditto.
2685         (xop_pmacsdql_mem): Ditto.
2686         (xop_mulv2div2di3_low): Ditto.
2687         (xop_pmacsdqh): Ditto.
2688         (xop_pmacsdqh_mem): Ditto.
2689         (xop_mulv2div2di3_high): Ditto.
2690         (xop_pmacsswd): Ditto.
2691         (xop_pmacswd): Ditto.
2692         (xop_pmadcsswd): Ditto.
2693         (xop_pmadcswd): Ditto.
2694         (xop_pcmov_<mode>): Ditto.
2695         (xop_pcmov_<mode>256): Ditto.
2696         (xop_phaddbw): Ditto.
2697         (xop_phaddbd): Ditto.
2698         (xop_phaddbq): Ditto.
2699         (xop_phaddwd): Ditto.
2700         (xop_phaddwq): Ditto.
2701         (xop_phadddq): Ditto.
2702         (xop_phaddubw): Ditto.
2703         (xop_phaddubd): Ditto.
2704         (xop_phaddubq): Ditto.
2705         (xop_phadduwd): Ditto.
2706         (xop_phadduwq): Ditto.
2707         (xop_phaddudq): Ditto.
2708         (xop_phsubbw): Ditto.
2709         (xop_phsubwd): Ditto.
2710         (xop_phsubdq): Ditto.
2711         (xop_pperm): Ditto.
2712         (rotl<mode>3): Ditto.
2713         (rotr<mode>3): Ditto.
2714         (xop_rotl<mode>3): Ditto.
2715         (xop_rotr<mode>3): Ditto.
2716         (vrotr<mode>3): Ditto.
2717         (vrotl<mode>3): Ditto.
2718         (xop_vrotl<mode>3): Ditto.
2719         (vlshr<mode>3): Ditto.
2720         (vashr<mode>3): Ditto.
2721         (vashl<mode>3
2722         (xop_ashl<mode>3): Ditto.
2723         (xop_lshl<mode>3): Ditto.
2724         (ashlv16qi3): Ditto.
2725         (lshlv16qi3): Ditto.
2726         (ashrv16qi3): Ditto.
2727         (ashrv2di3): Ditto.
2728         (xop_frcz<mode>2): Ditto.
2729         (xop_vmfrcz<mode>2): Ditto.
2730         (xop_frcz<mode>2256): Ditto.
2731         (xop_maskcmp<mode>3): Ditto.
2732         (xop_maskcmp_uns<mode>3): Ditto.
2733         (xop_maskcmp_uns2<mode>3): Ditto.
2734         (xop_pcom_tf<mode>3): Ditto.
2735
2736         * doc/invoke.texi (-mxop): Add documentation.
2737         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
2738
2739 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
2740
2741         PR driver/11810
2742         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
2743         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
2744         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
2745
2746 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
2747
2748         PR target/40835
2749         * arm.md (peephole2 patterns for move and compare): New.
2750
2751 2009-11-04  Nick Clifton  <nickc@redhat.com>
2752
2753         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
2754         Make sure that it does not allow CONST_DOUBLEs.
2755         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
2756         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
2757         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
2758         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
2759         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
2760         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
2761         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
2762         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
2763         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
2764         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
2765         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
2766         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
2767         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
2768         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
2769         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
2770
2771 2009-11-04  Richard Guenther  <rguenther@suse.de>
2772
2773         PR tree-optimization/41919
2774         * tree-vrp.c (test_for_singularity): Properly compare values.
2775
2776 2009-11-04  Revital Eres  <eres@il.ibm.com>
2777
2778         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2779         Consider peeling for alignment only for stores and remove
2780         redundant assignment.
2781
2782 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
2783
2784         PR target/41302
2785         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
2786         (m68k_ok_for_sibcall_p): Handle different result return locations.
2787
2788 2009-11-04  Richard Guenther  <rguenther@suse.de>
2789
2790         * c-opts.c (c_common_post_options): Move LTO option processing
2791         code ...
2792         * opts.c (decode_options): ... here.
2793
2794 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
2795
2796         * c-common.c (fold_offsetof_1): Use %wd instead of
2797         HOST_WIDE_INT_PRINT_DEC.
2798
2799 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
2800
2801         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
2802         __pic__ or __PIC__.
2803
2804 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
2805
2806         * config.gcc (vax-*-linux*): Keep the original contents of
2807         tmake_file while adding vax/t-linux.
2808
2809 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2810
2811         PR target/10127
2812         PR ada/20548
2813         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
2814         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
2815         (STACK_CHECK_MOVING_SP): Likewise.
2816         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
2817         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
2818         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
2819         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
2820         Document PROBE_STACK.
2821         * explow.c (anti_adjust_stack_and_probe): New function.
2822         (allocate_dynamic_stack_space): Do not directly allocate space if
2823         STACK_CHECK_MOVING_SP, instead invoke above function.
2824         (emit_stack_probe): Handle probe_stack insn.
2825         (PROBE_INTERVAL): New macro.
2826         (STACK_GROW_OPTAB): Likewise.
2827         (STACK_GROW_OFF): Likewise.
2828         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
2829         loop condition in the small constant case.  Rewrite in the general
2830         case to be immune to wraparounds.  Make sure the address of probes
2831         is valid.  Try to use [base + disp] addressing mode if possible.
2832         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
2833         checking is enabled and STACK_CHECK_MOVING_SP.
2834         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
2835         return 1 for volatile references to the stack pointer.
2836         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
2837         __builtin_alloca if stack checking is enabled.
2838         * unwind-dw2.c (uw_identify_context): Take into account whether the
2839         context is that of a signal frame or not.
2840         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
2841         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
2842
2843 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
2844
2845         PR rtl-optimization/41917
2846         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
2847         operand isn't known to be 0, return 1.
2848
2849 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2850
2851         * config/mips/mips.md: Fix typos.
2852
2853 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2854
2855         * doc/invoke.texi: Fix typo.
2856
2857 2009-11-03  Paul Brook  <paul@codesourcery.com>
2858
2859         * config/arm/neon.ml (vectype): Add T_floatSF.
2860         (string_of_vectype): Ditto.
2861         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
2862         (deftypes): Use float for float32_t.
2863         * config/arm/arm_neon.h: Regenerate.
2864
2865 2009-11-03  Nick Clifton  <nickc@redhat.com>
2866             Kevin Buettner  <kevinb@redhat.com>
2867
2868         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
2869         order of expected registers.
2870         (rx_load_multiple_vector): Likewise.
2871         (rx_rtsd_vector): Likewise.
2872         * config/rx/rx.c (rx_cpu_type): New variable.
2873         (rx_print_operand): Fix bug printing 64-bit constant values.
2874         (rx_emit_stack_pushm): Reverse order of pushed registers.
2875         (gen_rx_store_vector): Likewise.
2876         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
2877         attribute name.
2878         (is_exception_func): Rename to is_interrupt_func and only accept
2879         "interrupt" as the attribute name.
2880         (rx_get_stack_layout): Use new function name.
2881         (rx_func_attr_inlinable): Likewise.
2882         (rx_attribute_table): Remove "exception".
2883         (rx_expand_prologue): If necessary push the accumulator register
2884         in the prologue of interrupt functions.
2885         (rx_expand_epilogue): If necessary pop the accumulator.
2886         (rx_builtins): Add RX_BUILTIN_MVTIPL.
2887         (rx_expand_builtin_stz): Remove.
2888         (rx_expand_builtin_mvtipl): New function.
2889         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
2890         (rx_expand_builtin): Likewise.
2891         (rx_enable_fpu): New variable.
2892         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
2893         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
2894         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
2895         (enum rx_cpu_types): Define.
2896         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
2897         (INCOMING_FRAME_SP_OFFSET): Define.
2898         (ARG_POINTER_CFA_OFFSET): Define.
2899         (FRAME_POINTER_CFA_OFFSET): Define.
2900         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
2901         (ALLOW_RX_FPU_INSNS): Define.
2902         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
2903         fast_math_flags_set_p.
2904         (UNSPEC_BUILTIN_MVTIPL): Define.
2905         (revl): Rename to bswapsi2.
2906         (bswaphi2): New pattern.
2907         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
2908         (mvtaclo): Likewise.
2909         (racw): Likewise.
2910         (mvtc): Remove clobber of cc0.
2911         (mvtcp): Delete.
2912         (opecp): Delete.
2913         * config/rx/rx.opt (mieee): Remove.
2914         (fpu): Add.
2915         (nofpu): Add.
2916         (mcpu=): Add.
2917         (patch=): Add.
2918         (msave-acc-in-interrupts): Add.
2919         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
2920         (MULTILIB_DIRS): Likewise.
2921         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
2922         * doc/extend.texi: Remove description of "exception" function
2923         attribute.
2924         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
2925         -msave-acc-in-interrupts options.
2926
2927 2009-11-03  Richard Guenther  <rguenther@suse.de>
2928
2929         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
2930
2931 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
2932
2933         PR c++/38699
2934         * c-common.c (fold_offsetof_1): Issue errors when the member
2935         designator of the offsetof expression is not legitimate.
2936
2937 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2938
2939         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
2940         names instead of numerical constants.
2941         (sse_prologue_save): Ditto.
2942         (*sse_prologue_save_insn): Ditto.
2943
2944 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2945
2946         PR target/41900
2947         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
2948         (TARGET_CALL_ESP): New define.
2949         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2950         X86_ARCH_CALL_ESP.
2951         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
2952         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
2953         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
2954         TARGET_CALL_ESP.
2955         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
2956         New patterns, use "lsm" as operand 1 constraint.
2957         * config/i386/predicates.md (call_insn_operand): Depend on
2958         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
2959
2960 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2961
2962         PR tree-optimization/41857
2963         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
2964         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
2965         to create_mem_ref.
2966         * tree-ssa-address.c (move_hint_to_base): New function.
2967         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
2968         address space associated with TYPE.
2969         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
2970         most_expensive_mult_to_index.  Call move_hint_to_base.
2971         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
2972         TYPE to addr_to_parts.
2973
2974 2009-11-02  Martin Jambor  <mjambor@suse.cz>
2975
2976         PR tree-optimization/41750
2977         * tree-sra.c (analyze_modified_params): Loop over all
2978         representatives of components of a parameter.
2979
2980 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
2981
2982         PR tree-optimization/41841
2983         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
2984         local variables of not yet materialized clones.
2985
2986         PR debug/41893
2987         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
2988         for a VOIDmode variable.
2989
2990         PR c++/41774
2991         * c-pragma.c (visstack): Change into vector of ints rather than
2992         enum symbol_visibility.
2993         (push_visibility): Add kind argument, push default_visibility together
2994         with kind.
2995         (pop_visibility): Add kind argument, return true if successful, fail
2996         if visibility stack is empty or if stack top is of different kind.
2997         (handle_pragma_visibility): Don't check length of visstack, instead
2998         call pop_visibility and issue diagnostics if it failed.  Pass 0
2999         as last argument to push_visibility and pop_visibility.
3000         * c-pragma.h (push_visibility): Add kind argument.
3001         (pop_visibility): Likewise.  Return bool instead of void.
3002
3003 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
3004
3005         * tree.def (TARGET_MEM_REF): Update comment.
3006         * alias.c (get_alias_set): Retrieve the original memory reference for
3007         a TARGET_MEM_REF before proceeding.
3008
3009 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3010
3011         * config/frv/frv.c (frv_function_value, frv_libcall_value,
3012         frv_function_value_regno_p): New functions.
3013         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3014         * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3015         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
3016         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
3017
3018 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3019
3020         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
3021         new 'outgoing' argument.
3022         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
3023         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3024         * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3025         LIBCALL_VALUE): Remove.
3026         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
3027         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
3028         (mh10300_function_value_regno_p): Declare.
3029
3030 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3031
3032         * config/arm/cortex-a9.md: New - integer pipeline description.
3033
3034 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
3035
3036         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
3037         aborting if the sizes of the two references don't match.
3038
3039 2009-10-31  Toon Moene  <toon@moene.org>
3040
3041         * ipa-inline.c (cgraph_decide_inlining):
3042         Include reason for not inlining called-once functions in dump file.
3043
3044 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
3045
3046         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
3047         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
3048         (LINK_SPEC): BE_LINK_SPEC added.
3049
3050 2009-10-30  Richard Guenther  <rguenther@suse.de>
3051
3052         PR lto/41858
3053         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
3054
3055 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
3056
3057         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
3058         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
3059         label.
3060
3061 2009-10-30  Martin Jambor  <mjambor@suse.cz>
3062
3063         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
3064
3065 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3066
3067         PR target/40838
3068         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
3069         first.  Move assert on stack_alignment_estimated just before
3070         setting stack_realign_needed.
3071         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
3072         Don't call update_stack_boundary.
3073
3074         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
3075         (verride_options): Don't check ix86_force_align_arg_pointer here.
3076         (ix86_function_ok_for_sibcall): Use it.
3077         (ix86_update_stack_boundary): Likewise.
3078
3079         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
3080
3081 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
3082
3083         * arm.md (QHSI): New mode iterator.
3084         (movqi): If generating for thumb, then truncate any immediate to
3085         8 bits.
3086         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
3087         with...
3088         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
3089         version.
3090
3091 2009-10-29  Cary Coutant  <ccoutant@google.com>
3092
3093         PR debug/41700
3094         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
3095         locations in the source).
3096         (store_vcall_insn): New function.
3097         (lookup_vcall_insn): New function.
3098         (dwarf2out_virtual_call_token): Use store_vcall_insn.
3099         (dwarf2out_copy_call_info): New function.
3100         (dwarf2out_virtual_call): Use lookup_vcall_insn.
3101         * emit-rtl.c (try_split): Call copy_call_info debug hook.
3102         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
3103         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
3104         (debug_nothing_rtx_rtx): New dummy hook.
3105         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
3106         (xcoff_debug_hooks): Likewise.
3107         * sdbout.c (sdb_debug_hooks): Likewise.
3108         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3109
3110 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
3111
3112         * doc/invoke.texi (mmcount-ra-address): Document new command line
3113         option.
3114         * config/mips/mips.opt (mmcount-ra-address): New option.
3115         * config/mips/mips-protos.h (mips_function_profiler): Declare new
3116         function.
3117         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
3118         member.
3119         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
3120         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
3121         rewritten.
3122         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
3123         mips_function_profiler.
3124
3125 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
3126
3127         PR middle-end/37565
3128         PR target/38018
3129         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
3130         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3131         * optc-gen.awk (cl_target_option_restore): Include call to
3132         targetm.override_options_after_change.
3133         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3134         * target.h (override_options_after_change): New.
3135         * c-common.c (parse_optimize_options): Call
3136         targetm.override_options_after_change.
3137         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3138         (ia64_override_options_after_change): New.
3139         (ia64_override_options) Add call to above.
3140
3141 2009-10-29  Michael Matz  <matz@suse.de>
3142
3143         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
3144         (gate_convert_to_rsqrt): Ditto.
3145         (pass_convert_to_rsqrt): Ditto.
3146         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
3147         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
3148         to pass list.
3149
3150         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
3151
3152 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3153
3154         * config/arm/arm.c (find_best_start): Fix type of remainder to be
3155         unsigned.
3156
3157 2009-10-29  Martin Jambor  <mjambor@suse.cz>
3158
3159         PR tree-optimization/41775
3160         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
3161         (generate_subtree_copies): Do not unshare agg.
3162         (load_assign_lhs_subreplacements): Do not unshare rhs.
3163         (sra_modify_assign): Do not unshare exprs.
3164         (propagate_subacesses_accross_link): Renamed to
3165         propagate_subaccesses_across_link.
3166
3167 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
3168
3169         * arm.c (count_insns_for_constant): Rework to support counting for
3170         thumb2 immediates as well.
3171         (find_best_start): Split out from arm_gen_constant.
3172         (arm_gen_constant): Rework to support XOR with immediate.
3173
3174 2009-10-29  Chao-ying Fu  <fu@mips.com>
3175
3176         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
3177         functions.
3178         (mips_expand_synci_loop):  Use the length rtx to control the
3179         synci loop from the begin rtx that points to the first byte of
3180         the cache line.
3181
3182 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3183
3184         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
3185
3186 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3187
3188         * dbxout.c (dbxout_common_check): Accept non public trees.
3189         * dwarf2out.c (fortran_common): Accept non public trees.
3190
3191 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3192
3193         * common.opt (fuse-linker-plugin): New option.
3194         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
3195         fuse-linker-plugin.
3196         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
3197
3198 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3199
3200         PR rtl-optimization/39715
3201         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
3202         (gen_cstoresi_ltu_thumb1): New splitter.
3203
3204 2009-10-28  Richard Guenther  <rguenther@suse.de>
3205
3206         PR lto/41808
3207         PR lto/41839
3208         * tree-ssa.c (useless_type_conversion_p): Do not treat
3209         conversions to pointers to incomplete types as useless.
3210         * gimple.c (gimple_types_compatible_p): Compare struct tags,
3211         not typedef names.
3212
3213 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
3214
3215         * var-tracking.c (emit_note_insn_var_location): Don't call the second
3216         vt_expand_loc unnecessarily when location is not a register nor
3217         memory.
3218
3219         PR middle-end/41837
3220         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
3221         fields don't have DECL_NAME.
3222
3223         PR debug/41801
3224         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
3225         call convert_memory_address on addr.
3226
3227         PR target/41762
3228         * config/i386/i386.c (ix86_pic_register_p): Don't call
3229         rtx_equal_for_cselib_p for VALUEs discarded as useless.
3230
3231 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
3232
3233         * var-tracking.c (emit_note_insn_var_location): Get the mode of
3234         a variable part from its REG, MEM or VALUE.
3235
3236 2009-10-28  Richard Guenther  <rguenther@suse.de>
3237
3238         * gimple.c (gimple_get_alias_set): Fix comment typo.
3239
3240 2009-10-28  Richard Guenther  <rguenther@suse.de>
3241
3242         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
3243         (free_lang_data): Unconditionally compute alias sets for all
3244         standard integer types.  Bail out if gate bailed out previously.
3245         Do not reset the types_compatible_p langhook.
3246         (gate_free_lang_data): Remove.
3247         (struct pass_ipa_free_lang_data): Enable unconditionally.
3248         * gimple.c (gimple_get_alias_set): Use the same alias-set for
3249         all pointer types.
3250
3251 2009-10-28  Richard Guenther  <rguenther@suse.de>
3252
3253         PR middle-end/41855
3254         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
3255         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
3256         (call_may_clobber_ref_p_1): Likewise.
3257         * tree-ssa-structalias.c (find_func_aliases): Likewise.
3258         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
3259
3260 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3261
3262         PR rtl-optimization/41812
3263
3264         Revert:
3265         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3266
3267         * df-problems.c (df_md_scratch): New.
3268         (df_md_alloc, df_md_free): Allocate/free it.
3269         (df_md_local_compute): Only include live registers in init.
3270         (df_md_transfer_function): Prune the in-set computed by
3271         the confluence function, and the gen-set too.
3272
3273 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3274
3275         PR rtl-optimization/39715
3276         * combine.c (simplify_comparison): Use extensions to
3277         widen comparisons.  Try an ANDing first.
3278
3279 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3280
3281         PR rtl-optimization/40741
3282         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
3283         a small constant is cheap.
3284         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
3285         force_reg on the LHS.
3286         (xorsi3): Likewise, and split the XOR if the constant is complex
3287         and not in Thumb mode.
3288
3289 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3290
3291         * expmed.c (emit_store_flag): Check costs before
3292         transforming to the opposite representation.
3293
3294 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3295
3296         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
3297         cstore result to DImode.
3298
3299 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3300
3301         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
3302         inside the unspec vector.
3303
3304 2009-10-27  Richard Henderson  <rth@redhat.com>
3305
3306         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
3307
3308 2009-10-27  Richard Henderson  <rth@redhat.com>
3309
3310         PR c++/41819
3311         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
3312         eh_region_may_contain_throw; update users.
3313         (eh_region_may_contain_throw): New function.
3314         (lower_catch): Check flag_exceptions before creating exception region.
3315         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
3316         (lower_cleanup): Tidy existing flag_exceptions check to match.
3317
3318 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
3319
3320         PR/41799
3321         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
3322         * config/i386/mingw.opt: Add fset-stack-executable.
3323         * config/i386/i386.c (ix86_trampoline_init): Make call to
3324         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
3325         defined and its value is not zero.
3326         * doc/invoke.texi
3327
3328 2009-10-27  Richard Guenther  <rguenther@suse.de>
3329
3330         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
3331         handle calls to externally visible functions like in regular mode.
3332         (create_variable_info_for): Do not create function infos here.
3333         (have_alias_info): Remove write-only variable.
3334         (solve_constraints): New function split out from common code
3335         in compute_points_to_sets and ipa_pta_execute.
3336         (compute_points_to_sets): Adjust.
3337         (ipa_pta_execute): Likewise.  Handle clones and externally visible
3338         functions like in non-IPA mode.
3339
3340 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
3341
3342         PR c/41842
3343         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
3344         error_mark_node.
3345
3346 2009-10-27  Richard Guenther  <rguenther@suse.de>
3347
3348         * tree-complex.c (expand_complex_div_wide): Check for
3349         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
3350
3351 2009-10-27  Revital Eres  <eres@il.ibm.com>
3352
3353         PR tree-optimization/40648
3354         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3355         Change decision of when to peel for alignment.
3356
3357 2009-10-27  Richard Guenther  <rguenther@suse.de>
3358
3359         PR lto/41821
3360         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
3361
3362 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
3363
3364         PR bootstrap/41451
3365         * fold-const.c (fold_binary_loc): Do not call
3366         protected_set_expr_location.
3367
3368 2009-10-27  Wei Guozhi  <carrot@google.com>
3369
3370         PR target/41705
3371         * target.h (have_conditional_execution): Add a new target hook
3372         function.
3373         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
3374         * targhooks.h (default_have_conditional_execution): Likewise.
3375         * targhooks.c (default_have_conditional_execution): Likewise.
3376         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
3377         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
3378         (arm_have_conditional_execution): New function.
3379         * ifcvt.c (noce_process_if_block, find_if_header,
3380         cond_exec_find_if_block, dead_or_predicable): Change the usage of
3381         macro HAVE_conditional_execution to a target hook call.
3382         * recog.c (peephole2_optimize): Likewise.
3383         * sched-rgn.c (add_branch_dependences): Likewise.
3384         * final.c (asm_insn_count, final_scan_insn): Likewise.
3385         * bb-reorder.c (HAVE_conditional_execution): Remove it.
3386
3387 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3388             Michael Meissner  <meissner@linux.vnet.ibm.com>
3389             Ulrich Weigand  <uweigand@de.ibm.com>
3390
3391         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
3392         * config/spu/spu_cache.h: New file.
3393
3394         * config/spu/cachemgr.c: New file.
3395         * config/spu/cache.S: New file.
3396
3397         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
3398         (ADDR_SPACE_EA): Define.
3399         (TARGET_ADDR_SPACE_KEYWORDS): Define.
3400         * config/spu/spu.c (EAmode): New macro.
3401         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3402         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3403         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
3404         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3405         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3406         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3407         (TARGET_ASM_SELECT_SECTION): Likewise.
3408         (TARGET_ASM_UNIQUE_SECTION): Likewise.
3409         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3410         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3411         (ea_symbol_ref): New function.
3412         (spu_legitimate_constant_p): Handle __ea qualified addresses.
3413         (spu_addr_space_legitimate_address_p): New function.
3414         (spu_addr_space_legitimize_address): Likewise.
3415         (cache_fetch): New global.
3416         (cache_fetch_dirty): Likewise.
3417         (ea_alias_set): Likewise.
3418         (ea_load_store): New function.
3419         (ea_load_store_inline): Likewise.
3420         (expand_ea_mem): Likewise.
3421         (spu_expand_mov): Handle __ea qualified memory references.
3422         (spu_addr_space_pointer_mode): New function.
3423         (spu_addr_space_address_mode): Likewise.
3424         (spu_addr_space_subset_p): Likewise.
3425         (spu_addr_space_convert): Likewise.
3426         (spu_section_type_flags): Handle "._ea" section.
3427         (spu_select_section): New function.
3428         (spu_unique_section): Likewise.
3429         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
3430         and __EA64__ predefined macros.
3431         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
3432         -matomic-updates switches.
3433
3434         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
3435         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
3436         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
3437         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
3438         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
3439         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
3440         $(T)cache128k.o): Likewise.
3441         ($(T)libgcc_%.a): Likewise.
3442
3443         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
3444         * config/spu/spu.opt (-mea32/-mea64): Add switches.
3445         (-maddress-space-conversion): Likewise.
3446         (-mcache-size=): Likewise.
3447         (-matomic-updates): Likewise.
3448         * doc/invoke.texi (-mea32/-mea64): Document.
3449         (-maddress-space-conversion): Likewise.
3450         (-mcache-size=): Likewise.
3451         (-matomic-updates): Likewise.
3452
3453 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3454             Michael Meissner  <meissner@linux.vnet.ibm.com>
3455             Ulrich Weigand  <uweigand@de.ibm.com>
3456
3457         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
3458
3459         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
3460         defined, add the named address space keywords.
3461         (c_addr_space_name): New function.
3462         (complete_array_type): Preserve named address space.
3463         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
3464         instead of targetm.valid_pointer_mode.
3465
3466         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
3467         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
3468         (ADDR_SPACE_KEYWORD): New macro.
3469         (c_addr_space_name): Add prototype.
3470
3471         * c-tree.h (struct c_declspecs): Add address_space member.
3472         (declspecs_add_addrspace): Add prototype.
3473
3474         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
3475
3476         * c-parser.c (c_parse_init): Add assertion.
3477         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
3478         (c_lex_one_token): Handle address space keywords.
3479         (c_token_starts_typename): Likewise.
3480         (c_token_starts_declspecs): Likewise.
3481         (c_parser_declspecs): Likewise.
3482         (c_parser_postfix_expression_after_paren_type): Diagnose compound
3483         literal within function qualified with named address space.
3484
3485         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
3486         address space qualifiers.
3487         (shadow_tag_warned): Warn about useless address space qualifiers.
3488         (quals_from_declspecs): Handle address space qualifiers.
3489         (grokdeclarator): Likewise.
3490         (build_null_declspecs): Likewise.
3491         (declspecs_add_addrspace): New function.
3492
3493         * c-typeck.c (addr_space_superset): New function.
3494         (qualify_type): Handle named address spaces.
3495         (composite_type): Likewise.
3496         (common_pointer_type): Likewise.
3497         (comp_target_types): Likewise.
3498         (build_conditional_expr): Likewise.
3499         (handle_warn_cast_qual): Likewise.
3500         (build_c_cast): Likewise.
3501         (convert_for_assignment): Likewise.
3502         (build_binary_op): Likewise.
3503         (pointer_diff): Handle named address spaces.  Use intermediate
3504         integer type of sufficient size if required.
3505
3506 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3507             Michael Meissner  <meissner@linux.vnet.ibm.com>
3508             Ulrich Weigand  <uweigand@de.ibm.com>
3509
3510         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
3511         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3512         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3513
3514         * target.h (struct target_def): Add pointer_mode, address_mode,
3515         and valid_pointer_mode to addr_space substructure.
3516         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3517         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3518         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3519         (TARGET_ADDR_SPACE_HOOKS): Add them.
3520         * targhooks.c (target_default_pointer_address_modes_p): New function.
3521         * target.h (target_default_pointer_address_modes_p): Add prototype.
3522         * targhooks.c (default_addr_space_pointer_mode): New function.
3523         (default_addr_space_address_mode): Likewise.
3524         (default_addr_space_valid_pointer_mode): Likewise.
3525         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
3526         (default_addr_space_address_mode): Likewise.
3527         (default_addr_space_valid_pointer_mode): Likewise.
3528         * output.h (default_valid_pointer_mode): Move to ...
3529         * targhooks.h (default_valid_pointer_mode): ... here.
3530         * varasm.c (default_valid_pointer_mode): Move to ...
3531         * targhooks.c (default_valid_pointer_mode): ... here.
3532
3533         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
3534         instead of targetm.valid_pointer_mode.
3535
3536         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
3537         * tree.c (integer_pow2p): Likewise.
3538         (tree_log2): Likewise.
3539         (tree_floor_log2): Likewise.
3540         (signed_or_unsigned_type_for): Support pointer type of different size.
3541         (int_or_pointer_precision): New function.
3542         * tree.h (int_or_pointer_precision): Add prototype.
3543         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
3544         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
3545         incoming pointer type instead of POINTER_SIZE.
3546
3547         * tree.c (build_pointer_type): Use appropriate pointer mode
3548         instead of ptr_mode.
3549         (build_reference_type): Likewise.
3550         * expr.c (store_expr): Likewise.
3551         (expand_expr_addr_expr): Likewise.
3552         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
3553         * cfgexpand.c (expand_debug_expr): Likewise.
3554
3555         * auto-inc-dec.c: Include "target.h".
3556         (try_merge): Use appropriate address mode instead of Pmode.
3557         (find_inc): Likewise.
3558         * combine.c (find_split_point): Likewise.
3559         * cselib.c (cselib_record_sets): Likewise.
3560         * dse.c (replace_inc_dec): Likewise.
3561         (canon_address): Likewise.
3562         * var-tracking.c (replace_expr_with_values): Likewise.
3563         (count_uses): Likewise.
3564         (add_uses): Likewise.
3565         (add_stores): Likewise.
3566         * emit-rtl.c: Include "target.h".
3567         (adjust_address_1): Use appropriate address mode instead of Pmode.
3568         (offset_address): Likewise.
3569         * explow.c (break_out_memory_refs): Likewise.
3570         (memory_address_addr_space): Likewise.
3571         (promote_mode): Likewise.
3572         * expr.c (move_by_pieces): Likewise.
3573         (emit_block_move_via_loop): Likewise.
3574         (store_by_pieces): Likewise.
3575         (store_by_pieces_1): Likewise.
3576         (expand_assignment): Likewise.
3577         (store_constructor): Likewise.
3578         (expand_expr_addr_expr): Likewise.
3579         (expand_expr_real_1): Likewise.
3580         * cfgexpand.c (expand_debug_expr): Likewise.
3581         * ifcvt.c (noce_try_cmove_arith): Likewise.
3582         * regcprop.c (kill_autoinc_value): Likewise.
3583         * regmove.c (try_auto_increment): Likewise.
3584         * reload.c (find_reloads): Likewise.
3585         (find_reloads_address): Likewise.
3586         (find_reloads_address_1): Likewise.
3587         * sched-deps.c: Include "target.h".
3588         (sched_analyze_1): Use appropriate address mode instead of Pmode.
3589         (sched_analyze_2): Likewise.
3590         * sel-sched-dump.c: Include "target.h".
3591         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
3592         * stor-layout.c (layout_type): Likewise.
3593         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3594         (multiplier_allowed_in_address_p): Likewise.
3595         (get_address_cost): Likewise.
3596         * varasm.c (make_decl_rtl): Likewise.
3597
3598         * expr.c (expand_assignment): Always convert offsets to appropriate
3599         address mode.
3600         (store_expr): Likewise.
3601         (store_constructor): Likewise.
3602         (expand_expr_real_1): Likewise.
3603
3604         * reload.h (form_sum): Add MODE argument.
3605         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
3606         Update recursive calls.
3607         (subst_indexed_address): Update calls to form_sum.
3608
3609         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
3610         * tree-ssa-address.c: Include "target.h".
3611         (templates): Replace by ...
3612         (mem_addr_template_list): ... this new vector.
3613         (TEMPL_IDX): Handle address space numbers.
3614         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
3615         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
3616         instead of global cache.  Update call to gen_addr_rtx.
3617         (valid_mem_ref_p): Update call to addr_for_mem_ref.
3618         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
3619
3620         * rtl.h (convert_memory_address_addr_space): Add prototype.
3621         (convert_memory_address): Define as macro.
3622         * explow.c (convert_memory_address): Rename to ...
3623         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3624         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
3625         Update recursive calls.
3626         (memory_address_addr_space): Call convert_memory_address_addr_space.
3627         * expmed.c (make_tree): Likewise.
3628         * expr.c (expand_assignment): Likewise.
3629         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
3630         (expand_expr_addr_expr): Likewise.  Also, update call.
3631
3632         * alias.c (find_base_value): Guard pointer size optimizations.
3633         (find_base_term): Likewise.
3634         * rtlanal.c (nonzero_bits1): Likewise.
3635         (num_sign_bit_copies1): Likewise.
3636         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3637
3638         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
3639         (emit-rtl.o): Likewise.
3640         (auto-inc-dec.o): Likewise.
3641         (sched-deps.o): Likewise.
3642
3643 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3644             Michael Meissner  <meissner@linux.vnet.ibm.com>
3645             Ulrich Weigand  <uweigand@de.ibm.com>
3646
3647         * doc/extend.texi (Named Address Spaces): New section.
3648         * coretypes.h (addr_space_t): New type.
3649         (ADDR_SPACE_GENERIC): New define.
3650         (ADDR_SPACE_GENERIC_P): New macro.
3651
3652         * doc/tm.texi (Named Address Spaces): New section.
3653         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
3654         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
3655         (TARGET_ADDR_SPACE_SUBSET_P): Document.
3656         (TARGET_ADDR_SPACE_CONVERT): Document.
3657         * target.h (struct gcc_target): Add addr_space substructure.
3658         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3659         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3660         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3661         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3662         (TARGET_ADDR_SPACE_HOOKS): Likewise.
3663         (TARGET_INITIALIZER): Initialize addr_space hooks.
3664         * targhooks.c (default_addr_space_legitimate_address_p): New function.
3665         (default_addr_space_legitimize_address): Likewise.
3666         (default_addr_space_subset_p): Likewise.
3667         (default_addr_space_convert): Likewise.
3668         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
3669         (default_addr_space_legitimize_address): Likewise.
3670         (default_addr_space_subset_p): Likewise.
3671         (default_addr_space_convert): Likewise.
3672
3673         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
3674         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
3675         (MEM_ADDR_SPACE): New macro.
3676         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
3677         address space memory attribute.
3678         (mem_attrs_htab_hash): Handle address space memory attribute.
3679         (mem_attrs_htab_eq): Likewise.
3680         (set_mem_attributes_minus_bitpos): Likewise.
3681         (set_mem_alias_set): Likewise.
3682         (set_mem_align): Likewise.
3683         (set_mem_expr): Likewise.
3684         (set_mem_offset): Likewise.
3685         (set_mem_size): Likewise.
3686         (adjust_address_1): Likewise.
3687         (offset_address): Likewise.
3688         (widen_memoy_address): Likewise.
3689         (get_spill_slot_decl): Likewise.
3690         (set_mem_attrs_for_spill): Likewise.
3691         (set_mem_addr_space): New function.
3692         * emit-rtl.h (set_mem_addr_space): Add prototype.
3693         * print-rtl.c (print_rtx): Print address space memory attribute.
3694         * expr.c (expand_assignment): Set address space memory attribute
3695         of generated MEM RTXes as appropriate.
3696         (expand_expr_real_1): Likewise.
3697         * cfgexpand.c (expand_debug_expr): Likewise.
3698         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3699
3700         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
3701         size of "spare" bitfield.
3702         (TYPE_ADDR_SPACE): New macro.
3703         (ENCODE_QUAL_ADDR_SPACE): Likewise.
3704         (DECODE_QUAL_ADDR_SPACE): Likewise.
3705         (CLEAR_QUAL_ADDR_SPACE): Likewise.
3706         (KEEP_QUAL_ADDR_SPACE): Likewise.
3707         (TYPE_QUALS): Encode type address space.
3708         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
3709         * tree.c (set_type_quals): Set type address space.
3710         (build_array_type): Inherit array address space from element type.
3711         * print-tree.c (print_node_brief): Print type address space.
3712         (print_node): Likewise.
3713         * tree-pretty-print.c (dump_generic_node): Likewise.
3714
3715         * explow.c (memory_address): Rename to ...
3716         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3717         Use address-space aware variants of memory address routines.
3718         * recog.c (memory_address_p): Rename to ...
3719         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3720         Use address-space aware variants of memory address routines.
3721         (offsettable_address_p): Rename to ...
3722         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
3723         Use address-space aware variants of memory address routines.
3724         * reload.c (strict_memory_address_p): Rename to ...
3725         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3726         Use address-space aware variants of memory address routines.
3727         (maybe_memory_address_p): Rename to ...
3728         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3729         Use address-space aware variants of memory address routines.
3730         * expr.h (memory_address_addr_space): Add prototype.
3731         (memory_address): Define as macro.
3732         * recog.h (memory_address_addr_space_p): Add prototype.
3733         (memory_address_p): Define as macro.
3734         (offsettable_address_addr_space_p): Add prototype.
3735         (offsettable_address_p): Define as macro.
3736         (strict_memory_address_addr_space_p): Add prototype.
3737         (strict_memory_address_p): Define as macro.
3738
3739         * combine.c (find_split_point): Use address-space aware variants
3740         of memory address routines.
3741         * emit-rtl.c (operand_subword): Likewise.
3742         (change_address_1): Likewise.
3743         (adjust_address_1): Likewise.
3744         (offset_address): Likewise.
3745         * expr.c (emit_move_insn): Likewise.
3746         (expand_assignment): Likewise.
3747         (expand_expr_real_1): Likewise.
3748         * recog.c (verify_changes): Likewise.
3749         (general_operand): Likewise.
3750         (offsettable_memref_p): Likewise.
3751         (offsettable_nonstrict_memref_p): Likewise.
3752         (constrain_operands): Likewise.
3753         * reload.c (get_secondary_mem): Likewise.
3754         (find_reloads_toplev): Likewise.
3755         (find_reloads_address): Likewise.
3756         (find_reloads_subreg_address): Likewise.
3757         * reload1.c (reload): Likewise.
3758         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3759         * rtl.h (address_cost): Add ADDRSPACE argument.
3760         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
3761         aware variant of memory address routines.
3762         * loop-invariant.c (create_new_invariant): Update address_cost call.
3763         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3764         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
3765         Use address-space aware variant of memory address routines.
3766         (propagate_rtx_1): Update call to should_replace_address.
3767         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
3768         argument.
3769         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
3770         ADDRSPACE argument.  Use per-address-space instead of global cache.
3771         Use address-space aware variant of memory address routines.
3772         (get_address_cost): Likewise.
3773         (get_computation_cost_at): Update calls.
3774         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
3775         Use address-space aware variant of memory address routines.
3776         (create_mem_ref_raw): Update call to valid_mem_ref_p.
3777         (most_expensive_mult_to_index): Update call to
3778         multiplier_allowed_in_address_p.
3779
3780         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
3781         attribute to indicate named address spaces.
3782
3783         * varasm.c (get_variable_section): DECLs in named address spaces
3784         cannot be "common".
3785
3786         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
3787         for addresses in a non-generic address space.
3788
3789         * expr.c (emit_block_move_hints): Do not use libcalls for
3790         memory in non-generic address spaces.
3791         (clear_storage_hints): Likewise.
3792         (expand_assignment): Likewise.
3793
3794         * fold-const.c (operand_equal_p): Expressions refering to different
3795         address spaces are not equivalent.
3796
3797         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
3798         spaces are not equivalent.
3799         (rtx_equal_p): Likewise.
3800         * cse.c (exp_equiv_p): Likewise.
3801         * jump.c (rtx_renumbered_equal_p): Likewise.
3802         * reload.c (operands_match_p): Likewise.
3803
3804         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
3805         address spaces may alias.
3806         (true_dependence): Likewise.
3807         (canon_true_dependence): Likewise.
3808         (write_dependence_p): Likewise.
3809
3810         * dse.c (canon_address): Handle named address spaces.
3811         * ifcvt.c (noce_try_cmove_arith): Likewise.
3812
3813         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
3814         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
3815         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
3816         to handle conversions between different address spaces.
3817         * fold-const.c (fold_convert_loc): Likewise.
3818         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
3819         * tree-pretty-print.c (dump_generic_node): Likewise.
3820         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
3821         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
3822         * tree-inline.c (estimate_operator_cost): Likewise.
3823         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
3824         to different address spaces are not useless.
3825
3826 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
3827
3828         PR bootstrap/41345
3829         * cfgcleanup.c (trivially_empty_bb_p): New function.
3830         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
3831
3832         PR debug/41828
3833         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
3834         add_name_and_src_coords_attributes, gen_namespace_die,
3835         dwarf2out_set_name): Handle dwarf2_name returning NULL.
3836
3837 2009-10-26  Nick Clifton  <nickc@redhat.com>
3838
3839         * config.gcc: Add support for RX target.
3840         * config/rx: New directory.
3841         * config/rx/constraints.md: New file.
3842         * config/rx/predicates.md: New file.
3843         * config/rx/rx.c: New file.
3844         * config/rx/rx.h: New file.
3845         * config/rx/rx.md: New file.
3846         * config/rx/rx.opt: New file.
3847         * config/rx/rx-protos.h: New file.
3848         * config/rx/t-rx: New file.
3849         * doc/extend.texi: Document RX function attributes.
3850         * doc/invoke.texi: Document RX specific command line options.
3851         * doc/contrib.texi: Document RX contribution.
3852         * doc/md.texi: Document RX constraints.
3853         * doc/install.texi: Document RX support.
3854
3855 2009-10-26  Michael Matz  <matz@suse.de>
3856
3857         PR tree-optimization/41783
3858         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
3859         case for simple diamonds.
3860         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
3861         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
3862         argument, use alias oracle to skip some vdefs.
3863         (phi_translate_1): Change call to above, don't allocate new
3864         value ids if they can stay the same.
3865         (compute_avail): Allow vuse walking when looking up references.
3866
3867 2009-10-26  Richard Guenther  <rguenther@suse.de>
3868
3869         PR tree-optimization/41826
3870         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
3871         access to re-allocated vector fields.
3872
3873 2009-10-26  Richard Guenther  <rguenther@suse.de>
3874
3875         * graphite-sese-to-poly.c (check_poly_representation): Fix
3876         compile without checking.
3877
3878 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
3879
3880         PR fortran/41714
3881         * gimple.h (tree_annotate_all_with_location): Remove prototype.
3882         * gimplify.c (tree_should_carry_location_p,
3883         tree_annotate_one_with_location,tree_annotate_all_with_location):
3884         Remove obsolete functions.
3885
3886 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3887
3888         PR target/41813
3889         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
3890
3891 2009-10-25  Richard Guenther  <rguenther@suse.de>
3892
3893         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3894         Stream DECL_RESTRICTED_P.
3895         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3896
3897 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
3898
3899         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
3900         a note when expanding to nothing.
3901
3902 2009-10-25  Richard Guenther  <rguenther@suse.de>
3903
3904         PR middle-end/41814
3905         * tree.c (find_decls_types_r): Deal with Java overloading
3906         BINFO_VIRTUALS for its own purpose.
3907
3908 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
3909
3910         * config/mips/predicates.md (hilo_operand): New predicate.
3911         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
3912         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
3913         splitter part from here ...:
3914         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
3915         op0 and op4 to match the DINS case.
3916         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
3917
3918 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
3919
3920         PR middle-end/19154
3921         * avr.md (QIDI): Add new mode iterator.
3922         (sbrx_branch<mode>): Create new zero extract bit, test and jump
3923         patterns for all QI thru DI modes combinations.
3924         (sbrx_and_branch<mode>): Create new and based bit test and jump
3925         patterns for QI thru SI modes.
3926         avr.c (avr_out_sbxx_branch): Use only bit number.
3927
3928 2009-10-24  Jan Hubicka  <jh@suse.cz>
3929
3930         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
3931         to memory.
3932         (analyze_function): When analyzing noreturn nothrow call, do not
3933         compute written stats; free bitmaps of vars early if possible.
3934         (generate_summary): Only update bitmaps if computed.
3935         (propagate): Only dump bitmaps if computed.
3936         (ipa_reference_read_summary): Fix pasto.
3937
3938 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3939
3940         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
3941         (aliasing_component_refs_p): ...this.  Return true if there is no
3942         common base and the base access types have the same alias set.
3943         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
3944         (indirect_refs_may_alias_p): Likewise.
3945
3946 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
3947
3948         PR c/40033
3949         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
3950         a C_MAYBE_CONST_EXPR.
3951
3952 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3953
3954         PR target/41787
3955         * config/rs6000/rs6000.c (struct machine_function): Add
3956         vsx_or_altivec_used_p to record if vector types are used.
3957         (rs6000_expand_to_rtl_hook): Rename from
3958         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
3959         any vector operations, so if there are, we can set VRSAVE to
3960         non-zero when only floating point vector registers are used.
3961         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
3962         (rs6000_check_vector_mode): Inner function to check if vector
3963         types are used in the code.
3964         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
3965         vector instructions are used.
3966
3967         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
3968         Indicate that VSX registers which overlap floating point
3969         registers, can't be used across a call, since the ABI only states
3970         the scalar part of the register will be saved and restored.
3971
3972 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
3973
3974         PR c/41673
3975         * alias.c (get_alias_set): Call langhook before returning 0 for
3976         types with structural equality.
3977         * c-common.c (c_common_get_alias_set): Use alias set of element
3978         type for arrays with structural comparison.
3979
3980 2009-10-23  Richard Guenther  <rguenther@suse.de>
3981
3982         PR middle-end/41805
3983         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
3984         gimple_call_nothrow_p.
3985
3986 2009-10-23  Richard Guenther  <rguenther@suse.de>
3987
3988         PR tree-optimization/41778
3989         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
3990         redundancy along a path in the CFG we want to optimize for speed
3991         is going to be removed.
3992         (execute_pre): Do partial-PRE only if the function is to be
3993         optimized for speed.
3994         (gate_pre): Do not turn off all of PRE when not optimizing a
3995         function for speed.
3996
3997 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3998
3999         * builtins.c (fold_builtin_cabs): Use validate_arg().
4000         (fold_builtin_cexp): Fix if-logic.
4001         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
4002
4003 2009-10-22  Jeff Law  <law@redhat.com>
4004
4005         * ira-lives.c (process_single_reg_class_operands): Update the
4006         hard reg costs for all the hard registers desired by the
4007         single reg class operand.
4008
4009 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4010
4011         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
4012         for rtxes that aren't handled specially.
4013
4014 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4015
4016         * rtl.h (shallow_copy_rtvec): Declare.
4017         * rtl.c (shallow_copy_rtvec): New function.
4018         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
4019         rtx field if the subrtx has changed.
4020
4021 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
4022
4023         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
4024         (m32c_function_value): Make static, add new 'outgoing' argument.
4025         (m32c_libcall_value): Make static, add new 'fun' argument.
4026         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4027         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4028         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
4029         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
4030         (m32c_function_value, m32c_libcall_value): Delete declaration.
4031
4032 2009-10-22  Diego Novillo  <dnovillo@google.com>
4033
4034         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
4035
4036 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4037
4038         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
4039         space.
4040
4041 2009-10-22  Richard Guenther  <rguenther@suse.de>
4042
4043         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
4044         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
4045         (lto_symtab_merge): Do not merge cgraph nodes here.
4046         (lto_symtab_resolve_can_prevail_p): Simplify.
4047         (lto_symtab_resolve_symbols): Store cgraph node.
4048         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
4049         functions from the symtab.
4050         (lto_symtab_merge_cgraph_nodes_1): New function.
4051         (lto_symtab_merge_cgraph_nodes): Likewise.
4052
4053 2009-10-22  Richard Guenther  <rguenther@suse.de>
4054
4055         PR lto/41791
4056         * lto-streamer-out.c (lto_output_location): Stream the
4057         system header flag.
4058         * lto-streamer-in.c (lto_input_location): Likewise.
4059
4060 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4061
4062         * cfgloopmanip.c (duplicate_subloops): Export.
4063         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
4064         (transform_to_exit_first_loop): Duplicate bbs starting from
4065         header up to loop->latch instead of exit->src.
4066         Initialize control variable to the correct number of iterations.
4067         (gather_scalar_reductions): Do not register double reductions.
4068         (parallelize_loops): Dump which loop is tested.
4069         Indicate whether the parallelized loop is inner or not.
4070         Remove the innermost-loop requirement.
4071         * cfgloop.h (duplicate_subloops): Export.
4072         * tree-cfg.c (add_phi_args_after_redirect): New function.
4073         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
4074         Call duplicate_subloops.
4075         Update number of iterations at the exit condition.
4076         Don't redirect nexits always to the loop exit.
4077         Redirect copied edges from latch to the loop exit.
4078
4079 2009-10-22  Jan Hubicka  <jh@suse.cz>
4080
4081         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
4082         flag_ltrans check.
4083         * ipa-inline.c (cgraph_mark_inline_edge,
4084         cgraph_decide_inlining_of_small_function,
4085         cgraph_decide_inlining, inline_read_summary): Disable indirect
4086         inlining for WPA for time being.
4087
4088         PR tree-optimize/40556
4089         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
4090
4091 2009-10-22  Richard Guenther  <rguenther@suse.de>
4092
4093         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
4094         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
4095
4096 2009-10-22  Jan Hubicka  <jh@suse.cz>
4097
4098         PR lto/41730
4099         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
4100         global vars.
4101         (check_call): Handle only indirect calls.
4102         (propagate_bits): Update comment.
4103         (write_node_summary_p): Turn bogus check to assert.
4104         (ipa_reference_write_summary): Stream calls_read_all properly.
4105         (ipa_reference_read_summary): Stream in calls_read_all properly.
4106         (read_write_all_from_decl): New function.
4107         (propagate): Handle OVERWRITABLE nodes and external calls here.
4108         * ipa-pre-const.c (check_call): In IPA mode handle indirect
4109         calls only.
4110         (analyze_function): Do not check visibility here.
4111         (add_new_function): We summary OVERWRITABLE too.
4112         (generate_summary): Stream OVERWRITABLE nodes too.
4113         (propagate): Handle external calls and OVERWRITABLE nodes here.
4114         (local_pure_const): Check visibility here.
4115
4116 2009-10-22  Jan Hubicka  <jh@suse.cz>
4117
4118         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
4119         (pass_ipa_cp): Register them.
4120         (ipcp_init_stage): Analyze all functions for whopr/lto.
4121         (ipcp_propagate_stage): Skip external calls.
4122         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
4123         * ipa-reference.c (write_node_summary_p): Fix thinko about
4124         availability.
4125         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
4126         when in ltrans, skip executing of ipa passes since everything
4127         should've been done.
4128         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
4129         (inline_generate_summary): Likewise.
4130         (inline_read_summary): New function.
4131         (inline_write_summary): New function.
4132         (pass_ipa_inline): Register new hooks.
4133         * ipa-prop.c: Inlcude lto-streamer.h
4134         (ipa_edge_args_vector): Update declaration.
4135         (ipa_count_arguments, ipa_compute_jump_functions,
4136         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
4137         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
4138         ipa_read_node_info): New static functions.
4139         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
4140         (duplicate_array): Use xmalloc.
4141         (duplicate_ggc_array): New.
4142         (ipa_edge_duplication_hook): Use it.
4143         (ipa_update_after_lto_read): New function.
4144         * ipa-prop.h (ipa_prop_write_jump_functions,
4145         ipa_prop_read_jump_functions): Declare.
4146         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
4147         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
4148         (ipa_edge_args_vector): Move into GGC.
4149         (ipa_check_create_edge_args): Update.
4150         (ipa_update_after_lto_read): New.
4151         * passes.c (ipa_write_summaries_1): When in wpa, do not write
4152         summaries.
4153         (ipa_read_summaries): When in ltrans, so not read summaries.
4154         * lto-streamer.c (lto_get_section_name): Add
4155         LTO_section_jump_functions.
4156         * lto-streamer.h (LTO_section_jump_functions): New section.
4157         (produce_asm): Declare.
4158         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
4159         * lto-streamer-out.c (produce_asm): Export.
4160         * lto-streamer-in.c: Include tree-pass.h
4161         (input_function): Free dominance info when done.
4162         (lto_read_body): Push ipa_inline in ltrans stage.
4163         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
4164         * Makefile.in (GTFILES): Add ipa-prop.h
4165
4166 2009-10-22  Matthias Klose  <doko@ubuntu.com>
4167
4168         * doc/install.texi: Document --enable-browser-plugin.
4169
4170 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
4171
4172         * doc/invoke.texi (fira-loop-pressure): Update default value.
4173         * opts.c (decode_options): Remove default value setting for
4174         flag_ira_loop_pressure.
4175         * config/ia64/ia64.c (ia64_override_options): Set
4176         flag_ira_loop_pressure up for -O3.
4177         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
4178
4179 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
4180
4181         PR tree-optimization/41497
4182         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
4183         chrec_dont_know if the evolution function returned by follow_ssa_edge
4184         is constant in the analyzed loop and is not compatible with the
4185         initial value before the loop.
4186         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
4187
4188 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
4189
4190         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
4191
4192 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
4193
4194         PR other/25507
4195         * doc/invoke.texi: Document -print-multi-os-directory.
4196
4197 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
4198
4199         PR c++/41313
4200         * gcc/config/darwin10.h: Use default_emit_unwind_label.
4201         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
4202         when darwin_emit_unwind_label is used.
4203
4204 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4205
4206         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
4207         order of checks.
4208
4209 2009-10-20  Richard Henderson  <rth@redhat.com>
4210
4211         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
4212         before emit_post_landing_pad.
4213
4214 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
4215
4216         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
4217         Use when calling rtx_costs.
4218         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
4219         global optimize_size.  Pass speed to mips_binary_cost.
4220
4221 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4222
4223         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
4224         of TREE_CONSTANT.
4225
4226 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
4227
4228         * rtl.h (simplify_replace_fn_rtx): Declare.
4229         (wrap_constant, unwrap_constant): Delete.
4230         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
4231         (expand_debug_expr): Don't call wrap_constant.
4232         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
4233         (auto_adjust_pair): Fold into...
4234         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
4235         Just return a new value.
4236         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
4237         otherwise use simplify_replace_rtx.
4238         * cselib.c (wrap_constant): Reinstate old definition.
4239         (cselib_expand_value_rtx_1): Don't wrap constants.
4240         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
4241         simplify_replace_rtx.
4242         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
4243         * reload1.c (reload): Skip all uses for an insn before adjusting it.
4244         Use simplify_replace_rtx.
4245         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
4246         adapted from...
4247         (simplify_replace_rtx): ...here.  Turn into a wrapper for
4248         simplify_replace_fn_rtx.
4249         (simplify_unary_operation): Don't unwrap CONSTs.
4250         * var-tracking.c (check_wrap_constant): Delete.
4251         (vt_expand_loc_callback): Don't call it.
4252         (vt_expand_loc): Likewise.
4253
4254 2009-10-20  Pascal Obry  <obry@adacore.com>
4255             Eric Botcazou  <ebotcazou@adacore.com>
4256
4257         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
4258
4259 2009-10-20  Michael Matz  <matz@suse.de>
4260
4261         * loop-invariant.c (create_new_invariant): Use different magic number.
4262
4263 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
4264
4265         PR target/39247
4266         * arm.c (arm_override_options): Forcibly disable hot/cold block
4267         partitioning.
4268
4269 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4270
4271         PR debug/41739
4272         * haifa-sched.c (try_ready): Skip debug deps updating speculation
4273         status.
4274
4275 2009-10-20  Richard Guenther  <rguenther@suse.de>
4276
4277         * ggc-page.c: Include cfgloop.h.
4278         (struct max_alignment): Drop long double, add void *.
4279         (extra_order_size_table): Add low non-power-of-two multiples
4280         of MAX_ALIGNMENT.  Drop small type-based entries, add
4281         tree_type, cgraph_node and loop.
4282         * alloc-pool.c (struct allocation_object_def): Drop long double
4283         aligning element.
4284
4285 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4286
4287         PR debug/41340
4288         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
4289         referenced just in DEBUG_INSNs.
4290
4291 2009-10-20  Richard Guenther  <rguenther@suse.de>
4292
4293         PR lto/41761
4294         * gimple.c (gimple_register_type): Make sure we register
4295         the types main variant first.
4296
4297 2009-10-20  Richard Guenther  <rguenther@suse.de>
4298
4299         * gimple.c (gimple_types_compatible_p): Simplify.  Move
4300         cheap checks before hashtable queries.  Add checks for
4301         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
4302
4303 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4304
4305         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
4306         without size or with size that can't be represented as a host integer.
4307
4308 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4309
4310         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
4311         the removal of a debug stmt as a significant change.
4312
4313 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
4314
4315         * config/s390/s390.md: Added agen condition to operand
4316         forwarding bypasses.  Added bypass for early address generation
4317         use of int results.  Updated comments.
4318
4319 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
4320
4321         * config/i386/i386.c: Remove signal.h #include.
4322
4323 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
4324
4325         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
4326         * doc/rtl.texi: Document ss_abs.
4327
4328 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4329
4330         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
4331         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
4332         instead of C_LEX_RAW_STRINGS.
4333         (lex_string): Handle CPP_UTF8STRING.
4334         * c-parser.c (c_parser_postfix_expression): Likewise.
4335         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
4336         (C_LEX_STRING_NO_JOIN): ... this.
4337
4338 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
4339
4340         * config/cris/cris.c (cris_function_value, cris_libcall_value,
4341         cris_function_value_regno_p): New functions.
4342         (cris_promote_function_mode): Update comment.
4343         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4344         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4345         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
4346         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
4347
4348 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4349
4350         * unwind-dw2.c (execute_stack_op): Fix operand order for
4351         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
4352
4353 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4354
4355         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
4356         (lower_stmt) <GIMPLE_BIND>: Add comment.
4357         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
4358         and return.
4359         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
4360         Otherwise lower it and set cannot_fallthru to true.
4361         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
4362         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
4363         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
4364         to true for a noreturn call.  Do not remove statements.
4365         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
4366         Set cannot_fallthru to false on function exit.
4367         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
4368         <GIMPLE_ASSIGN>: Remove.
4369
4370 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4371
4372         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
4373
4374 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4375
4376         * config/s390/s390.c (s390_z10_optimize_cmp): Use
4377         next/prev_active_insn to skip DEBUG_INSNs as well.
4378
4379 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
4380
4381         * config/arm/arm.c (output_move_neon): Use DImode in call to
4382         adjust_address.
4383
4384 2009-10-19  Matthias Klose  <doko@ubuntu.com>
4385
4386         PR target/40134
4387         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
4388
4389 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4390
4391         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
4392
4393 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4394
4395         PR middle-end/41738
4396         * optabs.c (expand_binop): Make mode of shift count expression mode
4397         of shift count not target.
4398         Remove indent nit.
4399
4400 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4401
4402         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
4403         case.  Force using values to replace references within the statement.
4404         (convert_local_reference_stmt): Likewise.
4405
4406 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4407
4408         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
4409         remove a subsequent GOTO or RETURN statement.
4410
4411 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
4412
4413         * config/avr.md (*movqi): Add zero as equally preferable constraint
4414         as general register.
4415         (*movhi): Ditto.
4416
4417 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4418
4419         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
4420
4421 2009-10-17  Richard Guenther  <rguenther@suse.de>
4422
4423         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
4424
4425 2009-10-17  Richard Guenther  <rguenther@suse.de>
4426
4427         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
4428         operands in COMPONENT_REFs.
4429
4430 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
4431
4432         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
4433         if not defined. Change type of second argument to const_rtx.
4434         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
4435         macro not defined.
4436         * targhooks.h (default_libcall_value): Update prototype.
4437         * target.h (struct gcc_target): Change type of second argument of
4438         libcall_value to const_rtx.
4439         * config/arm/arm.c (arm_libcall_value): Change type of second argument
4440         to const_rtx.
4441         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
4442         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
4443
4444 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
4445
4446         PR debug/40521
4447         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
4448         * cgraphunit.c (cgraph_optimize): Call it.
4449         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
4450         (dwarf2out_assembly_start): ... here.  New hook.
4451         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
4452         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
4453         hook.
4454         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4455         * sdbout.c (sdb_debug_hooks): Likewise.
4456         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
4457         (vmsdbgout_assembly_start): New hook.
4458
4459 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4460
4461         * rtl.h (RTL_LOCATION): Fix typo.
4462
4463 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4464
4465         * print-rtl.c (print_rtx): Print locators in asm_operands
4466         and asm_input.
4467
4468 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4469
4470         PR debug/41535
4471         * sched-deps.c (depl_on_debug_p): New.
4472         (attach_dep_link): Reject debug deps before nondebug deps.
4473         (add_to_deps_list): Insert debug deps after nondebug deps.
4474         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
4475         deps.
4476         (sd_add_dep): Do not reject debug deps.
4477         (add_insn_mem_dependence): Don't count debug deps.
4478         (remove_from_deps): Likewise.
4479         (sched_analyze_2): Set up mem deps on debug insns.
4480         (sched_analyze_insn): Record reg uses for deps on debug insns.
4481         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
4482         try_ready nondebug insn after debug insn.
4483         * ddg.c (create_ddg_dep_from_intra_loop_link,
4484         create_ddg_dep_no_link): Don't reject debug deps.
4485
4486 2009-10-16  Richard Guenther  <rguenther@suse.de>
4487
4488         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
4489         (maybe_merge_incomplete_and_complete_type): Likewise.
4490         (lto_symtab_merge): Do not call them.  Do not warn for
4491         complete vs. incomplete compatible types.
4492         (lto_symtab_merge_decls_2): Simplify.
4493         * gimple.c (gimple_force_type_merge): Remove.
4494         (gimple_types_compatible_p): Make it static.
4495         * gimple.h (gimple_force_type_merge): Remove.
4496         (gimple_types_compatible_p): Likewise.
4497
4498 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
4499
4500         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
4501         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
4502
4503 2009-10-16  Richard Guenther  <rguenther@suse.de>
4504
4505         PR tree-optimization/41728
4506         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
4507         if fold_stmt did anything.
4508
4509 2009-10-16  Richard Guenther  <rguenther@suse.de>
4510
4511         PR lto/41715
4512         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
4513         (maybe_fixup_handled_component): New function.
4514         (input_gimple_stmt): Fixup mismatched decl replacements.
4515
4516 2009-10-16  Richard Guenther  <rguenther@suse.de>
4517
4518         PR lto/41713
4519         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
4520         the same as VAR_DECL.
4521
4522 2009-10-16  Richard Guenther  <rguenther@suse.de>
4523
4524         * gimple.c (iterative_hash_gimple_type): For integer types
4525         also hash their minimum and maximum values and the string flag.
4526         For array types hash their domain and the string flag.
4527
4528 2009-10-16  Richard Guenther  <rguenther@suse.de>
4529
4530         * gimple.c (gimple_types_compatible_p): Restrict completing
4531         types to record or unions.  Simplify completion.
4532         Do not merge records or unions with different
4533         TYPE_STRUCTURAL_EQUALITY_P tag.
4534         (iterative_hash_gimple_type): Restrict non-recursing into
4535         pointer targets for records and unions.
4536
4537 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4538
4539         PR debug/41717
4540         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
4541         * dwarf2out.c (mem_loc_descriptor): Don't handle
4542         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
4543         punt if it is not lowpart subreg or if inner mode isn't
4544         MODE_INT.
4545
4546 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4547
4548         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
4549         investigating previous or next insns.
4550
4551 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4552
4553         * tree-sra.c (build_ref_for_offset_1): Update comment.
4554
4555 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
4556
4557         * config/s390/s390.md (atype): Added missing values.
4558
4559 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4560
4561         PR target/41702
4562         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
4563         (casesi64p): Update pattern to reflect above.
4564
4565 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
4566
4567         PR rtl-optimization/41697
4568         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
4569
4570 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4571
4572         PR target/23983
4573         * config/rs6000/predicates.md: Update copyright year.
4574         * config/rs6000/altivec.md: Ditto.
4575
4576         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
4577         (MD_INCLUDES): Add a2.md.
4578
4579         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
4580         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
4581         (builtin_classify): New static vector to classify various builtins
4582         to get the tree attributes correct.
4583         (def_builtin): Set the attributes of builtins based on what the
4584         builtin does (i.e. memory operation, floating point, saturation
4585         need special attributes, others are pure functions).
4586
4587         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
4588         the builtins.
4589         (enum rs6000_builtins): Include rs6000-builtin.def to define the
4590         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
4591         RS6000_BUILTIN_COUNT.
4592         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
4593         MAX_RS6000_BUILTINS.
4594
4595         * config/rs6000/rs6000-builtin.def: New file that combines the
4596         builtin enumeration name and attributes.
4597
4598 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4599
4600         * config/i386/linux.h (ASM_SPEC): Add --32.
4601
4602 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4603
4604         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
4605         and DW_TAG_template_alias.
4606         (dwarf_attr_name): Handle DW_AT_main_subprogram,
4607         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
4608         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
4609         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
4610         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
4611         and DW_AT_GNU_odr_signature.
4612         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
4613         DW_FORM_flag_present and DW_FORM_ref_sig8.
4614         (output_signature): Only print name on the first byte.
4615         (output_die): Likewise for dw_val_class_data8.
4616
4617 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
4618
4619         * doc/invoke.texi: Clarify that most optimizations are not enabled
4620         without -O.
4621
4622 2009-10-15  Richard Guenther  <rguenther@suse.de>
4623
4624         PR lto/41668
4625         * gimple.c (compare_type_names_p): Handle anonymous names
4626         differently based on new mode argument.
4627         (gimple_types_compatible_p): For structs also compare the tags.
4628         (iterative_hash_type_name): Rename to ...
4629         (iterative_hash_name): ... this.  Hash all names.
4630         (iterative_hash_gimple_type): Fix hashing the struct tag of
4631         pointer targets.  Hash field decl names.
4632
4633 2009-10-15  Richard Guenther  <rguenther@suse.de>
4634
4635         PR lto/41669
4636         * gimple.c (gimple_get_alias_set): Avoid recursing on
4637         invalid type topology.
4638
4639 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4640
4641         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
4642
4643 2009-10-15  Richard Guenther  <rguenther@suse.de>
4644
4645         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
4646
4647 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4648
4649         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
4650         add --with-tune{,-32,-64} configured default for -mtune if explicit
4651         -mcpu is used.
4652
4653 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
4654
4655         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
4656
4657 2009-10-14  DJ Delorie  <dj@redhat.com>
4658
4659         * config/h8300/h8300.c (F): New.
4660         (Fpa): New.
4661         (h8300_emit_stack_adjustment): Call them.
4662         (push): Likewise.
4663         (h8300_push_pop): Likewise.
4664         (h8300_expand_prologue): Likewise.
4665         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
4666         (MUST_USE_SJLJ_EXCEPTIONS): Define.
4667         (INCOMING_RETURN_ADDR_RTX): Define.
4668         (INCOMING_FRAME_SP_OFFSET): Define.
4669         (DWARF_CIE_DATA_ALIGNMENT): Define.
4670
4671 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4672
4673         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
4674         fields in builtin structs.
4675         (finalize_record_size): Likewise.
4676
4677 2009-10-14  Richard Guenther  <rguenther@suse.de>
4678
4679         * gimple.c (gtc_ob): New global.
4680         (struct type_pair_d): Replace pointers with type UIDs.
4681         (type_pair_hash): Adjust.
4682         (type_pair_eq): Likewise.
4683         (lookup_type_pair): Likewise.  Allocate from an obstack.
4684         (gimple_force_type_merge): Adjust.
4685         (gimple_types_compatible_p): Likewise.
4686         (free_gimple_type_tables): Free the obstack.
4687
4688 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4689
4690         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
4691         stmts setting DEBUG_EXPR_DECLs.
4692
4693         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
4694         Don't crash if mode1 is VOIDmode.
4695
4696 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
4697
4698         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
4699         * params.h (IRA_LOOP_RESERVED_REGS): New.
4700         * tree-pass.h (pass_subregs_of_mode_init,
4701         pass_subregs_of_mode_finish): Remove.
4702         * passes.c (pass_subregs_of_mode_init,
4703         pass_subregs_of_mode_finish): Remove.
4704         (pass_reginfo_init): Move before loop optimizations.
4705         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
4706         * common.opt (fira-loop-pressure): New.
4707         * toplev.h (flag_ira_loop_pressure): New.
4708         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
4709         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
4710         Make external and void type functions.
4711         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
4712         pass_subregs_of_mode_finish): Remove.
4713         * ira-costs.c (init_costs): Call init_subregs_of_mode.
4714         * regmove.c: Include ira.h.
4715         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
4716         register pressure calculation in loops.
4717         * loop-invariant.c: Include REGS_H and ira.h.
4718         (struct loop_data): New members max_reg_pressure, regs_ref, and
4719         regs_live.
4720         (struct invariant): New member orig_regno.
4721         (curr_loop): New variable.
4722         (find_exits): Initialize regs_ref and regs_live.
4723         (create_new_invariant): Initialize orig_regno.
4724         (get_cover_class_and_nregs): New.
4725         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
4726         array.  Add code for flag_ira_loop_pressure.
4727         (gain_for_invariant): Make new_regs an array.  Add code for
4728         flag_ira_loop_pressure.
4729         (best_gain_for_invariant): Ditto.
4730         (set_move_mark): New parameter gain.  Use it for debugging output.
4731         (find_invariants_to_move): Make regs_needed and new_regs an array.
4732         Add code for flag_ira_loop_pressure.
4733         (move_invariant_reg): Set up orig_regno.
4734         (move_invariants): Set up reg classes for pseudos for
4735         flag_ira_loop_pressure.
4736         (free_loop_data): Clear regs_ref and regs_live.
4737         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
4738         get_regno_cover_class, change_pressure, mark_regno_live,
4739         mark_regno_death, mark_reg_store, mark_reg_clobber,
4740         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
4741         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
4742         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
4743         register pressure calculation in loops if new regs were added.
4744         Call finish_subregs_of_mode.
4745         * opts.c (decode_options): Set up flag_ira_loop_pressure.
4746         * Makefile.in (loop-invariant.o): Add ira.h.
4747         (regmove.o): Ditto.
4748         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
4749         Describe.
4750         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
4751
4752 2009-10-14  Richard Guenther  <rguenther@suse.de>
4753
4754         * lto-symtab.c (lto_symtab_compatible): Fold in ...
4755         (lto_symtab_merge): ... here.  Rewrite both to take the
4756         prevailing and a to-be-merged entry and to queue diagnostics properly.
4757         (lto_symtab_resolve_replaceable_p): New predicate for
4758         symbol resolution.
4759         (lto_symtab_resolve_can_prevail_p): Likewise.
4760         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
4761         handles merging commons by choosing the largest decl.  Fold
4762         in code that gives ODR errors.
4763         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
4764         diagnostics here.
4765         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
4766         case of no prevailing decl here.  Diagnose mismatches
4767         in object types here.  Drop all but the prevailing decls.
4768         (lto_symtab_prevailing_decl): Return the single prevailing decl.
4769         * lto-streamer-in.c (lto_input_tree_ref): Deal with
4770         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
4771
4772 2009-10-14  Richard Guenther  <rguenther@suse.de>
4773
4774         PR lto/41521
4775         * lto-streamer-in.c (input_bb): Replace debug stmts with
4776         nops instead of dropping them.
4777
4778 2009-10-14  Nick Clifton  <nickc@redhat.com>
4779
4780         * gcc/doc/extended.texi: Replace the dash character with @minus{}
4781         in situations where it is being used as a minus symbol.
4782         * gcc/doc/tm.texi: Likewise.
4783         * gcc/doc/md.texi: Likewise.
4784
4785 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4786
4787         PR preprocessor/41543
4788         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
4789         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
4790         * tree.c: Include intl.h.
4791         (expand_location): Handle BUILTINS_LOCATION.
4792         * Makefile.in (tree.o): Depend on intl.h.
4793
4794         PR debug/41695
4795         * dwarf2out.c (dwarf2out_var_location): Always clear
4796         last_postcall_label when changing last_label.
4797
4798 2009-10-14  Pascal Obry  <obry@adacore.com>
4799
4800         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
4801         (process_command): Handle -E as done with -c and -S.  Do not add
4802         the target executable suffix to the output file when -E is used.
4803         (main): Adjust error message accordingly.
4804
4805 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
4806
4807         PR debug/41343
4808         PR debug/41447
4809         PR debug/41264
4810         PR debug/41338
4811         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
4812         decl with rtl.
4813         (tree_code_size): Likewise.
4814
4815 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4816
4817         * builtins.c (fold_builtin_1): Support complex "arc" functions.
4818         * real.h (HAVE_mpc_arc): Define.
4819
4820 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
4821
4822         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
4823         (struct builtin_description): Add fndecl field.
4824         (bdesc): Remove const qualifier.  Update initializer.
4825         (sh_media_init_builtins): Remove const qualifier for d.  Record
4826         the result of add_builtin_function to the fndecl field.
4827         (sh_builtin_decl): New.
4828         (sh_media_builtin_decl): New.
4829
4830 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
4831
4832         PR target/38948
4833         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
4834         requests between special registers.
4835
4836 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4837
4838         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
4839
4840 2009-10-13  Richard Henderson  <rth@redhat.com>
4841
4842         PR tree-optimization/41377
4843         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
4844         (cleanup_empty_eh_merge_phis): New change_region parameter;
4845         pass it on to redirect_eh_edge_1.  Update callers.
4846         (cleanup_empty_eh_unsplit): Don't require an existing EH label
4847         at the destination block.
4848
4849 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
4850
4851         * passes.c (register_pass): Replaced gcc_unreachable by
4852         fatal_error on failure. Mentions plugins in comments & messages.
4853
4854 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
4855
4856         PR target/41693
4857         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
4858         * sched-vis.c (print_value): Use it.
4859         * cselib.c (cselib_hash_rtx): Likewise.
4860         * print-rtl.c (print_rtx): Likewise.
4861         * cfgexpand.c (expand_debug_rtx): Likewise.
4862         * var-tracking.c (vt_expand_loc_callback): Likewise.
4863
4864 2009-10-13  Richard Guenther  <rguenther@suse.de>
4865
4866         PR lto/41565
4867         * opts.c (handle_option): Split out code to handle setting
4868         the options flag var ...
4869         (set_option): ... here.
4870         * opts.h (set_option): Declare.
4871         * lto-opts.c (register_user_option_p): Include -fexceptions
4872         and all position independent code variants.
4873         (handle_common_option): Remove.
4874         (lto_reissue_options): Use set_option.
4875
4876 2009-10-13  Martin Jambor  <mjambor@suse.cz>
4877
4878         PR tree-optimization/41661
4879         * ipa-prop.c (compute_complex_pass_through): Allow only operations
4880         that are tcc_comparisons or do not change the type in any
4881         un-usleless way.
4882         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
4883         folding tcc_comparison operations.
4884
4885 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4886
4887         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
4888         properly.
4889
4890 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
4891
4892         PR debug/41343
4893         PR debug/41447
4894         PR debug/41264
4895         PR debug/41338
4896         * tree.def (DEBUG_EXPR_DECL): New.
4897         * rtl.def (DEBUG_EXPR): New.
4898         * gengtype.c (adjust_field_rtx_def): Handle it.
4899         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
4900         (insert_debug_temp_for_var_def): ... this.  Drop support for
4901         moving.  Take iterator for def stmt; insert debug stmt before it.
4902         Scan early for use count and kind in debug stmts.
4903         (propagate_defs_into_debug_stmts): Rename to...
4904         (insert_debug_temps_for_defs): ... this.  Likewise.
4905         * tree.h (DEBUG_TEMP_UID): New.
4906         * tree.c (next_debug_decl_uid): New.
4907         (make_node_stat): Count debug decls separately.
4908         (copy_node_stat): Likewise.
4909         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
4910         * var-tracking.c (dv_is_decl_p): Recognize it.
4911         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
4912         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
4913         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
4914         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
4915         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
4916         (cselib_hash_rtx): Likewise.
4917         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
4918         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
4919         debug bind stmts.
4920         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
4921         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
4922         * rtl.c (copy_rtx): Likewise.
4923         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
4924         * print-rtl.c (print_rtx): Likewise.
4925         * sched-vis.c (print_value): Likewise.
4926         (print_insn): Handle DEBUG_EXPR_DECL.
4927         * tree-dump.c (dequeue_and_dump): Likewise.
4928         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
4929         * gimple-iterator (gsi_replace): Check for same lhs.
4930         (gsi_remove): Insert debug temps.
4931         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
4932         (move_computations_stmt): Drop explicit propagation into debug stmts.
4933         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
4934         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
4935         * tree-ssa-sink.c (statement_sink_location): Likewise.
4936         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
4937         * tree-ssanames.c (release_ssa_name): Adjust for rename.
4938         * tree-flow.h: Likewise.
4939         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
4940         debug temps without values.
4941         (eliminate_unnecessary_stmts): Don't discard just-inserted
4942         debug stmts.
4943
4944 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
4945
4946         PR target/26515
4947         * config/cris/cris.md (andu): Check that operand 1 is one of the
4948         general registers.  Fix typo in head comment.
4949
4950 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
4951
4952         * config/i386/i386.md (vswapmov): New.
4953         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
4954         (ix86_function_ms_hook_prologue): New.
4955         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
4956         * configure.ac: Test for swap suffix support in as.
4957         * configure: Rebuild.
4958
4959 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
4960
4961         PR target/41680
4962         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
4963         paradoxical subregs to prevent partial register stalls if the inner
4964         mode is integer mode.
4965
4966 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
4967
4968         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
4969
4970 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
4971
4972         PR c++/41570
4973         * gcc/dwarf2out.c (template_parameter_pack_die,
4974         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
4975
4976 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
4977
4978         PR debug/41616
4979         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
4980         on updates too.
4981         (maybe_register_def): Likewise.  Take stmt iterator.
4982         (rewrite_update_stmt): Take stmt iterator and pass it on.
4983         (rewrite_update_enter_block): Pass stmt iterator.
4984
4985 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4986
4987         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
4988         (spu_builtin_decl): New function.
4989
4990 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
4991
4992         * config/i386/i386.md (SWIM): New mode iterator.
4993         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
4994         using SWIM mode iterator.
4995         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
4996         patterns using SWI48 mode iterator.
4997         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
4998         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
4999         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
5000         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
5001         patterns using SWI248 mode iterator.
5002         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
5003         gen_x86_movdicc_0_m1_rex64 for renamed function
5004
5005 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
5006             Eric Botcazou  <ebotcazou@adacore.com>
5007
5008         PR target/33743
5009         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
5010         * config/sparc/sol2-unwind.h: New file.
5011
5012 2009-10-11  Olivier Hainque  <hainque@adacore.com>
5013             Eric Botcazou  <ebotcazou@adacore.com>
5014
5015         PR target/33743
5016         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
5017         * config/i386/sol2-unwind.h: New file.
5018
5019 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5020
5021         PR target/41665
5022         * config/i386/i386.md (addsi_1_zext): Get the proper second
5023         operand for lea.
5024
5025 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
5026
5027         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
5028         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
5029         replacement value.
5030
5031 2009-10-11  Richard Guenther  <rguenther@suse.de>
5032
5033         * gimple.c (iterative_hash_type_name): Do not handle special
5034         anonymous names.
5035
5036 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
5037
5038         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
5039         (*setcc_si_1_and): Ditto.
5040         (*setcc_si_1_movzbl): Ditto.
5041         (*setcc_<mode>_2): Ditto.
5042         (*setcc_qi): Rename from *setcc_1.
5043         (*setcc_qi_slp): Rename from *setcc_2.
5044
5045         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
5046         (*zero_extendqisi2_movzbw_and splitter): Ditto.
5047
5048         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
5049         "if" condition, there is already assert with reload_completed present.
5050
5051 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
5052
5053         * plugin.c (try_init_one_plugin): Improve constness of variable err.
5054
5055 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
5056
5057         * doc/install.texi (Final install): Refer to
5058         http://gcc.gnu.org/bugs/ for bug reporting.
5059
5060 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
5061
5062         * configure.ac: Add test for dci instruction.
5063         * configure: Regenerate.
5064         * config.in: Likewise.
5065         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
5066         * doc/invoke.texi: Add cpu_type 476 and 476fp.
5067         (-mmulhw): Add 476 to description.
5068         (-mdlmzb): Likewise.
5069         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
5070         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
5071         (processor_target_table): Add 476 and 476fp entries.
5072         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
5073         (rs6000_issue_rate): Add CPU_PPC476.
5074         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
5075         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
5076         (processor_type): Add PROCESSOR_PPC476.
5077         (EXTRA_SPECS): Add asm_cpu_476 string.
5078         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
5079         (define_attr "cpu"): Add ppc476.
5080         Include 476.md.
5081         Update comments for 476.
5082         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
5083         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
5084         Update copyright year.
5085         * config/rs6000/476.md: New file.
5086         * config/rs6000/40x.md: Add description for "isel" attribute.
5087         Update copyright year.
5088         * config/rs6000/440.md: Likewise.
5089         * config/rs6000/603.md: Likewise.
5090         * config/rs6000/6xx.md: Likewise.
5091         * config/rs6000/7450.md: Likewise.
5092         * config/rs6000/7xx.md: Likewise.
5093         * config/rs6000/8540.md: Likewise.
5094         * config/rs6000/cell.md: Likewise.
5095         * config/rs6000/e300c2c3.md: Likewise.
5096         * config/rs6000/e500mc.md: Likewise.
5097         * config/rs6000/mpc.md: Likewise.
5098         * config/rs6000/power4.md: Likewise.
5099         * config/rs6000/power5.md: Likewise.
5100         * config/rs6000/power6.md: Likewise.
5101         * config/rs6000/power7.md: Likewise.
5102         * config/rs6000/rios1.md: Likewise.
5103         * config/rs6000/rios2.md: Likewise.
5104         * config/rs6000/rs64.md: Likewise.
5105
5106 2009-10-10  Richard Guenther  <rguenther@suse.de>
5107
5108         PR tree-optimization/41654
5109         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
5110         a cond expr before calling gimple_cond_set_condition_from_tree.
5111         (ifcombine_iforif): Likewise.
5112
5113 2009-10-09  Ian Lance Taylor  <iant@google.com>
5114
5115         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
5116         * configure: Rebuild.
5117
5118 2009-10-09  Neil Vachharajani <nvachhar@google.com>
5119
5120         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
5121         deprecated.
5122
5123 2009-10-09  Richard Guenther  <rguenther@suse.de>
5124
5125         PR lto/41638
5126         * target-def.h (TARGET_BUILTIN_DECL): Define.
5127         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
5128         * target.h (struct gcc_target): Add builtin_decl target hook.
5129         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
5130         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
5131         target builtins.
5132         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
5133         not gcc_unreachable.
5134         (lto_output_builtin_tree): Sorry if the target does not support
5135         streaming target builtins.
5136         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
5137         (rs6000_builtin_decl): New function.
5138         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
5139         (ix86_builtin_decl): New function.
5140
5141 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
5142
5143         PR preprocessor/41445
5144         * c-ppoutput.c (do_line_change): New function.
5145         (cb_line_change): Use it.
5146         (scan_translation_unit): Call do_line_change if
5147         avoid_paste or PREV_WHITE and token location is on a different line
5148         than print.src_line.
5149
5150         PR debug/40521
5151         * dwarf2out.c (dwarf2out_init): Test whether
5152         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
5153         it is defined.
5154
5155         PR rtl-optimization/41646
5156         * calls.c (expand_call): For BLKmode types returned in registers
5157         avoid likely spilled hard regs in copy_blkmode_from_reg generated
5158         insns.
5159
5160 2009-10-09  Richard Guenther  <rguenther@suse.de>
5161
5162         PR tree-optimization/41634
5163         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
5164         we remove the correct elements.
5165         (optimize_stmt): Make sure to update stmt operands before
5166         optimizing redundancies.
5167
5168 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5169
5170         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
5171
5172 2009-10-09  Richard Guenther  <rguenther@suse.de>
5173
5174         PR driver/41637
5175         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
5176         globals.
5177         (lto_wrapper_exit): New function.
5178         (fatal): Use it.
5179         (fatal_perror): Likewise.
5180         (fork_execute): Use global args_name, do not free it.
5181         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
5182         * lto-streamer.h: Remove duplicate prototypes.
5183
5184 2009-10-09  Richard Guenther  <rguenther@suse.de>
5185
5186         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
5187         before calling stmt_can_throw_external.
5188
5189 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5190
5191         PR tree-optimization/40071
5192         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
5193         pointer if the original data reference doesn't conflict with the
5194         created vector data reference.  Fix long line.
5195
5196 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
5197
5198         * config/i386/i386.md (any_div): New code iterator.
5199         (u): Handle div and udiv.
5200         (sgnprefix): Ditto.
5201         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
5202         code iterator.
5203         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
5204         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
5205         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
5206         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
5207
5208 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
5209
5210         * gcc.c (main): Remove trailing "." from diagnostics.
5211
5212 2009-10-08  Cary Coutant  <ccoutant@google.com>
5213
5214         Add support for debugging with ICF (Identical Code Folding).
5215         * calls.c (debug.h): New #include.
5216         (emit_call_1): Call virtual_call_token debug hook.
5217         * common.opt (-fenable-icf-debug): New option.
5218         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
5219         locations in the source).
5220         (poc_label_num): New variable.
5221         (dcall_entry, vcall_entry): New typedefs.
5222         (dcall_table, vcall_table): New variables.
5223         (struct vcall_insn): New type.
5224         (vcall_insn_table): New variable.
5225         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
5226         (size_of_dcall_table): New function.
5227         (output_dcall_table): New function.
5228         (size_of_vcall_table): New function.
5229         (output_vcall_table): New function.
5230         (dwarf2out_direct_call): New function.
5231         (vcall_insn_table_hash): New function.
5232         (vcall_insn_table_eq): New function.
5233         (dwarf2out_virtual_call_token): New function.
5234         (dwarf2out_virtual_call): New function.
5235         (dwarf2out_init): Allocate new tables and sections.
5236         (prune_unused_types): Mark DIEs referenced from direct call table.
5237         (dwarf2out_finish): Output direct and virtual call tables.
5238         * final.c (final_scan_insn): Call direct_call and virtual_call
5239         debug hooks.
5240         * debug.h (struct gcc_debug_hooks): Add direct_call,
5241         virtual_call_token, virtual_call hooks.
5242         (debug_nothing_uid): New function.
5243         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
5244         (debug_nothing_uid): New function.
5245         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
5246         (xcoff_debug_hooks): Likewise.
5247         * sdbout.c (sdb_debug_hooks): Likewise.
5248         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5249         * doc/invoke.texi (-fenable-icf-debug): New option.
5250
5251 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
5252
5253         PR debug/41353
5254         * regmove.c (regmove_backward_pass): Replace src with dst in the
5255         debug insn, and check for dst before rather than after.
5256
5257 2009-10-08  Janis Johnson <janis187@us.ibm.com>
5258
5259         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
5260         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
5261
5262 2009-10-08  Jan Hubicka  <jh@suse.cz>
5263
5264         PR middle-end/41626
5265         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
5266         do not mark cgraph nodes as needed.
5267         (record_references_in_initializer): Add new only_vars parameter.
5268         * cgraph.h (record_references_in_initializer): New parameter.
5269         * varasm.c (assemble_variable): Update call.
5270         * varpool.c (varpool_analyze_pending_decls): Always look for
5271         referenced vars.
5272
5273 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
5274
5275         * config/avr/avr.c (last_insn_address) Remove variable.
5276         (expand_prologue): Don't initialise last_insn_address variable.
5277         (final_prescan_insn): Don't output insn size.
5278         * config/avr/avr.opt (msize): Remove switch.
5279         * doc/invoke.texi (AVR Options): Remove documentation of -msize
5280         switch.
5281
5282 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
5283
5284         * combine.c (label_tick_ebb_start): Fix comment.
5285         (combine_instructions): Set label_tick and label_tick_ebb_start before
5286         calling setup_incoming_promotions.  Start them from 1.  Increment
5287         label_tick instead of deriving it from the BB index.  Rather than
5288         comparing ticks use the block from the previous iteration to decide
5289         whether to start a new EBB.  Remove empty lines before function.
5290
5291 2009-10-08  Michael Matz  <matz@suse.de>
5292
5293         PR middle-end/41573
5294         * builtins.c (fold_builtin_isascii): Use fold_build2.
5295         (fold_builtin_isdigit): Ditto.
5296         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
5297         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
5298         remove_useless_stmts_cond, remove_useless_stmts_tf,
5299         remove_useless_stmts_tc, remove_useless_stmts_bind,
5300         remove_useless_stmts_goto, remove_useless_stmts_label,
5301         remove_useless_stmts_1, remove_useless_stmts,
5302         pass_remove_useless_stmts): Remove.
5303         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
5304         * passes.c (init_optimization_passes): Don't add
5305         pass_remove_useless_stmts.
5306         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
5307         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
5308         static constants.
5309         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
5310         for static constants.
5311         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
5312         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
5313
5314 2009-10-08  Richard Guenther  <rguenther@suse.de>
5315
5316         * gimple.c (free_gimple_type_tables): New function.
5317         * gimple.h (free_gimple_type_tables): Declare.
5318
5319 2009-10-07  Mark Heffernan  <meheff@google.com>
5320
5321         * ipa-prop.c (ipa_print_node_params) Only print
5322         names of named arguments.
5323
5324 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
5325
5326         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
5327         being statically linked.
5328
5329 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5330
5331         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
5332
5333 2009-10-08  Jan Hubicka  <jh@suse.cz>
5334
5335         PR bootstrap/41620
5336         * ipa.c (cgraph_externally_visible_p,
5337         function_and_variable_visibility,
5338         whole_program_function_and_variable_visibility): Skip non-finalized
5339         nodes.
5340
5341 2009-10-08  Nick Clifton  <nickc@redhat.com>
5342
5343         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
5344         CONST_DOUBLEs.
5345
5346 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
5347
5348         PR bootstrap/37739
5349         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
5350
5351 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
5352
5353         PR c/41182
5354         * c-common.c (c_fully_fold_internal): Strip nops from the result
5355         of recursive calls to c_fully_fold_internal.
5356         (c_wrap_maybe_const): New.
5357         (c_save_expr): Use c_wrap_maybe_const.
5358         * c-common.h (c_wrap_maybe_const): Declare.
5359         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
5360         build_binary_op): Use c_wrap_maybe_const.
5361
5362 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5363
5364         * real.c: Fix comment to reflect actual exponent size.
5365
5366 2009-10-08  Ben Elliston  <bje@au.ibm.com>
5367
5368         * config/rs6000/a2.md: Add FSF comment header.
5369
5370 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
5371
5372         * config/i386/i386.md (any_extend): New code iterator.
5373         (u, s): New code attributes.
5374         (sgnprefix): Ditto.
5375         (DWIH): Rewrite as code iterator for SI and DI modes.
5376         (DWI): Rewrite as mode attribute.
5377         (dwi): New mode attribute.
5378         (di): Depend on SI mode and DI mode.
5379         (doubleint_general_operand): Remove mode attribute.
5380
5381         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
5382         DWIH mode iterator.
5383
5384         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
5385         (*sub<mode>3_doubleword): Ditto.
5386
5387         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
5388         using SWIM248 mode iterator.
5389         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
5390         using SWI48 mode iterator.
5391         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
5392         patterns using DWIH mode iterator and any_extend code iterator.
5393         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
5394         using any_extend code iterator.
5395         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
5396         patterns using DWIH mode iterator and any_extend code iterator.
5397         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
5398         using any_extend code iterator.
5399         (<s>mul<mode>3_highpart): Macroize expander from
5400         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
5401         and any_extend code iterator.
5402         (*<s>muldi3_highpart_1): Macroize insn from
5403         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
5404         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
5405         patterns using any_extend code iterator.
5406         (*<s>mulsi3_highpart_zext): Macroize insn from
5407         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
5408
5409 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
5410
5411         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
5412         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
5413         refering to a DIE with DW_AT_const_value.
5414
5415 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
5416
5417         PR middle-end/22072
5418         * ira-lives.c (check_and_make_def_conflict): Process all operands.
5419
5420 2009-10-06  Jan Hubicka  <jh@suse.cz>
5421
5422         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
5423         correctly.
5424
5425 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5426
5427         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
5428         *lea_2_rex64): Move before *add<mode>_1 pattern.
5429
5430 2009-10-07  Jan Hubicka  <jh@suse.cz>
5431
5432         * collect2.c (main): Add -fno-whole-program.
5433         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
5434
5435 2009-10-07  Jan Hubicka  <jh@suse.cz>
5436
5437         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
5438         has no address taken.
5439         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
5440         never needed.
5441         (cgraph_clone_node): Clear externally_visible flag for clones.
5442         * cgraph.h (cgraph_only_called_directly_p,
5443         cgraph_can_remove_if_no_direct_calls_p): New predicates.
5444         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
5445         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
5446         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
5447         ipcp_insert_stage): Likwise.
5448         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
5449         externally_visible flag.
5450         (verify_cgraph_node): Verify that inline clones look right.
5451         (process_function_and_variable_attributes): Do not set
5452         externally_visible flags.
5453         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
5454         been already run.
5455         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
5456         boundaries.
5457         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
5458         clear externally_visible when turning into inline clones
5459         (cgraph_mark_inline_edge): Use new predicates.
5460         (cgraph_estimate_growth): Likewise.
5461         (cgraph_decide_inlining): Likewise.
5462         * ipa.c (cgraph_postorder): Likewise.
5463         (cgraph_remove_unreachable_nodes): Likewise; sanity check
5464         that inline clones are not needed.
5465         (cgraph_externally_visible_p): New predicate.
5466         (function_and_variable_visibility): Add whole_program parameter;
5467         always set externally_visible flag; handle COMDAT function
5468         privatization.
5469         (local_function_and_variable_visibility): New function.
5470         (gate_whole_program_function_and_variable_visibility): New function.
5471         (whole_program_function_and_variable_visibility): New function.
5472         (pass_ipa_whole_program_visibility): New function.
5473         * passes.c  (init_optimization_passes): Add whole program visibility
5474         pass.
5475         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
5476         not care about needed/reachable flags.
5477         * varpool.c: Include flags.h
5478         (decide_is_variable_needed): When doing LTO assume whole-program mode.
5479         (varpool_finalize_decl): When we are in LTO read-back, all variables
5480         are analyzed.
5481         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
5482
5483 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5484
5485         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
5486         add MASK_HARD_DFP.
5487
5488 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5489
5490         * config.gcc: Don't include the makefile fragments intended for
5491         libgcc.
5492         * config/s390/fixdfdi.h: File removed.
5493         * config/s390/libgcc-glibc.ver: File removed.
5494         * config/s390/s390.h: Remove the fixdfdi.h hack.
5495         * config/s390/t-crtstuff: File moved to libgcc dir.
5496         * config/s390/t-linux: Likewise.
5497         * config/s390/t-tpf: libgcc specific parts removed.
5498         * config/s390/t-linux64: Likewise.
5499
5500 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5501
5502         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
5503         (lto-compress.o): Likewise.
5504
5505 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
5506
5507         PR target/41512
5508         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
5509         dllexport to class members here.
5510         (i386_pe_determine_dllimport_p): Only check static class data for
5511         definition.
5512         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
5513         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
5514         functions for vague linkage.
5515         (i386_pe_type_dllexport_p): Fix formatting.
5516         (maybe_add_dllexport) New function.
5517         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
5518         to class members.
5519
5520 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5521
5522         * config/rs6000/a2.md: Remove duplicated lines.
5523
5524 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5525
5526         * config.gcc (powerpc*-*-*): Handle a2.
5527         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
5528         * config/rs6000/a2.md: New file.
5529         * config/rs6000/rs6000.opt (mno-update): New.
5530         (mupdate): Return to using a mask, not a var.
5531         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
5532         (enum processor_type): Add PROCESSOR_PPCA2.
5533         * config/rs6000/rs6000.c (ppca2_cost): New costs.
5534         (rs6000_override_options): Add "a2" to processor_target_table.
5535         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
5536         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
5537
5538 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5539
5540         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5541         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
5542         reference to nonexistent gen_truncxfxf2 function.
5543
5544 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5545
5546         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
5547         (DWIH, g, di, doubleint_general_operand): New mode attributes.
5548         (general_operand): Handle TI mode.
5549         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
5550         using SDWIM mode iterator.
5551         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
5552         pattern from *add{di,ti}3_1 patterns and corresponding splitters
5553         using DWI mode iterator.
5554         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
5555         patterns using SWI mode iterator.
5556         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
5557         using SWI48 mode iterator.
5558         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
5559         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
5560         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
5561         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
5562         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
5563         using SDWIM mode iterator.
5564         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
5565         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
5566         using DWI mode iterator.
5567         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
5568         patterns using SWI mode iterator.
5569         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
5570         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
5571         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
5572         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
5573         patterns using plusminus code iterator.
5574         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
5575         sub<mode>3 patterns using plusminus code iterator.
5576         * config/i386/i386.c (override_options): Update the call to
5577         gen_subdi_carry_rex64 for renamed function.
5578         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
5579         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
5580         calls to instruction expanders.
5581
5582 2009-10-06  Martin Jambor  <mjambor@suse.cz>
5583
5584         PR bootstrap/41395
5585         * opts.c (decode_options): Run IPA-SRA at -O2.
5586
5587 2009-10-06  Richard Guenther  <rguenther@suse.de>
5588
5589         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
5590
5591 2009-10-06  Tobias Burnus  <burnus@net-b.de>
5592
5593         PR lto/41591
5594         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
5595         -flto and -fwhole-program flags can be combined.
5596
5597 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
5598
5599         PR driver/41217
5600         * gcc.c (process_command): Check that -o argument was specified.
5601
5602 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5603
5604         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
5605
5606 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5607
5608         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
5609         * doc/invoke.texi (Warning Options): Annotate allowed languages
5610         for -Wunsuffixed-float-constants.
5611
5612 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
5613
5614         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
5615         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
5616         same name and isn't the main variant.
5617
5618         PR debug/41558
5619         * dwarf2out.c (loc_by_reference): Removed.
5620         (dw_loc_list_1): New function.
5621         (dw_loc_list): Remove toplev argument, add want_address argument.
5622         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
5623         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
5624         want_address == 2 to dw_loc_list.  For successful dw_loc_list
5625         set have_address to 1 only if want_address is not 0.
5626
5627 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5628
5629         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
5630         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
5631         a code block followed by two pointers.
5632         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
5633         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
5634         (MIPS_MOVE): Likewise.
5635         (MIPS_LUI): Likewise.
5636         (MIPS_JR): Likewise.
5637         (MIPS_BAL): Likewise.
5638         (MIPS_NOP): Likewise.
5639         (mips_asm_trampoline_template): Delete.
5640         (mips_trampoline_code_size): New function.
5641         (mips_trampoline_init): Add shorter sequences for all cases
5642         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
5643         Calculate the opcodes directly, rather than copying from a template.
5644         Only flush the code part of the trampoline.
5645         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
5646
5647 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5648
5649         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
5650         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
5651         (INCOMING_RETURN_ADDR_RTX): Likewise.
5652         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
5653         with AT_REGNUM.
5654         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
5655         with RETURN_ADDR_REGNUM.
5656         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
5657         * config/mips/mips.c (mips16_build_call_stub): Replace
5658         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
5659         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
5660         (mips_print_operand_punctuation): Likewise.
5661         (mips_frame_set): Likewise.
5662         (mips16e_output_save_restore): Likewise.
5663         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5664         (mips_save_reg_p): Likewise.
5665         (mips_return_addr): Likewise.
5666         (mips_set_return_address): Likewise.
5667         (mips_direct_save_slot_move_p): Likewise.
5668         (mips_output_function_prologue): Likewise.
5669         (mips_restore_reg): Likewise.
5670         (mips_expand_epilogue): Likewise.
5671         (mips_epilogue_uses): Likewise.
5672         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
5673         (*mov<mode>_ra): Use it instead of a hard-coded 31.
5674         (clear_hazard_<mode>): Likewise.
5675         (call_internal): Likewise.
5676         (call_internal_direct): Likewise.
5677         (call_direct_split): Likewise.
5678         (call_value_internal): Likewise.
5679         (call_value_split): Likewise.
5680         (call_value_internal_direct): Likewise.
5681         (call_value_direct_split): Likewise.
5682         (call_value_multiple_internal): Likewise.
5683         (call_value_multiple_split): Likewise.
5684
5685 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
5686             Jakub Jelinek  <jakub@redhat.com>
5687
5688         PR rtl-optimization/41511
5689         * combine.c (record_value_for_reg): Pass explicit values as argument
5690         to get_last_value_validate.
5691         (get_last_value_validate): Document INSN parameter.
5692         For non-readonly MEMs, assume they might have been modified if INSN
5693         was in another basic block.
5694         (get_last_value): Minor reformatting.
5695
5696 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5697
5698         PR tree-opt/40992
5699         * final.c (asm_str_count): Split out from asm_insn_count.
5700         * rtl.h (asm_str_count): New prototype.
5701         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
5702         asm_str_count.
5703
5704 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
5705
5706         * doc/plugins.texi: Change plugin_pass to register_pass_info.
5707
5708 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
5709             Rafael Espindola  <espindola@google.com>
5710
5711         * gengtype.c (write_types): Moved call to write_func_for_structure
5712         into seperate loops.
5713
5714 2009-10-05  Richard Guenther  <rguenther@suse.de>
5715
5716         PR lto/41281
5717         * lto-cgraph.c (output_cgraph): Output toplevel asms.
5718         (input_cgraph_1): Input toplevel asms.
5719
5720 2009-10-05  Richard Guenther  <rguenther@suse.de>
5721
5722         PR lto/40902
5723         * lto-symtab.c (lto_compatible_attributes_p): Remove.
5724         (external_aggregate_decl_p): Likewise.
5725         (lto_symtab_compatible): Re-structure.  Remove dead code.
5726         For variables ignore toplevel qualifiers when comparing types.
5727         Issue warnings, not errors for mismatched user-alignment.
5728
5729 2009-10-05  Richard Guenther  <rguenther@suse.de>
5730
5731         PR lto/41552
5732         PR lto/41487
5733         * lto-symtab.c (struct lto_symtab_base_def): Remove.
5734         (struct lto_symtab_identifier_def): Likewise.
5735         (struct lto_symtab_decl_def): Likewise.
5736         (struct lto_symtab_entry_def): New.
5737         (lto_symtab_identifier_t): Rename to ...
5738         (lto_symtab_entry_t): ... this.
5739         (lto_symtab_decls): Remove.
5740         (lto_symtab_base_hash): Rename to ...
5741         (lto_symtab_entry_hash): ... this.
5742         (lto_symtab_base_eq): Rename to ...
5743         (lto_symtab_entry_eq): ... this.
5744         (lto_symtab_base_marked_p): Rename to ...
5745         (lto_symtab_entry_marked_p): ... this.
5746         (lto_symtab_identifier_marked_p): Remove.
5747         (lto_symtab_decl_marked_p): Likewise.
5748         (lto_symtab_maybe_init_hash_tables): Rename to ...
5749         (lto_symtab_maybe_init_hash_table): ... this.
5750         (lto_symtab_set_resolution_and_file_data): Remove.
5751         (lto_symtab_register_decl): New function.
5752         (lto_symtab_get_identifier): Remove.
5753         (lto_symtab_get): New function.
5754         (lto_symtab_get_resolution): Adjust.
5755         (lto_symtab_get_identifier_decl): Remove.
5756         (lto_symtab_set_identifier_decl): Likewise.
5757         (lto_symtab_merge_decl): Rename to ...
5758         (lto_symtab_merge): ... this.  Rewrite.
5759         (lto_symtab_merge_var): Remove.
5760         (lto_symtab_merge_fn): Likewise.
5761         (lto_symtab_prevailing_decl): Adjust.
5762         (lto_cgraph_replace_node): New function.
5763         (lto_symtab_merge_decls_2): Likewise.
5764         (lto_symtab_merge_decls_1): Likewise.
5765         (lto_symtab_fixup_var_decls): Likewise.
5766         (lto_symtab_resolve_symbols): Likewise.
5767         (lto_symtab_merge_decls): Likewise.
5768         (lto_symtab_prevailing_decl): Adjust.
5769         (lto_symtab_get_symtab_def): Remove.
5770         (lto_symtab_get_file_data): Likewise.
5771         (lto_symtab_clear_resolution): Adjust.
5772         (lto_symtab_clear_resolution): Likewise.
5773         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
5774         (input_cgraph_1): Likewise.
5775         * lto-streamer-in.c (get_resolution): Do not provide fake
5776         symbol resolutions here.
5777         (deferred_global_decls): Remove.
5778         (lto_register_deferred_decls_in_symtab): Likewise.
5779         (lto_register_var_decl_in_symtab): Change signature, register
5780         variable via lto_symtab_register_decl.
5781         (lto_register_function_decl_in_symtab): Likewise.
5782         (lto_read_tree): Adjust.
5783         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
5784         (lto_symtab_merge_var): Likewise.
5785         (lto_symtab_merge_fn): Likewise.
5786         (lto_symtab_register_decl): Declare.
5787         (lto_symtab_merge_decls): Likewise.
5788
5789 2009-10-05  Richard Guenther  <rguenther@suse.de>
5790
5791         PR tree-optimization/23821
5792         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
5793         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
5794         simple IV increments.
5795
5796 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5797
5798         * config/arm/arm.c (arm_override_options): Really initialize
5799         flag_dwarf2_cfi_asm to 0.
5800
5801 2009-10-05  Doug Kwan  <dougkwan@google.com>
5802
5803         PR rtl-optimization/41574
5804         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
5805         floating point and we are not doing unsafe math optimizations.
5806
5807 2009-10-03  Simon Baldwin  <simonb@google.com>
5808             Cary Coutant  <ccoutant@google.com>
5809             Rafael Espindola  <espindola@google.com>
5810             Richard Guenther  <rguenther@suse.de>
5811             Jan Hubicka  <jh@suse.cz>
5812             Doug Kwan <dougkwan@google.com>
5813             H.J. Lu  <hongjiu.lu@intel.com>
5814             Bill Maddox  <maddox@google.com>
5815             Ryan Mansfield  <rmansfield@qnx.com>
5816             Diego Novillo  <dnovillo@google.com>
5817             Ollie Wild  <aaw@google.com>
5818             Kenneth Zadeck <zadeck@naturalbridge.com>
5819
5820         * lto-cgraph.c: New file.
5821         * lto-compress.c: New file.
5822         * lto-compress.h: New file.
5823         * lto-opts.c: New file.
5824         * lto-section-in.c: New file.
5825         * lto-section-out.c: New file.
5826         * lto-streamer-in.c: New file.
5827         * lto-streamer-out.c: New file.
5828         * lto-streamer.c: New file.
5829         * lto-streamer.h: New file.
5830         * lto-symtab.c: New file.
5831         * lto-wpa-fixup.c: New file.
5832         * lto-wrapper.c: New file.
5833
5834 2009-10-03  Simon Baldwin  <baldwin@google.com>
5835             Ben Elliston  <bje@au.ibm.com>
5836             Rafael Espindola  <espindola@google.com>
5837             Nathan Froyd  <froydnj@codesourcery.com>
5838             Jan Hubicka  <jh@suse.cz>
5839             Doug Kwan  <dougkwan@google.com>
5840             Diego Novillo  <dnovillo@google.com>
5841             Kenneth Zadeck  <zadeck@naturalbridge.com>
5842
5843         * Makefile.in (enable_lto): New.
5844         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
5845         (LINKER_PLUGIN_API_H): Define.
5846         (LTO_SYMTAB_H): Define.
5847         (LTO_STREAMER_H): Define.
5848         (TREE_VECTORIZER_H): Define.
5849         (INCLUDES): Add LIBELFINC.
5850         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
5851         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
5852         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
5853         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
5854         (native): Add lto-wrapper$(exeext)
5855         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
5856         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
5857         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
5858         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
5859         (varasm.o): Add dependency on tree-iterator.h.
5860         (cgraph.o): Add dependency on cif-code.def.
5861         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
5862         (ipa-pure-const.o): Likewise.
5863         (GTFILES): Add lto-symtab.c.
5864         (install-lto-wrapper): New.
5865         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
5866         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
5867         * config.in: Regenerate.
5868
5869 2009-10-03  Rafael Espindola  <espindola@google.com>
5870             Diego Novillo  <dnovillo@google.com>
5871
5872         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
5873         ipa_write_summaries.
5874         Call execute_ipa_summary_passes for all_regular_ipa_passes and
5875         all_lto_gen_passes.
5876         (cgraph_optimize): Make extern.
5877
5878 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
5879             Kenneth Zadeck <zadeck@naturalbridge.com>
5880
5881         * toplev.c (in_lto_p): Declare.
5882         * collect2.c (scan_prog_file): Read all the output when reading
5883         information for LTO.
5884         (enum lto_mode_d): Declare.
5885
5886 2009-10-03  Richard Guenther  <rguenther@suse.de>
5887             Diego Novillo  <dnovillo@google.com>
5888
5889         * gimple.c: Include target.h and alias.h.
5890         (gimple_types): Declare.
5891         (type_hash_cache): Declare.
5892         (gimple_alloc_stat): Make extern.
5893         (gimple_build_eh_must_not_throw): Call
5894         gimple_eh_must_not_throw_set_fndecl.
5895         (struct type_pair_d): Declare.
5896         (type_pair_t): Declare.
5897         (type_pair_hash): New.
5898         (type_pair_eq): New.
5899         (lookup_type_pair): New.
5900         (gimple_force_type_merge): New.
5901         (compare_type_names_p): New.
5902         (compare_field_offset): New.
5903         (gimple_types_compatible_p): New.
5904         (struct sccs): Declare.
5905         (next_dfs_num): Declare.
5906         (iterative_hash_gimple_type): New.
5907         (visit): New.
5908         (iterative_hash_type_name): New.
5909         (iterative_hash_gimple_type): New.
5910         (gimple_type_hash): New.
5911         (gimple_type_eq): New.
5912         (gimple_register_type): New.
5913         (print_gimple_types_stats): New.
5914         (gimple_signed_or_unsigned_type): New.
5915         (gimple_unsigned_type): New.
5916         (gimple_signed_type): New.
5917         (gimple_get_alias_set): New.
5918         (gimple_decl_printable_name): Do not use DMGL_TYPES.
5919         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
5920         (gimple_force_type_merge): Declare.
5921         (gimple_types_compatible_p): Declare.
5922         (gimple_register_type): Declare.
5923         (print_gimple_types_stats): Declare.
5924         (gimple_unsigned_type): Declare.
5925         (gimple_signed_type): Declare.
5926         (gimple_get_alias_set): Declare.
5927         (gimple_eh_must_not_throw_set_fndecl): New.
5928
5929 2009-10-03  Jan Hubicka  <jh@suse.cz>
5930             Kenneth Zadeck <zadeck@naturalbridge.com>
5931
5932         * ipa-pure-const.c: Include lto-streamer.h.
5933         (register_hooks): Factor out of ...
5934         (generate_summary): ... here.
5935         (pure_const_write_summary): New.
5936         (pure_const_read_summary): New.
5937         (pass_ipa_pure_const): Add pure_const_write_summary and
5938         pure_const_read_summary.
5939         * ipa-reference.c: Include lto-streamer.h.
5940         (add_new_function): New.
5941         (remove_node_data): New.
5942         (duplicate_node_data): New.
5943         (ipa_init): Guard against multiple calls.
5944         Move hook setup from analyze_function.
5945         (write_node_summary_p): New.
5946         (ipa_reference_write_summary): New.
5947         (ipa_reference_read_summary): New.
5948         (pass_ipa_reference): Add ipa_reference_write_summary and
5949         ipa_reference_read_summary.
5950         * cgraph.h (cgraph_local_info): Add field lto_file_data.
5951         (struct cgraph_edge): Add fields lto_stmt_uid and
5952         call_stmt_cannot_inline_p.
5953         (cgraph_optimize): Declare.
5954         (cgraph_decide_is_function_needed): Declare.
5955         (reset_inline_failed): Declare.
5956         (enum LTO_cgraph_tags): Declare.
5957         (LTO_cgraph_tag_names): Declare.
5958         (LCC_NOT_FOUND): Define.
5959
5960 2009-10-03  Doug Kwan  <dougkwan@google.com>
5961             Rafael Espindola  <espindola@google.com>
5962             Jan Hubicka  <jh@suse.cz>
5963             Diego Novillo  <dnovillo@google.com>
5964             Kenneth Zadeck  <zadeck@naturalbridge.com>
5965
5966         * passes.c (all_regular_ipa_passes): New.
5967         (all_ipa_passes): Rename to all_small_ipa_passes.
5968         (init_optimization_passes): Init all_regular_ipa_passes.
5969         * tree-pass.h (all_regular_ipa_passes): New.
5970         (all_ipa_passes): Rename to all_small_ipa_passes.
5971         * passes.c (all_lto_gen_passes): New.
5972         (init_optimization_passes): Initialize all_lto_gen_passes.
5973         (execute_ipa_summary_passes): Make non-static.
5974         (ipa_write_summaries_1): New.
5975         (ipa_write_summaries_2): New.
5976         (ipa_write_summaries): New.
5977         (ipa_write_summaries_of_cgraph_node_set): New.
5978         (ipa_read_summaries_1): New.
5979         (ipa_read_summaries): New.
5980         (execute_ipa_pass_list): Call cgraph_process_new_functions.
5981         (execute_regular_ipa_pass_list): Remove.
5982         (init_optimization_passes): Schedule
5983         pass_rebuild_cgraph_edges and pass_early_inline outside
5984         of pass_all_early_optimizations.  Document reason.
5985         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
5986         pass_ipa_lto_finish_out): New pass.
5987         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
5988         (execute_all_ipa_transforms): New.
5989         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
5990         (dump_properties, debug_properties): New.
5991         * tree-optimize.c (gate_all_early_local_passes): Return
5992         false if we are in lto1.
5993         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
5994         * tree-pass.h (execute_all_ipa_transforms): Declare.
5995         (pass_ipa_function_and_variable_visibility): Declare.
5996         (pass_ipa_early_inline): Declare.
5997         (pass_ipa_lto_gimple_out): Declare.
5998         (pass_ipa_lto_wpa_fixup): Declare.
5999         (pass_ipa_lto_finish_out): Declare.
6000         (all_small_ipa_passes, all_regular_ipa_passes,
6001         all_lto_gen_passes): Declare.
6002         (execute_ipa_summary_passes): Declare.
6003         (execute_all_ipa_transforms): Declare.
6004         (ipa_write_summaries): Declare
6005         (ipa_write_summaries_of_cgraph_node_set): Declare.
6006         (ipa_read_summaries): Declare.
6007
6008 2009-10-03  Doug Kwan  <dougkwan@google.com>
6009             Ollie Wild  <aaw@google.com>
6010
6011         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
6012
6013         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
6014         (lto_mode): New variable.
6015         (maybe_run_lto_and_relink): Handle the -fwpa option.
6016         (main): Handle the -fwpa option.
6017         (maybe_unlink_list): New function.
6018         * gcc.c (link_lto_options): Replace -flto with -fwpa.
6019         * common.opt (flto): New flag.
6020         * toplev.c (flag_generate_lto): Declare.
6021
6022 2009-10-03  Simon Baldwin  <simonb@google.com>
6023
6024         * common.opt (flto-compression-level): New flag.
6025
6026         * opts.c: Include lto-opts.h.
6027         (handle_option): Call lto_register_user_option for each
6028         valid option handled.
6029         (decode_options): Clear registered options before the options
6030         handling loop.
6031
6032 2009-10-03  Cary Coutant  <ccoutant@google.com>
6033
6034         * collect2.c (is_elf): New function.
6035         (scan_prog_file): Require LTO object to be in ELF format.
6036
6037 2009-10-03  Rafael Espindola  <espindola@google.com>
6038
6039         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
6040         libgcc to the linker.
6041
6042         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
6043
6044         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
6045         (collect_execute): Add flags argument. Pass flags to pex_run. Update
6046         all callers.
6047         * collect2.h (collect_execute): Add flags argument.
6048         * tlink.c (tlink_execute): Update call to collect_execute.
6049         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
6050         (use_linker_plugin): New.
6051         (use_linker_plugin_spec_function): New.
6052         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
6053         (linker_plugin_file_spec): New.
6054         (lto_wrapper_spec): New.
6055         (lto_gcc_spec): New.
6056         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
6057         (static_spec_functions): Add use-linker-plugin.
6058         (process_command): Handle -use-linker-plugin.
6059         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
6060         linker_plugin_file_spec and lto_gcc_spec.
6061         (use_linker_plugin_spec_function): New.
6062
6063 2009-10-03  Richard Guenther  <rguenther@suse.de>
6064
6065         PR lto/41547
6066         PR lto/41548
6067         * tree.h (is_lang_specific): Include LANG_TYPE.
6068         * tree.c (find_decls_types_r): Manually add interesting parts
6069         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
6070
6071         * gimple.c (type_pair_hash): Make symmetric.
6072         (type_pair_eq): Likewise.
6073         (lookup_type_pair): Increase initial hashtable size.
6074         (gimple_force_type_merge): Rely on type-pair symmetry.
6075         (visit): Remove excessive checking code.
6076         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
6077         (gimple_register_type): Remove getenv calls, shrink initial
6078         hashtable size.
6079
6080         PR middle-end/41502
6081         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
6082         inline functions if not generating lto output.
6083
6084         PR lto/41379
6085         * toplev.c (finalize): In WPA mode remove the asm file.
6086
6087 2009-10-03  Doug Kwan  <dougkwan@google.com>
6088
6089         * ipa-inline.c (cgraph_mark_inline): Check
6090         edge->call_stmt_cannot_inline_p instead of calling
6091         gimple_call_cannot_inline_p.
6092         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
6093         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
6094         (inline_generate_summary): Do nothing in LTRANS.
6095         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
6096         exists before calling gimple_call_cannot_inline_p.
6097         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
6098         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
6099         Update new_edge->lto_stmt_uid.
6100         * cgraphbuild.c (reset_inline_failed): New.
6101
6102         * common.opt (fwpa): New flag.
6103         (fltrans): New option.
6104         * gcc.c (gcc_lto_option_t): New type.
6105         (current_lto_option): New variable.
6106         (lto_single_spec_function): Remove and is replaced by ..
6107         (lto_option_spec_function): New function.
6108         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
6109         passing the -flto flag.
6110         (cc1_options): Separate non-LTO related parts into ..
6111         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
6112         (lto1_options): New spec for lto FE.
6113         (link_lto_options): New spec for handling LTO flags in linker.
6114         (invoke_lto_single): Re-format to fit in 80 column.  Replace
6115         lto-single with lto-option.
6116         (static_specs): Add cc1_non_lto_options, lto1_options and
6117         link_lto_options.
6118         (static_spec_function): Replace lto-single with lto-option.
6119         (process_command): Handle -flto, -fwpa and -fltran by setting
6120         current_lto_option and not passing it to subprocess unconditionally.
6121
6122 2009-10-03  Bill Maddox  <maddox@google.com>
6123
6124         Add `gcc' driver support for link-time code generation (LTO).
6125
6126         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
6127         (lto_flag, lto_objects, lto_o_file): New variables.
6128         (struct lto_object, struct lto_object_list): New structures.
6129         (collect_exit, handler): Remove LTO temporary output file on exit.
6130         (add_lto_object): New function.
6131         (maybe_run_lto_and_relink): New function. Perform link time code
6132         generation and relinking for object files containing LTO information.
6133         (main): Invoke maybe_run_lto_and_relink().
6134         (dump_argv): New function.  For debugging, currently disabled.
6135         (scan_prog_file): Add LTO information pass.
6136         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
6137         collect2.
6138         * toplev.c (compile_file): Emit assembler directive to create
6139         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
6140
6141 2009-10-03  Diego Novillo  <dnovillo@google.com>
6142
6143         * c.opt: Add LTO to warn_abi and warn_psabi.
6144
6145         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
6146         inline function.  Ignore language-specific nodes.  Update all users.
6147         (find_decls_types_r): Do not traverse the subtrees of
6148         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
6149         * tree.h (is_lang_specific): New.
6150         * langhooks.h (struct lang_hooks_for_decls): Remove
6151         may_need_assembler_name_p.  Update all users.
6152
6153         * c-common.c (set_builtin_user_assembler_name): Move ...
6154         * builtins.c (set_builtin_user_assembler_name): ... here.
6155         (is_builtin_name): Add comment
6156         (is_builtin_fn): New.
6157         * except.c (output_ttype): Only call
6158         lookup_type_for_runtime if TYPE is not a runtime type.
6159
6160         * passes.c (register_pass): Call position_pass on
6161         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
6162         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
6163         (TV_IPA_LTO_DECL_IO): Define.
6164         (TV_IPA_LTO_CGRAPH_IO): Define.
6165         (TV_LTO): Define.
6166         (TV_WHOPR_WPA): Define.
6167         (TV_WHOPR_WPA_IO): Define.
6168         (TV_WHOPR_LTRANS): Define.
6169         (TV_WHOPR_WPA_FIXUP): Define.
6170         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
6171         * tree-cfg.c (tree_node_can_be_shared): Make extern.
6172         * tree-flow.h (tree_node_can_be_shared): Declare.
6173         * tree-inline.c (tree_can_inline_p): Check that E has a
6174         statement associated with it.
6175         * tree.c (free_lang_data_in_binf): Factor out of ...
6176         (free_lang_data_in_type): ... here.
6177         Call RECORD_OR_UNION_TYPE_P.
6178         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
6179         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
6180         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
6181         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
6182         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
6183         (gate_free_lang_data): Return true if flag_generate_lto is set.
6184         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
6185         * c-common.h (set_builtin_user_assembler_name): Move ...
6186         * tree.h (set_builtin_user_assembler_name): ... here.
6187
6188         * common.opt (flto-report): New flag.
6189         * opts.c (complain_wrong_lang): Do not complain if running lto1.
6190         * collect2.c (scan_prog_file): Send the error output of
6191         'nm' to HOST_BIT_BUCKET.
6192
6193 2009-10-03  Ollie Wild  <aaw@google.com>
6194
6195         * langhooks-def.h (lhd_begin_section): New function declaration.
6196         (lhd_write_section): New function declaration.
6197         (lhd_end_section): New function declaration.
6198         (LANG_HOOKS_BEGIN_SECTION): New macro.
6199         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
6200         (LANG_HOOKS_END_SECTION): New macro.
6201         (LANG_HOOKS_LTO): New macro.
6202         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
6203         * langhooks.c (output.h): Add include.
6204         (saved_section): New static variable.
6205         (lhd_begin_section): New function.
6206         (lhd_write_section_data): New function.
6207         (lhd_end_section): New function.
6208         * langhooks.h (struct lang_hooks_for_lto): New structure.
6209         (struct lang_hooks): Add member lto.
6210         * Makefile.in (langhooks.o): Add dependency on output.h.
6211
6212         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
6213
6214 2009-10-03  Richard Guenther  <rguenther@suse.de>
6215
6216         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6217         Handle LTO.
6218
6219 2009-10-03  Simon Baldwin  <simonb@google.com>
6220             Richard Guenther  <rguenther@suse.de>
6221             Janis Johnson  <janis187@us.ibm.com>
6222             Doug Kwan  <dougkwan@google.com>
6223             Diego Novillo  <dnovillo@google.com>
6224             Ramana Radhakrishnan  <ramana.r@gmail.com>
6225             Ollie Wild  <aaw@google.com>
6226
6227         * doc/install.texi: Add documentation for libelf and --enable-lto.
6228         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
6229         -flto-report, -flto-compression-level and -use-linker-plugin.
6230         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
6231         Add section for LTO Testing.
6232
6233 2009-10-02  Cary Coutant  <ccoutant@google.com>
6234
6235         Add support for comdat type sections for DWARF v4.
6236         Merge from dwarf4 branch.
6237
6238         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
6239         (dw_die_ref): Define vector type.
6240         (enum dw_val_class): Add dw_val_class_data8.
6241         (struct dw_val_struct): Add v.val_data8.
6242         (comdat_type_node_ref): New type.
6243         (struct die_struct): Move die_symbol into a union; add new field
6244         die_type_node.  Change all uses.
6245         (comdat_type_node): New type.
6246         (skeleton_chain_node): New type.
6247         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
6248         (comdat_type_list): New variable.
6249         (dwarf_tag_name): Add DW_TAG_type_unit.
6250         (dwarf_attr_name): Add DW_AT_signature.
6251         (add_AT_data8): New function.
6252         (replace_child): New function.
6253         (move_all_children): New function.
6254         (print_signature): New function.
6255         (print_die): Print signature information; add dw_val_class_data8.
6256         (attr_checksum): Support dw_val_class_data8.
6257         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
6258         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
6259         (checksum_sleb128, checksum_uleb128): New functions.
6260         (checksum_die_context): New function.
6261         (loc_checksum_ordered): New function.
6262         (attr_checksum_ordered): New function.
6263         (struct checksum_attributes): New structure.
6264         (collect_checksum_attributes): New function.
6265         (die_checksum_ordered): New function.
6266         (generate_type_signature): New function.
6267         (same_dw_val_p): Add dw_val_class_data8.
6268         (is_symbol_die): Use new is_declaration_die function.
6269         (is_declaration_die): New function.
6270         (should_move_die_to_comdat): New function.
6271         (clone_die): New function.
6272         (clone_tree): New function.
6273         (clone_as_declaration): New function.
6274         (copy_declaration_context): New function.
6275         (generate_skeleton_ancestor_tree): New function.
6276         (generate_skeleton_bottom_up): New function.
6277         (generate_skeleton): New function.
6278         (remove_child_or_replace_with_skeleton): New function.
6279         (break_out_comdat_types): New function.
6280         (struct decl_table_entry): New type.
6281         (htab_decl_hash): New function.
6282         (htab_decl_eq): New function.
6283         (htab_decl_del): New function.
6284         (copy_ancestor_tree): New function.
6285         (copy_decls_walk): New function.
6286         (copy_decls_for_unworthy_types): New function.
6287         (build_abbrev_table): Don't assert on missing die_symbol when doing
6288         comdat type sections.
6289         (size_of_die): Use DW_FORM_sig8 for external references.  Add
6290         dw_val_class_data8.
6291         (unmark_dies): Don't assert for unmarked dies when doing comdat
6292         type sections.
6293         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
6294         (output_signature): New function.
6295         (output_die): Likewise.
6296         (output_compilation_unit_header): Mark output as DWARF version 3
6297         even if generating DWARF 4.
6298         (output_comdat_type_unit): New function.
6299         (output_line_info): Mark output as DWARF version 3 even if generating
6300         DWARF 4.
6301         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
6302         DWARF-4.
6303         (dwarf2out_end_source_file): Likewise.
6304         (prune_unused_types_walk_attribs): Don't follow references into
6305         comdat type sections.
6306         (prune_unused_types_mark): When generating type units, do not mark
6307         children of non-defining declarations of types; do mark children of
6308         type entries.
6309         (prune_unused_types): Process comdat type sections.
6310         (htab_ct_hash): New function.
6311         (htab_ct_eq): New function.
6312         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
6313         Add a pointer to the line table from type unit entries so
6314         DW_AT_decl_file has meaning.
6315         * varasm.c (default_elf_asm_named_section): Use identifier name as
6316         comdat key instead of lang hook.
6317
6318 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
6319
6320         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
6321
6322 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
6323
6324         * config/i386/i386.md (SWIM248): New mode iterator.
6325         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
6326         divmodhi4 patterns using SWIM248 macro.
6327         (*divmod<mode>4): Macroize insn_and_split pattern from
6328         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
6329         and their corresponding splitters usign SWIM248 macro.  Split SImode
6330         insn to generate cltd and DImode insn to generate cqto instead of
6331         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
6332         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
6333         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
6334         *divmodsi_noext patterns using SWIM248 macro.
6335         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
6336         udivmodhi4 patterns using SWIM248 macro.
6337         (*udivmod<mode>4): Macroize insn_and_split pattern from
6338         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
6339         corresponding splitters using SWIM248 macro.
6340         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
6341         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
6342
6343 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
6344
6345         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
6346         of zero-sized element is zero-sized regardless of its extent.
6347
6348 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
6349
6350         PR debug/40521
6351         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
6352         * configure: Regenerated.
6353         * config.in: Regenerated.
6354         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
6355         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
6356         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
6357         not emitting .eh_frame, emit .cfi_sections .debug_frame
6358         directive.
6359
6360         PR debug/41404
6361         PR debug/41353
6362         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
6363         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
6364         with '\0'.
6365         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
6366         vars use DECL_RTL with resetting it back to NULL afterwards.
6367         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
6368         rtx_equal_p instead of asserting it is a SYMBOL_REF.
6369         (value_format): For dw_val_class_addr only use DW_FORM_addr if
6370         the attribute type allows it, otherwise use DW_FORM_dataN.
6371         (mem_loc_descriptor): Handle CONST_STRING.
6372         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
6373         Handle MEM with CONST_STRING address using add_AT_string.
6374         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
6375         CONST_STRING for const arrays initialized with a string literal.
6376         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
6377         (dwarf2out_finish): Call resolve_addr.
6378
6379 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
6380             Maxim Kuvyrkov  <maxim@codesourcery.com>
6381
6382         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
6383
6384 2009-10-02  Nick Clifton  <nickc@redhat.com>
6385
6386         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
6387         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
6388
6389 2009-10-01  Jan Hubicka  <jh@suse.cz>
6390
6391         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
6392         (cgraph_create_virtual_clone): Just pass redirect_callers
6393         around.
6394         * cgraph.h (cgraph_clone_node): Update prototype.
6395         * ipa-pure-const.c (self_recursive_p): New function.
6396         (propagate): Use it.
6397         * ipa-inline.c (cgraph_clone_inlined_nodes,
6398         cgraph_decide_recursive_inlining): Update.
6399
6400 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
6401
6402         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
6403         instructions for TARGET_OCTEON.
6404
6405 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6406
6407         * config/arm/arm.c (arm_override_options): Turn off
6408         flag_dwarf2_cfi_asm for AAPCS variants.
6409
6410 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6411
6412         PR middle-end/12392
6413         * tree-sra.c (convert_callers): Do not call
6414         compute_inline_parameters on one caller more than once.
6415
6416 2009-10-01  Nick Clifton  <nickc@redhat.com>
6417
6418         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
6419         an empty string if not already defined.
6420
6421 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6422
6423         PR bootstrap/41395
6424         * tree-sra.c (is_va_list_type): New function.
6425         (find_var_candidates): Call is_va_list_type.
6426         (find_param_candidates): Check that the type or the type pointed
6427         to are not va_list types.
6428
6429 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6430
6431         PR c++/41503
6432         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
6433         DECL_ARTIFICIAL (param_decl) is true.
6434
6435 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
6436
6437         * tree.h (tree_decl_common::lang_flag_8): New.
6438         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
6439         keyword.
6440         * c-common.h (RID_CONSTEXPR): New.
6441
6442 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6443
6444         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
6445         Use ref-all pointers.
6446         (alpha_gimplify_va_arg): Ditto.
6447
6448 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
6449
6450         PR target/41279
6451         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
6452         before insn counting loop now that BB_END (bb) is counted.  Ensure
6453         the return value isn't zero.
6454
6455 2009-09-30  Nick Clifton  <nickc@redhat.com>
6456
6457         * config.gcc (sh-symbianelf): Replace definition of extra_objs
6458         with separate definitions of c_target_objs and cxx_target_objs.
6459         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
6460         and symbian-base.o.
6461         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
6462         sh_symbian_import_export_class.
6463         * config/sh/sh-protos.h: Fix names of exported symbian functions.
6464         * config/sh/symbian.c: Delete, moving code into...
6465         * config/sh/symbian-base.c: ... here
6466         * config/sh/symbian-c.c: ... and here
6467         * config/sh/symbian-cxx.c: ... and here.
6468
6469 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6470
6471         PR target/22093
6472         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
6473         of plus RTX into register.
6474
6475 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6476
6477         * doc/install.texi: Linguistic and markup fixes.
6478         (Configuration) <--disable-cpp>: Remove description.
6479         <--enable-maintainer-mode>: Autotools files are affected, too.
6480         <--with-sysroot>: Improve description.
6481         (Building): Bump required GNU make version.
6482
6483 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6484
6485         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
6486         (x86_64-*-*): Ditto.
6487
6488         * config/i386/fma4intrin.h: New file, provide common x86 compiler
6489         intrinisics for FMA4.
6490         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
6491         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
6492         Add FMA4 check and fma4intrin.h.
6493         * config/i386/i386-c.c(ix86_target_macros_internal): Check
6494         ISA_FLAG for FMA4.
6495         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
6496         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
6497         constant for FMA4 support.
6498         (UNSPEC_FMA4_FMADDSUB): Ditto.
6499         (UNSPEC_FMA4_FMSUBADD): Ditto.
6500         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
6501         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
6502         (ix86_expand_fma4_multiple_memory): Ditto.
6503         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
6504         (OPTION_MASK_ISA_FMA4_UNSET): New.
6505         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
6506         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
6507         (ix86_handle_option): Handle -mfma4.
6508         (isa_opts): Handle -mfma4.
6509         (enum pta_flags): Add PTA_FMA4.
6510         (override_options): Add FMA4 support.
6511         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
6512         (IX86_BUILTIN_VFMADDSD): Ditto.
6513         (IX86_BUILTIN_VFMADDPS): Ditto.
6514         (IX86_BUILTIN_VFMADDPD): Ditto.
6515         (IX86_BUILTIN_VFMSUBSS): Ditto.
6516         (IX86_BUILTIN_VFMSUBSD): Ditto.
6517         (IX86_BUILTIN_VFMSUBPS): Ditto.
6518         (IX86_BUILTIN_VFMSUBPD): Ditto.
6519         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
6520         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
6521         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
6522         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
6523         (IX86_BUILTIN_VFNMADDSS): Ditto.
6524         (IX86_BUILTIN_VFNMADDSD): Ditto.
6525         (IX86_BUILTIN_VFNMADDPS): Ditto.
6526         (IX86_BUILTIN_VFNMADDPD): Ditto.
6527         (IX86_BUILTIN_VFNMSUBSS): Ditto.
6528         (IX86_BUILTIN_VFNMSUBSD): Ditto.
6529         (IX86_BUILTIN_VFNMSUBPS): Ditto.
6530         (IX86_BUILTIN_VFNMSUBPD): Ditto.
6531         (IX86_BUILTIN_VFMADDPS256): Ditto.
6532         (IX86_BUILTIN_VFMADDPD256): Ditto.
6533         (IX86_BUILTIN_VFMSUBPS256): Ditto.
6534         (IX86_BUILTIN_VFMSUBPD256): Ditto.
6535         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
6536         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
6537         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
6538         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
6539         (IX86_BUILTIN_VFNMADDPS256): Ditto.
6540         (IX86_BUILTIN_VFNMADDPD256): Ditto.
6541         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
6542         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
6543         (enum multi_arg_type): New enum for describing the various FMA4
6544         intrinsic argument types.
6545         (bdesc_multi_arg): New table for FMA4 intrinsics.
6546         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
6547         (ix86_expand_multi_arg_builtin): New function for creating FMA4
6548         intrinsics.
6549         (ix86_expand_builtin): Add FMA4 intrinsic support.
6550         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
6551         operand instructions.
6552         (ix86_expand_fma4_multiple_memory): New function to split the
6553         second memory reference from FMA4 instructions.
6554         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
6555         (ssemodesuffixf2s): Ditto.
6556         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
6557         instructions.
6558         (fma4_fmsub<mode>4): Ditto.
6559         (fma4_fnmadd<mode>4): Ditto.
6560         (fma4_fnmsub<mode>4): Ditto.
6561         (fma4_vmfmadd<mode>4): Ditto.
6562         (fma4_vmfmsub<mode>4): Ditto.
6563         (fma4_vmfnmadd<mode>4): Ditto.
6564         (fma4_vmfnmsub<mode>4): Ditto.
6565         (fma4_fmadd<mode>4256): Ditto.
6566         (fma4_fmsub<mode>4256): Ditto.
6567         (fma4_fnmadd<mode>4256): Ditto.
6568         (fma4_fnmsub<mode>4256): Ditto.
6569         (fma4_fmaddsubv8sf4): Ditto.
6570         (fma4_fmaddsubv4sf4): Ditto.
6571         (fma4_fmaddsubv4df4): Ditto.
6572         (fma4_fmaddsubv2df4): Ditto.
6573         (fma4_fmsubaddv8sf4): Ditto.
6574         (fma4_fmsubaddv4sf4): Ditto.
6575         (fma4_fmsubaddv4df4): Ditto.
6576         (fma4_fmsubaddv2df4): Ditto.
6577         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
6578         instructions for intrinsics.
6579         (fma4i_fmsub<mode>4): Ditto.
6580         (fma4i_fnmadd<mode>4): Ditto.
6581         (fma4i_fnmsub<mode>4): Ditto.
6582         (fma4i_vmfmadd<mode>4): Ditto.
6583         (fma4i_vmfmsub<mode>4): Ditto.
6584         (fma4i_vmfnmadd<mode>4): Ditto.
6585         (fma4i_vmfnmsub<mode>4): Ditto.
6586         (fma4i_fmadd<mode>4256): Ditto.
6587         (fma4i_fmsub<mode>4256): Ditto.
6588         (fma4i_fnmadd<mode>4256): Ditto.
6589         (fma4i_fnmsub<mode>4256): Ditto.
6590         (fma4i_fmaddsubv8sf4): Ditto.
6591         (fma4i_fmaddsubv4sf4): Ditto.
6592         (fma4i_fmaddsubv4df4): Ditto.
6593         (fma4i_fmaddsubv2df4): Ditto.
6594         (fma4i_fmsubaddv8sf4): Ditto.
6595         (fma4i_fmsubaddv4sf4): Ditto.
6596         (fma4i_fmsubaddv4df4): Ditto.
6597         (fma4i_fmsubaddv2df4): Ditto.
6598
6599         * doc/invoke.texi (-mfma4): Add documentation.
6600         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
6601
6602 2009-09-29  Richard Henderson  <rth@redhat.com>
6603
6604         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
6605         an edge to the new destination block.
6606
6607 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6608
6609         PR target/41393
6610         * pa.c (hppa_profile_hook): Use
6611         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
6612
6613 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
6614             Alexander Monakov  <amonakov@ispras.ru>
6615
6616         PR target/41365
6617         * config/ia64/predicates.md (not_postinc_destination_operand): New.
6618         (not_postinc_memory_operand): New.
6619         (not_postinc_move_operand): New.
6620         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
6621         (*cmovsi_internal): Ditto.
6622
6623 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
6624
6625         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
6626         restrict issue_rate in first pass when scheduling for register
6627         pressure.
6628
6629 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
6630             Rafael Avila de Espindola  <espindola@google.com>
6631
6632         * gengtype.c (plugin_output): New.
6633         (get_output_file_with_visibility): Return plugin_output for plugins.
6634         (main): Parse and use the -P option.
6635         * gty.texi: Update the command line format.
6636
6637 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
6638
6639         PR debug/41438
6640         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
6641         functions.
6642         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
6643         out if !const_ok_for_output.
6644
6645         PR debug/41474
6646         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
6647         case VAR_LOCATION>: Remove gcc_unreachable ().
6648
6649 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6650
6651         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
6652         (x86_64-*-*): Ditto.
6653         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
6654         back to smmintrin.h.
6655         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
6656         * config/i386/x86intrin.h: Remove SSE5.
6657         * config/i386/mmintrin-common.h: Delete file.
6658         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
6659
6660 2009-09-29  Richard Guenther  <rguenther@suse.de>
6661
6662         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
6663         resulting from stack temporaries on STRICT_ALIGNMENT targets.
6664
6665 2009-09-29  Nick Clifton  <nickc@redhat.com>
6666
6667         * function.c (current_function_name): If there is no current
6668         function just return "<none>".
6669
6670 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
6671
6672         * tree-pass.h (register_pass_info): New structure.
6673         (pass_positioning_ops): Move enum from gcc-plugin.h.
6674         (register_pass): New function.
6675         * gcc-plugin.h (plugin_pass): Delete structure.
6676         (pass_positioning_ops): Delete enum.
6677         * plugin.c (regsiter_pass): Delete function.
6678         (position_pass): Delete function.
6679         (added_pass_nodes): Delete variable.
6680         (prev_added_pass_nodes): Delete variable.
6681         (pass_list_node): Delete structure.
6682         * passes.c (make_pass_instance): New function.
6683         (next_pass_1): Change to call make_pass_instance.
6684         (pass_list_node): Move structure from gcc-plugin.h.
6685         (added_pass_nodes): Move variable from plugin.c.
6686         (prev_added_pass_nodes): Move variable from plugin.c.
6687         (position_pass): New function.
6688         (register_pass): New function.
6689
6690 2009-09-28  Easwaran Raman  <eraman@google.com>
6691
6692         * ifcvt.c (noce_try_abs): Recognize pattern and call
6693         expand_one_cmpl_abs_nojump.
6694         * optabs.c (expand_one_cmpl_abs_nojump): New function.
6695         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
6696
6697 2009-09-28  Ian Lance Taylor  <iant@google.com>
6698
6699         PR middle-end/40500
6700         * c-opts.c (c_common_handle_option): Don't set
6701         warn_jump_misses_init for -Wall.
6702         * doc/invoke.texi (Warning Options): Update documentation.
6703
6704 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6705
6706         * Makefile.in ($(out_object_file)): Depend on
6707         gt-$(basename $(notdir $(out_file))).h.
6708
6709 2009-09-28  Richard Henderson  <rth@redhat.com>
6710
6711         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
6712         * except.c (gen_eh_region): Set it.
6713         (duplicate_eh_regions_1): Copy it.
6714         * tree-eh.c (lower_resx): Use it to determine which function
6715         to call to resume.
6716
6717         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
6718         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
6719         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
6720         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
6721         BUILT_IN_CXA_END_CLEANUP if necessary.
6722
6723         * c-common.c (c_define_builtins): Update call to
6724         build_common_builtin_nodes.
6725
6726 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6727
6728         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
6729
6730 2009-09-28  Michael Matz  <matz@suse.de>
6731
6732         * builtins.c (interclass_mathfn_icode): New helper.
6733         (expand_builtin_interclass_mathfn): Use it here, and split folding
6734         into ...
6735         (fold_builtin_interclass_mathfn): ... this new folder.
6736         (build_call_nofold_loc): New static helper.
6737         (build_call_nofold): New wrapper macro for above.
6738         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
6739         (expand_builtin_pow): Ditto.
6740         (expand_builtin_memset_args): Ditto.
6741         (expand_builtin_printf): Ditto.
6742         (expand_builtin_fprintf): Ditto.
6743         (expand_builtin_sprintf): Ditto.
6744         (expand_builtin_memory_chk): Ditto.
6745         (expand_builtin_mempcpy_args): Ditto and don't call folders.
6746         (expand_builtin_stpcpy): Ditto.
6747         (expand_builtin_strcmp): Ditto.
6748         (expand_builtin_strncmp): Ditto.
6749         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
6750         (expand_builtin_strcpy_args): Don't call folders.
6751         (expand_builtin_memcmp): Ditto.
6752         (expand_builtin_strncpy): Ditto, and use target.
6753         (expand_builtin_memcpy): Ditto.
6754         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
6755         expand_builtin_strpbrk, expand_builtin_memmove,
6756         expand_builtin_memmove_args, expand_builtin_bcopy,
6757         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
6758         expand_builtin_strspn, expand_builtin_strcspn,
6759         expand_builtin_fputs): Remove these.
6760         (expand_builtin): Don't call the above, change calls to other
6761         expanders that changed prototype.
6762         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
6763         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
6764         fold_builtin_interclass_mathfn.
6765         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
6766         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
6767
6768         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
6769         * passes.c (init_optimization_passes): Move pass_fold_builtins
6770         after last phiopt pass.
6771         * tree-inline.c (fold_marked_statements): When folding builtins
6772         iterate over all instruction potentially generated.
6773         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
6774         earlier.
6775         (fold_gimple_call): Use it to always fold calls (into potentially
6776         multiple instructions).
6777         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
6778         calls into zero at this time.
6779         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
6780         statements generated by builtin folding.
6781
6782 2009-09-28  Nick Clifton  <nickc@redhat.com>
6783
6784         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
6785
6786 2009-09-28  Duncan Sands  <baldrick@free.fr>
6787
6788         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
6789         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
6790         (register_callback): Dispatch it.
6791         (invoke_plugin_callbacks): Incorporate in sanity check.
6792         * ggc.h (ggc_register_cache_tab): Add declaration.
6793         * ggc-common.c (ggc_register_root_tab): Simplify.
6794         (const_ggc_cache_tab_t): New typedef.
6795         (extra_cache_vec): New vector of dynamically added cache tables.
6796         (ggc_register_cache_tab): New function.
6797         (ggc_scan_cache_tab): New function.
6798         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
6799         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
6800
6801 2009-09-27  Richard Henderson  <rth@redhat.com>
6802
6803         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
6804         which we remove __builtin_stack_restore.
6805
6806 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
6807
6808         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
6809         to test for GRD_INVARIANT.
6810         (simple_rhs_p): Anything that's function_invariant_p is fine.
6811
6812 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
6813
6814         * gengtype.c (main): Use plunge_files instead of plugin_output.
6815
6816 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
6817             Rafael Avila de Espindola  <espindola@google.com>
6818
6819         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
6820         Don't print pch related info if it is false.
6821         (main): Don't print pch info in plugin mode.
6822
6823 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6824
6825         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
6826         with dw_val_class_const_double.
6827         (struct dw_val_struct): Replace val_long_long with val_double and
6828         adjust for above change.
6829         (output_loc_operands): Likewise.
6830         (add_AT_long_long): Rename into...
6831         (add_AT_double): ...this.
6832         (print_die): Replace dw_val_class_long_long with
6833         dw_val_class_const_double and adjust.
6834         (attr_checksum): Likewise.
6835         (same_dw_val_p): Likewise.
6836         (size_of_die): Likewise.
6837         (value_format): Likewise.
6838         (output_die): Likewise.
6839         (loc_descriptor) <CONST_DOUBLE>: Likewise.
6840         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
6841         instead of add_AT_long_long.
6842         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
6843         value with the precision of its type.
6844
6845 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
6846
6847         PR c/41476
6848         * c-typeck.c (build_conditional_expr): Use the readonly and
6849         volatile flags of the operand types, not of the operands itself.
6850
6851 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
6852
6853         * collect2.c (main): Look for -brtl before adding libraries.
6854
6855 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
6856
6857         * config.gcc: Update OpenBSD targets.
6858         * config/openbsd-stdint.h: New file.
6859         * config/openbsd-libpthread.h: New file.
6860         * config/openbsd.h: Update and break out LIB_SPEC definition.
6861         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
6862         * config/i386/openbsdelf.h: Correct types.
6863         * config/m68k/openbsd.h: Likewise.
6864         * config/mips/openbsd.h: Likewise.
6865         * config/vax/openbsd.h: Likewise.
6866
6867 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6868
6869         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
6870         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
6871         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
6872         of the length and zero.
6873
6874 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6875
6876         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
6877         (FLAGS_H): Add options.h $(REAL_H).
6878         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
6879         (TREE_VECTORIZER_H): New.
6880         (EBITMAP_H): Renamed from EBIMAP_H.
6881         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
6882         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
6883         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
6884         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
6885         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
6886         (graphite-clast-to-gimple.o, graphite-dependences.o)
6887         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
6888         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
6889         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
6890         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
6891         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
6892         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
6893         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
6894         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
6895         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
6896         updated and fixed as per above changes and per
6897         check_makefile_deps.sh output.
6898
6899         PR bootstrap/40928
6900         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
6901         * configure: Regenerate.
6902
6903 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6904
6905         * doc/install.texi: Update minimum MPC version to 0.7.
6906
6907 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
6908
6909         * doc/install.texi (Binaries): Remove reference to the binary
6910         distribution CD-ROM from the FSF.
6911
6912 2009-09-26  Michael Matz  <matz@suse.de>
6913
6914         PR lto/40758
6915         PR middle-end/41470
6916         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
6917         that are mentioned in the body.
6918
6919 2009-09-26  Michael Matz  <matz@suse.de>
6920
6921         PR tree-optimization/41454
6922         * tree-ssa-dom (stmts_to_rescan): Remove variable.
6923         (tree_ssa_dominator_optimize): Don't allocate and free it.
6924         (dom_opt_leave_block): Don't iterate over it.
6925         (eliminate_redundant_computations): Don't return a value.
6926         (cprop_operand, cprop_into_stmt): Ditto.
6927         (optimize_stmt): Don't defer updating stmts.
6928
6929 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
6930
6931         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
6932         generic_parameter_die, template_parameter_pack_die,
6933         gen_formal_parameter_die, gen_subprogram_die): Adjust after
6934         renaming DW_TAG_formal_parameter_pack and
6935         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
6936         and DW_TAG_GNU_template_parameter_pack.
6937
6938 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
6939
6940         * config/v850/v850.h (FUNCTION_VALUE): Remove.
6941         * config/v850/v850.c (v850_function_value): New function.
6942         (TARGET_FUNCTION_VALUE): Define.
6943
6944 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
6945
6946         * tree-vect-stmts.c (vectorizable_call): Call
6947         mark_symbols_for_renaming after vect_finish_stmt_generation.
6948
6949         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
6950         to loc_descriptor_from_tree.
6951         (add_location_or_const_value_attribute): Pass 0 instead of 2
6952         for decl_by_reference_p decls.
6953
6954 2009-09-25  Richard Guenther  <rguenther@suse.de>
6955
6956         PR middle-end/41463
6957         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
6958         arrays again.
6959
6960 2009-09-25  Ben Elliston  <bje@au.ibm.com>
6961
6962         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
6963         after `power7'.
6964
6965 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
6966
6967         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
6968         form of instruction.
6969
6970 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6971
6972         PR middle-end/41435
6973         * fold-const.c (const_binop): Handle complex int division.
6974         * tree-complex.c (expand_complex_div_straight,
6975         expand_complex_div_wide): Update comments.
6976
6977 2009-09-24  DJ Delorie  <dj@redhat.com>
6978
6979         PR target/41456
6980         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
6981         (reg_class): Likewise.
6982         (REG_CLASS_NAMES): Likewise.
6983         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
6984         (m32c_override_options): Disable -fivopts for M32C.
6985
6986 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6987
6988         * config/rs6000/predicates.md (indexed_or_indirect_operand):
6989         Delete VSX load/store with update support.
6990         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
6991         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
6992         (vsx_movti): Ditto.
6993         (VSX_U): Delete.
6994         (VSbit): Ditto.
6995         (VStype_load_update): Ditto.
6996         (VStype_store_update): Ditto.
6997         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
6998         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
6999
7000         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
7001         load/store with update builtins.
7002
7003 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
7004
7005         * libgcc2.c (L_trampoline): Prototype for getpagesize
7006         and mprotect in WINNT case.
7007
7008 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
7009
7010         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
7011         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
7012         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
7013         'outgoing' argument.
7014         (TARGET_FUNCTION_VALUE): Define.
7015
7016 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7017
7018         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
7019
7020 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7021
7022         PR bootstrap/41405
7023         * common.opt: Initialize dwarf_strict to -1.
7024         * toplev.c (process_options): Catch unset dwarf_strict
7025         and set to 0 for all targets not overriding.
7026         * config/darwin.c (darwin_override_options): Catch unset
7027         dwarf_strict and override to 1.
7028
7029 2009-09-24  Jeff Law  <law@redhat.com>
7030
7031         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
7032
7033 2009-09-24  Richard Guenther  <rguenther@suse.de>
7034
7035         PR tree-optimization/36143
7036         PR tree-optimization/38747
7037         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
7038         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
7039
7040 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7041
7042         PR bootstrap/41457
7043         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
7044         return false instead of gcc_unreachable ().  For CONST return the
7045         value returned by recursive call instead of always returning true.
7046         (tree_add_const_value_attribute): Return the value returned by
7047         add_const_value_attribute instead of always returning true if rtl
7048         is non-NULL.
7049
7050 2009-09-23  Justin Seyster  <jrseys@gmail.com>
7051
7052         * Makefile.in (PLUGIN_HEADERS): Include real.h.
7053
7054 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7055
7056         * cgraphunit.c (cgraph_lower_function): Revert last change.
7057         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
7058         instead of DECL_NO_STATIC_CHAIN.
7059         * tree-cfg.c (verify_gimple_call): Likewise.
7060         * tree-nested.c (get_chain_decl, get_chain_field,
7061         convert_tramp_reference_op, convert_gimple_call): Likewise.
7062         (convert_all_function_calls): Likewise.  Always set or clear
7063         DECL_STATIC_CHAIN initially, for !n->outer clear it.
7064         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
7065         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
7066         if nested.
7067         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
7068         DECL_NO_STATIC_CHAIN.
7069         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
7070         instead of DECL_NO_STATIC_CHAIN.
7071         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
7072         decl_function_context.
7073         * varasm.c (initializer_constant_valid_p): Likewise.
7074         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
7075         (DECL_STATIC_CHAIN): ... this.
7076         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
7077         instead of DECL_NO_STATIC_CHAIN.
7078
7079 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
7080             Rafael Avila de Espindola  <espindola@google.com>
7081
7082         * gengtype.c (nb_plugin_files): Make it unsigned to match
7083         num_gt_files. Adjust other variables to avoid warnings.
7084         (main): Allocate an all zero lang_bitmap before each plugin file name
7085         to match regular file names.
7086
7087 2009-09-23  Richard Henderson  <rth@redhat.com>
7088
7089         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7090         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
7091         static chain passed in memory.
7092         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
7093         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
7094         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
7095         STATIC_CHAIN_REGNUM defined.
7096
7097         * config/picochip/picochip-protos.h: s/class/klass/.
7098         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
7099         (picochip_static_chain): New.
7100         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
7101         (STATIC_CHAIN_INCOMING): Remove.
7102
7103         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
7104         (xtensa_static_chain): New.
7105         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
7106         (STATIC_CHAIN_INCOMING): Remove.
7107
7108 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7109
7110         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
7111         * config/pa/pa-protos.h (function_value): Remove.
7112         * config/pa/pa.c (pa_function_value): Rename from function_value.
7113         Make static, add 'outgoing' argument.
7114         (TARGET_FUNCTION_VALUE): Define.
7115
7116 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7117
7118         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
7119         instead of cfun->machine->is_leaf.
7120         * config/avr/avr.h (machine_function): Remove is_leaf field.
7121
7122 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7123
7124         PR debug/41439
7125         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
7126         DW_OP_piece after DW_OP_stack_value, adjust size calculations
7127         for it, when DW_OP_stack_value and DW_OP_implicit_value has
7128         the same size, prefer DW_OP_stack_value.
7129         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
7130         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
7131
7132 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7133
7134         PR debug/41353
7135         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
7136
7137 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7138
7139         PR debug/41248
7140         * cfgexpand.c (convert_debug_memory_address): New.
7141         (expand_debug_expr): Convert base address and offset to the same
7142         mode.  Use it to convert addresses to other modes.  Accept
7143         ptr_mode addresses.
7144
7145 2009-09-23  Dodji Seketeli <dodji@redhat.com>
7146
7147         PR debug/41065
7148         * function.h (types_used_by_vars_hash): Declare new hash table.
7149         (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
7150         equality and hash function for the hash table.
7151         (types_used_by_cur_var_decl): Declare a new global chained list.
7152         (types_used_by_var_decl_insert): Declare new function.
7153         * function.c (types_used_by_vars_hash): Define the hashtable ...
7154         (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
7155         its equality and hash functions.
7156         (hash_types_used_by_vars_entry): New hash helper.
7157         (types_used_by_cur_var_decl): Define the global chained list.
7158         (used_types_insert): Update the list of types used by the global
7159         variable being parsed.
7160         (types_used_by_var_decl_insert): Define new function.
7161         * c-common.h (record_types_used_by_current_var_decl): Declare ...
7162         * c-common.c (record_types_used_by_current_var_decl): ... new
7163         function.
7164         * c-decl.c (finish_decl): Record the types used by the global
7165         variable declaration we've just parsed.
7166         * dwarf2out.c (premark_used_types): Insert a new line between
7167         comment and function.
7168         (premark_used_types_helper): Fix comment.
7169         (premark_types_used_by_global_vars_helper,
7170         premark_types_used_by_global_vars): New functions.
7171         (prune_unused_types): Do not prune types used by global variables.
7172
7173 2009-09-23  Richard Guenther  <rguenther@suse.de>
7174
7175         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
7176         produced for bigendian targets with promoted subregs.
7177
7178 2009-09-23  Richard Guenther  <rguenther@suse.de>
7179
7180         * value-prof.c (gimple_ic): Purge old EH edges only after building
7181         the new ones.
7182
7183 2009-09-23  Nick Clifton  <nickc@redhat.com>
7184
7185         * config/arc/arc.c (arc_trampoline_init): Fix typo.
7186
7187 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7188
7189         PR bootstrap/41405
7190         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
7191
7192         PR bootstrap/41436
7193         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
7194         on non-nested functions.
7195
7196 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7197             Jan Hubicka  <jh@suse.cz>
7198
7199         * dwarf2out.c (loc_list_plus_const): Only define if
7200         DWARF2_DEBUGGING_INFO.
7201         (address_of_int_loc_descriptor): Likewise.
7202
7203         PR debug/41411
7204         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
7205
7206 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
7207
7208         PR c/39779
7209         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
7210         constant is more than zero.
7211
7212 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
7213
7214         PR target/40473
7215         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7216         call final to emit non-scheduled prologue, instead insert at entry.
7217
7218 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7219             Joseph S. Myers  <joseph@codesourcery.com>
7220
7221         * doc/install.texi (*-*-freebsd*): Add proper format codes.
7222
7223 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7224             Rafael Avila de Espindola  <espindola@google.com>
7225
7226         * gengtype.c (is_file_equal): New function.
7227         (close_output_files): Use is_file_equal. Free of->buf.
7228
7229 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7230             Rafael Avila de Espindola  <espindola@google.com>
7231
7232         * gengtype.c (write_types, write_local): Add the output_header
7233         argument. Update all callers.
7234
7235 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
7236
7237         * dwarf2out.c (template_parameter_pack_die,
7238         gen_formal_parameter_pack_die ): New functions.
7239         (make_ith_pack_parameter_name): Remove this function.
7240         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
7241         DW_TAG_formal_parameter_pack.
7242         (gen_generic_params_dies): Represent each template parameter pack
7243         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
7244         represented by usual DW_TAG_template_*_parameter DIEs that are
7245         children of the DW_TAG_template_parameter_pack element DIE.
7246         (generic_parameter_die): This doesn't deal with parameter pack
7247         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
7248         of parameter pack DIEs.
7249         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
7250         in certain cases, e.g. for pack elements.
7251         (gen_formal_types_die, gen_decl_die): Adjust usage of
7252         gen_formal_parameter_die.
7253         (gen_subprogram_die): Represent each function parameter pack by a
7254         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
7255         represented by usual DW_TAG_formal_parameter DIEs that are children
7256         of the DW_TAG_formal_parameter_pack DIE. Remove references to
7257         ____builtin_va_alist decls as no part of the compiler uses those
7258         anymore.
7259         * langhooks.h (struct lang_hooks_for_decls): Add
7260         function_parm_expanded_from_pack_p, get_generic_function_decl
7261         and function_parameter_pack_p hooks.  Fix comment for
7262         get_innermost_generic_parms hook.
7263         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
7264         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
7265         macros and use them to initialize lang_hook.
7266
7267 2009-09-22  Richard Henderson  <rth@redhat.com>
7268
7269         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
7270         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
7271         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
7272         on TRAMPOLINE_TEMPLATE.
7273         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
7274         TRAMPOLINE_ADJUST_ADDRESS.
7275         * targhooks.c (default_asm_trampoline_template): Remove.
7276         (default_trampoline_adjust_address): Remove.
7277         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
7278         * targhooks.h: Update decls.
7279
7280 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7281
7282         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
7283         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
7284         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7285
7286 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
7287
7288         PR debug/41295
7289         * reload1.c (reload): Reset debug insns with pseudos without
7290         equivalences.
7291
7292 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
7293
7294         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
7295         unconditional true for decimal float modes.
7296         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
7297         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
7298
7299 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7300
7301         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
7302         Enable a new case for __FreeBSD__ >= 7.
7303         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
7304         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
7305         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
7306         and USE_LD_AS_NEEDED.
7307
7308         * doc/install.texi (*-*-freebsd*): Update target information.
7309
7310 2009-09-22  Richard Guenther  <rguenther@suse.de>
7311
7312         PR middle-end/41395
7313         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
7314         arrays really properly.
7315
7316 2009-09-22  Richard Henderson  <rth@redhat.com>
7317
7318         PR target/41246
7319         * target.h (struct gcc_target): Add asm_out.trampoline_template,
7320         calls.static_chain, calls.trampoline_init,
7321         calls.trampoline_adjust_address.
7322         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7323         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7324         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7325         * builtins.c (expand_builtin_setjmp_receiver): Use
7326         targetm.calls.static_chain; only clobber registers.
7327         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
7328         set up memory attributes properly for the trampoline block.
7329         (expand_builtin_adjust_trampoline): Use
7330         targetm.calls.trampoline_adjust_address.
7331         * calls.c (prepare_call_address): Add fndecl argument.  Use
7332         targetm.calls.static_chain.
7333         * df-scan.c (df_need_static_chain_reg): Remove.
7334         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
7335         consolodate static chain handling.
7336         * doc/tm.texi: Document new hooks.
7337         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
7338         (init_emit_regs): Don't initialize them.
7339         * expr.h (prepare_call_address): Update decl.
7340         * final.c (profile_function): Use targetm.calls.static_chain.
7341         * function.c (expand_function_start): Likewise.
7342         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
7343         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
7344         only clobber registers.
7345         * targhooks.c (default_static_chain): New.
7346         (default_asm_trampoline_template, default_trampoline_init): New.
7347         (default_trampoline_adjust_address): New.
7348         * targhooks.h: Declare them.
7349         * varasm.c (assemble_trampoline_template): Use
7350         targetm.asm_out.trampoline_template.  Make the memory block const
7351         and set its size.
7352
7353         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
7354         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
7355         differences into the TARGET_ABI_OPEN_VMS code block.
7356         (TARGET_TRAMPOLINE_INIT): New.
7357         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
7358         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
7359         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
7360         (INITIALIZE_TRAMPOLINE): Remove.
7361
7362         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
7363         (TRAMPOLINE_TEMPLATE): Merge with ...
7364         (INITIALIZE_TRAMPOLINE): ... this and move ...
7365         * config/arc/arc.c (arc_trampoline_init): ... here.
7366         (TARGET_TRAMPOLINE_INIT): New.
7367
7368         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7369         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7370         (arm_asm_trampoline_template): New.
7371         (arm_trampoline_init, arm_trampoline_adjust_address): New.
7372         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
7373         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
7374         code to arm_asm_trampoline_template.
7375         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
7376         arm_trampoline_adjust_address.
7377         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
7378         adjust for target hook parameters.
7379
7380         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
7381         Remove.
7382
7383         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
7384         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
7385         (bfin_trampoline_init): Rename from initialize_trampoline;
7386         make static; update for target hook parameters.
7387         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7388         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
7389         bfin_asm_trampoline_template.
7390         (INITIALIZE_TRAMPOLINE): Remove.
7391
7392         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7393         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
7394         cris_trampoline_init): New.
7395         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
7396         cris_asm_trampoline_template.
7397         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
7398         adjust for target hook parameters.
7399
7400         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
7401
7402         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7403         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
7404         fr30_trampoline_init): New.
7405         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
7406         fr30_asm_trampoline_template.
7407         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
7408         adjust for target hook parameters.
7409
7410         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
7411         (frv_trampoline_init): Rename from frv_initialize_trampoline;
7412         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
7413         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
7414         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
7415
7416         * config/h8300/h8300.c (h8300_trampoline_init): New.
7417         (TARGET_TRAMPOLINE_INIT): New.
7418         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
7419         to h8300_trampoline_init and adjust for hook parameters.
7420
7421         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
7422         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
7423         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
7424         make static; adjust for hook parameters.
7425         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
7426
7427         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7428         (TARGET_TRAMPOLINE_INIT): New.
7429         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
7430         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
7431         iq2000_asm_trampoline_template.
7432         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
7433         (TRAMPOLINE_CODE_SIZE): New.
7434         (TRAMPOLINE_SIZE): Use it.
7435         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
7436
7437         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
7438         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
7439         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
7440         adjust for hook parameters.
7441         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
7442
7443         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
7444         (m32r_trampoline_init): New.
7445         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
7446         m32r_trampoline_init.
7447
7448         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
7449         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
7450         make static; update for hook parameters.
7451         * config/m68hc11/m68hc11-protos.h: Update.
7452         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
7453
7454         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7455         (TARGET_TRAMPOLINE_INIT): New.
7456         (mcore_function_value): Fix typo.
7457         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
7458         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
7459         to mcore_asm_trampoline_template.
7460         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
7461
7462         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
7463         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
7464         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
7465         update for hook parameters.
7466         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
7467
7468         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7469         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7470         mips_trampoline_init): New.
7471         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
7472         mips_asm_trampoline_template.
7473         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
7474         update for hook parameters.
7475
7476         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7477         (TARGET_TRAMPOLINE_INIT): New.
7478         (mmix_trampoline_size): Remove.
7479         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
7480         make static.  Remove out-of-date tetra vs octa comment.
7481         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
7482         make static; update for hook parameters.
7483         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
7484         (INITIALIZE_TRAMPOLINE): Remove.
7485         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
7486         (TRAMPOLINE_ALIGNMENT): New.
7487         * gcc/config/mmix/mmix-protos.h: Update.
7488
7489         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7490         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7491         mn10300_trampoline_init): New.
7492         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
7493         mn10300_asm_trampoline_template.
7494         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
7495
7496         * config/moxie/moxie.c (moxie_static_chain,
7497         moxie_asm_trampoline_template, moxie_trampoline_init,
7498         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
7499         TARGET_TRAMPOLINE_INIT): New.
7500         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
7501         moxie_trampoline_init.
7502         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
7503         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7504
7505         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7506         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7507         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
7508         pa_trampoline_adjust_address): New.
7509         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
7510         pa_asm_trampoline_template.
7511         (TRAMPOLINE_ALIGNMENT): New.
7512         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
7513         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
7514         adjust for hook parameters.
7515         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
7516
7517         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
7518         (TARGET_TRAMPOLINE_INIT): New.
7519         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
7520         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
7521
7522         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
7523
7524         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
7525         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
7526         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
7527         make static; adjust parameters for the hook.
7528         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
7529
7530         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
7531         s390_trampoline_template; make static.
7532         (s390_trampoline_init): Rename from s390_initialize_trampoline;
7533         make static; adjust for target hook.
7534         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7535         * config/s390/s390-protos.h: Remove trampoline decls.
7536         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
7537         (TRAMPOLINE_TEMPLATE): Remove.
7538         (TRAMPOLINE_ALIGNMENT): New.
7539
7540         * config/score/score-protos.h (score_initialize_trampoline): Remove.
7541         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7542         (TARGET_TRAMPOLINE_INIT): New.
7543         (score_asm_trampoline_template): New.
7544         (score_trampoline_init): Rename from score_initialize_trampoline;
7545         make static; adjust for hook parameters.
7546         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
7547         score[37]_asm_trampoline_template.
7548         (INITIALIZE_TRAMPOLINE): Remove.
7549         * config/score/score3.c (score3_asm_trampoline_template): New.
7550         (score3_trampoline_init): Rename from score3_initialize_trampoline;
7551         adjust for target hook.
7552         * config/score/score7.c (score7_asm_trampoline_template): New.
7553         (score7_trampoline_init): Rename from score7_initialize_trampoline;
7554         adjust for target hook.
7555         * config/score/score3.h, config/score/score7.h: Update.
7556
7557         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
7558         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
7559         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7560         (sh_trampoline_init): Rename from sh_initialize_trampoline;
7561         make static; adjust for target hook parameters.
7562         (sh_trampoline_adjust_address): New.
7563         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
7564         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
7565
7566         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
7567         (sparc32_initialize_trampoline): Rename from
7568         sparc_initialize_trampoline; make static; replace tramp parameter
7569         with m_tramp and update memory accesses.
7570         (sparc64_initialize_trampoline): Similarly.
7571         (sparc_trampoline_init): New.
7572         * config/sparc/sparc-protos.h: Remove trampoline decls.
7573         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
7574         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
7575
7576         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
7577         (array_to_constant): Make ARR parameter const.
7578         (spu_trampoline_init): Rename from spu_initialize_trampoline;
7579         make static; update for hook parameters.
7580         * config/spu/spu-protos.h: Update decls.
7581         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
7582
7583         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
7584         from xstormy16_initialize_trampoline; make static; update for
7585         hook parameters.
7586         (TARGET_TRAMPOLINE_INIT): New.
7587         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
7588
7589         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7590         (TARGET_TRAMPOLINE_INIT): New.
7591         (v850_can_eliminate): Make static.
7592         (v850_asm_trampoline_template, v850_trampoline_init): New.
7593         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
7594         v850_asm_trampoline_template.
7595         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
7596         and adjust for target hook parameters.
7597
7598         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7599         (TARGET_TRAMPOLINE_INIT): New.
7600         (vax_asm_trampoline_template, vax_trampoline_init): New.
7601         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
7602         vax_asm_trampoline_template.
7603         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
7604
7605         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7606         (TARGET_TRAMPOLINE_INIT): New.
7607         (xtensa_asm_trampoline_template): Rename from
7608         xtensa_trampoline_template; make static.
7609         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
7610         make static; update for hook parameters.
7611         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
7612         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
7613         (INITIALIZE_TRAMPOLINE): Remove.
7614
7615         * config/i386/i386.c (ix86_function_regparm): Do not issue an
7616         error for nested functions with regparm=3.
7617         (ix86_compute_frame_layout): Adjust frame pointer offset for
7618         ix86_static_chain_on_stack.
7619         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
7620         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
7621         don't reset to UNITS_PER_WORD.
7622         (ix86_emit_leave): Adjust ix86_cfa_state.
7623         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
7624         (ix86_static_chain): New.
7625         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
7626         make static; update for target hook parameters; use ix86_static_chain.
7627         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7628         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
7629         (INITIALIZE_TRAMPOLINE): Remove.
7630         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
7631         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
7632         to the end.  Add static_chain_on_stack.
7633         (ix86_static_chain_on_stack): New.
7634
7635         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
7636         (m68k_output_mi_thunk): Don't use static_chain_rtx.
7637         (m68k_trampoline_init): New.
7638         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
7639         m68k_trampoline_init and adjust for hook parameters.
7640         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
7641         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
7642
7643 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7644
7645         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
7646         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
7647
7648         * reload1.c (reload): Call wrap_constant when substituting
7649         reg for equiv inside of DEBUG_INSNs.
7650
7651         PR bootstrap/41405
7652         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
7653         add_call_src_coords_attributes, add_high_low_attributes,
7654         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
7655         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
7656         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
7657         when -gdwarf-2 -gstrict-dwarf.
7658         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
7659         -gdwarf-[23] -gstrict-dwarf.
7660         (address_of_int_loc_descriptor, loc_descriptor,
7661         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
7662         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
7663         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
7664
7665 2009-09-22  Richard Guenther  <rguenther@suse.de>
7666
7667         PR tree-optimization/41428
7668         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
7669         (ccp_finalize): Pass it to substitute_and_fold.
7670
7671 2009-09-22  Richard Guenther  <rguenther@suse.de>
7672
7673         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
7674         (substitute_and_fold): Adjust prototype.
7675         * tree-vrp.c (vrp_evaluate_conditional): Make static.
7676         (simplify_stmt_using_ranges): Likewise.
7677         (fold_predicate_in): Move here from tree-ssa-propagate.c.
7678         (vrp_fold_stmt): New function.
7679         (vrp_finalize): Pass it to substitute_and_fold.
7680         * tree-flow.h (vrp_evaluate_conditional): Remove.
7681         (simplify_stmt_using_ranges): Likewise.
7682         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
7683         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7684         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
7685         member.
7686         (fold_predicate_in): Move to tree-vrp.c.
7687         (substitute_and_fold): Use the callback instead of calling into
7688         tree-vrp.c functions directly.
7689
7690 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7691
7692         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
7693         comparison warning on rs6000.
7694
7695         PR middle-end/41429
7696         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
7697         GIMPLE_EH_MUST_NOT_THROW cleanup.
7698         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7699
7700 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
7701
7702         PR middle-end/41260
7703         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
7704         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
7705         LIB_SPEC for darwin10 and later since it always uses the unwinder in
7706         libSystem which is derived from the gcc 4.2.1 unwinder.
7707
7708 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7709
7710         PR middle-end/41357
7711         * varasm.c (default_encode_section_info): Copy TLS model into
7712         sym_ref flags regardless of backend support for TLS, for all
7713         model types except TLS_MODEL_EMULATED.
7714
7715 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7716
7717         PR bootstrap/41404
7718         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
7719         we can handle it correctly.
7720
7721 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7722
7723         * doc/install.texi (os2): Remove section.
7724
7725 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7726
7727         * doc/standards.texi (Objective-C): Adjust two URLs.
7728
7729 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
7730
7731         * tree-tailcall.c (process_assignment): Don't check if a
7732         multiplication or an addition are already present.
7733         (find_tail_calls): Combine multiple additions and multiplications.
7734         (adjust_accumulator_values): Emit accumulators.
7735
7736 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
7737
7738         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
7739         xmm register restore.
7740
7741 2009-09-21  Jan Hubicka  <jh@suse.cz>
7742
7743         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
7744         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
7745         restore at the end.
7746
7747 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
7748
7749         * stor-layout.c (layout_type): Remove obsolete code.
7750
7751 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
7752
7753         PR middle-end/41395
7754         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
7755
7756 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7757
7758         PR middle-end/30789
7759         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
7760         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
7761         (fold_builtin_2, do_mpc_arg1): Update accordingly.
7762         * fold-const.c (const_binop): Likewise.
7763         * real.h (do_mpc_arg2): Update prototype.
7764
7765 2009-09-20  Jan Hubicka  <jh@suse.cz>
7766
7767         * dwarf2out.c (add_const_value_attribute): Return true if successful.
7768         (add_location_or_const_value_attribute): Rewrite using
7769         loc_list_from_tree.
7770         (tree_add_const_value_attribute): Return true if successful.
7771         (tree_add_const_value_attribute_for_decl): Likewise.
7772
7773         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
7774         (loc_descriptor): ... here;
7775         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7776         (cst_pool_loc_descr): Break out from ...; do not reffer constant
7777         pool items that was not marked for output.
7778         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
7779         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7780         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7781         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
7782         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
7783         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
7784         DW_OP_stack_value to get address of items that are not available
7785         as addresses.
7786         (dw_loc_list): Handle single element lists correctly.
7787
7788 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
7789             Pascal Obry  <obry@adacore.com>
7790
7791         * unwind-dw2-fde.c (classify_object_over_fdes):
7792         Cast the constant 1 to _Unwind_Ptr.
7793         (add_fdes): Likewise.
7794         (linear_search_fdes): Likewise.
7795
7796 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7797
7798         * stor-layout.c (set_sizetype): Avoid useless type copy.
7799
7800 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
7801
7802         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
7803         feature check.
7804         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
7805         * configure, config.in: Regenerate.
7806         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
7807         DW_EH_PE_absptr.
7808         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
7809         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
7810         for global data if the output could be used in a shared library.
7811         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
7812         to 0 if TARGET_WRITABLE_EH_FRAME.
7813
7814 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
7815
7816         PR rtl-optimization/39886
7817         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
7818         just when insn is equal to BB_END (bb).
7819
7820 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
7821
7822         * config/mips/mips.opt (mrelax-pic-calls): New option.
7823         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
7824         the file.
7825         (mips_unspec_call): Change "unspec_call" expander into this.
7826         (mips_strip_unspec_call): New function.
7827         (mips_got_load): Call mips_unspec_call instead of
7828         gen_unspec_call<mode>.
7829         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
7830         MIPS_CALL.
7831         (mips_cfg_in_reorg): New function.
7832         (mips16_lay_out_constants): Use it to decide whether to call
7833         CFG-aware insn splitting.
7834         (r10k_insert_cache_barriers): Move CFG set-up code from here to
7835         mips_reorg.  Move DF set-up code from here ...
7836         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
7837         from here.
7838         (mips_reorg): Call mips_df_reorg instead of
7839         r10k_insert_cache_barriers.  Move CFG set-up code here from
7840         r10k_insert_cache_barriers.
7841         (mips_call_expr_from_insn): New function.
7842         (mips_pic_call_symbol_from_set): Likewise.
7843         (mips_find_pic_call_symbol): Likewise.
7844         (mips_annotate_pic_call_expr): Likewise.
7845         (mips_get_pic_call_symbol): Likewise.
7846         (mips_annotate_pic_calls): Likewise.
7847         (mips_override_options): Disable -mrelax-pic-calls unless PIC
7848         calls are used.
7849         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
7850         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
7851         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
7852         directive.
7853         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
7854         (unspec_call<mode>): Remove it.
7855         (sibcall_internal, sibcall_value_internal,
7856         sibcall_value_multiple_internal, call_internal, call_split,
7857         call_value_internal, call_value_split,
7858         call_value_multiple_internal, call_value_multiple_split): Pass
7859         SIZE_OPNO to MIPS_CALL.
7860         (call_internal_direct, call_direct_split,
7861         call_value_internal_direct, call_value_direct_split): Pass -1 as
7862         SIZE_OPNO to MIPS_CALL.
7863         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
7864         * configure: Regenerate.
7865         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
7866         and -mno-relax-pic-calls.
7867         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
7868
7869 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7870
7871         PR bootstrap/35619
7872         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
7873         in the directory this rule is called from, rather than the
7874         toplevel 'gcc' directory, to fix in-tree build.
7875
7876 2009-09-19  Chris Demetriou  <cgd@google.com>
7877
7878         PR preprocessor/28435:
7879         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
7880         to cpplib that the preprocessor output is needed.
7881
7882 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
7883
7884         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
7885         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
7886         *return_and_restore_fpregs_<mode>,
7887         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
7888
7889         PR bootstrap/41397
7890         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
7891         instead of assuming it has always a REG inside of it.
7892
7893 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
7894
7895         * config/freebsd.h: Update comment on types.
7896         (WINT_TYPE): Define.
7897
7898 2009-09-18  Jason Merrill  <jason@redhat.com>
7899
7900         * c.opt: Add -fno-deduce-init-list.
7901
7902 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
7903
7904         * value-prof.c (interesting_stringop_to_profile_p): Added output
7905         argument to indicate which parameter is the size parameter.
7906         * value-prof.c (gimple_stringop_fixed_value): Use
7907         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
7908         * value-prof.c (gimple_stringops_transform): Update call sites to
7909         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
7910
7911 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
7912
7913         PR target/38288
7914         From David Binderman <dcb314@hotmail.com>:
7915         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
7916         local variable f.  Remove stale comments.
7917         (ix86_compute_frame_layout): Remove useless local variable total_size.
7918         Remove #if 0'd code.
7919         (legitimate_address_p): Remove useless local variables
7920         reason_rtx and reason.
7921         (ix86_split_copysign_const): Remove useless local variable op1.
7922         (scale_counter): Remove useless local variable piece_size_mask.
7923
7924 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
7925
7926         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
7927         output decl.
7928
7929 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7930
7931         PR target/40913
7932         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
7933
7934 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
7935
7936         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
7937         TYPE_STUB_DECL.
7938
7939 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
7940
7941         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
7942         DW_OP_implicit_value even without dwarf_version 4.
7943
7944 2009-09-17  Jan Hubicka  <jh@suse.cz>
7945
7946         * dwarf2out.c: Include tree-pass.h and gimple.h.
7947         (loc_list_plus_const): New function.
7948         (loc_descriptor_from_tree_1): Rename to ...
7949         (loc_descriptor_from_tree): ... remove original.
7950         (loc_list_from_tree): New function.
7951         (add_AT_location_description): Accept location list.
7952         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
7953         (concatn_mem_loc_descriptor): Remove.
7954         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
7955         returning NULL.
7956         (secname_for_decl): Move up.
7957         (hidden_reference_p): New function; break out from ...
7958         (loc_by_refernece): ... here; move up.
7959         (dw_loc_list): New function.
7960         (single_element_loc_list): New function.
7961         (single_element_loc_list_p): New function.
7962         (add_loc_descr_to_each): New function.
7963         (add_loc_list): New function.
7964         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
7965         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
7966         add diagnostics why expansion failed.
7967         (add_location_or_const_value_attribute): Support location lists.
7968         (add_bound_info): Likewise.
7969         (descr_info_loc): Update call of loc_descriptor_from_tree.
7970         (gen_variable_die): Work on location lists.
7971         * final.c (pass_final): Add dump file.
7972         * Makefile.in (dwarf2out.o): Add new dependencies.
7973
7974 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
7975
7976         PR c/41049
7977         * real.c decimal_from_integer, decimal_integer_string): New.
7978         (real_from_integer): Use them as special case for decimal float.
7979         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
7980         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
7981         Do not append zero after the decimal point in string to convert.
7982
7983 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
7984
7985         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
7986         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
7987
7988 2009-09-17  Martin Jambor  <mjambor@suse.cz>
7989
7990         * common.opt (fipa-sra): New switch.
7991         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
7992         * timevar.def (TV_IPA_SRA): New timevar.
7993         * params.def (ipa-sra-ptr-growth-factor): New parameter.
7994         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
7995         * tree-sra.c: Include cgraph.c.
7996         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
7997         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
7998         and grp_not_necessarilly_dereferenced.
7999         (func_param_count): New variable.
8000         (encountered_apply_args): New variable.
8001         (bb_dereferences): New variable.
8002         (final_bbs): New variable.
8003         (no_accesses_representant): New variable.
8004         (no_accesses_p): New function.
8005         (dump_access): Dump the new fields.
8006         (sra_initialize): Set encountered_apply_args to false.
8007         (get_ssa_base_param): New function.
8008         (mark_parm_dereference): New function.
8009         (create_access): Caring for INIDRECT_REFs and different handling of
8010         varialble length accesses in early IPA SRA.  Store the stmt - a new
8011         parameter - to the new access.
8012         (build_access_from_expr_1): New parameter stmt, passed to
8013         create_access.  Handle INDIRECT_REFs.
8014         (build_access_from_expr): Pass the current statement to
8015         build_access_from_expr_1.
8016         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
8017         passes.
8018         (build_accesses_from_assign): Pass the current statement to
8019         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
8020         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
8021         final_bbs when necessary.  Check for calls to __builtin_apply_args.
8022         Fixup EH info if anythng was changed.
8023         (is_unused_scalar_param): New function.
8024         (ptr_parm_has_direct_uses): New function.
8025         (find_param_candidates): New function.
8026         (mark_maybe_modified): New function.
8027         (analyze_modified_params): New function.
8028         (propagate_dereference_distances): New function.
8029         (dump_dereferences_table): New function.
8030         (analyze_caller_dereference_legality): New function.
8031         (unmodified_by_ref_scalar_representative): New function.
8032         (splice_param_accesses): New function.
8033         (decide_one_param_reduction): New function.
8034         (enum ipa_splicing_result): New type.
8035         (splice_all_param_accesses): New function.
8036         (get_param_index): New function.
8037         (turn_representatives_into_adjustments): New function.
8038         (analyze_all_param_acesses): New function.
8039         (get_replaced_param_substitute): New function.
8040         (get_adjustment_for_base): New function.
8041         (replace_removed_params_ssa_names): New function.
8042         (sra_ipa_reset_debug_stmts): New function.
8043         (sra_ipa_modify_expr): New function.
8044         (sra_ipa_modify_assign): New function.
8045         (convert_callers): New function.
8046         (modify_function): New function.
8047         (ipa_sra_preliminary_function_checks): New function.
8048         (ipa_early_sra): New function.
8049         (ipa_early_sra_gate): New function.
8050         (pass_early_ipa_sra): New variable.
8051         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
8052
8053 2009-09-17  Michael Matz  <matz@suse.de>
8054
8055         PR middle-end/41347
8056         * tree.c (build_type_attribute_qual_variant): Export.
8057         * tree.h (build_type_attribute_qual_variant): Declare.
8058         * tree-inline.c (remap_type_1): Use it to build variants with
8059         the original qualifiers and attributes.
8060
8061 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8062
8063         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
8064         without a fallthrough edge.
8065
8066 2009-09-16  DJ Delorie  <dj@redhat.com>
8067
8068         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
8069         chip and ignore the "fast_interrupt" attribute if so.
8070
8071 2009-09-16  Richard Henderson  <rth@redhat.com>
8072
8073         PR middle-end/41360
8074         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
8075         barrier fix.
8076
8077 2009-09-16  Richard Henderson  <rth@redhat.com>
8078
8079         PR target/41246
8080         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
8081         is set only if DECL_NO_STATIC_CHAIN is unset.
8082         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
8083         (FOR_EACH_NEST_INFO): New.
8084         (walk_all_functions): Use it.
8085         (finalize_nesting_tree): Likewise.
8086         (unnest_nesting_tree): Likewise.
8087         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
8088         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
8089         (convert_gimple_call): Early out if gimple_call_chain already set.
8090         (convert_all_function_calls): Iterate until no new functions
8091         require a static chain.
8092         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
8093         when building a trampoline.  Use dump_function_to_file instead
8094         of dump_function.
8095         (lower_nested_functions): Open dump_file.  Validate that decls
8096         that have DECL_NO_STATIC_CHAIN from the front end don't have that
8097         bit reset by this pass.
8098
8099 2009-09-16  Michael Matz  <matz@suse.de>
8100
8101         PR fortran/41212
8102         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
8103         shorten decl_common_unused.
8104         (DECL_RESTRICTED_P): New accessor.
8105         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
8106         to disambiguate marked decls and restrict pointers.
8107
8108 2009-09-16  Richard Henderson  <rth@redhat.com>
8109
8110         PR middle-end/41360
8111         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
8112
8113 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
8114
8115         * integrate.c (set_block_abstract_flags): Call
8116         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
8117
8118 2009-09-16  Richard Guenther  <rguenther@suse.de>
8119
8120         PR middle-end/34011
8121         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
8122         as non-aliased.
8123
8124 2009-09-16  DJ Delorie  <dj@redhat.com>
8125             Kaz Kojima  <kkojima@gcc.gnu.org>
8126
8127         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
8128         (sh_expand_prologue): Update calls to output_stack_adjust.
8129         (sh_expand_epilogue): Likewise.
8130
8131 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
8132
8133         PR bootstrap/41349
8134         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
8135         trying to limit the extent of searches in the insn stream.
8136
8137 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
8138             Jakub Jelinek  <jakub@redhat.com>
8139
8140         PR target/41175
8141         PR target/40677
8142         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
8143         problem.
8144         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
8145         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
8146         (rs6000_savres_strategy): Always save FP registers inline if the
8147         target doesn't support hardware double-precision.  Set the above
8148         bits in return value when needed.
8149         (rs6000_savres_routine_sym): Fix computation for cache selector.
8150         Mark the generated symbol as a function.  Rename exitp argument to
8151         lr.  Move code for determining the name of the symbol...
8152         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
8153         getting the names right on AIX and 64-bit Linux.
8154         (savres_routine_name): New variable.
8155         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
8156         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
8157         on what the target routine uses as a base register.  If savep && lr
8158         describe saving of r0 into memory slot.
8159         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
8160         line calls for AIX ABI.
8161         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
8162         determine FP save/restore functions.
8163         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
8164         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
8165         gen_addsi3.
8166         (rs6000_emit_epilogue): Adjust computation of restore_lr.
8167         Duplicate restoration of LR and execute the appropriate one
8168         depending on whether GPRs are being restored inline.  Set r11 from
8169         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
8170         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
8171         Fix out of line calls for AIX ABI.
8172         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
8173         New insn.
8174         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
8175         register 11.
8176         (*restore_gpregs_spe): Likewise.
8177         (*return_and_restore_gpregs_spe): Likewise.
8178         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8179         Define to empty string unconditionally.
8180         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8181         Define to empty string unconditionally.
8182         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
8183         !TARGET_64BIT.
8184
8185 2009-09-15  Jan Hubicka  <jh@suse.cz>
8186
8187         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
8188         * params.def (inline-insns-auto): Likewise.
8189
8190 2009-09-15  Martin Jambor  <mjambor@suse.cz>
8191
8192         * ipa-inline.c (estimate_function_body_sizes): Dump info about
8193         individual statements only at TDF_DETAILS dump level.  Format
8194         source for 80 characters per line.
8195
8196 2009-09-15  Christian Bruel  <christian.bruel@st.com>
8197
8198         * regrename.c (do_replace): Update REG_DEAD notes.
8199
8200 2009-09-15  Revital Eres  <eres@il.ibm.com>
8201
8202         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
8203         * targhooks.c (default_builtin_support_vector_misalignment):
8204         New builtin function.
8205         * targhooks.h (default_builtin_support_vector_misalignment):
8206         Declare.
8207         * target.h (builtin_support_vector_misalignment):
8208         New field in struct gcc_target.
8209         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
8210         new builtin function.
8211         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
8212         Define.
8213         * config/rs6000/rs6000.c
8214         (rs6000_builtin_support_vector_misalignment): New function.
8215         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
8216
8217 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
8218
8219         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
8220         instead of INSN_P.
8221         (bfin_optimize_loop): Likewise.
8222         (bfin_gen_bundles): Likewise.
8223         (workaround_speculation): Likewise.
8224         (find_load): Return NULL_RTX for debug_insn.
8225
8226 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
8227
8228         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
8229         (sminsf3): Ditto.
8230
8231 2009-09-14  DJ Delorie  <dj@redhat.com>
8232
8233         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
8234         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
8235         VLIW mode.
8236
8237 2009-09-14  Richard Henderson  <rth@redhat.com>
8238             Jakub Jelinek  <jakub@redhat.com>
8239
8240         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
8241         * cfgbuild.c (make_edges): Handle asm goto.
8242         * cfglayout.c (fixup_reorder_chain): Likewise.
8243         * cfgrtl.c (patch_jump_insn): Likewise.
8244         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
8245         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
8246         (gimple_build_asm_vec): Add and use labels parameter.
8247         (gimple_build_asm): Remove.
8248         (walk_gimple_asm): Walk labels too.
8249         * gimple.def (GIMPLE_ASM): Update docs.
8250         * gimple.h: Update decls.
8251         (struct gimple_statement_asm): Change nc to use unsigned char;
8252         add nl member.
8253         (gimple_asm_nlabels): New.
8254         (gimple_asm_label_op, gimple_asm_set_label_op): New.
8255         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
8256         into gimple_build_asm_vec.
8257         * jump.c (mark_jump_label_asm): New.
8258         (mark_jump_label): Use it.
8259         (redirect_jump_1): Handle asm goto.
8260         (invert_jump_1): Soft fail if X is null.
8261         * recog.c (extract_asm_operands): New.
8262         (asm_noperands): Use it; handle asm labels.
8263         (decode_asm_operands): Use extract_asm_operands.
8264         (asm_operand_ok): Properly handle empty string.
8265         * reg-stack.c (get_asm_operands_in_out): Rename from
8266         get_asm_operand_n_inputs; use extract_asm_operands; return both
8267         inputs and outputs by reference; update all callers.
8268         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
8269         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
8270         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
8271         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
8272         (extract_asm_operands): Declare.
8273         * stmt.c (expand_asm_operands): Add and use labels parameter.
8274         (check_unique_operand_names): Likewise.
8275         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
8276         (expand_asm_stmt): Handle asm labels.
8277         * tree-cfg.c (make_gimple_asm_edges): New.
8278         (make_edges): Use it.
8279         (cleanup_dead_labels): Handle asm labels.
8280         (is_ctrl_altering_stmt): Likewise.
8281         (gimple_redirect_edge_and_branch): Likewise.
8282         * tree.def (ASM_EXPR): Add 5th operand.
8283         * tree.h (ASM_LABELS): New.
8284         (resolve_asm_operand_names): Update decl.
8285
8286         * c-parser.c (c_parser_asm_statement): Parse asm goto.
8287         (c_parser_asm_goto_operands): New.
8288         * c-tree.h (build_asm_expr): Update decl.
8289         * c-typeck.c (build_asm_expr): Add and use labels parameter.
8290         * doc/extend.texi: Document asm goto.
8291
8292 2009-09-14  Richard Henderson  <rth@redhat.com>
8293
8294         * except.h: Update declarations.
8295         (struct pointer_map_t): Forward declare.
8296         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
8297         (struct eh_landing_pad_d, eh_landing_pad): New.
8298         (struct eh_catch_d, eh_catch): New.
8299         (struct eh_region_d): Remove next_region_sharing_label, aka,
8300         label, tree_label, landing_pad, post_landing_pad, resume,
8301         may_contain_throw.  Rename region_number to index.  Remove
8302         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
8303         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
8304         (VEC(eh_landing_pad,gc)): New.
8305         (struct eh_status): Remove last_region_number.  Add lp_array,
8306         throw_stmt_table, ttype_data, ehspec_data.
8307         (ehr_next, FOR_ALL_EH_REGION_AT): New.
8308         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
8309         * except.c (lang_protect_cleanup_actions): Return tree.
8310         (struct ehl_map_entry): Remove.
8311         (init_eh_for_function): Push zero entries for region and lp_array.
8312         (gen_eh_region): Add to region_array immediately.
8313         (gen_eh_region_catch): Operate on eh_catch objects.
8314         (gen_eh_landing_pad): New.
8315         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
8316         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
8317         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
8318         (get_eh_landing_pad_from_number_fn): New.
8319         (get_eh_landing_pad_from_number): New.
8320         (get_eh_region_from_lp_number_fn): New.
8321         (get_eh_region_from_lp_number): New.
8322         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
8323         (get_exception_pointer, get_exception_filter): Remove.
8324         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
8325         (current_function_has_exception_handlers): Simplify.
8326         (bring_to_root, eh_region_replaceable_by_p): Remove.
8327         (replace_region, hash_type_list, hash_eh_region): Remove.
8328         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
8329         (label_to_region_map, num_eh_regions): Remove.
8330         (get_next_region_sharing_label, must_not_throw_labels): Remove.
8331         (find_exception_handler_labels): Remove.
8332         (duplicate_eh_regions_0, find_prev_try): Remove.
8333         (struct duplicate_eh_regions_data): New.
8334         (duplicate_eh_regions_1): Rewrite.
8335         (duplicate_eh_regions): Return a pointer map instead of an
8336         integer offset.
8337         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
8338         (redirect_eh_edge_to_label): Remove.
8339         (eh_region_outermost): Rewrite using eh_region pointers
8340         instead of integers.
8341         (add_ttypes_entry): Update for ttype_data move to eh_status.
8342         (add_ehspec_entry): Rewrite with VEC instead of varray.
8343         (assign_filter_values): Likewise.  Export.
8344         (build_post_landing_pads, connect_post_landing_pads): Remove.
8345         (dw2_build_landing_pads): Rewrite to use lp_array.
8346         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
8347         (sjlj_assign_call_site_values): Rewrite to use lp_array.
8348         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
8349         (sjlj_mark_call_sites): Update for landing pad numbers.
8350         (finish_eh_generation): Rewrite.
8351         (gate_handle_eh): Do nothing for no eh tree.
8352         (pass_rtl_eh): Move up near finish_eh_generation.
8353         (remove_eh_landing_pad): New.
8354         (remove_eh_handler): Export.
8355         (remove_eh_region, remove_eh_handler_and_replace): Remove.
8356         (for_each_eh_label): Rewrite to use lp_array.
8357         (make_reg_eh_region_note): New.
8358         (make_reg_eh_region_note_nothrow_nononlocal): New.
8359         (insn_could_throw_p): New.
8360         (copy_reg_eh_region_note_forward): New.
8361         (copy_reg_eh_region_note_backward): New.
8362         (check_handled, add_reachable_handler): Remove.
8363         (reachable_next_level, foreach_reachable_handler): Remove.
8364         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
8365         (get_eh_region_and_lp_from_rtx): New.
8366         (get_eh_region_from_rtx): New.
8367         (can_throw_internal_1, can_throw_external_1): Remove.
8368         (can_throw_internal): Use get_eh_region_from_rtx.
8369         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
8370         (insn_nothrow_p, can_nonlocal_goto): New.
8371         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
8372         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
8373         (add_action_record): Use VEC not varray.
8374         (collect_one_action_chain): Update for eh_region changes.
8375         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
8376         Use get_eh_region_and_lp_from_rtx.
8377         (gate_convert_to_eh_region_ranges): New.
8378         (pass_convert_to_eh_region_ranges): Use it.
8379         (push_uleb128, push_sleb128): Use VEC not varray.
8380         (output_one_function_exception_table): Likewise.
8381         (dump_eh_tree): Update for eh_region changes.
8382         (verify_eh_tree): Likewise.
8383         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
8384         * tree-eh.c: Include target.h.
8385         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
8386         Don't disallow GIMPLE_RESX; adjust argument check.
8387         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
8388         (record_stmt_eh_region): Update for landing pad numbers;
8389         generate a landing pad if necessary.
8390         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
8391         (remove_stmt_from_eh_lp_fn): Similarly.
8392         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
8393         Update for lp numbers; don't special case missing throw_stmt_table.
8394         (lookup_expr_eh_lp): Similarly.
8395         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
8396         (eh_seq, eh_region_may_contain_throw): New.
8397         (struct leh_state): Add ehp_region.
8398         (struct leh_tf_state): Remove eh_label.
8399         (emit_post_landing_pad): New.
8400         (emit_resx, emit_eh_dispatch): New.
8401         (note_eh_region_may_contain_throw): New.
8402         (frob_into_branch_around): Take eh_region not eh label;
8403         emit eh code into eh_seq.
8404         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
8405         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
8406         lower_eh_must_not_throw.  Emit code to eh_seq.
8407         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
8408         (lower_try_finally_onedest): Likewise.
8409         (lower_try_finally_copy): Likewise.
8410         (lower_try_finally_switch): Likewise.
8411         (lower_try_finally): Initialize ehp_region.
8412         (lower_catch): Update for eh_catch objects.
8413         (lower_eh_filter): Don't handle must_not_throw.
8414         (lower_eh_must_not_throw): New.
8415         (lower_cleanup): Don't set eh_label.
8416         (lower_eh_constructs_2): Resolve eh builtins.
8417         Handle GIMPLE_EH_MUST_NOT_THROW.
8418         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
8419         Add eh_seq to the end of the function body.
8420         (make_eh_dispatch_edges): New.
8421         (make_eh_edge): Remove.
8422         (make_eh_edges): Simplify for landing pads.
8423         (redirect_eh_edge_1): New.
8424         (redirect_eh_edge): Use it.
8425         (redirect_eh_dispatch_edge): New.
8426         (stmt_could_throw_p): Use a switch.  Allow RESX.
8427         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
8428         (stmt_can_throw_internal): Likewise.
8429         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
8430         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
8431         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
8432         (gate_refactor_eh): New.
8433         (pass_refactor_eh): Use it.
8434         (lower_resx, execute_lower_resx, pass_lower_resx): New.
8435         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
8436         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
8437         (remove_unreachable_handlers): Rename from
8438         tree_remove_unreachable_handlers; rewrite for landing pads;
8439         call remove_eh_handler directly.
8440         (remove_unreachable_handlers_no_lp): New.
8441         (unsplit_eh, unsplit_all_eh): New.
8442         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
8443         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
8444         (cleanup_empty_eh_unsplit): New.
8445         (cleanup_empty_eh): Rewrite.
8446         (cleanup_all_empty_eh): New.
8447         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
8448         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
8449         (gate_cleanup_eh): New.
8450         (pass_cleanup_eh): Use it.
8451         (verify_eh_edges): Move later in file.  Expect one EH edge.
8452         (verify_eh_dispatch_edge): New.
8453
8454         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
8455         (gtype-desc.o): Add TARGET_H.
8456         (tree.o): Use EXCEPT_H, not except.h.
8457         (cfgbuild.o): Add EXPR_H.
8458         (GTFILES): Add vecprim.h.
8459         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
8460         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
8461         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
8462         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
8463         * calls.c (emit_call_1): Use make_reg_eh_region_note.
8464         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
8465         calls to can_throw_internal.
8466         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
8467         (make_edges): Don't handle RESX; use can_nonlocal_goto.
8468         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
8469         (expand_gimple_stmt): Use make_reg_eh_region_note.
8470         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
8471         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
8472         or find_exception_handler_labels.
8473         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
8474         there is exacly one EH edge.  Use can_nonlocal_goto and
8475         can_throw_internal.
8476         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
8477         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
8478         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
8479         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
8480         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
8481         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
8482         * dse.c (scan_insn): Use insn_could_throw_p.
8483         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
8484         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
8485         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
8486         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
8487         EXC_PTR_EXPR or FILTER_EXPR.
8488         (tree_expr_nonzero_warnv_p): Likewise.
8489         * function.h: Include vecprim.h, not varray.h
8490         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
8491         move ttype_data and ehspec_data members to struct eh_status; change
8492         action_record_data member to a VEC.
8493         * gcse.c (hash_scan_set): Use can_throw_internal.
8494         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
8495         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
8496         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8497         (block_may_fallthru): Don't handle RESX_EXPR.
8498         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
8499         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
8500         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
8501         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
8502         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
8503         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
8504         (gimple_size): Likewise.
8505         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
8506         (gimple_build_resx): Use gimple_build_with_ops.
8507         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
8508         (is_gimple_val): Likewise.
8509         (is_gimple_stmt): Remove RESX_EXPR.
8510         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
8511         (GIMPLE_RESX): Reorder with other EH constructs.
8512         * gimple.h (struct gimple_statement_eh_mnt): New.
8513         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
8514         (gimple_eh_filter_must_not_throw): Remove.
8515         (gimple_eh_filter_set_must_not_throw): Remove.
8516         (gimple_eh_must_not_throw_fndecl): New.
8517         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
8518         (is_gimple_resx): New.
8519         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
8520         Don't copy EH_FILTER_MUST_NOT_THROW.
8521         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
8522         * ipa-inline.c (estimate_function_body_sizes): Don't try to
8523         handle must_not_throw_labels specially.
8524         * ipa-pure-const.c (check_call): Update debug statement for LP.
8525         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
8526         * ipa-utils.c (get_base_var): Likewise.
8527         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
8528         * lower-subreg.c (move_eh_region_note): Remove.
8529         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
8530         * omp-low.c (new_omp_context): Update for eh_lp_nr.
8531         (create_task_copyfn): Likewise.
8532         (maybe_catch_exception): Use gimple_build_eh_filter.
8533         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
8534         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
8535         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
8536         and pass_lower_resx.
8537         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
8538         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
8539         can_throw_internal, can_nonlocal_goto.
8540         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
8541         copy_reg_eh_region_note_forward.
8542         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
8543         (emit_output_reload_insns): Likewise.
8544         (copy_eh_notes): Remove.
8545         * rtl.def (RESX): Remove.
8546         * rtl.h: Update declarations.
8547         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
8548         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
8549         (update_eh_label): Remove.
8550         (cleanup_dead_labels_eh): New.
8551         (cleanup_deal_labels): Use it instead of update_eh_label.
8552         (gimple_merge_blocks): Update landing pad data structure when
8553         removing a landing pad label.
8554         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
8555         test; handle GIMPLE_EH_MUST_NOT_THROW.
8556         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
8557         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
8558         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
8559         (verify_stmt): Likewise.  Verify landing pads.
8560         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
8561         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
8562         (struct move_stmt_d): Add eh_map.
8563         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
8564         (move_stmt_r): Remap eh region numbers in builtin calls,
8565         resx and eh_dispatch.
8566         (move_block_to_fn): Remove eh_offset parameter.  Use
8567         maybe_duplicate_eh_stmt_fn.
8568         (find_outermost_region_in_block): Operate on eh_region pointers
8569         instead of region numbers.
8570         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
8571         duplicate_eh_regions.
8572         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
8573         test earlier.  Disallow EH landing pads.
8574         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
8575         * tree-flow.h: Update declarations.
8576         (struct tree_ann_common_d): Replace rn with lp_nr.
8577         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
8578         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
8579         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
8580         resx and eh_dispatch.
8581         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
8582         (copy_edges_for_bb): Use make_eh_dispatch_edges.
8583         (copy_cfg_body): Expect eh_map instead of eh_region_offset
8584         from duplicate_eh_regions.
8585         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
8586         update RESX; handle EH_DISPATCH.
8587         (expand_call_inline): Set eh_lp_nr, not eh_region.
8588         (maybe_inline_call_in_expr): Likewise.
8589         * tree-inline.h (struct copy_body_data): Replace eh_region with
8590         eh_lp_nr, eh_region_offset with eh_map.
8591         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
8592         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
8593         * tree-pretty-print.c (dump_generic_node): Don't handle
8594         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
8595         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
8596         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
8597         EXC_PTR_EXPR, FILTER_EXPR.
8598         * tree-ssa-operands.c (get_expr_operands): Likewise.
8599         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
8600         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8601         (ao_ref_init_from_vn_reference): Likewise.
8602         * tree-ssa-sink.c (statement_sink_location): Likewise.
8603         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8604         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
8605         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
8606         EXC_PTR_EXPR, FILTER_EXPR.
8607         (is_exception_related): Remove.
8608         (compute_avail): Don't call it.
8609         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
8610         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
8611         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
8612         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
8613         Build EH builtins.
8614         (build_resx): Remove.
8615         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
8616         * tree.h: Update declarations.
8617         (EH_FILTER_MUST_NOT_THROW): Remove.
8618         (struct tree_label_decl): Add eh_landing_pad_nr.
8619         (EH_LANDING_PAD_NR): New.
8620         * value-prof.c (gimple_ic): Tidy variable names.  Update for
8621         landing pad numbers.
8622         (gimple_stringop_fixed_value): Tidy variable names.  Assert
8623         that neither call stmt can throw.
8624         * vecprim.h (uchar): New.
8625         (VEC(uchar,heap), VEC(uchar,gc)): New.
8626
8627         * c-common.c (c_define_builtins): Update call to
8628         build_common_builtin_nodes.
8629         * c-parser.c (c_parse_file): Don't call
8630         default_init_unwind_resume_libfunc.
8631
8632 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8633
8634         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
8635         (mips_cprestore_address_p): Likewise.
8636         (mips_save_gp_to_cprestore_slot): Likewise.
8637         (mips_restore_gp): Rename to...
8638         (mips_restore_gp_from_cprestore_slot): ...this.
8639         (mips_must_initialize_gp_p): Declare.
8640         (mips_emit_save_slot_move): Likewise.
8641         (mips_output_load_label): Return nothing.
8642         (mips_eh_uses): Declare.
8643         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
8644         (TARGET_CPRESTORE_DIRECTIVE): New macro.
8645         (TARGET_ABSOLUTE_JUMPS): Likewise.
8646         (EH_USES): Likewise.
8647         (FIRST_PSEUDO_REGISTER): Update comment.
8648         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
8649         (MIPS_CALL): ...here.
8650         (REGISTER_NAMES): Add $cprestore.
8651         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
8652         Add load_label_length, has_inflexible_gp_insn_p,
8653         has_flexible_gp_insn_p, must_initialize_gp_p and
8654         must_restore_gp_when_clobbered_p.
8655         (mips_expand_call): Don't generate split instructions here.
8656         (mips_split_call): Update the call to mips_restore_gp after
8657         the above name change.
8658         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
8659         (mips_find_gp_ref): New function.
8660         (mips_insn_has_inflexible_gp_ref_p): Likewise.
8661         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
8662         (mips_insn_has_flexible_gp_ref_p): Likewise.
8663         (mips_cfun_has_flexible_gp_ref_p): Likewise.
8664         (mips_function_has_gp_insn): Delete.
8665         (mips_global_pointer): Drop the df_regs_ever_live_p check.
8666         Use the new functions above.  Only return INVALID_REGNUM
8667         for TARGET_ABSOLUTE_JUMPS.
8668         (mips_must_initialize_gp_p): New function.
8669         (mips_get_cprestore_base_and_offset): New function, extracted from...
8670         (mips_cprestore_slot): ...here.  Take a bool parameter.
8671         (mips_cfun_has_cprestore_slot_p): New function.
8672         (mips_cprestore_address_p): Likewise.
8673         (mips_save_gp_to_cprestore_slot): Likewise.
8674         (mips_restore_gp): Rename to...
8675         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
8676         epilogue_completed.  Update the call to mips_cprestore_slot.
8677         Test cfun->machine->must_restore_gp_when_clobbered_p.
8678         (mips_direct_save_slot_move_p): New function.
8679         (mips_emit_save_slot_move): Likewise.
8680         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
8681         of cfun->machine->global_pointer.
8682         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
8683         (mips_save_reg): Use mips_emit_save_slot_move.
8684         (mips_expand_prologue): Set must_initialize_gp_p.
8685         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
8686         for all cprestore saves.  Emit a use_cprestore instruction after
8687         setting up the cprestore slot.
8688         (mips_restore_reg): Use mips_emit_save_slot_move.
8689         (mips_process_load_label): New function.
8690         (mips_load_label_length): Likewise.
8691         (mips_output_load_label): Don't return asm: output it here instead.
8692         Use mips_process_load_label.
8693         (mips_adjust_insn_length): Adjust the length of branch instructions
8694         that have length MAX_PIC_BRANCH_LENGTH.
8695         (mips_output_conditional_branch): Update the call to
8696         mips_output_load_label.  Assume the branch target is OPERANDS[0]
8697         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
8698         (mips_output_order_conditional_branch): Swap the meaning of
8699         OPERANDS[0] and OPERANDS[1].
8700         (mips_variable_issue): Don't count ghost instructions.
8701         (mips_expand_ghost_gp_insns): New function.
8702         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
8703         (mips_output_mi_thunk): Set must_initialize_gp_p.
8704         (mips_eh_uses): New function.
8705         * config/mips/predicates.md (cprestore_save_slot_operand)
8706         (cprestore_load_slot_operand): New predicates.
8707         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
8708         (UNSPEC_MOVE_GP): Likewise.
8709         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
8710         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
8711         (CPRESTORE_SLOT_REGNUM): New register.
8712         (MAX_PIC_BRANCH_LENGTH): New constant.
8713         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
8714         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
8715         branches.  Fix commentary.
8716         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
8717         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
8718         Change type to "ghost".
8719         (loadgp_absolute_<mode>): Likewise.
8720         (loadgp_rtp_<mode>): Likewise.
8721         (copygp_mips16): Likewise.
8722         (loadgp_blockage): Remove redundant mode attribute.
8723         (potential_cprestore): New instruction.
8724         (cprestore): Turn into an unspec set.
8725         (use_cprestore): New instruction.
8726         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
8727         (*branch_fp_inverted): Likewise.
8728         (*branch_order<mode>): Likewise.
8729         (*branch_order<mode>_inverted): Likewise.
8730         (*branch_equality<mode>): Likewise.
8731         (*branch_equality<mode>_inverted): Likewise.
8732         (*branch_bit<bbv><mode>): Likewise.
8733         (*branch_bit<bbv><mode>_inverted): Likewise.
8734         (*branch_equality<mode>_mips16): Remove redundant mode.
8735         (jump): Turn into a define_expand.
8736         (*jump_absolute): New instruction.
8737         (*jump_pic): Likewise.
8738         (*jump_mips16): Rename previously-unnamed pattern.  Remove
8739         redundant mode attribute.
8740         (restore_gp): Split on epilogue_completed rather than
8741         reload_completed.  Change type to "ghost".
8742         (move_gp<mode>): New instruction.
8743         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
8744         Remove redundant mode attribute.
8745         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
8746         (bc1any4f, bc1any2t, bc1any2f): Likewise.
8747         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
8748
8749 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8750
8751         PR target/41210
8752         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
8753         are returned in the same register (vs34 or v2) that Altivec vector
8754         types are returned in.
8755         (rs6000_libcall_value): Ditto.
8756
8757         PR target/41331
8758         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
8759         instead of explicit addsi3/adddi3 calls.
8760         (rs6000_split_multireg_move): Ditto.
8761         (rs6000_emit_allocate_stack): Ditto.
8762         (rs6000_emit_prologue): Ditto.
8763         (rs6000_output_mi_thunk): Ditto.
8764
8765         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
8766         size is 64 bits if we can use 64-bit registers.
8767
8768 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
8769
8770         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
8771         symbols.
8772
8773         From Jie Zhang <jie.zhang@analog.com>:
8774         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
8775         save FP and RETS with saveall attribute.
8776         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
8777         with saveall attribute.
8778
8779         * config/bfin/bfin.c (bfin_expand_builtin,
8780         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
8781         operands.
8782
8783         From Jie Zhang <jie.zhang@analog.com>:
8784         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
8785         before use in two places.
8786         * config/bfin/bfin.md (AREG): Define mode iterator.
8787         (reload_in, reload_out): Use mode iterator AREG.
8788
8789 2009-09-14  Richard Guenther  <rguenther@suse.de>
8790
8791         PR middle-end/41350
8792         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
8793         EH personality path.
8794
8795 2009-09-13  Richard Guenther  <rguenther@suse.de>
8796             Rafael Avila de Espindola  <espindola@google.com>
8797
8798         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
8799         (LANG_HOOKS_EH_PERSONALITY): Likewise.
8800         (LANG_HOOKS_INITIALIZER): Adjust.
8801         (lhd_pass_through_t): Declare.
8802         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
8803         eh_personality.
8804         * langhooks.c (lhd_pass_through_t): New function.
8805         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
8806         dwarf2out_begin_prologue): Use personality from current_function_decl.
8807         * expr.h (get_personality_function): Declare.
8808         * expr.c (get_personality_function): New function.
8809         (build_personality_function): Likewise.
8810         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
8811         (eh_personality_libfunc): Remove.
8812         * optabs.c (build_libfunc_function): New function split out from ...
8813         (init_one_libfunc): ... here.
8814         * tree.h (DECL_FUNCTION_PERSONALITY): New.
8815         (tree_function_decl): Add personality.
8816         (lhd_gcc_personality): Declare.
8817         (build_personality_function): Likewise.
8818         * tree.c (gcc_eh_personality_decl): New.
8819         (lhd_gcc_personality): New function.
8820         * except.h (lang_eh_runtime_type): Remove.
8821         (enum eh_personality_kind): New.
8822         (build_personality_function): Declare.
8823         (function_needs_eh_personality): Declare.
8824         * except.c (lang_eh_runtime_type): Remove.
8825         (function_needs_eh_personality): New function.
8826         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
8827         (sjlj_emit_function_enter, output_function_exception_table):
8828         Use personality from current_function_decl.
8829         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
8830         * tree-inline.c (tree_can_inline_p): Do not inline across different
8831         EH personalities.
8832         (expand_call_inline): Likewise.  Adjust the callers EH personality.
8833         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
8834         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
8835         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
8836         (c-parser.o): Likewise
8837         * c-tree.h (c_eh_initialized_p): Remove.
8838         (c_maybe_initialize_eh): Likewise.
8839         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
8840         (finish_decl): Don't call c_maybe_initialize_eh.
8841         (c_eh_initialized_p): Remove.
8842         (c_maybe_initialize_eh): Likewise.
8843         * c-parser.c (c_parser_omp_construct): Likewise.
8844         (c_parse_file): Initialize exception handling.
8845
8846 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
8847
8848         * config.gcc (tm_file): Remove i386/biarch32.h
8849         for i?86-w64-mingw* case.
8850         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
8851         support.
8852         * config.host: Set for x64 mingw the option
8853         use_long_long_for_widest_fast_int to yes.
8854
8855 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
8856
8857         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
8858         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
8859         (dbxout_begin_function): Likewise.
8860         * final.c (dwarf2_debug_info_emitted_p): New predicate.
8861         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
8862         set on the function.
8863         (final_end_function): Likewise.
8864         (final_scan_insn): Likewise.
8865         (rest_of_handle_final): Likewise.
8866         * varasm.c (assemble_start_function): Likewise.
8867         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8868
8869 2009-09-12  Jason Merrill  <jason@redhat.com>
8870
8871         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
8872         * opts.c (common_handle_option): constify.
8873
8874 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
8875
8876         * doc/install.texi (avr): Remove obsolete reference site.
8877
8878 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
8879
8880         * doc/install.texi (Binaries): Adjust AIX link.
8881
8882 2009-09-12  Akim Demaille  <demaille@gostai.com>
8883
8884         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
8885         Use an imperative sentence.
8886
8887 2009-09-11  Richard Henderson  <rth@redhat.com>
8888
8889         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
8890         structure-name and has-tree-operands arguments; update all entries.
8891         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
8892         update all entries.
8893         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
8894         (gsstruct_code_size): New.
8895         (gss_for_code_): New.
8896         (gss_for_code): Remove.
8897         (gimple_size): Rewrite using gsstruct_code_size.
8898         (gimple_statement_structure): Move to gimple.h.
8899         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
8900         (gss_for_code, gimple_statement_structure): New.
8901         (gimple_ops): Use new arrays; tidy.
8902
8903 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8904
8905         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
8906         operand to be a PLUS expression.
8907         * config/pa/pa.c (pa_secondary_reload): Likewise.
8908
8909 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
8910
8911         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
8912
8913         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
8914         XEXP (in_rtx, 8).
8915
8916 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8917
8918         From Jie Zhang <jie.zhang@analog.com>:
8919         * doc/extend.texi (node Function Attributes): Document l2
8920         function attribute.
8921         (node Blackfin Variable Attributes): Document l2 variable attributes.
8922
8923 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
8924
8925         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
8926         to match the system compiler's configuration at inflection point.
8927         Add comment to remark a remaining difference with system compiler.
8928
8929         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
8930         * configure: Regenerate.
8931
8932 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8933
8934         From Jie Zhang <jie.zhang@analog.com>:
8935         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
8936         (bfin_handle_l2_attribute): New.
8937         (bfin_attribute_table): Add l2 attribute.
8938
8939 2009-09-11  Michael Matz  <matz@suse.de>
8940
8941         PR middle-end/41275
8942         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
8943         on the local_decls list.
8944
8945 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
8946
8947         PR debug/41276
8948         PR debug/41307
8949         * cselib.c (cselib_expand_value_rtx_cb): Document callback
8950         interface.
8951         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
8952         for VALUEs, to implement the documented interface.
8953         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
8954         Adjust for VALUEs and anything else, to implement the
8955         documented interface.
8956
8957 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
8958
8959         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
8960         with actual SPE/paired vector modes before using 64-bit alignment.
8961         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
8962
8963 2009-09-10  DJ Delorie  <dj@redhat.com>
8964
8965         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
8966         emitted.
8967
8968         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
8969         * config/mep/mep.c (mep_legitimate_constant_p): New.
8970         * config/mep/mep-protos.h: Prototype it.
8971
8972 2009-09-10  Richard Henderson  <rth@redhat.com>
8973
8974         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
8975
8976 2009-09-10  Jason Merrill  <jason@redhat.com>
8977
8978         * tree.c (chain_index): New fn.
8979         * tree.h: Declare it.
8980
8981 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8982
8983         * config/sol2-c.c (cmn_err_length_specs): Initialize
8984         scalar_identity_flag.
8985
8986 2009-09-10  Richard Henderson  <rth@redhat.com>
8987
8988         * tree.h (struct tree_decl_common): Move align member earlier;
8989         move label_decl_uid member ...
8990         (struct tree_label_decl): ... here.
8991         (LABEL_DECL_UID): Update to match.
8992
8993         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
8994         not TDF_DETAILS.
8995
8996         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
8997         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
8998
8999         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
9000         dest_prev if the edge is complex.
9001
9002         * tree-cfg.c (is_ctrl_stmt): Use a switch.
9003
9004         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
9005         loop latch tests earlier.
9006
9007         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
9008         before GIMPLE_RETURN, not after its predecessor; insert
9009         before GIMPLE_RESX.
9010
9011         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
9012         gimple_seq_empty_p to test for no PHI nodes.
9013         * tree-cfg.c (split_critical_edges): Likewise.
9014
9015         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
9016
9017 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9018
9019         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
9020         introduced by the VTA branch merge.
9021
9022 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9023
9024         * ira-conflicts.c: Use fputs or putc instead of fprintf
9025         where appropriate.
9026         * cfg.c: Ditto.
9027         * toplev.c: Ditto.
9028         * tree-switch-conversion.c: Ditto.
9029
9030 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9031
9032         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
9033         introduced by the VTA branch merge.
9034
9035 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9036
9037         Revert:
9038         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9039
9040         PR rtl-optimization/39779
9041         * expr.c (convert_modes): Return when mode == oldmode after
9042         CONST_INTs are processed.
9043
9044 2009-09-10  Nick Clifton  <nickc@redhat.com>
9045
9046         * config/mep/mep.c (mep_encode_section_info): Copy weakness
9047         attribute and referring decl when creating renamed symbol.
9048
9049 2009-09-10  Richard Guenther  <rguenther@suse.de>
9050
9051         PR middle-end/41257
9052         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
9053         reachable nodes.
9054         (cgraph_finalize_compilation_unit): Compute reachability
9055         before emitting thunks.  Properly process aliases before
9056         possibly removing unreachable nodes.
9057
9058 2009-09-10  Richard Guenther  <rguenther@suse.de>
9059
9060         PR middle-end/41254
9061         * tree.c (struct free_lang_data_d): Add worklist member.
9062         (find_decls_types_r): Push onto the worklist instead of recursing.
9063         Handle TREE_BINFOs properly.
9064         (find_decls_types): New function wrapped around find_decls_types_r
9065         to process the worklist.
9066         (find_decls_types_in_eh_region): Use it.
9067         (find_decls_types_in_node): Likewise.
9068         (find_decls_types_in_var): Likewise.
9069         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
9070         * tree.h (RECORD_OR_UNION_TYPE_P): New.
9071         (AGGREGATE_TYPE_P): Adjust.
9072
9073 2009-09-09  Jason Merrill  <jason@redhat.com>
9074
9075         * configure.ac: Check glibc version even if we have an in-tree
9076         assembler.
9077
9078 2009-09-09  Anthony Green  <green@moxielogic.com>
9079
9080         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
9081         the constant 0 when appropriate.
9082         * config/moxie/constraints.md: Add constraint O.
9083
9084         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
9085         to pass up to 6 32-bit argument values in registers.
9086         (moxie_function_arg): Ditto.
9087         (moxie_arg_partial_bytes): Ditto.
9088         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
9089         (REG_PARM_STACK_SPACE): Ditto.
9090         (FUNCTION_ARG_REGNO_P): Ditto.
9091
9092         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9093         instruction to allocate stack space.
9094
9095 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
9096
9097         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
9098         unnecessarily stringent constraints.  Fix address
9099         calculation in the splitters.
9100
9101 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9102
9103         PR rtl-optimization/39779
9104         * expr.c (convert_modes): Return when mode == oldmode after
9105         CONST_INTs are processed.
9106
9107 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
9108
9109         PR/41315
9110         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
9111         (ix86_expand_prologue): Take frame.padding0 into logic of
9112         to_allocate checks.
9113         (ix86_expand_epilogue): Likewise.
9114
9115 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
9116
9117         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
9118         New variables.
9119         (SHLIB_LINK, SHLIB_INSTALL): Use them.
9120         * config/t-slibgcc-libgcc: New file.
9121         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
9122
9123 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9124
9125         PR tree-optimization/41089
9126         * tree-sra.c (find_var_candidates): Do not consider va_lists in
9127         early SRA.
9128
9129 2009-09-09  Richard Henderson  <rth@redhat.com>
9130
9131         * gimple.h (CASE_GIMPLE_OMP): New.
9132         (is_gimple_omp): Use it.
9133         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
9134         (verify_gimple_debug): Likewise.
9135
9136 2009-09-09  Richard Guenther  <rguenther@suse.de>
9137
9138         PR tree-optimization/41101
9139         * tree-ssa-pre.c (maximal_set): Remove.
9140         (compute_antic_aux): Treat the maximal set as implicitly all ones.
9141         Defer all blocks we didn't visit at least one successor.
9142         (add_to_exp_gen): Do not add to the maximal set.
9143         (make_values_for_phi): Likewise.
9144         (compute_avail): Likewise.
9145         (init_pre): Do not allocate the maximal set.
9146         (execute_pre): Do not dump it.
9147
9148 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9149
9150         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
9151         an SSA_NAME rather than a is_gimple_variable.
9152
9153 2009-09-09  Richard Guenther  <rguenther@suse.de>
9154
9155         PR middle-end/41317
9156         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
9157         code dealing with plain pointer bases.
9158         (maybe_fold_offset_to_reference): Likewise.
9159         (maybe_fold_stmt_addition): Adjust.
9160
9161 2009-09-09  Richard Guenther  <rguenther@suse.de>
9162
9163         * tree.c (free_lang_data_in_type): Do not free the type variant
9164         chains.
9165         (free_lang_data): Merge char_type_node with its properly signed
9166         variant.
9167         (pass_ipa_free): Collect after freeing language specific data.
9168
9169 2009-09-09  Michael Matz  <matz@suse.de>
9170
9171         PR middle-end/41268
9172         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
9173         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
9174         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
9175         to reflect reality.
9176
9177 2009-09-08  DJ Delorie  <dj@redhat.com>
9178
9179         * config/mep/mep.c (conversions[]): Add "ml" pattern.
9180
9181 2009-09-04  Jason Merrill  <jason@redhat.com>
9182
9183         * tree.c (tree_find_value): Remove.
9184         * tree.h: Remove prototype.
9185         * varasm.c (assemble_external): Use value_member instead.
9186
9187 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9188
9189         * toplev.c (process_options): Choose default debugging type when
9190         gtoggle enables debug info and type is unset.
9191
9192 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9193
9194         PR debug/41276
9195         PR debug/41307
9196         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
9197         invalid subreg.
9198
9199 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9200
9201         * configure: Rebuilt with modified libtool.m4.
9202
9203 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9204
9205         PR debug/41229
9206         PR debug/41291
9207         PR debug/41300
9208         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
9209
9210 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9211
9212         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
9213         (remove_statement): Likewise.
9214         (rewrite_use_nonlinear_expr): Adjust.
9215         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
9216         * tree-ssa.c (release_defs_bitset): ... this.  New.
9217         * tree-flow.h (release_defs_bitset): Declare.
9218
9219 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9220
9221         PR debug/41232
9222         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
9223         in the middle block.
9224
9225 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
9226
9227         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
9228         via intptr_t to long type.
9229         (insert_operand_rank): Cast long type via intptr_t to
9230         pointer type.
9231         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
9232         pointer to scalar.
9233         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
9234         from pointer to unsigned via uintptr_t.
9235
9236         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
9237         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
9238         and HAVE_INTPTR_T.
9239         * configure: Regenerated.
9240         * config.in: Regenerated
9241         * system.h (stdint.h): Add include.
9242         (inttypes.h): Likewise.
9243         * Makefile.in (aclocal): Add config/stdint.m4.
9244         * aclocal.m4: Regenerated.
9245
9246 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
9247
9248         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
9249         variables.
9250         (note_np_check_stores): New function.
9251         (harmless_null_pointer_p): New function.
9252         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
9253         changed.  Take into account whether we're in the shadow of a condjump
9254         that tested NP_REG for NULL.
9255         Lose all code that tested for SEQUENCEs.
9256         (workaround_speculation): Avoid inserting NOPs for loads that are
9257         either always executed or a NULL pointer.
9258
9259 2009-09-08  Jan Hubicka  <jh@suse.cz>
9260
9261         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
9262         * params.def (early-inlining-insns): Likewise.
9263
9264 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
9265
9266         PR rtl-optimization/41239
9267         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
9268         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
9269         lists.
9270         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
9271         across calls, as the calls might not always return normally.
9272         (call_may_noreturn_p): New function.
9273         (deps_analyze_insn): Update last_function_call_may_noreturn list.
9274         (init_deps): Initialize it.
9275         (remove_from_deps): Also remove calls from
9276         last_function_call_may_noreturn list.
9277
9278 2009-09-07  Richard Henderson  <rth@redhat.com>
9279
9280         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
9281         more VR->OPERANDS than LHS operands.  Free LHS before returning.
9282
9283 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9284
9285         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
9286         (attr "addrtype"): New member "spreg".
9287         Use it if mem_spfp_address_operand is true for the address.
9288         (attr "type"): New entry "stall".
9289         (cpu_unit "load"): New.
9290         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
9291         "load".
9292         (insn_reservation "loadsp"): New.
9293         (insn_reservation "load_stall1"): New.
9294         (insn_reservation "load_stall3"): New.
9295         (stall): New insn.
9296         * config/bfin/predicates.md (const1_operand, const3_operand): New.
9297         (mem_p_address_operand): Exclude stack and frame pointer based
9298         addresses.
9299         (mem_spfp_address_operand): New; match them here.
9300         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
9301         (bfin_reorg): Call it if scheduling insns.
9302         (bfin_gen_bundles): Remove dummy insns created by
9303         add_sched_insns_for_speculation.
9304
9305         From Jie Zhang <jie.zhang@analog.com>:
9306         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
9307         bfin_si_revision, bfin_workarounds): Move these ...
9308         * config/bfin/bfin.h: ... here.
9309
9310         From Mike Frysinger  <michael.frysinger@analog.com>
9311         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
9312         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
9313         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
9314         bf547m, bf548m, and bf549m.
9315         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
9316         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
9317         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
9318         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
9319         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9320         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
9321         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9322         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9323         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
9324         bf542m, bf544m, bf547m, bf548m, and bf549m.
9325
9326         From Jie Zhang <jie.zhang@analog.com>:
9327         * config/bfin/predicates.md (p_register_operand): New predicate.
9328         (dp_register_operand): New predicate.
9329         * config/bfin/bfin-protos.h (WA_05000074): Define.
9330         (ENABLE_WA_05000074): Define.
9331         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
9332         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
9333         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
9334         (define_attr addrtype): Allow load/store register to be P register.
9335         (define_attr storereg): New.
9336         (define_cpu_unit anomaly_05000074): New.
9337         (define_insn_reservation dsp32shiftimm): New.
9338         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
9339         (define_insn_reservation loadp): Cannot use slot2.
9340         (define_insn_reservation loadsp): Cannot use slot2.
9341         (define_insn_reservation storep): Cannot use slot2. Does not
9342         apply when working around 05000074.
9343         (define_insn_reservation storep_anomaly_05000074): New.
9344         (define_insn_reservation storei): Does not apply when working
9345         around 05000074.
9346         (define_insn_reservation storei_anomaly_05000074): New.
9347         (define_attr length): Add dsp32shiftimm case.
9348         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
9349         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
9350         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
9351         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
9352         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
9353
9354 2009-09-07  Martin Jambor  <mjambor@suse.cz>
9355
9356         PR middle-end/41282
9357         * tree-sra.c (create_artificial_child_access): Return NULL if
9358         build_ref_for_offset fails.
9359         (propagate_subacesses_accross_link): Allow build_ref_for_offset
9360         and create_artificial_child_access to fail.
9361
9362 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
9363
9364         PR c++/41214
9365         * unwind-dw2.c (uw_init_context_1): Mark noinline.
9366         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
9367         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
9368
9369 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9370
9371         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
9372         block, ensure it has an exit edge.  Emit a barrier after a jump.
9373
9374 2009-09-07  Nick Clifton  <nickc@redhat.com>
9375
9376         * gcc.c (this_is_linker_script): New variable.  Like
9377         this_is_library_file but for the %T constructor.
9378         (end_going_arg): If this_is_linker_script is set then locate the
9379         script and insert a --script switch before it
9380         (do_spec_2): Initialise this_is_linker_script.
9381         (do_spec_1): Likewise.  Handle %T construct.
9382         (eval_spec_function): Preserve this_is_linker_script.
9383         * doc/invoke.texi: Document %T construct in spec files.
9384         * config/m32c/m32c.h (LIB_SPEC): Use it.
9385
9386 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9387
9388         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
9389         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
9390         when volatile flag is set.
9391         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
9392
9393 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9394
9395         PR bootstrap/41241
9396         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
9397         (combine_stack_adjustments_for_block): Allow insns between stack
9398         adjustments and stores with corresponding pre-(dec|inc)rement or
9399         pre-modify operation.
9400
9401 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
9402
9403         PR bootstrap/41241
9404         * combine-stack-adj.c (struct csa_memlist): Rename to...
9405         (struct csa_reflist): ... this.  Rename mem field to ref.
9406         (free_csa_memlist): Rename to...
9407         (free_csa_reflist): ... this.
9408         (record_one_stack_memref): Rename to...
9409         (record_one_stack_ref): ... this.  Handle also REG_P.
9410         (try_apply_stack_adjustment): Handle also REG_P.
9411         (struct record_stack_memrefs_data): Rename to...
9412         (struct record_stack_refs_data): ... this.  Rename memlist field to
9413         reflist.
9414         (record_stack_memrefs): Rename to...
9415         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
9416         subexpressions instead of failing when a MEM contains SP references.
9417         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
9418         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
9419
9420 2009-09-06  Richard Guenther  <rguenther@suse.de>
9421
9422         PR middle-end/41144
9423         * tree.c (build_array_type): Do not record types marked
9424         with structural equality in the canonical type hashtable.
9425
9426 2009-09-06  Richard Guenther  <rguenther@suse.de>
9427
9428         PR middle-end/41261
9429         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
9430
9431 2009-09-05  Richard Guenther  <rguenther@suse.de>
9432
9433         PR middle-end/41181
9434         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
9435
9436 2009-09-05  Richard Guenther  <rguenther@suse.de>
9437
9438         PR debug/41273
9439         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
9440
9441 2009-09-05  Richard Guenther  <rguenther@suse.de>
9442
9443         PR middle-end/41271
9444         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
9445         before comparing function argument types.
9446
9447 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9448
9449         PR target/41024
9450         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
9451         the assembler.
9452
9453 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9454
9455         Revert:
9456         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9457
9458         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9459         locators before emit_insn is called.
9460
9461 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
9462
9463         PR bootstrap/41241
9464         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
9465         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
9466         (reginfo_init): Don't call allocate_reg_info.
9467
9468 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9469
9470         PR target/41262
9471         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
9472         NONDEBUG_INSN_P instead of INSN_P.
9473
9474 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9475
9476         PR debug/41225
9477         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
9478
9479 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9480
9481         PR target/41252
9482         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
9483         pattern of the split.
9484
9485 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9486
9487         * toplev.c (process_options): Move setter of flag_var_tracking
9488         before other tests that depend on it.  Move down setter of
9489         flag_rename_registers.  Don't enable var-tracking-assignments
9490         by default if selective scheduling is enabled.  Warn if both
9491         are enabled.
9492
9493 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9494
9495         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
9496         comment.  Use switch statement to catch overlaps between rtx
9497         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
9498         (IS_DECL_CODE): ... here. Remove.
9499         (check_value_is_not_decl): Remove.
9500         (dv_from_decl, dv_from_value): Check after conversion.
9501
9502 2009-09-04  Richard Guenther  <rguenther@suse.de>
9503
9504         PR middle-end/41257
9505         * (cgraph_finalize_compilation_unit): Move finalizing aliases
9506         after emitting tunks.  Move emitting thunks and ctors from ...
9507         (cgraph_optimize): ... here.  Remove redundant
9508         cgraph_analyze_functions.
9509         * varasm.c (find_decl_and_mark_needed): Remove no longer
9510         necessary check.
9511         (finish_aliases_1): Adjust check for thunk aliases.
9512
9513 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
9514
9515         * config/arm/arm.md (ctzsi2): Added braces
9516         to avoid warning that broke booststrap.
9517
9518 2009-09-04  Martin Jambor  <mjambor@suse.cz>
9519
9520         PR tree-optimization/41112
9521         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
9522         handle variable-bounded arrays.
9523         (expr_with_var_bounded_array_refs_p): New function.
9524         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
9525
9526 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
9527
9528         * config/s390/2097.md: Removed two incorrect bypasses.
9529         (z10_fsimpdf): Fixed latency.
9530         (z10_fhex): New insn_reservation.
9531         (z10_floaddf): Fixed latency.
9532         (z10_floadsf): Fixed latency.
9533         (z10_ftrunctf): Fixed latency.
9534         (z10_ftruncdf): Fixed latency.
9535         * config/s390/s390.c (z10_cost): Fixed values.
9536         (s390_adjust_priority): Added z10 path.
9537         * config/s390/s390.md (type): Added fhex.
9538         (*mov<mode>_64dfp): Updated type attribute.
9539         (*mov<mode>_64): Updated type attribute.
9540         (*mov<mode>_31): Updated type attribute.
9541         (*mov<mode>"): Likewise.
9542         * config/s390/2084.md (x_fsimpdf): Updated condition.
9543
9544 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
9545
9546         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
9547         RTXs in the predicate for operand 1.
9548
9549 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
9550
9551         * config/arm/arm.md (UNSPEC_RBIT): New constant.
9552         (rbitsi2): New insn.
9553         (ctzsi2): New expand.
9554         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
9555
9556 2009-09-03  Martin Jambor  <mjambor@suse.cz>
9557
9558         * tree-sra.c (duplicate_expr_for_different_base): Removed.
9559         (create_artificial_child_access): Use build_ref_for_offset instead
9560         of duplicate_expr_for_different_base.
9561         (propagate_subacesses_accross_link): Likewise.
9562
9563 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
9564
9565         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
9566         of INSN_P.
9567         (mips16e_collect_argument_saves): Skip debug instructions.
9568         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
9569         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
9570         (r10k_insert_cache_barriers): Likewise.
9571         (mips_reorg_process_insns): Likewise.
9572
9573 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
9574
9575         PR bootstrap/41241
9576         * ira.c (update_equiv_reg): Remove check on class likely spill.
9577
9578 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
9579
9580         PR debug/41236
9581         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
9582         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
9583         it or SUBREG.
9584
9585         PR debug/41238
9586         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
9587         the stack slot if it is passed by invisible reference.
9588         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
9589         by invisible reference.
9590
9591 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
9592
9593         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9594         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9595         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
9596         0.
9597         * config/bfin/sync.md: New file.
9598         * config/bfin/bfin.md: Include it.
9599         (UNSPEC_ATOMIC): New.
9600         (UNSPEC_ONES): Provide a unique number.
9601
9602         From Jie Zhang <jie.zhang@analog.com>:
9603         * config/bfin/bfin.c (ret_regs): New.
9604         (must_save_fp_p): Don't return true because of frame_pointer_needed.
9605         (must_save_rets_p): New.
9606         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
9607         current_function_is_leaf.
9608         (do_link): Likewise.
9609         (do_unlink): Likewise.
9610         (expand_interrupt_handler_prologue): Use ret_regs array.
9611         (expand_interrupt_handler_epilogue): Use ret_regs array and
9612         pass return register to gen_return_internal.
9613         (bfin_expand_epilogue): Pass return register to
9614         gen_return_internal.
9615         (bfin_expand_call): Explicitly clobber RETS.
9616         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
9617         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
9618         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
9619         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
9620         RETS.
9621         (return_internal): Take a reg rtx rather than the register number.
9622
9623 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
9624
9625         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
9626         when comparing against estimated_loop_iterations_int return.
9627
9628 2009-09-03  Richard Guenther  <rguenther@suse.de>
9629
9630         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
9631         eh_personality_libfunc.
9632
9633 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9634
9635         * tree-parloops.c (separate_decls_in_region): Add space.
9636
9637 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9638
9639         * tree-parloops.c (separate_decls_in_region): Change the condition
9640         checking if there are reductions in the loop.
9641
9642 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9643
9644         PR tree-optimization/38275
9645         * tree-parloops.c (parallelize_loops): Replace profitability condition
9646         for expected number of iterations.
9647
9648 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9649
9650         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
9651         (bootstrap-debug): Explain conditions in which it becomes default.
9652         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
9653         make it add to it.
9654
9655 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
9656
9657         * doc/invoke.texi (Optimize Options): Move
9658         -finline-small-functions to the -O2 list.
9659
9660 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9661
9662         * toplev.c (process_options): Enable var-tracking-assignments
9663         by default if var-tracking is enabled.
9664
9665 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
9666
9667         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
9668         barrier.
9669         * emit-rtl.c (prev_nonnote_insn_bb): New function.
9670         * rtl.h (prev_nonnote_insn_bb): Declare it.
9671
9672 2009-09-03  Diego Novillo  <dnovillo@google.com>
9673
9674         * cgraph.c (cgraph_node_for_decl): New.
9675         * cgraph.h (cgraph_node_for_decl): Declare.
9676         * tree.c (host_integerp): Return 0 if T is NULL.
9677
9678 2009-09-03  Diego Novillo  <dnovillo@google.com>
9679
9680         * tree.h (struct alias_pair): Move from varasm.c.
9681         (alias_pairs): Likewise.
9682         (TYPE_MAXVAL): Define.
9683         (TYPE_MINVAL): Define.
9684         (iterative_hash_host_wide_int): Declare.
9685         (remove_unreachable_alias_pairs): Declare.
9686         * tree-pass.h (pass_ipa_free_lang_data): Declare.
9687         * diagnostic.c (default_diagnostic_starter): Make extern.
9688         (default_diagnostic_finalizer): Make extern.
9689         * diagnostic.h (default_diagnostic_starter): Declare.
9690         (default_diagnostic_finalizer): Declare.
9691         (default_tree_printer): Declare.
9692         * toplev.c (default_tree_printer): Make extern.
9693
9694 2009-09-03  Richard Guenther  <rguenther@suse.de>
9695             Diego Novillo  <dnovillo@google.com>
9696
9697         * cgraph.c (cgraph_add_new_function): Remove gimplification.
9698         * cgraphunit.c (cgraph_expand_function): Do not emit
9699         associated thunks from here.
9700         (cgraph_emit_thunks): New.
9701         (cgraph_optimize): Call it.
9702         Return if any IPA pass finds an error.
9703         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
9704         by thunks.
9705
9706 2009-09-03  Simon Baldwin  <simonb@google.com>
9707             Rafael Espindola  <espindola@google.com>
9708             Richard Guenther  <rguenther@suse.de>
9709             Doug Kwan  <dougkwan@google.com>
9710             Diego Novillo  <dnovillo@google.com>
9711
9712         * tree.c: Include tree-pass.h, langhooks-def.h,
9713         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
9714         (free_lang_data_in_type): New.
9715         (need_assembler_name_p): New.
9716         (free_lang_data_in_block): New.
9717         (free_lang_data_in_decl): New.
9718         (struct free_lang_data_d): New.
9719         (add_tree_to_fld_list): New.
9720         (find_decls_types_r): New.
9721         (get_eh_types_for_runtime): New.
9722         (find_decls_types_in_eh_region): New.
9723         (find_decls_types_in_node): New.
9724         (find_decls_types_in_var): New.
9725         (free_lang_data_in_cgraph): New.
9726         (free_lang_data): New.
9727         (gate_free_lang_data): New.
9728         (pass_ipa_free_lang_data): New.
9729
9730 2009-09-03  Diego Novillo  <dnovillo@google.com>
9731
9732         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
9733         * langhooks.h (struct lang_hooks): Add field free_lang_data.
9734         (lang_hooks): Remove const qualifier.
9735         * ipa.c (cgraph_remove_unreachable_nodes): Call
9736         remove_unreachable_alias_pairs.
9737         * except.c (add_type_for_runtime): Check if TYPE has
9738         already been converted.
9739         (lookup_type_for_runtime): Likewise.
9740         (check_handled): Handle converted types.
9741         * varasm.c (remove_unreachable_alias_pairs): New.
9742         * gimple.c: Include demangle.h.
9743         (gimple_decl_printable_name): New.
9744         (gimple_fold_obj_type_ref): New.
9745         * gimple.h (gimple_decl_printable_name): Declare.
9746         (gimple_fold_obj_type_ref): Declare.
9747         * passes.c (init_optimization_passes): Add pass
9748         pass_ipa_free_lang_data.
9749         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
9750         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
9751
9752 2009-09-03  Diego Novillo  <dnovillo@google.com>
9753
9754         * c-lang.c (lang_hooks): Remove const qualifier.
9755
9756 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
9757
9758         * doc/install.texi (*-*-freebsd*): Update target information.
9759
9760 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
9761
9762         * hard-reg-set.h (call_fixed_regs): Remove.
9763         * reginfo.c (call_fixed_regs): Remove.
9764         (init_reg_sets_1): Remove initialization of call_fixed_regs.
9765         (globalize_reg): Don't use call_fixed_regs.
9766         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
9767         call_fixed_regs.
9768
9769 2009-09-01  Michael Matz  <matz@suse.de>
9770
9771         * expr.h (emit_storent_insn, expand_expr_real_1,
9772         expand_expr_real_2): Declare.
9773         * expr.c (emit_storent_insn, expand_expr_real_1,
9774         expand_expr_real_2): Export.
9775         (store_expr): Setting and evaluating dont_return_target is useless.
9776         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
9777         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
9778         * except.c (expand_resx_expr): Rename to ...
9779         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
9780         * except.h (expand_resx_stmt): Declare.
9781         * stmt.c: Add include gimple.h
9782         (expand_asm_expr): Rename to ...
9783         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
9784         (expand_case): Rewrite to take gimple statement.
9785         * tree.h (expand_asm_stmt): Declare.
9786         (expand_case): Change prototype.
9787         * Makefile.in (stmt.o): Depend on gimple.h.
9788         * builtins.c (expand_builtin_synchronize): Build gimple asm
9789         statement, not an ASM_EXPR.
9790         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
9791         gimple_to_tree, release_stmt_tree): Remove.
9792         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
9793         ggc_free, but hold comparison code and operands separately.
9794         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
9795         (expand_call_stmt, expand_gimple_stmt_1,
9796         expand_gimple_stmt): New helpers.
9797         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
9798         release_stmt_tree.  Call expand_gimple_stmt instead.
9799         (expand_gimple_basic_block): Ditto.
9800
9801         * calls.c (emit_call_1): Don't look at EH regions here, make
9802         fntree parameter useless.
9803         (expand_call): New local rettype for TREE_TYPE(exp), use it
9804         throughout.  Remove local p, use addr instead.
9805         Don't look at EH regions here.
9806
9807 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
9808
9809         * doc/invoke.texi (-fsched-pressure): Document it.
9810         (-fsched-reg-pressure-heuristic): Remove it.
9811
9812         * reload.c (ira.h): Include.
9813         (find_reloads): Add choosing reload on number of small spilled
9814         classes.
9815
9816         * haifa-sched.c (ira.h): Include.
9817         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
9818         saved_reg_pressure, curr_reg_live, saved_reg_live,
9819         region_ref_regs): New variables.
9820         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
9821         initiate_reg_pressure_info, setup_ref_regs,
9822         initiate_bb_reg_pressure_info, save_reg_pressure,
9823         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
9824         functions.
9825         (setup_insn_reg_pressure_info): New function.
9826         (rank_for_schedule): Add pressure checking and insn issue time.
9827         Remove comparison of insn reg weights.
9828         (ready_sort): Set insn reg pressure info.
9829         (update_register_pressure, setup_insn_max_reg_pressure,
9830         update_reg_and_insn_max_reg_pressure,
9831         sched_setup_bb_reg_pressure_info): New functions.
9832         (schedule_insn): Add code for printing and updating reg pressure info.
9833         (find_set_reg_weight, find_insn_reg_weight): Remove.
9834         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
9835         (debug_ready_list): Print reg pressure info.
9836         (schedule_block): Ditto.  Check insn issue time.
9837         (sched_init): Set up sched_pressure_p.  Allocate and set up some
9838         reg pressure related info.
9839         (sched_finish): Free some reg pressure related info.
9840         (fix_tick_ready): Make insn always ready if pressure_p.
9841         (init_h_i_d): Don't call find_insn_reg_weight.
9842         (haifa_finish_h_i_d): Free insn reg pressure info.
9843
9844         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9845         ira_memory_move_cost, ira_class_hard_regs,
9846         ira_class_hard_regs_num, ira_no_alloc_regs,
9847         ira_available_class_regs, ira_reg_class_cover_size,
9848         ira_reg_class_cover, ira_class_translate): Move to ira.h.
9849
9850         * ira-lives.c (single_reg_class): Check mode to find how many
9851         registers are necessary for operand.
9852         (ira_implicitly_set_insn_hard_regs): New.
9853
9854         * common.opt (fsched-pressure): New options.
9855         (fsched-reg-pressure-heuristic): Remove.
9856
9857         * ira.c (setup_eliminable_regset): Rename to
9858         ira_setup_eliminable_regset.  Make it external.
9859         (expand_reg_info): Pass cover class to setup_reg_classes.
9860         (ira): Call resize_reg_info instead of allocate_reg_info.
9861
9862         * sched-deps.c: Include ira.h.
9863         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
9864         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
9865         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
9866         mark_insn_hard_regno_birth, mark_insn_reg_birth,
9867         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
9868         mark_insn_reg_store, mark_insn_reg_clobber,
9869         setup_insn_reg_pressure_info): New.
9870         (sched_analyze_1): Update implicit_reg_pending_uses.
9871         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
9872         Use them to create dependencies.  Set insn reg uses and pressure
9873         info.  Process reg_pending_uses in one place.
9874         (free_deps): Free implicit sets.
9875         (remove_from_deps): Remove implicit sets if necessary.  Check
9876         implicit sets when clearing reg_last_in_use.
9877         (init_deps_global): Clear implicit_reg_pending_clobbers and
9878         implicit_reg_pending_uses.
9879
9880         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9881         ira_memory_move_cost, ira_class_hard_regs,
9882         ira_class_hard_regs_num, ira_no_alloc_regs,
9883         ira_available_class_regs, ira_reg_class_cover_size,
9884         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
9885         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
9886         ira_implicitly_set_insn_hard_regs): New prototypes.
9887
9888         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
9889         cost_elements_num): New variables.
9890         (allocno_costs, total_costs): Rename to costs and
9891         total_allocno_costs.
9892         (COSTS_OF_ALLOCNO): Rename to COSTS.
9893         (allocno_pref): Rename to pref.
9894         (allocno_pref_buffer): Rename to pref_buffer.
9895         (common_classes): Rename to regno_cover_class.
9896         (COST_INDEX): New.
9897         (record_reg_classes): Set allocno attributes only if allocno_p.
9898         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
9899         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
9900         and COSTS_OF_ALLOCNO.
9901         (print_costs): Rename to print_allocno_costs.
9902         (print_pseudo_costs): New.
9903         (process_bb_node_for_costs): Split into 2 functions with new
9904         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
9905         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
9906         new parameter dump_file.  Use cost_elements_num instead of
9907         ira_allocnos_num.  Make one iteration if preferred classes were
9908         already calculated for scheduler.  Make 2 versions of code
9909         depending on allocno_p.
9910         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
9911         regno_cover_class and COSTS instead of common_classes and
9912         COSTS_OF_ALLOCNO.
9913         (init_costs, finish_costs): New.
9914         (ira_costs): Set up allocno_p and cost_elements_num.  Call
9915         init_costs and finish_costs.
9916         (ira_set_pseudo_classes): New.
9917
9918         * rtl.h (allocate_reg_info): Remove.
9919         (resize_reg_info): Change return type.
9920         (reg_cover_class): New.
9921         (setup_reg_classes): Add new parameter.
9922
9923         * sched-int.h (struct deps_reg): New member implicit_sets.
9924         (sched_pressure_p, sched_regno_cover_class): New external definitions.
9925         (INCREASE_BITS): New macro.
9926         (struct reg_pressure_data, struct reg_use_data): New.
9927         (struct _haifa_insn_data): Remove reg_weight.  Add members
9928         reg_pressure, reg_use_list, reg_set_list, and
9929         reg_pressure_excess_cost_change.
9930         (struct deps): New member implicit_sets.
9931         (pressure_p): New variable.
9932         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
9933         (struct reg_pressure_data, struct reg_use_data): New.
9934         (INSN_REG_WEIGHT): Remove.
9935         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
9936         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
9937         (sched_init_region_reg_pressure_info,
9938         sched_setup_bb_reg_pressure_info): New prototypes.
9939
9940         * reginfo.c (struct reg_pref): New member coverclass.
9941         (reg_cover_class): New function.
9942         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
9943         (reg_info_size): New variable.
9944         (allocate_reg_info): Make static.  Setup reg_info_size.
9945         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
9946         (setup_reg_classes): Add a new parameter.  Setup cover class too.
9947
9948         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
9949         the dependencies.
9950
9951         * sched-rgn.c (deps_join): Set up implicit_sets.
9952         (schedule_region): Set up region and basic blocks pressure
9953         relative info.
9954
9955         * passes.c (init_optimization_passes): Move
9956         pass_subregs_of_mode_init before pass_sched.
9957
9958 2009-09-02  Martin Jambor  <mjambor@suse.cz>
9959
9960         * tree-sra.c (struct access): New field grp_hint.
9961         (dump_access): Dump grp_hint.
9962         (sort_and_splice_var_accesses): Set grp_hint if a group is read
9963         multiple times.
9964         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
9965         those which have been specifically read and somehow written to.
9966         (propagate_subacesses_accross_link): Set grp_hint of right child and
9967         also possibly of the left child.
9968
9969 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
9970
9971         * tree-object-size.c (addr_object_size): Always use object_size_type
9972         0 or 2 when determining the pointer pointed object size.
9973
9974 2009-09-02  Richard Guenther  <rguenther@suse.de>
9975
9976         Revert
9977         2009-08-31  Richard Guenther  <rguenther@suse.de>
9978
9979         * builtins.c (fold_builtin_memory_op): Use the alias oracle
9980         to query if the memory regions for memmove overlap.
9981         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
9982         asserts on pointers, instead deal with odd trees.
9983         (ptr_derefs_may_alias_p): Likewise.
9984         (refs_may_alias_p_1): Constructor bases also never alias.
9985
9986 2009-08-01  Christian Bruel  <christian.bruel@st.com>
9987
9988         Revert:
9989         2009-07-31  Christian Bruel  <christian.bruel@st.com>
9990         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9991
9992 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
9993
9994         * doc/invoke.texi (-fvar-tracking-assignments): New.
9995         (-fvar-tracking-assignments-toggle): New.
9996         (-fdump-final-insns=file): Mark filename as optional.
9997         (--param min-nondebug-insn-uid): New.
9998         (-gdwarf-@{version}): Mention version 4.
9999         * opts.c (common_handle_option): Accept it.
10000         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
10001         * regrename.c (regrename_optimize): Drop last.  Don't count debug
10002         insns as uses.  Don't reject change because of debug insn.
10003         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
10004         from the chain starter, and check for inexact matches in DEBUG_INSNS.
10005         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
10006         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
10007         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
10008         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
10009         * doc/gimple.texi (is_gimple_debug): New.
10010         (gimple_debug_bind_p): New.
10011         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
10012         * doc/install.texi (bootstrap-debug): More details.
10013         (bootstrap-debug-big, bootstrap-debug-lean): Document.
10014         (bootstrap-debug-lib): More details.
10015         (bootstrap-debug-ckovw): Update.
10016         (bootstrap-time): New.
10017         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
10018         (insert_phi_nodes_for): Insert debug stmts.
10019         (rewrite_stmt): Take iterator.  Insert debug stmts.
10020         (rewrite_enter_block): Adjust.
10021         (maybe_replace_use_in_debug_stmt): New.
10022         (rewrite_update_stmt): Use it.
10023         (mark_use_interesting): Return early for debug stmts.
10024         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
10025         stmts before replacing stmt.
10026         (move_computations_stmt): Likewise.
10027         * ira-conflicts.c (add_copies): Skip debug insns.
10028         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
10029         (regstat_bb_compute_ri): Skip debug insns.
10030         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
10031         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
10032         check_loop_closed_ssa_stmt): Skip debug stmts.
10033         * tree-tailcall.c (find_tail_calls): Likewise.
10034         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10035         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
10036         (build_var_debug_value_stat): Declare.
10037         (build_var_debug_value): Define.
10038         (target_for_debug_bind): Declare.
10039         * reload.c (find_equiv_reg): Skip debug insns.
10040         * rtlanal.c (reg_used_between_p): Skip debug insns.
10041         (side_effects_p): Likewise.
10042         (canonicalize_condition): Likewise.
10043         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
10044         insns never depend on debug insns.
10045         (create_ddg_dep_no_link): Likewise.
10046         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
10047         Don't add inter-loop dependencies for debug insns.
10048         (build_intra_loop_deps): Likewise.
10049         (create_ddg): Count debug insns.
10050         * ddg.h (struct ddg::num_debug): New.
10051         (num_backargs): Pair up with previous int field.
10052         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
10053         -fcompare-debug-second.
10054         * final.c (get_attr_length_1): Skip debug insns.
10055         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
10056         * gcc.c (invoke_as): Call compare-debug-dump-opt.
10057         (driver_self_specs): Map -fdump-final-insns to
10058         -fdump-final-insns=..
10059         (get_local_tick): New.
10060         (compare_debug_dump_opt_spec_function): Test for . argument and
10061         compute output name.  Compute temp output spec without flag name.
10062         Compute -frandom-seed.
10063         (OPT): Undef after use.
10064         * cfgloopanal.c (num_loop_insns): Skip debug insns.
10065         (average_num_loop_insns): Likewise.
10066         * params.h (MIN_NONDEBUG_INSN_UID): New.
10067         * gimple.def (GIMPLE_DEBUG): New.
10068         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
10069         * auto-inc-dec.c (merge_in_block): Skip debug insns.
10070         (merge_in_block): Fix whitespace.
10071         * toplev.c (flag_var_tracking): Update comment.
10072         (flag_var_tracking_assignments): New.
10073         (flag_var_tracking_assignments_toggle): New.
10074         (process_options): Don't open final insns dump file if we're not
10075         going to write to it.  Compute defaults for var_tracking.
10076         * df-scan.c (df_insn_rescan_debug_internal): New.
10077         (df_uses_record): Handle debug insns.
10078         * haifa-sched.c (ready): Initialize n_debug.
10079         (contributes_to_priority): Skip debug insns.
10080         (dep_list_size): New.
10081         (priority): Use it.
10082         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
10083         they're ready.  Disregard previous debug insns to make decisions.
10084         (queue_insn): Never queue debug insns.
10085         (ready_add, ready_remove_first, ready_remove): Count debug insns.
10086         (schedule_insn): Don't reject debug insns because of issue rate.
10087         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
10088         (queue_to_ready): Skip and discount debug insns.
10089         (choose_ready): Let debug insns through.
10090         (schedule_block): Check boundary debug insns.  Discount debug
10091         insns, schedule them early.  Adjust whitespace.
10092         (set_priorities): Check for boundary debug insns.
10093         (add_jump_dependencies): Use dep_list_size.
10094         (prev_non_location_insn): New.
10095         (check_cfg): Use it.
10096         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
10097         stmts.
10098         (remove_unused_ivs): Reset debug stmts.
10099         * modulo-sched.c (const_iteration_count): Skip debug insns.
10100         (res_MII): Discount debug insns.
10101         (loop_single_full_bb_p): Skip debug insns.
10102         (sms_schedule): Likewise.
10103         (sms_schedule_by_order): Likewise.
10104         (ps_has_conflicts): Likewise.
10105         * caller-save.c (refmarker_fn): New.
10106         (save_call_clobbered_regs): Replace regs with saved mem in
10107         debug insns.
10108         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
10109         Call refmarker_fn mark for hardregnos.
10110         (mark_reg_as_referenced): New.
10111         (replace_reg_with_saved_mem): New.
10112         * ipa-pure-const.c (check_stmt): Skip debug stmts.
10113         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
10114         searching back.
10115         (cse_extended_basic_block): Skip debug insns.
10116         (count_reg_usage): Likewise.
10117         (is_dead_reg): New, split out of...
10118         (set_live_p): ... here.
10119         (insn_live_p): Use it for debug insns.
10120         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
10121         (execute_optimize_stdarg): Likewise.
10122         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10123         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
10124         changes in debug stmts as changes.
10125         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
10126         (moveup_expr): Don't move across debug insns.  Don't move
10127         debug insn if it would create a bookkeeping block.
10128         (moveup_expr_cached): Don't use cache for debug insns that
10129         are heads of blocks.
10130         (compute_av_set_inside_bb): Skip debug insns.
10131         (sel_rank_for_schedule): Schedule debug insns first.  Remove
10132         dead code.
10133         (block_valid_for_bookkeeping_p); Support lax searches.
10134         (create_block_for_bookkeeping): Adjust block numbers when
10135         encountering debug-only blocks.
10136         (find_place_for_bookkeeping): Deal with debug-only blocks.
10137         (generate_bookkeeping_insn): Accept no place to insert.
10138         (remove_temp_moveop_nops): New argument full_tidying.
10139         (prepare_place_to_insert): Deal with debug insns.
10140         (advance_state_on_fence): Debug insns don't start cycles.
10141         (update_boundaries): Take fence as argument.  Deal with
10142         debug insns.
10143         (schedule_expr_on_boundary): No full_tidying on debug insns.
10144         (fill_insns): Deal with debug insns.
10145         (track_scheduled_insns_and_blocks): Don't count debug insns.
10146         (need_nop_to_preserve_insn_bb): New, split out of...
10147         (remove_insn_from_stream): ... this.
10148         (fur_orig_expr_not_found): Skip debug insns.
10149         * rtl.def (VALUE): Move up.
10150         (DEBUG_INSN): New.
10151         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
10152         (nearest_common_dominator_of_uses): Take debug_stmts argument.
10153         Set it if debug stmts are found.
10154         (statement_sink_location): Skip debug stmts.  Propagate
10155         moving defs into debug stmts.
10156         * ifcvt.c (first_active_insn): Skip debug insns.
10157         (last_active_insns): Likewise.
10158         (cond_exec_process_insns): Likewise.
10159         (noce_process_if_block): Likewise.
10160         (check_cond_move_block): Likewise.
10161         (cond_move_convert_if_block): Likewise.
10162         (block_jumps_and_fallthru_p): Likewise.
10163         (dead_or_predicable): Likewise.
10164         * dwarf2out.c (debug_str_hash_forced): New.
10165         (find_AT_string): Add comment.
10166         (gen_label_for_indirect_string): New.
10167         (get_debug_string_label): New.
10168         (AT_string_form): Use it.
10169         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
10170         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
10171         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
10172         several operations that cannot be represented with DWARF opcodes.
10173         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
10174         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
10175         (dwarf2out_var_location): Take during-call mark into account.
10176         (output_indirect_string): Update comment.  Output if there are
10177         label and references.
10178         (prune_indirect_string): New.
10179         (prune_unused_types): Call it if debug_str_hash_forced.
10180         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
10181         (dw_long_long_const): Remove.
10182         (struct dw_val_struct): Change val_long_long type to rtx.
10183         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
10184         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
10185         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
10186         component instead of HOST_BITS_PER_LONG.
10187         (output_loc_operands): Likewise.  For const8* assert
10188         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
10189         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
10190         rather than HOST_BITS_PER_LONG is >= 64.
10191         (add_AT_long_long): Remove val_hi and val_lo arguments, add
10192         val_const_double.
10193         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
10194         HOST_BITS_PER_LONG for dw_val_class_long_long.
10195         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
10196         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
10197         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
10198         DW_OP_stack_value.
10199         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10200         Handle DW_OP_implicit_value.
10201         (extract_int): Move prototype earlier.
10202         (mem_loc_descriptor): For SUBREG punt if inner
10203         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
10204         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
10205         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
10206         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
10207         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
10208         instead of Pmode size.
10209         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
10210         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
10211         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
10212         (concat_loc_descriptor, concatn_loc_descriptor,
10213         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
10214         (add_location_or_const_value_attribute): Likewise.  For single
10215         location loc_lists attempt to use add_const_value_attribute
10216         for constant decls.  Add DW_AT_const_value even if
10217         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
10218         in its expression.
10219         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
10220         (control_flow_insn_p): Likewise.
10221         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
10222         (separate_decls_in_region_debug_bind): New.
10223         (separate_decls_in_region): Process debug bind stmts afterwards.
10224         * recog.c (verify_changes): Handle debug insns.
10225         (extract_insn): Likewise.
10226         (peephole2_optimize): Skip debug insns.
10227         * dse.c (scan_insn): Skip debug insns.
10228         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
10229         Pass it on.
10230         (setup_id_for_insn): Handle debug insns.
10231         (maybe_tidy_empty_bb): Adjust whitespace.
10232         (tidy_control_flow): Skip debug insns.
10233         (sel_remove_insn): Adjust for debug insns.
10234         (sel_estimate_number_of_insns): Skip debug insns.
10235         (create_insn_rtx_from_pattern): Handle debug insns.
10236         (create_copy_of_insn_rtx): Likewise.
10237         * sel-sched-.h (sel_bb_end): Declare.
10238         (sel_bb_empty_or_nop_p): New.
10239         (get_all_loop_exits): Use it.
10240         (_eligible_successor_edge_p): Likewise.
10241         (return_nop_to_pool): Adjust.
10242         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
10243         * ira-lives.c (process_bb_node_lives): Skip debug insns.
10244         * gimple-pretty-print.c (dump_gimple_debug): New.
10245         (dump_gimple_stmt): Use it.
10246         (dump_bb_header): Skip gimple debug stmts.
10247         * regmove.c (optimize_reg_copy_1): Discount debug insns.
10248         (fixup_match_2): Likewise.
10249         (regmove_backward_pass): Likewise.  Simplify combined
10250         replacement.  Handle debug insns.
10251         * function.c (instantiate_virtual_regs): Handle debug insns.
10252         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
10253         * print-rtl.h: Include cselib.h.
10254         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
10255         * df.h (df_inns_rescan_debug_internal): Declare.
10256         * gcse.c (alloc_hash_table): Estimate n_insns.
10257         (cprop_insn): Don't regard debug insns as changes.
10258         (bypass_conditional_jumps): Skip debug insns.
10259         (one_pre_gcse_pass): Adjust.
10260         (one_code_hoisting_pass): Likewise.
10261         (compute_ld_motion_mems): Skip debug insns.
10262         (one_cprop_pass): Adjust.
10263         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
10264         (if_convertible_stmt_p): Handle debug stmts.
10265         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
10266         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
10267         * ira-build.c (create_bb_allocnos): Skip debug insns.
10268         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
10269         (has_single_use): Likewise.
10270         (single_imm_use): Likewise.
10271         (num_imm_uses): Likewise.
10272         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
10273         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
10274         (create_outofssa_var_map): Likewise.
10275         * lower-subreg.c (adjust_decomposed_uses): New.
10276         (resolve_debug): New.
10277         (decompose_multiword_subregs): Use it.
10278         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
10279         * emit-rtl.c: Include params.h.
10280         (cur_debug_insn_uid): Define.
10281         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
10282         (copy_rtx_if_shared_1): Handle debug insns.
10283         (reset_used_flags): Likewise.
10284         (set_used_flags): LIkewise.
10285         (get_max_insn_count): New.
10286         (next_nondebug_insn): New.
10287         (prev_nondebug_insn): New.
10288         (make_debug_insn_raw): New.
10289         (emit_insn_before_noloc): Handle debug insns.
10290         (emit_jump_insn_before_noloc): Likewise.
10291         (emit_call_insn_before_noloc): Likewise.
10292         (emit_debug_insn_before_noloc): New.
10293         (emit_insn_after_noloc): Handle debug insns.
10294         (emit_jump_insn_after_noloc): Likewise.
10295         (emit_call_insn_after_noloc): Likewise.
10296         (emit_debug_insn_after_noloc): Likewise.
10297         (emit_insn_after): Take loc from earlier non-debug insn.
10298         (emit_jump_insn_after): Likewise.
10299         (emit_call_insn_after): Likewise.
10300         (emit_debug_insn_after_setloc): New.
10301         (emit_debug_insn_after): New.
10302         (emit_insn_before): Take loc from later non-debug insn.
10303         (emit_jump_insn_before): Likewise.
10304         (emit_call_insn_before): Likewise.
10305         (emit_debug_insn_before_setloc): New.
10306         (emit_debug_insn_before): New.
10307         (emit_insn): Handle debug insns.
10308         (emit_debug_insn): New.
10309         (emit_jump_insn): Handle debug insns.
10310         (emit_call_insn): Likewise.
10311         (emit): Likewise.
10312         (init_emit): Take min-nondebug-insn-uid into account.
10313         Initialize cur_debug_insn_uid.
10314         (emit_copy_of_insn_after): Handle debug insns.
10315         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
10316         location of single rhs in place.
10317         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
10318         (floor_sdiv_adjust): New.
10319         (cell_sdiv_adjust): New.
10320         (cell_udiv_adjust): New.
10321         (round_sdiv_adjust): New.
10322         (round_udiv_adjust): New.
10323         (wrap_constant): Moved from cselib.
10324         (unwrap_constant): New.
10325         (expand_debug_expr): New.
10326         (expand_debug_locations): New.
10327         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
10328         debug bind stmts.
10329         (gimple_expand_cfg): Expand debug locations.
10330         * cselib.c: Include tree-pass.h.
10331         (struct expand_value_data): New.
10332         (cselib_record_sets_hook): New.
10333         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
10334         (cselib_clear_table): Move, and implemnet in terms of...
10335         (cselib_reset_table_with_next_value): ... this.
10336         (cselib_get_next_unknown_value): New.
10337         (discard_useless_locs): Don't discard preserved values.
10338         (cselib_preserve_value): New.
10339         (cselib_preserved_value_p): New.
10340         (cselib_preserve_definitely): New.
10341         (cselib_clear_preserve): New.
10342         (cselib_preserve_only_values): New.
10343         (new_cselib_val): Take rtx argument.  Dump it in details.
10344         (cselib_lookup_mem): Adjust.
10345         (expand_loc): Take regs_active in struct.  Adjust.  Silence
10346         dumps unless details are requested.
10347         (cselib_expand_value_rtx_cb): New.
10348         (cselib_expand_value_rtx): Rename and reimplment in terms of...
10349         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
10350         without details.  Copy more subregs.  Try to resolve values
10351         using a callback.  Wrap constants.
10352         (cselib_subst_to_values): Adjust.
10353         (cselib_log_lookup): New.
10354         (cselib_lookup): Call it.
10355         (cselib_invalidate_regno): Don't count preserved values as useless.
10356         (cselib_invalidate_mem): Likewise.
10357         (cselib_record_set): Likewise.
10358         (struct set): Renamed to cselib_set, moved to cselib.h.
10359         (cselib_record_sets): Adjust.  Call hook.
10360         (cselib_process_insn): Reset table when it would be cleared.
10361         (dump_cselib_val): New.
10362         (dump_cselib_table): New.
10363         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
10364         (remove_forwarder_block): Support moving debug stmts.
10365         * cselib.h (cselib_record_sets_hook): Declare.
10366         (cselib_expand_callback): New type.
10367         (cselib_expand_value_rtx_cb): Declare.
10368         (cselib_reset_table_with_next_value): Declare.
10369         (cselib_get_next_unknown_value): Declare.
10370         (cselib_preserve_value): Declare.
10371         (cselib_preserved_value_p): Declare.
10372         (cselib_preserve_only_values): Declare.
10373         (dump_cselib_table): Declare.
10374         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
10375         (try_crossjump_to_edge): Likewise.
10376         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
10377         dominated blocks when debug stmts are present.
10378         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
10379         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
10380         (set_var_live_on_entry): Likewise.
10381         * loop-invariant.c (find_invariants_bb): Skip debug insns.
10382         * cfglayout.c (curr_location, last_location): Make static.
10383         (set_curr_insn_source_location): Don't avoid bouncing.
10384         (get_curr_insn_source_location): New.
10385         (get_curr_insn_block): New.
10386         (duplicate_insn_chain): Handle debug insns.
10387         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
10388         into debug stmts.
10389         * common.opt (fcompare-debug): Move to sort order.
10390         (fdump-unnumbered-links): Likewise.
10391         (fvar-tracking-assignments): New.
10392         (fvar-tracking-assignments-toggle): New.
10393         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
10394         because of debug stmts.
10395         (mark_stmt_if_obviously_necessary): Mark debug stmts.
10396         (eliminate_unnecessary_stmts): Walk dominated blocks before
10397         dominators.
10398         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
10399         * ira.c (memref_used_between_p): Skip debug insns.
10400         (update_equiv_regs): Likewise.
10401         * sched-deps.c (sd_lists_size): Accept empty list.
10402         (sd_init_insn): Mark debug insns.
10403         (sd_finish_insn): Unmark them.
10404         (sd_add_dep): Reject non-debug deps on debug insns.
10405         (fixup_sched_groups): Give debug insns group treatment.
10406         Skip debug insns.
10407         (sched_analyze_reg): Don't mark debug insns for sched before call.
10408         (sched_analyze_2): Handle debug insns.
10409         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
10410         insns.
10411         (deps_analyze_insn): Handle debug insns.
10412         (deps_start_bb): Skip debug insns.
10413         (init_deps): Initialize last_debug_insn.
10414         * tree-ssa.c (target_for_debug_bind): New.
10415         (find_released_ssa_name): New.
10416         (propagate_var_def_into_debug_stmts): New.
10417         (propagate_defs_into_debug_stmts): New.
10418         (verify_ssa): Skip debug bind stmts without values.
10419         (warn_uninialized_vars): Skip debug stmts.
10420         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
10421         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
10422         (rtx_equal_p): Likewise.
10423         * ira-costs.c (scan_one_insn): Skip debug insns.
10424         (process_bb_node_for_hard_reg_moves): Likewise.
10425         * rtl.h (DEBUG_INSN_P): New.
10426         (NONDEBUG_INSN_P): New.
10427         (MAY_HAVE_DEBUG_INSNS): New.
10428         (INSN_P): Accept debug insns.
10429         (RTX_FRAME_RELATED_P): Likewise.
10430         (INSN_DELETED_P): Likewise
10431         (PAT_VAR_LOCATION_DECL): New.
10432         (PAT_VAR_LOCATION_LOC): New.
10433         (PAT_VAR_OCATION_STATUS): New.
10434         (NOTE_VAR_LOCATION_DECL): Reimplement.
10435         (NOTE_VAR_LOCATION_LOC): Likewise.
10436         (NOTE_VAR_LOCATION_STATUS): Likewise.
10437         (INSN_VAR_LOCATION): New.
10438         (INSN_VAR_LOCATION_DECL): New.
10439         (INSN_VAR_LOCATION_LOC): New.
10440         (INSN_VAR_LOCATION_STATUS): New.
10441         (gen_rtx_UNKNOWN_VAR_LOC): New.
10442         (VAR_LOC_UNKNOWN_P): New.
10443         (NOTE_DURING_CALL_P): New.
10444         (SCHED_GROUP_P): Accept debug insns.
10445         (emit_debug_insn_before): Declare.
10446         (emit_debug_insn_before_noloc): Declare.
10447         (emit_debug_insn_beore_setloc): Declare.
10448         (emit_debug_insn_after): Declare.
10449         (emit_debug_insn_after_noloc): Declare.
10450         (emit_debug_insn_after_setloc): Declare.
10451         (emit_debug_insn): Declare.
10452         (make_debug_insn_raw): Declare.
10453         (prev_nondebug_insn): Declare.
10454         (next_nondebug_insn): Declare.
10455         (delegitimize_mem_from_attrs): Declare.
10456         (get_max_insn_count): Declare.
10457         (wrap_constant): Declare.
10458         (unwrap_constant): Declare.
10459         (get_curr_insn_source_location): Declare.
10460         (get_curr_insn_block): Declare.
10461         * tree-inline.c (insert_debug_decl_map): New.
10462         (processing_debug_stmt): New.
10463         (remap_decl): Don't create new mappings in debug stmts.
10464         (remap_gimple_op_r): Don't add references in debug stmts.
10465         (copy_tree_body_r): Likewise.
10466         (remap_gimple_stmt): Handle debug bind stmts.
10467         (copy_bb): Skip debug stmts.
10468         (copy_edges_for_bb): Likewise.
10469         (copy_debug_stmt): New.
10470         (copy_debug_stmts): New.
10471         (copy_body): Copy debug stmts at the end.
10472         (insert_init_debug_bind): New.
10473         (insert_init_stmt): Take id.  Skip and emit debug stmts.
10474         (setup_one_parameter): Remap variable earlier, register debug mapping.
10475         (estimate_num_insns): Skip debug stmts.
10476         (expand_call_inline): Preserve debug_map.
10477         (optimize_inline_calls): Check for no debug_stmts left-overs.
10478         (unsave_expr_now): Preserve debug_map.
10479         (copy_gimple_seq_and_replace_locals): Likewise.
10480         (tree_function_versioning): Check for no debug_stmts left-overs.
10481         Init and destroy debug_map as needed.  Split edges unconditionally.
10482         (build_duplicate_type): Init and destroy debug_map as needed.
10483         * tree-inline.h: Include gimple.h instead of pointer-set.h.
10484         (struct copy_body_data): Add debug_stmts and debug_map.
10485         * sched-int.h (struct ready_list): Add n_debug.
10486         (struct deps): Add last_debug_insn.
10487         (DEBUG_INSN_SCHED_P): New.
10488         (BOUNDARY_DEBUG_INSN_P): New.
10489         (SCHEDULE_DEBUG_INSN_P): New.
10490         (sd_iterator_cond): Accept empty list.
10491         * combine.c (create_log_links): Skip debug insns.
10492         (combine_instructions): Likewise.
10493         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
10494         return value is always unshared.
10495         (struct rtx_subst_pair): New.
10496         (auto_adjust_pair): New.
10497         (propagate_for_debug_subst): New.
10498         (propagate_for_debug): New.
10499         (try_combine): Skip debug insns.  Propagate removed defs into
10500         debug insns.
10501         (next_nonnote_nondebug_insn): New.
10502         (distribute_notes): Use it.  Skip debug insns.
10503         (distribute_links): Skip debug insns.
10504         * tree-outof-ssa.c (set_location_for_edge): Likewise.
10505         * resource.c (mark_target_live_regs): Likewise.
10506         * var-tracking.c: Include cselib.h and target.h.
10507         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
10508         MO_VAL_SET.
10509         (micro_operation_type_name): New.
10510         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
10511         (struct micro_operation_def): Update comments.
10512         (decl_or_value): New type.  Use instead of decls.
10513         (struct emit_note_data_def): Add vars.
10514         (struct attrs_def): Use decl_or_value.
10515         (struct variable_tracking_info_def): Add permp, flooded.
10516         (struct location_chain_def): Update comment.
10517         (struct variable_part_def): Use decl_or_value.
10518         (struct variable_def): Make var_part a variable length array.
10519         (valvar_pool): New.
10520         (scratch_regs): New.
10521         (cselib_hook_called): New.
10522         (dv_is_decl_p): New.
10523         (dv_is_value_p): New.
10524         (dv_as_decl): New.
10525         (dv_as_value): New.
10526         (dv_as_opaque): New.
10527         (dv_onepart_p): New.
10528         (dv_pool): New.
10529         (IS_DECL_CODE): New.
10530         (check_value_is_not_decl): New.
10531         (dv_from_decl): New.
10532         (dv_from_value): New.
10533         (dv_htab_hash): New.
10534         (variable_htab_hash): Use it.
10535         (variable_htab_eq): Support values.
10536         (variable_htab_free): Free from the right pool.
10537         (attrs_list_member, attrs_list_insert): Use decl_or_value.
10538         (attrs_list_union): Adjust.
10539         (attrs_list_mpdv_union): New.
10540         (tie_break_pointers): New.
10541         (canon_value_cmp): New.
10542         (unshare_variable): Return possibly-modified slot.
10543         (vars_copy_1): Adjust.
10544         (var_reg_decl_set): Adjust.  Split out of...
10545         (var_reg_set): ... this.
10546         (get_init_value): Adjust.
10547         (var_reg_delete_and_set): Adjust.
10548         (var_reg_delete): Adjust.
10549         (var_regno_delete): Adjust.
10550         (var_mem_decl_set): Split out of...
10551         (var_mem_set): ... this.
10552         (var_mem_delete_and_set): Adjust.
10553         (var_mem_delete): Adjust.
10554         (val_store): New.
10555         (val_reset): New.
10556         (val_resolve): New.
10557         (variable_union): Adjust.  Speed up merge of 1-part vars.
10558         (variable_canonicalize): Use unshared slot.
10559         (VALUED_RECURSED_INTO): New.
10560         (find_loc_in_1pdv): New.
10561         (struct dfset_merge): New.
10562         (insert_into_intersection): New.
10563         (intersect_loc_chains): New.
10564         (loc_cmp): New.
10565         (canonicalize_loc_order_check): New.
10566         (canonicalize_values_mark): New.
10567         (canonicalize_values_star): New.
10568         (variable_merge_over_cur): New.
10569         (variable_merge_over_src): New.
10570         (dataflow_set_merge): New.
10571         (dataflow_set_equiv_regs): New.
10572         (remove_duplicate_values): New.
10573         (struct dfset_post_merge): New.
10574         (variable_post_merge_new_vals): New.
10575         (variable_post_merge_perm_vals): New.
10576         (dataflow_post_merge_adjust): New.
10577         (find_mem_expr_in_1pdv): New.
10578         (dataflow_set_preserve_mem_locs): New.
10579         (dataflow_set_remove_mem_locs): New.
10580         (dataflow_set_clear_at_call): New.
10581         (onepart_variable_different_p): New.
10582         (variable_different_p): Use it.
10583         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
10584         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
10585         if not needed.
10586         (track_loc_p): Pass it true.
10587         (struct count_use_info): New.
10588         (find_use_val): New.
10589         (replace_expr_with_values): New.
10590         (log_op_type): New.
10591         (use_type): New, partially split out of...
10592         (count_uses): ... this.  Count new micro-ops.
10593         (count_uses_1): Adjust.
10594         (count_stores): Adjust.
10595         (count_with_sets): New.
10596         (VAL_NEEDS_RESOLUTION): New.
10597         (VAL_HOLDS_TRACK_EXPR): New.
10598         (VAL_EXPR_IS_COPIED): New.
10599         (VAL_EXPR_IS_CLOBBERED): New.
10600         (add_uses): Adjust.  Generate new micro-ops.
10601         (add_uses_1): Adjust.
10602         (add_stores): Generate new micro-ops.
10603         (add_with_sets): New.
10604         (find_src_status): Adjust.
10605         (find_src_set_src): Adjust.
10606         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
10607         Handle new micro-ops.  Canonicalize value equivalances.
10608         (vt_find_locations): Compute total size of hash tables for
10609         dumping.  Perform merge for var-tracking-assignments.  Don't
10610         disregard single-block loops.
10611         (dump_attrs_list): Handle decl_or_value.
10612         (dump_variable): Take variable.  Deal with decl_or_value.
10613         (dump_variable_slot): New.
10614         (dump_vars): Use it.
10615         (dump_dataflow_sets): Adjust.
10616         (set_slot_part): New, extended to support one-part variables
10617         after splitting out of...
10618         (set_variable_part): ... this.
10619         (clobber_slot_part): New, split out of...
10620         (clobber_variable_part): ... this.
10621         (delete_slot_part): New, split out of...
10622         (delete_variable_part): .... this.
10623         (check_wrap_constant): New.
10624         (vt_expand_loc_callback): New.
10625         (vt_expand_loc): New.
10626         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
10627         EMIT_NOTE_AFTER_CALL_INSN.
10628         (emit_notes_for_differences_1): Adjust.  Handle values.
10629         (emit_notes_for_differences_2): Likewise.
10630         (emit_notes_for_differences): Adjust.
10631         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
10632         Adjust.  Handle new micro-ops.
10633         (vt_add_function_parameters): Adjust.  Create and bind values.
10634         (vt_initialize): Adjust.  Initialize scratch_regs and
10635         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
10636         operations.  Move some code to count_with_sets and add_with_sets.
10637         (delete_debug_insns): New.
10638         (vt_debug_insns_local): New.
10639         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
10640         cselib.
10641         (var_tracking_main): If var-tracking-assignments is enabled
10642         but var-tracking isn't, delete debug insns and leave.  Likewise
10643         if we exceed limits or fail the stack adjustments tests, and
10644         after all var-tracking processing.
10645         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
10646         (dataflow_set): Add traversed_vars.
10647         (value_chain, const_value_chain): New typedefs.
10648         (value_chain_pool, value_chains): New variables.
10649         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
10650         add_value_chains, add_cselib_value_chains, remove_value_chain,
10651         remove_value_chains, remove_cselib_value_chains): New functions.
10652         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
10653         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
10654         static inlines.
10655         (shared_hash_find_slot_unshare, shared_hash_find_slot,
10656         shared_hash_find_slot_noinsert, shared_hash_find): Update.
10657         (dst_can_be_shared): New variable.
10658         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
10659         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
10660         different from set->vars, look up slot again instead of using the
10661         passed in slot.
10662         (dataflow_set_init): Initialize traversed_vars.
10663         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
10664         lookup if set->vars is shared.  Don't keep slot cleared before
10665         calling unshare_variable.  Unshare set->vars if needed.  Adjust
10666         unshare_variable callers.  Clear dst_can_be_shared if needed.
10667         Even ->refcount == 1 vars must be unshared if set->vars is shared
10668         and var needs to be modified.
10669         (dataflow_set_union): Set traversed_vars during canonicalization.
10670         (VALUE_CHANGED, DECL_CHANGED): Define.
10671         (set_dv_changed, dv_changed_p): New static inlines.
10672         (track_expr_p): Clear DECL_CHANGED.
10673         (dump_dataflow_sets): Set it.
10674         (variable_was_changed): Call set_dv_changed.
10675         (emit_note_insn_var_location): Likewise.
10676         (changed_variables_stack): New variable.
10677         (check_changed_vars_1, check_changed_vars_2): New functions.
10678         (emit_notes_for_changes): Do nothing if changed_variables is
10679         empty.  Traverse changed_variables with check_changed_vars_1,
10680         call check_changed_vars_2 on each changed_variables_stack entry.
10681         (emit_notes_in_bb): Add SET argument.  Just clear it at the
10682         beginning, use it instead of local &set, don't destroy it at the end.
10683         (vt_emit_notes): Call dataflow_set_clear early on all
10684         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
10685         computed set, dataflow_set_clear also VTI(bb)->in when we are
10686         done with the basic block.  Initialize changed_variables_stack,
10687         free it afterwards.  If ENABLE_CHECKING verify that after noting
10688         differences to an empty set value_chains hash table is empty.
10689         (vt_initialize): Initialize value_chains and value_chain_pool.
10690         (vt_finalize): Delete value_chains htab, free value_chain_pool.
10691         (variable_tracking_main): Call dump_dataflow_sets before calling
10692         vt_emit_notes, not after it.
10693         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
10694         (propagate_var_def_into_debug_stmts): Declare.
10695         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
10696         (df_set_note): Reject debug insns.
10697         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
10698         add notes to debug insns.
10699         (df_note_bb_compute): Adjust.  Likewise.
10700         (df_simulate_uses): Skip debug insns.
10701         (df_simulate_initialize_backwards): Likewise.
10702         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
10703         (subst_stack_regs_pat): Reject debug insns.
10704         (convert_regs_1): Handle debug insns.
10705         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
10706         (print-rtl.o): Depend on cselib.h.
10707         (cselib.o): Depend on TREE_PASS_H.
10708         (var-tracking.o): Depend on cselib.h and TARGET_H.
10709         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
10710         (init_ready_list): Skip boundary debug insns.
10711         (add_branch_dependences): Skip debug insns.
10712         (free_block_dependencies): Check for blocks with only debug insns.
10713         (compute_priorities): Likewise.
10714         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
10715         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
10716         all callers.
10717         (gimple_build_debug_bind_stat): New.
10718         (empty_body_p): Skip debug stmts.
10719         (gimple_has_side_effects): Likewise.
10720         (gimple_rhs_has_side_effects): Likewise.
10721         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
10722         (gimple_build_debug_bind_stat): Declare.
10723         (gimple_build_debug_bind): Define.
10724         (is_gimple_debug): New.
10725         (gimple_debug_bind_p): New.
10726         (gimple_debug_bind_get_var): New.
10727         (gimple_debug_bind_get_value): New.
10728         (gimple_debug_bind_get_value_ptr): New.
10729         (gimple_debug_bind_set_var): New.
10730         (gimple_debug_bind_set_value): New.
10731         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
10732         (gimple_debug_bind_reset_value): New.
10733         (gimple_debug_bind_has_value_p): New.
10734         (gsi_next_nondebug): New.
10735         (gsi_prev_nondebug): New.
10736         (gsi_start_nondebug_bb): New.
10737         (gsi_last_nondebug_bb): New.
10738         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
10739         (print_insn): Handle DEBUG_INSN.
10740         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
10741         of first insn prevail.
10742         (first_stmt): Skip debug stmts.
10743         (first_non_label_stmt): Likewise.
10744         (last_stmt): Likewise.
10745         (has_zero_uses_1): New.
10746         (single_imm_use_1): New.
10747         (verify_gimple_debug): New.
10748         (verify_types_in_gimple_stmt): Handle debug stmts.
10749         (verify_stmt): Likewise.
10750         (debug_loop_num): Skip debug stmts.
10751         (remove_edge_and_dominated_blocks): Remove dominators last.
10752         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
10753         (linearize_expr): Likewise.
10754         * config/i386/i386.c (ix86_delegitimize_address): Call
10755         default implementation.
10756         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
10757         (group_barrier_needed): Skip debug insns.
10758         (emit_insn_group_barriers): Likewise.
10759         (emit_all_insn_group_barriers): Likewise.
10760         (ia64_variable_issue): Handle debug insns.
10761         (ia64_dfa_new_cycle): Likewise.
10762         (final_emit_insn_group_barriers): Skip debug insns.
10763         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
10764         def cfa without frame.
10765         (process_set): Likewise.
10766         (process_for_unwind_directive): Pass frame on.
10767         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10768         (rs6000_delegitimize_address): New.
10769         (rs6000_debug_adjust_cost): Handle debug insns.
10770         (is_microcoded_insn): Likewise.
10771         (is_cracked_insn): Likewise.
10772         (is_nonpipeline_insn): Likewise.
10773         (insn_must_be_first_in_group): Likewise.
10774         (insn_must_be_last_in_group): Likewise.
10775         (force_new_group): Likewise.
10776         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
10777         contains only debug insns.
10778         (rtl_merge_blocks): Skip debug insns.
10779         (purge_dead_edges): Likewise.
10780         (rtl_block_ends_with_call_p): Skip debug insns.
10781         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
10782         (mark_reg_dependencies): Skip debug insns.
10783         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
10784         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
10785         * tree-ssa-threadedge.c
10786         (record_temporary_equivalences_from_stmts): Skip debug stmts.
10787         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
10788         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
10789         (copyprop_hardreg_forward_1): Handle debug insns.
10790         * reload1.c (reload): Skip debug insns.  Replace unassigned
10791         pseudos in debug insns with their equivalences.
10792         (eliminate_regs_in_insn): Skip debug insns.
10793         (emit_input_reload_insns): Skip debug insns at first, adjust
10794         them later.
10795         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
10796         (get_indirect_ref_operands): Pass opf_no_vops on.
10797         (get_expr_operands): Likewise.  Skip debug stmts.
10798         (parse_ssa_operands): Scan debug insns with opf_no_vops.
10799
10800 2009-09-01  Richard Henderson  <rth@redhat.com>
10801
10802         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
10803         stmt_ends_pp_p statements at least once.
10804         * tree-vrp.c (vrp_initialize): Likewise.
10805         (vrp_visit_stmt): Be prepared for non-interesting stmts.
10806
10807 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
10808
10809         PR bootstrap/41205
10810         Fix AIX bootstrap after PR debug/30161
10811         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
10812         that is a GNU extension.
10813         (tmpl_value_parm_die_table): Move the definition of this global
10814         outside #ifdef DWARF2_DEBUGGING_INFO region.
10815
10816 2009-09-01  Richard Guenther  <rguenther@suse.de>
10817
10818         * tree.c (tree_expr_size): New function.
10819         * tree.h (tree_expr_size): Declare.
10820         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
10821         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
10822         * langhooks.c (lhd_expr_size): Remove.
10823         * langhooks.h (struct lang_hooks): Remove expr_size.
10824         * explow.c (expr_size): Use tree_expr_size.
10825         (int_expr_size): Likewise.
10826         * langhooks-def.h (lhd_expr_size): Remove.
10827         (LANG_HOOKS_EXPR_SIZE): Likewise.
10828         (LANG_HOOKS_INITIALIZER): Adjust.
10829
10830 2009-09-01  Richard Guenther  <rguenther@suse.de>
10831
10832         * tree-flow.h (mark_addressable): Move declaration ...
10833         * tree.h (mark_addressable): ... here.
10834         * stmt.c (expand_asm_operands): Use mark_addressable, not
10835         lang_hooks.mark_addressable.
10836         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
10837         LANG_HOOKS_MARK_ADDRESSABLE.
10838         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
10839         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
10840
10841 2009-08-31  Chris Demetriou  <cgd@google.com>
10842
10843         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
10844         vectorize if not TARGET_SSE2.
10845
10846 2009-08-31  DJ Delorie  <dj@redhat.com>
10847
10848         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
10849         registers if no coprocessor is enabled.
10850
10851 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
10852
10853         PR debug/30161
10854         * cgraph.h (cgraph_get_node): Declare ...
10855         * cgraph.c (cgraph_get_node): ... new function.
10856         * dwarf2out.c (gen_generic_params_dies,
10857         generic_parameter_die, tree_add_const_value_attribute_for_decl,
10858         make_ith_pack_parameter_name,
10859         append_entry_to_tmpl_value_parm_die_table,
10860         gen_remaining_tmpl_value_param_die_attribute): New functions.
10861         (gen_subprogram_die): Generate debug info for template parameters
10862         if debug info level is higher than DINFO_LEVEL_TERSE.
10863         Use tree_add_const_value_attribute_for_decl instead of
10864         tree_add_const_value_attribute.
10865         (gen_const_die): Use tree_add_const_value_attribute_for_decl
10866         instead of tree_add_const_value_attribute.
10867         (gen_struct_or_union_type_die): Generate debug
10868         info for template parameters if debug info level is higher than
10869         DINFO_LEVEL_TERSE.
10870         (tree_add_const_value_attribute): Handle integral and pointer
10871         constants. Update comment.
10872         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
10873         (dwarf_attr_name): Support DW_AT_GNU_template_name.
10874         (reference_to_unused): Fix thinko. Remove redundant predicates from
10875         tests.
10876         (tree_add_const_value_attribute): Make this work for constant
10877         expressions only.
10878         tree_add_const_value_attribute_for_decl is to be used for variable
10879         DECLs now.
10880         (add_location_or_const_value_attribute): Use
10881         tree_add_const_value_attribute_for_decl now.
10882         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
10883         DW_TAG_template_value_param DIEs after function DIEs have been
10884         emitted.
10885         * langhooks.h (lang_hooks_for_types): Add
10886         get_argument_pack_elems.
10887         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
10888         (lang_hooks): Added get_innermost_generic_parms,
10889         get_innermost_generic_args.
10890         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
10891         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
10892         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
10893         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
10894
10895 2009-08-31  DJ Delorie  <dj@redhat.com>
10896
10897         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
10898         it once we start generating the prologue or epilogue.
10899         (mep_call_saves_register): If the frame is locked, re-use
10900         cached values.
10901         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
10902         (mep_expand_prologue): Call it.
10903         (mep_expand_epilogue): Likewise.
10904         (mep_start_function): Use the same logic as mep_expand_prologue.
10905         (mep_pass_by_reference): Make logic more readable.
10906         (mep_return_in_memory): Zero-sized objects are passed in memory.
10907         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
10908
10909 2009-08-31  Richard Guenther  <rguenther@suse.de>
10910
10911         * builtins.c (fold_builtin_memory_op): Use the alias oracle
10912         to query if the memory regions for memmove overlap.
10913         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10914         asserts on pointers, instead deal with odd trees.
10915         (ptr_derefs_may_alias_p): Likewise.
10916         (refs_may_alias_p_1): Constructor bases also never alias.
10917
10918 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
10919
10920         * doc/install.texi (Final install): Adjust reference on where to
10921         order printed manuals.
10922
10923 2009-08-30  Olivier Hainque  <hainque@adacore.com>
10924
10925         * dwarf2out.c (switch_to_frame_table_section): Move
10926         definition prior to first use.
10927
10928 2009-08-30  Richard Guenther  <rguenther@suse.de>
10929
10930         PR tree-optimization/41186
10931         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
10932         (ao_ref_init_from_ptr_and_size): New function.
10933         (ref_maybe_used_by_call_p_1): Be more precise tracking
10934         used ranges for builtin functions.
10935         (ref_maybe_used_by_call_p): Adjust.
10936         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
10937         ranges for builtin functions.
10938         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
10939
10940 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
10941
10942         PR target/41081
10943         * fwprop.c (get_reg_use_in): Delete.
10944         (free_load_extend): New function.
10945         (forward_propagate_subreg): Use it.
10946
10947 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10948
10949         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
10950
10951 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
10952
10953         PR/41184
10954         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
10955         padding.
10956
10957 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
10958
10959         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
10960         fini or fini_array section.
10961
10962 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
10963
10964         * graphite-dependences.c (graphite_legal_transform_bb): Call
10965         pbb_remove_duplicate_pdrs.
10966         * graphite-poly.c (can_collapse_pdr): Removed.
10967         (pdr_find_duplicate): Removed.
10968         (can_collapse_pdrs): New.
10969         (pbb_remove_duplicate_pdrs): New.
10970         (new_poly_dr): Do not look for duplicates.
10971         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
10972         (PBB_PDR_DUPLICATES_REMOVED): New.
10973         (pbb_remove_duplicate_pdrs): Declared.
10974
10975 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
10976
10977         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
10978         the strides by multiplying by PDR_NB_REFS.
10979         * graphite-poly.c (can_collapse_pdr): New.
10980         (pdr_find_duplicate): New.
10981         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
10982         Initialize PDR_NB_REFS.
10983         * graphite-poly.h (struct poly_dr): Add field nb_refs.
10984         (PDR_NB_REFS): New.
10985         (new_poly_dr): Number of subscripts is a graphite_dim_t.
10986
10987 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
10988
10989         PR middle-end/40965
10990         * graphite-poly.c (apply_poly_transforms): Remove legality test before
10991         any transform.
10992
10993 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
10994
10995         * graphite-dependences.c (pddr_original_scattering): Return NULL
10996         for read-read dependence relations.
10997         * graphite-poly.h (enum poly_dr_type): Fix comment.
10998         (pdr_read_p): New.
10999         (pdr_write_p): New.
11000         (pdr_may_write_p): New.
11001
11002 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11003
11004         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
11005         (struct poly_dr): Same.
11006         (new_poly_dr): Same.
11007         * graphite-poly.c (new_poly_dr): Same.
11008         * graphite-dependences.c (dot_deps): Disable call to system.
11009
11010 2009-08-28  Cary Coutant  <ccoutant@google.com>
11011
11012         PR debug/41063
11013         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
11014         struct/union/enum types local to a function.
11015
11016 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11017             Sebastian Pop  <sebastian.pop@amd.com>
11018
11019         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
11020         pbb_strip_mine_time_depth.  Changed the implementation so that
11021         transformation is expressed as a transformation on
11022         time (scatttering) dimensions.  Also, ensures that the 2d+1
11023         scheduling format is preserved.
11024         (pbb_strip_mine_profitable_p): Profitability is based on the
11025         iteration number of a given time (scattering) dimension,
11026         and not on a original loop depth dimension.
11027         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
11028         (pbb_do_strip_mine): Call psct_dynamic_dim.
11029         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
11030         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
11031         (pbb_nb_dynamic_scattering_transform): New.
11032         (psct_dynamic_dim): New.
11033
11034 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11035
11036         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11037         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11038         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
11039         * graphite-interchange.c (build_linearized_memory_access): Same.
11040         (memory_stride_in_loop): Same.
11041
11042 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11043
11044         * graphite-dependences.c (pddr_original_scattering): New.
11045         (graphite_legal_transform_dr): Call pddr_original_scattering.
11046         (dot_deps_1): New.
11047         (dot_deps): New.
11048         * graphite-dependences.h (dot_deps): Declared.
11049         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
11050         (print_pdr): Print PDR_ID.
11051         * graphite-poly.h (struct poly_dr): Add field id.
11052         (PDR_ID): New.
11053         (pbb_index): New.
11054         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
11055
11056 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11057
11058         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
11059         not delete the original dependence relation.
11060
11061 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11062
11063         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
11064         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
11065         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
11066         (free_poly_ddr): New.
11067         (pddr_is_empty): New.
11068         (dependence_polyhedron_1): Now returns a poly_ddr_p.
11069         (dependence_polyhedron): Same.  Remove useless gcc_assert.
11070         Remove fprintfs.
11071         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
11072         (graphite_carried_dependence_level_k): Call pddr_is_empty.
11073         * graphite-dependences.h (enum poly_dependence_kind): New.
11074         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
11075         (PDRP_SOURCE): Renamed PDDR_SOURCE.
11076         (PDRP_SINK): Renamed PDDR_SINK.
11077         (PDRP_DDP): Renamed PDDR_DDP.
11078         (PDDR_KIND): New.
11079         (free_poly_ddr): Declared.
11080         * graphite-poly.c (new_scop): Use the new hash function names.
11081         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
11082         into original_pddrs.
11083         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
11084
11085 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11086
11087         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
11088         bounds with LT_EXPR to make niter analysis more precise on code
11089         generated by Graphite.
11090
11091 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11092
11093         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
11094         (graphite_legal_transform_bb): Same.
11095         (poly_drs_may_alias_p): Same.
11096
11097 2009-08-28  Richard Guenther  <rguenther@suse.de>
11098
11099         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
11100
11101 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11102
11103         * config/i386/netware.c: Include langhooks.h.
11104         (i386_nlm_encode_section_info): Simplify.
11105         (netware_override_options): Delete.
11106         * config/i386/netware.h (netware_override_options): Delete
11107         declaration.
11108         (OVERRIDE_OPTIONS): Delete definition.
11109         (SUBTARGET_OVERRIDE_OPTIONS): Define.
11110         (ASM_COMMENT_START): Define.
11111         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
11112
11113 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11114
11115         * configure.ac: For in-tree ld, do a plain version check to
11116         determine whether comdat groups are supported.
11117         * configure: Regenerate.
11118
11119 2009-08-28  Olivier Hainque  <hainque@adacore.com>
11120
11121         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
11122         always defined.  Reflect definition or absence of such for
11123         COLLECT_EXPORT_LIST.  Readability helper.
11124         (scanfilter): New enum, to help control what symbols
11125         are to be considered or ignored by scan_prog_file.
11126         (enum pass): Rename as "scanpass", moved together with scanfilter
11127         prior to scan_prog_file's prototype.
11128         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
11129         Group prototype with the scanpass/scanfilter definitions, factorize
11130         head comments for the several implementations at the prototype.
11131         (main): Reorganize the first pass link control to let AIX
11132         drag only the needed frame tables in executables.  Prevent
11133         frame tables collection during the scan aimed at static ctors.
11134         Pre-link and scan for frame tables later to compensate.
11135         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
11136         A C statement to issue assembly directives that create a reference
11137         to the given DWARF table identifier label from the current function
11138         section.
11139         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
11140         to differentiate first time section entry.  Only emit a .data
11141         tables start identifier label the first time around.
11142         (switch_to_frame_table_section): New function.  Helper for
11143         output_call_frame_info to switch possibly BACK into the eh_frame
11144         or the debug_frame section depending on FOR_EH.
11145         (output_call_frame_info): Use helper to first enter the proper
11146         frame section.
11147         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
11148         emit a link to the frame table start label from each function
11149         section.
11150         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
11151         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
11152         * config/rs6000/rs6000-protos.h: Declare it.
11153         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
11154
11155 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11156
11157         * config/sh/sh.c (split_branches): Check the result of
11158         next_active_insn.
11159
11160 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
11161
11162         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
11163         using -pthread -fopenmp
11164
11165 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
11166
11167         * doc/service.texi (service directory): Update URL.
11168
11169 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
11170
11171         PR rtl-optimization/40861
11172         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
11173         extract word from a multi-word subreg for negative byte positions.
11174
11175 2009-08-27  Tristan Gingold  <gingold@adacore.com>
11176             Douglas B Rupp  <rupp@gnat.com>
11177
11178         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
11179         (SECTION_VMS_OVERLAY): Define.
11180         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
11181         attribute.
11182         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
11183         for common_object.
11184         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
11185         common_object declarations.
11186         (ia64_section_type_flags): Set section flag for common_object.
11187         * config/ia64/ia64-protos.h
11188         (ia64_vms_output_aligned_decl_common): Declare.
11189         (ia64_vms_elf_asm_named_section): Declare.
11190
11191 2009-08-27  Michael Matz  <matz@suse.de>
11192
11193         * expr.c (expand_expr_real_2): New function taking exploded
11194         unary or binary expression, split out from ...
11195         (expand_expr_real_1): ... here.  Move over all unary/binary
11196         switch parts to above function, in particular these codes:
11197         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
11198         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
11199         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
11200         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
11201         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
11202         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
11203         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
11204         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
11205         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
11206         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
11207         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
11208         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
11209         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
11210         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
11211         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
11212         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
11213         VEC_PACK_FIX_TRUNC_EXPR.
11214         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
11215         full expression.
11216
11217 2009-08-27  Richard Guenther  <rguenther@suse.de>
11218
11219         * gengtype.c (main): Handle uint64_t.
11220         * ipa-utils.c (get_base_var): Indent properly.
11221         * tree-ssa-live.c (debug_scope_block): New function.
11222         * tree-flow.h (debug_scope_block): Declare.
11223         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
11224         * basic-block.h (enum profile_status): Rename to
11225         enum profile_status_d.
11226         (x_profile_status): Adjust type.
11227
11228 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
11229
11230         PR debug/41170
11231         * dwarf2out.c (get_context_die): Declare this static function.
11232         (gen_type_die_with_usage): Make sure a DIE is a generated for
11233         the context of a typedef.
11234
11235 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
11236
11237         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
11238         switch.
11239
11240 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11241
11242         * config/mips/mips-protos.h (mips_output_sync): Declare.
11243         (mips_sync_loop_insns): Likewise.
11244         (mips_output_sync_loop): Replace first two parameters with an rtx.
11245         * config/mips/mips.c (mips_multi_member): New structure.
11246         (mips_multi_members): New variable.
11247         (mips_multi_start): New function.
11248         (mips_multi_add): Likewise.
11249         (mips_multi_add_insn): Likewise.
11250         (mips_multi_add_label): Likewise.
11251         (mips_multi_last_index): Likewise.
11252         (mips_multi_copy_insn): Likewise.
11253         (mips_multi_set_operand): Likewise.
11254         (mips_multi_write): Likewise.
11255         (mips_print_operand_punctuation): Remove '%|' and '%-'.
11256         (mips_init_print_operand_punct): Update accordingly.
11257         (mips_start_ll_sc_sync_block): New function.
11258         (mips_end_ll_sc_sync_block): Likewise.
11259         (mips_output_sync): Likewise.
11260         (mips_sync_insn1_template): Likewise.
11261         (mips_sync_insn2_template): Likewise.
11262         (mips_get_sync_operand): Likewise.
11263         (mips_process_sync_loop): Likewise.
11264         (mips_output_sync_loop): Use mips_process_sync_loop.
11265         (mips_sync_loop_insns): New function.
11266         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
11267         (MIPS_COMPARE_AND_SWAP_12): Likewise.
11268         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
11269         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
11270         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
11271         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
11272         (MIPS_SYNC_OLD_OP_12): Likewise.
11273         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
11274         (MIPS_SYNC_NEW_OP_12): Likewise.
11275         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
11276         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
11277         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
11278         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
11279         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
11280         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
11281         * config/mips/mips.md (sync_mem): New attribute.
11282         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
11283         (sync_exclusive_mask, sync_required_oldval): Likewise.
11284         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
11285         (sync_release_barrier): Likewise.
11286         (length): Handle sync loops.
11287         (sync): Use mips_output_sync.
11288         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
11289         (sync_compare_and_swap<mode>): Set the new sync_* attributes
11290         and use mips_output_sync_loop.
11291         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
11292         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
11293         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
11294         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
11295         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
11296         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
11297         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
11298         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
11299         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
11300
11301 2009-08-26  Richard Guenther  <rguenther@suse.de>
11302
11303         PR middle-end/41163
11304         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
11305         the types to not match.
11306         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
11307         verification.
11308         * tree-ssa.c (useless_type_conversion_p): Conversions to
11309         pointers to unprototyped functions are useless.
11310
11311 2009-08-26  Richard Guenther  <rguenther@suse.de>
11312
11313         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
11314         whole-program condition, prepare to be called for non-globals.
11315         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
11316         params build a representative with known type and track its fields.
11317
11318 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
11319
11320         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
11321         clearing by a taken branch.
11322         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
11323         effectively after bbro pass.
11324         (sync_nand<mode>): Ditto.
11325         (sync_old_<fetchop_name><mode>): Ditto.
11326         (sync_old_nand<mode>): Ditto.
11327         (sync_new_<fetchop_name><mode>): Dito.
11328         (sync_new_nand<mode>): Ditto.
11329         (sync_compare_and_swap<mode>_1): Ditto.
11330         (*sync_compare_and_swap<mode>): Ditto.
11331         (sync_lock_test_and_set<mode>_1): Ditto.
11332         ("sync_lock_test_and_set<mode>): Ditto.
11333
11334 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
11335
11336         * hwint.h (HOST_LONG_FORMAT): New macro
11337         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
11338         Use HOST_PTR_PRINTF.
11339         * system.h (HOST_PTR_PRINTF): Resurrect old macro
11340         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
11341         (HOST_PTR_PRINTF): Document.
11342
11343 2009-08-25 Jan Hubicka  <jh@suse.cz>
11344
11345         * config/i386/bmmintrin.h: Replace by #error.
11346
11347         Revert:
11348         Michael Meissner  <michael.meissner@amd.com>
11349         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11350         Tony Linthicum  <tony.linthicum@amd.com>
11351
11352         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
11353         (TARGET_ROUND): New macro for the round/ptest instructions which
11354         are shared between SSE4.1 and SSE5.
11355         (OPTION_MASK_ISA_ROUND): Ditto.
11356         (OPTION_ISA_ROUND): Ditto.
11357         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
11358         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
11359
11360         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
11361         (-mfused-madd): New switch to give users control over whether the
11362         compiler optimizes to use the multiply/add SSE5 instructions.
11363
11364         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
11365         (ix86_handle_option): Turn off 3dnow if -msse5.
11366         (override_options): Add SSE5 support.
11367         (print_operand): %Y prints comparison codes for SSE5 com/pcom
11368         instructions.
11369         (ix86_expand_sse_movcc): Add SSE5 support.
11370         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
11371         vector type to the next largest size.
11372         (ix86_expand_sse5_pack): New function to use pperm to pack a
11373         vector type to the next smallest size.
11374         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
11375         (IX86_BUILTIN_FMADDSD): Ditto.
11376         (IX86_BUILTIN_FMADDPS): Ditto.
11377         (IX86_BUILTIN_FMADDPD): Ditto.
11378         (IX86_BUILTIN_FMSUBSS): Ditto.
11379         (IX86_BUILTIN_FMSUBSD): Ditto.
11380         (IX86_BUILTIN_FMSUBPS): Ditto.
11381         (IX86_BUILTIN_FMSUBPD): Ditto.
11382         (IX86_BUILTIN_FNMADDSS): Ditto.
11383         (IX86_BUILTIN_FNMADDSD): Ditto.
11384         (IX86_BUILTIN_FNMADDPS): Ditto.
11385         (IX86_BUILTIN_FNMADDPD): Ditto.
11386         (IX86_BUILTIN_FNMSUBSS): Ditto.
11387         (IX86_BUILTIN_FNMSUBSD): Ditto.
11388         (IX86_BUILTIN_FNMSUBPS): Ditto.
11389         (IX86_BUILTIN_FNMSUBPD): Ditto.
11390         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
11391         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
11392         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
11393         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
11394         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
11395         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
11396         (IX86_BUILTIN_PPERM): Ditto.
11397         (IX86_BUILTIN_PERMPS): Ditto.
11398         (IX86_BUILTIN_PERMPD): Ditto.
11399         (IX86_BUILTIN_PMACSSWW): Ditto.
11400         (IX86_BUILTIN_PMACSWW): Ditto.
11401         (IX86_BUILTIN_PMACSSWD): Ditto.
11402         (IX86_BUILTIN_PMACSWD): Ditto.
11403         (IX86_BUILTIN_PMACSSDD): Ditto.
11404         (IX86_BUILTIN_PMACSDD): Ditto.
11405         (IX86_BUILTIN_PMACSSDQL): Ditto.
11406         (IX86_BUILTIN_PMACSSDQH): Ditto.
11407         (IX86_BUILTIN_PMACSDQL): Ditto.
11408         (IX86_BUILTIN_PMACSDQH): Ditto.
11409         (IX86_BUILTIN_PMADCSSWD): Ditto.
11410         (IX86_BUILTIN_PMADCSWD): Ditto.
11411         (IX86_BUILTIN_PHADDBW): Ditto.
11412         (IX86_BUILTIN_PHADDBD): Ditto.
11413         (IX86_BUILTIN_PHADDBQ): Ditto.
11414         (IX86_BUILTIN_PHADDWD): Ditto.
11415         (IX86_BUILTIN_PHADDWQ): Ditto.
11416         (IX86_BUILTIN_PHADDDQ): Ditto.
11417         (IX86_BUILTIN_PHADDUBW): Ditto.
11418         (IX86_BUILTIN_PHADDUBD): Ditto.
11419         (IX86_BUILTIN_PHADDUBQ): Ditto.
11420         (IX86_BUILTIN_PHADDUWD): Ditto.
11421         (IX86_BUILTIN_PHADDUWQ): Ditto.
11422         (IX86_BUILTIN_PHADDUDQ): Ditto.
11423         (IX86_BUILTIN_PHSUBBW): Ditto.
11424         (IX86_BUILTIN_PHSUBWD): Ditto.
11425         (IX86_BUILTIN_PHSUBDQ): Ditto.
11426         (IX86_BUILTIN_PROTB): Ditto.
11427         (IX86_BUILTIN_PROTW): Ditto.
11428         (IX86_BUILTIN_PROTD): Ditto.
11429         (IX86_BUILTIN_PROTQ): Ditto.
11430         (IX86_BUILTIN_PROTB_IMM): Ditto.
11431         (IX86_BUILTIN_PROTW_IMM): Ditto.
11432         (IX86_BUILTIN_PROTD_IMM): Ditto.
11433         (IX86_BUILTIN_PROTQ_IMM): Ditto.
11434         (IX86_BUILTIN_PSHLB): Ditto.
11435         (IX86_BUILTIN_PSHLW): Ditto.
11436         (IX86_BUILTIN_PSHLD): Ditto.
11437         (IX86_BUILTIN_PSHLQ): Ditto.
11438         (IX86_BUILTIN_PSHAB): Ditto.
11439         (IX86_BUILTIN_PSHAW): Ditto.
11440         (IX86_BUILTIN_PSHAD): Ditto.
11441         (IX86_BUILTIN_PSHAQ): Ditto.
11442         (IX86_BUILTIN_FRCZSS): Ditto.
11443         (IX86_BUILTIN_FRCZSD): Ditto.
11444         (IX86_BUILTIN_FRCZPS): Ditto.
11445         (IX86_BUILTIN_FRCZPD): Ditto.
11446         (IX86_BUILTIN_CVTPH2PS): Ditto.
11447         (IX86_BUILTIN_CVTPS2PH): Ditto.
11448         (IX86_BUILTIN_COMEQSS): Ditto.
11449         (IX86_BUILTIN_COMNESS): Ditto.
11450         (IX86_BUILTIN_COMLTSS): Ditto.
11451         (IX86_BUILTIN_COMLESS): Ditto.
11452         (IX86_BUILTIN_COMGTSS): Ditto.
11453         (IX86_BUILTIN_COMGESS): Ditto.
11454         (IX86_BUILTIN_COMUEQSS): Ditto.
11455         (IX86_BUILTIN_COMUNESS): Ditto.
11456         (IX86_BUILTIN_COMULTSS): Ditto.
11457         (IX86_BUILTIN_COMULESS): Ditto.
11458         (IX86_BUILTIN_COMUGTSS): Ditto.
11459         (IX86_BUILTIN_COMUGESS): Ditto.
11460         (IX86_BUILTIN_COMORDSS): Ditto.
11461         (IX86_BUILTIN_COMUNORDSS): Ditto.
11462         (IX86_BUILTIN_COMFALSESS): Ditto.
11463         (IX86_BUILTIN_COMTRUESS): Ditto.
11464         (IX86_BUILTIN_COMEQSD): Ditto.
11465         (IX86_BUILTIN_COMNESD): Ditto.
11466         (IX86_BUILTIN_COMLTSD): Ditto.
11467         (IX86_BUILTIN_COMLESD): Ditto.
11468         (IX86_BUILTIN_COMGTSD): Ditto.
11469         (IX86_BUILTIN_COMGESD): Ditto.
11470         (IX86_BUILTIN_COMUEQSD): Ditto.
11471         (IX86_BUILTIN_COMUNESD): Ditto.
11472         (IX86_BUILTIN_COMULTSD): Ditto.
11473         (IX86_BUILTIN_COMULESD): Ditto.
11474         (IX86_BUILTIN_COMUGTSD): Ditto.
11475         (IX86_BUILTIN_COMUGESD): Ditto.
11476         (IX86_BUILTIN_COMORDSD): Ditto.
11477         (IX86_BUILTIN_COMUNORDSD): Ditto.
11478         (IX86_BUILTIN_COMFALSESD): Ditto.
11479         (IX86_BUILTIN_COMTRUESD): Ditto.
11480         (IX86_BUILTIN_COMEQPS): Ditto.
11481         (IX86_BUILTIN_COMNEPS): Ditto.
11482         (IX86_BUILTIN_COMLTPS): Ditto.
11483         (IX86_BUILTIN_COMLEPS): Ditto.
11484         (IX86_BUILTIN_COMGTPS): Ditto.
11485         (IX86_BUILTIN_COMGEPS): Ditto.
11486         (IX86_BUILTIN_COMUEQPS): Ditto.
11487         (IX86_BUILTIN_COMUNEPS): Ditto.
11488         (IX86_BUILTIN_COMULTPS): Ditto.
11489         (IX86_BUILTIN_COMULEPS): Ditto.
11490         (IX86_BUILTIN_COMUGTPS): Ditto.
11491         (IX86_BUILTIN_COMUGEPS): Ditto.
11492         (IX86_BUILTIN_COMORDPS): Ditto.
11493         (IX86_BUILTIN_COMUNORDPS): Ditto.
11494         (IX86_BUILTIN_COMFALSEPS): Ditto.
11495         (IX86_BUILTIN_COMTRUEPS): Ditto.
11496         (IX86_BUILTIN_COMEQPD): Ditto.
11497         (IX86_BUILTIN_COMNEPD): Ditto.
11498         (IX86_BUILTIN_COMLTPD): Ditto.
11499         (IX86_BUILTIN_COMLEPD): Ditto.
11500         (IX86_BUILTIN_COMGTPD): Ditto.
11501         (IX86_BUILTIN_COMGEPD): Ditto.
11502         (IX86_BUILTIN_COMUEQPD): Ditto.
11503         (IX86_BUILTIN_COMUNEPD): Ditto.
11504         (IX86_BUILTIN_COMULTPD): Ditto.
11505         (IX86_BUILTIN_COMULEPD): Ditto.
11506         (IX86_BUILTIN_COMUGTPD): Ditto.
11507         (IX86_BUILTIN_COMUGEPD): Ditto.
11508         (IX86_BUILTIN_COMORDPD): Ditto.
11509         (IX86_BUILTIN_COMUNORDPD): Ditto.
11510         (IX86_BUILTIN_COMFALSEPD): Ditto.
11511         (IX86_BUILTIN_COMTRUEPD): Ditto.
11512         (IX86_BUILTIN_PCOMEQUB): Ditto.
11513         (IX86_BUILTIN_PCOMNEUB): Ditto.
11514         (IX86_BUILTIN_PCOMLTUB): Ditto.
11515         (IX86_BUILTIN_PCOMLEUB): Ditto.
11516         (IX86_BUILTIN_PCOMGTUB): Ditto.
11517         (IX86_BUILTIN_PCOMGEUB): Ditto.
11518         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
11519         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
11520         (IX86_BUILTIN_PCOMEQUW): Ditto.
11521         (IX86_BUILTIN_PCOMNEUW): Ditto.
11522         (IX86_BUILTIN_PCOMLTUW): Ditto.
11523         (IX86_BUILTIN_PCOMLEUW): Ditto.
11524         (IX86_BUILTIN_PCOMGTUW): Ditto.
11525         (IX86_BUILTIN_PCOMGEUW): Ditto.
11526         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
11527         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
11528         (IX86_BUILTIN_PCOMEQUD): Ditto.
11529         (IX86_BUILTIN_PCOMNEUD): Ditto.
11530         (IX86_BUILTIN_PCOMLTUD): Ditto.
11531         (IX86_BUILTIN_PCOMLEUD): Ditto.
11532         (IX86_BUILTIN_PCOMGTUD): Ditto.
11533         (IX86_BUILTIN_PCOMGEUD): Ditto.
11534         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
11535         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
11536         (IX86_BUILTIN_PCOMEQUQ): Ditto.
11537         (IX86_BUILTIN_PCOMNEUQ): Ditto.
11538         (IX86_BUILTIN_PCOMLTUQ): Ditto.
11539         (IX86_BUILTIN_PCOMLEUQ): Ditto.
11540         (IX86_BUILTIN_PCOMGTUQ): Ditto.
11541         (IX86_BUILTIN_PCOMGEUQ): Ditto.
11542         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
11543         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
11544         (IX86_BUILTIN_PCOMEQB): Ditto.
11545         (IX86_BUILTIN_PCOMNEB): Ditto.
11546         (IX86_BUILTIN_PCOMLTB): Ditto.
11547         (IX86_BUILTIN_PCOMLEB): Ditto.
11548         (IX86_BUILTIN_PCOMGTB): Ditto.
11549         (IX86_BUILTIN_PCOMGEB): Ditto.
11550         (IX86_BUILTIN_PCOMFALSEB): Ditto.
11551         (IX86_BUILTIN_PCOMTRUEB): Ditto.
11552         (IX86_BUILTIN_PCOMEQW): Ditto.
11553         (IX86_BUILTIN_PCOMNEW): Ditto.
11554         (IX86_BUILTIN_PCOMLTW): Ditto.
11555         (IX86_BUILTIN_PCOMLEW): Ditto.
11556         (IX86_BUILTIN_PCOMGTW): Ditto.
11557         (IX86_BUILTIN_PCOMGEW): Ditto.
11558         (IX86_BUILTIN_PCOMFALSEW): Ditto.
11559         (IX86_BUILTIN_PCOMTRUEW): Ditto.
11560         (IX86_BUILTIN_PCOMEQD): Ditto.
11561         (IX86_BUILTIN_PCOMNED): Ditto.
11562         (IX86_BUILTIN_PCOMLTD): Ditto.
11563         (IX86_BUILTIN_PCOMLED): Ditto.
11564         (IX86_BUILTIN_PCOMGTD): Ditto.
11565         (IX86_BUILTIN_PCOMGED): Ditto.
11566         (IX86_BUILTIN_PCOMFALSED): Ditto.
11567         (IX86_BUILTIN_PCOMTRUED): Ditto.
11568         (IX86_BUILTIN_PCOMEQQ): Ditto.
11569         (IX86_BUILTIN_PCOMNEQ): Ditto.
11570         (IX86_BUILTIN_PCOMLTQ): Ditto.
11571         (IX86_BUILTIN_PCOMLEQ): Ditto.
11572         (IX86_BUILTIN_PCOMGTQ): Ditto.
11573         (IX86_BUILTIN_PCOMGEQ): Ditto.
11574         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
11575         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
11576         (enum multi_arg_type): New enum for describing the various SSE5
11577         intrinsic argument types.
11578         (bdesc_multi_arg): New table for SSE5 intrinsics.
11579         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
11580         (ix86_expand_multi_arg_builtin): New function for creating SSE5
11581         intrinsics.
11582         (ix86_expand_builtin): Add SSE5 intrinsic support.
11583         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
11584         operand instructions.
11585         (ix86_expand_sse5_multiple_memory): New function to split the
11586         second memory reference from SSE5 instructions.
11587         (type_has_variadic_args_p): Delete in favor of stdarg_p.
11588         (ix86_return_pops_args): Use stdarg_p to determine if the function
11589         has variable arguments.
11590         (ix86_setup_incoming_varargs): Ditto.
11591         (x86_this_parameter): Ditto.
11592
11593         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
11594         declaration.
11595         (ix86_expand_sse5_pack): Ditto.
11596         (ix86_sse5_valid_op_p): Ditto.
11597         (ix86_expand_sse5_multiple_memory): Ditto.
11598
11599         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
11600         constant for SSE5 support.
11601         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
11602         (UNSPEC_SSE5_TRUEFALSE): Ditto.
11603         (UNSPEC_SSE5_PERMUTE): Ditto.
11604         (UNSPEC_SSE5_ASHIFT): Ditto.
11605         (UNSPEC_SSE5_LSHIFT): Ditto.
11606         (UNSPEC_FRCZ): Ditto.
11607         (UNSPEC_CVTPH2PS): Ditto.
11608         (UNSPEC_CVTPS2PH): Ditto.
11609         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
11610         (PCOM_TRUE): Ditto.
11611         (COM_FALSE_S): Ditto.
11612         (COM_FALSE_P): Ditto.
11613         (COM_TRUE_S): Ditto.
11614         (COM_TRUE_P): Ditto.
11615         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
11616         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
11617         types.
11618         (memory attribute): Ditto.
11619         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11620         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
11621         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11622         (floor<mode>2): Ditto.
11623         (ceil<mode>2): Ditto.
11624         (btrunc<mode>2): Ditto.
11625         (nearbyintdf2): Ditto.
11626         (nearbyintsf2): Ditto.
11627         (sse_setccsf): Disable if SSE5.
11628         (sse_setccdf): Ditto.
11629         (sse5_setcc<mode>): New support for SSE5 conditional move.
11630         (sse5_pcmov_<mode>): Ditto.
11631
11632         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
11633         (SSEMODEF4): Ditto.
11634         (SSEMODEF2P): Ditto.
11635         (ssemodesuffixf4): New mode attribute for SSE5.
11636         (ssemodesuffixf2s): Ditto.
11637         (ssemodesuffixf2c): Ditto.
11638         (sserotatemax): Ditto.
11639         (ssescalarmode): Ditto.
11640         (sse_maskcmpv4sf3): Disable if SSE5.
11641         (sse_maskcmpv2df3): Ditto.
11642         (sse_vmmaskcmpv4sf3): Ditto.
11643         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
11644         (sse5_vmfmadd<mode>4): Ditto.
11645         (sse5_fmsub<mode>4): Ditto.
11646         (sse5_vmfmsub<mode>4): Ditto.
11647         (sse5_fnmadd<mode>4): Ditto.
11648         (sse5_vmfnmadd<mode>4): Ditto.
11649         (sse5_fnmsub<mode>4): Ditto.
11650         (sse5_vmfnmsub<mode>4): Ditto.
11651         (sse5i_fmadd<mode>4): Ditto.
11652         (sse5i_fmsub<mode>4): Ditto.
11653         (sse5i_fnmadd<mode>4): Ditto.
11654         (sse5i_fnmsub<mode>4): Ditto.
11655         (sse5i_vmfmadd<mode>4): Ditto.
11656         (sse5i_vmfmsub<mode>4): Ditto.
11657         (sse5i_vmfnmadd<mode>4): Ditto.
11658         (sse5i_vmfnmsub<mode>4): Ditto.
11659         (mulv16qi3): Add SSE5 support.
11660         (mulv4si3): Ditto.
11661         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
11662         (sse2_mulv4si3): Disable if SSE5.
11663         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
11664         (sse4_1_roundps): Ditto.
11665         (sse4_1_roundsd): Ditto.
11666         (sse4_1_roundss): Ditto.
11667         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
11668         be generated.
11669         (sse_maskcmpsf3): Ditto.
11670         (sse_vmmaskcmpv4sf3): Ditto.
11671         (sse2_maskcmpv2df3): Ditto.
11672         (sse2_maskcmpdf3): Ditto.
11673         (sse2_vmmaskcmpv2df3): Ditto.
11674         (sse2_eq<mode>3): Ditto.
11675         (sse2_gt<mode>3): Ditto.
11676         (sse5_pcmov_<mode>): Add SSE5 support.
11677         (vec_unpacku_hi_v16qi): Ditto.
11678         (vec_unpacks_hi_v16qi): Ditto.
11679         (vec_unpacku_lo_v16qi): Ditto.
11680         (vec_unpacks_lo_v16qi): Ditto.
11681         (vec_unpacku_hi_v8hi): Ditto.
11682         (vec_unpacks_hi_v8hi): Ditto.
11683         (vec_unpacku_lo_v8hi): Ditto.
11684         (vec_unpacks_lo_v8hi): Ditto.
11685         (vec_unpacku_hi_v4si): Ditto.
11686         (vec_unpacks_hi_v4si): Ditto.
11687         (vec_unpacku_lo_v4si): Ditto.
11688         (vec_unpacks_lo_v4si): Ditto.
11689         (sse5_pmacsww): New SSE5 intrinsic insn.
11690         (sse5_pmacssww): Ditto.
11691         (sse5_pmacsdd): Ditto.
11692         (sse5_pmacssdd): Ditto.
11693         (sse5_pmacssdql): Ditto.
11694         (sse5_pmacssdqh): Ditto.
11695         (sse5_pmacsdqh): Ditto.
11696         (sse5_pmacsswd): Ditto.
11697         (sse5_pmacswd): Ditto.
11698         (sse5_pmadcsswd): Ditto.
11699         (sse5_pmadcswd): Ditto.
11700         (sse5_pcmov_<move>): Conditional move support on SSE5.
11701         (sse5_phaddbw): New SSE5 intrinsic insn.
11702         (sse5_phaddbd): Ditto.
11703         (sse5_phaddbq): Ditto.
11704         (sse5_phaddwd): Ditto.
11705         (sse5_phaddwq): Ditto.
11706         (sse5_phadddq): Ditto.
11707         (sse5_phaddubw): Ditto.
11708         (sse5_phaddubd): Ditto.
11709         (sse5_phaddubq): Ditto.
11710         (sse5_phadduwd): Ditto.
11711         (sse5_phadduwq): Ditto.
11712         (sse5_phaddudq): Ditto.
11713         (sse5_phsubbw): Ditto.
11714         (sse5_phsubwd): Ditto.
11715         (sse5_phsubdq): Ditto.
11716         (sse5_pperm): Ditto.
11717         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
11718         (sse5_pperm_zero_v16qi_v8hi): Ditto.
11719         (sse5_pperm_sign_v8hi_v4si): Ditto.
11720         (sse5_pperm_zero_v8hi_v4si): Ditto.
11721         (sse5_pperm_sign_v4si_v2di): Ditto.
11722         (sse5_pperm_sign_v4si_v2di): Ditto.
11723         (sse5_pperm_pack_v2di_v4si): Ditto.
11724         (sse5_pperm_pack_v4si_v8hi): Ditto.
11725         (sse5_pperm_pack_v8hi_v16qi): Ditto.
11726         (sse5_perm<mode>): New SSE5 intrinsic insn.
11727         (rotl<mode>3): Ditto.
11728         (sse5_rotl<mode>3): Ditto.
11729         (sse5_ashl<mode>3): Ditto.
11730         (sse5_lshl<mode>3): Ditto.
11731         (sse5_frcz<mode>2): Ditto.
11732         (sse5s_frcz<mode>2): Ditto.
11733         (sse5_cvtph2ps): Ditto.
11734         (sse5_cvtps2ph): Ditto.
11735         (sse5_vmmaskcmp<mode>3): Ditto.
11736         (sse5_com_tf<mode>3): Ditto.
11737         (sse5_maskcmp<mode>3): Ditto.
11738         (sse5_maskcmp_uns<mode>3): Ditto.
11739         (sse5_maskcmp_uns2<mode>3): Ditto.
11740         (sse5_pcom_tf<mode>3): Ditto.
11741
11742         * config/i386/predicates.md (sse5_comparison_float_operator):
11743         New predicate to match the comparison operators supported by
11744         the SSE5 com instruction.
11745         (ix86_comparison_int_operator): New predicate to match just the
11746         signed int comparisons.
11747         (ix86_comparison_uns_operator): New predicate to match just the
11748         unsigned int comparisons.
11749
11750         * doc/invoke.texi (-msse5): Add documentation.
11751         (-mfused-madd): Ditto.
11752
11753         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
11754
11755         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
11756         mmintrin-common.h.
11757         (x86_64-*-*): Ditto.
11758
11759         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
11760
11761         * config/i386/bmmintrin.h: New file, provide common x86 compiler
11762         intrinisics for SSE5.
11763
11764         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
11765         mmintrin-common.h.
11766
11767         * config/i386/mmintrin-common.h: New file, to contain common
11768         instructions between SSE4.1 and SSE5.
11769
11770         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
11771         FOREACH_FUNCTION_ARGS to iterate over the argument list.
11772         (gen_regparm_prefix): Ditto.
11773
11774         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
11775         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
11776         prototype_p to determine if a function is prototyped.
11777
11778 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
11779
11780         * c-common.c (c_common_reswords) add the alignof keyword,
11781         with same RID as __alignof and __alignof__
11782
11783 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
11784
11785         * hooks.h (hook_bool_const_int_const_int_true): Declare.
11786         * hooks.c (hook_bool_const_int_const_int_true): New function.
11787         * target.h (struct gcc_target): Add can_eliminate field.
11788         * target-def.h (TARGET_CAN_ELIMINATE): Define.
11789         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
11790         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
11791         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
11792         (elim_table): Revise comment.
11793         * system.h (CAN_ELIMINATE): Poison.
11794         * defaults.h (CAN_ELIMINATE): Remove.
11795         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11796
11797         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
11798         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
11799         Define macro.
11800         (alpha_vms_can_eliminate): Declare as static, change return type to
11801         bool.
11802         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
11803
11804         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
11805         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
11806         (arm_can_eliminate): New function.
11807
11808         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
11809         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
11810         (avr_can_eliminate): Declare as static.
11811         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
11812
11813         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
11814         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
11815         (bfin_can_eliminate): New function.
11816
11817         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
11818         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
11819         (crx_can_eliminate): New function.
11820
11821         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
11822         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
11823         (fr30_can_eliminate): New function.
11824
11825         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
11826         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
11827         (frv_can_eliminate): New function.
11828
11829         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
11830         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
11831         (h8300_can_eliminate): New function.
11832
11833         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
11834         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
11835         (i386_can_eliminate): Declare as static, change return type to bool.
11836         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
11837
11838         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
11839         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
11840         (ia64_can_eliminate): New function.
11841
11842         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
11843         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
11844         (iq2000_can_eliminate): New function.
11845
11846         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
11847         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
11848         (m32r_can_eliminate): New function.
11849
11850         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
11851         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
11852         (m68hc11_can_eliminate): New function.
11853
11854         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
11855         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
11856         (m68k_can_eliminate): New function.
11857
11858         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
11859         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
11860         (mep_can_eliminate): New function.
11861
11862         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
11863         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
11864         (mips_can_eliminate): New function.
11865
11866         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
11867         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
11868         (rs6000_can_eliminate): New function.
11869
11870         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
11871         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
11872         (s390_can_eliminate): Declare as static.
11873         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
11874
11875         * config/score/score.h (CAN_ELIMINATE): Remove macro.
11876         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
11877         (score_can_eliminate): New function.
11878
11879         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
11880         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
11881         (sparc_can_eliminate): Declare as static.
11882         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
11883
11884         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
11885         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
11886         (xstormy16_can_eliminate): New function.
11887
11888         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
11889         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
11890         (v850_can_eliminate): New function.
11891
11892 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
11893
11894         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
11895         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
11896         (*movdfcc_ext[1234]): Disable for IEEE mode.
11897
11898 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
11899
11900         * gimplify.c (prepare_gimple_addressable): New static function.
11901         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
11902         it addressable.
11903         (gimplify_addr_expr): Invoke it similarly on the operand instead of
11904         manually fiddling with it.
11905
11906 2009-08-25  Michael Matz  <matz@suse.de>
11907
11908         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
11909         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
11910         full expression.
11911         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
11912         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
11913         (do_jump): Split out code for simple binary comparisons into ...
11914         (do_jump_1): ... this, taking the individual operands and code.
11915         Change callers to helper function above accordingly.
11916         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
11917         comparisons.
11918
11919 2009-08-25  Michael Matz  <matz@suse.de>
11920
11921         * expr.h (struct separate_ops, sepops): New type for passing
11922         around an exploded simple expression.
11923         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
11924         Use this structure instead of expression tree.
11925         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
11926         expression, only its type.
11927         (expand_vec_cond_expr): Take type and individual operands instead
11928         of full expression.
11929         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
11930         expand_vec_shift_expr): Change prototype accordingly.
11931         * tree-vect-stmts.c (vectorizable_condition): Change call of
11932         expand_vec_cond_expr_p to pass only type.
11933         * expr.c (do_store_flags): Change prototype and implementation
11934         to take an exploded expression.
11935         (expand_expr_real_1): New local ops initialized with details
11936         of the full expression.  Use it instead of full
11937         expression in calls to do_store_flags, expand_vec_cond_expr,
11938         expand_widen_pattern_expr and expand_vec_shift_expr.
11939
11940 2009-08-25  Michael Matz  <matz@suse.de>
11941
11942         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
11943         treeop2 initialized with first three operands of the full expression.
11944         Substitute all TREE_OPERAND (exp, [012]) calls with them.
11945
11946 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
11947
11948         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
11949         (__gthread_objc_condition_allocate): Mark arguments as unused.
11950         (__gthread_objc_condition_deallocate): Likewise.
11951         (__gthread_objc_condition_wait): Likewise.
11952         (__gthread_objc_condition_broadcast): Likewise.
11953         (__gthread_objc_condition_signal): Likewise.
11954         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
11955         (__gthread_objc_thread_id): Likewise.
11956
11957 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
11958
11959         PR middle-end/41149
11960         * tree-pretty-print.c (print_call_name): Print the correct call name
11961         for procedure pointer components.
11962
11963 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
11964
11965         * config/ia64/ia64.c (ia64_promote_function_mode): Call
11966         default_promote_function_mode when not VMS.
11967
11968 2009-08-24  Olivier Hainque  <hainque@adacore.com>
11969
11970         * convert.c (convert_to_integer): Don't assume an input pointer is
11971         POINTER_SIZE wide.  Fetch from the type instead.
11972
11973 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11974
11975         * configure.ac (AC_PREREQ): Bump to 2.64.
11976
11977 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
11978
11979         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
11980         (process_command): Don't search standard_exec_prefix_1 and
11981         standard_exec_prefix_2.
11982
11983 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11984
11985         * config/arm/arm.c (output_return_instruction): Handle for
11986         unified syntax.
11987
11988 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11989
11990         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
11991
11992 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11993
11994         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
11995         (*arm_movdf_vfp): Likewise.
11996
11997 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11998
11999         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
12000         (vashr<mode>3): Rename from ashr<mode>3.
12001         (vlshr<mode>3): Rename from lshr<mode>3.
12002
12003 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
12004
12005         PR/40786
12006         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
12007         (check_format_info_main): Use scalar_identify_flag.
12008         (check_format_types): Check for scalar size identity if
12009         scalar_identify_flag is set.
12010         (printf_length_specs): Extend by new field.
12011         (asm_fprintf_length_specs): Likewise.
12012         (gcc_diag_length_specs): Likewise.
12013         (scanf_length_specs): Likewise.
12014         (strfmon_length_specs): Likewise.
12015         (gcc_gfc_length_specs): Likewise.
12016         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
12017         (ms_printf_flag_specs): Likewise.
12018         * c-format.h (format_length_info): Add new member scalar_identity_flag.
12019
12020 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
12021
12022         PR target/40718
12023         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
12024         (*call_value_pop_1): Ditto.
12025         (*sibcall_pop_1): New insn pattern.
12026         (*sibcall_value_pop_1): Ditto.
12027
12028 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12029
12030         PR target/41081
12031         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
12032         ashrsi3_64): New.
12033
12034 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12035
12036         PR target/41081
12037         * fwprop.c (try_fwprop_subst): Allow multiple sets.
12038         (get_reg_use_in): New function.
12039         (forward_propagate_subreg): Propagate through subreg of zero_extend
12040         or sign_extend.
12041
12042 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12043
12044         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
12045         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
12046
12047 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12048
12049         * configure.ac: Remove --with-datarootdir, --with-docdir,
12050         --with-htmldir switches.  No need to call AC_SUBST for
12051         datarootdir, docdir, htmldir any more.
12052         * configure: Regenerate.
12053         * doc/install.texi (Configuration): Document --datarootdir,
12054         --docdir, --htmldir, --pdfdir; update documentation for
12055         --infodir, --mandir.
12056         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
12057         M4 to 1.4.6.
12058
12059         * aclocal.m4: Regenerate.
12060         * config.in: Regenerate.
12061         * configure: Regenerate.
12062
12063 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
12064             Olivier Hainque  <hainque@adacore.com>
12065
12066         * config/ia64/ia64.c: Include libfuncs.h.
12067         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
12068         (ia64_expand_call): Use reg 25 on VMS.
12069         (ia64_initialize_trampoline): Fix for VMS ABI.
12070         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
12071         (ia64_function_arg): Initialize reg 25 on VMS.
12072         Fix OpenVMS ABI issues for varargs.
12073         For OpenVMS, emit the Argument Information register set in the
12074         incoming/sibcall case as well.
12075         (ia64_arg_type): New function.
12076         (ia64_function_arg_advance): Keep track of cum->words.
12077         Fix OpenVMS ABI issues for varargs.
12078         (ia64_function_value): On VMS, promote mode of non-aggregate types.
12079         (ia64_override_options): Set flag_no_common on VMS.
12080         (ia64_init_builtins): Disable FWRITE builtin.
12081         (ia64_asm_output_external): Call DO_CRTL_NAMES.
12082         (ia64_vms_init_libfuncs): Add decc$ routines.
12083         (ia64_vms_valid_pointer_mode): New function.
12084         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
12085         (ia64_promote_function_mode): New function
12086         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
12087         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
12088         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12089         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
12090         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
12091         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
12092         Suppress trailing '#' if VALUE is numeric.
12093         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
12094         ia64_promote_function_mode.
12095         (TARGET_VALID_POINTER_MODE): Define.
12096
12097 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12098
12099         PR target/40671
12100         * config/rs6000/rs6000.c (rs6000_override_options): Use
12101         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
12102
12103         PR target/41145
12104         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
12105         reporting of vector + decimal/boolean/complex error.
12106
12107 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
12108
12109         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
12110         __vector double TYPE_DECL.
12111
12112 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
12113
12114         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
12115         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
12116         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
12117         to pointer to enum machine_mode.  Update all callers as needed.
12118
12119 2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
12120
12121         * config/alpha/alpha.md (exception_receiver): Emit alternative
12122         GP load sequence if flag_reorder_blocks_and_partition is set.
12123         (*exception_receiver_2): Also enable when
12124         flag_reorder_blocks_and_partition is set.
12125
12126 2009-08-20  Matt Rice  <ratmice@gmail.com>
12127             Diego Novillo  <dnovillo@google.com>
12128
12129         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
12130         tree-ssa-sccvn.h.
12131
12132 2009-08-20  Richard Guenther  <rguenther@suse.de>
12133
12134         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
12135         * c-tree.h (c_dup_lang_specific_decl): Remove.
12136         (struct lang_decl, struct lang_type): Move definitions ...
12137         * c-lang.h: ... here.  New file.
12138         * c-decl.c: Include c-lang.h.
12139         (c_dup_lang_specific_decl): Remove.
12140         * c-typeck.c: Include c-lang.h.
12141         * Makefile.in (c-decl.o): Add c-lang.h dependency.
12142         (c-typeck.o): Likewise.
12143         * c-config-lang.in (gtfiles): Add c-lang.h.
12144         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
12145         like c-tree.h.
12146
12147 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
12148
12149         * config/alpha/alpha.c (alpha_end_function): Do not clear
12150         crtl->emit structure and free insn locators if cfun->is_thunk is true,
12151         this is now handled in generic code.
12152
12153 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12154
12155         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
12156         (s390_z10_fix_long_loop_prediction): New function.
12157         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
12158         (s390_reorg): Walk over the INSNs and invoke
12159         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
12160
12161 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12162
12163         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
12164         "*brx_64bit", "*brx_31bit"): New patterns.
12165         * config/s390/s390.c ('E'): New output modifier.
12166
12167 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12168             Richard Earnshaw  <richard.earnshaw@arm.com>
12169
12170         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
12171         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
12172
12173 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12174
12175         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
12176         patterns.
12177         * pa.c (emit_move_sequence): Check if address of operand1 is valid
12178         for mode mode of operand0 when doing secondary reload for SAR.
12179
12180 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12181
12182         PR middle-end/41123
12183         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
12184         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
12185
12186 2009-08-19  Jason Merrill  <jason@redhat.com>
12187
12188         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
12189         supported template depth in C++0x.
12190
12191 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12192
12193         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
12194         free_after_compilation.
12195         * config/score/score7.c (score7_output_mi_thunk): Likewise.
12196         * config/score/score3.c (score3_output_mi_thunk): Likewise.
12197         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12198         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12199         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12200         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12201         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12202
12203 2009-08-19  Ian Lance Taylor  <iant@google.com>
12204
12205         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
12206         of (plus (mult (neg B) C) A).
12207
12208 2009-08-18  Michael Matz  <matz@suse.de>
12209
12210         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
12211         instead of comparing TYPE_MAIN_VARIANT for equality.
12212         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
12213         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
12214         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
12215         * gimplify.c (goa_lhs_expr_p): Ditto and use
12216         STRIP_USELESS_TYPE_CONVERSION.
12217
12218 2009-08-18  Michael Matz  <matz@suse.de>
12219
12220         * tree-ssa-structalias.c (create_variable_info_for): Also mark
12221         first field in a struct.
12222         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
12223
12224 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
12225
12226         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
12227         locators before emit_insn is called.  Remove assert that
12228         cfun->is_thunk.
12229         (alpha_end_function): Clear crtl->emit structure and free insn
12230         locators if cfun->is_thunk is true.
12231
12232 2009-08-18  Jason Merrill  <jason@redhat.com>
12233
12234         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12235         type if available.
12236         * configure.ac: Test for it.
12237         * configure, config.in: Regenerate.
12238         * doc/install.texi: Document --enable-gnu-unique-object.
12239
12240 2009-08-18  Richard Guenther  <rguenther@suse.de>
12241
12242         PR middle-end/41094
12243         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
12244         pow(x,y*z) only if x is nonnegative.
12245
12246 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
12247
12248         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
12249         on jumps.
12250
12251         PR target/40971
12252         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
12253         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
12254
12255 2009-08-17  DJ Delorie  <dj@redhat.com>
12256
12257         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
12258         * config/m32c/prologue.md (epilogue_freit): New.
12259         (fset_b): New.
12260         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
12261         (bank_switch_p): Likewise.
12262         (fast_interrupt_p): Likewise.
12263         (interrupt_p): Likewise.
12264         (m32c_conditional_register_usage): Round memregs size up.
12265         (need_to_save): We only need to save $a0 when we use ENTER.
12266         (interrupt_p): Check for fast_interrupt too.
12267         (bank_switch_p): New.
12268         (fast_interrupt_p): New.
12269         (m32c_attribute_table): Add bank_switch and fast_interrupt.
12270         (m32c_emit_prolog): Support bank switching and fast interrupts.
12271         * doc/extend.texi (Function Attributes): Add bank_switch and
12272         fast_interrupt.
12273
12274 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
12275
12276         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
12277         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
12278
12279 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
12280
12281         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
12282         (menu): Add IA-64/VMS Options.
12283         (IA-64/VMS Options): Likewise.
12284
12285 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12286
12287         PR target/38599
12288         * config/mips/mips.md (*lwxs): Use :P for pointer values.
12289
12290 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12291
12292         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
12293         (mips_pop_asm_switch): Likewise.
12294         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
12295         with...
12296         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12297         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
12298         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
12299         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
12300         instead of set_noreorder.
12301         (mips_output_function_prologue): Use the new functions.
12302         (mips_output_function_epilogue): Likewise.
12303         (mips_need_noat_wrapper_p): New function, split out from...
12304         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
12305         Use mips_push_asm_switch and mips_pop_asm_switch.
12306         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
12307         and mips_pop_asm_switch.
12308         (ASM_OUTPUT_REG_POP): Likewise.
12309         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
12310         Use mips_pop_asm_switch.
12311         (mips_asm_switch): New structure.
12312         (set_noreorder, set_nomacro): Replace with...
12313         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12314         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
12315         instead of set_nomacro.
12316         (fix_truncsfsi2_macro): Likewise.
12317         (cprestore): Likewise.
12318         (hazard): Use mips_noreorder instead of set_noreorder.
12319         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
12320
12321 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
12322
12323         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
12324         from prev_active_insn.
12325
12326 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
12327
12328         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
12329         * config/avr/avr.c (avr_override_options): Initialize
12330         avr_current_arch variable.
12331         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
12332         __AVR_HAVE_16BIT_SP__ according to the device type.
12333         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
12334         TARGET_TINY_STACK.
12335         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
12336         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
12337
12338 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
12339
12340         PR debug/37801
12341         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
12342         generating inlined subroutine die only. We shouldn't be
12343         called for anything else.
12344         (gen_block_die): Don't generate inline subroutine debug info for
12345         abstract blocks.
12346
12347 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12348
12349         * graphite-poly.c (print_pbb): Print PBB index.
12350
12351 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12352
12353         PR middle-end/40981
12354         * graphite-interchange.c (ppl_max_for_le): Moved...
12355         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
12356         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
12357         ppl_Pointset_Powerset_C_Polyhedron_maximize.
12358         * graphite-ppl.h (ppl_max_for_le): Declared.
12359
12360 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
12361
12362         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
12363         supported on all platforms.
12364         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
12365         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
12366         * c-pragma.c: Likewise.
12367         * target-def.h (TARGET_INITIALIZER): Remove
12368         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12369         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12370
12371 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12372
12373         * config/ia64/fde-vms.c: New file.
12374         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
12375         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
12376         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
12377         (uw_frame_state_for): Only register a personality routine if it is
12378         known to be compatible with our expectations.
12379         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
12380         Declare unw_table_entry stack variable and
12381         mod all calls to _Unwind_FindTableEntry to add arg.
12382         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
12383         (_Unwind_FindTableEntry): Add arg to prototype.
12384
12385 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
12386
12387         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
12388         field 'signal_pfs_loc'.
12389         (uw_frame_state_for): Remove duplicate code dealing with leaf
12390         procedures without unwind info.
12391         If in the frame after unwinding through a signal handler, restore
12392         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
12393         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
12394         'pfs_loc' to the AR.PFS location in the signal context; instead
12395         set 'signal_pfs_loc'.
12396         Manually generate the unwind info for the AR.PFS register.
12397         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
12398         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
12399         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
12400         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
12401         instead set 'signal_pfs_loc'.
12402         Remove code preventing the AR.PFS register from being restored
12403         from the signal context.
12404
12405 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12406             Tristan Gingold  <gingold@adacore.com>
12407
12408         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
12409         * config/ia64/t-vms: New file.
12410         * config/ia64/vms64.h: New file.
12411         * config/ia64/vms.h: New file.
12412         * config/ia64/vms-crtinit.asm: New file.
12413         * config/ia64/vms_symvec_libgcc_s.opt: New file.
12414         * config/ia64/vms-unwind.h: New file.
12415
12416 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12417
12418         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
12419         TFmode compares.
12420
12421 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12422
12423         PR middle-end/30789
12424         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
12425         Move declaration...
12426         * real.h (do_mpc_arg2): ... here.
12427         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
12428         and RDIV_EXPR.
12429
12430 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
12431
12432         * final.c (add_debug_prefix_map): Don't use GC memory for
12433         old_prefix and new_prefix.
12434
12435 2009-08-14  Richard Guenther  <rguenther@suse.de>
12436
12437         * ipa-prop.c (compute_complex_pass_through): If we cannot
12438         compute a non-varying offset for IPA_JF_ANCESTOR punt.
12439
12440 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12441
12442         * c-lex.c (c_lex_with_flags): Increase size of local variable
12443         to avoid memory clobber.
12444
12445 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
12446
12447         PR target/40934
12448         * config/i386/i386.c (ix86_fp_comparison_strategy):
12449         Only enable/disable sahf at function granularity.
12450
12451 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
12452
12453         PR rtl-optimization/41064
12454         * reload1.c (reload_as_needed): Don't call extract_insn
12455         for known invalid replacements after calling
12456         validate_replace_rtx_group and verify_changes.
12457
12458 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12459
12460         PR target/41019
12461         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
12462         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
12463         ix86_expand_fp_vcond.
12464         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
12465         Assert that operation is supported by ix86_expand_int_vcond.
12466         (vcondu<SSEMODE124C8:mode>): Ditto.
12467
12468 2009-08-13  DJ Delorie  <dj@redhat.com>
12469
12470         * config/i386/djgpp-stdint.h: New.
12471         * config.gcc (djgpp): Use it.
12472
12473 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
12474
12475         * config/sh/sh.c (sh_override_options): When flag_exceptions or
12476         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
12477
12478 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12479
12480         * tree-ssa-loop-prefetch.c
12481         (prune_ref_by_group_reuse): Enhance probabilistic analysis
12482         for long-stride pruning.
12483         (compute_miss_rate): New function to compute the probability
12484         that two memory references access different cache lines.
12485
12486 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
12487
12488         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
12489
12490 2009-08-13  Richard Guenther  <rguenther@suse.de>
12491
12492         PR middle-end/41047
12493         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
12494         use the constant pointer type.
12495         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
12496         of CV qualifiers on the target pointer type.
12497         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
12498         conversion check before restrict check.
12499
12500 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12501
12502         PR target/41029
12503         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
12504
12505 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12506
12507         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
12508
12509 2009-08-12  Richard Guenther  <rguenther@suse.de>
12510
12511         PR tree-optimization/41011
12512         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
12513         and reference constructing.
12514
12515 2009-08-12  Xinliang David Li  <davidxl@google.com>
12516
12517         PR tree-optimization/41012
12518         * tree-flow.h : New external interface.
12519         * gimple-low.c (check_call_arg): Change to public function.
12520         Remove argument mismatch check in lowering.
12521         * tree-inline.h (tree_can_inline_p): Interface change.
12522         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
12523         into this function.
12524         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
12525         Call change to tree_can_inline_p function.
12526         (cgraph_decide_inlining_incrementally): Ditto.
12527
12528 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
12529
12530         PR tree-optimization/41031
12531         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
12532         on the partition variable rather than promote_mode on the source
12533         type.  Assert that the partition variable's type has the same
12534         mode as the source value's.
12535
12536 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
12537
12538         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
12539         for for_return == 2.
12540         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
12541         comments.
12542         * calls.c (expand_call): Fix typo.
12543         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
12544         and PARM_DECL.
12545         * stmt.c (expand_value_return): Use promote_function_mode to copy out
12546         of pseudo.
12547         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
12548         * config/cris/cris.c (cris_promote_function_mode): Likewise.
12549         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
12550         * config/pa/pa.c (pa_promote_function_mode): Likewise.
12551
12552 2009-08-12  Andrew Haley  <aph@redhat.com>
12553
12554         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
12555
12556 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12557
12558         PR bootstrap/40103
12559         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12560
12561 2009-08-12  Richard Guenther  <rguenther@suse.de>
12562
12563         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
12564         * gimplify.c (gimplify_modify_expr): Do not use
12565         lang_hooks.types_compatible_p.
12566         * tree-ssa.c (useless_type_conversion_p): For aggregates
12567         just return false if the canonical types differ.
12568
12569 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12570
12571         PR middle-end/40980
12572         * sese.c (convert_for_phi_arg): New.
12573         (add_guard_exit_phis): Use convert_for_phi_arg.
12574
12575 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12576
12577         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
12578         unknown subscript upper bounds.
12579
12580 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12581             Pranav Garg  <pranav.garg2107@gmail.com>
12582
12583         * graphite-interchange.c (gather_access_strides): Removed.
12584         (ppl_max_for_le): New.
12585         (build_linearized_memory_access): New.
12586         (memory_stride_in_loop): New.
12587         (pbb_interchange_profitable_p): Reimplemented.
12588         * graphite-ppl.h (ppl_new_id_map): New.
12589         (ppl_interchange): New.
12590
12591 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12592
12593         * graphite-interchange.c (compute_subscript): Removed.
12594         (compute_array_size_cstr): Removed.
12595         (compute_array_size_poly): Removed.
12596         (compute_array_size): Removed.
12597         (gather_access_strides_poly): Removed.
12598         (gather_access_strides): Empty.
12599
12600 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12601
12602         * graphite-dependences.c (dependence_polyhedron_1): Replace
12603         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
12604         (graphite_legal_transform_dr): Same.
12605         (graphite_carried_dependence_level_k): Same.
12606         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
12607         Initialize PDR_NB_SUBSCRIPTS.
12608         (print_pdr_access_layout): Replace pdr_nb_subscripts with
12609         PDR_NB_SUBSCRIPTS.
12610         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
12611         (PDR_NB_SUBSCRIPTS): New.
12612         (pdr_nb_subscripts): Removed.
12613         (pdr_dim): Simplified.
12614         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
12615         with PDR_NB_SUBSCRIPTS.
12616
12617 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12618
12619         * graphite-interchange.c (compute_array_size): Remove use of
12620         PDR_DATA_CONTAINER.
12621         * graphite-poly.c (new_poly_dr): Remove argument data_container.
12622         Do not initialize PDR_DATA_CONTAINER.
12623         (print_pdr): Do not print PDR_DATA_CONTAINER.
12624         * graphite-poly.h (struct poly_dr): Remove data_container field.
12625         (PDR_DATA_CONTAINER): Removed.
12626         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
12627         PDR_DATA_CONTAINER.
12628         (build_poly_dr): Same.
12629
12630 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
12631             Sebastian Pop  <sebastian.pop@amd.com>
12632
12633         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
12634         copy of the dependence polyhedron.  Free the temporary objects.
12635         (graphite_carried_dependence_level_k): Free unused objects before
12636         returning.
12637
12638 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12639
12640         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
12641         Early return without analyzing the data dependences if no
12642         transform has been done.  Call restore_scattering if the transform
12643         is not legal.
12644         (graphite-interchange.c): Same.
12645         * graphite-poly.c (print_scattering_function): Test for
12646         PBB_TRANSFORMED.
12647         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
12648         (apply_poly_transforms): Do not gcc_assert that
12649         the transform is legal.
12650         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
12651         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
12652         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
12653         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
12654         * graphite-poly.h (struct poly_scattering): New.
12655         (struct poly_bb): Add original, transformed, and saved fields.
12656         Remove transformed_scattering, original_scattering,
12657         nb_local_variables and nb_scattering_transform fields.
12658         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
12659         (poly_scattering_new): New.
12660         (poly_scattering_free): New.
12661         (poly_scattering_copy): New.
12662         (store_scattering_pbb): New.
12663         (store_scattering): New.
12664         (restore_scattering_pbb): New.
12665         (restore_scattering): New.
12666         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12667         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
12668
12669 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12670
12671         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
12672         (print_scop): Same.
12673
12674 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12675
12676         * Makefile.in (graphite.o): Depends on PREDICT_H.
12677         * graphite.c: Include predict.h.
12678         (graphite_finalize): Call tree_estimate_probability.
12679         * predict.c (predict_loops): Do not call scev_initialize and
12680         scev_finalize.
12681         (tree_estimate_probability_bb): New.
12682         (tree_estimate_probability): Do not initialize loops: move that
12683         code to the driver.  Call tree_estimate_probability_bb.
12684         (tree_estimate_probability_driver): New.
12685         (pass_profile): Use tree_estimate_probability_driver.
12686         * predict.h (tree_estimate_probability): Declared.
12687
12688 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12689
12690         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
12691         * graphite-dependences.c (graphite_legal_transform): Add time to
12692         TV_GRAPHITE_DATA_DEPS.
12693         (dependency_between_pbbs_p): Same.
12694         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
12695
12696 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
12697
12698         PR rtl-optimization/41033
12699         * alias.c (nonoverlapping_component_refs_p): Punt when strict
12700         aliasing is disabled.
12701
12702 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12703
12704         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
12705         si_mask_operand, and_load_operand, low_bitmask_operand,
12706         and_reg_operand, and_operand): New predicates.
12707         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
12708         * config/mips/mips.c (and_operands_ok): New function.
12709         * config/mips/mips-protos.h (and_operands_ok): Declare it.
12710         * config/mips/mips.md (move_type): Add ext_ins and logical.
12711         (type): Handle them.
12712         (and<mode>3): Use and_reg_operand as the second operand's predicate.
12713         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
12714         shift_shift.  Remove commutative constraint modifier.
12715         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
12716         shift_shift.
12717         (*clear_upper32_dext): Remove define_insn_and_split.
12718         (*clear_upper32): Turn this define_insn_and_split ...
12719         (splitter for ANDing register with 0xffff_ffff): .. into this.
12720
12721 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12722
12723         * combine.c (try_widen_shift_mode): Factor out code to check if an
12724         integer constant is a low-order bitmask from here ...
12725         * rtlanal.c (low_bitmask_len): ... to here.
12726         * rtl.h (low_bitmask_len): Declare.
12727
12728 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
12729
12730         PR target/8603
12731         * config/alpha/alpha.md (addsi3): Remove expander.
12732         (addsi3): Rename from *addsi3_internal insn pattern.
12733         (subsi3): Remove expander.
12734         (subsi3): Rename from *subsi3_internal insn pattern.
12735
12736 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
12737
12738         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
12739         FWRITE_UNLOCKED.
12740
12741 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
12742             Eric Botcazou  <botcazou@adacore.com>
12743             Douglas B Rupp  <rupp@gnat.com>
12744
12745         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
12746         that records that fit in 64 bits are returned by immediate value,
12747         as required by OpenVMS Calling Standard.
12748         (function_value): Adjust for above modification.
12749         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
12750         virtual_incoming_args_rtx as base object, not next_arg.
12751         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12752
12753 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12754
12755         * reload.c (find_reloads_subreg_address): Check the original
12756         req_equiv_mem address to detect the case where an address is
12757         not valid in the outer mode.
12758
12759 2009-08-11  Richard Guenther  <rguenther@suse.de>
12760
12761         PR bootstrap/40788
12762         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
12763
12764 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
12765
12766         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
12767         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
12768
12769 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
12770             Douglas B Rupp  <rupp@gnat.com>
12771
12772         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
12773         PT_STACK when frame_pointer_needed on OpenVMS.
12774         (alpha_pv_save_size, alpha_using_fp): Remove.
12775         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
12776         with proper processing for PT_NULL.
12777         (alpha_vms_initial_elimination_offset): New function. Support for
12778         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
12779         (alpha_sa_size): Force procedure type to PT_STACK when
12780         frame_pointer_needed on OpenVMS.
12781         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
12782         (alpha_using_fp): Likewise.
12783         (alpha_vms_can_eliminate): Add prototype.
12784         (alpha_vms_initial_elimination_offset): Likewise.
12785         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
12786         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
12787
12788 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
12789             Douglas B Rupp  <rupp@gnat.com>
12790
12791         * config/alpha/alpha.c (common_object_handler): New function.
12792         (vms_attribute_table): Declare a single attribute "common_object".
12793         (vms_output_aligned_decl_common): New global function.
12794         (SECTION_VMS_OVERLAY): Delete.
12795         (SECTION_VMS_GLOBAL): Likewise.
12796         (SECTION_VMS_INITIALIZE): Likewise.
12797         (vms_asm_named_section): Remove support for above flags.
12798         (vms_section_type_flags): Delete.
12799         (TARGET_SECTION_TYPE_FLAGS): Likewise.
12800         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
12801         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
12802         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
12803
12804 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12805
12806         PR target/41015
12807         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
12808         (sub_ddmmss): Likewise.
12809
12810 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
12811
12812         PR bootstrap/41018
12813         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
12814         year.
12815
12816 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12817
12818         PR target/37053
12819         * reload1.c (reload_as_needed): Use cancel_changes to completely
12820         undo a failed replacement attempt.
12821
12822 2009-08-10  Richard Guenther  <rguenther@suse.de>
12823
12824         PR middle-end/41006
12825         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
12826         (useless_type_conversion_p): ... here.  Require pointer targets
12827         to be compatible.
12828
12829 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
12830
12831         PR c++/40866
12832         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
12833         loose the original type of the statement list.
12834
12835 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12836
12837         * config/alpha/alpha.c: Include libfuncs.h
12838         (avms_asm_output_extern): New function.
12839         (alpha_init_libfuncs): Init some decc libfuncs.
12840         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
12841         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
12842         (DO_CRTL_NAMES): Define.
12843         (LIB_SPEC): Remove.
12844         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
12845         (LONG_TYPE_SIZE): Define.
12846         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
12847         (SUBTARGET_SWITCHES): Define malloc64 switch.
12848         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
12849         (MASK_RETURN_ADDR): Define.
12850         doc/invoke.texi (mmalloc64): Document switch.
12851
12852 2009-08-09  Olivier Hainque  <hainque@adacore.com>
12853             Douglas B Rupp  <rupp@gnat.com>
12854
12855         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
12856         uses_condition_handler.
12857         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
12858         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
12859         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
12860         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
12861         (code_for_builtin): New insn codes for the new alpha_builtins.
12862         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
12863         (alpha_sa_size): Account for uses_condition_handler.
12864         (alpha_expand_prologue): Likewise.
12865         (alpha_start_function): Likewise.
12866         (alpha_expand_epilogue): Likewise.
12867         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
12868         establish/revert expanders.
12869         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
12870         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
12871         New expander, resorting to the alpha.c associated function.
12872         (builtin_revert_vms_condition_handler): Likewise.
12873         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
12874         __gcc_shell_handler, the static VMS condition handler used as
12875         an indirection wrapper to the current dynamically established
12876         handler.
12877         * config/alpha/vms-unwind.h: Complete rewrite.
12878         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
12879         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
12880
12881 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
12882             Douglas B Rupp  <rupp@gnat.com>
12883
12884         * config/alpha/alpha.c (alpha_links): Add 'target' field.
12885         (alpha_need_linkage): Handle aliases.  Return function symbol.
12886         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
12887         Use ultimate alias target for the linkage name.
12888         * config/alpha/alpha.md (movmemdi): Use the symbol returned
12889         by alpha_need_linkage for the function symbol.
12890         (setmemdi): Likewise.
12891
12892 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12893
12894         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
12895         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
12896         (ASM_WEAKEN_LABEL): Define.
12897         (CRT_CALL_STATIC_FUNCTION): Define.
12898         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
12899         (ENDFILE_SPEC): Define.
12900         (INIT_SECTION_ASM_OP): Define.
12901         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
12902         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
12903         crtend.o crtendS.o.
12904         (MULTILIB_OSDIRNAMES): Define.
12905         (shlib_version): Define.
12906         (SHLIB_EXT): Define.
12907         (SHLIB_OBJS): Define.
12908         (SHLIB_NAME): Define.
12909         (SHLIB_MULTILIB): Define.
12910         (SHLIB_INSTALL): Define.
12911         (SHLIB_SYMVEC): Define.
12912         (SHLIB_SYMVECX2): Define.
12913         (SHLIB_LINK): Define.
12914
12915 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12916
12917         * config/alpha/alpha.c (alpha_initialize_trampoline):
12918         Initialize VMS trampoline IAW ABI for bounded procedure calls.
12919         (alpha_start_function): Emit transfer address on nested functions
12920         for VMS trampoline call.
12921         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
12922         since no longer used.
12923         * config/alpha/vms-tramp.asm: Remove.
12924         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
12925         since now only data initialized at runtime.
12926
12927 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12928
12929         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
12930         (LINK_GCC_C_SEQUENCE_SPEC): Define.
12931         (MD_EXEC_PREFIX): Remove, no longer used.
12932         (MD_STARTFILE_PREFIX): Likewise.
12933         (INCLUDE_DEFAULTS): Likewise.
12934         * config/alpha/t-vms:
12935         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
12936
12937 2009-08-09  Richard Guenther  <rguenther@suse.de>
12938
12939         PR tree-optimization/41016
12940         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
12941         (operand_precision): Remove.
12942         (integral_operand_p): Likewise.
12943         (recognize_single_bit_test): Adjust.
12944
12945 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
12946
12947         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
12948         operation overflows.  Likewise non-cast unary arithmetic.
12949         If one arm of a conditional expression is always taken,
12950         inhibit evaluation warnings for the other arm.  Likewise inhibit
12951         evaluation warnings for the second && or || operand if the first
12952         operand is enough to determine the result.
12953         * c-typeck.c (build_conditional_expr): Apply the same inhibition
12954         rules here.
12955         (build_binary_op): Prevent duplicate evaluation warnings.
12956
12957 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
12958
12959         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
12960         and destination have different modes, Use promote_mode to
12961         determine the signedness of the conversion.  Assert that the
12962         promoted source mode matches the destination mode.  Don't pass
12963         the destination and destination mode to expand_expr if the source
12964         mode is different.  Simplify conversion logic.
12965
12966 2009-08-09  Ira Rosen  <irar@il.ibm.com>
12967
12968         PR tree-optimization/41008
12969         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
12970         from condition only in case it's a comparison. Adjust checks.
12971
12972 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
12973
12974         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
12975         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
12976         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
12977         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
12978         (dump_cand): Handle them.
12979         (struct iv_cand): New members COST_STEP and AINC_USE.
12980         (stmt_after_increment): Likewise.
12981         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
12982         callers changed.  Use gimple_uid comparison instead of scanning.
12983         (add_candidate_1): When looking for identical candidates, take
12984         AINC_USE into account.  Set it for new candidates.
12985         (force_expr_to_var_cost): Cast target_spill_cost to int.
12986         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
12987         All callers changed.  Check for availability of autoinc addressing
12988         modes, both in general for a given mode, and in the specific use case.
12989         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
12990         changed.
12991         (get_computation_cost): Likewise.
12992         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
12993         add_autoinc_candidates): New static functions.
12994         (add_candidate): Call add_autoinc_candidates for candidates based on
12995         a USE_ADDRESS use.
12996         (find_iv_candidates): Call set_autoinc_for_original_candidates.
12997         (determine_use_iv_cost_address): If we have an autoinc candidate at
12998         the matching use, verify autoinc is possible and subtract the cost
12999         of the candidate's step from the cost.
13000         (determine_iv_cost): Record the cost of the increment in the COST_STEP
13001         member of the candidate.
13002         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
13003         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
13004
13005 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13006
13007         * config.build (ia64-hp-*vms*): New target.
13008         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13009         with ia64-hp-*vms*.
13010         * config.gcc (ia64-hp-*vms*): New target.
13011         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13012         with ia64-hp-*vms*.
13013         * config.host (ia64-hp-*vms*): New target.
13014         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13015         with ia64-hp-*vms*.
13016
13017 2009-08-08  Richard Guenther  <rguenther@suse.de>
13018
13019         PR tree-optimization/40991
13020         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
13021
13022 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
13023
13024         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
13025         mode check.  Do truncations in an integer mode.
13026         (force_to_mode): Handle subregs for all mode types.  Only do
13027         arithmetic simplifications on integer modes.
13028
13029 2009-08-07  Richard Guenther  <rguenther@suse.de>
13030
13031         PR tree-optimization/40999
13032         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
13033         (maybe_fold_reference): Lookup constant initializers.
13034         (fold_gimple_assign): Likewise.
13035
13036 2009-08-07  Richard Guenther  <rguenther@suse.de>
13037
13038         * tree-ssa.c (useless_type_conversion_p_1): Only for types
13039         that require structural equality defer to the langhook.
13040
13041 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13042
13043         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
13044         comments.
13045         (struct ipa_pass_through_data): New type.
13046         (struct ipa_ancestor_jf_data): New type.
13047         (union jump_func_value): Removed field formal_id, added fields
13048         pass_through and ancestor.
13049         (struct ipa_param_call_note): Changed type of formal_id to int from
13050         unsigned.
13051         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
13052         operations jump functions and ancestor jump functions.
13053         (compute_complex_pass_through): New function.
13054         (compute_scalar_jump_functions): Call compute_complex_pass_through,
13055         reflect changes in the jump function strucutre.
13056         (update_jump_functions_after_inlining): Ignore complex pass-through
13057         and ancestor jump functions.
13058         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
13059         polynomial pass-through with operation jump functions.
13060
13061 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
13062
13063         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
13064         fde->dw_fde_begin as begin label instead of hot/cold label.
13065         Use LLSDAC label instead of LLSDA for second section lsda.
13066         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
13067         label instead of LLSDA if it is true.
13068         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
13069         callers.
13070         * except.c (add_call_site, dw2_size_of_call_site_table): Add
13071         SECTION argument.  Use it as index into crtl->eh.call_site_record
13072         array.
13073         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
13074         use it to determine how to print table entries instead of using
13075         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
13076         label instead of normal begin label as base.
13077         (sjlj_assign_call_site_values): Adjust add_call_site caller.
13078         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
13079         ensure no EH range spans between sections and that landing pads
13080         are always in the corresponding section.
13081         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
13082         for crtl->eh.call_site_record being an array rather than scalar.
13083         (output_one_function_exception_table): New function, copied
13084         from output_function_exception_table.  Adjust
13085         dw2_size_of_call_site_table, dw2_output_call_site_table
13086         callers.  For SECOND section use *C suffixed labels.
13087         (output_function_exception_table): Call
13088         output_one_function_exception_table and, when doing hot/cold
13089         partitioning, also another time for the second section.
13090         * opts.c: Include except.h.
13091         (decode_options): Allow -freorder-blocks-and-partition with
13092         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
13093         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
13094         * function.h (struct rtl_eh): Change call_site_record from
13095         scalar into array of 2 elements.
13096
13097 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13098
13099         * ipa-prop.c (count_formal_params_1): New function.
13100         (ipa_get_vector_of_formal_parms): New function.
13101         (get_vector_of_formal_parm_types): New function.
13102         (ipa_modify_formal_parameters): New function.
13103         (ipa_modify_call_arguments): New function.
13104         (index_in_adjustments_multiple_times_p): New function.
13105         (ipa_combine_adjustments): New function.
13106         (ipa_dump_param_adjustments): New function.
13107         * ipa-prop.h (struct ipa_parm_adjustment): New type.
13108         (ipa_get_vector_of_formal_parms): Declare.
13109         (ipa_modify_formal_parameters): Declare.
13110         (ipa_modify_call_arguments): Declare.
13111         (ipa_combine_adjustments): Declare.
13112         (ipa_dump_param_adjustments): Declare.
13113         (build_ref_for_offset): Declare.
13114         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
13115         * tree-sra.c: Include ipa-prop.c.
13116         (build_ref_for_offset): Make public.
13117
13118 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
13119
13120         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
13121
13122 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
13123
13124         * gcc/doc/extend.texi (__builtin_extract_return_address)
13125         (__builtin_frob_return_address): Document.
13126
13127 2009-08-06  Paul Brook  <paul@codesourcery.com>
13128
13129         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
13130         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
13131         implementation on ARMv6-M.
13132
13133 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13134
13135         * doc/extend.texi (pcs): Document new attribute for ARM.
13136
13137 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13138
13139         * arm.c (pcs_attribute_args): Comment out unsupported attribute
13140         variants.
13141
13142 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13143
13144         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
13145         warning ().
13146
13147 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13148
13149         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
13150
13151 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13152
13153         Merge ARM/hard_vfp_branch to trunk.
13154
13155         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
13156
13157         * arm.c (libcall_eq): New function.
13158         (libcall_hash): New function.
13159         (add_libcall): New function.
13160         (arm_libcall_uses_aapcs_base): New function.
13161         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
13162         libcalls using the base PCS.
13163         (arm_init_cumulative_args): Likewise.
13164
13165         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
13166
13167         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
13168         Use base ABI for conversion libfuncs between HFmode and SFmode.
13169
13170         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13171
13172         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
13173         V4SImode as representatives of all 64-bit and 128-bit vector
13174         types.  Allow vector types without vector modes.
13175         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
13176         without vector modes like BLKmode.
13177         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
13178         BLKmode.  Avoid unsupported vector modes or TImode moves for
13179         non-TARGET_NEON.
13180         (aapcs_vfp_allocate_return_reg): Likewise.
13181         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
13182         V8QImode if TARGET_NEON || TARGET_IWMMXT.
13183
13184         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13185
13186         * config/arm/arm.c (arm_handle_pcs_attribute): New.
13187         (arm_get_pcs_model): Pass attribute arguments to
13188         arm_pcs_from_attribute.
13189         (arm_init_cumulative_args): Use base AAPCS for conversions from
13190         floating-point types to DImode.
13191         (arm_attribute_table): Add pcs attribute.
13192         (arm_handle_pcs_attribute): New.
13193         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
13194         conversions from floating-point types to DImode, also declare them
13195         to use base AAPCS and declare functions they call to use base
13196         AAPCS and their RTABI names.
13197
13198         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13199
13200         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
13201         -mfloat-abi=hard not being supported for VFP.
13202
13203         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
13204
13205         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
13206         SYMBOL_REF to hard_libcall_value.
13207
13208         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13209             Richard Earnshaw  <rearnsha@arm.com>
13210
13211         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
13212         has been put on the stack, all remaining co-processory arguments for
13213         that co-processor also go on the stack.
13214
13215         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13216
13217         * config/arm/arm.c (arm_return_in_memory): Handle returning
13218         vectors of suitable size in registers also for AAPCS case.
13219
13220         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
13221
13222         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
13223
13224         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
13225
13226         ARM Hard-VFP calling convention
13227         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
13228         * target.h (gcc_target): Add libcall_value to table of call hooks.
13229         * targhooks.h (default_libcall_value): Default implementation.
13230         * targhooks.c (default_libcall_value): Likewise.
13231         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
13232         * optabs.c (expand_unop): Use it.
13233         * expr.h (hard_libcall_value): Pass the function RTX through.
13234         * calls.c (emit_library_call_value_1): Update call to
13235         hard_libcall_value.
13236         * explow.c (hard_libcall_value): Use new target hook.
13237         * config/arm/arm.c: Include cgraph.h
13238         (TARGET_FUNCTION_VALUE): Override default hook.
13239         (arm_pcs_default): New variable.
13240         (arm_override_options): Don't fault hard calling convention with VFP.
13241         Add support for AAPCS variants.
13242         (arm_function_value): Make static.  Handle AAPCS variants.
13243         (arm_libcall_value): New function.
13244         (arm_apply_result_size): Handle VFP registers in results.
13245         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
13246         conventions.
13247         (pcs_attribute_args): New variable.
13248         (arm_pcs_from_attribute): New function.
13249         (arm_get_pcs_model): New function.
13250         (aapcs_vfp_cum_init): New function.
13251         (aapcs_vfp_sub_candidate): New function.
13252         (aapcs_vfp_is_return_candidate): New function.
13253         (aapcs_vfp_is_call_candidate): New function.
13254         (aapcs_vfp_allocate): New function.
13255         (aapcs_vfp_allocate_return_reg): New function.
13256         (aapcs_vfp_advance): New function.
13257         (aapcs_cp_arg_layout): New variable.
13258         (aapcs_select_call_coproc): New function.
13259         (aapcs_select_return_coproc): New function.
13260         (aapcs_allocate_return_reg): New function.
13261         (aapcs_libcall_value): New function.
13262         (aapcs_layout_arg): New function.
13263         (arm_init_cumulative_args): Initialize AAPCS args data.
13264         (arm_function_arg): Handle AAPCS variants using new interface.
13265         (arm_arg_parital_bytes): Likewise.
13266         (arm_function_arg_advance): New function.
13267         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
13268         calling conventions.
13269         (arm_setup_incoming_varargs): Handle new AAPCS args data.
13270         * arm.h (NUM_VFP_ARG_REGS): Define.
13271         (LIBCALL_VALUE): Update.
13272         (FUNCTION_VALUE): Delete.
13273         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
13274         (arm_pcs): New enum.
13275         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
13276         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
13277         (FUNCTION_ARG_REGNO_P): Add VFP regs.
13278         * arm-protos.h (arm_function_arg_advance): Add.
13279         (aapcs_libcall_value): Add.
13280         (arm_function_value): Delete.
13281
13282 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
13283             H.J. Lu  <hongjiu.lu@intel.com>
13284
13285         PR target/40957
13286         * config/i386/i386.c (standard_sse_mode_p): Remove.
13287         (standard_sse_constant_p): Return 2 for integer mode
13288         vector_all_ones_operand when SSE2 is enabled.
13289         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
13290         (ix86_expand_vector_move): Do not check for negative values from
13291         standard_sse_constant_p.
13292
13293 2009-08-06  Richard Guenther  <rguenther@suse.de>
13294
13295         * tree-ssa.c (useless_type_conversion_p_1): Make function and
13296         array type comparisons frontend independent.
13297         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
13298         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
13299         out array reference lower bound and element size operands.
13300         (ao_ref_init_from_vn_reference): Properly compute the offset
13301         for ARRAY_RANGE_REF.
13302         (vn_reference_fold_indirect): Fill out array reference lower
13303         bound and element size operands.
13304         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
13305         a non gimple valued reference operand which can happen for
13306         array reference lower bound or element size.
13307         (create_component_ref_by_pieces_1): Properly generate the
13308         element size operand for array references.
13309
13310 2009-08-06  Richard Guenther  <rguenther@suse.de>
13311
13312         PR tree-optimization/40964
13313         * tree.c (iterative_hash_host_wide_int): Export.
13314         * tree.h (iterative_hash_host_wide_int): Declare.
13315         * tree-ssa-structalias.c (heapvar_map): New struct.
13316         (heapvar_map_eq): New function.
13317         (heapvar_map_hash): Likewise.
13318         (heapvar_lookup): Adjust.
13319         (heapvar_insert): Likewise.
13320         (make_constraint_from_heapvar): Allow multiple heap variables
13321         per decl at different offsets.
13322         (init_alias_heapvars): Adjust.
13323
13324 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13325
13326         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
13327         * mips_output_sync_loop (mips_output_sync_loop): Only emit
13328         trailing sync if TARGET_SYNC_AFTER_SC.
13329
13330 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
13331
13332         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
13333         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
13334         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
13335         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
13336         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
13337         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
13338         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13339         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
13340         test_and_set_12): Rewrite calls to mips_output_sync_loop.
13341         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
13342         the prototype declaration match the definition.
13343         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
13344         instructions explicitly.  Add barrier_before and operands
13345         parameters.
13346         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
13347         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
13348         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
13349         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
13350         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
13351         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
13352
13353 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
13354
13355         * tree-ssa-alias.c: Fix intervals to use [) syntax.
13356
13357 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
13358             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13359
13360         PR target/40906
13361         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
13362         source operand.
13363
13364 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
13365
13366         PR rtl-optimization/40924
13367         * dse.c (canon_address): Before calling cselib_expand_value_rtx
13368         make sure canon_rtx (mem_address) isn't simpler than
13369         canon_rtx (expanded_mem_address).
13370
13371 2009-08-05  Li Feng  <nemokingdom@gmail.com>
13372
13373         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
13374         for each poly_bb_p.
13375         (build_scop_drs): Build alias set for each SCoP.
13376
13377 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
13378
13379         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
13380         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
13381         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
13382         (MIPS_ARCH_FLOAT_SPEC): Likewise.
13383         (BASE_DRIVER_SELF_SPECS): Likewise.
13384
13385 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
13386
13387         * tree-ssa-alias.c: Fix some comment typos.
13388
13389 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13390
13391         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
13392         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
13393
13394 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
13395
13396         PR c/39902
13397         * simplify-rtx.c (simplify_binary_operation_1): Disable
13398         simplifications for decimal float operations.
13399
13400 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
13401
13402         PR middle-end/40943
13403         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
13404         operand of INDIRECT_REF.
13405
13406 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
13407
13408         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
13409         constants referencing TLS symbols.
13410
13411 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13412
13413         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
13414         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
13415
13416 2009-08-03  Richard Guenther  <rguenther@suse.de>
13417
13418         * tree.c (make_vector_type): Build a main variant first,
13419         get the canonical one and then build the variant.
13420         * tree-ssa.c (useless_type_conversion_p_1): Handle
13421         fixed-point types.
13422         (useless_type_conversion_p): Conversions to pointers to
13423         incomplete record types are useless.
13424
13425 2009-08-03  Richard Guenther  <rguenther@suse.de>
13426
13427         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
13428         file will be created.
13429         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
13430         * toplev.c (compile_file): Adjust comment.
13431
13432 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13433
13434         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
13435         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
13436         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13437         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13438         (sh_promote_function_mode): Fix typo.
13439
13440 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
13441
13442         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
13443
13444 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13445
13446         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
13447         declaration arguments.
13448
13449 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
13450
13451         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
13452         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
13453         (ix86_split_ashl): Ditto.
13454         (ix86_expand_vector_init_one_nonzero): Ditto.
13455         (ix86_expand_vector_set): Ditto.
13456         (ix86_expand_reduc_v4sf): Ditto.
13457
13458 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13459
13460         * explow.c (promote_function_mode): Remove assert.
13461         * config/sh/sh.c (sh_promote_function_mode): Declare.
13462
13463 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13464
13465         * config/pa/pa.c (pa_promote_function_mode): Declare.
13466         Change to static.  Fix promote_mode call.
13467
13468         * gthr-dce.h (CONST_CAST2): Define if not defined.
13469         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
13470
13471         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
13472
13473 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
13474
13475         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13476         now write-only variable unsignedp.
13477         (expand_expr_real_1): Use promote_decl_mode.
13478         * expr.h (promote_function_mode, promote_decl_mode): New.
13479         (promote_mode): Remove last argument.
13480         * function.c (assign_temp): Drop last argument of promote_mode.
13481         (assign_parm_find_data_types): Use promote_function_mode.
13482         (assign_parm_setup_reg): Likewise.
13483         (expand_function_end): Use promote_function_mode.
13484         * calls.c (initialize_argument_information): Use promote_function_mode.
13485         (precompute_arguments): Use promote_mode instead of checking if
13486         only PROMOTE_FUNCTION_MODE is defined.
13487         (expand_call): When making sibcall decisions, use promote_function_mode.
13488         Below, remove an if for targetm.calls.promote_function_return and
13489         and use promote_function_mode.
13490         (emit_library_call_value_1): Use promote_function_mode, fix bug
13491         where promote_mode was passed FOR_CALL == 0 for a return value in an
13492         assertion.
13493         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13494         * explow.c (promote_function_mode, promote_decl_mode): New.
13495         (promote_mode): Keep only the FOR_CALL == 0 case.
13496         * combine.c (setup_incoming_promotion): Remove test of
13497         promote_function_args.  Use promote_function_mode.
13498         * stmt.c (expand_value_return): Use promote_decl_mode.
13499         (expand_decl): Use promote_decl_mode.
13500
13501         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13502         now write-only variable unsignedp.
13503         (expand_expr_real_1): Use promote_decl_mode.
13504         * expr.h (promote_function_mode, promote_decl_mode): New.
13505         (promote_mode): Remove last argument.
13506         * function.c (assign_temp): Drop last argument of promote_mode.
13507         (assign_parm_find_data_types): Use promote_function_mode.
13508         (assign_parm_setup_reg): Likewise.
13509         (expand_function_end): Use promote_function_mode.
13510         * calls.c (initialize_argument_information): Use promote_function_mode.
13511         (precompute_arguments): Use promote_mode instead of checking if
13512         only PROMOTE_FUNCTION_MODE is defined.
13513         (expand_call): When making sibcall decisions, use promote_function_mode.
13514         Below, remove an if for targetm.calls.promote_function_return and
13515         and use promote_function_mode.
13516         (emit_library_call_value_1): Use promote_function_mode, fix bug
13517         where promote_mode was passed FOR_CALL == 0 for a return value in an
13518         assertion.
13519         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13520         * explow.c (promote_function_mode, promote_decl_mode): New.
13521         (promote_mode): Keep only the FOR_CALL == 0 case.
13522         * combine.c (setup_incoming_promotion): Remove test of
13523         promote_function_args.  Use promote_function_mode.
13524         * stmt.c (expand_value_return): Use promote_decl_mode.
13525         (expand_decl): Use promote_decl_mode.
13526
13527         * explow.c (promote_function_mode): Just call the target hook.
13528         * targhooks.c (default_promote_function_mode,
13529         default_promote_function_mode_always_promote): New.
13530         * targhooks.h (default_promote_function_mode,
13531         default_promote_function_mode_always_promote): Declare.
13532         * target.h (promote_function_args, promote_function_return): Remove.
13533         (promote_function_mode): New.
13534         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
13535         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13536         (TARGET_PROMOTE_FUNCTION_MODE): New.
13537         (TARGET_CALLS): Adjust.
13538         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
13539         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
13540
13541         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
13542         * config/s390/s390.c (s390_promote_function_mode): ... here,
13543         with pointer handling.
13544         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13545         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13546
13547         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
13548         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
13549         with pointer handling.
13550         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13551         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13552
13553         * config/sh/sh-protos.h (sh_promote_function_mode): New.
13554         * config/sh/sh.c (sh_promote_function_mode): New.
13555         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13556         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13557
13558         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
13559         * config/cris/cris.c (cris_promote_function_mode): ... here.
13560         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13561         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13562
13563         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
13564         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
13565         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13566         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13567
13568         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
13569         * config/arm/arm.c (arm_promote_function_mode): ... here, without
13570         complex type handling.
13571         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13572         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13573
13574         * config/pa/pa.c (pa_promote_function_mode): New.
13575         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13576         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13577
13578         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
13579         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13580         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
13581         * config/xtensa/xtensa.c: Likewise.
13582         * config/stormy16/stormy16.c: Likewise.
13583         * config/iq2000/iq2000.c: Likewise.
13584         * config/rs6000/rs6000.c: Likewise.
13585         * config/picochip/picochip.c: Likewise.
13586         * config/arc/arc.c: Likewise.
13587         * config/mcore/mcore.c: Likewise.
13588         * config/score/score.c: Likewise.
13589         * config/mips/mips.c: Likewise.
13590         * config/bfin/bfin.c: Likewise.
13591         * config/ia64/ia64.c: Likewise (disabled though).
13592
13593         * config/frv/frv.h: Remove pointless remark.
13594
13595         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
13596         TARGET_PROMOTE_FUNCTION_ARGS,
13597         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
13598         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
13599
13600 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13601
13602         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
13603         -floop-parallelize-all.
13604         * toplev.c (process_options): Rename flag_graphite_force_parallel to
13605         flag_loop_parallelize_all.
13606         * tree-ssa-loop.c (gate_graphite_transforms): Same.
13607         * graphite.c (graphite_transform_loops): Same.
13608         * common.opt: Same.
13609         * graphite-poly.c (apply_poly_transforms): Same.
13610
13611 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
13612
13613         PR tree-optimization/40914
13614         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
13615         if set, then check the delta field of the PMF record.
13616         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
13617         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
13618         call is stored in the delta.
13619
13620 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
13621
13622         * config/mips/mips.md (*clear_upper32_dext): New pattern.
13623
13624 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
13625
13626         * config/i386/bsd.h (ASM_BYTE): New define.
13627         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
13628         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
13629         .byte.  Use fputs or putc instead of fprintf where appropriate.
13630         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
13631         fputs or putc instead of fprintf where appropriate.
13632         * config/i386/i386elf.h: Ditto.
13633         * config/i386/sysv4.h: Ditto.
13634
13635         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
13636         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
13637         (*tls_global_dynamic_64): Ditto.
13638
13639 2009-07-31  Christian Bruel  <christian.bruel@st.com>
13640
13641         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
13642
13643 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13644
13645         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
13646         Remove dead code for MINUS.
13647
13648 2009-07-31  Anthony Green  <green@moxielogic.com>
13649
13650         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
13651         $r12 in prologue.
13652         (moxie_expand_epilogue): Ditto for epilogue.
13653         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
13654         incoming arguments.
13655         (moxie_function_arg): Ditto.
13656         (moxie_pass_by_reference): Ditto.
13657         (moxie_arg_partial_bytes): Ditto.
13658         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
13659         (FUNCTION_ARG_ADVANCE) Ditto.
13660         (REG_PARM_STACK_SPACE) Ditto.
13661         (FUNCTION_ARG_REGNO_P) Dito.
13662
13663         * config.gcc: Add moxie linux config support.
13664         * gcc/config/moxie/uclinux.h: New file.
13665
13666 2009-07-31  DJ Delorie  <dj@redhat.com>
13667
13668         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13669         (UNSPECV_SP_SWITCH_E): New.
13670         (sp_switch_1): Change to an unspec.
13671         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13672         replace $r15.
13673         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
13674         reference the new stack's address
13675
13676 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13677
13678         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
13679         graphite-clast-to-gimple.o, graphite-dependences.o,
13680         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13681         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
13682         (graphite-blocking.o,
13683         graphite-clast-to-gimple.o, graphite-dependences.o,
13684         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13685         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
13686         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
13687         * cfgloop.h (struct loop): Add can_be_parallel field.
13688         * common.opt (fgraphite-identity): Moved up.
13689         (fgraphite-force-parallel): New flag.
13690         * graphite.c: Rewrite.
13691         * graphite.h: Rewrite.
13692         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
13693         after Graphite.
13694         * toplev.c (graphite_out_file): New file descriptor.
13695         (graphite_in_file): New.
13696         (process_options): flag_graphite_force_parallel cannot be used without
13697         Graphite.
13698         * tree-ssa-loop.c: Include toplev.h.
13699         (gate_graphite_transforms): Enable flag_graphite for
13700         flag_graphite_force_parallel.
13701
13702 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13703
13704         * ChangeLog.graphite: New.
13705         * graphite-blocking.c: New.
13706         * graphite-clast-to-gimple.c: New.
13707         * graphite-clast-to-gimple.h: New.
13708         * graphite-dependences.c: New.
13709         * graphite-dependences.h: New.
13710         * graphite-interchange.c: New.
13711         * graphite-poly.c: New.
13712         * graphite-poly.h: New.
13713         * graphite-ppl.c: New.
13714         * graphite-ppl.h: New.
13715         * graphite-scop-detection.c: New.
13716         * graphite-scop-detection.h: New.
13717         * graphite-sese-to-poly.c: New.
13718         * graphite-sese-to-poly.h: New.
13719         * sese.c: New.
13720         * sese.h: New.
13721
13722 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13723
13724         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
13725         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
13726
13727 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13728
13729         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
13730         (scev_is_linear_expression): Return false if the evolution is not
13731         affine multivariate.
13732
13733 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13734
13735         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
13736         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
13737
13738 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13739
13740         * tree-data-ref.c (debug_data_references): New.
13741         (debug_data_reference): New.
13742         * tree-data-ref.h (debug_data_references): Declared.
13743         (debug_data_reference): Declared.
13744
13745 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13746
13747         * tree-data-ref.c (stmt_simple_memref_p: Removed.
13748         * tree-data-ref.h (scop_p): Removed.
13749         (struct data_reference): Remove field scop.
13750         (DR_SCOP): Removed.
13751         (stmt_simple_memref_p): Removed.
13752
13753 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13754
13755         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
13756         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
13757         basic block empty.
13758
13759 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13760
13761         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
13762
13763 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13764
13765         * doc/invoke.texi (-fgraphite-identity): Documented.
13766
13767 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13768
13769         * tree-scalar-evolution.c: Fix comment.
13770         (instantiate_scev_1): Return unknow from scev instantiation if the
13771         result is not above instantiate_below.
13772
13773 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13774
13775         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
13776         static anymore.  Instantiate the symbols that may have been introduced
13777         by chrec_apply.
13778         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
13779         Declared.
13780
13781 2009-07-30  DJ Delorie  <dj@redhat.com>
13782
13783         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
13784         .vliw directive to VLIW sections.
13785
13786 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13787
13788         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
13789         New variables.
13790         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
13791         (AUTOHEADER): New variable.
13792         ($(srcdir)/cstamp-h.in): Use it.
13793
13794 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
13795             Pat Haugen  <pthaugen@us.ibm.com>
13796             Revital Eres <ERES@il.ibm.com>
13797
13798         * config/rs6000/vector.md (VEC_F): Add VSX support.
13799         (VEC_A): Ditto.
13800         (VEC_N): Ditto.
13801         (mov<mode>): Ditto.
13802         (vector_load_<mode>): Ditto.
13803         (vector_store_<mode>): Ditto.
13804         (vector GPR move split): Ditto.
13805         (vec_reload_and_plus_<mptrsize>): Ditto.
13806         (vec_reload_and_reg_<mptrsize>): Ditto.
13807         (add<mode>3): Ditto.
13808         (sub<mode>3): Ditto.
13809         (mul<mode>3): Ditto.
13810         (neg<mode>2): Ditto.
13811         (abs<mode>2): Ditto.
13812         (smin<mode>3): Ditto.
13813         (smax<mode>3): Ditto.
13814         (vector_eq<mode>): Ditto.
13815         (vector_gt<mode>): Ditto.
13816         (vector_ge<mode>): Ditto.
13817         (vector_gtu<mode>): Ditto.
13818         (vector_select_<mode>_uns): Ditto.
13819         (vector_eq_<mode>_p): Ditto.
13820         (vector_gt_<mode>_p): Ditto.
13821         (vector_ge_<mode>_p): Ditto.
13822         (vector_gtu_<mode>_p): Ditto.
13823         (cr6_test_for_zero): Ditto.
13824         (cr6_test_for_zero_reverse): Ditto.
13825         (cr6_test_for_lt): Ditto.
13826         (cr6_test_for_lt_reverse): Ditto.
13827         (xor<mode>3): Ditto.
13828         (ior<mode>3): Ditto.
13829         (and<mode>3): Ditto.
13830         (one_cmpl<mode>2): Ditto.
13831         (nor<mode>2): Ditto.
13832         (andc<mode>2): Ditto.
13833         (float<VEC_int<mode>2): Ditto.
13834         (unsigned_float<VEC_int><mode>2): Ditto.
13835         (fix_trunc<mode><VEC_int>2): Ditto.
13836         (fixuns_trunc<mode><VEC_int>2): Ditto.
13837         (vec_init<mode>):
13838         (vec_set<mode>): Ditto.
13839         (vec_extract<mode>): Ditto.
13840         (vec_interleave_highv4sf): Ditto.
13841         (vec_interleave_lowv4sf): Ditto.
13842         (vec_realign_load_<mode>): Ditto.
13843         (vec_shl_<mode>): Ditto.
13844         (vec_shr_<mode>): Ditto.
13845         (div<mode>3): New patterns for VSX.
13846         (vec_interleave_highv2df): Ditto.
13847         (vec_interleave_lowv2df): Ditto.
13848         (vec_pack_trunc_v2df): Ditto.
13849         (vec_pack_sfix_trunc_v2df): Ditto.
13850         (vec_pack_ufix_trunc_v2df): Ditto.
13851         (vec_unpacks_hi_v4sf): Ditto.
13852         (vec_unpacks_lo_v4sf): Ditto.
13853         (vec_unpacks_float_hi_v4si): Ditto.
13854         (vec_unpacks_float_lo_v4si): Ditto.
13855         (vec_unpacku_float_hi_v4si): Ditto.
13856         (vec_unpacku_float_lo_v4si): Ditto.
13857         (movmisalign<mode>): Ditto.
13858         (vector_ceil<mode>2): New patterns for vectorizing math library.
13859         (vector_floor<mode>2): Ditto.
13860         (vector_btrunc<mode>2): Ditto.
13861         (vector_copysign<mode>3): Ditto.
13862
13863         * config/rs6000/predicates.md (easy_vector_constant_msb): New
13864         predicate for setting the high bit in each word, used for copysign.
13865
13866         * config/rs6000/ppc-asm.h (f19): Whitespace.
13867         (f32-f63): Define if VSX.
13868         (v0-v31): Define if Altivec.
13869         (vs0-vs63): Define if VSX.
13870
13871         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
13872
13873         * config/rs6000/power7.md: New file, provide tuning parameters for
13874         -mcpu=power7.
13875
13876         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
13877         (rs6000_cpu_cpp_builtins): Ditto.
13878         (altivec_overloaded_builtins): Ditto.
13879         (altivec_resolve_overloaded_builtin): Ditto.
13880
13881         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
13882         debug switch to disable vectorizing simple math builtin
13883         functions.
13884
13885         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13886         Vectorize simple math builtin functions.
13887         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13888         hook to vectorize math builtins.
13889         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
13890         (rs6000_builtin_conversion): Add VSX/power7 support.
13891         (rs6000_builtin_vec_perm): Ditto.
13892         (vsplits_constant): Add support for loading up a vector constant
13893         with just the high bit set in each part.
13894         (rs6000_expand_vector_init): Add VSX/power7 support.
13895         (rs6000_expand_vector_set): Ditto.
13896         (rs6000_expand_vector_extract): Ditto.
13897         (rs6000_emit_move): Ditto.
13898         (bdesc_3arg): Ditto.
13899         (bdesc_2arg): Ditto.
13900         (bdesc_1arg): Ditto.
13901         (rs6000_expand_ternop_builtin): Ditto.
13902         (altivec_expand_builtin): Ditto.
13903         (rs6000_expand_unop_builtin): Ditto.
13904         (rs6000_init_builtins): Ditto.
13905         (altivec_init_builtins): Ditto.
13906         (builtin_function_type): Ditto.
13907         (rs6000_common_init_builtins): Ditto.
13908         (rs6000_handle_altivec_attribute); Ditto.
13909         (rs6000_mangle_type): Ditto.
13910         (rs6000_vector_mode_supported_p): Ditto.
13911         (rs6000_mode_dependent_address): Altivec addresses with AND -16
13912         are mode dependent.
13913
13914         * config/rs6000/vsx.md: New file for VSX support.
13915
13916         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
13917         identifing values with just the most significant bit set.
13918         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
13919         vectorized builtins.
13920
13921         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
13922         (UNSPEC_VRFIM): Delete.
13923         (splitter for loading up vector with most significant bit): New
13924         splitter for vectorizing copysign.
13925         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
13926         vectorizing simple math functions.
13927         (altivec_vrfip): Add support for vectorizing simple math functions.
13928         (altivec_vrfim): Ditto.
13929         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
13930
13931         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
13932         (power7.md, vsx.md): Include for power7 support.
13933         (copysigndf3): Use VSX instructions if -mvsx.
13934         (negdf2_fpr): Ditto.
13935         (absdf2_fpr): Ditto.
13936         (nabsdf2_fpr): Ditto.
13937         (adddf3_fpr): Ditto.
13938         (subdf3_fpr): Ditto.
13939         (muldf3_fpr): Ditto.
13940         (divdf3_fpr): Ditto.
13941         (fix_truncdfdi2_fpr): Ditto.
13942         (cmpdf_internal1): Ditto.
13943         (fred, fred_fpr): Convert into expander/insn to add VSX support.
13944         (btruncdf2, btruncdf2_fpr): Ditto.
13945         (ceildf2, ceildf2_fpr): Ditto.
13946         (floordf2, floordf2_fpr): Ditto.
13947         (floatdidf2, floatdidf2_fpr): Ditto.
13948         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
13949         (fmsubdf4_fpr): Ditto.
13950         (fnmadddf4_fpr_1): Ditto.
13951         (fnmadddf4_fpr_2): Ditto.
13952         (fnmsubdf4_fpr_1): Ditto.
13953         (fnmsubdf4_fpr_2): Ditto.
13954         (fixuns_truncdfdi2): Add expander for VSX support.
13955         (fix_truncdfdi2): Ditto.
13956         (fix_truncdfsi2): Ditto.
13957         (ftruncdf2): Ditto.
13958         (btruncsf2): Whitespace.
13959         (movdf_hardfloat32): Add support for VSX registers.
13960         (movdf_softfloat32): Ditto.
13961         (movdf_hardfloat64): Ditto.
13962         (movdf_hardfloat64_mfpgpr): Ditto.
13963         (movdf_softfloat64): Ditto.
13964         (movti splitters): Add check for vector registers supporting
13965         TImode in the future.
13966         (bpermd): Add power7 bpermd instruction.
13967
13968         * config/rs6000/altivec.h (vec_div): Define if VSX.
13969         (vec_mul): Ditto.
13970         (vec_msub): Ditto.
13971         (vec_nmadd): Ditto.
13972         (vec_nearbyint): Ditto.
13973         (vec_rint): Ditto.
13974         (vec_sqrt): Ditto.
13975         (all predicates): Use the generic builtin function, and not the V4SF
13976         specific function so that the predicates will work with VSX's V2DF.
13977         (vec_all_*): Ditto.
13978         (vec_any_*): Ditto.
13979
13980         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
13981         Document new VSX functions and types.
13982
13983         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
13984         switches.
13985
13986         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
13987         "wa", and "j" constraints.  Modify "v" to talk about Altivec
13988         instead of just vector.
13989
13990 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
13991
13992         PR debug/26475
13993         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
13994         location for phi arguments.
13995         (rewrite_update_phi_arguments): Find locations for reaching defs.
13996         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
13997         Add location to add_phi_arg calls.
13998         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
13999         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
14000         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
14001         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
14002         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
14003         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
14004         * tree-phinodes.c (make_phi_node): Initialize location.
14005         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
14006         (add_phi_arg): Add location parameter.
14007         (remove_phi_arg_num): Move location when moving phi argument.
14008         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
14009         location.
14010         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
14011         slpeel_update_phi_nodes_for_guard1,
14012         slpeel_update_phi_nodes_for_guard2,
14013         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
14014         vect_loop_versioning): Set locations.
14015         * tree-parloops.c (create_phi_for_local_result,
14016         transform_to_exit_first_loop, create_parallel_loop): Add locations.
14017         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
14018         * tree-vect-loop.c (get_initial_def_for_induction,
14019         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
14020         locations.
14021         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
14022         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
14023         (gimple_phi_arg_set_location): New.  Set locus.
14024         (gimple_phi_arg_has_location): New.  Check for locus.
14025         (redirect_edge_var_map_location): New.  Return locus from var_map.
14026         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
14027         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
14028         combining PHI arguments.
14029         (cond_store_replacement): Set location.
14030         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
14031         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
14032         scop_add_exit_phis_edge): Add locations.
14033         * tree-cfgcleanup.c (remove_forwarder_block,
14034         remove_forwarder_block_with_phi): Add locations.
14035         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
14036         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
14037         locations.
14038         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
14039         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
14040         flush_pending_stmts): Add source location.
14041         * lambda-code.c (perfect_nestify): Maintain location stack with argument
14042         stack to preserve locations.
14043         * tree-vect-stmts.c (vectorizable_load): Add location.
14044         * tree-inline.c (copy_phis_for_bb): Copy locus.
14045         (setup_one_parameter): Add call locus to inlined parameter stmts.
14046         (initialize_inlined_parameters): Pass in call location as parameter
14047         assignment locus.
14048         (tree_function_versioning): Pass location to setup_one_parameter.
14049         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
14050         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
14051         copy and edge lists.
14052         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
14053         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
14054         locus parameter and override the stmt default if provided.
14055         (new_elim_graph, clear_elim_graph, delete_elim_graph,
14056         elim_graph_add_edge, elim_graph_remove_succ_edge,
14057         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
14058         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
14059         eliminate_phi):  Add locus info in elimination graph for each edge and
14060         value copy.
14061         (insert_backedge_copies): Copy locus if present.
14062         * tree-flow.h (struct _edge_var_map): Add locus field.
14063         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
14064         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
14065         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
14066         locations.
14067         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
14068
14069 2009-07-30  Martin Jambor  <mjambor@suse.cz>
14070
14071         PR tree-optimization/40570
14072         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
14073         use inlining loops.
14074
14075 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
14076
14077         * ssa-loop-manip.c: Include langhooks.h.
14078         (rewrite_phi_with_iv): New.
14079         (rewrite_all_phi_nodes_with_iv): New.
14080         (canonicalize_loop_ivs): Move here from tree-parloops.c.
14081         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
14082         * tree-parloops.c (loop_parallel_p): Move out all conditions
14083         except dependency check.
14084         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
14085         (gen_parallel_loop): Call canonicalize_loop_ivs without
14086         reduction_list argument.
14087         (build_new_reduction): New.
14088         (gather_scalar_reductions): New.
14089         (try_get_loop_niter): New.
14090         (try_create_reduction_list): New.
14091         (parallleize_loops): Change the parallel conditions check.
14092         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
14093         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
14094
14095 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14096
14097         * opt-functions.awk (opt_args): Allow argument to be enclosed in
14098         curly braces.
14099         * doc/options.texi (Option properties):  Mention new quoting syntax.
14100
14101 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14102
14103         * config/alpha/alpha.c (alpha_start_function):
14104         Handle VMS_DEBUG_MAIN_POINTER
14105         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
14106         * doc/invoke.texi: Document -mdebug-main switch.
14107
14108 2009-07-29  Richard Henderson  <rth@redhat.com>
14109
14110         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
14111         (cgraph_create_edge_including_clones): Likewise.
14112         * tree-inline.c (copy_bb): Operate on the correct edges
14113         when updating the callgraph.
14114
14115 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14116
14117         * config/alpha/vms-cc.c: Deleted.
14118         * config/alpha/vms-ld.c: Deleted.
14119         * config/alpha/t-vms64: Moved to config/vms
14120         * config/alpha/vms-crt0-64.c: Moved to config/vms
14121         * config/alpha/vms-crt0.c: Moved to config/vms
14122         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
14123         * config/alpha/vms-psxcrt0.c: Moved to config/vms
14124         * config/alpha/xm-vms.h: Moved to config/vms
14125         * config/alpha/x-vms: Moved to config/vms
14126         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
14127         config/vms/t-vms.
14128         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
14129         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
14130         (version): Set.
14131         * config/vms/t-vms64: Moved here from config/alpha
14132         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
14133         (argc,argv,envp): Enforce 32bit malloc'ing.
14134         * config/vms/vms-psxcrt0-64.c: Likewise.
14135         * config/vms/vms-crt0.c: Moved here from config/alpha.
14136         * config/vms/vms-psxcrt0.c: Likewise.
14137         * config/vms/vms-crtl-64.h: New file.
14138         * config/vms/vms-crtl.h: New file.
14139         * config/vms/vms.opt: New file.
14140         * config/vms/xm-vms64.h: New file.
14141         * config/vms/xm-vms.h: Moved here from config/alpha.
14142         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
14143         Set.
14144         * config/vms/x-vms: Moved here from config/alpha.
14145         (version, VMS_EXTRA_PARTS): Moved to t-vms.
14146         (vms-ld.o, vms-cc.o): Removed.
14147         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
14148
14149 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14150
14151         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
14152         correct stack (obvious VMS fix).
14153
14154 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14155
14156         * dwarf2out.c (output_file_names): Output VMS style file name, size,
14157         date, version info if VMS_DEBUGGING_INFO defined.
14158         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
14159         size, date calculating code moved here.
14160
14161 2009-07-29  Paul Brook  <paul@codesourcery.com>
14162
14163         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
14164         do_push/do_pop.
14165
14166 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
14167
14168         PR target/40577
14169         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
14170         to DImode when generating insq_le insn.
14171
14172 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14173
14174         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
14175         New macro set for VMS_DEBUGGGING_INFO.
14176         (AT_string_form): Use it.
14177
14178 2009-07-28  DJ Delorie  <dj@redhat.com>
14179
14180         * config/mep/mep.c (vtext_section): New.
14181         (vftext_section): New.
14182         (ftext_section): New.
14183         (mep_select_section): Add support for functions.
14184         (mep_unique_section): Likewise.
14185         (mep_asm_init_sections): Likewise.
14186         (mep_encode_section_info): Remove it from here.
14187
14188         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
14189
14190 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
14191
14192         * tree.h (TREE_DEPRECATED): Document it is used for types too.
14193         (TYPE_VECTOR_OPAQUE): Use default_def_flag
14194
14195 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14196
14197         * dwarf2out.c (output_file_names): Test new macro
14198         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
14199         (add_comp_dir_attribute): Likewise.
14200
14201 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
14202
14203         * config/i386/mingw-w64.h (LINK_SPEC): Add
14204         separating space between commands.
14205
14206 2009-07-28  Jan Hubicka  <jh@suse.cz>
14207
14208         PR tree-optimization/40759
14209         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
14210         for renaming.
14211
14212 2009-07-27  DJ Delorie  <dj@redhat.com>
14213
14214         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
14215         types are dword-aligned.
14216         (mep_expand_va_start): Likewise.
14217
14218 2009-07-27  Olivier Hainque  <hainque@adacore.com>
14219             Douglas B Rupp  <rupp@gnat.com>
14220
14221         * convert.c (convert_to_pointer): Don't assume the target
14222         pointer type is POINTER_SIZE long. Fetch its precision instead.
14223
14224 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
14225
14226         * system.h (fopen): Undefine if macro.
14227
14228 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
14229
14230         * dwarf2out.c (output_cfi_p): Removed.
14231         (output_cfis): New function.
14232         (output_fde): New function, split from output_call_frame_info.
14233         (output_call_frame_info): Use it.
14234         (dwarf2out_switch_text_section): Use output_cfis.
14235
14236 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14237
14238         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
14239         TARGET_BI_ARCH is specified without enabling SJLJ.
14240         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
14241         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
14242
14243 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
14244
14245         * arm.md (negdi2): Use DImode if forcing a value into a register.
14246
14247 2009-07-26  Ira Rosen  <irar@il.ibm.com>
14248
14249         PR tree-optimization/40801
14250         * tree-vect-stmts.c (vectorizable_call): Get previous copy
14251         of vector operand from the previous copy of vector statement.
14252         Pass the correct definition type value to
14253         vect_get_vec_def_for_stmt_copy().
14254
14255 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14256
14257         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
14258         const char ** conversion.
14259
14260 2009-07-25 David Daney <ddaney@caviumnetworks.com>
14261
14262         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
14263         fancy_abort() if !ENABLE_ASSERT_CHECKING.
14264         (gcc_unreachable): Invoke __builtin_unreachable() if
14265         !ENABLE_ASSERT_CHECKING.
14266
14267 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14268
14269         PR rtl-optimization/40445
14270         * emit-rtl.c (next_nonnote_insn_bb): New function.
14271         * rtl.h (next_nonnote_insn_bb): Declare new function.
14272         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
14273         with no successors that is the successor of the ENTRY_BLOCK.
14274         Continue from the top after removing an empty fallthrough block.
14275         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
14276         of next_nonnote_insn.
14277
14278 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14279
14280         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
14281
14282 2009-07-25  Martin Jambor  <mjambor@suse.cz>
14283
14284         * c-common.c (c_common_attribute_table): New element for noclone.
14285         (handle_noclone_attribute): New function. Forward-declare.
14286         * tree-inline.c (tree_versionable_function_p): Check for noclone
14287         attribute.
14288         * doc/extend.texi (Labels as Values): Document need for noclone.
14289         (Function Attributes): Document noclone attribute.
14290
14291 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
14292
14293         PR rtl-optimization/34999
14294         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
14295         and dw_fde_switched_cold_to_hot fields.
14296         (output_cfi_p): New function.
14297         (output_call_frame_info): If fde->dw_fde_switched_sections,
14298         output 2 FDEs instead of one with corrupted header.
14299         (dwarf2out_do_cfi_startproc): New function.
14300         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
14301         and fde->dw_fde_switched_cold_to_hot.
14302         (dwarf2out_switch_text_section): Compute
14303         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
14304         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
14305         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
14306         Otherwise, compute fde->dw_fde_switch_cfi.
14307
14308 2009-07-24  Cary Coutant  <ccoutant@google.com>
14309
14310         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
14311
14312 2009-07-24  Cary Coutant  <ccoutant@google.com>
14313
14314         * cfghooks.c (split_block): Copy discriminator to new block.
14315         * tree-cfg.c (assign_discriminator): Check location of last
14316         instruction in block as well as first.
14317
14318 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
14319
14320         * config/i386/linux.c: Use fputs or putc instead of fprintf
14321         where appropriate.
14322         * config/i386/gas.h: Ditto.
14323         * config/i386/x86-64.h: Ditto.
14324         * config/i386/att.h: Ditto.
14325
14326 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14327
14328         * expmed.c (emit_store_flag): Use a recursive call to optimize the
14329         xor case.
14330
14331 2009-07-24  Martin Jambor  <mjambor@suse.cz>
14332
14333         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
14334         (ipa_push_func_to_list_1): Declare.
14335         (ipa_push_func_to_list): New function.
14336
14337         * ipa-prop.c (ipa_push_func_to_list_1): New function.
14338         (ipa_init_func_list): Call ipa_push_func_to_list_1.
14339         (ipa_push_func_to_list): Removed.
14340         (ipa_pop_func_from_list): Clear node_enqueued flag.
14341
14342 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14343
14344         * config/s390/s390.c (override_options): Default
14345         max-unrolled-insns to 100 for z10 tuning.
14346
14347 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
14348
14349         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
14350         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
14351         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
14352         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
14353         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
14354         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
14355         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
14356
14357 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14358
14359         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
14360         use default set in mingw32.h header.
14361         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
14362         64-bit /mingw/include path.
14363         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
14364         path.
14365
14366 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
14367
14368         PR rtl-optimization/40209
14369         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
14370
14371 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14372
14373         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
14374         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
14375         with the rest of string where appropriate.  Use fputs or putc
14376         instead of fprintf where appropriate.
14377
14378 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14379             Pat Haugen  <pthaugen@us.ibm.com>
14380             Revital Eres <ERES@il.ibm.com>
14381
14382         * config/rs6000/vector.md: New file.  Move most of the vector
14383         expander support here from altivec.md to allow for the VSX vector
14384         unit in the future.  Add support for secondary_reload patterns.
14385         Rewrite the patterns for vector comparison, and vector comparison
14386         predicate instructions so that the RTL expresses the desired
14387         behavior, instead of using unspec.
14388
14389         * config/rs6000/constraints.md ("f" constraint): Use
14390         rs6000_constraints to hold the precalculated register class.
14391         ("d" constraint): Ditto.
14392         ("wd" constraint): New constraint for VSX.
14393         ("wf" constraint): Ditto.
14394         ("ws" constraint): Ditto.
14395         ("wa" constraint): Ditto.
14396         ("wZ" constraint): Ditto.
14397         ("j" constraint): Ditto.
14398
14399         * config/rs6000/predicates.md (vsx_register_operand): New
14400         predicate for VSX.
14401         (vfloat_operand): New predicate for vector.md.
14402         (vint_operand): Ditto.
14403         (vlogical_operand): Ditto.
14404         (easy_fp_constant): If VSX, 0.0 is an easy constant.
14405         (easy_vector_constant): Add VSX support.
14406         (altivec_indexed_or_indirect_operand): New predicate for
14407         recognizing Altivec style memory references with AND -16.
14408
14409         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
14410         for vector secondary reload support.
14411         (rs6000_vector_reg_class): Delete, replacing it with
14412         rs6000_constraints.
14413         (rs6000_vsx_reg_class): Ditto.
14414         (rs6000_constraints): New array to hold the register classes of
14415         each of the register constraints that can vary at runtime.
14416         (builtin_mode_to_type): New static array for builtin function type
14417         creation.
14418         (builtin_hash_table): New static hash table for builtin function
14419         type creation.
14420         (TARGET_SECONDARY_RELOAD): Define target hook.
14421         (TARGET_IRA_COVER_CLASSES): Ditto.
14422         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
14423         registers are 128 bits if VSX memory reference instructions are used.
14424         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
14425         unit is being used.
14426         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
14427         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
14428         Print several of the scheduling related parameters.
14429         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
14430         rs6000_constraints instead of rs6000_vector_reg_class.  Move
14431         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
14432         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
14433         Altivec.  Add VSX support.  Setup for secondary reload support on
14434         Altivec/VSX registers.
14435         (rs6000_override_options): Make power7 set the scheduling groups
14436         like the power5.  Add support for new debug switches to override
14437         the scheduling defaults.  Temporarily disable -mcpu=power7 from
14438         setting -mvsx.  Add support for debug switches -malways-hint,
14439         -msched-groups, and -malign-branch-targets.
14440         (rs6000_buitlin_conversion): Add support for returning unsigned
14441         vector conversion functions to fix regressions due to stricter
14442         type checking.
14443         (rs6000_builtin_mul_widen_even): Ditto.
14444         (rs6000_builtin_mul_widen_odd): Ditto.
14445         (rs6000_builtin_vec_perm): Ditto.
14446         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
14447         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
14448         to zero a register.
14449         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
14450         generated upstream.
14451         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
14452         VSX types for bit operations.  Changes to accomidate vector.md.
14453         (bdesc_2arg): Ditto.
14454         (bdesc_1arg): Ditto.
14455         (struct builtin_description_predicates): Rewrite predicate
14456         handling so that RTL describes the operation, instead of passing
14457         the instruction to be used as a string argument.
14458         (bdesc_altivec_preds): Ditto.
14459         (altivec_expand_predicate_builtin): Ditto.
14460         (altivec_expand_builtin): Ditto.
14461         (rs6000_expand_ternop_builtin): Use a switch instead of an if
14462         statement for vsldoi support.
14463         (altivec_expand_ld_builtin): Change to use new names from vector.md.
14464         (altivec_expand_st_builtin): Ditto.
14465         (paired_expand_builtin): Whitespace changes.
14466         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
14467         builtin_mode_to_type table for secondary reload.  Call
14468         builtin_function_type to build random builtin functions.
14469         (altivec_init_builtins): Change to use builtin_function_type to
14470         create builtin function types dynamically as we need them.
14471         (builtin_hash_function): New support for hashing the tree types
14472         for builtin function as we need it, rather than trying to build
14473         all of the trees that we need.  Add initial preliminary VSX support.
14474         (builtin_function_type): Ditto.
14475         (builtin_function_eq): Ditto.
14476         (builtin_hash_struct): Ditto.
14477         (rs6000_init_builtins): Ditto.
14478         (rs6000_common_init_builtins): Ditto.
14479         (altivec_init_builtins): Ditto.
14480         (rs6000_common_init_builtins): Ditto.
14481         (enum reload_reg_type): New enum for simplifing reg classes.
14482         (rs6000_reload_register_type): Simplify register classes into GPR,
14483         Vector, and other registers.  Altivec and VSX addresses in reload.
14484         (rs6000_secondary_reload_inner): Ditto.
14485         (rs6000_ira_cover_classes): New target hook, that returns the
14486         appropriate cover classes, based on -mvsx being used or not.
14487         (rs6000_secondary_reload_class): Add VSX support.
14488         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
14489         (get_vsel_insn): Ditto.
14490         (rs6000_emit_vector_compare): Rewrite vector conditional support
14491         so that where we can, we use RTL operators, instead of blindly use
14492         UNSPEC.
14493         (rs6000_emit_vector_select): Ditto.
14494         (rs6000_emit_vector_cond_expr): Ditto.
14495         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
14496         (create_TOC_reference): Add -mdebug=addr support.
14497         (emit_frame_save): VSX loads/stores need register indexed addressing.
14498
14499         * config/rs6000/rs6000.md: Include vector.md.
14500
14501         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
14502
14503         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14504         support for V2DI, V2DF in logical, permute, select operations.
14505
14506         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
14507         switch for vsx/power7.
14508         (-mvsx-scalar-memory): Ditto.
14509         (-mvsx-align-128): Ditto.
14510         (-mallow-movmisalign): Ditto.
14511         (-mallow-df-permute): Ditto.
14512         (-msched-groups): Ditto.
14513         (-malways-hint): Ditto.
14514         (-malign-branch-targets): Ditto.
14515
14516         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
14517         hook instead.
14518         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
14519         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
14520         (rs6000_vector_reg_class): Delete.
14521         (rs6000_vsx_reg_class): Ditto.
14522         (enum rs6000_reg_class_enum): New enum for the constraints that
14523         vary based on target switches.
14524         (rs6000_constraints): New array to hold the register class for all
14525         of the register constraints that vary based on the switches used.
14526         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
14527         (enum rs6000_builtins): Add unsigned varients for the builtin
14528         declarations returned by target hooks for expanding multiplies,
14529         select, and permute operations.  Add VSX builtins.
14530         (enum rs6000_builtin_type_index): Add entries for VSX.
14531         (V2DI_type_node): Ditto.
14532         (V2DF_type_node): Ditto.
14533         (unsigned_V2DI_type_node): Ditto.
14534         (bool_long_type_node): Ditto.
14535         (intDI_type_internal_node): Ditto.
14536         (uintDI_type_internal_node): Ditto.
14537         (double_type_internal_node): Ditto.
14538
14539         * config/rs6000/altivec.md (whole file): Move all expanders to
14540         vector.md from altivec.md.  Rename insn matching functions to be
14541         altivec_foo.
14542         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
14543         (altivec_vcmp*): Ditto.
14544         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
14545         (VM): New iterator for moves that includes the VSX types.
14546         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
14547         (altivec_vperm_<mode>_uns): New, for unsigned types.
14548         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
14549         (altivec_eq<mode>): Ditto.
14550         (altivec_gt<mode>): Ditto.
14551         (altivec_gtu<mode>): Ditto.
14552         (altivec_eqv4sf): Ditto.
14553         (altivec_gev4sf): Ditto.
14554         (altivec_gtv4sf): Ditto.
14555         (altivec_vcmpbfp_p): Ditto.
14556
14557 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
14558
14559         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
14560         unsigned HWI.
14561
14562 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14563
14564         PR target/40832
14565         * config/i386/i386.c (output_387_ffreep): Rewrite to use
14566         ASM_SHORT instead of .word.
14567         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
14568         instead of .word in asm template.
14569
14570 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
14571
14572         PR target/37488
14573         * ira-lives.c (bb_has_abnormal_call_pred): New function.
14574         (process_bb_node_lives): Use it.
14575
14576         * ira.c (setup_cover_and_important_classes): Don't setup
14577         ira_important_class_nums.  Add cover classes to the end of
14578         important classes.
14579         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
14580         New.
14581         (find_reg_class_closure): Use reorder_important_classes.
14582
14583         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
14584
14585         * config/i386/i386.c (i386_ira_cover_classes): New function.
14586         (TARGET_IRA_COVER_CLASSES): Redefine.
14587
14588         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
14589         importance of order of cover classes in the array.
14590
14591 2009-07-22  Diego Novillo  <dnovillo@google.com>
14592
14593         * tree-pass.h (TDF_EH): Define.
14594         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
14595         contains TDF_EH, print the EH region number holding GS.
14596         * tree-dump.c (dump_options): Add "eh".
14597         * doc/invoke.texi: Document it.
14598
14599 2009-07-22  Doug Kwan  <dougkwan@google.com>
14600
14601         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
14602
14603 2009-07-22  Michael Matz  <matz@suse.de>
14604
14605         PR tree-optimization/35229
14606         PR tree-optimization/39300
14607
14608         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
14609         (inhibit_phi_insertion): New function.
14610         (insert_into_preds_of_block): Call it for REFERENCEs.
14611         (init_pre): Initialize and finalize scalar evolutions.
14612         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
14613
14614 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
14615
14616         * config/i386/predicates.md (zero_extended_scalar_load_operand):
14617         Use CONST_VECTOR_NUNITS to determine number of elements.
14618
14619 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
14620
14621         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
14622         (U, W): Constraints are now deprecated and will be removed if we
14623         run out of letters.
14624         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
14625         the file.
14626         ("prefetch"): Add the stcmh instruction for prefetching.
14627         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
14628         changes.
14629         (s390_short_displacement): Return always true if compiling for
14630         machines not providing the long displacement facility.
14631         (s390_mem_constraint): Support the new constraint letter Z.
14632         (s390_check_qrst_address): New function.
14633
14634 2009-07-21  DJ Delorie  <dj@redhat.com>
14635
14636         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
14637         alone too.
14638
14639 2009-07-21  Jason Merrill  <jason@redhat.com>
14640
14641         * c-common.c (max_tinst_depth): Increase default to 1024.
14642
14643 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14644
14645         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
14646         (vec_unpacku_float_lo_v4si): Ditto.
14647
14648 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14649
14650         PR target/40811
14651         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
14652         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
14653         (builtin_description): Add __builtin_ia32_cvtudq2ps.
14654         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
14655
14656 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
14657
14658         PR tree-optimization/40813
14659         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
14660         it.
14661
14662 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
14663
14664         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
14665         with a NOP_EXPR if needed.
14666
14667 2009-07-21  Paul Brook <paul@codesourcery.com>
14668
14669         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
14670         Terminate debug dump with newline.
14671
14672 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14673
14674         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
14675         Cast "1" to unsigned HOST_WIDE_INT.
14676         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
14677         deposit length to the maximum length - lsb.  Extend length if
14678         HOST_BITS_PER_WIDE_INT is 32.
14679
14680 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
14681
14682         * cgraph.h (constant_pool_htab): New function.
14683         (constant_descriptor_tree): Move from varasm.c.
14684         * varasm.c (constant_pool_htab): New function.
14685         (constant_descriptor_tree): Move to cgraph.h.
14686
14687 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
14688
14689         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
14690
14691 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
14692
14693         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
14694         $(VARRAY_H).
14695
14696 2009-07-20  Xinliang David Li  <davidxl@google.com>
14697
14698         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
14699
14700 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14701
14702         * config/mips/mips.md (move_type): Add arith.
14703         (type): Handle arith.
14704         (zero_extendsidi2): Rename this into ...
14705         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
14706         (zero_extendsidi2): New expander.
14707         (*zero_extendsidi2_dext): New pattern.
14708
14709 2009-07-20  Nick Clifton  <nickc@redhat.com>
14710
14711         * config.gcc (mips64-*-*): Add definition of tm_defines in order
14712         to set MIPS_ABI_DEFAULT.
14713         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
14714
14715 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
14716
14717         * tree-object-size.c (addr_object_size): Handle unions with
14718         array in it as last field of structs in __bos (, 1) as __bos (, 0).
14719
14720         PR tree-optimization/40792
14721         * tree.c (build_function_type_skip_args): Remove bogus assert.
14722
14723 2009-07-20  Jan Hubicka  <jh@suse.cz>
14724             Martin Jambor  <mjambor@suse.cz>
14725
14726         * cgraph.h (combined_args_to_skip): New field.
14727         * cgraph.c (cgraph_create_virtual_clone): Properly handle
14728         combined_args_to_skip and args_to_skip.
14729         * tree-inline.c (update_clone_info): New function.
14730         (tree_function_versioning): Call update_clone_info.
14731         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
14732         functions.
14733         (cgraph_materialize_all_clones): More extensive dumping, working
14734         with combined_args_to_skip rather than args_to_skip.
14735
14736 2009-07-20  Ira Rosen  <irar@il.ibm.com>
14737
14738         * tree-vectorizer.h (vectorizable_condition): Add parameters.
14739         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
14740         (get_initial_def_for_reduction): Likewise.
14741         (vectorizable_reduction): Skip the check of first operand in case
14742         of COND_EXPR. Add check that it is outer loop vectorization if
14743         nested cycle was detected. Call vectorizable_condition() for
14744         COND_EXPR. If reduction epilogue cannot be created do not fail for
14745         nested cycles (if it is not double reduction). Assert that there
14746         is only one type in the loop in case of COND_EXPR. Call
14747         vectorizable_condition() to vectorize COND_EXPR.
14748         * tree-vect-stmts.c (vectorizable_condition): Update comment.
14749         Add parameters. Allow nested cycles if called from
14750         vectorizable_reduction(). Use reduction vector variable if provided.
14751         (vect_analyze_stmt): Call vectorizable_reduction() before
14752         vectorizable_condition().
14753         (vect_transform_stmt): Update call to vectorizable_condition().
14754
14755 2009-07-20  Christian Bruel  <christian.bruel@st.com>
14756
14757         * config/sh/sh.opt (-mfmovd): Resurrect and document.
14758         * doc/invoke.texi (-mfmovd): Likewise.
14759         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
14760
14761 2009-07-20  Jan Hubicka  <jh@suse.cz>
14762
14763         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
14764         when handling SSA name.
14765
14766 2009-07-19  Jan Hubicka  <jh@suse.cz>
14767
14768         PR tree-optimization/40676
14769         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
14770         virtual PHIs in empty BBs.
14771
14772 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14773
14774         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
14775         re-expanded the compound use gen_lowpart instead to convert to the
14776         desired mode.
14777
14778 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14779
14780         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
14781         OUTER_CONST arguments.
14782         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
14783         the new wider mode will be masked off.
14784         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
14785
14786 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14787
14788         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
14789         high-order bits are zero.
14790
14791 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14792
14793         * combine.c (simplify_shift_const_1): Split code to determine
14794         shift_mode into ...
14795         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
14796         new bits shifted in are identical to the old sign bit.
14797
14798 2009-07-18  Richard Guenther  <rguenther@suse.de>
14799
14800         PR c/40787
14801         * gimplify.c (gimplify_call_expr): Reject code using results from
14802         functions returning void.
14803
14804 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
14805
14806         * doc/md.texi: Document the new PowerPC "es" constraint.
14807         Document that "m" can include automodified addresses on this target,
14808         and explain how %U must be used.  Extend the "Q" and "Z" documentation
14809         to suggest "es" as well as "m".
14810         * config/rs6000/constraints.md (es): New memory constraint.
14811         (Q, Z): Update strings to match new documentation.
14812
14813 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
14814
14815         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
14816         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
14817         * config/rs6000/predicates.md (volatile_mem_operand): Use
14818         offsettable_nonstrict_memref_p.
14819         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
14820         (*floatunssidf2_internal): Likewise.
14821         (*fix_truncdfsi2_internal): Likewise.
14822         (*fix_trunctfsi2_internal): Likewise.
14823
14824 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
14825
14826         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
14827         atmega32u2 devices.
14828         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14829
14830 2009-07-17  Richard Guenther  <rguenther@suse.de>
14831
14832         PR c/40401
14833         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
14834         (pass_warn_unused_result): Likewise.
14835         (TODO_set_props): Remove.
14836         * omp-low.c (diagnose_omp_structured_block_errors): Change to
14837         run as a pass.
14838         (pass_diagnose_omp_blocks): Define.
14839         * c-decl.c (pop_file_scope): Do not finalize the CU here.
14840         (c_gimple_diagnostics_recursively): Remove.
14841         (finish_function): Do not call it.
14842         (c_write_global_declarations): Continue after errors.
14843         Finalize the CU here.
14844         * c-gimplify.c (c_genericize): Do not gimplify here.
14845         * c-common.c (c_warn_unused_result): Move ...
14846         * tree-cfg.c (do_warn_unused_result): ... here.
14847         (run_warn_unused_result): New function.
14848         (gate_warn_unused_result): New function.
14849         (pass_warn_unused_result): New pass.
14850         * c-common.h (c_warn_unused_result): Remove.
14851         * flags.h (flag_warn_unused_result): Declare.
14852         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
14853         * opts.c (flag_warn_unused_result): Initialize to false.
14854         * toplev.c (compile_file): Add comment.
14855         * omp-low.c (create_omp_child_function): Do not register
14856         the function with the frontend.
14857         (diagnose_omp_structured_block_errors): Prepare to be
14858         called as optimization pass.
14859         (gate_diagnose_omp_blocks): New function.
14860         (pass_diagnose_omp_blocks): New pass.
14861         * cgraph.h (cgraph_optimize): Remove.
14862         (cgraph_analyze_function): Likewise.
14863         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
14864         * cgraphunit.c (cgraph_lower_function): Lower nested functions
14865         before their parents here.
14866         (cgraph_finalize_function): Not here.
14867         (cgraph_analyze_function): Gimplify functions here.
14868         (cgraph_finalize_compilation_unit): Continue after errors.
14869         Optimize the callgraph from here.
14870         (cgraph_optimize): Make static.
14871         * langhooks.c (write_global_declarations): Finalize the CU.
14872         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
14873         (gimplify_function_tree): Assert we gimplify only once.
14874         Set PROP_gimple_any property.
14875         * tree-nested.c (gimplify_all_functions): New function.
14876         (lower_nested_functions): Gimplify all nested functions.
14877         * gimple.h (diagnose_omp_structured_block_errors): Remove.
14878         * passes.c (init_optimization_passes): Add pass_warn_unused_result
14879         and pass_diagnose_omp_blocks after gimplification.  Do not
14880         set TODO_set_props on all_lowering_passes.
14881         (execute_one_pass): Do not handle TODO_set_props.
14882         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
14883         (gimplify.o): Add tree-pass.h dependency.
14884         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
14885         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
14886         (unsave_r): Likewise.
14887         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
14888         temporary variable.
14889
14890 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
14891
14892         * doc/service.texi (Service): Restore previously removed link,
14893         which isn't broken after all.
14894
14895 2009-07-17  Richard Guenther  <rguenther@suse.de>
14896
14897         PR tree-optimization/40321
14898         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
14899         PHI nodes to the maximal set.
14900         (make_values_for_phi): Add PHI arguments to the maximal set.
14901         (execute_pre): Dump PHI_GEN and the maximal set.
14902
14903 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
14904
14905         PR c++/40780
14906         * gimplify.c (gimplify_conversion): Don't change non-conversions into
14907         VIEW_CONVERT_EXPR.
14908
14909 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
14910
14911         * doc/extend.texi (Nested Functions): Replace broken link with
14912         textual reference.
14913         * doc/service.texi (Service): Remove broken link.
14914
14915 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
14916
14917         PR bootstrap/40781
14918         * builtins.c (expand_builtin_memcmp): Use loc instead of
14919         EXPR_LOCATION (exp).
14920         (expand_builtin_strncmp): Likewise.
14921
14922 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
14923             Manuel López-Ibáñez  <manu@gcc.gnu.org>
14924
14925         PR 40435
14926         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
14927         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
14928         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
14929         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
14930         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
14931         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
14932         tree-inline.c, c-common.c, c-common.h, gimple.c,
14933         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
14934         convert.c: Add location argument to fold_{unary,binary,ternary},
14935         fold_build[123], build_call_expr, build_size_arg,
14936         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
14937         fold_build1_initializer, fold_build2_initializer,
14938         fold_build3_initializer, fold_build_call_array,
14939         fold_build_call_array_initializer, fold_single_bit_test,
14940         omit_one_operand, omit_two_operands, invert_truthvalue,
14941         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
14942         combine_comparisons, fold_builtin_*, fold_call_expr,
14943         build_range_check, maybe_fold_offset_to_address, round_up,
14944         round_down.
14945
14946 2009-07-16  Jason Merrill  <jason@redhat.com>
14947
14948         PR libstdc++/37907
14949         * c-common.c (c_common_reswords): Add __is_standard_layout
14950         and __is_trivial.
14951         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
14952         * doc/implement-cxx.texi: New.
14953         * doc/gcc.texi: Include it.
14954
14955 2009-07-16  DJ Delorie  <dj@redhat.com>
14956
14957         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
14958         compares that may be indirectly affected by previous instructions.
14959
14960 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14961
14962         * builtins.c (do_mpc_arg2): New.
14963         (fold_builtin_2): Fold builtin cpow.
14964         * real.h (HAVE_mpc_pow): New.
14965
14966 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
14967
14968         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
14969         comparison to skip unprofitable schedule
14970
14971 2009-07-16  Simon Baldwin  <simonb@google.com>
14972
14973         * gcc.c (option_map): New flag -no-canonical-prefixes.
14974         * (display_help): Print help text for new flag.
14975         * (process_command): Move options translation and language specifics
14976         and handle new flag early.  Use it to set a function pointer to a
14977         prefix builder.  Replace make_relative_prefix calls with calls to
14978         the function pointed to.  Ignore new flag in regular options handling.
14979         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
14980
14981 2009-07-15  DJ Delorie  <dj@redhat.com>
14982
14983         * config/mep/mep.md (sibcall_internal): Change register to avoid
14984         argument registers.
14985         (sibcall_value_internal): Likewise.
14986
14987 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
14988
14989         PR rtl-optimization/40710
14990         * resource.c (mark_target_live_regs): Reset DF problem to LR.
14991
14992 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
14993
14994         * config/mips/mips.md (*extenddi_truncate<mode>,
14995         *extendsi_truncate<mode>): Change type attribute to move_type
14996         with shift_shift.  Split out code handling exts from here ...
14997         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
14998         pattern.
14999         (*extendhi_truncateqi): Change type attribute to move_type with
15000         shift_shift.  Split out code handling exts from here ...
15001         (*extendhi_truncateqi_exts): ... to this new pattern.
15002
15003 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
15004
15005         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
15006         instead of "and" with inverted sign bit mask value.  Use
15007         "nonimmediate_operand" for operand 1 and operand 2 predicate.
15008         Allocate registers only for operand 4 and operand 5.
15009
15010 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
15011
15012         PR middle-end/40747
15013         * fold-const.c (fold_cond_expr_with_comparison): When folding
15014         < and <= to MIN, make sure the MIN uses the same type as the
15015         comparison's operands.
15016
15017 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
15018
15019         * arm.md (ior_xor): New code iterator.
15020         (split for ior/xor with shift and zero-extend): New split pattern.
15021         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
15022
15023 2009-07-15  Richard Guenther  <rguenther@suse.de>
15024
15025         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
15026         offset member.
15027
15028 2009-07-15  Richard Guenther  <rguenther@suse.de>
15029
15030         PR middle-end/40753
15031         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
15032
15033 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15034
15035         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
15036         handle 2.6.30 kernel.
15037
15038 2009-07-15  DJ Delorie  <dj@redhat.com>
15039
15040         * config/mep/mep.md (sibcall_internal): Change register to allow
15041         for 24-bit addresses.
15042         (sibcall_value_internal): Likewise.
15043
15044 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15045
15046         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
15047         that are enabled/disabled by the flags introduced by a previous patch.
15048
15049 2009-07-14  DJ Delorie  <dj@redhat.com>
15050
15051         * config/mep/mep.md (sibcall_internal): Include non-toggling
15052         non-jmp case.
15053         (sibcall_value_internal): Likewise.
15054
15055 2009-07-14  Taras Glek  <tglek@mozilla.com>
15056             Rafael Espindola  <espindola@google.com>
15057
15058         * doc/sourcebuild.texi: Document install-plugin target.
15059         * configure.ac: Added install-plugin target to language makefiles.
15060         * configure: Regenerate.
15061         * Makefile.in (install-plugin): Install more headers,
15062         depend on lang.install-plugin.
15063
15064 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15065
15066         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
15067         translation.
15068
15069 2009-07-14  DJ Delorie  <dj@redhat.com>
15070
15071         * config/mep/mep.c (mep_vliw_jmp_match): New function.
15072         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
15073         * config/mep/mep.md (sibcall_internal): Change test from
15074         mep_vliw_mode_match to mep_vliw_jmp_match.
15075         (sibcall_value_internal): Likewise.
15076
15077 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
15078
15079         * config/i386/sse.md (copysign<mode>3): New expander.
15080         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
15081         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
15082         Use ix86_build_const_vector.
15083         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
15084         IX86_BUILTIN_CPYSGNPD.
15085         (builtin_description): Add __builtin_ia32_copysignps and
15086         __builtin_ia32_copysignpd.
15087         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
15088         and BUILT_IN_COPYSIGNF.
15089
15090 2009-07-13  Jason Merrill  <jason@redhat.com>
15091
15092         * builtins.c (can_trust_pointer_alignment): New fn.
15093         (get_pointer_alignment): Factor it out from here.
15094         * tree.h: Declare it.
15095
15096 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
15097
15098         * config/rs6000/predicates.md (offsettable_mem_operand): Test
15099         RTX_AUTOINC class.
15100
15101 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
15102
15103         PR debug/40705
15104         PR c++/403057
15105         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
15106
15107 2009-07-14  Richard Guenther  <rguenther@suse.de>
15108             Andrey Belevantsev <abel@ispras.ru>
15109
15110         PR middle-end/40745
15111         * cfgexpand.c (partition_stack_vars): Do not bother to update
15112         alias information when not optimizing.
15113
15114 2009-07-14  Richard Guenther  <rguenther@suse.de>
15115             Andrey Belevantsev <abel@ispras.ru>
15116
15117         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
15118         (pt_solution_set): Likewise.
15119         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
15120         * tree-ssa-structalias.c (pt_solution_set): New function.
15121         * final.c (rest_of_clean_state): Free SSA data structures.
15122         * print-rtl.c (print_decl_name): Remove.
15123         (print_mem_expr): Implement in terms of print_generic_expr.
15124         * alias.c (ao_ref_from_mem): New function.
15125         (rtx_refs_may_alias_p): Likewise.
15126         (true_dependence): Query alias-export info.
15127         (canon_true_dependence): Likewise.
15128         (write_dependence_p): Likewise.
15129         * tree-dfa.c (get_ref_base_and_extent): For void types leave
15130         size unknown.
15131         * emit-rtl.c (component_ref_for_mem_expr): Remove.
15132         (mem_expr_equal_p): Use operand_equal_p.
15133         (set_mem_attributes_minus_bitpos): Do not use
15134         component_ref_for_mem_expr.
15135         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
15136         (update_alias_info_with_stack_vars): Likewise.
15137         (partition_stack_vars): Call update_alias_info_with_stack_vars.
15138         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
15139         explicitly nor clear stmt operands.
15140         Free the decl-to-pointer map.
15141         * tree-optimize.c (execute_free_datastructures): Do not free
15142         SSA data structures here.
15143         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
15144         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
15145         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
15146         dependencies.
15147         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
15148
15149 2009-07-13  DJ Delorie  <dj@redhat.com>
15150
15151         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
15152         unrolling at the right iteration count.
15153
15154         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
15155         calculations.
15156
15157 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15158
15159         * haifa-sched.c (rank_for_schedule): Introduced flags to
15160         enable/disable individual scheduling heuristics.
15161         * common.opt: Introduced flags to enable/disable individual
15162         heuristics in the scheduler.
15163         * doc/invoke.texi: Introduced flags to enable/disable individual
15164         heuristics in the scheduler.
15165
15166 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
15167
15168         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
15169         config/i386/mingw-tls.c.
15170         * config/i386/mingw-tls.c: Removed.
15171
15172 2009-07-13  Ira Rosen  <irar@il.ibm.com>
15173
15174         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
15175         checks access only relevant statements.
15176         (vectorizable_reduction): Likewise.
15177
15178 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
15179
15180         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
15181         just for 32-bit case.
15182
15183 2009-07-12  Jan Hubicka  <jh@suse.cz>
15184
15185         PR tree-optimization/40585
15186         * except.c (expand_resx_expr): When there already is resume
15187         instruction, produce linked list.
15188         (build_post_landing_pads): Assert that resume is empty.
15189         (connect_post_landing_pads): Handle resume lists.
15190         (dump_eh_tree): Dump resume list.
15191
15192 2009-07-12  Ira Rosen  <irar@il.ibm.com>
15193
15194         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15195         with additional argument.
15196         * tree-vectorizer.h (enum vect_def_type): Add
15197         vect_double_reduction_def.
15198         (vect_is_simple_reduction): Add argument.
15199         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
15200         indentation.
15201         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
15202         vect_is_simple_reduction with additional argument.
15203         (vect_analyze_loop_operations): Handle exit phi nodes in case of
15204         double reduction.
15205         (reduction_code_for_scalar_code): Handle additional codes by
15206         returning ERROR_MARK for them. Fix comment and indentation.
15207         (vect_is_simple_reduction): Fix comment, add argument to specify
15208         double reduction. Detect double reduction.
15209         (get_initial_def_for_induction): Fix indentation.
15210         (get_initial_def_for_reduction): Fix comment and indentation.
15211         Handle double reduction. Create initial definitions that do not
15212         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
15213         (vect_create_epilog_for_reduction): Fix comment, add argument to
15214         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
15215         epilogue result extraction. Create double reduction phi node and
15216         replace relevant uses.
15217         (vectorizable_reduction): Call vect_is_simple_reduction with
15218         additional argument. Fix indentation. Update epilogue code treatment
15219         according to the changes in reduction_code_for_scalar_code. Check
15220         for double reduction. Call vect_create_epilog_for_reduction with
15221         additional argument.
15222         * tree-vect-stmts.c (process_use): Handle double reduction, update
15223         documentation.
15224         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
15225         (vect_get_vec_def_for_operand): Likewise.
15226
15227 2009-07-12  Danny Smith  <dansmister@gmail.com>
15228
15229         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
15230         dllexport if !TREE_PUBLIC.
15231         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
15232
15233 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
15234
15235         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
15236         (avr_extra_arch_macro) Remove declatation.
15237         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
15238         (avr_extra_arch_macro) Declare as static.
15239         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
15240
15241 2009-07-11  Jan Hubicka  <jh@suse.cz>
15242
15243         PR middle-end/48388
15244         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
15245
15246 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
15247
15248         PR debug/40713
15249         * dwarf2out.c (dw_fde_struct): Add in_std_section and
15250         cold_in_std_section bits.
15251         (dwarf2out_begin_prologue): Initialize them.
15252         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
15253         if already covered by text_section or cold_text_section range.
15254
15255         PR rtl-optimization/40667
15256         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
15257         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
15258         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
15259         * config/i386/i386.c (ix86_minimum_alignment): New function.
15260         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
15261         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
15262         * emit-rtl.c (gen_reg_rtx): Likewise.
15263         * function.c (assign_parms): Likewise.  If nominal_type needs
15264         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
15265         rather than passed_type's alignment.
15266
15267         PR target/40668
15268         * function.c (assign_parm_setup_stack): Adjust
15269         MEM_OFFSET (data->stack_parm) if promoted_mode is different
15270         from nominal_mode on big endian.
15271
15272 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
15273
15274         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
15275
15276 2009-07-10  DJ Delorie  <dj@redhat.com>
15277
15278         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
15279
15280 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
15281
15282         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
15283         attribute.
15284         (thumb2_cbnz): Likewise.
15285
15286 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
15287
15288         PR target/39079
15289         * config.gcc (supported_defaults): Add synci.
15290         (with_synci): Add validation.
15291         (all_defaults): Add synci.
15292         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
15293         ISA_HAS_SYNCI.
15294         (synci): Same.
15295         * config/mips/mips.opt (msynci): New option.
15296         * config/mips/mips.c (mips_override_options): Warn on use of
15297         -msynci for targets that do now support it.
15298         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15299         msynci.
15300         * gcc/doc/invoke.texi (-msynci): Document the new option.
15301         * doc/install.texi (--with-synci): Document the new option.
15302
15303 2009-07-10  Richard Guenther  <rguenther@suse.de>
15304
15305         PR tree-optimization/40496
15306         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
15307         the PHI result with a compatible type.
15308
15309 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15310
15311         PR 25509
15312         PR 40614
15313         * c.opt (Wunused-result): New.
15314         * doc/invoke.texi: Document it.
15315         * c-common.c (c_warn_unused_result): Use it.
15316
15317 2009-07-09  DJ Delorie  <dj@redhat.com>
15318
15319         * targhooks.c (default_target_can_inline_p): Rename from
15320         default_target_option_can_inline_p.
15321         * targhooks.h (default_target_can_inline_p): Likewise.
15322         * target-def.h (TARGET_CAN_INLINE_P): Rename from
15323         TARGET_OPTION_CAN_INLINE_P.
15324         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
15325         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
15326         (mep_target_can_inline_p): Rename from
15327         mep_target_option_can_inline_p.
15328
15329         PR target/40626
15330         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
15331         registers used to pass vectors.
15332
15333         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
15334
15335 2009-07-09  Tom Tromey  <tromey@redhat.com>
15336
15337         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
15338         * config/mmix/mmix.c: Include dwarf2.h.
15339         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
15340         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
15341         * config/sh/sh.c: Include dwarf2.h.
15342         * config/i386/i386.c: Include dwarf2.h.
15343         * Makefile.in (DWARF2_H): Remove 'elf'.
15344         * except.c: Include dwarf2.h.
15345         * unwind-dw2.c: Include dwarf2.h.
15346         * dwarf2out.c: Include dwarf2.h.
15347         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
15348         * unwind-dw2-fde.c: Include dwarf2.h.
15349         * dwarf2asm.c: Include dwarf2.h.
15350
15351 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15352
15353         * haifa-sched.c (insn_finishes_cycle_p): New static function.
15354         (max_issue): Use it.
15355         * sched-int.h (struct sched_info: insn_finishes_block_p): New
15356         scheduler hook.
15357         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
15358         (region_sched_info): Update.
15359         * sched-ebb.c (ebb_sched_info): Update.
15360         * modulo-sched.c (sms_sched_info): Update.
15361         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
15362
15363 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15364
15365         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
15366
15367 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
15368
15369         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
15370
15371 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
15372
15373         PR middle-end/40692
15374         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
15375         arg1 with arg01 if arg1 is already INTEGER_CST.
15376
15377 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15378
15379         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
15380         Transform (and (truncate)) into (truncate (and)).
15381
15382 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15383
15384         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
15385         creating LHS paradoxical subregs.  Fix surrounding returns to
15386         use NULL_RTX rather than 0.
15387
15388 2009-07-08  DJ Delorie  <dj@redhat.com>
15389
15390         * config/mep/mep.c (mep_option_can_inline_p): New.
15391         (TARGET_OPTION_CAN_INLINE_P): Define.
15392
15393 2009-07-08  Mark Wielaard  <mjw@redhat.com>
15394
15395         PR debug/40659
15396         * dwarf2out.c (add_data_member_location_attribute): When we have
15397         only a constant offset don't emit a new location description using
15398         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
15399         dwarf_version > 2.
15400
15401 2009-07-08  Richard Henderson  <rth@redhat.com>
15402
15403         PR target/38900
15404         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
15405         (enum reg_class): Add CLOBBERED_REGS.
15406         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
15407         * config/i386/i386.c (ix86_conditional_register_usage): Moved
15408         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
15409         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
15410         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
15411         force 64-bit sibcalls into R11.
15412         * config/i386/constraints.md (U): New constraint.
15413         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
15414         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
15415         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
15416
15417 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
15418
15419         * basic-block.h (dump_regset, debug_regset): Remove duplicate
15420         prototypes.
15421         * c-objc-common.h (c_initialize_diagnostics): Ditto.
15422         * ebitmap.h (dump_ebitmap): Ditto.
15423         * optabs.h (optab_libfunc): Ditto.
15424         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
15425         * tree-flow.h (vect_can_force_dr_alignment_p,
15426         get_vectype_for_scalar_type): Ditto.
15427         (vectorize_loops): Move prototype to ...
15428         * tree-vectorizer.h: ... here. Also, adjust comment.
15429         (vect_set_verbosity_level): Remove duplicate prototype.
15430         * tree-ssa-loop.c: Include tree-vectorizer.h.
15431         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
15432
15433 2009-07-08  Nick Clifton  <nickc@redhat.com>
15434
15435         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
15436         forward slash.
15437
15438 2009-07-08  DJ Delorie  <dj@redhat.com>
15439
15440         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
15441         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
15442         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
15443         written to.
15444         * config/mep/intrinsics.md: Regenerated.
15445         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
15446         registers when asm() or calls are detected.
15447
15448 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15449
15450         PR c++/31246
15451         * gimplify.c (gimplify_expr): Propagate no_warning flag when
15452         gimplifying.
15453         * gimple (gimple_build_call_from_tree): Likewise.
15454         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
15455         no_warning flag before warning.
15456
15457 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15458
15459         * tree.c (set_expr_locus): Remove.
15460         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
15461         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
15462         EXPR_LOCATION.
15463         * gimplify.c (internal_get_tmp_var): Likewise.
15464         (gimplify_call_expr): Likewise.
15465         (gimplify_one_sizepos): Likewise.
15466
15467 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
15468
15469         PR debug/40666
15470         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
15471         to variables for debugging purposes.
15472
15473 2009-06-23  Mark Loeser  <mark@halcy0n.com>
15474
15475         PR build/40010
15476         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
15477
15478 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15479
15480         * pretty-print.c (pp_base_format): Remove %J.
15481         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15482         gcc_cxxdiag_char_table): Likewise.
15483         (init_dynamic_diag_info): Likewise.
15484
15485 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15486
15487         * pretty-print.c (pp_base_format): Remove %H.
15488         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15489         gcc_cxxdiag_char_table): Likewise.
15490         (init_dynamic_diag_info): Likewise.
15491         * config/mep/mep.c (mep_select_section): Likewise.
15492
15493 2009-07-07  Duncan Sands  <baldrick@free.fr>
15494
15495         * final.c (pass_clean_state): Give the pass a name.
15496         * passes.c (pass_rest_of_compilation): Likewise.
15497         * tree-optimize.c (pass_all_optimizations): Likewise.
15498
15499 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15500
15501         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
15502         an extra 'decl' for error_at.
15503
15504 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
15505
15506         PR middle-end/40669
15507         * tree-tailcall.c (adjust_return_value_with_ops,
15508         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
15509         if it has complex or vector type.
15510
15511 2009-07-07  Olivier Hainque  <hainque@adacore.com>
15512
15513         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
15514         pthread symbols.
15515
15516 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
15517
15518         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
15519
15520 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15521
15522         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
15523         * c-decl.c: Likewise.
15524         * function.c: Likewise.
15525         * varasm.c: Likewise.
15526         * tree-ssa.c: Likewise.
15527         * c-common.c: Likewise.
15528         * tree-cfg.c: Likewise.
15529         * config/spu/spu.c: Likewise.
15530         * config/ia64/ia64.c: Likewise.
15531         * config/v850/v850.c: Likewise.
15532
15533 2009-07-06  DJ Delorie  <dj@redhat.com>
15534
15535         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
15536         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
15537         unspecified accesses to control registers.
15538         * config/mep/intrinsics.md: Regenerate.
15539         * config/mep/intrinsics.h: Regenerate.
15540         * config/mep/mep-intrin.h: Regenerate.
15541
15542 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15543
15544         * c-lex.c: Replace %H by an explicit location. Update all calls.
15545         * c-common.c: Likewise.
15546         * c-decl.c: Likewise.
15547         * c-typeck.c: Likewise.
15548         * fold-const.c: Likewise.
15549         * gimplify.c: Likewise.
15550         * stmt.c: Likewise.
15551         * tree-cfg.c: Likewise.
15552         * tree-ssa-loop-niter.c: Likewise.
15553         * tree-vrp.c: Likewise.
15554         * value-prof.c: Likewise.
15555
15556 2009-07-06  Diego Novillo  <dnovillo@google.com>
15557
15558         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
15559         if it has one.  Handle cases where VAR does not have an
15560         annotation or cfun is NULL.
15561
15562 2009-07-06  Diego Novillo  <dnovillo@google.com>
15563
15564         * tree.c: Include debug.h.
15565         (initialize_tree_contains_struct): New.
15566         (init_ttree): Call it.
15567         (tree_node_structure_for_code): Factor out of ...
15568         (tree_node_structure): ... here.
15569         * treestruct.def (TS_PHI_NODE): Remove.
15570         (TS_GIMPLE_STATEMENT): Remove.
15571
15572 2009-07-06  Diego Novillo  <dnovillo@google.com>
15573
15574         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
15575         (debug_tree_chain): Handle cycles.
15576
15577 2009-07-06  Nick Clifton  <nickc@redhat.com>
15578             DJ Delorie  <dj@redhat.com>
15579
15580         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15581         __FMOVD_ENABLED__ is defined.
15582         * config/sh/sh.h
15583         (TARGET_FMOVD): Provide a default definition.
15584         (MASK_FMOVD): Likewise.
15585         (TARGET_CPU_CPP_BUILTINS): Define
15586         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15587         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15588         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
15589         (split for DF load from memory into register): Also handle
15590         MEMs which consist of REG+DISP addressing.
15591         (split for DF store from register to memory): Likewise.
15592         (movsf_ie): Always use single fp_mode.
15593         * config/sh/sh.c (sh_override_options): Do not automatically
15594         enable TARGET_MOVD for the SH2A when supporting doubles - leave
15595         that to the -mfmovd command line switch.
15596         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
15597         (fldi_ok): Always allow.
15598         * config/sh/sh.opt (mfmovd): Remove this switch.
15599         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15600
15601 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
15602             Kaz Kojima  <kkojima@gcc.gnu.org>
15603
15604         PR rtl-optimization/30807
15605         * postreload.c (reload_combine): For every new use of REG_SUM,
15606         record the use of BASE.
15607
15608 2009-07-06  Jan Hubicka  <jh@suse.cz>
15609
15610         * params.def: Revert my accidental commit at 2009-06-30.
15611
15612 2009-07-04  Ian Lance Taylor  <iant@google.com>
15613
15614         PR target/40636
15615         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
15616         EXPORTED_CONST.
15617         (mingw_format_attribute_overrides): Likewise.
15618
15619 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
15620
15621         PR debug/40596
15622         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
15623         don't check cfa.reg.  Instead of cfa.indirect use
15624         fde && fde->drap_reg != INVALID_REGNUM test.
15625
15626 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15627
15628         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
15629
15630 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
15631
15632         PR target/40587
15633         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
15634
15635 2009-07-03  Richard Guenther  <rguenther@suse.de>
15636
15637         PR tree-optimization/40640
15638         * tree-switch-conversion.c (build_arrays): Perform arithmetic
15639         in original type.
15640
15641 2009-07-03  Jan Hubicka  <jh@suse.cz>
15642
15643         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
15644         for size, reduce amount of inlining.
15645
15646 2009-07-03  Richard Guenther  <rguenther@suse.de>
15647
15648         PR middle-end/34163
15649         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
15650         if t +- x is known to not overflow and the conversion widens the
15651         operation.
15652         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
15653
15654 2009-07-03  Jan Hubicka  <jh@suse.cz>
15655
15656         * ipa-pure-const.c (analyze): Update loop optimizer init.
15657         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
15658         try_remove_empty_loop, remove_empty_loops): Remove.
15659         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
15660         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
15661         to mark regular loops as neccesary.
15662         (degenerate_phi_p): New function.
15663         (propagate_necessity, remove_dead_phis): Use it.
15664         (forward_edge_to_pdom): Likewise.
15665         (eliminate_unnecessary_stmts): Take care to remove uses of results of
15666         virtual PHI nodes that became unreachable.
15667         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
15668         * tree-flow.h (remove_empty_loops): Remove.
15669         * passes.c (init_optimization_passes): Remove.
15670
15671 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
15672
15673         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
15674         can_create_pseudo_p.
15675         (*fix_trunc<mode>_i387_1): Ditto.
15676         (*floathi<mode>2_1): Ditto.
15677         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
15678         (*fistdi2_1): Ditto.
15679         (*fist<mode>2_1): Ditto.
15680         (frndintxf2_floor): Ditto.
15681         (*fist<mode>2_floor_1): Ditto.
15682         (frndintxf2_ceil): Ditto.
15683         (*fist<mode>2_ceil_1): Ditto.
15684         (frndintxf2_trunc): Ditto.
15685         (frndintxf2_mask_pm): Ditto.
15686         (fxam<mode>2_i387_with_temp): Ditto.
15687         * config/i386/sse.md (mulv16qi3): Ditto.
15688         (*sse2_mulv4si3): Ditto.
15689         (mulv2di3): Ditto.
15690         (sse4_2_pcmpestr): Ditto.
15691         (sse4_2_pcmpistr): Ditto.
15692
15693 2009-07-03  Jan Hubicka  <jh@suse.cz>
15694
15695         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
15696         (mark_stmt_necessary): Set it.
15697         (mark_operand_necessary): Set it.
15698         (mark_control_dependent_edges_necessary): Set it.
15699         (mark_virtual_phi_result_for_renaming): New function.
15700         (get_live_post_dom): New function.
15701         (forward_edge_to_pdom): New function.
15702         (remove_dead_stmt): Fix handling of control dependences.
15703         (tree_dce_init): Init new bitmap.
15704         (tree_dce_done): Free it.
15705
15706 2009-07-02  Richard Guenther  <rguenther@suse.de>
15707
15708         PR bootstrap/40617
15709         * tree-ssa-structalias.c (new_var_info): Initialize
15710         is_restrict_var.
15711
15712 2009-07-02  Jan Hubicka  <jh@suse.cz>
15713
15714         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
15715         local.
15716
15717 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
15718
15719         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
15720         instead of recomputing it.  Adjust calls.
15721         (emit_store_flag): Adjust recursive calls.
15722
15723 2009-07-02  Richard Guenther  <rguenther@suse.de>
15724
15725         * tree-ssa-live.c (remove_unused_locals): Do not remove
15726         heap variables.
15727         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
15728         of DECL_EXTERNAL for HEAP variables.
15729         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
15730         HEAP variables.  Do not adjust RESTRICT vars.
15731         (find_what_var_points_to): Nobody cares if something
15732         points to READONLY.
15733
15734 2009-07-02  Ben Elliston  <bje@au.ibm.com>
15735
15736         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
15737         pc_low and pc_high declarations to the top of the function.
15738
15739 2009-07-01  DJ Delorie  <dj@redhat.com>
15740
15741         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
15742         registers as fixed.
15743         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
15744         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
15745         unspecified accesses to control registers.
15746         * config/mep/intrinsics.md: Regenerate.
15747         * config/mep/intrinsics.h: Regenerate.
15748         * config/mep/mep-intrin.h: Regenerate.
15749
15750 2009-07-01  Anthony Green  <green@moxielogic.com>
15751
15752         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
15753         instruction when possible.
15754         (moxie_expand_prologue): Ditto.  Also, save an instruction and
15755         some complexity by popping off of $r12 instead of $sp.
15756         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
15757         operands.
15758
15759 2009-07-01  Richard Henderson  <rth@redhat.com>
15760
15761         PR bootstrap/40347
15762         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
15763         contained no insns, reposition note before last insn.
15764
15765 2009-07-01  Richard Henderson  <rth@redhat.com>
15766
15767         PR debug/40431
15768         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
15769         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
15770
15771 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
15772
15773         PR bootstrap/40558
15774         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
15775         darwin9 for printing reg addresses with %y.
15776
15777 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
15778
15779         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
15780         truncation from operands in binary operations.
15781
15782 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
15783
15784         Revert:
15785         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
15786         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
15787         subreg of op0 to the original op0.
15788
15789         * expmed.c (store_bit_field_1): Use a temporary as the destination
15790         instead of a paradoxical subreg when we need to truncate the result.
15791
15792 2009-07-01  DJ Delorie  <dj@redhat.com>
15793
15794         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
15795         names to VLIW variants.
15796         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
15797         * config/mep/intrinsics.md: Regenerate.
15798         * config/mep/intrinsics.h: Regenerate.
15799         * config/mep/mep-intrin.h: Regenerate.
15800
15801 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
15802
15803         PR debug/40462
15804         * jump.c (returnjump_p): Revert last patch.
15805         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
15806
15807 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15808
15809         PR target/40575
15810         * pa.md (casesi32p): Use jump table label to determine the offset
15811         of the jump table.
15812         (casesi64p): Likewise.
15813
15814         * pa.c (forward_branch_p): Return bool type.  Use instruction
15815         addresses when available.  Assert that INSN has a jump label.
15816         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
15817         have a jump label.
15818
15819 2009-07-01  Richard Guenther  <rguenther@suse.de>
15820
15821         PR tree-optimization/19831
15822         * tree-ssa-dce.c (propagate_necessity): Calls to functions
15823         that only act as barriers do not make any previous stores necessary.
15824         * tree-ssa-structalias.c (handle_lhs_call): Delay making
15825         HEAP variables global, do not add a constraint from nonlocal.
15826         (find_func_aliases): Handle escapes through return statements.
15827         (compute_points_to_sets): Make escaped HEAP variables global.
15828
15829 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
15830
15831         PR bootstrap/40597
15832         * expmed.c (emit_store_flag): Perform a conversion if necessary,
15833         after reducing a DImode cstore to SImode.
15834
15835 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
15836
15837         * expr.c (expand_expr_real_1): Reinstate fallthrough to
15838         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
15839
15840 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
15841
15842         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
15843         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
15844         to 0.
15845         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
15846         and umod_optab if TARGET_BSD_DIVMOD.
15847         * config/vax/lib1funcs.asm: New file.
15848         * config/vax/t-linux: New file.
15849         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
15850
15851 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
15852
15853         PR c++/40566
15854         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
15855         to type arguments that have void type.
15856
15857         PR debug/40573
15858         * dwarf2out.c (gen_formal_parameter_die): Call
15859         equate_decl_number_to_die if node is different from origin.
15860
15861 2009-06-30  Anthony Green  <green@moxielogic.com>
15862
15863         Clean up moxie port for --enable-build-with-cxx.
15864         * config/moxie/moxie.c (moxie_function_value): First two
15865         parameters are const_tree, not tree.
15866         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
15867         (REG_CLASS_NAMES): Ditto.
15868         (REGNO_REG_CLASS): Ditto.
15869         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
15870         (moxie_function_value): Fix constyness of arguments.
15871
15872 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15873
15874         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
15875         finalize_size_functions before further processing.
15876         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
15877         (variable_size): Call self_referential_size on size expressions
15878         that contain a PLACEHOLDER_EXPR.
15879         (size_functions): New static variable.
15880         (copy_self_referential_tree_r): New static function.
15881         (self_referential_size): Likewise.
15882         (finalize_size_functions): New global function.
15883         * tree.c: Include tree-inline.h.
15884         (push_without_duplicates): New static function.
15885         (find_placeholder_in_expr): New global function.
15886         (substitute_in_expr) <tcc_declaration>: Return the replacement object
15887         on equality.
15888         <tcc_expression>: Likewise.
15889         <tcc_vl_exp>: If the replacement object is a constant, try to inline
15890         the call in the expression.
15891         * tree.h (finalize_size_functions): Declare.
15892         (find_placeholder_in_expr): Likewise.
15893         (FIND_PLACEHOLDER_IN_EXPR): New macro.
15894         (substitute_placeholder_in_expr): Update comment.
15895         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
15896         is true.
15897         (copy_tree_body_r): Likewise.
15898         (copy_tree_body): New static function.
15899         (maybe_inline_call_in_expr): New global function.
15900         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
15901         (maybe_inline_call_in_expr): Declare.
15902         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
15903         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
15904         GIMPLE_H.
15905
15906 2009-06-30  Richard Guenther  <rguenther@suse.de>
15907
15908         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
15909         continue walking.
15910         (propagate_necessity): Do not mark reaching defs of stores
15911         as necessary.
15912
15913 2009-06-30  Jan Hubicka  <jh@suse.cz>
15914
15915         * cfgloopanal.c (check_irred): Move into ...
15916         (mark_irreducible_loops): ... here; return true if ireducible
15917         loops was found.
15918         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
15919         (analyze_function): Try to prove loop finiteness.
15920         * cfgloop.h (mark_irreducible_loops): Update prototype.
15921         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
15922
15923 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
15924
15925         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
15926
15927 2009-06-30  Ira Rosen  <irar@il.ibm.com>
15928
15929         PR tree-optimization/40542
15930         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
15931         types.
15932
15933 2009-06-30  Martin Jambor  <mjambor@suse.cz>
15934
15935         PR tree-optimization/40582
15936         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
15937         than useless_type_conversion_p.
15938         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
15939         proper place.
15940
15941 2009-06-30  Martin Jambor  <mjambor@suse.cz>
15942
15943         PR middle-end/40554
15944         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
15945
15946 2009-06-30  Richard Guenther  <rguenther@suse.de>
15947
15948         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
15949         use ao_ref references.
15950         (walk_aliased_vdefs): Likewise.
15951         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
15952         * tree-ssa-dce.c (struct ref_data): Remove.
15953         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
15954         (mark_aliased_reaching_defs_necessary): Adjust.
15955         (mark_all_reaching_defs_necessary_1): Likewise.
15956
15957 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
15958
15959         PR boostrap/40597
15960         * expmed.c (emit_cstore): New name of emit_store_flag_1.
15961         (emit_store_flag_1): Extract from emit_store_flag, adjust
15962         calls to (what now is) emit_cstore.
15963         (emit_store_flag): Call emit_store_flag_1 and also use it
15964         for what used to be recursive calls.
15965
15966 2009-06-30  Wei Guozhi  <carrot@google.com>
15967
15968         PR/40416
15969         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
15970         if the target bb post dominates from bb.
15971         * config/i386/i386.c (memory_address_length): Check existence of base
15972         register before using it.
15973
15974 2009-06-30  Nick Clifton  <nickc@redhat.com>
15975             DJ Delorie  <dj@redhat.com>
15976
15977         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15978         __FMOVD_ENABLED__ is defined.
15979         * config/sh/sh.h
15980         (TARGET_FMOVD): Provide a default definition.
15981         (MASK_FMOVD): Likewise.
15982         (TARGET_CPU_CPP_BUILTINS): Define
15983         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15984         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15985         two fmov instructions depending upon whether TARGET_FMOVD is
15986         enabled.
15987         (split for DF load from memory into register): Also handle
15988         MEMs which consist of REG+DISP addressing.
15989         (split for DF store from register to memory): Likewise.
15990         * config/sh/sh.opt (mfmovd): Remove this switch.
15991         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15992         * config/sh/sh.c (sh_override_options): Do not automatically
15993         enable TARGET_MOVD for the SH2A when supporting doubles - leave
15994         that to the -mfmovd command line switch.
15995
15996         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
15997         the SH4 and SH4A.
15998         (fldi_ok): Always allow.
15999         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
16000
16001 2009-06-29  DJ Delorie  <dj@redhat.com>
16002
16003         * doc/install.texi (mep-x-elf): Correct chip's full name.
16004
16005 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
16006
16007         * doc/extend.texi: Fix typo.
16008
16009 2009-06-29  Tom Tromey  <tromey@redhat.com>
16010
16011         * dwarf2.h: Remove.
16012         * Makefile.in (DWARF2_H): New variable.
16013         (except.o): Use it.
16014         (dwarf2out.o): Likewise.
16015         (dwarf2asm.o): Likewise.
16016         * config/i386/t-i386: Use DWARF2_H.
16017         * except.c: Include elf/dwarf2.h.
16018         * unwind-dw2.c: Include elf/dwarf2.h.
16019         * dwarf2out.c: Include elf/dwarf2.h.
16020         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
16021         <dtprel>: New field.
16022         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
16023         (size_of_loc_descr): Likewise.
16024         (output_loc_operands_raw): Likewise.
16025         (output_loc_operands): Handle new dtprel field.
16026         (loc_checksum): Update.
16027         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
16028         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
16029         * unwind-dw2-fde.c: Include elf/dwarf2.h.
16030         * dwarf2asm.c: Include elf/dwarf2.h.
16031         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
16032         * config/mmix/mmix.c: Include elf/dwarf2.h.
16033         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
16034         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
16035         * config/sh/sh.c: Include elf/dwarf2.h.
16036         * config/i386/i386.c: Include elf/dwarf2.h.
16037
16038 2009-06-29  DJ Delorie  <dj@redhat.com>
16039
16040         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
16041
16042         * doc/extend.texi: Add MeP attributes and pragmas.
16043         * doc/invoke.text: Add MeP Options.
16044         * doc/contrib.texi: Add MeP contribution.
16045         * doc/md.texi: Add MeP constraints.
16046         * doc/install.texi: Add MeP target.
16047
16048 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
16049
16050         * target.h (struct gcc_target): Add frame_pointer_required field.
16051         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
16052         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
16053         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
16054         hook.
16055         * reload1.c (update_eliminables): (Ditto.).
16056         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
16057         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
16058         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
16059
16060         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
16061
16062         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
16063         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16064         (arm_frame_pointer_required): New function.
16065
16066         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
16067         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16068         (avr_frame_pointer_required_p): Declare as static.
16069         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
16070
16071         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
16072         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16073         (bfin_frame_pointer_required): Make as static, change return type
16074         to bool.
16075         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
16076
16077         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
16078         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16079         (cris_frame_pointer_required): New function.
16080
16081         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
16082
16083         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
16084         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16085         (fr30_frame_pointer_required): New function.
16086
16087         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
16088         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16089         (frv_frame_pointer_required): Make as static, change return type
16090         to bool.
16091         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
16092
16093         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
16094         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16095         (ix86_frame_pointer_required): Make as static, change return type to
16096         bool.
16097         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
16098
16099         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
16100         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16101
16102         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
16103
16104         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
16105
16106         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
16107
16108         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
16109         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16110         (mips_frame_pointer_required): Make as static.
16111         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
16112
16113         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
16114         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16115         (mmix_frame_pointer_required): Mew function.
16116
16117         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
16118         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16119
16120         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
16121
16122         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
16123
16124         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
16125
16126         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
16127         (CAN_ELIMINATE): Redefine.
16128         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16129         (sparc_frame_pointer_required): New function.
16130         (sparc_can_eliminate): New function.
16131         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
16132
16133         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
16134         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16135
16136         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
16137         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16138         (xtensa_frame_pointer_required): Make as static, change return type
16139         to bool.
16140         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
16141         Remove.
16142
16143 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
16144
16145         * doc/plugins.texi: Document PLUGIN_START_UNIT.
16146         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
16147         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
16148         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
16149         (register_callback): Handle PLUGIN_START_UNIT.
16150         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
16151
16152 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
16153
16154         * tree.c (process_call_operands): Propagate TREE_READONLY from the
16155         operands.
16156         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
16157         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
16158
16159 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
16160
16161         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
16162         move cost.
16163
16164 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
16165
16166         * doc/extend.texi (Additional Floating Types): __float128 is also
16167         supported on i386 targets.
16168
16169 2009-06-29  Richard Guenther  <rguenther@suse.de>
16170
16171         PR middle-end/14187
16172         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16173         flag.
16174         (pt_solutions_same_restrict_base): Declare.
16175         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
16176         flag.
16177         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
16178         (make_constraint_from, make_copy_constraint): Move earlier.
16179         (make_constraint_from_heapvar): New function.
16180         (make_constraint_from_restrict): Likewise.
16181         (handle_lhs_call): Use it.
16182         (find_func_aliases): Use it to track conversions to restrict
16183         qualified pointers.
16184         (struct fieldoff): Add only_restrict_pointers flag.
16185         (push_fields_onto_fieldstack): Initialize it.
16186         (create_variable_info_for): Track global restrict qualified pointers.
16187         (intra_create_variable_infos): Use make_constraint_from_heapvar.
16188         Track restrict qualified pointer arguments.
16189         (set_uids_in_ptset): Use varinfo is_global_var flag.
16190         (find_what_var_points_to): Set the vars_contains_restrict flag.
16191         Always create the points-to solution for sets including restrict tags.
16192         (pt_solutions_same_restrict_base): New function.
16193         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
16194         qualified pointers use pt_solutions_same_restrict_base as
16195         additional source for disambiguation.
16196
16197 2009-06-29  Richard Guenther  <rguenther@suse.de>
16198
16199         PR middle-end/38212
16200         * alias.c (find_base_decl): Remove.
16201         (get_deref_alias_set_1): Remove restrict handling.
16202         * c-common.c (c_apply_type_quals_to_decl): Do not set
16203         DECL_POINTER_ALIAS_SET.
16204         * gimplify.c (find_single_pointer_decl_1): Remove.
16205         (find_single_pointer_decl): Likewise.
16206         (internal_get_tmp_var): Remove restrict handling.
16207         (gimple_regimplify_operands): Likewise.
16208         * omp-low.c (expand_omp_atomic_pipeline): Do not set
16209         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
16210         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
16211         * tree.c (restrict_base_for_decl): Remove.
16212         (init_ttree): Do not allocate it.
16213         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
16214         LABEL_DECL_UID for label decls.
16215         (copy_node_stat): Do not copy restrict information.
16216         (decl_restrict_base_lookup): Remove.
16217         (decl_restrict_base_insert): Likewise.
16218         (print_restrict_base_statistics): Likewise.
16219         (dump_tree_statistics): Do not call print_restrict_base_statistics.
16220         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
16221         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
16222         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
16223         (LABEL_DECL_UID): Adjust.
16224         (DECL_BASED_ON_RESTRICT_P): Remove.
16225         (DECL_GET_RESTRICT_BASE): Likewise.
16226         (SET_DECL_RESTRICT_BASE): Likewise.
16227         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
16228
16229         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
16230         instead of DECL_POINTER_ALIAS_SET.
16231         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
16232         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16233         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16234
16235 2009-06-29  Richard Guenther  <rguenther@suse.de>
16236
16237         PR tree-optimization/40579
16238         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
16239         the IL to simplify has constants that overflowed.
16240
16241 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
16242
16243         PR tree-optimization/40550
16244         * tree-vect-generic.c (expand_vector_operations_1): Compute in
16245         vector_compute_type only when the size of vector_compute_type is
16246         less than the size of type.
16247
16248 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
16249
16250         * fold-const.c (contains_label_1): Fix comments.
16251         (contains_label_p): Do not walk trees multiple time.
16252
16253 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16254
16255         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
16256         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
16257         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
16258         ix86_fp_comparison_operator.
16259         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
16260         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
16261         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
16262         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
16263         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
16264         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
16265         (related splits): Change predicate to ix86_fp_comparison_operator.
16266         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
16267         instead of ix86_fp_comparison_codes.
16268         (ix86_trivial_fp_comparison_operator,
16269         ix86_fp_comparison_operator): New.
16270         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
16271         (ix86_expand_compare): Eliminate last two parameters.
16272         (ix86_fp_jump_nontrivial_p): Kill.
16273         * config/i386/i386.c (put_condition_code): Eliminate call to
16274         ix86_fp_comparison_codes and subsequent assertion.
16275         (ix86_fp_comparison_codes): Eliminate.
16276         (ix86_fp_swap_condition): New.
16277         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
16278         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
16279         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
16280         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
16281         and ix86_fp_swap_condition.
16282         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
16283         Use ix86_fp_comparison_strategy.
16284         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
16285         (ix86_fp_jump_nontrivial_p): Eliminate.
16286         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
16287         call to ix86_expand_compare.
16288         (ix86_split_fp_branch, ix86_expand_setcc,
16289         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
16290         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
16291
16292 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16293
16294         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
16295         related to jump_clobbers.
16296         * config/arm/arm.md (conds): Remove jump_clob case.
16297         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
16298         splits): Change comparison_operator to arm_comparison_operator.
16299         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
16300         Eliminate.
16301
16302 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16303
16304         * dojump.c (do_compare_rtx_and_jump): Try swapping the
16305         condition for floating point modes.
16306         * expmed.c (emit_store_flag_1): Move here a bigger part
16307         of emit_store_flag.
16308         (emit_store_flag): Try swapping the condition for floating point
16309         modes.
16310         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
16311
16312 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16313
16314         * expr.c (expand_expr_real_1): Just use do_store_flag.
16315         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
16316         emit_store_flag_force.
16317         * expmed.c (emit_store_flag_force): Copy here trick
16318         previously in expand_expr_real_1.  Try reversing the comparison.
16319         (emit_store_flag_1): Work if target is NULL.
16320         (emit_store_flag): Work if target is NULL, using the result mode
16321         from the comparison.  Use split_comparison, restructure final part
16322         to simplify conditionals.
16323
16324 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16325
16326         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
16327         * dojump.c (do_jump): Change handling of floating-point
16328         ops to use just do_compare_and_jump.
16329         (split_comparison): New.
16330         (do_compare_rtx_and_jump): Add here logic coming previously
16331         in do_jump, using split_comparison.
16332
16333 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
16334
16335         PR target/40489
16336         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
16337
16338 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16339
16340         * tree-ssa-alias.c: Fix unintentional commit.
16341
16342 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16343
16344         * passes.c (execute_one_pass): Fix unintentional commit.
16345
16346 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16347
16348         * df-problems.c (df_set_seen, df_unset_seen): Delete.
16349         (df_rd_local_compute, df_md_local_compute): Inline them.
16350
16351         (df_md_scratch): New.
16352         (df_md_alloc, df_md_free): Allocate/free it.
16353         (df_md_local_compute): Only include live registers in init.
16354         (df_md_transfer_function): Prune the in-set computed by
16355         the confluence function, and the gen-set too.
16356
16357 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16358
16359         PR rtl-optimization/26854
16360         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
16361         * df-problems.c (df_rd_add_problem): Fix comment.
16362         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
16363         df_md_simulate_artificial_defs_at_top,
16364         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
16365         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
16366         df_md_transfer_function, df_md_init, df_md_confluence_0,
16367         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
16368         problem_MD, df_md_add_problem): New.
16369         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
16370         df_md_get_bb_info): New.
16371         (DF_LAST_PROBLEM_PLUS1): Adjust.
16372
16373         * Makefile.in (fwprop.o): Include domwalk.h.
16374         * fwprop.c: Include domwalk.h.
16375         (reg_defs, reg_defs_stack): New.
16376         (bitmap_only_bit_between): Remove.
16377         (process_defs): New.
16378         (process_uses): Use reg_defs and local_md instead of
16379         bitmap_only_bit_between and local_rd.
16380         (single_def_use_enter_block): New, from build_single_def_use_links.
16381         (single_def_use_leave_block): New.
16382         (build_single_def_use_links): Remove code moved to
16383         single_def_use_enter_block, invoke domwalk.
16384         (use_killed_between): Adjust comment.
16385
16386 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16387
16388         * bitmap.h (bitmap_ior_and_into): New.
16389         * bitmap.c (bitmap_ior_and_into): New.
16390
16391 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16392
16393         * domwalk.h (struct dom_walk_data): Remove all callbacks except
16394         before_dom_children_before_stmts and after_dom_children_after_stmts.
16395         Rename the two remaining callbacks to just before_dom_children and
16396         after_dom_children. Remove other GIMPLE statement walking bits.
16397         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
16398         * graphite.c: Do not include domwalk.h.
16399         * tree-into-ssa.c (interesting_blocks): New global.
16400         (struct mark_def_sites_global_data): Remove it and names_to_rename.
16401         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
16402         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
16403         now that they're not domwalk callbacks.
16404         (rewrite_initialize_block): Rename to...
16405         (rewrite_enter_block): ... this, place after called functions.  Test
16406         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
16407         (rewrite_finalize_block): Rename to...
16408         (rewrite_leave_block): ... this, place after called functions.
16409         (rewrite_update_init_block): Rename to...
16410         (rewrite_update_enter_block): ... this, place after called functions.
16411         Test interesting_blocks, call rewrite_update_stmt and
16412         rewrite_update_phi_arguments.
16413         (rewrite_update_fini_block): Rename to...
16414         (rewrite_leave_block): ... this, place after called functions.
16415         (rewrite_blocks): Remove last argument, simplify initialization of
16416         walk_data.
16417         (mark_def_sites_initialize_block): Rename to...
16418         (mark_def_sites_block): ... this, call mark_def_sites.
16419         (mark_def_sites_blocks): Remove argument, simplify initialization of
16420         walk_data.
16421         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
16422         (update_ssa): Likewise.
16423         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
16424         callback.
16425         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
16426         (dom_opt_initialize_block): Rename to...
16427         (dom_opt_enter_block): ... this, place after called functions.  Walk
16428         statements here, inline propagate_to_outgoing_edges.
16429         (dom_opt_finalize_block): Rename to...
16430         (dom_opt_leave_block): ... this, place after called functions.
16431         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
16432         domwalk callback.
16433         (dse_enter_block, dse_record_phi): New.
16434         (dse_record_phis): Delete.
16435         (dse_finalize_block): Rename to...
16436         (dse_leave_block): ... this.
16437         (tree_ssa_dse): Simplify initialization of walk_data.
16438         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
16439         Adjust initialization of walk_data.
16440         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
16441         * tree-ssa-loop-phiopt.c (get_non_trapping):
16442         Adjust initialization of walk_data.
16443         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
16444         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
16445         it's not a domwalk callback.
16446         (uncprop_initialize_block): Rename to...
16447         (dse_enter_block): ... this, call uncprop_into_successor_phis.
16448         (dse_finalize_block): Rename to...
16449         (dse_leave_block): ... this.
16450         (tree_ssa_uncprop): Simplify initialization of walk_data.
16451         * Makefile.in: Adjust dependencies.
16452
16453 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
16454
16455         * arm.md (casesi): Fix test for Thumb1.
16456         (thumb1_casesi_internal_pic): Likewise.
16457         (thumb1_casesi_dispatch): Likewise.
16458
16459 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
16460
16461         * config/arm/arm-cores.def: Added core cortex-m0.
16462         * config/arm/arm-tune.md: Regenerated.
16463         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
16464
16465 2009-06-26  DJ Delorie  <dj@redhat.com>
16466
16467         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
16468
16469         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
16470         the scheduler doesn't tag jump insns.
16471
16472 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
16473
16474         * c-decl.c (merge_decls): Re-indent.
16475
16476 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
16477
16478         PR c/39902
16479         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
16480         Special-case decimal float constants.
16481
16482 2009-06-26  Richard Henderson  <rth@redhat.com>
16483
16484         * function.h (struct function): Add cannot_be_copied_reason,
16485         and cannot_be_copied_set.
16486         * tree-inline.c (has_label_address_in_static_1): Rename from
16487         inline_forbidden_p_2; don't set inline_forbidden_reason here.
16488         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
16489         don't set inline_forbidden_reason.
16490         (copy_forbidden): New function, split out of inline_forbidden_p.
16491         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
16492         (inline_forbidden_p): Use copy_forbidden.
16493         (tree_versionable_function_p): Likewise.
16494         (inlinable_function_p): Merge into tree_inlinable_function_p.
16495         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
16496         * ipa-cp.c (ipcp_versionable_function_p): New function.
16497         (ipcp_cloning_candidate_p): Use it.
16498         (ipcp_node_modifiable_p): Likewise.
16499
16500 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
16501
16502         * builtins.c (expand_builtin_alloca): Handle builtin alloca
16503         that is marked not to be inlined. Remove flag_mudflap use.
16504         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
16505         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
16506
16507 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
16508
16509         PR bootstrap/40338
16510         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
16511         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
16512
16513 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
16514
16515         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
16516         shared libgcc.
16517         (__mingwthr_remove_key_dtor): Likewise.
16518
16519 2009-06-26  Richard Guenther  <rguenther@suse.de>
16520
16521         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
16522
16523 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
16524
16525         PR middle-end/40525
16526         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
16527         try the non-cond_exec path also.
16528
16529 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16530
16531         PR target/40468
16532         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
16533         (output_cbranch): Use new functions.
16534         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
16535         Likewise.
16536
16537 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16538             Pat Haugen  <pthaugen@us.ibm.com>
16539             Revital Eres <ERES@il.ibm.com>
16540
16541         * config/rs6000/rs6000.c (print_operand): Correct lossage message
16542         for %c error.  Add %x support to print VSX registers as a unified
16543         register set, instead of separate float and altivec registers.
16544         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
16545         %y case, and add support for VSX pre-modify addresses.
16546         (output_toc): Add assert for CONST containing an integer constant
16547         in the PLUS case.
16548         (rs6000_adjust_cost): Add POWER7 support.
16549         (insn_must_be_first_in_group): Ditto.
16550         (insn_must_be_last_in_group): Ditto.
16551         (rs6000_emit_popcount): Ditto.
16552         (rs6000_vector_mode_supported_p): Ditto.
16553
16554         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
16555         Change some of the functions called by macros to being called
16556         through a pointer, so debug functions can be inserted if
16557         -mdebug=addr or -mdebug=cost.
16558         (rs6000_preferred_reload_class_ptr): Ditto.
16559         (rs6000_secondary_reload_class_ptr): Ditto.
16560         (rs6000_secondary_memory_needed_ptr): Ditto.
16561         (rs6000_cannot_change_mode_class_ptr): Ditto.
16562         (rs6000_secondary_reload_inner): Ditto.
16563         (rs6000_legitimize_reload_address): Ditto.
16564         (rs6000_legitimize_reload_address_ptr): Ditto.
16565         (rs6000_mode_dependent_address): Ditto.
16566         (rs6000_mode_dependent_address_ptr): Ditto.
16567
16568         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
16569         function to return true if the mode allows reg + integer
16570         addresses.
16571         (virtual_stack_registers_memory_p): New function to return true if
16572         the address refers to a virtual stack register.
16573         (rs6000_legitimate_offset_address_p): Move code to say whether a
16574         mode supports reg+int addressing to reg_offset_addressing_ok_p and
16575         call it.
16576         (rs6000_legitimate_address_p): Add checks for modes that only can
16577         do reg+reg addressing.  Start adding VSX support.
16578         (rs6000_legitimize_reload_address): Ditto.
16579         (rs6000_legitimize_address): Ditto.
16580         (rs6000_debug_legitimate_address_p): New debug functions for
16581         -mdebug=addr and -mdebug=cost.
16582         (rs6000_debug_rtx_costs): Ditto.
16583         (rs6000_debug_address_costs): Ditto.
16584         (rs6000_debug_adjust_cost): Ditto.
16585         (rs6000_debug_legitimize_address): Ditto.
16586         (rs6000_legitimize_reload_address_ptr): Point to call normal
16587         function or debug function.  Make functions called via pointer
16588         static.
16589         (rs6000_mode_dependent_address_ptr): Ditto.
16590         (rs6000_secondary_reload_class_ptr): Ditto.
16591         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
16592         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
16593         into a friendlier error.
16594         (rs6000_init_builtins): Add initial VSX support.
16595         (rs6000_adjust_cost): Fix some spacing issues.
16596
16597         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
16598         (REG_CLASS_NAMES): Ditto.
16599         (REG_CLASS_CONTENTS): Ditto.
16600         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
16601         pointer, to add -mdebug=addr support.
16602         (CANNOT_CHANGE_MODE_CLASS): Ditto.
16603         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
16604         -mdebug=addr support.
16605         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
16606         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
16607         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
16608
16609         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
16610         16-bit values.
16611         (bswapsi*): Set attribute types for load/store.  Add combiner
16612         patterns to eliminate zero extend on 64-bit.
16613         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
16614         stdbrx if the hardware supports those instructions.
16615
16616 2009-06-25  Ian Lance Taylor  <iant@google.com>
16617
16618         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
16619         (Link Options): Document -static-libstdc++.
16620
16621 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16622
16623         PR target/38731
16624         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
16625         DATA_ALIGNMENT instead.
16626
16627 2009-06-25  Richard Guenther  <rguenther@suse.de>
16628
16629         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
16630         indirect references against the callused/escaped solutions.
16631         (call_may_clobber_ref_p_1): Likewise.
16632
16633 2009-06-25  Martin Jambor  <mjambor@suse.cz>
16634
16635         PR tree-optimization/40493
16636         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
16637         (enum unscalarized_data_handling): New type.
16638         (handle_unscalarized_data_in_subtree): Return what has been done.
16639         (load_assign_lhs_subreplacements): Handle left flushes differently.
16640         (sra_modify_assign): Use unscalarized_data_handling, simplified
16641         condition determining whether to remove the statement.
16642
16643 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
16644
16645         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
16646         excerpt - @ should be doubled for texinfo.
16647
16648 2009-06-24  Ian Lance Taylor  <iant@google.com>
16649
16650         * config/arc/arc.c: Include "df.h".
16651         (arc_attribute_table): Make static.  Move higher in file.
16652         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
16653         (output_shift): Initialize n later to avoid warning.
16654         * config/arm/arm.c (arm_attribute_table): Make static.  Move
16655         higher in file.
16656         * config/avr/avr.c (avr_attribute_table): Make static.  Move
16657         higher in file.
16658         (reg_class_tab): Change array type from int to enum reg_class.
16659         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
16660         LABEL_REF.
16661         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
16662         (lshrhi3_out): Likewise.
16663         (class_likely_spilled_p): Change return type to bool.
16664         (avr_rtx_costs): Use local code variable with enum type.
16665         * config/avr/avr.md (movmemhi): Use add_reg_note.
16666         (andhi3, andsi3): Don't use AS2 with "and".
16667         (iorhi3, iorsi3): Don't use AS2 with "or".
16668         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
16669         * config/crx/crx.c: Include "df.h".
16670         (crx_attribute_table): Make static.
16671         * config/m32r/m32r.c: Include "df.h".
16672         (m32r_attribute_table): Make static.  Move higher in file.
16673         (pop): Use add_reg_note.
16674         (block_move_call): Change 0 to LCT_NORMAL in function call.
16675         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
16676         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
16677         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
16678         declare, not just when TREE_CODE is defined.
16679         * config/m68hc11/m68hc11.c: Include "expr.h".
16680         (m68hc11_attribute_table): Make static.  Move higher in file.
16681         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
16682         function call.
16683         (m68hc11_register_indirect_p): Likewise.
16684         (m68hc11_function_arg_padding): Change return type to enum
16685         direction.
16686         (emit_move_after_reload): Use add_reg_note.
16687         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
16688         (m68hc11_split_logical): Likewise.
16689         (m68hc11_rtx_costs): Add local code_and outer_code variables with
16690         enum type.
16691         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
16692         to VOIDmode in function call.
16693         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
16694         tree is defined.
16695         (m68hc11_split_logical): Update declaration.
16696         (m68hc11_function_arg_padding): Update declaration.
16697         * config/mcore/mcore.c (regno_reg_class): Change form array of int
16698         to array of enum reg_class.
16699         (mcore_attribute_table): Make static.  Move higher in file.
16700         (mcore_rtx_costs): Add cast to enum type.
16701         * config/mcore/mcore.h (regno_reg_class): Update declaration.
16702         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
16703         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
16704         in file.
16705         * config/sh/predicates.md (trapping_target_operand): Rename and to
16706         and_expr.
16707         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
16708         higher in file.
16709         * config/spu/spu.c (spu_attribute_table): Make static.  Move
16710         higher in file.
16711         * config/v850/v850.c (v850_attribute_table): Make static.  Move
16712         higher in file.
16713         (v850_rtx_costs): Use local code with enum type.
16714         (expand_epilogue): Add cast.
16715         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
16716
16717 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
16718
16719         PR target/40515
16720         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
16721         -m2a-single-only and -m2a-nofpu.
16722         * config/sh/sh.opt: Document m2a generates FPU code.
16723
16724 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
16725
16726         * defaults.h (CAN_ELIMINATE): Provide default.
16727         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
16728         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
16729         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
16730         * config/spu/spu.h (CAN_ELIMINATE): Delete.
16731         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
16732         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
16733         * config/cris/cris.h (CAN_ELIMINATE): Delete.
16734         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
16735         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
16736         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
16737
16738 2009-06-24  DJ Delorie  <dj@redhat.com>
16739
16740         * mep-ext-cop.cpu: Fix copyright notice.
16741         * mep-default: Fix copyright notice.
16742         * mep-core: Fix copyright notice.
16743         * mep: Fix copyright notice.
16744         * mep-ivc2: Fix copyright notice.
16745         * mep-c5: Fix copyright notice.
16746
16747 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
16748
16749         * doc/contrib.texi (Contributors):
16750
16751 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16752
16753         PR middle-end/40501
16754         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
16755         src and dst operands if necessary.
16756
16757 2009-06-23  DJ Delorie  <dj@redhat.com>
16758
16759         Add MeP port.
16760         * config.gcc: Add mep support.
16761         * recog.c: Resurrect validate_replace_rtx_subexp().
16762         * recog.h: Likewise.
16763         * config/mep/: Add new port:
16764         * config/mep/constraints.md: New file.
16765         * config/mep/default.h: New file.
16766         * config/mep/intrinsics.h: New file.
16767         * config/mep/intrinsics.md: New file.
16768         * config/mep/ivc2-template.h: New file.
16769         * config/mep/mep-c5.cpu: New file.
16770         * config/mep/mep-core.cpu: New file.
16771         * config/mep/mep-default.cpu: New file.
16772         * config/mep/mep-ext-cop.cpu: New file.
16773         * config/mep/mep-intrin.h: New file.
16774         * config/mep/mep-ivc2.cpu: New file.
16775         * config/mep/mep-lib1.asm: New file.
16776         * config/mep/mep-lib2.c: New file.
16777         * config/mep/mep-pragma.c: New file.
16778         * config/mep/mep-protos.h: New file.
16779         * config/mep/mep-tramp.c: New file.
16780         * config/mep/mep.c: New file.
16781         * config/mep/mep.cpu: New file.
16782         * config/mep/mep.h: New file.
16783         * config/mep/mep.md: New file.
16784         * config/mep/mep.opt: New file.
16785         * config/mep/predicates.md: New file.
16786         * config/mep/t-mep: New file.
16787
16788 2009-06-23  Ian Lance Taylor  <iant@google.com>
16789
16790         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
16791         from loose_warn into c_loose_warn and from strict_warn into
16792         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
16793         --enable-build-with-cxx.  Set and substitute
16794         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
16795         * Makefile.in (CXXFLAGS): New variable.
16796         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
16797         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
16798         the default is the same as $(STRICT_WARN).
16799         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
16800         (CXX): New variable.
16801         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
16802         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
16803         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
16804         (HOST_LIBS): New variable.
16805         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
16806         (ALL_CXXFLAGS): New variable.
16807         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
16808         * doc/install.texi (Configuration): Document
16809         --enable-build-with-cxx, --with-stage1-ldflags,
16810         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
16811         * configure: Rebuild.
16812
16813 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16814
16815         * config/arm/arm.c (arm_override_options): Fix braces and formatting
16816         from previous commit.
16817
16818 2009-06-23  Ian Lance Taylor  <iant@google.com>
16819
16820         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
16821
16822 2009-06-23  Ian Lance Taylor  <iant@google.com>
16823
16824         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
16825         with ATTRIBUTE_UNUSED.
16826
16827 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16828             Pat Haugen  <pthaugen@us.ibm.com>
16829             Revital Eres  <eres@il.ibm.com>
16830
16831         * config.in (HAVE_AS_POPCNTD): Add default definition.
16832         (HAVE_AS_LWSYNC): Ditto.
16833
16834         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
16835         release number.
16836         (gcc_cv_as_powerpc_cmpb): Ditto.
16837         (gcc_cv_as_powerpc_dfp): Ditto.
16838         (gcc_cv_as_powerpc_vsx): Ditto.
16839         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
16840         supporting the popcntd/lwsync instructions.
16841         (gcc_cv_as_powerpc_lwsync): Ditto.
16842         * configure: Regenerate.
16843
16844         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
16845         -mcpu=native and -mcpu=power7.
16846         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
16847
16848         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
16849         a variable instead of a mask to reduce the number of mask bits.
16850         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
16851         (-mbit-word): Ditto.
16852         (-mregnames): Ditto.
16853         * config/rs6000/rs6000.opt (-mupdate): Ditto.
16854         (-mfused-madd): Ditto.
16855
16856         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
16857         2.06 instructions.
16858         (-mvsx): New switch for VSX instructions.
16859         (-misel): Move from a variable to a mask to allow it to be set by
16860         -mcpu=.
16861
16862         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
16863         function declaration to an array declaration.
16864         (rs6000_hard_regno_nregs): New external array declaration.
16865
16866         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
16867         files included by rs6000.md.
16868
16869         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16870         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
16871
16872         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
16873         a target mask.
16874         (rs6000_debug_reg): New -mdebug= variables.
16875         (rs6000_debug_addr): Ditto.
16876         (rs6000_debug_cost): Ditto.
16877         (rs6000_pmode): New variable to hold Pmode.
16878         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
16879         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
16880         calculated at compiler start.
16881         (rs6000_hard_regno_nregs): Change function to an array which holds
16882         HARD_REGNO_NREGS calculated at compiler start.
16883         (rs6000_explicit_options): Delete isel field.
16884         (rs6000_vector_unit): New array to hold which vector unit
16885         supports arithmetic options for a given type.
16886         (rs6000_vector_mem): New array to hold which vector unit supports
16887         memory reference operations for a given type.
16888         (rs6000_vector_align): New array to given the alignment of each
16889         vector type.
16890         (power7_cost): New basic costs for power7.
16891         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
16892         (rs6000_hard_regno_nregs_internal): New function, moved from
16893         HARD_REGNO_NREGS, to calculate the number of registers each hard
16894         register takes for each type.
16895         (rs6000_debug_reg_print): New function for -mdebug=reg support.
16896         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
16897         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
16898         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
16899         unit information here so it is calculated once at compiler startup
16900         time.
16901         (rs6000_override_options): Make -misel a target mask.  Add more
16902         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
16903         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
16904         -mdebug=cost.
16905         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
16906         (rs6000_handle_option): Move -misel from variable to target mask.
16907         (rs6000_builtin_mask_for_load): Add VSX support.
16908         (rs6000_conditional_register_usage): Ditto.
16909         (USE_ALTIVEC_FOR_ARG_P): Ditto.
16910         (function_arg_boundary): Ditto.
16911         (rs6000_expand_builtin): Ditto.
16912         (def_builtin): Make abort message a little friendlier.
16913         (rs6000_emit_int_cmove): Add support for 64-bit isel.
16914
16915         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
16916         assembler support the popcntd instruction instead of a vsx
16917         instruction to enable power7 support.
16918         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
16919         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
16920         option to the assembler if -mcpu=native.
16921         (ASM_CPU_NATIVE_SPEC): Ditto.
16922         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
16923         ISA 2.06 features.
16924         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
16925         the lwsync instruction.
16926         (enum processor_type): Add PROCESSOR_POWER7.
16927         (rs6000_debug_reg): New -mdebug= options.
16928         (rs6000_debug_addr): Ditto.
16929         (rs6000_debug_cost): Ditto.
16930         (rs6000_isel): Delete.
16931         (enum rs6000_vector): New enum to say what vector unit we have.
16932         (VECTOR_UNIT_*): New macros to say which vector unit has
16933         arithmetic operations for a given type.
16934         (VECTOR_MEM_*): New macros to say which vector unit has memory
16935         operations for a given type.
16936         (TARGET_LDBRX): Whether the machine supports the ldbrx
16937         instruction.
16938         (TARGET_ISEL): Delete, -misel moved to be a mask.
16939         (TARGET_ISEL64): New macro for 64-bit isel support.
16940         (UNITS_PER_VSX_WORD): New macro.
16941         (POINTER_SIZE): Move to be an external variable, rather than
16942         calculating whether we are generating 32 ot 64-bit code.
16943         (Pmode): Ditto.
16944         (STACK_BOUNDARY): Add VSX support.
16945         (LOCAL_ALIGNMENT): Ditto.
16946         (SLOW_UNALIGNED_ACCESS): Ditto.
16947         (VSX_REGNO_P): New macro for VSX support.
16948         (VFLOAT_REGNO_P): Ditto.
16949         (VINT_REGNO_P): Ditto.
16950         (VLOGICAL_REGNO_P): Ditto.
16951         (VSX_VECTOR_MODE): Ditto.
16952         (VSX_SCALAR_MODE): Ditto.
16953         (VSX_MODE): Ditto.
16954         (VSX_MOVE_MODE): Ditto.
16955         (VSX_REG_CLASS_P): Ditto.
16956         (HARD_REGNO_NREGS): Instead of calling a function, use an array
16957         lookup.
16958         (UNITS_PER_SIMD_WORD): Add VSX support.
16959         (MODES_TIEABLE_P): Ditto.
16960         (STARTING_FRAME_OFFSET): Ditto.
16961         (STACK_DYNAMIC_OFFSET): Ditto.
16962         (EPILOGUE_USES): Ditto.
16963         (REGNO_REG_CLASS): Move to array lookup.
16964         (CLASS_MAX_NREGS): Ditto.
16965         (rs6000_vector_reg_class): Add declaration.
16966         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
16967         overlap with the floating point and Altivec registers.
16968
16969         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
16970
16971         * config/rs6000/driver-rs6000.c (asm_names): New static array to
16972         give the appropriate asm switches if -mcpu=native.
16973         (host_detect_local_cpu): Add support for "asm".
16974         (host_detect_local_cpu): Follow GNU code guidelines for name.
16975
16976         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
16977         -mbit-word to a variable instead of being a target mask.
16978
16979         * config/rs6000/sync.md (lwsync): If the assembler supports it,
16980         emit the lwsync instruction instead of emitting the instruction as
16981         an integer constant.
16982
16983         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
16984         fixuns_trundfsi2, move expander into rs6000.md.
16985
16986         * config/rs6000/rs6000.md (cpu): Add power7.
16987         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
16988         (logical predicate patterns): Change the single instruction
16989         primitives that set CR0 to be fast_compare instead of compare.
16990         (norsi*): Ditto.
16991         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
16992         (popcntddi2): Ditto.
16993         (popcount<mode>): Ditto.
16994         (floating multiply/add insns): Name the floating point
16995         multiply/add insns.
16996         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
16997         (isel_unsigned_<mode>): Ditto.
16998         (fixuns_trundfsi2): Move expander here from spe.md.
16999         (smindi3): Define if we have -misel on 64-bit systems.
17000         (smaxdi3): Ditto.
17001         (umindi3): Ditto.
17002         (umaxdi3): Ditto.
17003
17004 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
17005
17006         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
17007         extra_objs.
17008         * config/avr/avr.c (avr_current_device): New variable.
17009         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
17010         (avr_arch, mcu_type_s): Move to avr.h.
17011         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
17012         default_data_section_start fields.
17013         (avr_arch): Moved from avr.c.
17014         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
17015         library_name fields.
17016         (avr_current_device, avr_mcu_types, avr_arch_types,
17017         avr_device_to_arch, avr_device_to_data_start,
17018         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
17019         (EXTRA_SPEC_FUNCTIONS): Define.
17020         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
17021         options mapping. Use device_to_arch and device_to_data_start insted.
17022         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
17023         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
17024         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
17025         * config/avr/driver-avr.c: New file.
17026         * config/avr/avr-devices.c: New file.
17027
17028 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
17029
17030         * var-tracking.c (unshare_variable): Force initialized to
17031         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
17032         (set_variable_part): Likewise.
17033         (struct variable_union_info): Remove pos_src field.
17034         (vui_vec, vui_allocated): New variables.
17035         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
17036         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
17037         == 1 use a simpler sorting algorithm.  Compute pos field right
17038         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
17039         Avoid quadratic comparison if !flag_var_tracking_uninit.
17040         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
17041         unshare_variable unconditionally.
17042         (dataflow_set_different_2): Removed.
17043         (dataflow_set_different): Don't traverse second hash table.
17044         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
17045         unconditionally to var_reg_set or var_mem_set.
17046         (emit_notes_in_bb): Likewise.
17047         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
17048         unshare_variable.
17049         (emit_note_insn_var_location): Don't set initialized to
17050         VAR_INIT_STATUS_INITIALIZED early.
17051         (vt_finalize): Free vui_vec if needed, clear vui_vec and
17052         vui_allocated.
17053         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
17054
17055         * tree-object-size.c (addr_object_size): Instead of checking
17056         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
17057         are no FIELD_DECLs following it.
17058
17059 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17060
17061         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
17062         order to match bswaps with signed source operands.
17063
17064 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17065
17066         * sdbout.c (sdbout_one_type): Fix braces in switch.
17067
17068 2009-06-23  Richard Guenther  <rguenther@suse.de>
17069
17070         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
17071         member.
17072         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
17073         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
17074         var_callused, callused_tree, var_storedanything, storedanything_tree,
17075         var_integer, integer_tree): Remove global variables.
17076         (new_var_info): Do not pass new id, append the new var to the
17077         global variable vector.
17078         (do_ds_constraint): Use is_global_var member of the variable-info.
17079         (new_scalar_tmp_constraint_exp): Adjust.
17080         (create_function_info_for): Likewise.
17081         (create_variable_info_for): Likewise.
17082         (find_what_var_points_to): Remove dead code.
17083         (init_base_vars): Simplify.
17084         (compute_points_to_sets): Adjust.
17085
17086 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17087
17088         * combine.c (try_combine): Dump information about the insns we're
17089         combining.
17090
17091 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17092
17093         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
17094         check when calling force_to_mode on TRUNCATE's operand.
17095
17096 2009-06-22  Ian Lance Taylor  <iant@google.com>
17097
17098         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
17099
17100 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17101
17102         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
17103
17104 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17105
17106         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
17107         override library linkage flags such as -static-libgcc or
17108         -shared-libgcc.
17109
17110 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17111
17112         * config/m68k/m68k-devices.def: Add line for MCF5221x.
17113
17114 2009-06-22  Ian Lance Taylor  <iant@google.com>
17115
17116         * config/linux.opt: Put mglibc ahead of muclibc.
17117
17118         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
17119         for duplicate decls.
17120
17121 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17122
17123         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
17124
17125 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17126
17127         PR objc/28050
17128         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
17129         instead of NULL if a parser error occurs.
17130
17131 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17132
17133         * dwarf2out.c (dwarf2_debug_hooks): Initialize
17134         non-DWARF2_DEBUGGING_INFO version.
17135
17136 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
17137
17138         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
17139         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
17140
17141         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
17142         (LIBGCC2_TF_CEXT): Define.
17143         (TF_SIZE): Define.
17144
17145 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17146
17147         PR target/40463
17148         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
17149
17150 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17151
17152         * config/arm/arm.c (arm_override_options): Disable
17153         -mcaller-super-interworking and -mcallee-super-interworking.
17154         * doc/invoke.texi (ARM Options): Document this.
17155
17156 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17157
17158         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
17159         * config/arm/constraints.md (j): New constraint for movw operands.
17160         (N): Remove thumb2 meaning.
17161         * config/arm/arm.md (*arm_movw): Delete.
17162         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
17163         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
17164         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
17165
17166 2009-06-22  Martin Jambor  <mjambor@suse.cz>
17167
17168         PR tree-optimization/40492
17169         * tree-sra.c (sra_modify_assign): Pass zero offsets to
17170         build_ref_for_offset.
17171
17172 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
17173
17174         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
17175         JUMP_TABLE_DATA_P predicates where applicable.
17176         * auto-inc-dec.c: Ditto.
17177         * builtins.c: Ditto.
17178         * caller-save.c: Ditto.
17179         * calls.c: Ditto.
17180         * cfgcleanup.c: Ditto.
17181         * cfglayout.c: Ditto.
17182         * cfgrtl.c: Ditto.
17183         * combine.c: Ditto.
17184         * combine-stack-adj.c: Ditto.
17185         * cse.c: Ditto.
17186         * cselib.c: Ditto.
17187         * dbxout.c: Ditto.
17188         * df-scan.c: Ditto.
17189         * dse.c: Ditto.
17190         * dwarf2asm.c: Ditto.
17191         * dwarf2out.c: Ditto.
17192         * emit-rtl.c: Ditto.
17193         * except.c: Ditto.
17194         * explow.c: Ditto.
17195         * expmed.c: Ditto.
17196         * expr.c: Ditto.
17197         * final.c: Ditto.
17198         * function.c: Ditto.
17199         * fwprop.c: Ditto.
17200         * gcse.c: Ditto.
17201         * genpreds.c: Ditto.
17202         * genrecog.c: Ditto.
17203         * ifcvt.c: Ditto.
17204         * ira-costs.c: Ditto.
17205         * ira-lives.c: Ditto.
17206         * jump.c: Ditto.
17207         * loop-iv.c: Ditto.
17208         * lower-subreg.c: Ditto.
17209         * modulo-sched.c: Ditto.
17210         * optabs.c: Ditto.
17211         * postreload.c: Ditto.
17212         * print-rtl.c: Ditto.
17213         * recog.c: Ditto.
17214         * reginfo.c: Ditto.
17215         * regmove.c: Ditto.
17216         * reload1.c: Ditto.
17217         * reload.c: Ditto.
17218         * reorg.c: Ditto.
17219         * rtlanal.c: Ditto.
17220         * rtl.c: Ditto.
17221         * sched-vis.c: Ditto.
17222         * sdbout.c: Ditto.
17223         * sel-sched-ir.c: Ditto.
17224         * simplify-rtx.c: Ditto.
17225         * targhooks.c: Ditto.
17226         * var-tracking.c: Ditto.
17227         * vmsdbgout.c: Ditto.
17228
17229 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17230
17231         * Makefile.in (install-plugin): Always use DESTDIR.
17232
17233 2009-06-22  Olivier Hainque  <hainque@adacore.com>
17234
17235         * config/pa/pa.c (output_call): Don't optimize post call jumps
17236         into return address adjustments if the call may throw.
17237
17238 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
17239
17240         * arm.c (thumb1_output_casesi): New function.
17241         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
17242         optimizing for size or PIC.
17243         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
17244         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
17245         (casesi): Handle Thumb-1 when optimizing for size or PIC.
17246         (thumb1_casesi_internal_pic): New expand rule.
17247         (thumb1_casesi_dispatch): New pattern.
17248         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
17249         thumb-1 mode.
17250         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
17251         in the text seciton when PIC or optimizing for size.
17252         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17253         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
17254         preservation properties of code.
17255         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
17256         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
17257         (__gnu_thumb1_case_si): New function.
17258         * t-arm (LIB1ASMSRC): Define here.
17259         (LIB1ASMFUNCS): Add some common functions.
17260         * t-arm-elf (LIB1ASMSRC): Delete.
17261         (LIB1ASMFUNCS): Append to existing set.
17262         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17263         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17264         * t-symbian (LIB1ASMFUNCS): Likewise.
17265         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17266         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17267
17268 2009-06-21  Richard Guenther  <rguenther@suse.de>
17269
17270         PR tree-optimization/38729
17271         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
17272         to loops with a single exit if -fno-expensive-optimizations.
17273
17274 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
17275
17276         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
17277         (dataflow_set): Change vars type from htab_t to shared_hash.
17278         (shared_hash_pool, empty_shared_hash): New variables.
17279         (vars_clear): Removed.
17280         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
17281         shared_hash_find_slot_unshare, shared_hash_find_slot,
17282         shared_hash_find_slot_noinsert, shared_hash_find): New
17283         static inlines.
17284         (shared_hash_unshare, shared_hash_destroy): New functions.
17285         (unshare_variable): Unshare set->vars if shared, use
17286         shared_hash_htab.
17287         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
17288         (get_init_value, find_src_set_src, dump_dataflow_set,
17289         clobber_variable_part, emit_notes_for_differences): Use
17290         shared_hash_htab.
17291         (dataflow_set_init): Remove second argument, set vars to
17292         empty_shared_hash instead of creating a new htab.
17293         (dataflow_set_clear): Call shared_hash_destroy and set vars
17294         to empty_shared_hash instead of calling vars_clear.
17295         (dataflow_set_copy): Don't call vars_copy, instead just share
17296         the src htab with dst.
17297         (variable_union): Use shared_hash_*, use initially NO_INSERT
17298         lookup if set->vars is shared.  Don't keep slot cleared before
17299         calling unshare_variable.  Unshare set->vars if needed.
17300         Even ->refcount == 1 vars must be unshared if set->vars is shared
17301         and var needs to be modified.
17302         (variable_canonicalize): New function.
17303         (dataflow_set_union): If dst->vars is empty, just share src->vars
17304         with dst->vars and traverse with variable_canonicalize to canonicalize
17305         and unshare what is needed.
17306         (dataflow_set_different): If old_set and new_set use the same shared
17307         htab, they aren't different.  If number of htab elements is different,
17308         htabs are different.  Use shared_hash_*.
17309         (dataflow_set_destroy): Call shared_hash_destroy instead of
17310         htab_delete.
17311         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
17312         second argument to dataflow_set_init.
17313         (vt_initialize): Likewise.  Initialize shared_hash_pool and
17314         empty_shared_hash, move bb in/out initialization afterwards.
17315         Use variable_htab_free instead of NULL as changed_variables del hook.
17316         (variable_was_changed): Change type of second argument to pointer to
17317         dataflow_set.  When inserting var into changed_variables, bump
17318         refcount.  Unshare set->vars if set is shared htab and slot needs to
17319         be cleared.
17320         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
17321         lookup if set->vars is shared.  Unshare set->vars if needed.
17322         Even ->refcount == 1 vars must be unshared if set->vars is shared
17323         and var needs to be modified.  Adjust variable_was_changed caller.
17324         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
17325         vars must be unshared if set->vars is shared and var needs to be
17326         modified.  Adjust variable_was_changed caller.
17327         (emit_note_insn_var_location): Don't pool_free var.
17328         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
17329         instead of 1.
17330         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
17331         free_alloc_pool on shared_hash_pool.
17332
17333 2009-06-20  Anthony Green  <green@moxielogic.com>
17334
17335         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
17336         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
17337
17338 2009-06-20  Richard Guenther  <rguenther@suse.de>
17339
17340         * tree-ssa-structalias.c (find_func_aliases): For memset use
17341         a constraint from NULL if we memset to zero.
17342         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
17343         we explicitly handle that do not read from memory.
17344         (call_may_clobber_ref_p_1): Properly handle builtins that may
17345         set errno.
17346
17347 2009-06-20  Richard Guenther  <rguenther@suse.de>
17348
17349         PR tree-optimization/40495
17350         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
17351         (new_scalar_tmp_constraint_exp): New function.
17352         (process_constraint): Do not create temporary decls.
17353         (process_all_all_constraints): Likewise.
17354         (handle_const_call): Likewise.
17355         (create_function_info_for): Do not set decl.
17356
17357 2009-06-19  Ian Lance Taylor  <iant@google.com>
17358
17359         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
17360         (rs6000_attribute_table): Make static; move before use.
17361
17362 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
17363
17364         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
17365         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
17366         Propagate the TREE_READONLY flag without overwriting it.
17367         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
17368         Propagate the TREE_READONLY flag onto the result.
17369         (process_call_operands): Move around.  Use correct constant value.
17370
17371 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17372
17373         PR target/40482
17374         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
17375         * config/arm/arm.md: Likewise.
17376
17377 2009-06-19  Ian Lance Taylor  <iant@google.com>
17378
17379         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
17380         to GIMPLE_ERROR_MARK.
17381
17382         * c-typeck.c (build_conditional_expr): Add op1_original_type and
17383         op2_original_type parameters.  Warn about using different enum types.
17384         * c-parser.c (c_parser_conditional_expression): Pass original
17385         types to build_conditional_expr.
17386         * c-tree.h (build_conditional_expr): Update declaration.
17387
17388 2009-06-19  Ian Lance Taylor  <iant@google.com>
17389
17390         * config/i386/i386.c (ix86_function_specific_save): Test that
17391         fields match values, rather than testing the values are in a
17392         certain range.
17393
17394 2009-06-19  Richard Guenther  <rguenther@suse.de>
17395
17396         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17397         ADDR_EXPR pointers.
17398         (ptr_derefs_may_alias_p): Likewise.
17399         (ptr_deref_may_alias_ref_p_1): New function.
17400         (ptr_deref_may_alias_ref_p): Likewise.
17401         (ref_maybe_used_by_call_p_1): Handle builtins that are not
17402         covered by looking at the ESCAPED solution.
17403         (call_may_clobber_ref_p_1): Likewise.
17404         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17405         Handle NULL_TREE offset.  Do not produce redundant constraints.
17406         (process_all_all_constraints): New helper function.
17407         (do_structure_copy): Use it.
17408         (handle_lhs_call): Likewise.
17409         (find_func_aliases): Handle some builtins with pointer arguments
17410         and/or return values explicitly.
17411
17412 2009-06-19  Ian Lance Taylor  <iant@google.com>
17413
17414         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
17415
17416 2009-06-19  Ian Lance Taylor  <iant@google.com>
17417
17418         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
17419
17420 2009-06-19  Ian Lance Taylor  <iant@google.com>
17421
17422         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
17423         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
17424         version.
17425
17426         * c-decl.c (finish_decl): If -Wc++-compat, warn about
17427         uninitialized const.
17428
17429 2009-06-19  Ian Lance Taylor  <iant@google.com>
17430
17431         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
17432         all uses.
17433
17434         * c-decl.c (in_struct, struct_types): Remove.
17435         (struct c_binding): Add in_struct field.
17436         (c_binding_ptr): Define type, along with VEC.
17437         (struct c_struct_parse_info): Define.
17438         (struct_parse_info): New static variable.
17439         (bind): Initialize in_struct field.
17440         (start_struct): Remove enclosing_in_struct and
17441         enclosing_struct_types parameters.  Add
17442         enclosing_struct_parse_info parameter.  Change all callers.  Set
17443         struct_parse_info rather than in_struct and struct_types.
17444         (grokfield): If -Wc++-compat and there is a symbol binding for the
17445         field name, set the in_struct flag and push it on the
17446         struct_parse_info->fields vector.
17447         (warn_cxx_compat_finish_struct): New static function.
17448         (finish_struct): Remove enclosing_in_struct and
17449         enclosing_struct_types parameters.  Add
17450         enclosing_struct_parse_info parameter.  Change all callers.  Don't
17451         set C_TYPE_DEFINED_IN_STRUCT here.  Call
17452         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
17453         parameter.  Only push on struct_types if warn_cxx_compat.
17454         (finish_enum): Only push on struct_types if warn_cxx_compat.
17455         (declspecs_add_type): Add loc parameter.  Change all callers.
17456         Change all error calls to error_at.  Pass loc, not input_location,
17457         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
17458         defined in a struct.  If -Wc++-compat and parsing a struct, record
17459         that a typedef name was used.
17460         * c-parser.c (c_parser_declspecs): Get location to pass to
17461         declspecs_add_type.
17462         (c_parser_struct_or_union_specifier): Update calls to start_struct
17463         and finish_struct.
17464         * c-tree.h (struct c_struct_parse_info): Declare.
17465         (finish_struct, start_struct): Update declarations.
17466         (declspecs_add_type): Update declaration.
17467
17468 2009-06-19  Ian Lance Taylor  <iant@google.com>
17469
17470         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
17471         variable with an anonymous type.
17472
17473 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17474
17475         * see.c: Remove for real.
17476
17477 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17478
17479         * optabs.h (enum optab_index): Add new OTI_significand.
17480         (significand_optab): Define corresponding macro.
17481         * optabs.c (init_optabs): Initialize significand_optab.
17482         * genopinit.c (optabs): Implement significand_optab using
17483         significand?f2 patterns.
17484         * builtins.c (expand_builtin_mathfn): Handle
17485         BUILT_IN_SIGNIFICAND{,F,L}.
17486         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
17487         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
17488
17489         * config/i386/i386.md (significandxf2, significand<mode>2): New
17490         expanders to implement significandf, significand and significandl
17491         built-ins as inline x87 intrinsics.
17492
17493 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
17494
17495         * config/avr/avr.c (avr_override_options): Remove setting value of
17496         PARAM_INLINE_CALL_COST.
17497
17498 2009-06-18  Richard Henderson  <rth@redhat.com>
17499
17500         PR 40488
17501         * tree-pass.h (TDF_ASMNAME): New.
17502         * tree-dump.c (dump_options): Add asmname.
17503         * doc/invoke.texi: Document it.
17504
17505         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
17506         (dump_decl_name): ...here.
17507         (dump_function_name): New flags arg; mind TDF_ASMNAME.
17508         (dump_generic_node): Update dump_function_name calls.
17509         (print_call_name): New flags arg; update all dump calls.
17510         * diagnostic.h (print_call_name): Update.
17511         * gimple-pretty-print.c (dump_gimple_call): Update.
17512
17513 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17514
17515         PR target/40470
17516         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
17517
17518 2009-06-18  Diego Novillo  <dnovillo@google.com>
17519
17520         * doc/plugins.texi: Document plugin_is_GPL_compatible.
17521         * plugin.c (str_license): Declare.
17522         (try_init_one_plugin): Assert that the symbol
17523         'plugin_is_GPL_compatible' exists.
17524
17525 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
17526
17527         * see.c: Remove.
17528         * Makefile.in (OBJS-common): Remove see.o.
17529         (see.o): Remove.
17530         * common.opt (fsee): Mark as preserved for backward compatibility.
17531         * opts.c (common_handle_option): Add OPT_fsee to the backward
17532         compatibility section.
17533         * passes.c (init_optimization_passes, pass_see): Remove pass.
17534         * timevar.def (TV_SEE): Remove.
17535         * tree-pass.h (pass_see): Remove declaration.
17536         * doc/invoke.texi (-fsee): Remove documentation.
17537
17538 2009-06-18  Martin Jambor  <mjambor@suse.cz>
17539
17540         * tree-sra.c: Include statistics.h
17541         (sra_stats): New variable.
17542         (sra_initialize): Clear sra_stats.
17543         (create_access_replacement): Increment sra_stats.replacements.
17544         (get_access_replacement): Do not return twice.
17545         (analyze_all_variable_accesses): Increment statistics counter by the
17546         number of scalarized aggregates.
17547         (generate_subtree_copies): Increment sra_stats.subtree_copies.
17548         (sra_modify_expr): Increment sra_stats.exprs.
17549         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
17550         (sra_modify_assign): Increment sra_stats.exprs,
17551         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
17552         (perform_intra_sra): Update statistics counters.
17553         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
17554
17555 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17556
17557         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
17558         (arm_scalar_mode_supported_p): New function.
17559
17560 2009-06-18  Paul Brook  <paul@codesourcery.com>
17561             Sandra Loosemore  <sandra@codesourcery.com>
17562
17563         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
17564         (__extendhfsf2, __truncsfhf2): Define.
17565         * config/arm/fp16.c: New file.
17566         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
17567         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
17568
17569 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17570
17571         * doc/extend.texi (Half-Precision): New section.
17572         * doc/invoke.texi (Option Summary): List -mfp16-format.
17573         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
17574         * config/arm/arm.opt (mfp16-format=): New.
17575         * config/arm/arm.c: Include intl.h.
17576         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
17577         (TARGET_INVALID_RETURN_TYPE): Redefine.
17578         (TARGET_PROMOTED_TYPE): Redefine.
17579         (TARGET_CONVERT_TO_TYPE): Redefine.
17580         (arm_fp16_format): Define.
17581         (all_fpus): Add entry for neon-fp16.
17582         (fp_model_for_fpu): Likewise.
17583         (struct fp16_format): Declare.
17584         (all_fp16_formats): Define.
17585         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
17586         functions.
17587         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
17588         and no ldrh.
17589         (arm_legitimate_index_p): Treat HFmode like HImode.
17590         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
17591         (coproc_secondary_reload_class): Special-case HFmode.
17592         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
17593         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
17594         (arm_init_fp16_builtins): New.
17595         (arm_init_builtins): Call it.
17596         (arm_invalid_parameter_type): New.
17597         (arm_invalid_return_type): New.
17598         (arm_promoted_type): New.
17599         (arm_convert_to_type).
17600         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
17601         format.
17602         (arm_emit_fp16_const): New function.
17603         (arm_mangle_type): Mangle __fp16 as "Dh".
17604         * config/arm/arm.h (TARGET_VFPD32): Make it know about
17605         FPUTYPE_NEON_FP16.
17606         (TARGET_NEON_FP16): New.
17607         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
17608         (enum fputype): Add FPUTYPE_NEON_FP16.
17609         (enum arm_fp16_format_type): Declare.
17610         (arm_fp16_format): Declare.
17611         (LARGEST_EXPONENT_IS_NORMAL): Define.
17612         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
17613         * config/arm/arm-modes.def (HFmode): Define.
17614         * config/arm/vfp.md (*movhf_vfp): New.
17615         (extendhfsf2): New.
17616         (truncsfhf2): New.
17617         * config/arm/arm.md (fpu): Add neon_fp16.
17618         (floatsihf2, floatdihf2): New.
17619         (fix_trunchfsi2, fix_trunchfdi2): New.
17620         (truncdfhf2): New.
17621         (extendhfdf2): New.
17622         (movhf): New.
17623         (*arm32_movhf): New.
17624         (*thumb1_movhf): New.
17625         (consttable_2): Add check for HFmode constants.
17626         (consttable_4): Handle HFmode constants.
17627
17628 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
17629
17630         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
17631
17632 2009-06-17  Olivier Hainque  <hainque@adacore.com>
17633
17634         * collect2.c (main): Use CONST_CAST2 to perform char ** to
17635         const char ** conversion in AIX specific section.
17636
17637 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
17638
17639         * config/i386/i386.c (ix86_special_builtin_type): Remove
17640         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
17641         (bdesc_special_args): Updated.
17642         (ix86_init_mmx_sse_builtins): Likewise.
17643         (ix86_expand_special_args_builtin): Likewise.
17644
17645 2009-06-17  Richard Henderson  <rth@redhat.com>
17646
17647         * tree-pretty-print.c (maybe_dump_asm_name): New.
17648         (dump_decl_name): Use it.
17649         (PRINT_FUNCTION_NAME): Merge into...
17650         (dump_function_name): ... here.  Use maybe_dump_asm_name.
17651
17652 2009-06-17  Cary Coutant  <ccoutant@google.com>
17653
17654         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
17655         Change caller.
17656         * debug.c (struct gcc_debug_hooks): Change placeholder for
17657         source_line hook.
17658         (debug_nothing_int_charstar_int): Replaced by...
17659         (debug_nothing_int_charstar_int_bool): ...this.
17660         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
17661         source_line prototype.
17662         (debug_nothing_int_charstar_int): Replaced by...
17663         (debug_nothing_int_charstar_int_bool): ...this.
17664         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
17665         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
17666         Output is_stmt operand when necessary.
17667         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
17668         (notice_source_line): Add is_stmt parameter.
17669         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
17670         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
17671         Change callers.
17672         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
17673         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
17674
17675 2009-06-17  Ian Lance Taylor  <iant@google.com>
17676
17677         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
17678         Change all uses.
17679         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
17680         call uses.
17681
17682 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
17683
17684         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
17685         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
17686         tree_strip_sign_nop_conversions and
17687         tree_ssa_strip_useless_type_conversions rather than stripping
17688         the operations here.
17689         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
17690         Declare them.
17691         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
17692         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
17693         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
17694         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
17695         functions.
17696
17697 2009-06-17  Michael Eager  <eager@eagercon.com>
17698
17699         * config/rs6000/constraints.md (register_constraint "d"): New.
17700         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
17701         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17702         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
17703         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
17704         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17705         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
17706         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
17707         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
17708         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
17709         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
17710         __fctiwz): Same.
17711         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
17712         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
17713         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
17714         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
17715         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
17716         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
17717         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
17718         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
17719         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
17720         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
17721         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
17722         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
17723         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
17724         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
17725
17726 2009-06-16  Ian Lance Taylor  <iant@google.com>
17727
17728         * profile.c (total_num_never_executed): Don't define.
17729         (compute_branch_probabilities): Don't count or print
17730         num_never_executed.
17731         (init_branch_prob): Don't set total_num_never_executed.
17732         (end_branch_prob): Don't print total_num_never_executed.
17733
17734 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
17735
17736         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
17737
17738 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
17739
17740         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
17741         (nabstd2_fpr): Same.
17742
17743 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
17744
17745         * expr.c (expand_assignment): Change complex type check.
17746
17747 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
17748
17749         * doc/plugins.texi (Building GCC plugins): Added new section.
17750
17751 2009-06-17  Ian Lance Taylor  <iant@google.com>
17752
17753         * c-pch.c (get_ident): Don't set size of templ array.
17754         (pch_init): Don't set size of partial_pch array.
17755
17756         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
17757         string constant to intialize an array whose size is the length of
17758         the string.
17759
17760 2009-06-17  Richard Guenther  <rguenther@suse.de>
17761
17762         PR tree-optimization/40389
17763         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
17764         to addressable types.
17765         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
17766
17767 2009-06-17  Richard Guenther  <rguenther@suse.de>
17768
17769         PR middle-end/40460
17770         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
17771         if there is no evolution of left in the loop bail out.
17772         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
17773         chrec_fold_multiply.
17774
17775 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
17776             Janis Johnson  <janis187@us.ibm.com>
17777
17778         PR target/39254
17779         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
17780         for the symbol ref of a constant that is the source of a move
17781         - nor for any other not-obvious-label-ref constants.
17782
17783 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
17784
17785         * plugin.c (position_pass): Skip newly inserted pass during list
17786         traversal to avoid repeated insertion.
17787
17788 2009-06-16  Ian Lance Taylor  <iant@google.com>
17789
17790         * vec.h (VEC_stack_alloc): Define different version if
17791         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
17792         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
17793         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
17794         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17795
17796 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
17797
17798         * config.gcc (extra_headers): Add ia32intrin.h for x86.
17799
17800         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
17801         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
17802         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
17803         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
17804         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
17805         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17806         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17807         (bdesc_special_args): Add __builtin_ia32_rdtsc and
17808         __builtin_ia32_rdtscp.
17809         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
17810         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
17811         and __builtin_ia32_rorhi.
17812         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
17813         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17814         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17815         (ix86_expand_args_builtin): Likewise.
17816         (ix86_expand_special_args_builtin): Likewise.
17817
17818         * config/i386/i386.md (UNSPECV_RDTSCP): New.
17819         (UNSPECV_RDTSC): Likewise.
17820         (UNSPECV_RDPMC): Likewise.
17821         (*bsr): Renamed to ...
17822         (bsr): This
17823         (*bsr_rex64): Renamed to ...
17824         (bsr_rex64): This.
17825         (rdpmc): New.
17826         (*rdpmc): Likewise.
17827         (*rdpmc_rex64): Likewise.
17828         (rdtsc): Likewise.
17829         (*rdtsc): Likewise.
17830         (*rdtsc_rex64): Likewise.
17831         (rdtscp): Likewise.
17832         (*rdtscp): Likewise.
17833         (*rdtscp_rex64): Likewise.
17834
17835         * config/i386/ia32intrin.h: New.
17836
17837         * config/i386/x86intrin.h: Include <ia32intrin.h>.
17838
17839 2009-06-16  Ian Lance Taylor  <iant@google.com>
17840
17841         * ira-build.c (copy_info_to_removed_store_destinations):
17842         Initialize parent_a.
17843
17844 2009-06-16  Ian Lance Taylor  <iant@google.com>
17845
17846         * c-decl.c (grokdeclarator): Change size_varies to bool.
17847
17848 2009-06-16  Ian Lance Taylor  <iant@google.com>
17849
17850         * sel-sched.c: Make forward declarations of move_op_hooks and
17851         fur_hooks explicitly extern.
17852
17853 2009-06-16  Ian Lance Taylor  <iant@google.com>
17854
17855         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
17856         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
17857
17858 2009-06-16  Ian Lance Taylor  <iant@google.com>
17859
17860         * resource.c (mark_referenced_resources): Change
17861         include_delayed_effects parameter to bool.  Change all callers.
17862         (mark_end_of_function_resources): Likewise.
17863         * reorg.c (insn_references_resource_p): Likewise.
17864         (insn_sets_resource_p): Likewise.
17865         * resource.h (mark_referenced_resources): Update declaration.
17866         (mark_end_of_function_resources): Update declaration.
17867
17868 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
17869
17870         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
17871
17872 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
17873
17874         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
17875         GCC can bootstrap on AIX with GNU Binutils 2.20.
17876
17877 2009-06-16  Ian Lance Taylor  <iant@google.com>
17878
17879         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
17880
17881 2009-06-16  Ian Lance Taylor  <iant@google.com>
17882
17883         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
17884         inline, not extern inline.
17885         (exact_log2): Likewise.
17886         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
17887         test CLZ_HWI.
17888         (exact_log2): Likewise, but don't test CTZ_HWI.
17889
17890 2009-06-16  Ian Lance Taylor  <iant@google.com>
17891
17892         * bitmap.c (bitmap_clear): Don't declare as inline.
17893         * gimple.c (gimplify_assign): Likewise.
17894         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17895         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
17896         (sched_scan_info): Remove duplicate definition.
17897
17898 2009-06-16  Ian Lance Taylor  <iant@google.com>
17899
17900         * c-common.c (skip_evaluation): Don't define.
17901         (c_inhibit_evaluation_warnings): Define global variable.
17902         (overflow_warning): Check c_inhibit_evaluation_warnings rather
17903         than skip_evaluation.
17904         (convert_and_check, warn_for_div_by_zero): Likewise.
17905         * c-common.h (skip_evaluation): Don't declare.
17906         (c_inhibit_evaluation_warnings): Declare.
17907         * c-parser.c (c_parser_typeof_specifier): Set
17908         c_inhibit_evaluation_warnings rather than skip_evaluation.
17909         (c_parser_conditional_expression): Likewise.
17910         (c_parser_binary_expression): Likewise.
17911         (c_parser_sizeof_expression): Likewise.
17912         (c_parser_alignof_expression): Likewise.
17913         * c-typeck.c (build_indirect_ref): Check
17914         c_inhibit_evaluation_warnings rather than skip_evaluation.
17915         (build_conditional_expr, build_binary_op): Likewise.
17916
17917 2009-06-16  Richard Guenther  <rguenther@suse.de>
17918
17919         * tree-ssa-alias.c (is_escape_site): Remove.
17920         * tree-ssa-alias.h (enum escape_type): Remove.
17921         (is_escape_site): Likewise.
17922         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
17923         via casts and asms without deferring to is_escape_site.
17924
17925 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
17926
17927         PR middle-end/40446
17928         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
17929         use gen_lowpart if op0 has complex mode.
17930
17931 2009-06-16  Richard Guenther  <rguenther@suse.de>
17932
17933         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
17934         variables add them to ESCAPED.
17935         (find_func_aliases): Do not make all indirectly stored values escaped.
17936
17937 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
17938
17939         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
17940         make_decl_one_only.
17941
17942 2009-06-16  Martin Jambor  <mjambor@suse.cz>
17943
17944         PR tree-optimization/40432
17945         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
17946         check whether we need to force gimple register operand.
17947
17948 2009-06-16  Martin Jambor  <mjambor@suse.cz>
17949
17950         PR tree-optimization/40413
17951         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
17952         build_ref_for_offset.
17953         (propagate_subacesses_accross_link): Fix a typo in a comment.
17954
17955 2009-06-16  Ira Rosen  <irar@il.ibm.com>
17956
17957         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
17958         with additional parameter.
17959         * tree-vectorizer.h (enum vect_def_type): Add new value
17960         vect_nested_cycle.
17961         (enum vect_relevant): Add comments.
17962         (vect_is_simple_reduction): Add new argument.
17963         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
17964         Detect nested cycles.
17965         (vect_is_simple_reduction): Update documentation, add an argument to
17966         distinguish inner-loop reduction from nested cycle, detect nested
17967         cycles, fix printings and indentation, don't swap operands in case
17968         of nested cycle.
17969         (get_initial_def_for_reduction): Handle subtraction.
17970         (vect_create_epilog_for_reduction): Add new argument to specify
17971         reduction variable.
17972         (vect_finalize_reduction): Handle subtraction, fix comments.
17973         (vectorizable_reduction): Handle nested cycles. In case of nested
17974         cycle keep track of the reduction variable position. Call
17975         vect_is_simple_reduction with additional parameter. Use original
17976         statement code in reduction epilogue for nested cycle. Call
17977         vect_create_epilog_for_reduction with additional parameter.
17978         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
17979         inner-loop vectorization.
17980         (vect_recog_widen_sum_pattern): Likewise.
17981         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
17982         and reductions.
17983         (vect_mark_stmts_to_be_vectorized): Likewise.
17984         (vect_get_vec_def_for_operand): Handle nested cycles.
17985
17986 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17987
17988         * doc/invoke.texi (Debugging Options): Fix option index entries
17989         for -fdump-statistics, -frandom-seed add entries for
17990         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
17991         (FRV Options): Fix entries for -mTLS, -mtls.
17992         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
17993         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
17994         (M68hc1x Options): Fix @itemx for -mnominmax.
17995         (MCore Options): Fix entry for -mno-lsim.
17996         (MMIX Options): Fix entry for -mabi=mmixware.
17997         (PDP-11 Options): Fix entry for -mbcopy-builtin.
17998
17999 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
18000
18001         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
18002         Mention the plugin mode of gengtype.
18003         * doc/gty.texi (Source Files Containing Type Information): Likewise.
18004         * gengtype.c: Updated copyright.
18005         (plugin_files, nb_plugin_files) Added new static variables.
18006         (measure_input_list) Care about plugin_files.
18007         (write_rtx_next): Added early return in plugin mode.
18008         (create_file): Updated copyright year in generated file. Added
18009         asserts.
18010         (oprintf): Added early return if NULL outf.
18011         (get_output_file_with_visibility): Care of plugin_files.
18012         (get_output_file_name): May return null.
18013         (write_local): Added early return.
18014         (put_mangled_filename): Ditto.
18015         (finish_root_table): Added check for base_files.
18016         (write_roots): Care about null when plugins.
18017         (main): Added plugin mode.
18018
18019 2009-06-15  Ian Lance Taylor  <iant@google.com>
18020
18021         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
18022         * gcov.c (read_count_file): Add braces around variables declared
18023         before label.
18024
18025         * c.opt (Wjump-misses-init): New warning.
18026         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
18027         -Wall and -Wc++-compat if not already set.
18028         (c_common_post_options): Clear warn_jump_misses_init if it was not
18029         set.
18030         * c-decl.c (struct c_binding): Change type field to a union with
18031         new label field.  Make it the first field in the struct.  Update
18032         references to type to use u.type instead.
18033         (struct c_spot_bindings): Define.
18034         (struct c_goto_bindings): Define.
18035         (c_goto_bindings_p): Define, along with VECs.
18036         (struct c_label_vars): Define.
18037         (struct c_scope): Add has_label_bindings field.
18038         (bind_label, set_spot_bindings): New static functions.
18039         (decl_jump_unsafe, update_spot_bindings): New static functions.
18040         (update_label_decls): New static function.
18041         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
18042         Update binding u.label field to shadowed field.
18043         (c_binding_start_stmt_expr): New function.
18044         (c_binding_end_stmt_expr): New function.
18045         (pushdecl): Don't call c_begin_vm_scope.
18046         (make_label): Add defining and p_label_vars parameters.  Change
18047         all callers.
18048         (lookup_label): Correct test for whether a label has not yet been
18049         defined.  Call bind_label rather than bind.
18050         (warn_about_goto): New static function.
18051         (lookup_label_for_goto): New function.
18052         (declare_label): Call bind_label rather than bind.
18053         (check_earlier_gotos): New static function.
18054         (define_label): Don't give errors about jumping into statement
18055         expressions or scopes of variably modified types.  Call
18056         set_spot_bindings and check_earlier_gotos.  Call bind_label
18057         instead of bind.  Don't set label_context_stack_se or
18058         label_context_stack_vm.
18059         (c_get_switch_bindings): New function.
18060         (c_release_switch_bindings): New function.
18061         (c_check_switch_jump_warnings): New function.
18062         (start_function): Don't set label_context_stack_se or
18063         label_context_stack_vm.
18064         (finish_function): Likewise.
18065         * c-typeck.c (label_context_stack_se): Don't define.
18066         (label_context_stack_vm): Don't define.
18067         (c_finish_goto_label): Call lookup_label_for_goto rather than
18068         lookup_label.  Don't give errors about jumping into a statement
18069         expression or the scope of a variably modified type.  Don't set
18070         label_context_stack_se or label_context_stack_vm.
18071         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
18072         fields.  Add bindings field.
18073         (c_start_case): Don't set deleted fields.  Set bindings field.
18074         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
18075         or blocked_vm.  Call c_check_switch_jump_warnings.
18076         (c_finish_case): Don't test blocked_stmt_expr field.  Call
18077         c_release_switch_bindings.
18078         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
18079         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18080         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
18081         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
18082         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18083         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
18084         (c_begin_vm_scope, c_end_vm_scope): Don't define.
18085         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
18086         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
18087         (C_DECL_UNJUMPABLE_VM): Don't define.
18088         (C_DECL_UNDEFINABLE_VM): Don't define.
18089         (struct c_label_list): Don't define.
18090         (struct c_label_context_se): Don't define.
18091         (struct c_label_context_vm): Don't define.
18092         (struct c_spot_bindings): Declare.
18093         (c_bindings_start_stmt_expr): Declare.
18094         (c_bindings_end_stmt_expr): Declare.
18095         (lookup_label_for_goto): Declare.
18096         (c_get_switch_bindings, c_release_switch_bindings): Declare.
18097         (c_check_switch_jump_warnings): Declare.
18098         (label_context_stack_se, label_context_stack_vm): Don't declare.
18099         (c_finish_goto_label): Update declaration.
18100         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
18101         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
18102         (Warning Options): Document -Wjump-misses-init.
18103
18104 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
18105
18106         * tree-object-size.c (addr_object_size): Fix a pasto in the last
18107         change.
18108
18109 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18110
18111         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
18112
18113 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18114
18115         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
18116
18117 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18118
18119         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
18120
18121 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18122
18123         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
18124         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18125         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
18126         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
18127         * dwarf2asm.c (dw2_force_const_mem): Update call to
18128         make_decl_one_only.
18129         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
18130         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
18131         * langhooks.c (lhd_comdat_group): Remove.
18132         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
18133         * tree.h (DECL_COMDAT_GROUP): New.
18134         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
18135         (tree_decl_with_vis): Add comdat_group. Remove one_only.
18136         (make_decl_one_only): Change signature.
18137         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
18138         make_decl_one_only.
18139         (make_decl_one_only): Change signature.
18140         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
18141
18142 2009-06-15  Richard Guenther  <rguenther@suse.de>
18143
18144         PR middle-end/40439
18145         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
18146
18147 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18148
18149         * tree-ssa-math-opts.c: Remove extra divide.
18150
18151 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18152
18153         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
18154
18155 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18156
18157         * passes.c: Add bswap pass.
18158         * tree-pass.h: Add pass_optimize_bswap declaration.
18159         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
18160         Include rtl.h, expr.h and optabs.h for optab_handler check.
18161         (struct symbolic_number, pass_optimize_bswap): New definition.
18162         (do_shift_rotate, verify_symbolic_number_p): New functions.
18163         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
18164         (gate_optimize_bswap): New function.
18165         * tree.c (widest_int_cst_value): New function.
18166         * tree.h (widest_int_cst_value): Prototype added.
18167
18168 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
18169
18170         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
18171         REG_EQUAL/REG_EQUIV notes.
18172
18173 2009-06-14  Richard Guenther  <rguenther@suse.de>
18174
18175         PR middle-end/40389
18176         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
18177         has its address taken if NRV was applied and it is addressable.
18178         * tree-ssa-structalias.c (get_constraint_for_address_of): New
18179         function split out from ...
18180         (get_constraint_for_1): ... here.
18181         (handle_rhs_call): Use it to mark the return slot escaped if
18182         it is addressable and NRV was applied.
18183
18184 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18185
18186         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
18187         Change first argument type to location_t.
18188         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
18189         Do not set input_location.
18190         Use loc instead of input_location throughout.
18191
18192 2009-06-13  Richard Guenther  <rguenther@suse.de>
18193
18194         PR tree-optimization/40421
18195         * tree-predcom.c (should_unroll_loop_p): Remove.
18196         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
18197
18198 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18199
18200         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18201         Add location argument.
18202
18203 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18204
18205         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
18206         build_decl.
18207         * config/s390/s390.c (s390_build_builtin_va_list): Same.
18208         (s390_gimplify_va_arg): Pass location to create_artificial_label.
18209         * config/spu/spu-protos.h: Add location to
18210         spu_resolve_overloaded_builtin.
18211         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
18212         spu_build_builtin_va_list.
18213         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
18214         argument.  Pass location to build_function_call_vec.
18215         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
18216         build_decl.
18217         (emit_fpu_switch): Same.
18218         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
18219         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
18220         to build_decl and create_artificial_label.
18221         (xtensa_gimplify_va_arg_expr): Same.
18222         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
18223         (xstormy16_gimplify_va_arg_expr): Same.
18224         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
18225         * config/arm/arm.c (arm_build_builtin_va_list): Same.
18226         * config/mips/mips.c (mips_build_builtin_va_list): Same.
18227         (mips16_build_function_stub): Same.
18228         (mips16_build_call_stub): Same.
18229
18230 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
18231
18232         PR target/40327
18233         * arm/constraints.md (Pa, Pb): New constraints.
18234         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
18235         split pattern to deal with them.
18236
18237 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
18238
18239         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
18240         fix index entry for -Xpreprocessor.
18241
18242 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18243
18244         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18245         Add location argument to build_decl call.
18246         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
18247         (rs6000_init_builtins): Same.
18248         (spe_init_builtins): Same.
18249         (rs6000_gimplify_va_arg): Add location argument to
18250         create_artificial_label call.
18251
18252 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
18253
18254         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
18255         * combine-stack-adj.c (pass_stack_adjustments): Use it.
18256         * Makefile.in: Fix GGC dependency for gcse.o.
18257
18258 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18259
18260         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
18261         * gimple-pretty-print.c (dump_gimple_stmt): Same.
18262         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
18263         created.
18264         * c-parser.c (c_parser_binary_expression): Use current column while
18265         building binary operations.
18266         * common.opt (fshow-column): Enable by default.
18267         * tree-vrp.c (check_array_ref): Use warning_at.
18268         (check_array_bounds): Use location from call back if expr has no
18269         location.
18270         * tree.h: Add location argument to maybe_fold_*.
18271         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
18272         (maybe_fold_offset_to_array_ref): Add location argument and use it.
18273         (maybe_fold_offset_to_component_ref): Same.
18274         (maybe_fold_offset_to_reference): Same.
18275         (maybe_fold_offset_to_address): Same.
18276         (maybe_fold_stmt_indirect): Same.
18277         (maybe_fold_stmt_addition): Same.
18278         (fold_stmt_r): Pass location to maybe_fold_*.
18279         (fold_gimple_assign): Same.
18280         * c-tree.h: Add location argument to finish_decl,
18281         default_function_array_conversion, store_init_value.
18282         * c-decl.c (define_label): Use error_at.
18283         (c_make_fname_decl): Pass location to finish_decl.
18284         (finish_decl): New location argument.
18285         (build_compound_literal): Pass location to store_init_value.
18286         (grokdeclarator): Pass location to finish_decl.
18287         (grokfield): Same.
18288         * c-typeck.c (array_to_pointer_conversion): New location argument.
18289         (function_to_pointer_conversion): Same.
18290         (default_function_array_conversion): Same.
18291         (parser_build_unary_op): Pass location to overflow_warning.
18292         (parser_build_binary_op): Same.  Use warning_at.
18293         (build_unary_op): Pass location to array_to_pointer_conversion.
18294         (build_c_cast): Pass location to digest_init.
18295         (build_modify_expr): New location argument.
18296         (convert_for_assignment): Same.
18297         (store_init_value): Same.
18298         (digest_init): Same.
18299         (output_init_element): Pass location to digest_init and
18300         array_to_pointer_conversion.
18301         (c_finish_return): Pass location to convert_for_assignment.
18302         * gimplify.c (gimplify_conversion): Pass location to
18303         maybe_fold_offset_to_address.
18304         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
18305         to maybe_fold_stmt_addition.
18306         * c-omp.c (c_finish_omp_atomic): Pass new location to
18307         build_modify_expr.
18308         (c_finish_omp_for): Same.
18309         * c-common.c (overflow_warning): New argument.
18310         * c-common.h: New argument to build_modify_expr, overflow_warning.
18311         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
18312         finish_decl.
18313         (c_parser_initializer): Pass location to
18314         default_function_array_conversion.
18315         (c_parser_initelt): Same.
18316         (c_parser_initval): Same.
18317         (c_parser_asm_operands): Same.
18318         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
18319         (c_parser_conditional_expression): Same.
18320         (c_parser_binary_expression): Add location info to stack.  Use it.
18321         (c_parser_unary_expression): Pass location to
18322         default_function_array_conversion, parser_build_unary_op,
18323         build_indirect_ref, c_parser_postfix_expression_after_primary.
18324         (c_parser_postfix_expression_after_primary): New location argument.
18325         Use it.
18326         (c_parser_expression_conv): Pass location to
18327         default_function_array_conversion.
18328         (c_parser_expr_list): Same.
18329         (c_parser_omp_atomic): Same.
18330         (c_parser_omp_for_loop): Same.
18331         * c-tree.h (struct c_declarator): Add comment to id_loc.
18332         (build_array_declarator): New argument.
18333         * c-decl.c (build_array_declarator): Add location argument.
18334         (grokdeclarator): Set id_loc for cdk_array.
18335         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
18336         build_array_declarator.
18337         * tree.c (build_omp_clause): Add location argument.
18338         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
18339         (OMP_CLAUSE_LOCATION): New macro.
18340         (struct tree_omp_clause): Add location field.
18341         (build_omp_clause): Add argument.
18342         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
18343         build_omp_clause.
18344         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
18345         (cp_parser_omp_clause_collapse): Same.
18346         (cp_parser_omp_clause_default): Same.
18347         (cp_parser_omp_clause_if): Same.
18348         (cp_parser_omp_clause_nowait): Same.
18349         (cp_parser_omp_clause_num_threads): Same.
18350         (cp_parser_omp_clause_ordered): Same.
18351         (cp_parser_omp_clause_schedule): Same.
18352         (cp_parser_omp_clause_untied): Same.
18353         (cp_parser_omp_for_loop): Same.
18354         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18355         * c-tree.h (c_start_case): Add location argument.
18356         (c_process_expr_stmt): Same.
18357         (c_finish_goto_*): Same.
18358         * tree-parloops.c (initialize_reductions): Pass location to
18359         build_omp_clause.
18360         (create_parallel_loop): Same.
18361         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
18362         (gfc_trans_omp_reduction_list): Same.
18363         (gfc_trans_omp_clauses): Same.
18364         (gfc_trans_omp_do): Same.
18365         * c-typeck.c (c_finish_goto_label): Same.
18366         (c_finish_goto_ptr): New location argument.
18367         (c_start_case): Same.
18368         (emit_side_effect_warnings): Same.
18369         (c_process_expr_stmt): Same.
18370         (c_finish_stmt_expr): Same.
18371         (c_finish_omp_clauses): Use error_at instead of error.
18372         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
18373         build_omp_clause.
18374         * c-omp.c (c_split_parallel_clauses): New location argument.
18375         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
18376         to build_omp_clause.
18377         (convert_local_reference_stmt): Same.
18378         (convert_gimple_call): Same.
18379         * c-common.h (c_split_parallel_clauses): New argument.
18380         * c-parser.c (c_parser_statement_after_labels): Pass location to
18381         c_finish_goto_label.
18382         (c_parser_switch_statement): Pass location to c_start_case.
18383         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
18384         and c_process_expr_stmt.
18385         (c_parser_omp_variable_list): Add location argument.
18386         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
18387         (c_parser_omp_clause_default): Same.
18388         (c_parser_omp_clause_if): Same.
18389         (c_parser_omp_clause_num_threads): Same.
18390         (-c_parser_omp_clause_ordered): Same.
18391         (c_parser_omp_clause_reduction): Pass location to
18392         c_parser_omp_variable_list.
18393         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
18394         (c_parser_omp_clause_untied): Same.
18395         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
18396         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18397
18398         * c-tree.h (check_for_loop_decls, undeclared_variable,
18399         build_component_ref, build_array_ref, build_external_ref,
18400         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
18401         build_conditional_expr, build_compound_expr, c_cast_expr,
18402         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
18403         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
18404         argument.
18405         * c-semantics.c (build_stmt): Same.
18406         (build_case_label): Same.
18407         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
18408         (undeclared_variable): New argument.
18409         (make_label): Same.
18410         (lookup_label): Pass location on down.
18411         (define_label): Same.
18412         (finish_decl): Same.
18413         (build_compound_literal): Same.
18414         (finish_struct): Same.
18415         (finish_function): Do not set location here.
18416         (check_for_loop_decls): New argument.
18417         * tree.c (save_expr): Set location.
18418         (build_empty_stmt): New argument.
18419         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
18420         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
18421         * builtins.c (gimplify_va_arg_expr): Use locations.
18422         (expand_builtin_sync_operation): Same.
18423         * c-typeck.c (build_component_ref): New argument.
18424         (build_array_ref): Same.
18425         (build_external_ref): Same.
18426         (c_expr_sizeof_expr): Same.
18427         (c_expr_sizeof_type): Same.
18428         (parser_build_unary_op): Same.
18429         (build_conditional_expr): Same.
18430         (build_compound_expr): Pass location on down.
18431         (build_compound_expr): New argument.
18432         (build_c_cast): Same.
18433         (c_cast_expr): Same.
18434         (build_asm_expr): Same.
18435         (c_finish_return): Same.
18436         (c_process_expr_stmt): Pass location on down.
18437         (c_finish_stmt_expr): New argument.
18438         (push_clenaup): Same.
18439         (c_finish_omp_parallel): Same.
18440         (c_finish_omp_task): Same.
18441         * gimplify.c (gimplify_call_expr): Pass location on down.
18442         * c-omp.c (c_finish_omp_master): New argument.
18443         (c_finish_omp_critical): Same.
18444         (c_finish_omp_ordered): Same.
18445         (c_finish_omp_barrier): Same.
18446         (-c_finish_omp_taskwait): Same.
18447         (c_finish_omp_atomic): Same.
18448         (c_finish_omp_flush): Same.
18449         * tree-inline.c (copy_tree_body_r): Pass location on down.
18450         (inline_forbidden_p): Remove use of input_location.
18451         * c-gimplify.c (c_build_bind_expr): New argument.
18452         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
18453         (c_sizeof_or_alignof_type): New argument.
18454         (c_alignof_expr): Same.
18455         (build_va_arg): Same.
18456         (c_add_case_label): Same.
18457         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
18458         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
18459         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
18460         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
18461         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
18462         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
18463         New argument.
18464         * stub-objc.c (objc_build_selector_expr): Same.
18465         (objc_build_throw_stmt): Same.
18466         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
18467         (c_parser_initelt): Same.
18468         (c_parser_compound_statement): Same.
18469         (c_parser_compound_statement_nostart): Same.
18470         (c_parser_label): Same.
18471         (c_parser_statement_after_labels): Same.
18472         (c_parser_if_body): Same.
18473         (c_parser_else_body): Same.
18474         (c_parser_if_statement): Same.
18475         (c_parser_switch_statement): Same.
18476         (c_parser_while_statement): Same.
18477         (c_parser_do_statement): Same.
18478         (c_parser_for_statement): Same.
18479         (c_parser_asm_statement): Same.
18480         (c_parser_conditional_expression): Same.
18481         (c_parser_binary_expression): Same.
18482         (c_parser_cast_expression): Same.
18483         (c_parser_unary_expression): Same.
18484         (c_parser_sizeof_expression): Same.
18485         (c_parser_alignof_expression): Same.
18486         (c_parser_postfix_expression): Same.
18487         (c_parser_expression): Same.
18488         (c_parser_objc_receiver): Same.
18489         (c_parser_omp_variable_list): Same.
18490         (c_parser_omp_structured_block): Same.
18491         (c_parser_omp_atomic): New argument.
18492         (c_parser_omp_barrier): Same.
18493         (c_parser_omp_critical): Same.
18494         (c_parser_omp_flush): Pass location on down.
18495         (c_parser_omp_for_loop): New argument.
18496         (c_parser_omp_for): Same.
18497         (c_parser_omp_master): Same.
18498         (c_parser_omp_ordered): Same.
18499         (c_parser_omp_sections_scope): Same.
18500         (c_parser_omp_sections): Same.
18501         (c_parser_omp_parallel): Same.
18502         (c_parser_omp_single): Same.
18503         (c_parser_omp_task): Same.
18504         (c_parser_omp_taskwait): Pass location on down.
18505         (c_parser_omp_construct): Same.
18506         (c_parser_omp_threadprivate): Same.
18507         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
18508         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
18509         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
18510         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
18511         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
18512         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
18513         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
18514         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
18515         config/i386/i386.c, stmt.c:
18516         Add location argument to the following function definitions and/or
18517         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
18518         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
18519         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
18520         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
18521         do_case, c_finish_bc_stmt, build_compound_literal,
18522         build_function_call.
18523         * c-decl.c (build_compound_literal): Add location argument.
18524         Make all diagnostic calls use location.
18525         (start_struct): Same.
18526         (finish_struct): Same.
18527         (start_enum): Same.
18528         (build_enumerator): Same.
18529         (start_function): Same.
18530         (grokdeclarator): Make all diagnostic calls use location.
18531         (store_parm_decls_oldstyle): Same.
18532         * c-typeck.c (build_function_call): Add location argument.
18533         Make all diagnostic calls use location.
18534         (do_case): Same.
18535         (c_finish_bc_stmt): Same.
18536         * tree-nested.c (get_trampoline_type): Add argument.
18537         Pass location to build_decl.
18538         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
18539         * rtl.h (RTL_LOCATION): New.
18540         * c-common.c (c_add_case_label): Add location argument.
18541         Make all diagnostic calls use location.
18542         * c-common.h: Add location argument to make_fname_decl, do_case,
18543         c_add_case_label, build_function_call, resolve_overloaded_builtin.
18544         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
18545         Set it appropriately for every case.  Pass enum_loc to start_enum
18546         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
18547         parser_xref_tag.
18548         (c_parser_struct_or_union_specifier): Save location.  Use it for
18549         start_struct, finish_struct, and parser_xref_tag.
18550
18551 2009-06-12  Ian Lance Taylor  <iant@google.com>
18552
18553         * fold-const.c (fold_unary): Rename local variable and to and_expr.
18554
18555         * c-opts.c (c_common_handle_option): For -Wc++-compat set
18556         cpp_opts->warn_cxx_operator_names.
18557
18558 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18559
18560         PR tree-opt/38865
18561         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
18562         is returns NULL and OP is a VCE, look through the VCE.
18563
18564 2009-06-12  Ian Lance Taylor  <iant@google.com>
18565
18566         PR bootstrap/40430
18567         * collect2.c (main): Use CONST_CAST2 in code inside #if
18568         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
18569
18570 2009-06-12  Joey Ye  <joey.ye@intel.com>
18571
18572         PR middle-end/39146
18573         * cfgexpand.c (get_decl_align_unit): Update
18574         max_used_stack_slot_alignment with align instead of
18575         stack_alignment_needed.
18576
18577         * function.c (assign_stack_local_1): Update
18578         max_used_stack_slot_alignment with alignment_in_bits instead
18579         of stack_alignment_needed.
18580         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
18581         here.
18582
18583 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
18584
18585         * dwarf2out.c (last_var_location_insn): New variable.
18586         (dwarf2out_end_epilogue): Clear last_var_location_insn.
18587         (dwarf2out_var_location): Don't record anything after last real
18588         insn.  Only change labels if there were any real instructions
18589         in between last note and this one, or if changed sections.
18590
18591 2009-06-11  Richard Henderson  <rth@redhat.com>
18592
18593         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
18594         note when storing the frame pointer in a register.
18595         (FRP): Don't redefine to nothing for epilogue.
18596         (alpha_expand_epilogue): Mark register and sp restores.
18597         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
18598
18599         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
18600         when gen_lowpart is needed.
18601
18602 2009-06-11  Richard Henderson  <rth@redhat.com>
18603
18604         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
18605
18606         * dwarf2out.c (need_data_align_sf_opcode): New.
18607         (div_data_align): Move earlier.
18608         (def_cfa_1, reg_save): Use it.
18609
18610 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
18611
18612         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
18613         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
18614         (ix86_handle_option): Handle OPT_mcrc32.
18615         (ix86_target_string): Add -mcrc32.
18616         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
18617
18618         * config/i386/i386.h (TARGET_CRC32): New.
18619
18620         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
18621         (sse4_2_crc32di): Likewise.
18622
18623         * config/i386/i386.opt (mcrc32): New.
18624
18625         * doc/invoke.texi: Document -mcrc32.
18626
18627 2009-06-11  Richard Henderson  <rth@redhat.com>
18628
18629         * common.opt (gdwarf-): Accept a version number.
18630         * doc/invoke.texi (gdwarf-): Update docs.
18631         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
18632         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
18633         version level, and record it.
18634
18635         * dwarf2.h (DW_CIE_VERSION): Remove.
18636         * dwarf2out.c (DWARF_VERSION): Remove.
18637         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
18638         (output_call_frame_info): Use CIE version 3 for dwarf3,
18639         or if the return register column is out of range for version 1.
18640         (dwarf_stack_op_name): Add all dwarf3 values.
18641         (DEBUG_PUBTYPES_SECTION): New.
18642         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
18643         encoding change for dwarf3.
18644         (output_die) [dw_val_class_die_ref]: Likewise.
18645         (output_compilation_unit_header): Emit correct version for dwarf3.
18646         (output_line_info): Likewise.
18647         (output_pubnames): Update for DWARF_VERSION removal.
18648         (output_aranges): Likewise.
18649         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
18650         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
18651         (dwarf2out_finish): Likewise.
18652
18653 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18654
18655         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
18656         in r148403.
18657
18658 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18659
18660         PR c/39252
18661         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
18662         * builtins.c (expand_builtin_unreachable): New function.
18663         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
18664         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
18665         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
18666         successors.
18667         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
18668         searching for missing barriers.
18669
18670 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18671
18672         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
18673         when -fprofile-generate* was passed.
18674         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
18675
18676 2009-06-11  Anthony Green  <green@moxielogic.com>
18677
18678         * config/moxie/moxie.md: Define length attribute for all instructions.
18679         (rCC): Define.
18680         (*b<cond:code>): Support limited branch ranges for new PC-relative
18681         branch instructions.
18682         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
18683
18684 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
18685
18686         * config/i386/i386.c (min_insn_size): Use get_attr_length
18687         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
18688         For __asm return 0.
18689
18690         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
18691         instead of emit_insn_before.
18692
18693 2009-06-10  Ian Lance Taylor  <iant@google.com>
18694
18695         PR bootstrap/40408
18696         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
18697         GIMPLE_SWITCH.
18698
18699 2009-06-10  Revital Eres  <eres@il.ibm.com>
18700
18701         * passes.c (init_optimization_passes): Reschedule
18702         predictive-commoning pass before complete unroll pass.
18703
18704 2009-06-10  Martin Jambor  <mjambor@suse.cz>
18705
18706         * cgraph.c (cgraph_node_can_be_local_p): New function.
18707         (cgraph_make_node_local): New function.
18708         * cgraph.h (cgraph_node_can_be_local_p): Declare.
18709         (cgraph_make_node_local): Declare.
18710
18711 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
18712
18713         * tree.h (tree_base): Add packed_flag and user_align fields.
18714         Decrease size of spare field.
18715         (TYPE_USER_ALIGN): Use user_align from tree_base.
18716         (DECL_USER_ALIGN): Likewise.
18717         (TYPE_PACKED): Use packed_flag from tree_base.
18718         (DECL_PACKED): Likewise.
18719         (tree_type): Delete packed_flag and user_align fields.  Widen
18720         precision field.  Widen mode field and shuffle fields to align
18721         mode on an 8-bit boundary.
18722         (tree_decl_common): Delete decl_flag_1 and user_align fields.
18723         Renumber decl_flag_* fields.  Fix comments.  Widen
18724         decl_common_unused field.
18725         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
18726         (DECL_EXTERNAL): Likewise.
18727         (DECL_BIT_FIELD): Likewise.
18728         (DECL_NONADDRESSABLE_P): Likewise.
18729         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
18730         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
18731
18732 2009-06-10  Ian Lance Taylor  <iant@google.com>
18733
18734         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
18735         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
18736         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
18737         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
18738         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
18739         DEF_VEC_ALLOC_FUNC_P.
18740         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
18741         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
18742         DEF_VEC_ALLOC_FUNC_O.
18743         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
18744         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
18745         DEF_VEC_ALLOC_FUNC_I.
18746         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
18747         (vec_stack_p_reserve_exact_1): Declare.
18748         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
18749         (vec_stack_free): Declare.
18750         (VEC_stack_alloc): Define.
18751         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
18752         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
18753         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
18754         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
18755         for void_p.
18756         (stack_vecs): New static variable.
18757         (vec_stack_p_reserve_exact_1): New function.
18758         (vec_stack_o_reserve_1): New static function.
18759         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
18760         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
18761         (vec_stack_free): New function.
18762         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
18763         (VEC_df_ref_stack_alloc): Define.
18764         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
18765         DEF_VEC_ALLOC_P_STACK.
18766         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
18767         (struct df_collection_rec): Change _vec fields to VEC.  Remove
18768         _use fields.
18769         (df_free_collection_rec): Adjust for new fields.
18770         (df_insn_rescan): Use new df_collection_rec fields.
18771         (df_notes_rescan, df_canonize_collection_rec): Likewise.
18772         (df_ref_create_structure, df_ref_record): Likewise.
18773         (df_get_conditional_uses, df_get_call_refs): Likewise.
18774         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
18775         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
18776         (df_record_exit_block_uses, df_bb_verify): Likewise.
18777         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
18778         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
18779         Remove count parameter.  Change return type to void.  Change all
18780         callers.
18781         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
18782         Remove count parameter.  Change return type to void.  Change all
18783         callers.
18784         (df_install_refs): Change old_vec parameter to VEC.  Remove count
18785         parameter.  Change all callers.
18786         (df_install_mws): Change old_vec parameter to VEC.  Remove count
18787         parameter.  Change all callers.
18788         (df_refs_verify): Change new_rec parameter to VEC.  Change call
18789         callers.
18790         (df_mws_verify): Likewise.
18791
18792 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
18793
18794         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
18795
18796 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
18797
18798         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
18799
18800 2009-06-10  Anthony Green  <green@moxielogic.com>
18801
18802         * config/moxie/crti.asm: New file.
18803         * config/moxie/crtn.asm: New file.
18804         * config/moxie/moxie.c: New file.
18805         * config/moxie/moxie.h: New file.
18806         * config/moxie/sfp-machine.h: New file.
18807         * config/moxie/moxie-protos.h: New file.
18808         * config/moxie/t-moxie: Created.
18809         * config/moxie/t-moxie-softfp: Created.
18810         * config/moxie/moxie.md: Created.
18811         * config/moxie/constraints.md: Created.
18812         * config.gcc: Add moxie support.
18813         * doc/md.texi (Machine Constraints): Add moxie constraints.
18814         * doc/contrib.texi (Contributors): Mention moxie port.
18815         * doc/install.texi (Specific): Mention the moxie port.
18816
18817 2009-06-09  Ian Lance Taylor  <iant@google.com>
18818
18819         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
18820         compiling with C++.
18821         * optabs.c (optab_table): Only use designated initializers if
18822         HAVE_DESIGNATED_INITIALIZERS is defined.
18823         (convert_optab_table): Likewise.
18824         (init_optabs): Always call init_insn_codes if
18825         HAVE_DESIGNATED_INITIALIZERS is not defined.
18826
18827 2009-06-09  Ian Lance Taylor  <iant@google.com>
18828
18829         * targhooks.c (default_builtin_vectorized_function): Change fn
18830         parameter to unsigned int.
18831         (default_builtin_vectorized_conversion): Change code parameter to
18832         unsigned int.
18833         (default_builtin_reciprocal): Change fn parameter to unsigned int.
18834         * targhooks.h: Update declarations.
18835         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
18836         parameter to unsigned int.
18837
18838         * c-typeck.c (comptypes_check_enum_int): New static function.
18839         (comptypes_internal): Add enum_and_int_p parameter.  Change all
18840         callers.
18841         (comp_target_types): Add location parameter.  Change all callers.
18842         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
18843         Change all callers.
18844         (function_types_compatible_p, type_lists_compatible_p): Likewise.
18845         (build_conditional_expr): Add colon_loc parameter.  Change all
18846         callers.
18847         (convert_for_assignment): Add location parameter.  Change all callers.
18848         * c-parser.c (c_parser_conditional_expression): Pass location of
18849         colon to build_conditional_expr.
18850         * c-tree.h (build_conditional_expr): Update declaration.
18851
18852 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
18853
18854         * graphite.c: Revert previous patch.
18855
18856 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
18857
18858         PR bootstrap/40103
18859         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
18860
18861 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
18862
18863         * tree-ssa-loop-prefetch.c
18864         (loop_prefetch_arrays): Fixed a portability problem in printf format
18865         string.
18866
18867 2009-06-09  Martin Jambor  <mjambor@suse.cz>
18868
18869         PR tree-optimization/40351
18870         * tree-sra.c (propagate_subacesses_accross_link): Check that a
18871         refrence to a potential artifical subaccess can be constructed.
18872
18873 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18874
18875         * config/sh/sh-protos.h (sh_optimization_options): Declare.
18876         (sh_override_options): Likewise.
18877         * config/sh/sh.c: Include params.h.
18878         (sh_optimization_options): New.
18879         (sh_override_options): Likewise.
18880         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
18881         (OVERRIDE_OPTIONS): Use sh_override_options.
18882
18883 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
18884
18885         * dwarf2out.c (emit_cfa_remember): New variable.
18886         (add_fde_cfi): If emit_cfa_remember, recurse to add
18887         DW_CFA_remember_state first.
18888         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
18889         instead just set emit_cfa_remember.
18890
18891 2009-06-08  Jan Hubicka  <jh@suse.cz>
18892
18893         PR debug/40126
18894         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
18895
18896 2009-06-08  Jan Hubicka  <jh@suse.cz>
18897
18898         PR middle-end/39834
18899         * cgraphunit.c (save_inline_function_body): Do not copy transform
18900         hooks for saved inline bodies.
18901         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
18902         for given function.
18903
18904 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
18905
18906         * jump.c (returnjump_p): Handle delayed branches.  Add missing
18907         function comment.
18908
18909 2009-06-08  Jan Hubicka  <jh@suse.cz>
18910
18911         PR middle-end/40102
18912         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
18913         original node might've been modified.
18914         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
18915
18916 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
18917
18918         * tree-object-size.c (addr_object_size): Add OSI argument.
18919         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
18920         (compute_builtin_object_size, expr_object_size): Adjust callers.
18921         (plus_stmt_object_size): Call addr_object_size instead of
18922         compute_builtin_object_size.
18923
18924 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
18925             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
18926
18927         * tree-ssa-loop-prefetch.c
18928         (gather_memory_references): Introduced a counter for the number of
18929         memory references.
18930         (anything_to_prefetch_p): Introduced a counter for the number of
18931         prefetches.
18932         (is_loop_prefetching_profitable): New function with a cost model
18933         for prefetching.
18934         (loop_prefetch_arrays): Use the new cost model to determine if
18935         prefetching is profitable.
18936         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
18937         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18938         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
18939         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18940         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
18941         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18942
18943 2009-06-08  Michael Matz  <matz@suse.de>
18944
18945         PR debug/40012
18946         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
18947         partitions use the same.
18948         (expand_one_var): Deal with DECL_RTL sometimes begin set also
18949         for basevars of SSA_NAMEs.
18950         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
18951         to not expand them twice.
18952         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
18953         multiple places.
18954
18955 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
18956
18957         * common.opt (fcompare-debug=, fcompare-debug-second): New.
18958         (fdump-final-insns=, gtoggle): New.
18959         * doc/invoke.texi: Document them.
18960         * final.c (rest_of_clean_state): Dump final insn stream.
18961         * gcc.c (invoke_as): Hook in -fcompare-debug.
18962         (static_spec_functions): Add compare-debug-dump-opt,
18963         compare-debug-self-opt and compare-debug-auxbase-opt.
18964         (compare_debug, compare_debug_second, compare_debug_opt): New.
18965         (switches_debug_check, n_switches_debug_check): New.
18966         (debug_auxbase_opt, debug_check_temp_file): New.
18967         (process_command): Handle -fno-compare-debug, -fcompare-debug and
18968         -fcompare-debug=*.
18969         (do_self_spec): Handle arguments after switches.
18970         (do_spec_1): Add .gk extension to temp file basenames for compare.
18971         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
18972         (cc1_options): Use it instead of normal auxbase computation for
18973         the second compare-debug compilation.
18974         (compare_files): New.
18975         (main): Set up and implement compare debug mode.
18976         (compare_debug_dump_opt_spec_function): New.
18977         (compare_debug_self_opt_spec_function): New.
18978         (compare_debug_auxbase_opt_spec_function): New.
18979         * toplev.c (process_options): Handle flag_gtoggle,
18980         flag_dump_final_insns.
18981         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
18982         during -fcompare-debug-second compilation.
18983
18984 2009-06-07  Ian Lance Taylor  <iant@google.com>
18985
18986         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
18987         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
18988
18989         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
18990         with no default node.  Change warning with %H to warning_at.
18991         Don't clear warn_switch around case checking.
18992         * doc/invoke.texi (Warning Options): Clarify distinction between
18993         -Wswitch and -Wswitch-enum.
18994
18995 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18996
18997         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
18998
18999 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19000
19001         * gbl-ctors.h: Add header guard.
19002
19003 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19004
19005         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
19006         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
19007         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
19008         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
19009         prototypes for removed functions.
19010         (expressions_equal_p): Move to ...
19011         * tree-ssa-sccvn.h: ... here and ...
19012         * matrix-reorg.c: ... adjust includes.
19013
19014 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19015
19016         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
19017
19018 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19019
19020         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
19021         (finish_function): Remove erroneous whitespace.
19022
19023 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19024
19025         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
19026         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
19027
19028 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19029
19030         * errors.c (internal_error): Commentary typo fix.
19031         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
19032         * tree-ssa-pre.c: Ditto.
19033
19034 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19035
19036         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
19037         them is supposed to hold actual statements.
19038
19039 2009-06-06  Ian Lance Taylor  <iant@google.com>
19040
19041         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
19042         empty statements can now have attributes.
19043
19044 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
19045
19046         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
19047         * config/mips/mips.md: Ditto.
19048
19049 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19050
19051         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
19052         _RELOCATABLE.
19053         (__eabi_uconvert): Likewise.
19054
19055 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19056
19057         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
19058         CFI_* definitions with IN_GCC.
19059
19060 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
19061
19062         * xcoffout.h (xcoffout_source_line): Update prototype.
19063
19064 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19065
19066         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
19067         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
19068
19069 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19070
19071         PR middle-end/40340
19072         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
19073         inlined_function_outer_scope_p blocks for artificial inlines
19074         even at -g0/-g1.
19075         * tree.c (tree_nonartificial_location): Rewrite using
19076         block_nonartificial_location.
19077
19078 2009-06-05  Revital Eres  <eres@il.ibm.com>
19079             Leehod Baruch  <leehod@il.ibm.com>
19080
19081         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
19082         (expand_expr_real_1): Remove comment.
19083         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19084         Vectorize misaligned access when the target supports it.
19085         (vect_supportable_dr_alignment): Check for unaligned access support.
19086         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
19087         and remove asset.
19088
19089 2009-06-05  Julian Brown  <julian@codesourcery.com>
19090
19091         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
19092         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
19093
19094 2009-06-05  Richard Guenther  <rguenther@suse.de>
19095
19096         PR bootstrap/40350
19097         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
19098         as possibly unused.
19099
19100 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19101
19102         * config/s390/s390.c (global_not_special_regno_p): New static inline.
19103         (save_gprs): Don't tell unwinder when a global register is saved.
19104         (s390_emit_epilogue): Emit needed epilogue unwind info.
19105
19106 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19107
19108         * dwarf2out.c (deferred_asm_name): New.
19109         (add_name_and_src_coords_attributes): Defer creation of
19110         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
19111         computed yet.
19112         (move_linkage_attr): New.
19113         (dwarf2out_finish): Revisit deferrals and emit attributes at the
19114         right place.
19115
19116 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19117
19118         * tree-nested.c (finalize_nesting_tree_1): Declare the
19119         frame_decl in the binding tree.
19120
19121 2009-06-04  Cary Coutant  <ccoutant@google.com>
19122
19123         * basic-block.h (struct basic_block_def): Add discriminator field.
19124         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
19125         callers.
19126         * debug.c (do_nothing_debug_hooks): Add additional entry.
19127         (debug_nothing_int_charstar_int): New function.
19128         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
19129         (debug_nothing_int_charstar_int): New declaration.
19130         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
19131         discriminator value in .loc directive.
19132         * final.c (last_discriminator): New variable.
19133         (discriminator): New variable.
19134         (final_start_function): Initialize above variables, pass current
19135         discriminator to debug hook.
19136         (notice_source_line): Check for discriminator change.
19137         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
19138         * sdbout.c (sdbout_source_line): New parameter.
19139         * tree-cfg.c (struct locus_discrim_map): New structure type.
19140         (discriminator_per_locus): New hash table.
19141         (build_gimple_cfg): Allocate and free discriminator hash table.
19142         (make_edges): Call assign_discriminator.
19143         (locus_map_hash): New function.
19144         (locus_map_eq): New function.
19145         (next_discriminator_for_locus): New function.
19146         (same_line_p): New function.
19147         (assign_discriminator): New function.
19148         (make_cond_expr_edges): Call assign_discriminator.
19149         (make_gimple_switch_edges): Likewise.
19150         (first_non_label_stmt): New function.
19151         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
19152         all callers.
19153         * xcoffout.c (xcoffout_source_line): Add new parameter.
19154
19155         * configure.ac (gcc_cv_as_discriminator): New configury check for
19156         gas support for discriminator.
19157         * configure: Regenerate.
19158         * config.in: Regenerate.
19159
19160 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19161
19162         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
19163         val after checking for integers.
19164
19165 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
19166
19167         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
19168         X64_REGPARM_MAX.
19169         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
19170         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
19171         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
19172         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
19173         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
19174         X64_SSE_REGPARM_MAX.
19175         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
19176         X64_SSE_REGPARM_MAX.
19177
19178 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19179
19180         * gcc.c (report_times_to_file): New.
19181         (execute): Implement it.
19182         (process_command): Support -time=.
19183         * doc/invoke.texi: Document it.
19184
19185 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19186
19187         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
19188         that have value exprs.
19189
19190 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19191
19192         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
19193         declarations for constants until...
19194         (dw2_output_indirect_constant_1): ... this point.
19195
19196 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
19197
19198         PR target/10242
19199         * arm.md (arm_addsi3): Don't try to split an add with an
19200         eliminable register until after reload has completed.
19201
19202 2009-06-03  Ian Lance Taylor  <iant@google.com>
19203
19204         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
19205         * genattrtab.c (write_length_unit_log): Likewise.
19206         * genchecksum.c (dosum): Likewise.
19207         * gengtype.c (write_rtx_next): Likewise.
19208         (finish_root_table, write_roots): Likewise.
19209         * gimple.c (gimple_ops_offset_): Likewise.
19210         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
19211         * config/arc/arc.c (arc_attribute_table): Likewise.
19212         * config/arm/arm.c (arm_attribute_table): Likewise.
19213         * config/avr/avr.c (avr_attribute_table): Likewise.
19214         * config/crx/crx.c (crx_attribute_table): Likewise.
19215         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
19216         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
19217         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
19218         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
19219         * config/sh/sh.c (sh_attribute_table): Likewise.
19220         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
19221         * config/spu/spu.c (spu_attribute_table): Likewise.
19222         * config/v850/v850.c (v850_attribute_table): Likewise.
19223
19224         * config/alpha/alpha.c (vms_attribute_table): Make static.
19225         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
19226         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
19227         * config/mips/mips.c (mips_attribute_table): Likewise.
19228
19229         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
19230         $(SYSTEM_H).
19231         (cc1-checksum.o): Likewise.
19232
19233 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
19234
19235         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
19236
19237 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
19238
19239         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
19240         insn if it is changing sp.  Use gen_add3_insn instead of
19241         conditionally gen_addsi3 and gen_adddi3.
19242         (offset_below_red_zone_p): New static inline function.
19243         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
19244         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
19245         * config/rs6000/ppc-asm.h: Include auto-host.h.
19246         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
19247         CFI_RESTORE): Define.
19248         * config/rs6000/crtresxgpr.asm: Add unwind info.
19249         * config/rs6000/crtresxfpr.asm: Likewise.
19250         * config/rs6000/crtresgpr.asm: Likewise.
19251         * config/rs6000/crtresfpr.asm: Likewise.
19252         * config/rs6000/crtsavgpr.asm: Likewise.
19253         * config/rs6000/crtsavfpr.asm: Likewise.
19254
19255         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
19256         argument of DWARF2_FRAME_REG_OUT macros.
19257
19258 2009-06-03  Julian Brown  <julian@codesourcery.com>
19259
19260         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
19261         words or less (including TImode) in core registers.
19262
19263 2009-06-03  Richard Guenther  <rguenther@suse.de>
19264
19265         PR middle-end/40328
19266         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
19267
19268 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
19269
19270         * statistics.c (statistics_counter_event): Do not record event
19271         in pass dump if its number == -1.
19272         (curr_statistics_hash): Add assert that we never get passes
19273         with static number == -1.
19274
19275 2009-06-03  Richard Guenther  <rguenther@suse.de>
19276             Andrey Belevantsev  <abel@ispras.ru>
19277
19278         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
19279         non-BLKmode arrays addressable.
19280
19281 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
19282
19283         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
19284         * config/m68k/m68k.h: ... here.
19285
19286 2009-06-03  Martin Jambor  <mjambor@suse.cz>
19287
19288         PR tree-optimization/40323
19289         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
19290         assignment.
19291
19292 2009-06-03  Richard Guenther  <rguenther@suse.de>
19293
19294         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19295         consistently.
19296
19297 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
19298
19299         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
19300         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
19301         JUMP_TABLE_DATA_P where applicable.
19302         * config/sh/sh.c: Ditto.
19303         * config/sh/sh.h: Ditto.
19304         * config/sh/sh.md: Ditto.
19305         * config/sh/symbian.c: Ditto.
19306
19307 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
19308
19309         * config/i386/driver-i386.c (describe_cache): Optimize
19310         concatenation of strings.  Use snprintf instead of sprintf.
19311         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
19312         target when not compiling with GCC.
19313
19314 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
19315
19316         * config/sh/sh.c: Revert last change.
19317         (sh_expand_epilogue): Emit a blockage insn before the frame
19318         pointer adjustment unconditionally.
19319
19320 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19321
19322         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
19323         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
19324         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
19325         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
19326         to COLLECT_GCC_OPTIONS.
19327
19328 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19329
19330         * collect2.c (target_system_root): New variable.
19331         (main): Handle --sysroot=.
19332         (ignore_library): Strip the sysroot from the library path.
19333
19334 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19335
19336         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
19337         (collect2.o): Depend on collect2-aix.h.
19338         (collect2-aix.o): New rule.
19339         * collect2-aix.h: New file.
19340         * collect2-aix.c: Likewise.
19341         * collect2.c: Include collect2-aix.h.  Don't undefine
19342         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
19343         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
19344         Use TARGET_AIX_VERSION instead of _AIX51.
19345         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
19346         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
19347         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
19348         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
19349         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
19350
19351 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19352
19353         * collect2.c (ignore_library): Avoid premature post-increment
19354         and null deference.
19355
19356 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19357
19358         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
19359         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
19360         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
19361         CROSS_DIRECTORY_STRUCTURE too.
19362         (LINK_LIBG_SPEC): Likewise.
19363         (LIB_SPEC): Add %R to sysroot paths.
19364         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
19365         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
19366         * config/rs6000/aix51.h: As for aix43.h.
19367         * config/rs6000/aix52.h: Likewise.
19368         * config/rs6000/aix53.h: Likewise.
19369         * config/rs6000/aix61.h: Likewise.
19370         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
19371         to the beginning of sysroot paths.
19372
19373 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19374
19375         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
19376         INSN_LISTs that are out of the REG_NOTE range.
19377
19378 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19379
19380         * loop-unroll.c (struct iv_to_split): Add pointer to next.
19381         (struct var_to_expand): Likewise.
19382         (struct opt_info): Add head and tail for linked lists of the above.
19383         (analyze_insn_to_expand_var): Initialize next.
19384         (analyze_iv_to_split_insn): Likewise.
19385         (analyze_insns_in_loop): Create linked lists.
19386         (allocate_basic_variable): Simplify for use without hash table.
19387         (insert_var_expansion_initialization): Likewise, make it type-safer.
19388         (combine_var_copies_in_loop_exit): Likewise.
19389         (apply_opt_in_copies): Walk lists rather than hash tables.
19390         (release_var_copies): Simplified and inlined by hand into...
19391         (free_opt_info): ... this function.
19392
19393 2009-06-02  Richard Guenther  <rguenther@suse.de>
19394
19395         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19396         for field decls.
19397
19398 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19399
19400         * cfgexpand.c (gimple_expand_cfg): Discard the source location
19401         only for builtins that are not overridden.
19402
19403 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19404
19405         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
19406         label string.
19407
19408 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19409
19410         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
19411
19412 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19413
19414         * combine.c (move_deaths): Compare LUIDs within the same BB only.
19415
19416 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19417
19418         * common.opt (fdump-unnumbered-links): New.
19419         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
19420         * print-rtl.c (flag_dump_unnumbered_links): New.
19421         (print_rtx): Test it.
19422
19423 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
19424
19425         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
19426         push/pop multiple to 8-byte alignment.
19427
19428 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
19429
19430         * config/i386/i386.c (queued_cfa_restores): New static variable.
19431         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
19432         functions.
19433         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
19434         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
19435         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
19436         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
19437         note unconditionally.
19438         (ix86_emit_restore_regs_using_mov): Likewise.
19439         (ix86_emit_restore_sse_regs_using_mov): Likewise.
19440         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
19441         it through to ix86_emit_restore_reg_using_pop.
19442         (ix86_emit_leave): Add RED_OFFSET argument.  Call
19443         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
19444         instead of adding REG_CFA_OFFSET note unconditionally.
19445         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
19446         the above functions.  Call ix86_add_queued_cfa_restore_notes when
19447         needed.
19448
19449         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
19450         force output of the label even for dwarf2out_do_cfi_asm.
19451         (add_fde_cfi): If -g2 and above and cfi might change CFA,
19452         force creation of CFI label and chain DW_CFA_set_loc jumping to it
19453         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
19454         caller.
19455         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
19456         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
19457         dwarf2out_cfi_label callers.
19458         * tree.h (dwarf2out_cfi_label): Adjust prototype.
19459         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
19460         Adjust dwarf2out_cfi_label callers.
19461         * config/vax/vax.c (vax_output_function_prologue): Likewise.
19462
19463         * config/i386/i386.h (struct machine_cfa_state,
19464         struct machine_function): Guard with ifndef USED_FOR_TARGET
19465         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
19466
19467         PR other/40024
19468         * emutls.c (__emutls_get_address): Change arr->size to mean number
19469         of allocated arr->data entries instead of # of slots + 1.
19470
19471         PR middle-end/40316
19472         * recog.c (peep2_reinit_state): New function.
19473         (peephole2_init_state): Use it at the end of a basic block and also
19474         when seeing a RTX_FRAME_RELATED_P insn.
19475
19476 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
19477
19478         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
19479         fixuns_truncrfdi2): New.
19480         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
19481         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
19482         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
19483         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
19484         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
19485         *recip_approx): Remove.
19486         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
19487         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
19488         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
19489         move to div.md.
19490         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
19491         setf_exp_rf): New.
19492
19493 2009-06-01  Ian Lance Taylor  <iant@google.com>
19494
19495         * attribs.c (register_attribute): Use CONST_CAST.
19496         * collect2.c (main): Use CONST_CAST2.
19497         (scan_prog_file): Likewise.
19498         * gcc.c (process_command, main): Likewise.
19499         * toplev.c (toplev_main): Likewise.
19500
19501         * c-typeck.c (handle_warn_cast_qual): New static function,
19502         partially broken out of build_c_cast.
19503         (build_c_cast): Call handle_warn_cast_qual.
19504         * doc/invoke.texi (Warning Options): Document new effect of
19505         -Wcast-qual.
19506
19507 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
19508
19509         * diagnostic.c (diagnostic_build_prefix): Always print columns.
19510         (diagnostic_report_current_module): Print columns.
19511         * common.opt (flag_show_column): Enable by default.
19512
19513 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
19514
19515         * alias.c (find_base_term): Check for NULL term before returning.
19516
19517 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19518
19519         Revert due to PR40320:
19520         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19521         * calls.c (emit_library_call_value_1): Don't force_operand for move
19522         and push insns.
19523
19524 2009-06-01  Olivier Hainque  <hainque@adacore.com>
19525             Eric Botcazou  <ebotcazou@adacore.com>
19526
19527         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
19528         to be processed as a bitfield for constructor output purposes.
19529         * output.h (initializer_constant_valid_for_bitfield_p): Declare
19530         new function.
19531         * varasm.c (oc_local_state): New type, output_constructor
19532         local state to support communication with helpers.
19533         (oc_outer_state): New type, output_constructor outer state of
19534         relevance in recursive calls.
19535         (output_constructor_array_range): New output_constructor helper,
19536         extracted code for an array range element.
19537         (output_constructor_regular_field): New output_constructor helper,
19538         extracted code for an element that is not a bitfield.
19539         (output_constructor_bitfield): New output_constructor helper,
19540         extracted code for a bitfield element.  Accept an OUTER state
19541         argument for recursive processing.  Recurse on record or array
19542         CONSTRUCTOR values, possibly past noop conversions.
19543         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
19544         VALUE is a valid constant-valued expression for use in a static
19545         bit-field initializer.
19546         (output_constructor): Rework to use helpers.  Accept and honor an
19547         OUTER state argument for recursive calls.  Return total size.  Be
19548         prepared for nested constructors initializing bitfields.
19549         (output_constant): Feed OUTER in calls to output_constructor.
19550
19551 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19552
19553         * calls.c (emit_library_call_value_1): Don't force_operand for move
19554         and push insns.
19555
19556 2009-06-01  Nick Clifton  <nickc@redhat.com>
19557
19558         * doc/invoke.texi (IA-64 Options): Fix typo.
19559
19560 2009-06-01  Ira Rosen  <irar@il.ibm.com>
19561
19562         PR tree-optimization/39129
19563         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
19564         printed message.
19565         (vect_do_peeling_for_loop_bound): Use
19566         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19567         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19568         (vect_loop_versioning): Likewise.
19569         (vect_create_cond_for_alias_checks): Fix indentation.
19570         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
19571         macros.
19572         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
19573         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
19574         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
19575         "control flow in loop".
19576         (vect_estimate_min_profitable_iters): Use
19577         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19578         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19579         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19580         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
19581         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
19582         statement belongs to a group of strided accesses with the exact code
19583         check.
19584         (vectorizable_load): Likewise.
19585         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
19586         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19587
19588 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
19589
19590         * config/freebsd-stdint.h: New file.
19591         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
19592         Add freebsd-stdint.h to tm_file.
19593
19594 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
19595
19596         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
19597         (thumb2_extendhidi2): Likewise.
19598
19599 2009-05-31  Ian Lance Taylor  <iant@google.com>
19600
19601         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
19602
19603 2009-05-31  Ian Lance Taylor  <iant@google.com>
19604
19605         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
19606         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
19607         (ipa-reference.o): Depend upon gt-ipa-reference.h.
19608
19609 2009-05-31  Jason Merrill  <jason@redhat.com>
19610
19611         * tree-pretty-print.c (print_call_name): Take the callee, not the
19612         call itself.  Make non-static.  Use dump_function_name for functions.
19613         (dump_generic_node): Adjust.
19614         * diagnostic.h: Declare print_call_name.
19615         * gimple-pretty-print.c (dump_gimple_call): Use it.
19616
19617 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19618
19619         * config/sh/sh.md (ashldi3_std): New define_expand.
19620         (ashldi3): Use it.
19621
19622 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19623
19624         PR target/40313
19625         * config/sh/sh.c: Include debug.h.
19626         (sh_expand_epilogue): Emit a blockage insn before the frame
19627         pointer adjustment also when dwarf2out_do_frame returns true.
19628
19629 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
19630
19631         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
19632         (thumb2_extendqidi2): New pattern.
19633
19634 2009-05-31  Ira Rosen  <irar@il.ibm.com>
19635
19636         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19637         mark phis for renaming.
19638         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
19639         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
19640         Call mark_sym_for_renaming.
19641         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
19642         * tree-vect-loop.c (vect_transform_loop): Remove
19643         vect_memsyms_to_rename initialization and a call to
19644         mark_set_for_renaming.
19645
19646 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
19647
19648         PR middle-end/40304
19649         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
19650         frame related even if !set_cfa && style < 0.
19651
19652 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
19653
19654         * config/i386/mingw-tls.c: New file.
19655         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
19656         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
19657         defining _WIN32 but not __CYGWIN__.
19658
19659 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19660
19661         * configure.ac: Add MPC support.
19662
19663         * config.in, configure: Regenerate.
19664
19665 2009-05-29  Richard Henderson  <rth@redhat.com>
19666
19667         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
19668         NOTE_INSN_BASIC_BLOCK.
19669         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
19670         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
19671         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
19672         to be deleted.
19673         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
19674         add in_use field.
19675         (add_cfi): Disable check redefining cfa away from drap.
19676         (lookup_cfa_1): Add remember argument; handle remember/restore.
19677         (lookup_cfa): Pass remember argument.
19678         (cfa_remember): New.
19679         (compute_barrier_args_size_1): Remove sibcall check.
19680         (dwarf2out_frame_debug_def_cfa): New.
19681         (dwarf2out_frame_debug_adjust_cfa): New.
19682         (dwarf2out_frame_debug_cfa_offset): New.
19683         (dwarf2out_frame_debug_cfa_register): New.
19684         (dwarf2out_frame_debug_cfa_restore): New.
19685         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
19686         (dwarf2out_begin_epilogue): New.
19687         (dwarf2out_frame_debug_restore_state): New.
19688         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
19689         DW_CFA_restore_state.
19690         (output_cfi_directive): Likewise.
19691         (convert_cfa_to_fb_loc_list): Likewise.
19692         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
19693         * dwarf2out.h: Update.
19694         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
19695         (copy_insn_1): Early out for null.
19696         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
19697         and dwarf2out_frame_debug_restore_state.
19698         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
19699         (prologue_insn_hash, epilogue_insn_hash): New.
19700         (free_after_compilation): Adjust freeing accordingly.
19701         (record_insns): Create hash table if needed; push insns into
19702         hash instead of array.
19703         (maybe_copy_epilogue_insn): New.
19704         (contains): Search hash table instead of array.
19705         (sibcall_epilogue_contains): Remove.
19706         (thread_prologue_and_epilogue_insns): Split eh_return insns
19707         and mark them as epilogues.
19708         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
19709         scanning in terms of basic blocks.
19710         * insn-notes.def (CFA_RESTORE_STATE): New.
19711         * jump.c (returnjump_p_1): Accept EH_RETURN.
19712         (eh_returnjump_p_1, eh_returnjump_p): New.
19713         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
19714         CFA_REGISTER, CFA_RESTORE): New.
19715         * rtl.def (EH_RETURN): New.
19716         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
19717
19718         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
19719         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
19720
19721         * config/i386/i386.c (gen_push): Update cfa state.
19722         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
19723         add a CFA_ADJUST_CFA note.
19724         (ix86_dwarf_handle_frame_unspec): Remove.
19725         (ix86_expand_prologue): Update cfa state.
19726         (ix86_emit_restore_reg_using_pop): New.
19727         (ix86_emit_restore_regs_using_pop): New.
19728         (ix86_emit_leave): New.
19729         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
19730         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
19731         * config/i386/i386.h (struct machine_cfa_state): New.
19732         (ix86_cfa_state): New.
19733         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
19734         (eh_return_internal): Merge from eh_return_<mode>,
19735         use eh_return rtx, split w/ epilogue.
19736
19737 2009-05-29  Ian Lance Taylor  <iant@google.com>
19738
19739         * builtins.c (validate_gimple_arglist): Don't use va_arg with
19740         enum type.
19741         * calls.c (emit_library_call_value_1): Likewise.
19742
19743         * c-typeck.c (c_build_va_arg): New function.
19744         * c-tree.h (c_build_va_arg): Declare.
19745         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
19746         instead of build_va_arg.
19747
19748 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19749
19750         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
19751         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
19752         (ptr_difference_cost): Use affine combinations to compute it.
19753         (difference_cost): Likewise.
19754         (get_computation_cost_at): Compute more accurate cost for addresses
19755         if the ratio is a multiplier allowed in addresses.
19756         For non-addresses, consider that an additional offset or symbol is
19757         added only once.
19758
19759 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
19760
19761         * config/i386/i386.c (ix86_decompose_address): Avoid useless
19762         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
19763
19764         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
19765         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
19766         (prefix_rex): For UNIT_MMX don't imply the prefix by default
19767         if MODE_DI.
19768         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
19769         to 1 for TYPE_SSE{IADD1,CVT1}.
19770         (prefix_vex_imm8): Removed.
19771         (length_vex): Only pass 1 as second argument to
19772         ix86_attr_length_vex_default if prefix_extra is 0.
19773         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
19774         (length): For prefix vex computation use length_immediate
19775         attribute instead of prefix_vex_imm8.
19776         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
19777         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
19778         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
19779         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
19780         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
19781         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
19782         a space in between the operands.
19783         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
19784         if one operand is 0xff and the other one si, di, bp or sp.
19785         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
19786         other one si, di, bp or sp.
19787         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
19788         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
19789         type and mode attributes.
19790         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
19791         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
19792         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
19793         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
19794         prefix_data16 attribute iff MODE_DF.
19795         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
19796         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
19797         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
19798         constm128_operand in length_immediate computation.
19799         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
19800         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
19801         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
19802         length_immediate attribute to 1.
19803         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
19804         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
19805         for certain alternatives.
19806         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
19807         prefix_data16 attribute if MODE_V1DF.
19808         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
19809         length_immediate to 1.
19810         (set_got_rex64, set_rip_rex64): Remove length attribute, set
19811         length_address to 4, set mode attribute to MODE_DI.
19812         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
19813         (fxam<mode>2_i387): Set length attribute to 4.
19814         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
19815         *prefetch_3dnow_rex): Override length_address attribute.
19816         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
19817         attributes.
19818         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
19819         (constm128_operand): Removed.
19820         * config/i386/i386.c (memory_address_length): For
19821         disp && !index && !base in 64-bit mode account for SIB byte if
19822         print_operand_address can't optimize disp32 into disp32(%rip)
19823         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
19824         for fs: or gs: segment.
19825         (ix86_attr_length_immediate_default): When checking if shortform
19826         is possible, truncate immediate to the length of the non-shortened
19827         immediate.
19828         (ix86_attr_length_address_default): Ignore MEM_P operands
19829         with X constraint.
19830         (ix86_attr_length_vex_default): Only check for DImode on
19831         GENERAL_REG_P operands.
19832         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
19833         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
19834         (sse_cvttps2pi): Clear prefix_rep attribute.
19835         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
19836         attribute.
19837         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
19838         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
19839         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
19840         iff operand 2 is const_int_operand.
19841         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
19842         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
19843         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
19844         instead of vex.
19845         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
19846         prefix_data16.
19847         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
19848         prefix_data16 attribute for movlpd and movhpd instructions.
19849         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
19850         length_immediate for shufpd instruction.
19851         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
19852         (avx_cmpp<avxmodesuffixf2c><mode>3,
19853         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
19854         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
19855         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
19856         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
19857         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
19858         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
19859         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
19860         prefix_data16 attribute for the first alternative to 1.
19861         (*avx_loadlps): Override length_immediate for the first alternative.
19862         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
19863         attributes for second alternative.
19864         (*vec_concatv2sf_sse4_1): Override length_immediate and
19865         prefix_data16 attributes for second alternative.
19866         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
19867         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
19868         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
19869         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
19870         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
19871         prefix_data16 and length_immediate to 1.
19872         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
19873         to 1.
19874         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
19875         prefix_extra attribute for variants that don't have 0f prefix alone.
19876         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
19877         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
19878         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
19879         *sse4_1_pextrd): Set length_immediate to 1.
19880         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
19881         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
19882         to 1.
19883         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
19884         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
19885         length_immediate to 1 for second alternative.
19886         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
19887         prefix_extra and length_immediate attributes for the first
19888         alternative.
19889         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
19890         first alternative.
19891         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
19892         to 1 for the first and third alternative.
19893         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
19894         alternative.
19895         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
19896         attribute.
19897         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
19898         attribute to 0.
19899         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
19900         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
19901         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
19902         *avx_psign<mode>3): Set prefix_extra attribute to 1.
19903         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
19904         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
19905         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
19906         ssse3_psign<mode>3): Override prefix_rex attribute.
19907         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
19908         (ssse3_palignrti): Override length_immediate to 1.
19909         (ssse3_palignrdi): Override length_immediate to 1, override
19910         prefix_rex attribute.
19911         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
19912         (sse4a_extrqi): Override length_immediate to 2.
19913         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
19914         (sse4a_insertq): Override prefix_data16 to 0.
19915         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
19916         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
19917         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
19918         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
19919         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
19920         and length_immediate to 1.
19921         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
19922         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
19923         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
19924         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
19925         and length_immediate to 1.
19926         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
19927         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
19928         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
19929         avx_ptest256): Override prefix_extra to 1.
19930         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
19931         Override prefix_data16 and length_immediate to 1.
19932         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
19933         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
19934         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
19935         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
19936         prefix_data16 to 0 and prefix_extra to 2.
19937         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
19938         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
19939         attribute.
19940         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
19941         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
19942         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
19943         and prefix_extra to 2.
19944         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
19945         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
19946         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
19947         avx_vpermilvar<mode>3,
19948         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
19949         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
19950         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
19951         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
19952         Override prefix_extra to 1.
19953         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
19954         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
19955         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
19956         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
19957         prefix_extra and length_immediate to 1.
19958         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
19959         modrm to 0.
19960         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
19961         to 1 for the first alternative.
19962         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
19963         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
19964         cases.
19965         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
19966         *movv2sf_internal_avx, *movv2sf_internal): Override
19967         prefix_rep attribute for certain alternatives.
19968         (*mov<mode>_internal): Override prefix_rep or prefix_data16
19969         attributes for certain alternatives.
19970         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
19971         attributes for certain alternatives.
19972         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
19973         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
19974         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
19975         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
19976         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
19977         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
19978         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
19979         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
19980         length_immediate to 1 if operand 2 is const_int_operand.
19981         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
19982         *vec_extractv2si_1): Set length_immediate attribute to 1.
19983         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
19984         using old 3DNOW insn rather than SSE/3DNOW_A.
19985         (mmx_emms, mmx_femms): Clear modrm attribute.
19986
19987 2009-05-29  Martin Jambor  <mjambor@suse.cz>
19988
19989         * tree-sra.c:  New implementation of SRA.
19990
19991         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
19992         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
19993         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
19994         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
19995         (SRA_MAX_STRUCTURE_COUNT): Removed.
19996         (SRA_FIELD_STRUCTURE_RATIO): Removed.
19997         * doc/invoke.texi (sra-max-structure-size): Removed.
19998         (sra-field-structure-ratio): Removed.
19999
20000 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20001
20002         PR middle-end/40291
20003         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
20004         before expansion.
20005
20006 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
20007
20008         PR rtl-optimization/40101
20009         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
20010         seqno.  Adjust comment.
20011         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
20012         inserting bookkeeping before a jump, the jump is not scheduled.
20013         When no positive seqno found, provide a value.  Add comment.
20014
20015 2009-05-29  Richard Guenther  <rguenther@suse.de>
20016
20017         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
20018         short-cutting on the first component.
20019
20020 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20021
20022         PR middle-end/39958
20023         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
20024         for trees other than decls/types.
20025
20026 2009-05-29  Richard Guenther  <rguenther@suse.de>
20027
20028         * tree-ssa-operands.c (get_expr_operands): Do not handle
20029         INDIRECT_REFs in the handled-component case.  Remove
20030         unused get_ref_base_and_extent case.
20031         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
20032         tree_low_cst and host_integerp where possible.
20033         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
20034         codes for equivalence.
20035         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
20036
20037 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
20038
20039         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
20040         to tmake_file for i[34567]86-*-cygwin*.
20041
20042 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20043
20044         PR target/40017
20045         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
20046         (altivec_categorize_keyword, init_vector_keywords,
20047         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
20048         similar to bool.
20049
20050 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
20051
20052         * tree.c (handle_dll_attribute): Check if node is
20053         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
20054
20055 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
20056
20057         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
20058         component.
20059         (thumb2_zero_extendqidi2): Likewise.
20060
20061 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20062
20063         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
20064         instead of gen_movrt.
20065         * config/sh/sh.md (movrt): Remove.
20066
20067 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
20068
20069         * doc/invoke.texi (IA-64 Options):
20070         Add -msdata, -mfused-madd, -mno-inline-float-divide,
20071         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
20072         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
20073         -msched-prefer-non-control-spec-insns,
20074         -msched-stop-bits-after-every-cycle,
20075         -msched-count-spec-in-critical-path,
20076         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
20077         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
20078         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
20079         and -msched-spec-verbose.
20080
20081 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
20082
20083         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
20084         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
20085         error if used.
20086         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
20087
20088 2009-05-28  Richard Guenther  <rguenther@suse.de>
20089
20090         * tree-ssa-alias.c (ao_ref_init): New function.
20091         (ao_ref_base): Likewise.
20092         (ao_ref_base_alias_set): Likewise.
20093         (ao_ref_alias_set): Likewise.
20094         (refs_may_alias_p_1): Change signature.
20095         (refs_may_alias_p): Adjust.
20096         (refs_anti_dependent_p): Likewise.
20097         (refs_output_dependent_p): Likewise.
20098         (call_may_clobber_ref_p_1): Change signature.
20099         (call_may_clobber_ref_p): Adjust.
20100         (stmt_may_clobber_ref_p_1): New function split out from ...
20101         (stmt_may_clobber_ref_p): ... here.
20102         (maybe_skip_until): Adjust signature.
20103         (get_continuation_for_phi): Likewise.
20104         (walk_non_aliased_vuses): Likewise.
20105         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
20106         (ao_ref_init): Declare.
20107         (ao_ref_base): Likewise.
20108         (ao_ref_alias_set): Likewise.
20109         (stmt_may_clobber_ref_p_1): Likewise.
20110         (walk_non_aliased_vuses): Adjust.
20111         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
20112         (get_ref_from_reference_ops): remove.
20113         (vn_reference_lookup_2): Adjust signature.
20114         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
20115         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
20116         (vn_reference_lookup): Adjust.
20117         (vn_reference_insert): Likewise.
20118         (vn_reference_insert_pieces): Adjust signature.
20119         (visit_reference_op_call): Adjust.
20120         * tree-ssa-pre.c (get_expr_type): Simplify.
20121         (phi_translate_1): Adjust.
20122         (compute_avail): Likewise.
20123         (translate_vuse_through_block): Do not re-build trees.
20124         (value_dies_in_block_x): Likewise.
20125         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
20126         fields.
20127         (vn_reference_lookup_pieces): Adjust declaration.
20128         (vn_reference_insert_pieces): Likewise.
20129
20130 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
20131
20132         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
20133         with checking disabled.
20134
20135 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
20136
20137         PR target/37216
20138
20139         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
20140         macro definition for support of three-operand format aligned
20141         .comm directive in assembler on cygwin/pe/mingw target OS.
20142         * configure:  Regenerate.
20143         * config.h:  Regenerate.
20144
20145         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
20146         aligned form of .comm directive if -mpe-aligned-commons is in effect.
20147         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
20148
20149         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
20150         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
20151
20152 2009-05-28  Ira Rosen  <irar@il.ibm.com>
20153
20154         PR tree-optimization/40254
20155         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
20156         in analysis of basic blocks.
20157
20158 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
20159
20160         PR middle-end/33699
20161         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
20162         * target-def.h (TARGET_CONST_ANCHOR): New macro.
20163         (TARGET_INITIALIZER): Use it.
20164         * cse.c (CHEAPER): Move it up to the other macros.
20165         (insert): Rename this ...
20166         (insert_with_costs): ... to this.  Add cost parameters.  Update
20167         function comment.
20168         (insert): New function.  Call insert_with_costs.
20169         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
20170         find_reg_offset_for_const, try_const_anchors): New functions.
20171         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
20172         when using a const-anchor.  Call insert_const_anchors.
20173         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
20174         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
20175
20176 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20177
20178         * tree-inline.c (remap_decls): Enable nonlocalized variables
20179         when not optimizing.
20180
20181 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20182
20183         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
20184         Simplify other tests involving optimize.
20185
20186 2009-05-27  Tom Tromey  <tromey@redhat.com>
20187
20188         * unwind-dw2.c (_Unwind_DebugHook): New function.
20189         (uw_install_context): Call _Unwind_DebugHook.
20190
20191 2009-05-27  Tom Tromey  <tromey@redhat.com>
20192
20193         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
20194
20195 2009-05-27  Ian Lance Taylor  <iant@google.com>
20196
20197         * Makefile.in (LINKER, LINKER_FLAGS): Define.
20198         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
20199         (ALL_LINKERFLAGS): Define.
20200         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
20201         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20202         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
20203         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20204         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
20205         $(LINKER_FOR_BUILD).
20206         (build/gcov-iov$(build_exeext)): Likewise.
20207
20208 2009-05-27  Julian Brown  <julian@codesourcery.com>
20209
20210         * gcse.c (target.h): Include.
20211         (can_assign_to_reg_without_clobbers_p): Check that the target allows
20212         copy of argument to a pseudo register.
20213
20214 2009-05-27  Diego Novillo  <dnovillo@google.com>
20215
20216         * tree-ssa-live.c (dump_scope_block): Document arguments.
20217         (dump_scope_blocks): Document.
20218         (debug_scope_blocks): New.
20219         * tree-flow.h (debug_scope_blocks): Declare.
20220
20221 2009-05-21  Denis Chertykov  <denisc@overta.ru>
20222
20223         * doc/contrib.texi (Contributors): Add myself to the list.
20224
20225 2009-05-27  Olivier Hainque  <hainque@adacore.com>
20226
20227         * expr.c (target_align): New function.  Alignment the TARGET of an
20228         assignment may be assume to have.
20229         (highest_pow2_factor_for_target): Use it instead of relying on
20230         immediate tree attributes of TARGET, not necessarily honored when
20231         intermediate bitfields are involved.
20232
20233 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
20234
20235         PR target/40266
20236         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20237         AVX, SSE4, AES, PCLMUL and POPCNT.
20238
20239 2009-05-27  Diego Novillo  <dnovillo@google.com>
20240
20241         * tree-pretty-print.c (dump_location): New.
20242         (dump_generic_node): Call it.
20243         Factor code to handle BLOCK nodes ...
20244         (dump_block_node): ... here.
20245
20246 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
20247
20248         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
20249         with it.
20250         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
20251         included.
20252         * gcc-plugin.h: Include config.h and system.h.
20253         (IN_GCC): Define if not defined.
20254
20255 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
20256
20257         PR middle-end/40249
20258         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
20259         with -fno-inline.
20260
20261 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
20262
20263         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
20264         applicable.
20265         * config/m32r/m32r.h: Ditto.
20266         * config/m32r/m32r.md: Ditto.
20267         * config/m32r/predicates.md: Ditto.
20268
20269 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
20270
20271         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
20272
20273 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
20274
20275         * doc/plugins.texi
20276         (Loading plugins): typo.
20277         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
20278         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20279         (Interacting with the GCC Garbage Collector): Added new section.
20280         (Giving information about a plugin): Added new section for
20281         PLUGIN_INFO.
20282         * ggc.h (ggc_register_root_tab): Added declaration.
20283         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
20284         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
20285         (register_callback): Improved comment in declaration.
20286         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
20287         (extra_root_vec) Added static variable for dynamic roots registration.
20288         (ggc_register_root_tab) Added new routine.
20289         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
20290         PLUGIN_GGC_MARKING event.
20291         * ggc-zone.c: Include plugin.h.
20292         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20293         * ggc-page.c: Include plugin.h.
20294         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20295         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
20296         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
20297         (register_callback): check lack of callbacks for
20298         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
20299         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
20300         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
20301         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20302         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
20303         dependency on plugin.h.
20304         (plugin.o): Added dependency on ggc.h...
20305
20306 2009-05-26  Richard Guenther  <rguenther@suse.de>
20307
20308         PR middle-end/40248
20309         Revert
20310         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
20311         with mismatched comparison modes.
20312
20313         * expr.c (expand_expr_real_1): Expand the operand of a
20314         VIEW_CONVERT_EXPR in its natural mode.
20315
20316 2009-05-26  Ian Lance Taylor  <iant@google.com>
20317
20318         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
20319         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
20320         (ALL_COMPILERFLAGS): Define.
20321         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
20322         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20323         (collect2$(exeext), collect2.o): Likewise.
20324         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
20325         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
20326         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
20327         (libbackend.o, intl.o, cppdefault.o): Likewise.
20328         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20329         (build/%.o): Use $(COMPILER_FOR_BUILD).
20330         (build/gen%$(build_exeext)): Likewise.
20331         (build/gcov-iov$(build_exeext)): LIkewise.
20332         * config/t-darwin (darwin.o): Use $(COMPILER).
20333         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
20334         * config/t-sol2 (sol2-c.o): Likewise.
20335         (sol2.o): Likewise.
20336         * config/t-vxworks (vxworks.o): Likewise.
20337         * config/x-darwin (host-darwin.o): Likewise.
20338         * config/x-hpux (host-hpux.o): Likewise.
20339         * config/x-linux (host-linux.o): Likewise.
20340         * config/x-solaris (host-solaris.o): Likewise.
20341         * config/alpha/x-alpha (driver-alpha.o): Likewise.
20342         * config/arm/t-arm (arm-c.o): Likewise.
20343         * config/arm/t-pe (pe.o): Likewise.
20344         * config/arm/t-wince-pe (pe.o): Likewise.
20345         * config/i386/t-cygming (winnt.o): Likewise.
20346         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
20347         * config/i386/t-cygwin (cygwin1.o): Likewise.
20348         (cygwin2.o): Likewise.
20349         * config/i386/t-i386 (i386-c.o): Likewise.
20350         * config/i386/t-interix (winnt.o): Likewise.
20351         * config/i386/t-netware (netware.o): Likewise.
20352         * config/i386/t-nwld (nwld.o): Likewise.
20353         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
20354         * config/i386/x-i386 (driver-i386.o): Likewise.
20355         * config/i386/x-cygwin (host-cygwin.o): Likewise.
20356         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
20357         * config/ia64/t-ia64 (ia64-c.o): Likewise.
20358         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
20359         * config/mips/x-native (driver-native.o): Likewise.
20360         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
20361         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
20362         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
20363         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
20364         * config/score/t-score-elf (score7.o): Likewise.
20365         (score3.o): Likewise.
20366         * config/sh/t-sh (sh-c.o): Likewise.
20367         * config/sh/t-symbian (sh-c.o): Likewise.
20368         (symbian.o): Likewise.
20369         * config/spu/t-spu-elf (spu-c.o): Likewise.
20370         * config/v850/t-v850 (v850-c.o): Likewise.
20371         * config/v850/t-v850e (v850-c.o): Likewise.
20372
20373 2009-05-26  Richard Guenther  <rguenther@suse.de>
20374
20375         PR tree-optimization/40122
20376         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
20377         VECTOR_CSTs if possible.
20378         (fold_gimple_assign): Likewise.
20379
20380 2009-05-26  Richard Guenther  <rguenther@suse.de>
20381
20382         PR middle-end/40252
20383         * fold-const.c (fold_binary): Use the correct types for building
20384         rotates.
20385
20386 2009-05-26  Richard Guenther  <rguenther@suse.de>
20387
20388         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
20389         redundant calls to merge_alias_info.
20390         (bump_vector_ptr): Likewise.
20391         * tree-ssa-copy.c (merge_alias_info): Remove.
20392         (replace_exp_1): Remove call to merge_alias_info.
20393         (propagate_tree_value): Likewise.
20394         (fini_copy_prop): Propagate points-to info.
20395         * tree-flow.h (merge_alias_info): Remove.
20396
20397 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20398
20399         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
20400
20401 2009-05-25  Jan Hubicka  <jh@suse.cz>
20402
20403         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20404         * cgraph.h (struct inline_summary): New filed self_wize,
20405         size_inlining_benefit, self_time and time_inlining_benefit.
20406         (struct cgraph_global_info): Replace insns by time ans size fields.
20407         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
20408         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
20409         (ipcp_update_callgraph): Do not touch function bodies.
20410         * ipa-inline.c: Include except.h
20411         (MAX_TIME): New constant.
20412         (overall_insns): Remove.
20413         (leaf_node_p): New.
20414         (overall_size, max_benefit): New static variables.
20415         (cgraph_estimate_time_after_inlining): New function.
20416         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
20417         (cgraph_clone_inlined_nodes): Update size.
20418         (cgraph_mark_inline_edge): Update size.
20419         (cgraph_estimate_growth): Use size info.
20420         (cgraph_check_inline_limits): Check size.
20421         (cgraph_default_inline_p): Likewise.
20422         (cgraph_edge_badness): Compute badness based on benefit and size cost.
20423         (cgraph_decide_recursive_inlining): Check size.
20424         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
20425         and times.
20426         (cgraph_decide_inlining): Likewise.
20427         (cgraph_decide_inlining_incrementally): Likewise; honor
20428         PARAM_EARLY_INLINING_INSNS.
20429         (likely_eliminated_by_inlining_p): New predicate.
20430         (estimate_function_body_sizes): New function.
20431         (compute_inline_parameters): Use it.
20432         * except.c (must_not_throw_labels): New function.
20433         * except.h (must_not_throw_labels): Declare.
20434         * tree-inline.c (init_inline_once): Kill inlining_weigths
20435         * tree-ssa-structalias.c: Avoid uninitialized warning.
20436         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
20437         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
20438         (PARAM_INLINE_CALL_COST): Remove.
20439         (PARAM_EARLY_INLINING_INSNS): New.
20440
20441 2009-05-25  Richard Guenther  <rguenther@suse.de>
20442
20443         PR tree-optimization/36327
20444         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
20445         callback for reference translation or lookup at the point of may-defs.
20446         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
20447         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
20448         for union COMPONENT_REFs.
20449         (vn_reference_lookup_3): New callback.  Lookup from memset
20450         and CONSTRUCTOR assignment, translate through struct copies.
20451         (vn_reference_lookup_pieces): Make sure to not free the
20452         passed operands array.  Adjust walk_non_aliased_vuses call.
20453         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
20454         make sure we do not leak memory.
20455
20456 2009-05-25  Richard Guenther  <rguenther@suse.de>
20457
20458         * tree-ssa-alias.h (dump_points_to_solution): Declare.
20459         * tree-inline.c (expand_call_inline): Reset the escaped and
20460         callused solutions.
20461         * tree-ssa-structalias.c (pass_build_ealias): New.
20462         * tree-pass.h (pass_build_ealias): Declare.
20463         * passes.c (init_optimization_passes): Add PTA during
20464         early optimizations.
20465         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
20466         and CALLUSED solutions.
20467         (dump_points_to_solution): New function, split out from ...
20468         (dump_points_to_info_for): ... here.
20469         * tree-parloops.c (parallelize_loops): Reset the escaped and
20470         callused solutions.
20471
20472 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20473
20474         PR bootstrap/40027
20475         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
20476         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
20477
20478 2009-05-25  Ira Rosen  <irar@il.ibm.com>
20479
20480         PR tree-optimization/40238
20481         * tree-vect-stmts.c (vect_init_vector): Insert initialization
20482         statements after basic block's labels.
20483         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
20484         to free the allocated memory.
20485
20486 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20487
20488         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
20489         return address with a USE.
20490
20491 2009-05-24  Richard Guenther  <rguenther@suse.de>
20492
20493         PR middle-end/40233
20494         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
20495         array type from the main variant of the inner type.
20496
20497 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20498
20499         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
20500         definition to bool (from int) to un-break build.
20501         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
20502
20503 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
20504
20505         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
20506         discard_stmt_changes): Delete.
20507         * tree-ssa-operands.c (scb_stack): Delete.
20508         (init_ssa_operands): Do not initialize it.
20509         (fini_ssa_operands): Do not free it.
20510         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
20511
20512         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
20513         update_stmt, remove the others.  Fix comments.
20514         * tree-dfa.c (optimize_stack_restore): Likewise.
20515         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
20516         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
20517         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
20518         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
20519         Likewise.
20520         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
20521         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
20522         (dom_opt_finalize_block): Likewise, adjusting access to
20523         stmts_to_rescan.
20524         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
20525         (stmts_to_rescan): Change item type to gimple.
20526         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
20527
20528 2009-05-24  Ira Rosen  <irar@il.ibm.com>
20529
20530         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
20531         * tree-pass.h (pass_slp_vectorize): New pass.
20532         * params.h (SLP_MAX_INSNS_IN_BB): Define.
20533         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
20534         * tree-vectorizer.c (timevar.h): Include.
20535         (user_vect_verbosity_level): Declare.
20536         (vect_location): Fix comment.
20537         (vect_set_verbosity_level): Update user_vect_verbosity_level
20538         instead of vect_verbosity_level.
20539         (vect_set_dump_settings): Add an argument. Ignore user defined
20540         verbosity if dump flags require higher level of verbosity. Print to
20541         stderr only for loop vectorization.
20542         (vectorize_loops): Update call to vect_set_dump_settings.
20543         (execute_vect_slp): New function.
20544         (gate_vect_slp): Likewise.
20545         (struct gimple_opt_pass pass_slp_vectorize): New.
20546         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
20547         access its members.
20548         (vec_info_for_bb): New function.
20549         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
20550         (VECTORIZATION_ENABLED): New macro.
20551         (SLP_ENABLED, SLP_DISABLED): Likewise.
20552         (vect_is_simple_use): Add bb_vec_info argument.
20553         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
20554         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
20555         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
20556         vect_schedule_slp, vect_analyze_slp): Likewise.
20557         (vect_analyze_stmt): Add slp_tree argument.
20558         (find_bb_location): Declare.
20559         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20560         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
20561         (vect_analyze_loop_operations, vect_analyze_loop,
20562         get_initial_def_for_induction, vect_create_epilog_for_reduction,
20563         vect_finalize_reduction, vectorizable_reduction,
20564         vectorizable_live_operation, vect_transform_loop): Likewise.
20565         * tree-data-ref.c (dr_analyze_innermost): Update comment,
20566         skip evolution analysis if analyzing a basic block.
20567         (dr_analyze_indices): Likewise.
20568         (initialize_data_dependence_relation): Skip the test whether the
20569         object is invariant for basic blocks.
20570         (compute_all_dependences): Skip dependence analysis for data
20571         references in basic blocks.
20572         (find_data_references_in_stmt): Don't fail in case of invariant
20573         access in basic block.
20574         (find_data_references_in_bb): New function.
20575         (find_data_references_in_loop): Move code to
20576         find_data_references_in_bb and add a call to it.
20577         (compute_data_dependences_for_bb): New function.
20578         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
20579         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
20580         that STEP is 0.
20581         (vect_analyze_data_ref_dependence): Check for interleaving in case of
20582         unknown dependence in basic block and fail in case of dependence in
20583         basic block.
20584         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
20585         dependence instances from either loop or basic block vectorization
20586         info.
20587         (vect_compute_data_ref_alignment): Check if it is loop vectorization
20588         before calling nested_in_vect_loop_p.
20589         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
20590         dependence instances from either loop or basic block vectorization
20591         info.
20592         (vect_verify_datarefs_alignment): Likewise.
20593         (vect_enhance_data_refs_alignment): Adjust function calls.
20594         (vect_analyze_data_refs_alignment): Likewise.
20595         (vect_analyze_group_access): Fix printing. Skip different checks if
20596         DR_STEP is 0. Keep strided stores either in loop or basic block
20597         vectorization data structure. Fix indentation.
20598         (vect_analyze_data_ref_access): Fix comments, allow zero step in
20599         basic blocks.
20600         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
20601         dependence instances from either loop or basic block vectorization
20602         info.
20603         (vect_analyze_data_refs): Update comment. Call
20604         compute_data_dependences_for_bb to analyze basic blocks.
20605         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
20606         case of loop vectorization. In case of basic block vectorization use
20607         data-ref itself as a base.
20608         (vect_create_data_ref_ptr): In case of basic block vectorization:
20609         don't advance the pointer, add new statements before the current
20610         statement.  Adjust function calls.
20611         (vect_supportable_dr_alignment): Support only aligned accesses in
20612         basic block vectorization.
20613         * common.opt (ftree-slp-vectorize): New flag.
20614         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
20615         (vect_pattern_recog_1): Likewise.
20616         * tree-vect-stmts.c (process_use): Likewise.
20617         (vect_init_vector): Add new statements in the beginning of the basic
20618         block in case of basic block SLP.
20619         (vect_get_vec_def_for_operand): Adjust function calls.
20620         (vect_finish_stmt_generation): Likewise.
20621         (vectorizable_call): Add assert that it is loop vectorization, adjust
20622         function calls.
20623         (vectorizable_conversion, vectorizable_assignment): Likewise.
20624         (vectorizable_operation): In case of basic block SLP, take
20625         vectorization factor from statement's type and skip the relevance
20626         check. Adjust function calls.
20627         (vectorizable_type_demotion): Add assert that it is loop
20628         vectorization, adjust function calls.
20629         (vectorizable_type_promotion): Likewise.
20630         (vectorizable_store): Check for outer loop only in case of loop
20631         vectorization. Adjust function calls. For basic blocks, skip the
20632         relevance check and don't advance pointers.
20633         (vectorizable_load): Likewise.
20634         (vectorizable_condition): Add assert that it is loop vectorization,
20635         adjust function calls.
20636         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
20637         that it is not reduction, get vector type, call only supported
20638         functions, skip loop specific parts.
20639         (vect_transform_stmt): Check for outer loop only in case of loop
20640         vectorization.
20641         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
20642         (vect_is_simple_use): Fix comment, add new argument, fix conditions
20643         for external definition.
20644         * passes.c (pass_slp_vectorize): New pass.
20645         * tree-vect-slp.c (find_bb_location): New function.
20646         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
20647         check for patterns only in loops.
20648         (vect_build_slp_tree): Add argument, adjust function calls, fail in
20649         case of multiple types in basic block SLP.
20650         (vect_mark_slp_stmts_relevant): New function.
20651         (vect_supported_load_permutation_p): Fix comment.
20652         (vect_analyze_slp_instance): Add argument. In case of basic block
20653         SLP, take vectorization factor from statement's type, check that
20654         unrolling factor is 1. Adjust function call. Save SLP instance in
20655         either loop or basic block vectorization structure. Return FALSE,
20656         if SLP failed.
20657         (vect_analyze_slp): Add argument. Get strided stores groups from
20658         either loop or basic block vectorization structure. Return FALSE
20659         if basic block SLP failed.
20660         (new_bb_vec_info): New function.
20661         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
20662         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
20663         (vect_schedule_slp): Add argument. Get SLP instances from either
20664         loop or basic block vectorization structure. Set vectorization factor
20665         to be 1 for basic block SLP.
20666         (vect_slp_transform_bb): New function.
20667         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
20668
20669 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
20670
20671         * final.c (shorten_branches): Do not align labels for jump tables.
20672         (final_scan_insn): Use JUMP_TABLE_DATA_P.
20673
20674 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20675
20676         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
20677         Remove outdated reference to flow.c and fix nits.
20678         * doc/gccint.texi: Tweak RTL description.
20679         * doc/rtl.texi: Likewise.
20680
20681 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
20682
20683         * config/avr/avr.c: Change my email address.
20684         * config/avr/avr.h: Likewise.
20685         * config/avr/avr.md: Likewise.
20686         * config/avr/avr-protos.h: Likewise.
20687         * config/avr/libgcc.S: Likewise.
20688
20689 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
20690
20691         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
20692         (spu_split_load, spu_split_store): Change return type to int.
20693         (spu_split_convert): Declare.
20694         * config/spu/predicates.md (spu_mem_operand): Remove.
20695         (spu_mov_operand): Update.
20696         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
20697         * config/spu/spu.c (regno_aligned_for_load): Remove.
20698         (reg_aligned_for_addr, spu_expand_load): Define.
20699         (spu_expand_extv): Reimplement and handle MEM.
20700         (spu_expand_insv): Handle MEM.
20701         (spu_sched_reorder): Handle insn's with length 0.
20702         (spu_legitimate_address_p): Reimplement.
20703         (store_with_one_insn_p): Return TRUE for any mode with size
20704         larger than 16 bytes.
20705         (address_needs_split): Define.
20706         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
20707         operands.
20708         (spu_convert_move): Define.
20709         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
20710         (spu_split_store): Change all MEM's to TImode.
20711         (spu_init_expanders): Preallocate registers that correspond to
20712         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
20713         mark_reg_pointer.
20714         (spu_split_convert): Define.
20715         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
20716         (_move<mode>, _movdi, _movti): Update predicate and condition.
20717         (load, store): Change to define_split.
20718         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
20719         extend<mode>ti2.
20720         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
20721         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
20722         define_insn_and_split of lshr<mode>3.
20723         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
20724         (<v>ashr<mode>3_imm): Define.
20725         (extv, extzv, insv): Allow MEM operands.
20726         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
20727         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
20728         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
20729         (_spu_convert2): Change to define_insn_and_split and remove the
20730         corresponding define_peephole2.
20731         (stack_protect_set, stack_protect_test, stack_protect_test_si):
20732         Change predicates to memory_operand.
20733
20734 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20735
20736         * config/arm/thumb2.md: Add 16-bit multiply instructions.
20737
20738 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20739
20740         PR tree-optimization/40219
20741         * tree.c (iterative_hash_expr): Make sure the builtin function is
20742         a normal builtin function and not a front end or back end builtin
20743         before indexing into the built_in_decls array.
20744
20745 2009-05-22  Richard Guenther  <rguenther@suse.de>
20746
20747         PR middle-end/38964
20748         * alias.c (write_dependence_p): Do not use TBAA for answering
20749         anti-dependence or output-dependence.
20750         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
20751         (emit_pointer_definition): Remove.
20752         (emit_alias_warning): Likewise.
20753         (find_what_var_points_to): Remove TBAA pruning code.
20754         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
20755         violations.
20756         (compute_points_to_sets): Remove code computing the set of
20757         dereferenced pointers.
20758         * tree-data-ref.c (dr_may_alias_p): Properly use the split
20759         oracle for querying anti and output dependencies.
20760         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
20761         if TBAA may be applied.
20762         (refs_anti_dependent_p): New function.
20763         (refs_output_dependent_p): Likewise.
20764         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
20765         (refs_output_dependent_p): Likewise.
20766         * doc/tree-ssa.texi (Memory model): New section.
20767         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20768         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20769         * cfgexpand.c (expand_gimple_basic_block): Do not handle
20770         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
20771         * expr.c (expand_expr_real_1): Likewise.
20772         * gimple-low.c (lower_stmt): Likewise.
20773         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
20774         (dump_gimple_cdt): Remove.
20775         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20776         (gimple_size): Likewise.
20777         (walk_gimple_op): Likewise.
20778         (is_gimple_stmt): Likewise.
20779         (walk_stmt_load_store_addr_ops): Likewise.
20780         (gimple_build_cdt): Remove.
20781         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20782         * gimple.h (gimple_cdt_new_type): Remove.
20783         (gimple_cdt_new_type_ptr): Likewise.
20784         (gimple_cdt_set_new_type): Likewise.
20785         (gimple_cdt_location): Likewise.
20786         (gimple_cdt_location_ptr): Likewise.
20787         (gimple_cdt_set_location): Likewise.
20788         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20789         * tree-cfg.c (remove_useless_stmts_1): Do not handle
20790         GIMPLE_CHANGE_DYNAMIC_TYPE.
20791         (verify_types_in_gimple_stmt): Likewise.
20792         * tree-inline.c (estimate_num_insns): Likewise.
20793         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
20794         (copy_decl_to_var): Likewise.
20795         (copy_result_decl_to_var): Likewise.
20796         * tree-pretty-print.c (dump_generic_node): Do not handle
20797         CHANGE_DYNAMIC_TYPE_EXPR.
20798         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20799         * tree-ssa-operands.c (get_expr_operands): Likewise.
20800         * tree-ssa-structalias.c (struct variable_info): Remove
20801         no_tbaa_pruning member.
20802         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
20803         (unify_nodes): Do not copy it.
20804         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20805         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
20806         (set_uids_in_ptset): Do not check it.
20807         (find_what_var_points_to): Likewise.
20808         (compute_tbaa_pruning): Remove.
20809         (compute_points_to_sets): Do not call it.
20810         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20811         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20812         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
20813         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
20814         (DECL_NO_TBAA_P): Likewise.
20815         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
20816         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
20817         (expand_omp_atomic_pipeline): Do not set it.
20818         * print-tree.c (print_node): Do not dump it.
20819         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
20820         redundant check.
20821
20822 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
20823
20824         PR target/39856
20825         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
20826         for clobber.
20827
20828 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20829
20830         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
20831         non-external.
20832
20833 2009-05-22  Ben Elliston  <bje@au.ibm.com>
20834
20835         * Makefile.in (bversion.h, s-bversion): New targets.
20836         (TOPLEV_H): Add bversion.h.
20837         * toplev.h: Include "bversion.h".
20838         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
20839         the __format__ attribute only if compiling with the same version
20840         of GCC as the sources (the "build version").
20841
20842 2009-05-22  Ben Elliston  <bje@au.ibm.com>
20843
20844         * c-format.c (handle_format_attribute): Fix comment typo.
20845
20846 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
20847
20848         PR target/37846
20849         * config/ia64/ia64.opt (mfused-madd): New.
20850         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
20851         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
20852         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
20853         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
20854         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
20855         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
20856         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
20857         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
20858         instruction if !TARGET_FUSED_MADD.
20859         (fpma, fpms): Remove colon from name.
20860
20861 2009-05-22  Richard Guenther  <rguenther@suse.de>
20862
20863         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
20864         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
20865         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20866         TARGET_MEM_REF.
20867         (create_expression_by_pieces): Only convert if necessary.
20868         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
20869         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
20870
20871 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
20872
20873         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
20874         regular pattern from a template and rename it ...
20875         (*extzv_truncsi_exts): ... to this.
20876
20877 2009-05-21  Richard Guenther  <rguenther@suse.de>
20878
20879         * cgraph.h (struct cgraph_node): Remove inline_decl member.
20880         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
20881         (cgraph_default_inline_p): Likewise.
20882         (cgraph_decide_inlining_incrementally): Likewise.
20883
20884 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20885             Uros Bizjak  <ubizjak@gmail.com>
20886
20887         * config/i386/cpuid.h (bit_MOVBE): New.
20888
20889         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
20890
20891         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
20892         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
20893         (ix86_handle_option): Handle OPT_mmovbe.
20894         (ix86_target_string): Add -mmovbe.
20895         (pta_flags): Add PTA_MOVBE.
20896         (processor_alias_table): Add PTA_MOVBE to "atom".
20897         (override_options): Handle PTA_MOVBE.
20898
20899         * config/i386/i386.h (TARGET_MOVBE): New.
20900
20901         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
20902         (*bswapsi_movbe): New.
20903         (*bswapdi_movbe): Likewise.
20904         (bswapdi2): Renamed to ...
20905         (*bswapdi_1): This.
20906         (bswapdi2): New expander.
20907
20908         * config/i386/i386.opt (mmovbe): New.
20909
20910         * doc/invoke.texi: Document -mmovbe.
20911
20912 2009-05-21  Taras Glek  <tglek@mozilla.com>
20913
20914         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
20915         * gcc-plugin.h (plugin_init): Updated signature.
20916         * gcc-plugin.h (plugin_name_args): Moved to this header.
20917         * doc/plugins.texi (plugin_init): Updated documention to reflect
20918         API change.
20919         * doc/plugins.texi (plugin_name_args): Added to documention.
20920
20921 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
20922
20923         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
20924         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
20925
20926 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
20927
20928         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
20929         JUMP_TABLE_DATA_P predicates where applicable.
20930         * config/i386/predicates.md: Ditto.
20931         * config/i386/sse.md: Ditto.
20932
20933 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
20934
20935         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
20936         operand2 -128 override length_immediate attribute to 1.
20937         * config/i386/predicates.md (constm128_operand): New predicate.
20938
20939         * config/i386/i386.c (memory_address_length): Handle %r12
20940         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
20941         also check REGNO.
20942         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
20943         mode look through optional ZERO_EXTEND and SUBREG.
20944         * config/i386/i386.md (R12_REG): New define_constant.
20945         (prefix_data16): For sse unit set also for MODE_TI insns.
20946         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
20947         insns set if operand 1 is ext_QIreg_operand.
20948         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
20949         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
20950         immediate.
20951         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
20952         mode from MODE_DI to MODE_SI.
20953         (movdi_1_rex64): Override modrm and length_immediate attributes
20954         only for movabs (TYPE_IMOV, alternative 2).
20955         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
20956         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
20957         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
20958         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
20959         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
20960         prefix_rex attribute if DImode.
20961         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
20962         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
20963         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
20964         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
20965         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
20966         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
20967         Likewise.  For TYPE_IMOV clear length_immediate attribute.
20968         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
20969         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
20970         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
20971         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
20972         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
20973         or one operand TYPE_ISHIFT.
20974         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
20975         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
20976         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
20977         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
20978         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
20979         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
20980         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
20981         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
20982         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
20983         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
20984         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
20985         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
20986         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
20987         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
20988         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
20989         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
20990         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
20991         set mode attribute, don't override length attribute.
20992         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
20993         to 1.
20994         (return_internal_long): Set length attribute to 2 instead of 1.
20995         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
20996         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
20997         prefix_rex attribute.
20998         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
20999         New predicates.
21000         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
21001
21002 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21003
21004         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
21005
21006 2009-05-20  Ian Lance Taylor  <iant@google.com>
21007
21008         * tree.c (build_tree_list_vec_stat): New function.
21009         (ctor_to_vec): New function.
21010         (build_nt_call_vec): New function.
21011         (build_call_array): Change args to be a const pointer.
21012         (build_call_vec): New function.
21013         * tree.h (build_nt_call_vec): Declare.
21014         (build_tree_list_vec_stat): Declare.
21015         (build_tree_list_vec): Define.
21016         (build_call_array): Update declaration.
21017         (build_call_vec): Declare.
21018         (ctor_to_vec): Declare.
21019         * c-common.c (tree_vector_cache): New static variable.
21020         (make_tree_vector): New function.
21021         (release_tree_vector): New function.
21022         (make_tree_vector_single): New function.
21023         (make_tree_vector_copy): New function.
21024         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
21025         (make_tree_vector_single, make_tree_vector_copy): Declare.
21026         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
21027         (c_parser_expr_list): Don't manage cache here, instead call
21028         make_tree_vector.
21029         (c_parser_release_expr_list): Remove static function.
21030         (c_parser_vec_to_tree_list): Remove static function.
21031         (c_parser_attributes): Call build_tree_list_vec instead of
21032         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
21033         c_parser_release_expr_list.
21034         (c_parser_postfix_expression_after_primary): Likewise.
21035         (c_parser_objc_keywordexpr): Likewise.
21036
21037 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
21038
21039         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
21040         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
21041         TARGET_CONVERT_TO_TYPE.
21042         * hooks.c (hook_tree_const_tree_null): Define.
21043         * hooks.h (hook_tree_const_tree_null): Declare.
21044         * target.h (struct gcc_target):  Add invalid_parameter_type,
21045         invalid_return_type, promoted_type, and convert_to_type fields.
21046         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
21047         (TARGET_INVALID_RETURN_TYPE): Define.
21048         (TARGET_PROMOTED_TYPE): Define.
21049         (TARGET_CONVERT_TO_TYPE): Define.
21050         (TARGET_INITIALIZER): Update for new fields.
21051         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
21052         (grokparms): Check targetm.invalid_parameter_type.
21053         * c-typeck.c (default_conversion): Check targetm.promoted_type.
21054         * c-convert.c (convert): Check targetm.convert_to_type.
21055
21056 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
21057
21058         * config/mips/mips.md (*extenddi_truncate<mode>,
21059         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
21060         defintions.
21061         (*extendhi_truncateqi): New define_insn_and_sptit.
21062
21063 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
21064
21065         PR middle-end/40204
21066         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
21067         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
21068
21069 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21070
21071         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
21072         the operand of VIEW_CONVERT_EXPR.
21073
21074 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
21075
21076         * config/i386/driver-i386.c (host_detect_local_cpu): Check
21077         extended family and model for Intel processors.  Support Intel Atom.
21078
21079 2009-05-20  Olivier Hainque  <hainque@adacore.com>
21080
21081         * gstab.h (stab_code_type): Define, to be used instead of the
21082         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
21083         notice.
21084         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
21085         occurrences by stab_code_type.
21086         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
21087
21088 2009-05-20  Martin Jambor  <mjambor@suse.cz>
21089
21090         * tree-flow.h (insert_edge_copies_seq): Undeclare.
21091         (sra_insert_before): Likewise.
21092         (sra_insert_after): Likewise.
21093         (sra_init_cache): Likewise.
21094         (sra_type_can_be_decomposed_p): Likewise.
21095         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
21096         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
21097         (sra_insert_before): Likewise.
21098         (sra_insert_after): Likewise.
21099         (sra_init_cache): Likewise.
21100         (insert_edge_copies_seq): Made static and moved upwards.
21101
21102         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
21103         case.
21104
21105         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
21106
21107         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
21108         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
21109         simple copies.
21110
21111 2009-05-20  Richard Guenther  <rguenther@suse.de>
21112
21113         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21114         with mismatched comparison modes.
21115
21116 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21117
21118         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
21119         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
21120         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
21121         with shifts for Thumb2.
21122         (orsi_notsi): New for orn.
21123         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
21124         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
21125         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
21126         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
21127         Don't invert remainder for IOR.
21128
21129 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
21130
21131         PR tree-optimization/40087
21132         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
21133         number_of_iterations_ne): Rename never_infinite argument.
21134         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
21135         number_of_iterations_le): Handle pointer-type ivs when
21136         exit_must_be_taken is false.
21137         (number_of_iterations_cond):  Do not always assume that
21138         exit_must_be_taken if the control variable is a pointer.
21139
21140 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21141
21142         * c-typeck.c (build_binary_op): Allow % on integal vectors.
21143         * doc/extend.texi (Vector Extension): Document that % is allowed too.
21144
21145 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
21146
21147         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
21148         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
21149
21150 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21151
21152         PR c/40172
21153         * c.opt (Wlogical-op): Disabled by default.
21154         * c-opt (c_common_post_options): Do not enable Wlogical-op with
21155         Wextra.
21156         * doc/invoke.texi (Wlogical-op): Likewise.
21157
21158 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21159
21160         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
21161         into CASE_CONVERT.
21162         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
21163         Propagate the type of the first operand.
21164         <ASSERT_EXPR>: Simplify.
21165         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
21166         Rewrite using the RHS code as discriminant.
21167         <NOP_EXPR>: Turn into CASE_CONVERT.
21168         <PLUS_EXPR>: Propagate the type of the first operand.
21169
21170 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
21171
21172         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
21173         (ia64_dconst_0_375): New.
21174         * config/ia64/ia64.c (ia64_override_options): Remove
21175         -minline-sqrt-min-latency warning.
21176         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
21177         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
21178         * config/ia64/ia64.md (*sqrt_approx): Remove.
21179         (sqrtsf2): Remove #if 0.
21180         (sqrtsf2_internal_thr): Rewrite and move to div.md.
21181         (sqrtdf): Remove assert.
21182         (sqrtdf2_internal_thr): Rewrite and move to div.md.
21183         (sqrtxf2): Remove #if 0.
21184         (sqrtxf2_internal_thr): Rewrite and move to div.md.
21185         * div.md (sqrt_approx_rf): New.
21186         (sqrtsf2_internal_thr): New implementation.
21187         (sqrtsf2_internal_lat): New.
21188         (sqrtdf2_internal_thr: New implementation.
21189         (sqrtxf2_internal): New implementation.
21190
21191 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21192             Hans-Peter Nilsson  <hp@axis.com>
21193
21194         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
21195         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
21196         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
21197         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
21198         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
21199         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
21200         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
21201         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
21202         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
21203         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
21204         * c-common.c: ...from here.
21205
21206 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21207
21208         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
21209
21210 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21211
21212         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
21213
21214 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21215
21216         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
21217         assignments with memcpy calls.
21218         (add_fdes): Likewise.
21219         (binary_search_unencoded_fdes): Likewise.
21220         (linear_search_fdes): Eliminate type puns.
21221
21222 2009-05-19  Richard Guenther  <rguenther@suse.de>
21223
21224         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
21225         not falsely claim to have propagated into all uses.
21226
21227 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21228
21229         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
21230         version to v3.0.
21231
21232 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21233
21234         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
21235         * config/sh/sh.c (sh_legitimate_address_p): Make static.
21236         (TARGET_LEGITIMATE_ADDRESS_P): New.
21237         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21238         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21239
21240 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
21241
21242         PR debug/40109
21243         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
21244         child of the containing namespace's DIE.
21245
21246 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
21247
21248         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
21249         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
21250         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
21251         extend patterns.
21252
21253 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
21254
21255         PR target/39942
21256         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
21257         gen_align with gen_pad.
21258         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
21259         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
21260
21261         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
21262         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
21263
21264         * config/i386/i386.md (align): Renamed to ...
21265         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
21266         ASM_OUTPUT_MAX_SKIP_PAD.
21267
21268 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
21269
21270         * config.gcc: Fix variable syntax.
21271
21272         PR target/39531
21273         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
21274         before calling exact_log2.
21275         (output_iorsi3): Likewise.
21276         (output_xorsi3): Likewise.
21277
21278 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21279
21280         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
21281         for the none zero constant operand except for EQ and NE
21282         comprisons even when the first operand is R0.
21283
21284 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
21285
21286         * config/s390/2064.md: Remove trailing whitespaces.
21287         * config/s390/2084.md: Likewise.
21288         * config/s390/constraints.md: Likewise.
21289         * config/s390/fixdfdi.h: Likewise.
21290         * config/s390/libgcc-glibc.ver: Likewise.
21291         * config/s390/s390-modes.def: Likewise.
21292         * config/s390/s390-protos.h: Likewise.
21293         * config/s390/s390.c: Likewise.
21294         * config/s390/s390.h: Likewise.
21295         * config/s390/s390.md: Likewise.
21296         * config/s390/tpf-unwind.h: Likewise.
21297
21298 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21299
21300         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
21301
21302 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21303
21304         M68K TLS support.
21305         * configure.ac (m68k-*-*): Check if binutils support TLS.
21306         * configure: Regenerate.
21307         * config/m68k/predicates.md (symbolic_operand): Extend comment.
21308         * config/m68k/constraints.md (Cu): New constraint.
21309         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
21310         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
21311         (movsi): Handle TLS symbols.
21312         (addsi3_5200): Handle XTLS symbols, indent.
21313         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
21314         (m68k_tls_reference_p): Declare.
21315         (m68k_legitimize_address): Declare.
21316         (m68k_unwrap_symbol): Declare.
21317         * config/m68k/m68k.opt (mxtls): New option.
21318         * config/m68k/m68k.c (ggc.h): Include.
21319         (m68k_output_dwarf_dtprel): Implement hook.
21320         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
21321         (m68k_expand_prologue): Load GOT pointer when function needs it.
21322         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
21323         (m68k_legitimate_constant_address_p): Same.
21324         (m68k_decompose_address): Handle TLS references.
21325         (m68k_get_gp): New static function.
21326         (enum m68k_reloc): New contants.
21327         (TLS_RELOC_P): New macro.
21328         (m68k_wrap_symbol): New static function.
21329         (m68k_unwrap_symbol): New function.
21330         (m68k_final_prescan_insn_1): New static function.
21331         (m68k_final_prescan_insn): New function.
21332         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
21333         functions.
21334         (legitimize_pic_address): Handle TLS references..
21335         (m68k_tls_get_addr, m68k_get_tls_get_addr)
21336         (m68k_libcall_value_in_a0_p)
21337         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
21338         (m68k_call_m68k_read_tp): Helper variables and functions for ...
21339         (m68k_legitimize_tls_address): Handle TLS references.
21340         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
21341         New functions.
21342         (m68k_legitimize_address): Handle TLS symbols.
21343         (m68k_get_reloc_decoration): New static function.
21344         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
21345         UNSPEC_RELOC32.
21346         (m68k_output_dwarf_dtprel): Implement hook.
21347         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
21348         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
21349         m68k_call_* routines.
21350         (sched_attr_op_type): Handle TLS symbols.
21351         (gt-m68k.h): Include.
21352         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
21353         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
21354
21355 2009-05-18  Martin Jambor  <mjambor@suse.cz>
21356
21357         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
21358         (visit_store_addr_for_mod_analysis): New function.
21359         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
21360         (determine_cst_member_ptr): Use gimple_assign_single_p.
21361         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
21362         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
21363         operands.  Don't check number of operands of a NOP_EXPR.
21364
21365 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
21366
21367         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
21368
21369 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21370
21371         PR c/40172
21372         * c-common.c (warn_logical_operator): Don't warn if one of
21373         expression isn't always true or false.
21374
21375 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
21376
21377         * config/i386/biarch32.h: New file.
21378         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
21379
21380 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
21381
21382         * config/mips/mips.md (*zero_extend<mode>_trunchi,
21383         *zero_extend<mode>_truncqi): Merge these into ...
21384         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
21385         Name the pattern following this as *zero_extendhi_truncqi.
21386
21387 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
21388
21389         PR middle-end/39301
21390         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
21391         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
21392         (output_info): Make field HOST_WIDEST_INT.
21393         (print_statistics): Use HOST_WIDEST_INT_PRINT.
21394         (dump_bitmat_statistics): Same.
21395
21396 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21397
21398         * config.gcc (use_gcc_stdint):  Set to wrap.
21399         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
21400         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
21401         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21402         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21403         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21404         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21405         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21406         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
21407
21408 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
21409
21410         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
21411         tune_64.
21412         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
21413         Move definitions earlier.
21414         (OPT_ARCH64, OPT_ARCH32): Define.
21415         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
21416         and tune_64.
21417
21418 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21419
21420         PR target/40153
21421         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
21422         implies.
21423
21424 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21425
21426         * arm.md (movdi2): Copy non-reg values to DImode registers.
21427
21428 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
21429
21430         PR target/39942
21431         * final.c (label_to_max_skip): New function.
21432         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
21433         CODE_LABEL_NUMBER <= max_labelno.
21434         * output.h (label_to_max_skip): New prototype.
21435         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
21436         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
21437         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
21438         Handle CODE_LABELs with >= 16 byte alignment or with
21439         max_skip == (1 << align) - 1.
21440         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
21441         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
21442
21443         PR target/39942
21444         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
21445         .p2align 3 if MAX_SKIP is smaller than 7.
21446         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21447
21448 2009-05-15  Ian Lance Taylor  <iant@google.com>
21449
21450         * alias.c (struct alias_set_entry_d): Rename from struct
21451         alias_set_entry.  Change all uses.
21452         * except.c (struct call_site_record_d): Rename from struct
21453         call_site_record.  Change all uses.
21454         * except.h (struct eh_region_d): Rename from struct eh_region.
21455         Change all uses.
21456         * gcse.c (struct hash_table_d): Rename from struct hash_table.
21457         Change all uses.
21458         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
21459         ivtype_map_elt.  Change all uses.
21460         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
21461         Change all uses.
21462         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
21463         * graphite.h (struct name_tree_d): Rename from struct name_tree.
21464         Change all uses.
21465         (struct sese_d): Rename from struct sese.  Change all uses.
21466         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
21467         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
21468         * optabs.h (struct optab_d): Rename from struct optab.  Change all
21469         uses.
21470         (struct convert_optab_d): Rename from struct convert_optab.
21471         Change all uses.
21472         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
21473         ipa_opt_pass.  Change all uses.
21474         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
21475         all uses.
21476
21477         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
21478         defined as a typedef.
21479         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
21480         defined as a tag.
21481
21482 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21483
21484         PR 16302
21485         * fold-const.c (make_range,build_range_check,merge_ranges): Move
21486         declaration to...
21487         (merge_ranges): Returns bool.
21488         * tree.h (make_range): .. to here.
21489         (build_range_check): Likewise.
21490         (merge_ranges): Likewise. Renamed from merge_ranges.
21491         * c-typeck.c (parser_build_binary_op): Update calls to
21492         warn_logical_operator.
21493         * c-common.c (warn_logical_operator): Add new warning.
21494         * c-common.h (warn_logical_operator): Update declaration.
21495
21496 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21497
21498         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
21499
21500 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21501
21502         * doc/install.texi: Document MPC requirements, flags etc.
21503
21504         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
21505         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
21506         Evaluate constant arguments.
21507         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
21508         (fold_builtin_1): Likewise, also evaluate constant arguments.
21509         Remove superfluous break.
21510         (do_mpc_ckconv): New.
21511         * real.h: Include mpc.h.
21512         * toplev.c (print_version): Output MPC version info if available.
21513
21514 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21515
21516         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
21517
21518 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21519
21520         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
21521         only once.
21522
21523 2009-05-15  Jan Hubicka  <jh@suse.cz>
21524
21525         * doc/invoke.texi (max-early-inliner-iterations): New flag.
21526         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
21527         (try_inline): Fix return value.
21528         (cgraph_decide_inlining_incrementally): Honor new value.
21529         (cgraph_early_inlining): Handle indirect inlining.
21530         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
21531
21532 2009-05-15  Jan Hubicka  <jh@suse.cz>
21533
21534         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
21535         * cgraphunit.c (cgraph_finalize_function): Set it.
21536         (cgraph_expand_function): Use it.
21537
21538 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21539
21540         * real.c (encode_ieee_half): Define.
21541         (decode_ieee_half): Define.
21542         (ieee_half_format): Define.
21543         (arm_half_format): Define.
21544         * real.h (ieee_half_format): Declare.
21545         (arm_half_format): Declare.
21546
21547 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21548
21549         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
21550         swapped, and reversed optabs exist before trying to use them.
21551
21552 2009-05-15  Paul Brook  <paul@codesourcery.com>
21553             Sandra Loosemore  <sandra@codesourcery.com>
21554
21555         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
21556         loads.  Allow PRE_DEC.
21557         (output_move_neon): Handle PRE_DEC.
21558         (arm_print_operand): Add 'A' for neon structure loads.
21559         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
21560         * config/arm/neon.md (neon_mov): Update comment.
21561         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
21562         calls.
21563         (Um): New constraint.
21564
21565 2009-05-15  Jan Hubicka  <jh@suse.cz>
21566
21567         Revert the following patch until testsuite fallout is fixed:
21568         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21569         * cgraph.h (struct inline_summary): New filed self_wize,
21570         size_inlining_benefit, self_time and time_inlining_benefit.
21571         (struct cgraph_global_info): Replace insns by time ans size fields.
21572         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21573         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21574         (ipcp_update_callgraph): Do not touch function bodies.
21575         * ipa-inline.c: Include except.h
21576         (MAX_TIME): New constant.
21577         (overall_insns): Remove
21578         (overall_size, max_benefit): New static variables.
21579         (cgraph_estimate_time_after_inlining): New function.
21580         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21581         (cgraph_clone_inlined_nodes): Update size.
21582         (cgraph_mark_inline_edge): Update size.
21583         (cgraph_estimate_growth): Use size info.
21584         (cgraph_check_inline_limits): Check size.
21585         (cgraph_default_inline_p): Likewise.
21586         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21587         (cgraph_decide_recursive_inlining): Check size.
21588         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21589         and times.
21590         (cgraph_decide_inlining): Likewise.
21591         (cgraph_decide_inlining_incrementally): Likewise; honor
21592         PARAM_EARLY_INLINING_INSNS.
21593         (likely_eliminated_by_inlining_p): New predicate.
21594         (estimate_function_body_sizes): New function.
21595         (compute_inline_parameters): Use it.
21596         * except.c (must_not_throw_labels): New function.
21597         * except.h (must_not_throw_labels): Declare.
21598         * tree-inline.c (init_inline_once): Kill inlining_weigths
21599         * tree-ssa-structalias.c: Avoid uninitialized warning.
21600         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21601         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21602         (PARAM_INLINE_CALL_COST): Remove.
21603         (PARAM_EARLY_INLINING_INSNS): New.
21604
21605 2009-05-15  Richard Guenther  <rguenther@suse.de>
21606
21607         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
21608         not TODO_update_ssa.
21609
21610 2009-05-15  Richard Guenther  <rguenther@suse.de>
21611
21612         PR tree-optimization/39999
21613         * gimple.h (gimple_expr_type): Use the expression type looking
21614         through useless conversions.
21615         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
21616         (vn_nary_op_insert_stmt): Likewise.
21617         (simplify_binary_expression): Likewise.
21618
21619 2009-05-15  Richard Guenther  <rguenther@suse.de>
21620
21621         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21622         New options, enabled by default.
21623         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21624         Document.
21625         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
21626         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
21627         * tree-ssa-structalias.c (gate_tree_pta): New function.
21628         (pass_build_alias): Use it.
21629
21630 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
21631
21632         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
21633         recurse on an invariant address if a conversion from a pointer
21634         type to a wider integer type is involved.
21635
21636 2009-05-15  Jan Hubicka  <jh@suse.cz>
21637
21638         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21639         * cgraph.h (struct inline_summary): New filed self_wize,
21640         size_inlining_benefit, self_time and time_inlining_benefit.
21641         (struct cgraph_global_info): Replace insns by time ans size fields.
21642         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21643         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21644         (ipcp_update_callgraph): Do not touch function bodies.
21645         * ipa-inline.c: Include except.h
21646         (MAX_TIME): New constant.
21647         (overall_insns): Remove
21648         (overall_size, max_benefit): New static variables.
21649         (cgraph_estimate_time_after_inlining): New function.
21650         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21651         (cgraph_clone_inlined_nodes): Update size.
21652         (cgraph_mark_inline_edge): Update size.
21653         (cgraph_estimate_growth): Use size info.
21654         (cgraph_check_inline_limits): Check size.
21655         (cgraph_default_inline_p): Likewise.
21656         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21657         (cgraph_decide_recursive_inlining): Check size.
21658         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21659         and times.
21660         (cgraph_decide_inlining): Likewise.
21661         (cgraph_decide_inlining_incrementally): Likewise; honor
21662         PARAM_EARLY_INLINING_INSNS.
21663         (likely_eliminated_by_inlining_p): New predicate.
21664         (estimate_function_body_sizes): New function.
21665         (compute_inline_parameters): Use it.
21666         * except.c (must_not_throw_labels): New function.
21667         * except.h (must_not_throw_labels): Declare.
21668         * tree-inline.c (init_inline_once): Kill inlining_weigths
21669         * tree-ssa-structalias.c: Avoid uninitialized warning.
21670         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21671         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21672         (PARAM_INLINE_CALL_COST): Remove.
21673         (PARAM_EARLY_INLINING_INSNS): New.
21674         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
21675         (inline-call-cost): Remove.
21676         (early-inlining-insns): New.
21677
21678 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
21679
21680         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
21681         for bounds.
21682         (print_int_cst_bounds_in_octal_p): Likewise.
21683         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
21684         with subtypes.
21685         * dwarf2out.c (base_type_die): Likewise.
21686         (is_subrange_type): Delete.
21687         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
21688         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
21689         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
21690         if the destination type is boolean.
21691         (build_range_check): Do not special-case subtypes.
21692         (fold_sign_changed_comparison): Likewise.
21693         (fold_unary): Likewise.
21694         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
21695         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
21696         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
21697         * tree.c (subrange_type_for_debug_p): New predicate based on the
21698         former is_subrange_type.
21699         * tree.h (subrange_type_for_debug_p): Declare.
21700         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
21701         (convert_affine_scev): Remove call to above function.
21702         (chrec_convert_aggressive): Likewise.
21703         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
21704         false for conversions involving subtypes.
21705         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
21706         (vrp_val_min): Likewise.
21707         (needs_overflow_infinity): Likewise.
21708         (extract_range_from_unary_expr): Likewise.
21709
21710 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
21711
21712         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21713         * config/frv/frv.c: Likewise.
21714         * config/s390/s390.c: Likewise.
21715         * config/sparc/sparc.h: Likewise.
21716         * config/i386/i386.h: Likewise.
21717         * config/i386/i386.c: Likewise.
21718         * config/crx/crx.c: Likewise.
21719         * config/m68hc11/m68hc11.h: Likewise.
21720         * config/iq2000/iq2000.c: Likewise.
21721         * config/mn10300/mn10300.h: Likewise.
21722         * config/mn10300/mn10300.c: Likewise.
21723         * config/m68k/m68k.c: Likewise.
21724         * config/rs6000/rs6000.c: Likewise.
21725         * config/rs6000/xcoff.h: Likewise.
21726         * config/rs6000/linux64.h: Likewise.
21727         * config/rs6000/sysv4.h: Likewise.
21728         * config/score/score3.c: Likewise.
21729         * config/score/score7.c: Likewise.
21730         * config/score/score.c: Likewise.
21731         * config/arm/arm.md: Likewise.
21732         * config/mips/mips.c: Likewise.
21733         * config/mips/mips.md: Likewise.
21734         * config/bfin/bfin.h: Likewise.
21735         * config/pa/pa.c: Likewise.
21736         * config/pa/constraints.md: Likewise.
21737
21738         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
21739         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
21740         * config/pdp11/pdp11.h: Use memory_address_p instead.
21741
21742 2009-05-14  Ian Lance Taylor  <iant@google.com>
21743
21744         * passes.c (finish_optimization_passes): Change i to int.
21745         * plugin.c (plugins_active_p): Change event to int.
21746         (dump_active_plugins): Likewise.
21747         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
21748         Add cast.
21749         * tree.c (tree_range_check_failed): Change c to unsigned int.
21750         (omp_clause_range_check_failed): Likewise.
21751         (build_common_builtin_nodes): Change mode to int.  Add cast.
21752         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
21753         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
21754
21755         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
21756         ++ or -- with a variable of enum type.
21757
21758 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21759
21760         PR driver/40144
21761         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
21762
21763 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21764
21765         * store-motion.c: Do not include params.h
21766         * Makefile.in: Fix dependencies for various files.
21767
21768 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21769
21770         * auto-inc-dec.c: Fix pass description, remove apparent
21771         accidental duplication.
21772
21773 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21774
21775         PR middle-end/40147
21776         * ipa-utils.h (memory_identifier_string): Moved to ...
21777         * tree.h (memory_identifier_string): Here.  Add GTY(()).
21778
21779 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
21780
21781         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
21782         in the former documentation of...
21783         (GO_IF_LEGITIMATE_ADDRESS): ... this.
21784         * ira-conflicts.c (get_dup_num): Use address_operand.
21785         * targhooks.c (default_legitimate_address_p): New.
21786         * targhooks.h (default_legitimate_address_p): New.
21787         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
21788         Call hook.
21789         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
21790         * target.h (struct target): Add legitimate_address_p.
21791         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
21792         (TARGET_INITIALIZER): Include it.
21793
21794         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21795         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
21796         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
21797         (TARGET_LEGITIMATE_ADDRESS_P): New.
21798
21799         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21800         (REG_OK_STRICT_P): Delete.
21801         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
21802         (frv_legitimate_address_p_1): ... this.
21803         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
21804         (frv_legitimate_address_p_1): ... the renamed old
21805         frv_legitimate_address_p.
21806         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
21807         (TARGET_LEGITIMATE_ADDRESS_P): New.
21808
21809         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21810         * config/s390/s390-protos.h (legitimate_address_p): Remove.
21811         * config/s390/s390.c (legitimate_address_p): Rename to...
21812         (s390_legitimate_address_p): ... this, make static.
21813         (legitimize_address): Adjust call.
21814         (TARGET_LEGITIMATE_ADDRESS_P): New.
21815         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
21816
21817         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21818         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
21819         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
21820         (TARGET_LEGITIMATE_ADDRESS_P): New.
21821
21822         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21823         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
21824         * config/spu/spu.c (spu_legitimate_address): Rename to...
21825         (spu_legitimate_address_p): ... this, make static.
21826         (TARGET_LEGITIMATE_ADDRESS_P): New.
21827
21828         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21829         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
21830         * config/sparc/sparc.c (legitimate_address_p): Rename to...
21831         (sparc_legitimate_address_p): ... this, make static and return bool.
21832         (legitimize_address): Adjust call.
21833         (TARGET_LEGITIMATE_ADDRESS_P): New.
21834
21835         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21836         * config/i386/i386-protos.h (legitimate_address_p): Remove.
21837         * config/i386/i386.c (legitimate_address_p): Rename to...
21838         (ix86_legitimate_address_p): ... this, make static.
21839         (constant_address_p): Move after it, adjust call.
21840         (TARGET_LEGITIMATE_ADDRESS_P): New.
21841
21842         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21843         * config/avr/avr-protos.h (legitimate_address_p): Remove.
21844         * config/avr/avr.c (legitimate_address_p): Rename to...
21845         (avr_legitimate_address_p): ... this, make static.
21846         (legitimize_address): Adjust call.
21847         (TARGET_LEGITIMATE_ADDRESS_P): New.
21848
21849         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21850         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
21851         * config/crx/crx.c (crx_legitimate_address_p): Make static.
21852         (TARGET_LEGITIMATE_ADDRESS_P): New.
21853
21854         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21855         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
21856         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
21857         (TARGET_LEGITIMATE_ADDRESS_P): New.
21858
21859         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21860         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
21861         Remove.
21862         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
21863         Make static.
21864         (TARGET_LEGITIMATE_ADDRESS_P): New.
21865
21866         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21867         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
21868         Remove.
21869         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
21870         Rename to...
21871         (m68hc11_legitimate_address_p): ... this, make static.
21872         (go_if_legitimate_address_internal): Rename to...
21873         (m68hc11_legitimate_address_p_1): ... this.
21874         (legitimize_address): Adjust call.
21875         (TARGET_LEGITIMATE_ADDRESS_P): New.
21876
21877         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21878         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
21879         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
21880         (TARGET_LEGITIMATE_ADDRESS_P): New.
21881
21882         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21883         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
21884         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
21885         (mn10300_legitimate_address_p): ... this, make static.
21886         (TARGET_LEGITIMATE_ADDRESS_P): New.
21887
21888         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21889         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
21890         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
21891         (TARGET_LEGITIMATE_ADDRESS_P): New.
21892
21893         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21894         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
21895         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
21896         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21897         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
21898         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
21899         (rs6000_legitimate_address_p): ... this, make static.
21900         (TARGET_LEGITIMATE_ADDRESS_P): New.
21901         (REG_MODE_OK_FOR_BASE_P): Delete.
21902         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
21903
21904         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21905         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
21906         Delete.
21907         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
21908         static, adjust types.
21909         (TARGET_LEGITIMATE_ADDRESS_P): New.
21910
21911         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21912         * config/score/score.c (score_address_p): Rename to...
21913         (score_legitimate_address_p): ... this.
21914         (TARGET_LEGITIMATE_ADDRESS_P): New.
21915         * config/score/score3.c (score3_address_p): Rename to...
21916         (score3_legitimate_address_p): ... this.
21917         * config/score/score7.c (score7_address_p): Rename to...
21918         (score7_legitimate_address_p): ... this.
21919
21920         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
21921         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
21922         GO_IF_LEGITIMATE_ADDRESS): Delete.
21923         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
21924         thumb2_legitimate_address_p): Delete.
21925         (arm_legitimate_address_p): Rename to...
21926         (arm_legitimate_address_outer_p): ... this.
21927         * config/arm/constraints.md ("Uq"): Adjust call.
21928         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
21929         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
21930         to...
21931         (arm_legitimate_address_outer_p): ... this.
21932         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
21933         static.
21934         (TARGET_LEGITIMATE_ADDRESS_P): New.
21935
21936         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21937         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
21938         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
21939         (TARGET_LEGITIMATE_ADDRESS_P): New.
21940
21941         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21942         * config/vax/vax-protos.h (legitimate_address_p): Remove.
21943         * config/vax/vax.c (legitimate_address_p): Rename to...
21944         (vax_legitimate_address_p): ... this, make static.
21945         (TARGET_LEGITIMATE_ADDRESS_P): New.
21946
21947         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21948         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
21949         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
21950         (TARGET_LEGITIMATE_ADDRESS_P): New.
21951
21952         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21953         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
21954         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
21955         (mmix_legitimate_address_p): ... this, make static.
21956         (TARGET_LEGITIMATE_ADDRESS_P): New.
21957
21958         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21959         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
21960         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
21961         (TARGET_LEGITIMATE_ADDRESS_P): New.
21962
21963 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
21964
21965         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
21966         of MODE_COMPLEX_INT.
21967
21968 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21969
21970         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
21971         LCT_NORMAL in function call.
21972         * mips-tdump.c (print_file_desc): Add cast to enum type.
21973         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
21974         (mark_stabs): Add casts to enum types.
21975         (parse_stabs_common): Add casts to enum types.
21976
21977 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
21978
21979         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
21980         Check for invalid values of LETTER.
21981
21982 2009-05-13  Taras Glek  <tglek@mozilla.com>
21983
21984         * attribs.c (register_attribute): moved out attribute registration
21985         into register_attribute.
21986         * doc/plugins.texi: Documented register_attribute and
21987         PLUGIN_ATTRIBUTES.
21988         * gcc-plugin.h: Added forward decl for register_attribute.
21989         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
21990         * plugin.c (register_callback, invoke_plugin_callbacks): Added
21991         PLUGIN_ATTRIBUTES boilerplate.
21992
21993 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
21994
21995         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
21996         values even in sentinel and empty entries.
21997         (ms_printf_flag_specs):  Likewise.
21998         (ms_scanf_flag_specs):  Likewise.
21999         (ms_strftime_flag_specs):  Likewise.
22000         (ms_print_char_table):  Likewise.
22001         (ms_scan_char_table):  Likewise.
22002         (ms_time_char_table):  Likewise.
22003
22004 2009-05-13  Doug Kwan  <dougkwan@google.com>
22005
22006         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
22007
22008 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22009
22010         * config/mips/mips.md (store): Add attributes for QI and HI.
22011         Update comment.
22012         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
22013         (truncdi<mode>2): ... this new pattern.
22014
22015 2009-05-13  Brad Hards  <bradh@kde.org>
22016
22017         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
22018
22019 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
22020             Ben Elliston <bje@au.ibm.com>
22021
22022         PR middle-end/40035
22023         * dse.c (check_mem_read_rtx): Guard against width == -1.
22024
22025 2009-05-13  Michael Matz  <matz@suse.de>
22026
22027         PR middle-end/39976
22028         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
22029         (trivially_conflicts_p): New function.
22030         (insert_backedge_copies): Use it.
22031
22032 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
22033
22034         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
22035         (handle_stdc_pragma): Use new enum constant names.
22036         (handle_pragma_float_const_decimal64): Ditto.
22037
22038 2009-05-13  Ian Lance Taylor  <iant@google.com>
22039
22040         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
22041         tree.def.
22042
22043 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
22044
22045         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
22046         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
22047         multilibs.
22048         * config/m68k/m68k.h (FL_UCLINUX): Define.
22049
22050 2009-05-13  Jan Hubicka  <jh@suse.cz>
22051
22052         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
22053
22054 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22055
22056         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
22057         unless -fschedule-insns is specified.
22058
22059 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22060
22061         PR target/39561
22062         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
22063         TARGET_EXPAND_CBRANCHDI4.
22064         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
22065         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
22066         (cmpeqdi): Fix comment.
22067
22068 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22069
22070         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
22071         (sh_legitimate_address_p): Likewise.
22072         * config/sh/sh.c (sh_legitimate_index_p): New.
22073         (sh_legitimate_address_p): Likewise.
22074         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
22075         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
22076         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
22077         (MAYBE_BASE_REGISTER_RTX_P): New macro.
22078         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
22079         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
22080         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
22081         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
22082         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
22083
22084 2009-05-12  Jan Hubicka  <jh@suse.cz>
22085
22086         * tree-inline.c (estimate_operator_cost): Add operands;
22087         when division happens by constant, it is cheap.
22088         (estimate_num_insns): Loads and stores are not having cost of 0;
22089         EH magic stuff is cheap; when computing runtime cost of switch,
22090         use log2 base of amount of its cases; builtin_expect has cost of 0;
22091         compute cost for moving return value of call.
22092         (init_inline_once): Initialize time_based flags.
22093         * tree-inline.h (eni_weights_d): Add time_based flag.
22094
22095 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22096
22097         * df-core.c: Update head documentation.
22098
22099 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22100
22101         PR bootstrap/40118
22102         * rs6000.c (rs6000_generate_compare): Use op1b instead of
22103         shadowing exisiting variable op1.
22104
22105 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
22106
22107         PR target/37179
22108         * config/i386/driver-i386.c (processor_signatures): New enum.
22109         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
22110         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
22111         processor signature to detect geode processor.
22112
22113 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22114
22115         Revert:
22116
22117         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22118
22119         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22120         causes spurious differences between trunk and cond-optab branch.
22121
22122 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22123
22124         * dojump.c (compare_from_rtx): Delete.
22125         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
22126         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
22127         if the comparison does not satisfy the predicate; test predicates for
22128         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
22129         further if one existing pattern fails.
22130         * expr.h (compare_from_rtx): Delete.
22131         (prepare_operand): Declare it.
22132         * optabs.c: Change "lib call" to "libcall" throughout.
22133         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
22134         HAVE_conditional_trap, emit_cmp_insn): Delete.
22135         (can_compare_p): Delete cmp_optab case.
22136         (prepare_float_lib_cmp): Return an rtx and a machine mode.
22137         Accept other parameters by value.
22138         (prepare_operand): Make non-static.
22139         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
22140         other parameters by value.  Try to widen operands here based on
22141         an optab_methods argument and looking at cbranch_optab.
22142         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
22143         loop.  Use cbranch_optab directly.
22144         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
22145         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
22146         assertion.
22147         (emit_conditional_move, emit_conditional_add): Inline what's needed
22148         of compare_from_rtx, using new prepare_cmp_insn for the rest.
22149         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
22150         with COMPARE.  Move cmov_optab and cstore_optab above
22151         with cbranch_optab, move cmp_optab down with ucmp_optab,
22152         remove tst_otpab.  Do not initialize trap_rtx.
22153         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
22154         for trap code.  Do not check HAVE_conditional_trap.  Use
22155         prepare_cmp_insn.  Accept no predicate for operand 3.
22156         * optabs.h (OTI_cmp): Mark as used only for libcalls.
22157         (OTI_ctrap, ctrap_optab): New.
22158         (tst_optab): Delete.
22159         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
22160         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
22161         with lookup of ctrap_optab.
22162         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
22163         Delete.
22164         (ctrap_optab): New.
22165
22166         * combine.c (combine_simplify_rtx, simplify_set): Do not
22167         special case comparing against zero for cc0 machines.
22168         * simplify-rtx.c (simplify_binary_operation_1): Never remove
22169         COMPARE on cc0 machines.
22170         (simplify_relational_operation): Return a new expression when
22171         a COMPARE could be removed.
22172         * final.c (final_scan_insn): Compare cc_status values
22173         against LHS of a (compare FOO (const_int 0)) cc0 source.
22174         Also check if cc_status.value is the full compare.
22175
22176         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
22177         (cstoreMM4): Document.
22178         (conditional_trap): Document ctrapMM4 instead.
22179         (sync_compare_and_swapMM): Refer to cbranchcc4.
22180         (Dependent Patterns): Eliminate obsolete information referring to
22181         the old jump optimization phase.
22182         (Canonicalization): Include cbranchcc4 case, omit canonicalization
22183         of compares with 0 on cc0 machines.
22184         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
22185         avoiding references to cc0.  Remove text about storing operands
22186         in cmpMM.
22187         * doc/tm.texi (Condition Codes): Include blurb on different
22188         condition code representations, separate into subsections for
22189         CC0, MODE_CC and conditional execution.
22190
22191         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
22192         alpha_emit_setcc): Accept operands and a machine mode.
22193         * config/alpha/alpha.c (alpha_emit_conditional_branch):
22194         Get code/op0/op1 from operands, use machine mode argument
22195         instead of alpha_compare.fp_p.  Emit the branch here.
22196         (alpha_emit_setcc): Likewise, and return boolean.
22197         (alpha_emit_conditional_move): Likewise.  Assert that
22198         cmp_op_mode == cmp_mode, and simplify accordingly.
22199         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
22200         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
22201         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
22202         Delete.
22203         (stack probe test): Use cbranchdi4.
22204         * config/alpha/predicates.md (alpha_cbranch_operator): New.
22205
22206         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
22207         * config/arc/arc.h (movsicc, movsfcc): Use it.
22208         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
22209         (cbranchsi4, cstoresi4): New.
22210         (cmpsi, bCC and sCC expanders): Remove.
22211
22212         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
22213         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
22214         * config/arm/predicates.md (arm_comparison_operator): Only include
22215         floating-point operators if there is a hardware floating-point unit.
22216         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
22217         deferring to cbranch_cc and cstore_cc respectively.
22218         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
22219         cbranch_cc, cstore_cc): New.
22220         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
22221         arm_compare_op1.
22222         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
22223
22224         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
22225         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
22226         as an argument.
22227         (adjust_insn_length): Adjust calls.
22228         (avr_reorg): Handle (compare (foo) (const_int 0)).
22229         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
22230         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
22231         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
22232         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
22233         (bCC): Remove.
22234         (cbranchqi4, cbranchhi4, cbranchsi4): New.
22235         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
22236
22237         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
22238         (cbranchsi4, cstorebi4, cstoresi4): New.
22239         (movbisi): This insn is duplicate, split it to zero_extend.
22240         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
22241         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
22242         (bfin_optimize_loop): Use cbranch expander.
22243         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
22244         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
22245         (bfin_bimode_comparison_operator): ... this.
22246         (bfin_direct_comparison_operator): New.
22247
22248         * config/cris/cris.c (cris_normal_notice_update_cc): Look
22249         inside (compare FOO (const_int 0)).
22250         (cris_rtx_costs): Handle ZERO_EXTRACT.
22251         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
22252         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
22253         (*tstdi_v32): Delete.
22254         (*cmpdi_non_v32): Add M alternative for operand 1.
22255         (cmpsi, cmp<mode>): Make private.
22256         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
22257         with COMPARE.
22258         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
22259
22260         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
22261         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
22262         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
22263         (cc_reg_operand): New.
22264         (any_cond): Delete.
22265         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
22266         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
22267         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
22268         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
22269         crx_expand_scond): Delete.
22270
22271         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
22272         (cbranchsi4): New.
22273         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
22274         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
22275
22276         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
22277         cstoresi4, cstoresf4, cstoredf4): New.
22278         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
22279         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22280         Receive the entire operands array.
22281         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
22282         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
22283         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22284         Get test/op0/op1 from the operands array.
22285         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
22286
22287         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
22288         (h8300_expand_store): New.
22289         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
22290         (const_int 0)).
22291         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
22292         (h8300_expand_store): New.
22293         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
22294         or do not try to produce (set (cc0) REG).
22295         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
22296         change a compare into a move to a scratch register.  Disable some
22297         peepholes when comparing with zero.
22298         (tstsi, tsthi, tstsi, cmpqi): Make private.
22299         (cmphi): Delete.
22300         (bCC, sCC): Delete.
22301         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
22302         cstoresi4): New.
22303
22304         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
22305         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
22306         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
22307         (ix86_emit_i387_log1p): Use cbranchxf2.
22308         (ix86_expand_setcc): Return void.
22309         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
22310         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
22311         cmp<MODEF>, cmpcc): Remove.
22312         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
22313         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
22314         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
22315         (sCC and bCC expanders): Remove.
22316         (stack_protect_test): Use cbranchcc4.
22317
22318         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
22319         Delete.
22320         (ia64_expand_compare): Accept three rtx by reference and return void.
22321         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
22322         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
22323         from *expr.  Update *expr with the BImode comparison to do.
22324         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
22325         cmptf, bCC, sCC, conditional_trap): Delete.
22326         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
22327         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
22328         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
22329         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
22330         * config/ia64/predicates.md (ia64_cbranch_operator): New.
22331
22332         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
22333         type of last argument.
22334         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
22335         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
22336         use machine mode argument instead of branch_type.  Remove dead
22337         code for floating-point comparisons.
22338         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
22339         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
22340         Remove.
22341         (cbranchsi4, cstoresi4): New.
22342         * config/iq2000/predicates.md (reg_or_const_operand): New.
22343
22344         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
22345         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
22346         (b<code>_op): Rewrite to...
22347         (bcc_op): ... this, using match_operator.
22348         (s<code>_op): Rewrite to...
22349         (scc_op): ... this, using match_operator.
22350         (s<code>_24_op): Rewrite to...
22351         (scc_op_24): ... this, using match_operator.
22352         (s<code>_<mode>): Rewrite to...
22353         (cstore<mode>4): ... this, using match_operator.
22354         (s<code>_<mode>_24): Rewrite to...
22355         (cstore<mode>4_24): ... this, using match_operator.
22356         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
22357         m32c_unpend_compare, m32c_expand_scc): Delete.
22358         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
22359         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
22360         (m32c_expand_movcc): Change NE to EQ if necessary.
22361         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
22362
22363         * config/m32r/m32r-protos.h (gen_cond_store): New.
22364         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
22365         (gen_cond_store): New, from sCC patterns.
22366         (m32r_expand_block_move): Use cbranchsi4.
22367         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
22368         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
22369         (cbranchsi4, cstoresi4): New.
22370
22371         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
22372         Delete.
22373         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
22374         (m68hc11_notice_update_cc): Look into a compare with 0.
22375         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
22376         Delete.
22377         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
22378         cmphi, cmpqi, bCC): Delete.
22379         (cbranchsi4, cbranchhi4, cbranchqi4): New.
22380         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
22381         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
22382         sets with COMPARE.
22383
22384         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
22385         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
22386         * config/m68k/constraints.md (H): New.
22387         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
22388         the define_insn below.
22389         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
22390         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
22391         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
22392         patterns): Wrap RHS with COMPARE.
22393         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
22394         (*cmpdi_internal): Name this pattern.
22395         (cmpdi): Change to define_insn.
22396         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
22397         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
22398         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
22399         predicate.
22400         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
22401         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
22402         (conditional_trap): Change to...
22403         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
22404         (*conditional_trap): Use the ordered_comparison_operator and
22405         const1_operand predicates.
22406         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
22407         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
22408         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
22409         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
22410
22411         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
22412         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
22413         (mcore_gen_compare): New.
22414         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
22415         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
22416         (mcore_gen_compare): ... this.
22417         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
22418         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
22419         (stack probe pattern): Use cbranchsi4.
22420
22421         * config/mips/predicates.md (mips_cstore_operator): New.
22422         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
22423         * config/mips/mips.md (any_cond): Delete.
22424         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
22425         always succeed.
22426         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
22427         fixuns_truncsfdi2): Use cbranch patterns.
22428         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
22429         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
22430         Adjust call to mips_expand_conditional_branch.
22431         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
22432         cstore<GPR:mode>4.
22433         * config/mips/mips-protos.h (mips_expand_conditional_branch,
22434         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
22435         * config/mips/mips.c (cmp_operands): Delete.
22436         (mips_emit_compare): Get comparison operands from *op0/*op1.
22437         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
22438         that it succeeds.  Use op0/op1 instead of cmp_operands.
22439         (mips_expand_conditional_branch, mips_expand_conditional_move,
22440         mips_expand_conditional_trap): Likewise.
22441         (mips_block_move_loop): Use cbranch patterns.
22442         * config/mips/mips.h (cmp_operands): Delete.
22443
22444         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
22445         (mmix_gen_compare_reg): Just return a register in the right CC mode.
22446         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
22447         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
22448         (*cmpcc_folded): Rename to...
22449         (*cmpdi_folded): this.
22450         (*cmpcc): Rename to...
22451         (*cmps): ... this.
22452         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
22453         (bCC): Remove.
22454         (cbranchdi4): New.
22455         (cbranchdf4): New.  Handle invalid comparisons here.
22456         * config/mmix/predicates.md (float_comparison_operator): New.
22457
22458         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
22459         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
22460         * config/mn10300/mn10300.md (tst): Delete.
22461         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
22462         Name these patterns and wrap RHS in a compare.
22463         (*cmpsi): Make this pattern private.  Include tst.
22464         (*cmpsf): Make this pattern private.
22465         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
22466         (compare with zero peepholes): Likewise.
22467         (bCC): Remove.
22468         (cbranchsi4, cbranchsf4): New.
22469         (casesi): Use cbranchsi4.
22470
22471         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
22472         hppa_branch_type): Delete.
22473         (return_addr_rtx): Use cbranchsi4.
22474         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
22475         Emit CCFPmode comparison here.
22476         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
22477         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
22478         hppa_branch_type): Delete.
22479         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
22480         (movsicc, movdicc): Remove references to hppa_compare_op0,
22481         hppa_compare_op1 and compare_from_rtx.
22482         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
22483         (casesi): Use cbranchsi4.
22484
22485         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
22486         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
22487         * config/pdp11/pdp11.md (register_or_const0_operand): New.
22488         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
22489         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
22490         (bCC): Delete.
22491         (cbranchdf4, cbranchhi4, cbranchqi4): New.
22492         (*branch, *branch_inverted): New.
22493
22494         * config/picochip/picochip.md (cbranchhi4): Use
22495         ordered_comparison_operator.
22496         (cmphi, bCC): Remove.
22497
22498         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
22499         (trap_comparison_operator): Delete.
22500         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
22501         rs6000_emit_cbranch): Accept mode and operands.
22502         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
22503         rs6000_compare_fp_p): Delete.
22504         (rs6000_generate_compare): Accept mode and comparison.  Extract code
22505         and op0/op1 from there.  Replace references to rs6000_compare_op0
22506         and rs6000_compare_op1.
22507         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
22508         extract result from passed operands.
22509         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
22510         extract loc from passed operands.
22511         (rs6000_emit_cmove): Likewise.
22512         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
22513         rs6000_compare_fp_p): Delete.
22514         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
22515         (cbranch<GPR>4, cbranch<FP>4): New.
22516         (cstore<mode>4): New.  Consolidate here all choices about when to use
22517         portable or specialized sCC sequences.
22518         (stack_protect_test): Use cbranchsi4.
22519         (conditional_trap): Replace with ctrap<GPR>4.
22520         (conditional trap insn): Replace trap_comparison_operator with
22521         ordered_comparison_operator.
22522
22523         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
22524         (s390_emit_prologue): Use ctrap.
22525         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
22526         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
22527         New predicates replacing...
22528         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
22529         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
22530         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
22531         (add<mode>cc): Do not use s390_compare_op0/op1.
22532         (s<code>): Change to...
22533         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
22534         (seq): Change to...
22535         (cstorecc4): ... this.  Handle EQ or NE equally.
22536         (*sne): Un-privatize for use in cstorecc4.
22537         (b<code>): Change to...
22538         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
22539         (conditional_trap): Replace with...
22540         (ctrap<GPR>4, ctrap<FP>4): ... these.
22541         (stack_protect): Use cbranchcc4.
22542
22543         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
22544         * config/score/score-protos.h (score_gen_cmp): Delete.
22545         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
22546         (score_block_move-loop): Use cbranchsi4.
22547         * config/score/score.md (cbranchsi4): New.
22548         (cmpsi, bCC): Delete.
22549         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
22550         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22551         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
22552         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22553         * config/score/score3.h (score3_gen_cmp): Delete.
22554         * config/score/score7.h (score7_gen_cmp): Delete.
22555
22556         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
22557         (sh_emit_scc_to_t): ... this.  Return void.
22558         (from_compare): Rename to...
22559         (sh_emit_compare_and_branch): ... this.
22560         (sh_emit_compare_and_set): New.
22561         (sh_expand_t_scc): Accept operands.
22562         * config/sh/predicates.md (sh_float_comparison_operator): New.
22563         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
22564         (prepare_scc_operands): Rename to...
22565         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
22566         arguments.
22567         (sh_emit_cheap_store_flag): New.
22568         (sh_emit_set_t_insn): New.
22569         (from_compare): Rename to...
22570         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
22571         handling of TARGET_SH2E floating point to avoid recursive call.
22572         Generate branch here.
22573         (sh_emit_compare_and_set): New.
22574         (sh_expand_t_scc): Get op0/op1 from arguments.
22575         (sh_emit_cheap_store_flag): New.
22576         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
22577         cases.
22578         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
22579         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
22580         (movsicc, movdicc): Do nothing when it recreated operands from
22581         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
22582         prepare_scc_operands (now sh_emit_scc_to_t).
22583         (udivdi3): Use cstoresi4.
22584         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
22585         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
22586         (cbranchint4_media, cbranchfp4_media): New.
22587         (casesi): Use cbranchdi4.
22588         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
22589         Delete.
22590         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
22591         (movnegt): Remove second operand.
22592         (cbranchsf4, cbranchdf4): New.
22593         (stack_protect): Use cbranchdi4/cbranchsi4.
22594
22595         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
22596         (gen_compare_reg): Accept comparison, extract part of it to...
22597         (gen_compare_reg_1): ... this.
22598         (gen_compare_operator): Delete.
22599         (gen_v9_scc): Accept separate destination, comparison code and arms.
22600         Do not use sparc_compare_op0/sparc_compare_op1.
22601         (emit_scc_insn, emit_conditional_branch_insn): New.
22602         (emit_v9_brxx): Make static.  Remove useless assertion.
22603         (sparc_emit_float_lib_cmp): Return RTL instead of calling
22604         emit_cmp_insn.
22605         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
22606         * config/sparc/sparc-protos.h (gen_compare_reg,
22607         sparc_emit_float_lib_cmp): Adjust prototype.
22608         (emit_scc_insn, emit_conditional_branch_insn): New.
22609         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
22610         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
22611         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
22612         iterators to the top.
22613         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
22614         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
22615         snedi_special_trunc): Delete.
22616         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
22617         and snedi_special_trunc.
22618         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
22619         cbranchdi4, cbranch<F:mode>4): New.
22620         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
22621         here.  Use gen_compare_reg instead of gen_compare_operator.
22622         (conditional_trap): Replace with...
22623         (ctrapsi4, ctrapdi4): ... this.
22624         (stack_protect_test): Use cbranchcc4.
22625
22626         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
22627         argument to rtx.
22628         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
22629         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
22630         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
22631         from operands[0] or operands[3] depending on is_set.
22632         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
22633         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
22634         cmpdf, bCC), sCC: Remove.
22635         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
22636         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
22637         cstoredf4): New.
22638         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
22639         spu_emit_branch_or_set.
22640
22641         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
22642         Add two arguments.
22643         * config/stormy16/stormy16.h (xstormy16_compare_op0,
22644         xstormy16_compare_op1): Delete.
22645         * config/stormy16/stormy16.c (xstormy16_compare_op0,
22646         xstormy16_compare_op1): Delete.
22647         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
22648         Adjust calls.
22649         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
22650         (cmphi, cmpsi, bCC): Remove.
22651
22652         * config/v850/v850.md (tstsi, cmpsi): Fold into...
22653         (*cmpsi): ... this one.
22654         (cbranchsi4, cstoresi4): New.
22655         (bCC expanders): Delete.
22656         (sCC insns): Fold into...
22657         (*setcc): ... this one.
22658         (casesi): Do not use gen_cmpsi and gen_bgtu.
22659         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
22660         (movsicc): Simplify.
22661         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
22662
22663         * config/vax/vax-protos.h (cond_name): New.
22664         (vax_output_conditional_branch): Remove.
22665         * config/vax/vax.c (cond_name): New.
22666         (vax_output_conditional_branch): Remove.
22667         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
22668         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
22669         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
22670         (bit<VAXint>): Wrap source with (compare).
22671         (b<code> and following unnamed pattern): Rename to *branch and
22672         *branch_reversed.  Change macroization to match_operator.
22673         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
22674
22675         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
22676         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
22677         Change last argument to machine_mode.
22678         (xtensa_expand_scc): Add machine_mode argument.
22679         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
22680         (gen_conditional_move, xtensa_expand_conditional_branch,
22681         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
22682         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
22683         Adjust operand numbers.
22684         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
22685         Delete.
22686         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
22687         (cmpsi, cmpsf, b<code>, s<code>): Delete.
22688         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
22689
22690 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22691
22692         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22693         causes spurious differences between trunk and cond-optab branch.
22694
22695 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22696
22697         PR target/37137
22698         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
22699
22700 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22701
22702         * tree.c (iterative_hash_pointer): Delete.
22703         (iterative_hash_expr): Short-circuit handling of NULL pointer.
22704         Hash UIDs and versions of SSA names.  Don't special-case built-in
22705         function declarations.
22706
22707 2009-05-11  Ian Lance Taylor  <iant@google.com>
22708
22709         PR bootstrap/40103
22710         * graphite.c: Force -Wc++-compat to only be a warning before
22711         #including "cloog/cloog.h".
22712
22713 2009-05-11  Martin Jambor  <mjambor@suse.cz>
22714
22715         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
22716
22717 2009-05-11  Jan Hubicka  <jh@suse.cz>
22718
22719         * tree-ssa-loop-ivcanon.c: Include target.h
22720         (struct loop_size): new structure.
22721         (constant_after_peeling): New predicate.
22722         (tree_estimate_loop_size): New function.
22723         (estimated_unrolled_size): Rewrite for new estimates.
22724         (try_unroll_loop_completely): Use new estimates.
22725         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
22726
22727 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22728
22729         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
22730         libcpp interface change.
22731         (spu_macro_to_expand): Likewise.
22732
22733 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
22734
22735         PR tree-optimization/40026
22736         * gimplify.c (gimplify_init_constructor): Change initial conditional
22737         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
22738         optimize_compound_literals_in_ctor.
22739
22740 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
22741
22742         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
22743         New devices.
22744         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
22745
22746 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
22747
22748         * tree-vect-data-refs.c (vect_analyze_group_access): Use
22749         HOST_WIDE_INT for gap.
22750
22751 2009-05-11  Ira Rosen  <irar@il.ibm.com>
22752
22753         PR tree-optimization/40074
22754         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
22755         account in group size and step comparison.
22756
22757 2009-05-11  Richard Guenther  <rguenther@suse.de>
22758
22759         * passes.c (init_optimization_passes): Strip now incorrect comment.
22760         (execute_function_todo): Do not set PROP_alias.
22761         * tree-pass.h (PROP_alias): Remove.
22762         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
22763         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
22764         * tree-nrv.c (pass_return_slot): Likewise.
22765         * tree-object-size.c (pass_object_sizes): Likewise.
22766         * tree-ssa-dom.c (pass_dominator): Likewise.
22767         (pass_phi_only_cprop): Likewise.
22768         * tree-ssa-dse.c (pass_dse): Likewise.
22769         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
22770         (pass_cselim): Likewise.
22771         * tree-ssa-pre.c (pass_pre): Likewise.
22772         (pass_fre): Likewise.
22773         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22774         * tree-ssa-sink.c (pass_sink_code): Likewise.
22775         * tree-stdarg.c (pass_stdarg): Likewise.
22776         * tree-tailcall.c (pass_tail_calls): Likewise.
22777         * tree-vrp.c (pass_vrp): Likewise.
22778
22779 2009-05-10  Ian Lance Taylor  <iant@google.com>
22780
22781         * basic-block.h (enum profile_status): Break out of struct
22782         control_flow_graph.
22783         * cgraph.h (struct inline_summary): Break out of struct
22784         cgraph_local_info.
22785         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
22786         of struct cgraph_order_sort.
22787         * combine.c (enum undo_kind): New enum, broken out of struct undo.
22788         * cse.c (struct branch_path): Break out of struct
22789         cse_basic_block_data.
22790         * except.h (enum eh_region_type): Break out of struct eh_region.
22791         * gcc.c (enum add_del): Break out of struct modify_target.
22792         * genrecog.c (enum decision_type): Break out of struct decision_test.
22793         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
22794         ggc_pch_data.
22795         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
22796         * regmove.c (enum match_use): New enum, broken out of struct match.
22797         * sched-int.h (enum post_call_group): New enum, broken out of
22798         struct deps.
22799         (struct deps_reg): Break out of struct deps.
22800         * target.h (struct asm_int_op): Break out of struct gcc_target.
22801         * tree-eh.c (struct goto_queue_node): Break out of struct
22802         leh_tf_state.
22803         * tree-inline.h (enum copy_body_cge_which): Break out of
22804         copy_body_data.
22805         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
22806
22807         * c-decl.c (in_struct, struct_types): New static variables.
22808         (pushtag): Add loc parameter.  Change all callers.
22809         (lookup_tag): Add ploc parameter.  Change all callers.
22810         (check_compound_literal_type): New function.
22811         (parser_xref_tag): Add loc parameter.  Change all callers.  If
22812         -Wc++-compat, warn about struct/union/enum types defined within a
22813         struct or union.
22814         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
22815         and loc parameters.  Change all callers.  Change error calls to
22816         error_at, using loc.  For a redefinition, if the location of the
22817         original definition is known, report it.  Set in_struct and
22818         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
22819         (finish_struct): Add new parameters enclosing_in_struct and
22820         enclosing_struct_types.  Change all callers.  Set
22821         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
22822         in the struct.  If in a struct, add this struct to struct_types.
22823         (start_enum): Add loc parameter.  Change all callers.  Use
22824         error_at for errors, using loc.  For a redefinition, if the
22825         location of the original definition is known, report it.  If in a
22826         struct, add this enum type to struct_types.  If -Wc++-compat warn
22827         if in sizeof, typeof, or alignof.
22828         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
22829         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
22830         (c_parser_enum_specifier): Get enum location for start_enum.
22831         (c_parser_struct_or_union_specifier): Get struct location for
22832         start_struct.  Save in_struct and struct_types status between
22833         start_struct and finish_struct.
22834         (c_parser_cast_expression): Get location of cast.
22835         (c_parser_alignof_expression): Get location of type.
22836         (c_parser_postfix_expression): Likewise.
22837         (c_parser_postfix_expression_after_paren_type): Add type_loc
22838         parameter.  Change all callers.  Call check_compound_literal_type.
22839         Use type_loc for error about variable size type.
22840         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
22841         of an enum constant from an enum type defined in a struct or union.
22842         (c_cast_expr): Add loc parameter.  Change all callers.  If
22843         -Wc++-compat, warn about defining a type in a cast.
22844         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
22845         (start_enum, start_struct, finish_struct): Update declarations.
22846         (parser_xref_tag, c_cast_expr): Update declarations.
22847         (check_compound_literal_type): Declare.
22848
22849 2009-05-11  Ben Elliston  <bje@au.ibm.com>
22850
22851         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
22852         for recent libcpp interface change.
22853         (rs6000_macro_to_expand): Likewise.
22854
22855 2009-05-10  Michael Matz  <matz@suse.de>
22856
22857         PR target/40031
22858         * config/arm/arm.c (require_pic_register): Emit on entry edge,
22859         not at entry of function.
22860
22861 2009-05-10  Richard Guenther  <rguenther@suse.de>
22862
22863         PR tree-optimization/40081
22864         Revert
22865         * tree-sra.c (instantiate_element): Instantiate scalar replacements
22866         using the main variant of the element type.  Do not fiddle with
22867         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
22868
22869         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
22870         structs with volatile fields.
22871
22872 2009-05-10  Jan Hubicka  <jh@suse.cz>
22873
22874         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
22875         (estimate_move_cost): Assert that it does not get called for
22876         VOID_TYPE_P.
22877         (estimate_num_insns): Skip VOID types in argument handling.
22878         (optimize_inline_calls): Delete unreachable blocks and verify that
22879         callgraph is valid.
22880
22881 2009-05-10  Jan Hubicka  <jh@suse.cz>
22882
22883         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
22884         * cgraph.c (cgraph_mark_address_taken_node): New function.
22885         (dump_cgraph_node): Dump new flag.
22886         * cgraph.h (struct cgraph_node): Add address_taken.
22887         (cgraph_mark_address_taken_node): New function.
22888         * ipa.c (cgraph_postorder): Prioritize functions with address taken
22889         since new direct calls can be born.
22890
22891 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
22892
22893         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
22894         tok->val.node.node.
22895
22896 2009-05-10  Jan Hubicka  <jh@suse.cz>
22897
22898         PR middle-end/40084
22899         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
22900         argument; rewrite.
22901         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
22902         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
22903         * tree-inline.c (copy_bb): Set frequency correctly.
22904         (fold_marked_statements): Update call to
22905         cgraph_update_edges_for_call_stmt.
22906
22907 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
22908
22909         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
22910         identifiers in diagnostics.
22911         * config/arm/arm.c (arm_handle_fndecl_attribute,
22912         arm_handle_isr_attribute): Likewise.
22913         * config/avr/avr.c (avr_handle_progmem_attribute,
22914         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
22915         * config/bfin/bfin.c (handle_int_attribute,
22916         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
22917         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
22918         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
22919         Likewise.
22920         * config/darwin.c (darwin_handle_kext_attribute,
22921         darwin_handle_weak_import_attribute): Likewise.
22922         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
22923         h8300_handle_eightbit_data_attribute,
22924         h8300_handle_tiny_data_attribute): Likewise.
22925         * config/i386/i386.c (ix86_handle_cconv_attribute,
22926         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
22927         * config/i386/winnt.c (ix86_handle_shared_attribute,
22928         ix86_handle_selectany_attribute): Likewise.
22929         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
22930         * config/m32c/m32c.c (function_vector_handler): Likewise.
22931         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
22932         m68hc11_handle_fntype_attribute): Likewise.
22933         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
22934         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
22935         * config/mips/mips.c (mips_insert_attributes,
22936         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
22937         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
22938         rs6000_handle_struct_attribute): Likewise.
22939         * config/sh/sh.c (sh_insert_attributes,
22940         sh_handle_resbank_handler_attribute,
22941         sh_handle_interrupt_handler_attribute,
22942         sh2a_handle_function_vector_handler_attribute,
22943         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
22944         Likewise.
22945         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
22946         * config/spu/spu.c (spu_handle_fndecl_attribute,
22947         spu_handle_vector_attribute): Likewise.
22948         * config/stormy16/stormy16.c
22949         (xstormy16_handle_interrupt_attribute): Likewise.
22950         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
22951         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
22952
22953 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
22954
22955         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
22956         (pp_translate_identifiers): New.
22957         (pp_identifier): Only conditionally translate identifier to locale
22958         character set.
22959         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
22960         (pp_base_tree_identifier): Only conditionally translate identifier
22961         to locale character set.
22962         * c-pretty-print.c (M_): Define.
22963         (pp_c_type_specifier, pp_c_primary_expression): Mark English
22964         fragments for conditional translation with M_.
22965         * tree-pretty-print.c (maybe_init_pretty_print): Disable
22966         identifier translation.
22967
22968 2009-05-10  Richard Guenther  <rguenther@suse.de>
22969
22970         PR tree-optimization/40081
22971         * tree-sra.c (instantiate_element): Instantiate scalar replacements
22972         using the main variant of the element type.  Do not fiddle with
22973         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
22974
22975 2009-05-09  Jan Hubicka  <jh@suse.cz>
22976
22977         PR middle-end/40080
22978         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
22979         indirect calls; verify cgraph afterwards.
22980
22981 2009-05-09  Jan Hubicka  <jh@suse.cz>
22982
22983         PR bootstrap/40082
22984         * ipa.c (update_inlined_to_pointer): New function.
22985         (cgraph_remove_unreachable_nodes): Use it.
22986
22987 2009-05-09  Jan Hubicka  <jh@suse.cz>
22988
22989         * tree-eh.c (struct leh_state): Remove prev_try.
22990         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
22991         not track prev_try.
22992         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
22993         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
22994         remove_eh_handler_and_replace, foreach_reachable_handler,
22995         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
22996         * except.h (struct eh_region): Remove eh_region_u_cleanup.
22997         (gen_eh_region_cleanup): Update prototype.
22998
22999 2009-05-09  Jan Hubicka  <jh@suse.cz>
23000
23001         PR middle-end/40043
23002         * except.c (copy_eh_region): Always set prev_try.
23003         (redirect_eh_edge_to_label): Find outer try.
23004         (foreach_reachable_handler): When looking for prev try
23005         handle case where previous try is not going to be taken.
23006
23007 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
23008
23009         PR tree-optimization/40049
23010         * tree-vect-stmts.c (vectorizable_operation): If the machine has
23011         only vector/vector shifts, convert the type of the constant to the
23012         appropriate type to avoid building incorrect trees, which
23013         eventually have problems with garbage collection.
23014
23015 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23016
23017         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
23018         -1 for complex floating-point types if honoring signed zeros.
23019
23020 2009-05-08  Jan Hubicka  <jh@suse.cz>
23021
23022         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
23023         argument; handle correctly when profile is absent.
23024         (build_cgraph_edges): Update.
23025         (rebuild_cgraph_edges): Update.
23026         * cgraph.c: Do not include varray.h.
23027         (cgraph_set_call_stmt_including_clones): New function.
23028         (cgraph_create_edge_including_clones): Likewise
23029         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
23030         (cgraph_update_edges_for_call_stmt): Handle clones.
23031         (cgraph_remove_node): Handle clone tree.
23032         (cgraph_remove_node_and_inline_clones): New function.
23033         (dump_cgraph_node): Dump clone tree.
23034         (cgraph_clone_node): Handle clone tree.
23035         (clone_function_name): Bring here from tree-inline.c.
23036         (cgraph_create_virtual_clone): New function.
23037         * cgraph.h (ipa_replace_map): Move here from ipa.h.
23038         (cgraph_clone_info): New function.
23039         (strut cgraph_node): Add clone_info and new clone tree pointers.
23040         (cgraph_remove_node_and_inline_clones,
23041         cgraph_set_call_stmt_including_clones,
23042         cgraph_create_edge_including_clones,
23043         cgraph_create_virtual_clone): Declare.
23044         (cgraph_function_versioning): Use VEC argument.
23045         (compute_call_stmt_bb_frequency): Update prototype.
23046         (cgraph_materialize_all_clones): New function.
23047         * ipa-cp.c (ipcp_update_cloned_node): Remove.
23048         (ipcp_create_replace_map): Update to VECtors.
23049         (ipcp_update_callgraph): Use virtual clones.
23050         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
23051         (ipcp_update_profiling): Do not update local profiling.
23052         (ipcp_insert_stage): Use VECtors and virtual clones.
23053         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
23054         (clone_of_p): New function.
23055         (cgraph_preserve_function_body_p): Use clone tree.
23056         (cgraph_optimize): Materialize clones.
23057         (cgraph_function_versioning): Update for VECtors.
23058         (save_inline_function_body): Use clone tree.
23059         (cgraph_materialize_clone): New function.
23060         (cgraph_materialize_all_clones): Likewise.
23061         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
23062         * ipa.c: Include gimple.h.
23063         (cgraph_remove_unreachable_nodes): Use clone tree.
23064         * ipa-prop.c (ipa_note_param_call): Update call to
23065         compute_call_stmt_bb_frequencycall.
23066         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
23067         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
23068         (copy_bb): Handle updating of clone tree; add new edge when new call
23069         appears.
23070         (expand_call_inline): Be strict about every call having edge.
23071         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
23072         (delete_unreachable_blocks_update_callgraph): New function.
23073         (tree_function_versioning): Use VECtors; always remove unreachable
23074         blocks and fold conditionals.
23075         * tree-inline.h: Do not include varray.h.
23076         (tree_function_versioning): Remove.
23077         * Makefile.in (GTFILES): Remove tree-inline.c
23078         * passes.c (do_per_function): Do only functions having body.
23079         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
23080         tree.
23081
23082 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23083             Andrew Morrow  <acm@google.com>
23084
23085         PR c/36892
23086         * c-common.c (c_common_attribute_table): Permit deprecated
23087         attribute to take an optional argument.
23088         (handle_deprecated_attribute): If the optional argument to
23089         __attribute__((deprecated)) is not a string ignore the attribute
23090         and emit a warning.
23091
23092         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
23093         * c-typeck.c (build_component_ref): Likewise.
23094         (build_external_ref): Likewise.
23095
23096         * toplev.c (warn_deprecated_use): Add an attribute argument.
23097         Emit the message associated with __attribute__((deprecated)).
23098
23099         * toplev.h (warn_deprecated_use): Updated.
23100
23101         * doc/extend.texi: Document new optional parameter to
23102         __attribute__((deprecated))
23103
23104 2009-05-08  Michael Eager <eager@eagercon.com>
23105
23106         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
23107         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
23108
23109 2009-05-08  Richard Guenther  <rguenther@suse.de>
23110
23111         PR tree-optimization/40062
23112         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
23113         Avoid exponential behavior.
23114
23115 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23116
23117         PR rtl-optimization/33928
23118         PR 26854
23119         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
23120         process_uses, build_single_def_use_links): New.
23121         (update_df): Update use_def_ref.
23122         (forward_propagate_into): Use get_def_for_use instead of use-def
23123         chains.
23124         (fwprop_init): Call build_single_def_use_links and let it initialize
23125         dataflow.
23126         (fwprop_done): Free use_def_ref.
23127         (fwprop_addr): Eliminate duplicate call to df_set_flags.
23128         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
23129         df_rd_simulate_one_insn): New.
23130         (df_rd_bb_local_compute_process_def): Update head comment.
23131         (df_chain_create_bb): Use the new RD simulation functions.
23132         * df.h (df_rd_simulate_artificial_defs_at_top,
23133         df_rd_simulate_one_insn): New.
23134         * opts.c (decode_options): Enable fwprop at -O1.
23135         * doc/invoke.texi (-fforward-propagate): Document this.
23136
23137 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23138
23139         PR c/24581
23140         * c-typeck.c (build_binary_op): Handle arithmetic between one real
23141         and one complex operand specially.
23142         * tree-complex.c (some_nonzerop): Do not identify a real value as
23143         zero if flag_signed_zeros.
23144
23145 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23146
23147         PR rtl-optimization/33928
23148         * loop-invariant.c (record_use): Fix && vs. || mishap.
23149
23150 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23151
23152         PR rtl-optimization/33928
23153         * loop-invariant.c (struct use): Add addr_use_p.
23154         (struct def): Add n_addr_uses.
23155         (struct invariant): Add cheap_address.
23156         (create_new_invariant): Set cheap_address.
23157         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
23158         (record_uses): Pass df_ref to record_use.
23159         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
23160         used only as such.
23161
23162 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23163
23164         * config/sh/sh.c: Do not include c-pragma.h.
23165
23166 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23167
23168         * config/spu/spu.c: Remove include of c-common.h.
23169
23170 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
23171
23172         PR c/39037
23173         * c-common.h (mark_valid_location_for_stdc_pragma,
23174         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
23175         clear_float_const_decimal64, float_const_decimal64_p): New.
23176         * c.opt (Wunsuffixed-float-constants): New.
23177         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
23178         unsuffixed float constant, handle new warning.
23179         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
23180         * c-decl.c (c_scope): New flag float_const_decimal64.
23181         (set_float_const_decimal64, clear_float_const_decimal64,
23182         float_const_decimal64_p): New.
23183         (push_scope): Set new flag.
23184         * c-parser.c (c_parser_translation_unit): Mark when it's valid
23185         to use STDC pragmas.
23186         (c_parser_external_declaration): Ditto.
23187         (c_parser_compound_statement_nostart): Ditto.
23188         * c-pragma.c (valid_location_for_stdc_pragma,
23189         mark_valid_location_for_stdc_pragma,
23190         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
23191         handle_pragma_float_const_decimal64): New.
23192         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
23193         * cp/semantics.c (valid_location_for_stdc_pragma_p,
23194         set_float_const_decimal64, clear_float_const_decimal64,
23195         float_const_decimal64_p): New dummy functions.
23196         * doc/extend.texi (Decimal Float): Remove statement that the
23197         pragma, and suffix for double constants, are not supported.
23198         * doc/invoke.texi (Warning Options): List new option.
23199         (-Wunsuffixed-float-constants): New.
23200
23201 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
23202
23203         * config/i386/i386.c: Do not include c-common.h.
23204
23205 2009-05-07  Mark Heffernan  <meheff@google.com>
23206
23207         * doc/invoke.texi (Debugging Options): Document change of debugging
23208         dump location.
23209         * opts.c (decode_options): Make dump_base_name relative to
23210         aux_base_name directory.
23211
23212 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
23213
23214         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
23215         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
23216
23217 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
23218
23219         * Makefile.in (install-plugin): Simplify a bit.
23220
23221 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
23222
23223         * Makefile.in (OBJS-common): Add regcprop.o.
23224         (regcprop.o): New.
23225         * timevar.def (TV_CPROP_REGISTERS): New.
23226         * regrename.c (regrename_optimize): Return 0.
23227         (rest_of_handle_regrename): Delete.
23228         (pass_rename_registers): Point to regrename_optimize.
23229         (struct value_data_entry, struct value_data,
23230         kill_value_one_regno, kill_value_regno, kill_value,
23231         set_value_regno, init_value_data, kill_clobbered_value,
23232         kill_set_value, kill_autoinc_value, copy_value,
23233         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
23234         replace_oldest_value_reg, replace_oldest_value_addr,
23235         replace_oldest_value_mem, copyprop_hardreg_forward_1,
23236         debug_value_data, validate_value_data): Move...
23237         * regcprop.c: ... here.
23238         (rest_of_handle_cprop): Delete.
23239         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
23240
23241 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
23242
23243         PR middle-end/40057
23244         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
23245         GEN_INT for 1 << bitnum.
23246         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
23247         build_int_cst_type.
23248
23249 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
23250
23251         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
23252         Remove wrong description of "nand" operation.
23253
23254 2009-05-06  Richard Guenther  <rguenther@suse.de>
23255             Adam Nemet  <anemet@caviumnetworks.com>
23256
23257         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
23258         comment.  Add that if LHS is not a gimple register, then RHS1 has
23259         to be a single object (GIMPLE_SINGLE_RHS).
23260
23261 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
23262
23263         * expr.c (get_def_for_expr): Move it up in the file.
23264         (store_field): When expanding a bit-field store, look at the
23265         defining gimple stmt for the masking conversion.
23266
23267 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
23268
23269         PR middle-end/39986
23270         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
23271         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
23272         32-bit memcpy into long.
23273
23274 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
23275
23276         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
23277         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
23278         new_reg_loc_descr.
23279         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
23280         instead of appending DW_OP_deref*.
23281
23282 2009-05-06  Michael Matz  <matz@suse.de>
23283
23284         PR middle-end/40021
23285         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
23286         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
23287
23288 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
23289
23290         * Makefile.in (install-plugin): Fix srcdir handling.
23291
23292 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
23293
23294         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
23295         when processing for not_regs_needed bitmap.
23296         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
23297         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
23298         handling it for rhs.
23299
23300 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23301
23302         * config/i386/i386.md (unnamed inc/dec peephole): Use
23303         optimize_insn_for_size_p instead of optimize_size.
23304         * config/i386/predicates.md (incdec_operand): Likewise.
23305         (aligned_operand): Likewise.
23306         * config/i386/sse.md (divv8sf3): Likewise.
23307         (sqrtv8sf2): Likewise.
23308
23309 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
23312
23313         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
23314
23315 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23316
23317         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
23318         ssemodesuffixf2c with avxmodesuffixf2c.
23319
23320 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
23321
23322         PR c/40032
23323         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
23324
23325 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
23326
23327         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
23328         (struct tree_base): Adjust spacing for 8 bit boundaries.
23329         (struct tree_decl_common): Add decl_by_reference_flag bit.
23330         (DECL_BY_REFERENCE): Adjust.
23331         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
23332         print DECL_BY_REFERENCE bit.
23333         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
23334         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
23335         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
23336         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
23337         unconditionally.
23338
23339         PR middle-end/39666
23340         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
23341         range of the type, but default label is missing, add it with one
23342         of the existing labels instead of adding a new label for it.
23343
23344 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
23345
23346         * dwarf.h: Remove.
23347
23348 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
23349
23350         * Makefile.in (enable_plugin, plugin_includedir): New.
23351         (install): Depend on install-plugin.
23352         (PLUGIN_HEADERS): New.
23353         (install-plugin): New.
23354         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
23355
23356 2009-05-05  Richard Guenther  <rguenther@suse.de>
23357
23358         PR tree-optimization/40022
23359         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
23360         the only vuse.
23361         (phivn_valid_p): Fix tuplification error, simplify.
23362         (phiprop_insert_phi): Add dumps.
23363         (propagate_with_phi): Simplify.
23364
23365 2009-05-05  Richard Guenther  <rguenther@suse.de>
23366
23367         PR middle-end/40023
23368         * builtins.c (gimplify_va_arg_expr): Properly build the address.
23369
23370 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
23371
23372         * tree.h (strip_float_extensions): Remove duplicate declaration.
23373         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
23374         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
23375         block_ultimate_origin): Rearrange the declarations line to match the
23376         comment that indicates the .c file which the functions are defined.
23377         (dwarf2out_*, set_decl_rtl): Add comment.
23378         (get_base_address): Adjust comment.
23379         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
23380         declarations line and add comment.
23381         (is_builtin_name): Add blank after function name, for clarity.
23382
23383 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23384
23385         * attribs.c (decl_attributes): Use %qE for identifiers in
23386         diagnostics.
23387         * cgraphunit.c (verify_cgraph_node): Translate function names to
23388         locale character set in diagnostics.
23389         * coverage.c (get_coverage_counts): Use %qE for identifiers in
23390         diagnostics.
23391         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
23392         Document that functions are named in UTF-8.
23393         * expr.c (expand_expr_real_1): Translate function names to locale
23394         character set in diagnostics.
23395         * gimplify.c (omp_notice_variable, omp_is_private,
23396         gimplify_scan_omp_clauses): Use %qE for identifiers in
23397         diagnostics.
23398         * langhooks.c (lhd_print_error_function): Translate function names
23399         to locale character set.
23400         * langhooks.h (decl_printable_name): Document that return value is
23401         in internal character set.
23402         * stmt.c: Include pretty-print.h
23403         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
23404         diagnostics.
23405         (resolve_operand_name_1): Translate named operand name to locale
23406         character set.
23407         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
23408         diagnostics.
23409         * toplev.c (announce_function): Translate function names to locale
23410         character set.
23411         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
23412         (default_tree_printer): Use pp_identifier or translate identifiers
23413         to locale character set.  Mark "<anonymous>" for translation.
23414         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
23415         for identifiers in diagnostics.
23416         * tree.c (handle_dll_attribute): Use %qE for identifiers in
23417         diagnostics.
23418         * varasm.c (output_constructor): Use %qE for identifiers in
23419         diagnostics.
23420
23421 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
23422
23423         * configure.ac: use ` ` instead of $()
23424         * configure: Regenerate.
23425
23426 2009-05-05  Ben Elliston  <bje@au.ibm.com>
23427
23428         * config/pa/linux-atomic.c: Eliminate conditional include of
23429         errno.h on non-LP64 systems to simplify build requirements.
23430
23431 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23432
23433         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
23434         diagnostics.
23435         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
23436         and pass value to identifier_to_locale.
23437         (warn_variable_length_array): Make name a tree.
23438         (grokdeclarator): Separate diagnostic texts for named and unnamed
23439         declarators.  Use %qE for named declarators.
23440         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
23441         diagnostics.
23442         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
23443         identifiers in diagnostics.
23444         * c-typeck.c (push_member_name, start_init): Pass identifiers to
23445         identifier_to_locale.  Mark "anonymous" strings for translation.
23446
23447 2009-05-04  Michael Eager <eager@eagercon.com>
23448
23449         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
23450         address for DImode/DFmode only if double-precision FP regs.
23451
23452 2009-05-04  Michael Eager <eager@eagercon.com>
23453
23454         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
23455         TARGET_SINGLE_FLOAT check.
23456
23457 2009-05-04  Michael Eager <eager@eagercon.com>
23458
23459         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
23460
23461 2009-05-04  Michael Eager <eager@eagercon.com>
23462
23463         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
23464         * config/rs6000/t-xilinx: New
23465
23466 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
23467
23468         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
23469         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
23470         * gcc/explow.c (memory_address): Use target hook.
23471         * gcc/targhooks.c (default_legitimize_address): New.
23472         * gcc/targhooks.h (default_legitimize_address): New.
23473         * gcc/target.h (legitimize_address): New.
23474         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
23475         (TARGET_INITIALIZER): Include it.
23476         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
23477
23478         * config/bfin/bfin-protos.h (legitimize_address): Remove.
23479         * config/bfin/bfin.c (legitimize_address): Remove.
23480         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
23481         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
23482         Remove.
23483         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
23484         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
23485
23486         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
23487         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
23488         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
23489         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
23490         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
23491         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
23492         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
23493         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
23494         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
23495         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
23496         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
23497         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
23498         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
23499         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
23500         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
23501         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
23502         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
23503         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
23504         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
23505         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
23506         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
23507         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
23508         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
23509
23510         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
23511         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
23512         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
23513         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
23514         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
23515         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
23516         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
23517         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
23518         (thumb_legitimize_address): Delete.
23519         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
23520         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
23521         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
23522         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
23523         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
23524         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
23525         Delete.
23526         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
23527         Delete.
23528
23529         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
23530         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
23531         * config/m32r/m32r.c (m32r_legitimize_address): New.
23532         * config/m68k/m68k.c (m68k_legitimize_address): New.
23533         * config/score/score.c (score_legitimize_address): Standardize.
23534         * config/score/score3.c (score3_legitimize_address): Standardize.
23535         * config/score/score3.h (score3_legitimize_address): Adjust.
23536         * config/score/score7.c (score7_legitimize_address): Standardize.
23537         * config/score/score7.h (score7_legitimize_address): Adjust.
23538         * config/sh/sh.c (sh_legitimize_address): New.
23539         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
23540
23541         * gcc/config/s390/s390.c (legitimize_address): Rename to...
23542         (s390_legitimize_address): ... this.
23543         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
23544         (sparc_legitimize_address): ... this.
23545         * gcc/config/i386/i386.c (legitimize_address): Rename to...
23546         (ix86_legitimize_address): ... this.
23547         * gcc/config/avr/avr.c (legitimize_address): Rename to...
23548         (avr_legitimize_address): ... this.
23549         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
23550         (mn10300_legitimize_address): ... this.
23551         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
23552         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
23553         (alpha_expand_mov): Adjust call.
23554
23555         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
23556         * config/spu/spu.c (spu_legitimize_address): Likewise.
23557         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
23558         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
23559
23560 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23561
23562         * intl.c (locale_encoding, locale_utf8): New.
23563         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
23564         * intl.h (locale_encoding, locale_utf8): Declare.
23565         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
23566         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
23567         New.
23568         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
23569         argument.
23570         (pp_tree_identifier): Define to call pp_base_tree_identifier.
23571         (pp_base_tree_identifier): Declare as function.
23572         (identifier_to_locale): Declare.
23573         * Makefile.in (pretty-print.o): Update dependencies.
23574         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
23575
23576 2009-05-04  Richard Guenther  <rguenther@suse.de>
23577
23578         PR middle-end/40015
23579         * builtins.c (fold_builtin_memory_op): Do not decay to element
23580         type if the size matches the whole array.
23581
23582 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23583
23584         * expmed.c (synth_mult): When trying out a shift, pass the result
23585         of a signed shift.
23586
23587 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23588
23589         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
23590         (shiftsub1_cost): New.
23591         (init_expmed): Compute shiftsub1_cost.
23592         (synth_mult): Optimize multiplications by constants of the form
23593         -(2^^m-1) for some constant positive integer m.
23594
23595 2009-05-03  Richard Guenther  <rguenther@suse.de>
23596
23597         PR c/39983
23598         * c-typeck.c (array_to_pointer_conversion): Do not built
23599         ADDR_EXPRs of arrays of pointer-to-element type.
23600         * c-gimplify.c (c_gimplify_expr): Revert change fixing
23601         up wrong ADDR_EXPRs after-the-fact.
23602         * c-common.c (strict_aliasing_warning): Strip pointer
23603         conversions for obtaining the original type.
23604         * builtins.c (fold_builtin_memset): Handle array types.
23605         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
23606         and array types
23607
23608 2009-05-03  Richard Guenther  <rguenther@suse.de>
23609
23610         PR middle-end/23329
23611         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
23612         Do not lose casts from array types with unknown extent to array
23613         types with known extent.
23614         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
23615         alias set compatibility.
23616
23617 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23618
23619         * flags.h (extra_warnings): Delete.
23620         * toplev.c (process_options): Handle Wuninitialized here.
23621         * opts.c (extra_warnings): Delete.
23622         (set_Wextra): Delete.
23623         (common_handle_option): -Wextra can be handled automatically.
23624         * c-opts.c (c_common_handle_option): Delete obsolete code.
23625         (c_common_post_options): Simplify comment.
23626         * common.opt (W): Add Var.
23627         (Wextra): Add Var.
23628         (Wuninitialized): Initialize to -1.
23629
23630 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
23631             Richard Guenther  <rguenther@suse.de>
23632
23633         * expr.c (get_def_for_expr): New function.
23634         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
23635         SSA rather than trees.
23636         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
23637         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
23638
23639 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
23640
23641         * c-common.c (reswords): Add _Imaginary.
23642         * c-common.c (enum rid): Add RID_IMAGINARY.
23643
23644 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
23645
23646         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
23647         Patch by Richard Guenther.
23648
23649 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
23650
23651         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
23652         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
23653         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
23654         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
23655         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
23656         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
23657         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
23658         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
23659         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
23660         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
23661         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
23662         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
23663         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
23664         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
23665         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
23666         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
23667         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
23668         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
23669
23670 2009-05-02  Richard Guenther  <rguenther@suse.de>
23671
23672         PR tree-optimization/39940
23673         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
23674         doing so.
23675
23676 2009-05-02  Richard Guenther  <rguenther@suse.de>
23677
23678         PR middle-end/40001
23679         * tree-ssa.c (execute_update_addresses_taken): Properly check
23680         if we can mark a variable DECL_GIMPLE_REG_P.
23681         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
23682         back to the end of the function.
23683         (is_gimple_reg_type): Remove complex type special casing.
23684         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
23685         if not optimizing.
23686
23687 2009-05-02  Ben Elliston  <bje@au.ibm.com>
23688
23689         * doc/collect2.texi (Collect2): Document search path behaviour
23690         when configured with --with-ld.
23691
23692 2009-05-02  Jan Hubicka  <jh@suse.cz>
23693
23694         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
23695         parameter; update callers.
23696         (coalesce_cost_edge): EH edges are costier because they needs
23697         splitting even if not critical and even more costier when there are
23698         multiple EH predecestors.
23699
23700 2009-05-02  Jan Hubicka  <jh@suse.cz>
23701
23702         * except.c (remove_eh_handler_and_replace): Handle updating after
23703         removing TRY blocks.
23704
23705 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
23706
23707         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
23708
23709 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
23710
23711         * varasm.c: Do not include c-pragma.h.
23712         * attribs.c: Do not incude c-common.h.
23713
23714 2009-05-01  Michael Matz  <matz@suse.de>
23715
23716         * calls.c (initialize_argument_information): Handle SSA names like
23717         decls with a non MEM_P DECL_RTL.
23718
23719 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23720
23721         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
23722         * ipa-utils.c: Likewise.
23723         * ipa-type-escape.c: Likewise.
23724         * cgraphunit.c Do not include c-common.h.
23725         * ipa-pure-const.c: Likewise.
23726         * tree-if-conv.c: Likewise.
23727         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
23728         * ipa-struct-reorg.c: Likewise.
23729         * tree-nomudflap.c: Likewise.
23730         * tree-ssa-structalias.c: Likewise.
23731
23732 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23733
23734         * store-motion.c: Many cleanups to make this pass a first-class
23735         citizen instead of an appendix to gcse load motion.  Add TODO list
23736         to make this pass faster/cleaner/better.
23737
23738         (struct ls_expr): Post gcse.c-split cleanups.
23739         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
23740         "stores" field to "avail_stores".
23741         (pre_ldst_mems): Rename to store_motion_mems.
23742         (pre_ldst_table): Rename to store_motion_mems_table.
23743         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
23744         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
23745         (ldst_entry): Rename to st_expr_entry, update users.
23746         (free_ldst_entry): Rename to free_st_expr_entry, update users.
23747         (free_ldst_mems): Rename to free_store_motion_mems, update users.
23748         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
23749         update caller.
23750         (first_ls_expr): Rename to first_st_expr, update users.
23751         (next_ls_expr): Rename to next_st_expr, update users.
23752         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
23753         fields properly for store motion instead of names inherited from load
23754         motion in gcse.c.
23755         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
23756         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
23757         are done with it.
23758
23759         (ae_kill): Rename to st_kill, update users.
23760         (ae_gen): Rename to st_avloc, update users.
23761         (transp): Rename to st_transp, update users.
23762         (pre_insert_map): Rename to st_insert_map, update users.
23763         (pre_delete_map): Rename to st_delete_map, update users.
23764         (insert_store, build_store_vectors, free_store_memory,
23765         one_store_motion_pass): Update for abovementioned changes.
23766
23767         (gcse_subst_count, gcse_create_count): Remove.
23768         (one_store_motion_pass): New statistics counters "n_stores_deleted"
23769         and "n_stores_created", local variables.
23770
23771         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
23772         use for_each_rtx.
23773
23774         (regvec, compute_store_table_current_insn): Remove.
23775         (reg_set_info, reg_clear_last_set): Remove.
23776         (compute_store_table): Use DF caches instead of local dataflow
23777         solvers.
23778
23779 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
23780
23781         * c-objc-common.c (c_tree_printer): Print identifiers with
23782         pp_identifier, not pp_string.  Mark "({anonymous})" for
23783         translation.
23784         * c-pretty-print.c (pp_c_ws_string): New.
23785         (pp_c_cv_qualifier, pp_c_type_specifier,
23786         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
23787         pp_c_storage_class_specifier, pp_c_function_specifier,
23788         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
23789         pp_c_primary_expression, pp_c_postfix_expression,
23790         pp_c_unary_expression, pp_c_shift_expression,
23791         pp_c_relational_expression, pp_c_equality_expression,
23792         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
23793         use pp_string and pp_c_ws_string in place of pp_identifier and
23794         pp_c_identifier for non-identifiers.  Mark English strings for
23795         translation.
23796         * c-pretty-print.h (pp_c_ws_string): Declare.
23797
23798 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
23799             Roland McGrath <roland@redhat.com>
23800
23801         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
23802         (ENABLE_LD_BUILDID): New configuration option.
23803         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
23804         (LINK_BUILDID_SPEC): New macro.
23805         (init_spec): If defined, prepend it between LINK_EH_SPEC and
23806         link_spec.
23807         * doc/install.texi: Document --enable-linker-build-id option.
23808         * configure: Rebuild.
23809         * config.in: Rebuild.
23810
23811 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
23812
23813         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
23814         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
23815         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
23816         MIPS_GP_SAVE_AREA_SIZE.
23817         * config/mips/mips.c (struct mips_frame_info): Update comment
23818         before arg_pointer_offset and hard_frame_pointer_offset.
23819         (mips_compute_frame_info): Update diagram before function: to
23820         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
23821         indicate the position of frame_pointer_rtx with -fstack-protector and
23822         to show args_size.  Don't allocate cprestore area for leaf functions
23823         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
23824         cprestore_size.
23825         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
23826
23827 2009-04-30  Michael Matz  <matz@suse.de>
23828
23829         PR tree-optimization/39955
23830         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
23831
23832 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
23833
23834         * ira.c (setup_cover_and_important_classes):  Use safe macro
23835         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
23836         directly.
23837         * genpreds.c (write_tm_preds_h):  Output suitable definition of
23838         REG_CLASS_FOR_CONSTRAINT.
23839
23840 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
23841
23842         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
23843         instead of an int.
23844         * bitmap.c (bitmap_descriptor): Likewise.
23845         * ggc-common.c (loc_descriptor): Likewise.
23846         * varray.c (varray_descriptor): Likewise.
23847         * vec.c (vec_descriptor): Likewise.
23848
23849 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
23850
23851         * Makefile.in (dce.o): Add $(EXCEPT_H).
23852         * dce.c: Include except.h and delete redundant vector definitions.
23853         (deletable_insn_p): Return false for non-call insns that can throw
23854         if DF is running.
23855
23856 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
23857
23858         * gcse.c (ae_gen): Remove.
23859         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
23860         and make non-static function to make it available in store-motion.c.
23861         Update call sites with search-and-replace.
23862         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
23863         extract_mentioned_regs, extract_mentioned_regs_helper,
23864         find_moveable_store, compute_store_table, load_kills_store, find_loads,
23865         store_killed_in_insn, store_killed_after, store_killed_before,
23866         build_store_vectors, insert_insn_start_basic_block, insert-store,
23867         remove_reachable_equiv_notes, replace_store_insn, delete_store,
23868         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
23869         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
23870         * store-motion.c: ...new file.  Also copy data structures from gcse.c
23871         and clean up to remove parts not used by store motion.
23872         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
23873         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
23874
23875 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23876
23877         PR target/38571
23878         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
23879         when optimizing for size.
23880
23881 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
23882
23883         * gcse.c (gcse_constant_p): Fix typo in last change.
23884
23885 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
23886
23887         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
23888
23889 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23890
23891         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
23892
23893 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
23894
23895         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
23896         CONST_HIGH_PART result.
23897
23898 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
23899
23900         * config/avr/avr.c (initial_elimination_offset): Rename to
23901         avr_initial_elimination_offset.
23902         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
23903         change return type to bool.
23904         (avr_can_eliminate): New function.
23905         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
23906         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
23907         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
23908         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
23909         avr_initial_elimination_offset.
23910         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
23911         (avr_initial_elimination_offset): Define.
23912
23913 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
23914             Steven Bosscher  <steven@gcc.gnu.org>
23915
23916         PR rtl-optimization/39938
23917         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
23918         * cfgrtl.c: Include insn-attr.h.
23919         (rest_of_pass_free_cfg): New function.
23920         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
23921         * resource.c (init_resource_info): Remove call to df_analyze.
23922
23923 2009-04-29  Richard Guenther  <rguenther@suse.de>
23924
23925         PR target/39943
23926         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
23927         allow conversion to signed integers.
23928
23929 2009-04-29  Richard Guenther  <rguenther@suse.de>
23930
23931         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
23932         shifts of floating point vectors if the shift amount is
23933         a constant multiple of the element size.
23934
23935 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
23936             Michael Matz  <matz@suse.de>
23937
23938         PR middle-end/39927
23939         PR bootstrap/39929
23940         * tree-outof-ssa.c (emit_partition_copy): New function.
23941         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23942         insert_part_to_rtx_on_edge): Perform the partition base var
23943         copy using emit_partition_copy.
23944         (insert_value_copy_on_edge): Convert constants to the right mode.
23945         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
23946         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
23947
23948 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
23949
23950         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
23951         scan backwards to try to find a constant to initialize it.
23952
23953         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
23954         insn before the loop_end instruction, don't look past labels.
23955
23956 2009-04-29  Richard Guenther  <rguenther@suse.de>
23957
23958         PR middle-end/39937
23959         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
23960         loose type conversions.
23961         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
23962         stmts only if there are no uses of its definition.
23963
23964 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
23965
23966         * config/bfin/bfin.h (splitting_loops): Declare.
23967         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
23968         Reorder bit definitions to be ascending.
23969         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
23970         * config/bfin/bfin.c (splitting_loops): New variable.
23971         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
23972         (struct loop_info): Remove members INIT and LOOP_INIT.
23973         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
23974         the LSETUP sequence.  Allow LC to be loaded from any register, but
23975         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
23976         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
23977         set to 1.
23978         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
23979         of reload_completed.
23980
23981         From Jie Zhang:
23982         * config/bfin/bfin.md (movsi_insn): Refine constraints.
23983
23984 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
23985
23986         * Makefile.in (PLUGIN_VERSION_H): New.
23987         (OBJS-common): Remove plugin-version.o.
23988         (plugin.o): Depend on (PLUGIN_VERSION_H).
23989         (plugin-version.o): Remove.
23990         * configure: Regenerate
23991         * configure.ac: Create plugin-version.h.
23992         * gcc-plugin.h (plugin_gcc_version): Remove.
23993         (plugin_default_version_check): Change signature.
23994         * plugin-version.c: Remove.
23995         * plugin.c: Include plugin-version.h.
23996         (str_plugin_gcc_version_name): Remove.
23997         (try_init_one_plugin): Pass gcc version to plugin_init.
23998         (plugin_default_version_check): Both gcc and plugin versions are now
23999         arguments.
24000
24001 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24002
24003         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
24004         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
24005         Remove special case testing for last insn of inner loops. Don't fail
24006         if the loop ends with a jump, emit an extra nop instead.
24007
24008         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
24009         DREGS rather than comparing directly.  Remove code that tries to
24010         account for latencies.
24011
24012 2009-04-29  Richard Guenther  <rguenther@suse.de>
24013
24014         PR tree-optimization/39941
24015         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
24016         eliminating an indirect call.
24017
24018 2009-04-29  Richard Guenther  <rguenther@suse.de>
24019
24020         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
24021         parameter.  Allow invariants as base if !require_lvalue.
24022         (verify_gimple_assign_single): Adjust.
24023
24024 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24025
24026         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
24027         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
24028         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
24029         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
24030         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
24031         a VEC_SELECT.
24032         * config/bfin/bfin.c (bfin_expand_builtin,
24033         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
24034
24035 2009-04-28  Richard Guenther  <rguenther@suse.de>
24036
24037         * tree-vect-loop.c (get_initial_def_for_induction): Use
24038         correct types for pointer increment.
24039
24040 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24041
24042         * toplev.c (print_version): Update GMP version string calculation.
24043
24044 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24045
24046         PR rtl-optimization/39938
24047         * resource.c (init_resource_info): Add call to df_analyze.
24048
24049 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24050
24051         * config/alpha/alpha.md (usegp): Cast the result of
24052         alpha_find_lo_sum_using_gp to enum attr_usegp.
24053         * config/alpha/alpha.c (override_options): Remove end-of-structure
24054         marker element from cpu_table.  Use array size of cpu_table to handle
24055         -mcpu and -mtune options.
24056         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
24057
24058 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
24059
24060         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
24061         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
24062         tune_32 and tune_64.
24063         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
24064         support on PowerPC.
24065         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
24066         * config/rs6000/option-defaults.h: ... here.  New file.
24067         (OPT_64, OPT_32): Define.
24068         (MASK_64BIT): Define to 0 if not already defined.
24069         (OPT_ARCH64, OPT_ARCH32): Define.
24070         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
24071         and tune_64.
24072
24073 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24074
24075         * config/arm/arm.c (arm_override_options): Emit error on using
24076         fpa with AAPCS.
24077
24078 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24079
24080         PR rtl-optimization/39914
24081         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24082         registers for allocnos created from user-defined variables only
24083         when not optimizing.
24084
24085 2009-04-28  Richard Guenther  <rguenther@suse.de>
24086
24087         PR middle-end/39937
24088         * fold-const.c (fold_binary): Use distribute_real_division only
24089         on float types.
24090
24091 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
24092
24093         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
24094         add hpux-stdint.h to tm_file.
24095         (hppa[12]*-*-hpux11*): Ditto.
24096         (ia64*-*-hpux*): Ditto.
24097         * config/hpux-stdint.h: New.
24098         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
24099         __STDC_EXT__ for all compiles.
24100         * config/pa/pa-hpux.h: Ditto.
24101         * config/pa/pa-hpux10.h: Ditto.
24102         * config/pa/pa-hpux11.h: Ditto.
24103
24104 2009-04-28  Catherine Moore  <clm@codesourcery.com>
24105
24106         * debug.h (set_name): Add comment.
24107
24108 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
24109
24110         PR target/39929
24111         * config/darwin.c (machopic_gen_offset): Check
24112         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
24113         * config/arm/arm.c (require_pic_register): Likewise.
24114
24115 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
24116
24117         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
24118         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
24119         m32c_promote_prototypes): Delete.
24120
24121 2009-04-28  Michael Matz  <matz@suse.de>
24122
24123         PR middle-end/39922
24124         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
24125         constants.
24126
24127 2009-04-28  Richard Guenther  <rguenther@suse.de>
24128
24129         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
24130
24131 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24132
24133         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
24134         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
24135         * config/arm/arm-tune.md: Regenerate.
24136
24137 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
24138
24139         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
24140         block if there are complex incoming edges.
24141         (sel_merge_blocks): Remove useless assert.
24142         (sel_redirect_edge_and_branch): Check that edge was redirected.
24143         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
24144         (sel_find_rgns): Delete declaration.
24145         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
24146         the region when it is not a preheader.
24147
24148 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24149
24150         PR c/39323
24151         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
24152
24153 2009-04-28  Richard Guenther  <rguenther@suse.de>
24154
24155         * tree.h (SSA_NAME_VALUE): Remove.
24156         (struct tree_ssa_name): Remove value_handle member.
24157         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
24158         array for jump threading.
24159         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
24160         SSA_NAME_VALUEs.
24161         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
24162         * tree-flow.h (threadedge_initialize_values): Declare.
24163         (threadedge_finalize_values): Likewise.
24164         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
24165         (SSA_NAME_VALUE): Define.
24166         (threadedge_initialize_values): New function.
24167         (threadedge_finalize_values): Likewise.
24168         * tree-ssa-dom.c (ssa_name_values): New global variable.
24169         (SSA_NAME_VALUE): Define.
24170         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
24171
24172 2009-04-28  Ira Rosen  <irar@il.ibm.com>
24173
24174         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
24175         Use REPORT_VECTORIZED_LOCATIONS instead
24176         REPORT_VECTORIZED_LOOPS.
24177         * tree-vectorizer.c (vect_verbosity_level): Make static.
24178         (vect_loop_location): Rename to vect_location.
24179         (vect_set_verbosity_level): Update comment.
24180         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
24181         and vect_location.
24182         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
24183         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
24184         instead REPORT_UNVECTORIZED_LOOPS.
24185         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
24186         and vect_loop_def to vect_external_def and vect_internal_def.
24187         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
24188         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
24189         REPORT_UNVECTORIZED_LOCATIONS.
24190         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
24191         and vect_used_in_loop and to vect_unused_in_scope and
24192         vect_used_in_scope.
24193         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
24194         (vect_verbosity_level): Remove declaration.
24195         (vect_analyze_operations): Likewise.
24196         (vect_analyze_stmt): Declare.
24197         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
24198         REPORT_UNVECTORIZED_LOCATIONS.
24199         (vect_get_loop_niters): Fix indentation.
24200         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
24201         (vect_analyze_loop_operations): New function.
24202         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
24203         vect_analyze_operations.
24204         (vect_is_simple_reduction): Use new names.
24205         (vectorizable_live_operation, vect_transform_loop): Likewise.
24206         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
24207         to specify whether the data references can be a part of interleaving
24208         chain.
24209         (vect_analyze_data_ref_dependence): Use new names.
24210         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
24211         (vect_create_addr_base_for_vector_ref): Remove redundant code.
24212         * tree-vect-patterns.c (widened_name_p): Use new names.
24213         (vect_recog_dot_prod_pattern): Likewise.
24214         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
24215         (process_use, vect_mark_stmts_to_be_vectorized,
24216         vect_model_simple_cost, vect_model_store_cost,
24217         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
24218         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
24219         vectorizable_operation, vectorizable_type_demotion,
24220         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
24221         vectorizable_condition): Likewise.
24222         (vect_analyze_operations): Split into vect_analyze_loop_operations
24223         and ...
24224         (vect_analyze_stmt): ... new function.
24225         (new_stmt_vec_info): Use new names.
24226         (vect_is_simple_use): Use new names and fix comment.
24227         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
24228         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
24229
24230 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24231
24232         PR target/39911
24233         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
24234         and integer modes for x87 operands.  Do not ICE for unsupported size,
24235         generate error instead.  Generate error for unsupported operand types.
24236         ['z']: Do not handle HImode memory operands specially.  Warning
24237         for floating-point operands.  Fallthru to 'Z' for unsupported operand
24238         types.  Do not ICE for unsupported size, generate error instead.
24239         (output_387_binary_op): Use %Z to output operands.
24240         (output_fp_compare): Ditto.
24241         (output_387_reg_move): Ditto.
24242
24243 2009-04-28  Ben Elliston  <bje@au.ibm.com>
24244
24245         PR c++/35652
24246         Revert:
24247
24248         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24249
24250         * builtins.c (c_strlen): Do not warn here.
24251         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24252         * c-common.c (pointer_int_sum): Take an explicit location.
24253         Warn about offsets out of bounds.
24254         * c-common.h (pointer_int_sum): Adjust declaration.
24255
24256 2009-04-27  Ian Lance Taylor  <iant@google.com>
24257
24258         * collect2.c (is_ctor_dtor): Change type of ret field in struct
24259         names to symkind.
24260         * dce.c (run_fast_df_dce): Change type of old_flags to int.
24261         * df-core.c (df_set_flags): Change return type to int.  Change
24262         type of old_flags to int.
24263         (df_clear_flags): Likewise.
24264         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
24265         (df_get_conditional_uses): Likewise.
24266         * df.h (df_set_flags, df_clear_flags): Update declarations.
24267         * dwarf2out.c (struct indirect_string_node): Change type of form
24268         field to enum dwarf_form.
24269         (AT_string_form): Change return type to enum dwarf_form.
24270         * fixed-value.c (fixed_compare): Add cast to enum type.
24271         * fwprop.c (update_df): Change 0 to VOIDmode.
24272         * gensupport.c: Change 0 to UNKNOWN.
24273         * gimple.h (gimple_cond_code): Add cast to enum type.
24274         * haifa-sched.c (reemit_notes): Add cast to enum type.
24275         * hooks.c (hook_int_void_no_regs): Remove function.
24276         * hooks.h (hook_int_void_no_regs): Remove declaration.
24277         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
24278         * predict.c (combine_predictions_for_insn): Add casts to enum type.
24279         * real.c (real_arithmetic): Add cast to enum type.
24280         (real_compare): Likewise.
24281         * target.h (struct gcc_target): Change return type of
24282         branch_target_register_class to enum reg_class.
24283         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
24284         default_branch_target_register_class.
24285         * targhooks.c (default_branch_target_register_class): New function.
24286         * targhooks.h (default_branch_target_register_class): Declare.
24287         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
24288         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
24289         cast to int.
24290         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
24291         ERROR_MARK.
24292         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
24293         vect_uninitialized_def.  Change 0 to ERROR_MARK.
24294         * tree-vect-stmts.c (supportable_widening_operation): Don't
24295         initialize icode1 and icode2.
24296         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
24297         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
24298         and to STD_C89.
24299         (cmn_err_flag_specs): Change 0 to STD_C89.
24300         (cmn_err_char_table): Likewise.
24301         * config/arm/arm.c (get_arm_condition_code): Change type of code
24302         to enum arm_cond_code.
24303         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
24304         (IWMMXT_BUILTIN2): Likewise.
24305         (neon_builtin_type_bits): Don't define typedef.
24306         (neon_builtin_datum): Change type of bits field to int.
24307         (arm_expand_neon_args): Add cast to enum type.
24308         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
24309         TLS_MODEL_NONE.
24310         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
24311         casts to enum type.
24312         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
24313         MIPS_FP_COND_f.
24314         * config/mips/mips.md (jal_macro): Return enum constant.
24315         (single_insn): Likewise.
24316         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
24317         CODE_FOR_nothing.
24318         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24319         casts to enum type.
24320         * config/s390/s390.c (s390_tune_flags): Change type to int.
24321         (s390_arch_flags): Likewise.
24322         (s390_handle_arch_option): Change flags field of struct pta to int.
24323         * config/s390/s390.h (s390_tune_flags): Update declaration.
24324         (s390_arch_flags): Likewise.
24325         * config/sh/sh.c (prepare_move_operands): Compare
24326         tls_symbolic_operand result with enum constant.
24327         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
24328         (sh_expand_prologue): Add cast to enum type.
24329         (sh_expand_epilogue): Likewise.
24330         (tls_symbolic_operand): Change return type to enum tls_model.
24331         (fpscr_set_from_mem): Add cast to enum type.
24332         (legitimize_pic_address): Compare tls_symbolic_operand result with
24333         enum constant.
24334         (sh_target_reg_class): Change return type to enum reg_class.
24335         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
24336         PROCESSOR_xxx.
24337         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
24338         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
24339         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
24340         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
24341         (delayed_branch, tls_call_delay): Likewise.
24342         (eligible_for_sibcall_delay): Likewise.
24343         (eligible_for_return_delay): Likewise.
24344         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
24345         (spu_expand_builtin_1): Likewise.
24346
24347         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
24348         for all types of conversions.
24349         (output_init_element): Issue -Wc++-compat warning if needed when
24350         initializing a bitfield with enum type.
24351         * c-parser.c (c_parser_expression): Set original_type to
24352         original_type of right hand operand of comma operator.
24353
24354 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24355
24356         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
24357         grammar nits.
24358         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
24359         * doc/cpp.texi (Standard Predefined Macros)
24360         (Implementation-defined behavior): Likewise.
24361         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
24362         * doc/gimple.texi (GIMPLE Exception Handling)
24363         (@code{GIMPLE_ASSIGN}): Likewise.
24364         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
24365         * doc/invoke.texi (Warning Options, Optimize Options)
24366         (AVR Options, Darwin Options): Likewise.
24367         (Optimize Options): Reformulate -fwhole-program description.
24368         * doc/loop.texi (Lambda): Likewise.
24369         * doc/md.texi (Output Template, Define Constraints)
24370         (Standard Names, Insn Splitting): Likewise.
24371         * doc/options.texi (Option properties): Likewise.
24372         * doc/passes.texi (Tree-SSA passes): Likewise.
24373         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
24374         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
24375         (File Names and DBX): Likewise.
24376         * doc/trouble.texi (Incompatibilities): Likewise.
24377
24378 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24379
24380         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
24381         instruction is correct.
24382
24383 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24384
24385         Allow non-constant arguments to conversion intrinsics.
24386         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
24387         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
24388         * spu.c (print_operand): Handle 'v' and 'w'.
24389         (exp2_immediate_p, spu_gen_exp2): Define.
24390         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
24391         spu_convtf_1): Update parameter descriptions.
24392         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
24393         * constraints.md ('v', 'w'): New.
24394         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
24395         Remove.
24396         (i2f, I2F): New define_mode_attr.
24397         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
24398         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
24399         fixuns_truncv4sfv4si2):  Update to use mode attribute.
24400         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
24401         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
24402         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
24403         patterns for combine.
24404
24405 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
24406
24407         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
24408         (cprop, hoist, pre, store_motion): New debug counters.
24409         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
24410         is not an RTL pass anymore.
24411         (pass_profiling): Remove extern decl for pass removed in 2005.
24412         (pass_gcse, pass_jump_bypass): Remove.
24413         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
24414         to 0 for clean state.
24415         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
24416         * cse.c (gate_handle_cse_after_global_opts,
24417         rest_of_handle_cse_after_global_opts): New functions.
24418         (pass_cse_after_global_opts): New pass, does local CSE.
24419         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
24420         (TV_CPROP): New timevar.
24421         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
24422         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
24423         (gcse_main, recompute_all_luids): Remove.
24424         (compute_hash_table_work): Call max_reg_num instead of reading
24425         max_gcse_regno.
24426         (cprop_jump): Don't set run_jump_opt_after_gcse.
24427         (constprop_register): Always allow to alter jumps.
24428         (cprop_insn): Likewise.
24429         (do_local_cprop): Likewise.
24430         (local_cprop_pass): Likewise.  Return non-zero if something changed.
24431         (cprop): Remove function, fold interesting bits into one_cprop_pass.
24432         (find_implicit_sets): Add note about missed optimization opportunity.
24433         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
24434         pass_rtl_cprop execute function.
24435         Don't bother tracking the pass number, each pass gets its own dumpfile
24436         now anyway.
24437         Always allow to alter jumpsand bypass jumps.
24438         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
24439         will just find no suitable set.
24440         (pre_edge_insert): Fix dumping, this function is for PRE only.
24441         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
24442         pass_rtl_pre execute function.
24443         (hoist_code): Return non-zero if something changed.  Keep track of
24444         substitutions and insertions for statistics gathering similar to PRE.
24445         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
24446         called from the pass_rtl_hoist execute function.  Show pass statistics.
24447         (compute_store_table): Use max_reg_num directly instead of using the
24448         formerly global max_gcse_regno.
24449         (build_store_vectors): Likewise.
24450         (replace_store_insn): Fix dumping.
24451         (store_motion): Rename to ...
24452         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
24453         pass, called from the pass_rtl_store_motion execute function.  Keep
24454         track of substitutions and insertions for statistics gathering similar
24455         to PRE.
24456         (bypass_jumps): Remove, fold interesting bits into ...
24457         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
24458         from the pass_rtl_cprop execute function.
24459         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
24460         pass_jump_bypass): Remove.
24461         (gate_handle_gcse, rest_of_handle_gcse): Remove.
24462         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
24463         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
24464         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
24465         (gate_rtl_store_motion, execute_rtl_store_motion,
24466         pass_rtl_store_motion): New.
24467         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
24468         make it clear that -fcse-skip-blocks is a no-op for backward compat.
24469         * passes.c (init_optimization_passes): Remove pass_gcse and
24470         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
24471         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
24472         instead of pass_jump_bypass.
24473
24474 2009-04-27  Richard Guenther  <rguenther@suse.de>
24475
24476         PR middle-end/39928
24477         * gimplify.c (gimplify_expr): If we are required to create
24478         a temporary make sure it ends up as register.
24479
24480 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
24481
24482         PR target/39903
24483         * config/i386/i386.c (construct_container): Don't call
24484         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
24485         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
24486
24487 2009-04-27  Michael Matz  <matz@suse.de>
24488
24489         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
24490         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
24491         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
24492         (dump_replaceable_exprs): Take a bitmap.
24493         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
24494         array.
24495         (expand_gimple_basic_block): Likewise.
24496         * tree-ssa-ter.c (struct temp_expr_table_d): Make
24497         replaceable_expressions member a bitmap.
24498         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
24499         (mark_replaceable): Likewise.
24500         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
24501         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
24502
24503 2009-04-27  Richard Guenther  <rguenther@suse.de>
24504
24505         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
24506         (verify_stmts): Dispatch to gimple/type verification code.
24507         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
24508         issue with call argument types.
24509
24510 2009-04-27  Michael Matz  <matz@suse.de>
24511
24512         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
24513         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
24514         to above.
24515
24516 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24517             Eric Botcazou  <ebotcazou@adacore.com>
24518
24519         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
24520         a label's basic block.
24521         (mark_target_live_regs): Tidy and rework obsolete comments.
24522         Change back DF problem to LIVE.  If a label starts a basic block,
24523         assume that all registers that used to be live then still are.
24524         (init_resource_info): If a label starts a basic block, set its
24525         BLOCK_FOR_INSN accordingly.
24526         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
24527
24528 2009-04-27  Richard Guenther  <rguenther@suse.de>
24529
24530         * tree-flow-inline.h (function_ann): Remove.
24531         (get_function_ann): Likewise.
24532         * tree-dfa.c (create_function_ann): Remove.
24533         * tree-flow.h (struct static_var_ann_d): Remove.
24534         (struct function_ann_d): Likewise.
24535         (union tree_ann_d): Remove fdecl member.
24536         (function_ann_t): Remove.
24537         (function_ann, get_function_ann, create_function_ann): Remove
24538         declarations.
24539
24540 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
24541
24542         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
24543
24544 2009-04-27  Jan Hubicka  <jh@suse.cz>
24545
24546         * ipa-pure-const.c (struct funct_state_d): New fields
24547         state_previously_known, looping_previously_known; remove
24548         state_set_in_source.
24549         (analyze_function): Use new fields.
24550         (propagate): Avoid assumption that state_set_in_source imply
24551         nonlooping.
24552
24553         * tree-ssa-loop-niter.c (finite_loop_p): New function.
24554         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
24555         * cfgloop.h (finite_loop_p): Declare.
24556
24557 2009-04-26  Michael Matz  <matz@suse.de>
24558
24559         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
24560
24561 2009-04-26  Michael Matz  <matz@suse.de>
24562
24563         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
24564         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
24565         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
24566         pass_mark_used_blocks): Remove.
24567         * tree-optimize.c (pass_free_datastructures,
24568         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
24569         * passes.c (init_optimization_passes): Don't call
24570         pass_mark_used_blocks, remove dead code.
24571
24572 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
24573
24574         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
24575         * tree-ssa-live.h (register_ssa_partition): Likewise.
24576
24577 2009-04-26  Michael Matz  <matz@suse.de>
24578
24579         Expand from SSA.
24580         * builtins.c (fold_builtin_next_arg): Handle SSA names.
24581         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
24582         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
24583         SSA names.
24584         (compare_pairs): Swap cost comparison.
24585         (coalesce_ssa_name): Don't use change_partition_var.
24586         * tree-nrv.c (struct nrv_data): Add modified member.
24587         (finalize_nrv_r): Set it.
24588         (tree_nrv): Use it to update statements.
24589         (pass_nrv): Require PROP_ssa.
24590         * tree-mudflap.c (mf_decl_cache_locals,
24591         mf_build_check_statement_for): Use make_rename_temp.
24592         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
24593         * alias.c (find_base_decl): Handle SSA names.
24594         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
24595         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
24596         * rtl.h (set_reg_attrs_for_parm): Declare.
24597         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
24598         to "optimized", remove unused locals at finish.
24599         (execute_free_datastructures): Make global, call
24600         delete_tree_cfg_annotations.
24601         (execute_free_cfg_annotations): Don't call
24602         delete_tree_cfg_annotations.
24603
24604         * ssaexpand.h: New file.
24605         * expr.c (toplevel): Include ssaexpand.h.
24606         (expand_assignment): Handle SSA names the same as register variables.
24607         (expand_expr_real_1): Expand SSA names.
24608         * cfgexpand.c (toplevel): Include ssaexpand.h.
24609         (SA): New global variable.
24610         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
24611         (SSAVAR): New macro.
24612         (set_rtl): New helper function.
24613         (add_stack_var): Deal with SSA names, use set_rtl.
24614         (expand_one_stack_var_at): Likewise.
24615         (expand_one_stack_var): Deal with SSA names.
24616         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
24617         before unique numbers.
24618         (expand_stack_vars): Use set_rtl.
24619         (expand_one_var): Accept SSA names, add asserts for them, feed them
24620         to above subroutines.
24621         (expand_used_vars): Expand all partitions (without default defs),
24622         then only the local decls (ignoring those expanded already).
24623         (expand_gimple_cond): Remove edges when jumpif() expands an
24624         unconditional jump.
24625         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
24626         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
24627         SSA name.
24628         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
24629         members of SA; deal with PARM_DECL partitions here; expand
24630         all PHI nodes, free tree datastructures and SA.  Commit instructions
24631         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
24632         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
24633         info and statements at start, collect garbage at finish.
24634         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
24635         (VAR_ANN_PARTITION) Remove.
24636         (change_partition_var): Don't declare.
24637         (partition_to_var): Always return SSA names.
24638         (var_to_partition): Only accept SSA names.
24639         (register_ssa_partition): Only check argument.
24640         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
24641         member.
24642         (delete_var_map): Don't free it.
24643         (var_union): Only accept SSA names, simplify.
24644         (partition_view_init): Mark only useful SSA names as used.
24645         (partition_view_fini): Only deal with SSA names.
24646         (change_partition_var): Remove.
24647         (dump_var_map): Use ssa_name instead of partition_to_var member.
24648         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
24649         basic blocks.
24650         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
24651         (struct _elim_graph): New member const_dests; nodes member vector of
24652         ints.
24653         (set_location_for_edge): New static helper.
24654         (create_temp): Remove.
24655         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
24656         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
24657         (new_elim_graph): Allocate const_dests member.
24658         (clean_elim_graph): Truncate const_dests member.
24659         (delete_elim_graph): Free const_dests member.
24660         (elim_graph_size): Adapt to new type of nodes member.
24661         (elim_graph_add_node): Likewise.
24662         (eliminate_name): Likewise.
24663         (eliminate_build): Don't take basic block argument, deal only with
24664         partition numbers, not variables.
24665         (get_temp_reg): New static helper.
24666         (elim_create): Use it, deal with RTL temporaries instead of trees.
24667         (eliminate_phi): Adjust all calls to new signature.
24668         (assign_vars, replace_use_variable, replace_def_variable): Remove.
24669         (rewrite_trees): Only do checking.
24670         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
24671         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
24672         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
24673         contains_tree_r, MAX_STMTS_IN_LATCH,
24674         process_single_block_loop_latch, analyze_edges_for_bb,
24675         perform_edge_inserts): Remove.
24676         (expand_phi_nodes): New global function.
24677         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
24678         functions, initialize new parameter, remember partitions having a
24679         default def.
24680         (finish_out_of_ssa): New global function.
24681         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
24682         don't reset in_ssa_p here, don't disable TER when mudflap.
24683         (pass_del_ssa): Remove.
24684         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
24685         partition members.
24686         (execute_free_datastructures): Declare.
24687         * Makefile.in (SSAEXPAND_H): New variable.
24688         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
24689         * basic-block.h (commit_one_edge_insertion): Declare.
24690         * passes.c (init_optimization_passes): Move pass_nrv and
24691         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
24692         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
24693         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
24694         (redirect_branch_edge): Deal with super block when expanding, split
24695         out jump patching itself into ...
24696         (patch_jump_insn): ... here, new static helper.
24697
24698 2009-04-26  Michael Matz  <matz@suse.de>
24699
24700         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
24701         beyond num_ssa_names.
24702         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
24703         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
24704
24705 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24706
24707         PR inline-asm/39543
24708         * fwprop.c (forward_propagate_asm): New function.
24709         (forward_propagate_and_simplify): Propagate also into __asm, if it
24710         doesn't increase the number of referenced registers.
24711
24712         PR c/39889
24713         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
24714
24715 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24716
24717         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
24718         note_nonlocal_vla_type for nonlocal VLAs.
24719         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
24720         contains_remapped_vars, remap_vla_decls): New functions.
24721         (convert_nonlocal_reference_stmt): If not optimizing, call
24722         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
24723         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
24724         if it wasn't found in var_map.
24725         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
24726         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
24727         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
24728         declare_vars.
24729         * gimplify.c (nonlocal_vlas): New variable.
24730         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
24731         referenced VLAs.
24732         (gimplify_body): Create and destroy nonlocal_vlas.
24733
24734         * dwarf2out.c (loc_descr_plus_const): New function.
24735         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
24736         mem_loc_descriptor, loc_descriptor_from_tree_1,
24737         descr_info_loc, gen_variable_die): Use it.
24738
24739         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
24740         !TREE_STATIC VAR_DECLs.
24741         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
24742         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
24743         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
24744         DECL_BY_REFERENCE is valid.
24745         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
24746         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
24747         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
24748         Copy DECL_BY_REFERENCE.
24749         (struct nesting_copy_body_data): New type.
24750         (nesting_copy_decl): New function.
24751         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
24752         if they have variable length.
24753
24754 2009-04-26  Michael Matz  <matz@suse.de>
24755
24756         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
24757         mark new temporaries for renaming.
24758
24759 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24760
24761         PR c/39581
24762         * c-decl.c (global_bindings_p): Return negative value.
24763         (c_variable_size): New.  Based on variable_size from
24764         stor-layout.c.
24765         (grokdeclarator): Call c_variable_size not variable_size.
24766
24767 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
24768
24769         * config/i386/i386.c (print_operand) ['z']: Fix typo.
24770
24771 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
24772
24773         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
24774         Redefine it to just use mingw/include.
24775         (ASM_SPEC): Rules for -m32 and -m64.
24776         (LINK_SPEC): Use Likewise.
24777         (SPEC_32): New define.
24778         (SPEC_64): Likewise.
24779         (SUB_LINK_SPEC): Likewise.
24780         (MULTILIB_DEFAULTS): New define.
24781         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
24782         Add multilib options.
24783         (MULTILIB_DIRNAMES): Likewise.
24784         (MULTILIB_OSDIRNAMES): Likewise.
24785         (LIBGCC): Likewise.
24786         (INSTALL_LIBGCC): Likewise.
24787
24788 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24789
24790         PR c/39556
24791         * c-tree.h (enum c_inline_static_type): New.
24792         (record_inline_static): Declare.
24793         * c-decl.c (struct c_inline_static, c_inline_statics,
24794         record_inline_static, check_inline_statics): New.
24795         (pop_file_scope): Call check_inline_statics.
24796         (start_decl): Call record_inline_static instead of pedwarning
24797         directly for static in inline function.
24798         * c-typeck.c (build_external_ref): Call record_inline_static
24799         instead of pedwarning directly for static referenced in inline
24800         function.
24801
24802 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
24803
24804         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
24805         not new but only being rescanned.
24806         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
24807         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
24808         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
24809         record_set_info, compute_set, grealloc): Remove.
24810         (recompute_all_luids): New function.
24811         (gcse_main): Don't compute sets, and don't do related memory
24812         allocations/free-ing.  If something changed before the end of the
24813         pass, update LUIDs using recompute_all_luids.
24814         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
24815         (free_gcse_mem): Don't free it either.
24816         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
24817         Use the df insn LUIDs.
24818         (load_killed_in_block): Likewise.
24819         (compute_hash_table_work): Don't compute reg_set_in_block.
24820         (compute_transp): Use DF_REG_DEF_CHAINs.
24821         (local_cprop_pass): Don't use compute_sets and related functions.
24822         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
24823         Use get_max_uid() instead of max_cuid.
24824         (insert_insn_end_basic_block, pre_insert_copy_insn,
24825         update_ld_motion_stores): Don't try to
24826         keep reg_set tables up to date.
24827         (pre_insert_copies): Use df insn LUIDs.
24828         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
24829         (reg_set_info): Don't use extra bitmap argument.
24830         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
24831         information to compute regs_set_in_block.
24832         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
24833         (bypass_jumps): Don't use compute_sets and friends.
24834
24835 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24836
24837         PR testsuite/39710
24838         * opts.c (undocumented_msg): Do not leave blank even with
24839         ENABLE_CHECKING.
24840
24841 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24842
24843         * c-decl.c (build_enumerator): Allow values folding to integer
24844         constants but not integer constant expressions with a pedwarn if
24845         pedantic.
24846
24847 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24848
24849         PR c/39582
24850         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
24851         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
24852         type is an integer constant.
24853
24854 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
24855
24856         PR target/39897
24857         * config/i386/i386.c (print_operand) ['z']: Revert handling of
24858         HImode operands.
24859
24860 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24861
24862         PR c/39564
24863         * c-decl.c (grokdeclarator): Diagnose declarations of functions
24864         with variably modified return type and no storage class
24865         specifiers, except for the case of nested functions.  Distinguish
24866         extern declarations of functions with variably modified return
24867         types from those of objects with variably modified types.
24868
24869 2009-04-25  Jan Hubicka  <jh@suse.cz>
24870
24871         * tree.c (list_equal_p): New function.
24872         * tree.h (list_equal_p): Declare.
24873         * coretypes.h (edge_def, edge, const_edge, basic_block_def
24874         basic_block_def, basic_block, const_basic_block): New.
24875         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
24876         (redirect_eh_edge): New function.
24877         (make_eh_edge_update_phi): EH edges are not abnormal.
24878         * except.c: Include tree-flow.h.
24879         (list_match): New function.
24880         (eh_region_replaceable_by_p): New function.
24881         (replace_region): New function.
24882         (hash_type_list): New function.
24883         (hash_eh_region): New function.
24884         (eh_regions_equal_p): New function.
24885         (merge_peers): New function.
24886         (remove_unreachable_regions): Verify EH tree when checking;
24887         merge peers.
24888         (copy_eh_region_1): New function.
24889         (copy_eh_region): New function.
24890         (push_reachable_handler): New function.
24891         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
24892         regions without label but with live RESX.
24893         * except.h (redirect_eh_edge_to_label): New.
24894         * tree-flow.h (redirect_eh_edge): New.
24895         * coretypes.h (edge_def, edge, const_edge, basic_block_def
24896         basic_block_def, basic_block, const_basic_block): Remove.
24897         * Makefile.in (except.o): Add dependency on tree-flow.h
24898         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
24899         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
24900         Remove.
24901
24902 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
24903
24904         PR bootstrap/39645
24905         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
24906         on the destination of memcpy.
24907
24908 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
24909
24910         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
24911         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
24912         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
24913
24914 2009-04-25  Jan Hubicka  <jh@suse.cz>
24915
24916         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
24917         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
24918         to be reached by different label than left.
24919         (update_eh_edges): Update comment; remove edge_to_remove if possible
24920         and return true if suceeded.
24921         (cleanup_empty_eh): Accept sharing map; handle shared regions.
24922         (cleanup_eh): Compute sharing map.
24923         * except.c (remove_eh_handler_and_replace): Add argument if we should
24924         update regions.
24925         (remove_unreachable_regions): Update for label sharing.
24926         (label_to_region_map): Likewise.
24927         (get_next_region_sharing_label): New function.
24928         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
24929         prev_try pointers.
24930         (remove_eh_handler): Update.
24931         (remove_eh_region_and_replace_by_outer_of): New function.
24932         * except.h (struct eh_region): Add next_region_sharing_label.
24933         (remove_eh_region_and_replace_by_outer_of,
24934         get_next_region_sharing_label): Declare.
24935         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
24936
24937 2009-04-25  Jan Hubicka  <jh@suse.cz>
24938
24939         * tree-cfg.c (split_critical_edges): Split also edges where we can't
24940         insert code even if they are not critical.
24941
24942 2009-04-25  Jan Hubicka  <jh@suse.cz>
24943
24944         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
24945         (gimple_can_remove_branch_p): EH edges won't remove branch by
24946         redirection.
24947         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
24948         updating of non-abnormal EH edges.
24949         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
24950         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
24951         (split_critical_edges): Split also edges where emitting code on them
24952         will lead to splitting later.
24953
24954 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
24955             H.J. Lu  <hongjiu.lu@intel.com>
24956
24957         PR target/39590
24958         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
24959         the configured assembler supports fildq and fistpq mnemonics.
24960         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
24961         * configure: Regenerated.
24962         * config.in: Ditto.
24963
24964         * config/i386/i386.c (print_operand): Handle 'Z'.
24965         ['z']: Remove handling of special fild/fist suffixes.
24966         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
24967         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
24968         suffix of fild insn.
24969         (*floatsi<mode>2_vector_mixed): Ditto.
24970         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
24971         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
24972         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
24973         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
24974         * config/i386/gas.h (GAS_MNEMONICS): Remove.
24975
24976 2009-04-25  Ben Elliston  <bje@au.ibm.com>
24977
24978         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
24979         the source of a set operation.
24980
24981 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
24982
24983         * target.h (struct gcc_target): Add case_values_threshold field.
24984         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
24985         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
24986         * targhooks.c (default_case_values_threshold): New function.
24987         * targhooks.h (default_case_values_threshold): Declare function.
24988         * stmt.c (expand_case): Use case_values_threshold target hook.
24989         * expr.h (case_values_threshold): Remove declartation.
24990         * expr.c (case_values_threshold): Remove function.
24991         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
24992
24993         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
24994         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
24995         (avr_case_values_threshold): Declare as static.
24996         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
24997
24998         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
24999         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25000         (mn10300_case_values_threshold): New function.
25001
25002 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25003
25004         * ira.c (setup_cover_and_important_classes): Add enum cast.
25005
25006 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
25007
25008         * genpreds.c (write_enum_constraint_num): Output definition of
25009         CONSTRAINT_NUM_DEFINED_P macro.
25010         * ira.c (setup_cover_and_important_classes): Use
25011         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
25012
25013 2009-04-24  DJ Delorie  <dj@redhat.com>
25014
25015         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
25016         __SH2A_SINGLE_ONLY__ also.
25017
25018 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
25019
25020         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
25021         (movdf_internal): Ditto.
25022         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
25023         SFmode and DFmode constants.
25024         (ia64_print_operand): Add 'G' format for printing
25025         floating point constants.
25026
25027 2009-04-24  Richard Guenther  <rguenther@suse.de>
25028
25029         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
25030         from unsigned additions.
25031
25032 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
25033
25034         * c-typeck.c (set_init_index): Allow array designators that are
25035         not integer constant expressions with a pedwarn if pedantic.
25036
25037 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25038
25039         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
25040         zero if no overlap in nonzero bits between the operands.
25041
25042 2009-04-24  Ian Lance Taylor  <iant@google.com>
25043
25044         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
25045         (record_dead_and_set_regs): Likewise.
25046         * df.h (struct df_mw_hardreg): Change flags field to int.
25047         (struct df_base_ref): Likewise.
25048         (struct df): Change changeable_flags field to int.
25049         * df-scan.c (df_defs_record): Change clobber_flags to int.
25050         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
25051         constants rather than #define macros.
25052         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
25053         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
25054         (enum dwarf_calling_convention): Likewise.
25055         (enum dwarf_line_number_x_ops): Likewise.
25056         (enum dwarf_call_frame_info): Likewise.
25057         (enum dwarf_source_language): Likewise.
25058         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
25059         (add_calling_convention_attribute): Likewise.
25060         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
25061         (combine_comparisons): Change compcode to int.  Add cast to enum type.
25062         * genrecog.c (maybe_both_true_2): Change c to int.
25063         (write_switch): Likewise.  Add cast to enum type.
25064         * gimplify.c (gimplify_omp_for): Handle return values from
25065         gimplify_expr using MIN rather than bitwise or.
25066         (gimplify_expr): Add cast to enum type.
25067         * ipa-prop.c (update_jump_functions_after_inlining): Change
25068         IPA_BOTTOM to IPA_JF_UNKNOWN.
25069         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
25070         Add casts to enum type.
25071         (setup_cover_and_important_classes): Change cl to int.  Add casts
25072         to enum type.
25073         (setup_class_translate): Change cl and mode to int.
25074         (ira_init_once): Change mode to int.
25075         (free_register_move_costs): Likewise.
25076         (setup_prohibited_mode_move_regs): Add casts to enum type.
25077         * langhooks.c (add_builtin_function_common): Rework assertion that
25078         value fits bitfield.
25079         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
25080         * omega.c (omega_do_elimination): Avoid math on enum types.
25081         * optabs.c (expand_vec_shift_expr): Remove casts to int.
25082         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
25083         int local to handle integral_argment value.
25084         * regmove.c (try_auto_increment): Change PUT_MODE to
25085         PUT_REG_NOTE_KIND.
25086         * reload.c (push_secondary_reload): Add casts to enum type.
25087         (secondary_reload_class, find_valid_class): Likewise.
25088         * reload1.c (emit_input_reload_insns): Likewise.
25089         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
25090         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
25091         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
25092         constant.
25093         * tree.c (build_common_builtin_nodes): Add casts to enum type.
25094         * tree-complex.c (complex_lattice_t): Typedef to int rather than
25095         enum type.
25096         (expand_complex_libcall): Add casts to enum type.
25097         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
25098         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
25099         with ERROR_MARK, not NUM_TREE_CODES.
25100         (vect_create_epilog_for_reduction): Likewise.
25101         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
25102         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
25103         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
25104         enum machine_mode.
25105         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
25106         vect_unused_in_loop.  Change 0 to loop_vect.
25107         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
25108         * var-tracking.c (get_init_value): Change return type to enum
25109         var_init_status.
25110         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
25111         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
25112         arm_fp_model.
25113         (arm_override_options): Add casts to enum type.
25114         (arm_emit_tls_decoration): Likewise.
25115         * config/i386/i386.c (ix86_function_specific_restore): Add casts
25116         to enum type.
25117         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
25118         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
25119         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
25120         enum type.
25121         * config/s390/s390.c (code_for_builtin_64): Change to array of
25122         enum insn_code.
25123         (code_for_builtin_31): Likewise.
25124         (s390_expand_builtin): Change code_for_builtin to enum insn_code
25125         const *.
25126         * config/sparc/sparc.c (sparc_override_options): Change value
25127         field in struct code_model to enum cmodel.  In initializer change
25128         0 to NULL and add cast to enum type.
25129
25130         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
25131         Change all callers.  Issue a -Wc++-compat warning using
25132         lhs_origtype if necessary.
25133         (convert_for_assignment): Issue -Wc++-compat warnings about
25134         invalid conversions to enum type on assignment.
25135         * c-common.h (build_modify_expr): Update declaration.
25136
25137 2009-04-24  Nick Clifton  <nickc@redhat.com>
25138
25139         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
25140         (function_arg_advance): Likewise.
25141         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
25142         5th alternative.
25143
25144 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25145
25146         * config/s390/constraints.md ('I', 'J'): Fix condition.
25147
25148 2009-04-24  Diego Novillo  <dnovillo@google.com>
25149
25150         * gengtype-parse.c (parse_error): Add newline after message.
25151
25152 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25153
25154         * config/i386/sse.md (avxmodesuffixs): Removed.
25155         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
25156         (*avx_pinsr<ssevecsize>): This.
25157
25158 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25159
25160         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
25161         follow chains of regs with a single definition, and allow expressions
25162         that are function_invariant_p.
25163         (simple_rhs_p): Allow expressions that are function_invariant_p.
25164
25165 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
25166
25167         PR middle-end/39867
25168         * fold-const.c (fold_cond_expr_with_comparison): When folding
25169         > and >= to MAX, make sure the MAX uses the same type as the
25170         comparison's operands.
25171
25172 2009-04-24  Nick Clifton  <nickc@redhat.com>
25173
25174         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
25175         addressing for DImode accesses.
25176         (frv_print_operand_address): Handle PLUS case.
25177         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
25178
25179 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
25180
25181         PR rtl-optimization/39794
25182         * alias.c (canon_true_dependence): Add x_addr argument.
25183         * rtl.h (canon_true_dependence): Adjust prototype.
25184         * cse.c (check_dependence): Adjust canon_true_dependence callers.
25185         * cselib.c (cselib_invalidate_mem): Likewise.
25186         * gcse.c (compute_transp): Likewise.
25187         * dse.c (scan_reads_nospill): Likewise.
25188         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
25189         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
25190         canon_base_addr of the group, plus optional offset.
25191         (struct group_info): Rename canon_base_mem to
25192         canon_base_addr.
25193         (get_group_info): Set canon_base_addr to canon_rtx of base, not
25194         canon_rtx of base_mem.
25195
25196 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
25197
25198         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
25199         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
25200
25201 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25202
25203         * config/spu/spu-builtins.h: Delete file.
25204
25205         * config/spu/spu.h (enum spu_builtin_type): Move here from
25206         spu-builtins.h.
25207         (struct spu_builtin_description): Likewise.  Add GTY marker.
25208         Do not use enum spu_function_code or enum insn_code.
25209         (spu_builtins): Add extern declaration.
25210
25211         * config/spu/spu.c: Do not include "spu-builtins.h".
25212         (enum spu_function_code, enum spu_builtin_type_index,
25213         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
25214         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
25215         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
25216         unsigned_V2DI_type_node): Move here from spu-builtins.h.
25217         (spu_builtin_types): Make static.  Add GTY marker.
25218         (spu_builtins): Add extern declaration with GTY marker.
25219         Include "gt-spu.h".
25220
25221         * config/spu/spu-c.c: Do not include "spu-builtins.h".
25222         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
25223         Check programmatically whether all parameters are scalar.
25224
25225         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
25226
25227 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
25228
25229         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
25230         assignment from the constructor either if the target is volatile.
25231
25232 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
25233
25234         * config/arm/arm.md (insv): Do not share operands[0].
25235
25236 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
25237
25238         * config/vxlib-tls.c (active_tls_threads): Delete.
25239         (delete_hook_installed): New.
25240         (tls_delete_hook): Don't delete the delete hook.
25241         (tls_destructor): Delete it here.
25242         (__gthread_set_specific): Adjust installing the delete hook.
25243         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
25244         __gthread_leave_tsd_dtor_context.
25245
25246 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
25247
25248         * c-format.c (gcc_tdiag_char_table): Add support for %E.
25249
25250 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
25251
25252         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
25253         enum type.
25254         (alpha_rtx_costs): Ditto.
25255         (emit_unlikely_jump): Use add_reg_note.
25256         (emit_frame_store_1): Ditto.
25257         (alpha_expand_prologue): Ditto.
25258         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25259         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
25260
25261 2009-04-23  Nick Clifton  <nickc@redhat.com>
25262
25263         * config/v850/v850.md (epilogue): Remove suppressed code.
25264         (return): Rename to return_simple and remove test of frame size.
25265         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
25266         to gen_return_simple.
25267
25268 2009-04-22  Jing Yu  <jingyu@google.com>
25269
25270         PR testsuite/39781
25271         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
25272
25273 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25274
25275         PR C/31499
25276         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
25277         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
25278         value is a VECTOR_CST, the element type is the element type of the
25279         vector.
25280
25281 2009-04-22  DJ Delorie  <dj@redhat.com>
25282
25283         * config/m32c/m32c.h: Update GTY annotations to new syntax.
25284
25285 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
25286
25287         * alias.c (find_base_term): Move around LO_SUM case, so that
25288         CONST falls through into PLUS/MINUS handling.
25289
25290         PR c/39855
25291         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
25292         into 0, use omit_one_operand.
25293
25294 2009-04-23  Ben Elliston  <bje@au.ibm.com>
25295
25296         * config/rs6000/linux-unwind.h (get_regs): Remove type
25297         puns. Change the type of `pc' to an array of unsigned ints and
25298         update all users.  Constify frame24.
25299
25300 2009-04-22  DJ Delorie  <dj@redhat.com>
25301
25302         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
25303         declarations before code.
25304         (current_function_special_page_vector): Likewise.
25305         (m32c_expand_insv): Silence a warning.
25306
25307 2009-04-21  Taras Glek  <tglek@mozilla.com>
25308
25309         * alias.c: Update GTY annotations to new syntax.
25310         * basic-block.h: Likewise.
25311         * bitmap.h: Likewise.
25312         * c-common.h: Likewise.
25313         * c-decl.c: Likewise.
25314         * c-parser.c: Likewise.
25315         * c-pragma.c: Likewise.
25316         * c-tree.h: Likewise.
25317         * cfgloop.h: Likewise.
25318         * cgraph.h: Likewise.
25319         * config/alpha/alpha.c: Likewise.
25320         * config/arm/arm.h: Likewise.
25321         * config/avr/avr.h: Likewise.
25322         * config/bfin/bfin.c: Likewise.
25323         * config/cris/cris.c: Likewise.
25324         * config/darwin.c: Likewise.
25325         * config/frv/frv.c: Likewise.
25326         * config/i386/i386.c: Likewise.
25327         * config/i386/i386.h: Likewise.
25328         * config/i386/winnt.c: Likewise.
25329         * config/ia64/ia64.h: Likewise.
25330         * config/iq2000/iq2000.c: Likewise.
25331         * config/mips/mips.c: Likewise.
25332         * config/mmix/mmix.h: Likewise.
25333         * config/pa/pa.c: Likewise.
25334         * config/pa/pa.h: Likewise.
25335         * config/rs6000/rs6000.c: Likewise.
25336         * config/s390/s390.c: Likewise.
25337         * config/sparc/sparc.c: Likewise.
25338         * config/xtensa/xtensa.c: Likewise.
25339         * cselib.h: Likewise.
25340         * dbxout.c: Likewise.
25341         * dwarf2out.c: Likewise.
25342         * except.c: Likewise.
25343         * except.h: Likewise.
25344         * fixed-value.h: Likewise.
25345         * function.c: Likewise.
25346         * function.h: Likewise.
25347         * gimple.h: Likewise.
25348         * integrate.c: Likewise.
25349         * optabs.c: Likewise.
25350         * output.h: Likewise.
25351         * real.h: Likewise.
25352         * rtl.h: Likewise.
25353         * stringpool.c: Likewise.
25354         * tree-data-ref.c: Likewise.
25355         * tree-flow.h: Likewise.
25356         * tree-scalar-evolution.c: Likewise.
25357         * tree-ssa-address.c: Likewise.
25358         * tree-ssa-alias.h: Likewise.
25359         * tree-ssa-operands.h: Likewise.
25360         * tree.c: Likewise.
25361         * tree.h: Likewise.
25362         * varasm.c: Likewise.
25363         * varray.h: Likewise.
25364         * vec.h: Likewise.
25365         * coretypes.h: Do not define GTY macro if it is already defined.
25366         * doc/gty.texi: Update GTY documentation to new syntax.
25367         * gengtype-lex.l: Enforce attribute-like syntax for GTY
25368         annotations on structs.
25369         * gengtype-parse.c: Likewise.
25370
25371 2009-04-22  Mark Heffernan  <meheff@google.com>
25372
25373         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
25374
25375 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25376
25377         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
25378         where appropriate.
25379
25380 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25381
25382         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
25383         the same as a PLUS without a shift.  Increase the cost of a
25384         CONST_INT in MULT.
25385
25386 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25387
25388         * Makefile.in: Update dependencies.
25389         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
25390         * errors.h: Remove bogus comment about compatibility.
25391         (warning): Update declaration.
25392         * genautomata.c: Update all calls to warning.
25393         * gimple.c: Do not include errors.h. Include toplev.h.
25394         * tree-ssa-structalias.c: Do not include errors.h.
25395         * omega.c: Likewise.
25396         * tree-ssa-reassoc.c: Likewise.
25397         * config/spu/spu-c.c: Likewise.
25398         * config/spu/t-spu-elf: Update dependencies.
25399
25400 2009-04-22  Richard Guenther  <rguenther@suse.de>
25401
25402         PR tree-optimization/39824
25403         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
25404         make sure the types are compatible.
25405
25406 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25407
25408         PR c++/14875
25409         * c-common.c (c_parse_error): Take a token_flags parameter.
25410         Use token_type for the token type instead.
25411         Pass token_flags to cpp_type2name.
25412         * c-common.h (c_parse_error): Update declaration.
25413         * c-parser.c (c_parser_error): Pass 0 as token flags.
25414
25415 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
25416
25417         PR rtl-optimization/39580
25418         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
25419
25420 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25421
25422         * function.c (expand_function_end): Do not emit a jump to the "naked"
25423         return label for fall-through returns.
25424         * except.c (sjlj_emit_function_exit): Always place the call to the
25425         unregister function at the location installed by expand_function_end.
25426
25427 2009-04-22  Richard Guenther  <rguenther@suse.de>
25428
25429         PR tree-optimization/39845
25430         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
25431         (gen_inbound_check): Likewise.
25432
25433 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
25434
25435         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
25436         padding for PPC.
25437         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
25438         * config/vxlib.c (__gthread_once): Add race guard for PPC.
25439
25440 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25441
25442         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
25443         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
25444         shift counts to avoid out-of-bounds array accesses.
25445
25446 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25447
25448         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
25449         (Pmode): Move above.
25450
25451 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
25452
25453         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
25454         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
25455         GET_CODE macro.  Use IN_RANGE macro where appropriate.
25456         * config/alpha/alpha.h: Ditto.
25457         * config/alpha/alpha.md: Ditto.
25458         * config/alpha/constraints.md: Ditto.
25459         * config/alpha/predicates.md: Ditto.
25460
25461 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25462
25463         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
25464         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25465         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25466         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25467         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25468         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25469         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25470         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25471         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25472         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25473         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25474         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25475         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25476         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25477         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25478         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25479         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25480         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25481         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25482         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25483         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25484         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25485         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25486         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25487         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25488         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25489         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25490
25491 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25492
25493         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
25494         references from comments.
25495         * cfgbuild.c (count_basic_blocks): Delete.
25496         (find_basic_blocks_1): Delete.
25497         (find_basic_blocks): Delete.
25498         * except.c (finish_eh_generation): Make static.  Move comment from
25499         except.h here.  Remove find_basic_blocks references from comments.
25500         * except.h (finish_eh_generation): Delete.
25501         * basic-block.h (find_basic_blocks): Delete.
25502         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
25503
25504 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
25505
25506         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
25507         (sdbout_parms):  Likewise.
25508
25509 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
25510
25511         * config/sh/sh.c (prepare_cbranch_operands): Use
25512         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
25513         (expand_cbranchdi4): Likewise.
25514         (from_compare): Add cast to enum type.
25515         (expand_cbranchsi4): Use add_reg_note.
25516         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
25517         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
25518         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
25519         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25520         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
25521         instead of CODE_FOR_nothing.
25522         (cbranchdi4): Likewise.  Fix the order of arguments for
25523         gen_rtx_fmt_ee.
25524         (push_fpscr): Use add_reg_note.
25525         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
25526         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
25527
25528 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
25529
25530         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
25531         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25532         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25533         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
25534         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
25535         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
25536         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
25537         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
25538         config/alpha/x-vms, config/arc/t-arc,
25539         config/arm/README-interworking, config/arm/arm-c.c,
25540         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
25541         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
25542         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
25543         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
25544         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
25545         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
25546         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
25547         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
25548         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
25549         config/cris/t-elfmulti, config/crx/t-crx,
25550         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
25551         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
25552         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
25553         config/h8300/t-h8300, config/i386/athlon.md,
25554         config/i386/darwin-libgcc.10.4.ver,
25555         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
25556         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
25557         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
25558         config/i386/t-linux64, config/i386/t-nwld,
25559         config/i386/t-rtems-i386, config/i386/t-sol2-10,
25560         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
25561         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
25562         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
25563         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
25564         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
25565         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
25566         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
25567         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
25568         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
25569         config/m68k/t-uclinux, config/mcore/t-mcore,
25570         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
25571         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
25572         config/mips/crtn.asm, config/mips/irix-crti.asm,
25573         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
25574         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
25575         config/mips/mips-fixed.md, config/mips/sb1.md,
25576         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
25577         config/mips/t-iris6, config/mips/t-isa3264,
25578         config/mips/t-libgcc-mips16, config/mips/t-linux64,
25579         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
25580         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
25581         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
25582         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
25583         config/mn10300/t-linux, config/mn10300/t-mn10300,
25584         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
25585         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
25586         config/picochip/libgccExtras/clzsi2.asm,
25587         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
25588         config/rs6000/darwin-libgcc.10.4.ver,
25589         config/rs6000/darwin-libgcc.10.5.ver,
25590         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
25591         config/rs6000/t-aix43, config/rs6000/t-aix52,
25592         config/rs6000/t-darwin, config/rs6000/t-fprules,
25593         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
25594         config/rs6000/t-lynx, config/rs6000/t-netbsd,
25595         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
25596         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
25597         config/rs6000/t-rtems, config/rs6000/t-spe,
25598         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
25599         config/score/t-score-elf, config/sh/divcost-analysis,
25600         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
25601         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
25602         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
25603         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
25604         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
25605         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
25606         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
25607         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
25608         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
25609         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
25610         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
25611         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
25612         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
25613         limitx.h, version.c, xcoff.h: Add copyright and license notices.
25614         * config/h8300/genmova.sh: Include copyright and license notices
25615         in generated output.
25616         * config/h8300/mova.md: Regenerate.
25617         * doc/install.texi2html: Include word "Copyright" in copyright
25618         notice and use name "Free Software Foundation, Inc.".
25619         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25620         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25621         ChangeLog-2007, ChangeLog-2008: Correct dates.
25622
25623 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25624
25625         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
25626         NE_EXPR operations as well.
25627         * c-parser.c (c_parser_condition): Do not set location information on
25628         the condition.
25629         (c_parser_conditional_expression): Likewise.
25630         (c_parser_binary_expression): Set location information on operators.
25631         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
25632         TRUTH_NOT_EXPR has been folded.
25633         * fold-const.c (fold_truth_not_expr): Copy location information from
25634         the incoming expression to the outgoing one.
25635         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
25636         recursive calls on the LHS of the operator but pass that of the
25637         operator to recursive calls on the RHS of the operator.  Set it
25638         on the COND_EXPR.
25639         (shortcut_cond_expr): Set the locus of the operator on the second
25640         COND_EXPR and that of the expression on the first in degenerate cases.
25641         Pass the locus of the expression to calls to shortcut_cond_r.
25642         Set the locus of the 'then' block on the associated jump, if any.
25643         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
25644         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
25645         expression to call to gimplify_boolean_expr.
25646
25647 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
25648
25649         * config.gcc: Add additional configuration for
25650         i686-w64-mingw* and x86_64-w64-mingw* triplet.
25651         * config/i386/mingw-w64.h: New mingw-w64 specific header.
25652         (CPP_SPEC): Redefine for allowing -municode option.
25653         (STARTFILE_SPEC): Likewise.
25654         * config/i386/t-mingw-w64: New.
25655         * config/i386/mingw-w64.opt: New.
25656         (municode): Add new target option.
25657         * doc/invoke.texi (municode): Add documentation for new option.
25658
25659 2009-04-21  Ian Lance Taylor  <iant@google.com>
25660
25661         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25662         Correct test for number of arguments.
25663         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25664
25665 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
25666
25667         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
25668         argument of emit_library_call.
25669
25670 2009-04-21  Richard Guenther  <rguenther@suse.de>
25671
25672         PR middle-end/39829
25673         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
25674         inside VIEW_CONVERT_EXPRs.
25675
25676 2009-04-21  Martin Jambor  <mjambor@suse.cz>
25677
25678         * tree-switch-conversion.c (build_constructors): Split a long line.
25679         (constructor_contains_same_values_p): New function.
25680         (build_one_array): Create assigns of constants if possible, do not
25681         call mark_sym_for_renaming, call update_stmt.
25682         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
25683         make_rename_temp.  Do not call mark_symbols_for_renaming, call
25684         update_stmt.
25685         (gen_def_assigns): Do not call mark_symbols_for_renaming or
25686         find_new_referenced_vars, call update_stmt.
25687         (gen_inbound_check): Use create_tmp_var and create ssa names manually
25688         instead of calling make_rename_temp.  Do not call
25689         find_new_referenced_vars or mark_symbols_for_renaming, call
25690         update_stmt.
25691
25692 2009-04-21  Richard Guenther  <rguenther@suse.de>
25693
25694         PR tree-optimization/39827
25695         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
25696         (tree_ssa_phiprop): Pass the correct array size.
25697
25698 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
25699
25700         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
25701
25702 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25703
25704         PR 16202
25705         * c-typeck.c (lvalue_p): Move declaration ...
25706         * c-common.h (lvalue_p): ... to here.
25707         * c-common.c (candidate_equal_p): New.
25708         (add_tlist): Use it.
25709         (merge_tlist): Use it.
25710         (warn_for_collisions_1): Likewise.
25711         (warning_candidate_p): Accept more candidates.
25712         (verify_tree): A warning candidate can be an expression. Use
25713         candidate_equal_p.
25714
25715 2009-04-21  Ben Elliston  <bje@au.ibm.com>
25716
25717         PR target/5267
25718         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
25719         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
25720         options.  Remove -mcall-solaris documentation.
25721
25722 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25723
25724         PR c++/13358
25725         * doc/invoke.texi (-Wlong-long): Update description.
25726         * c-lex (interpret_integer): Only warn if there was no previous
25727         overflow and -Wlong-long is enabled.
25728         * c-decl.c (declspecs_add_type): Drop redundant flags.
25729         * c.opt (Wlong-long): Init to -1.
25730         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
25731         and front-end warn_long_long. Wlong-long only depends on other
25732         flags if it is uninitialized.
25733         * c-parser.c (disable_extension_diagnostics): warn_long_long is
25734         the same for CPP and FE.
25735         (restore_extension_diagnostics): Likewise.
25736
25737 2009-04-20  Ian Lance Taylor  <iant@google.com>
25738
25739         Fix enum conversions which are invalid in C++:
25740         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
25741         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
25742         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
25743         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
25744         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
25745         (dbxout_parms): Likewise.
25746         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
25747         (df_clear_flags): Likewise.
25748         * df-problems.c (df_rd_bb_local_compute_process_def): Change
25749         top_flag parameter to int.
25750         (df_chain_create_bb_process_use): Likewise.
25751         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
25752         Remove cast.
25753         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
25754         (df_ref_create_structure, df_def_record_1): Likewise.
25755         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
25756         (df_notes_rescan): Change 0 to VOIDmode in function call.
25757         (df_get_call_refs, df_insn_refs_collect): Likewise.
25758         (df_bb_regs_collect): Likewise.
25759         (df_entry_block_defs_collect): Likewise.
25760         (df_exit_block_uses_collect): Likewise.
25761         * df.h: Update declarations.
25762         * double-int.c (double_int_divmod): Add cast to enum type.
25763         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
25764         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
25765         (based_loc_descr): Likewise.
25766         (loc_descriptor_from_tree_1): Change first_op and second_op to
25767         enum dwarf_location_atom.  Add cast to enum type.
25768         * expmed.c (init_expmed): Change 0 to SET in function call.
25769         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
25770         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
25771         (do_store_flag): Likewise.
25772         * fixed-value.h (struct fixed_value): Change mode to enum
25773         machine_mode.
25774         * function.c (assign_parms): Change 0 to VOIDmode in function call.
25775         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
25776         function call.
25777         (insert_insn_decl, insert_decl, insert_state): Likewise.
25778         (automata_list_finish): Likewise.
25779         * genrecog.c (process_define_predicate): Add cast to enum type.
25780         * gensupport.c (init_predicate_table): Add cast to enum type.
25781         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
25782         function call.
25783         (gimple_build_call_1, gimple_build_label): Likewise.
25784         (gimple_build_goto, gimple_build_asm_1): Likewise.
25785         (gimple_build_switch_1, gimple_build_cdt): Likewise.
25786         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
25787         (enum fallback): Rename from enum fallback_t.
25788         (fallback_t): Typedef as int.
25789         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
25790         GSI_SAME_STMT in function call.
25791         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
25792         enum type.
25793         (setup_reg_class_relations): Likewise.
25794         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
25795         (setup_prohibited_class_mode_regs): Add cast to enum type.
25796         (setup_prohibited_mode_move_regs): Likewise.
25797         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
25798         (record_address_regs): Change i to enum reg_class.
25799         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
25800         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
25801         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
25802         (GET_MODE_2XWIDER_MODE): Likewise.
25803         (GET_CLASS_NARROWEST_MODE): Likewise.
25804         * omp-low.c (expand_omp_for): Add cast to enum type.
25805         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
25806         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
25807         * postreload.c (reload_cse_simplify_operands): Change rclass local
25808         to enum reg_class.
25809         * predict.c (combine_predictions_for_insn): Change best_predictor
25810         and predictor to enum br_predictor.
25811         (combine_predictions_for_bb): Likewise.
25812         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
25813         use SET_PREDICT_EXPR_OUTCOME.
25814         * real.c (real_arithmetic): Change icode to code in function call.
25815         * reginfo.c (init_move_cost): Add casts to enum type.
25816         (init_reg_sets_1, init_fake_stack_mems): Likewise.
25817         * regmove.c (regclass_compatible_p): Change class0 and class1 to
25818         enum reg_class.
25819         * reload.c (find_valid_class): Add casts to enum type.
25820         (push_reload): Change 0 to NO_REGS in function call.
25821         (find_reloads): Change this_alternative to array of enum
25822         reg_class.  Remove some now-unnecessary casts.
25823         (make_memloc): Change 0 to VOIDmode in function call.
25824         * reload1.c (reload): Change 0 to VOIDmode in function call.
25825         (eliminate_regs_1, elimination_effects): Likewise.
25826         (eliminate_regs_in_insn): Likewise.
25827         (emit_input_reload_insns): Add cast to enum type.
25828         (delete_output_reload): Change 0 to VOIDmode in function call.
25829         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
25830         to enum type in function call.
25831         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
25832         (SET_PREDICT_EXPR_OUTCOME): Define.
25833         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
25834         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
25835         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
25836         (dump_function): Likewise.
25837         * tree-dump.h: Update declarations.
25838         * tree-pass.h: Update declarations.
25839         * varasm.c (assemble_integer): Change mclass to enum mode_class.
25840         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
25841         enum type.
25842         (arm_rtx_costs_1): Correct parenthesization.
25843         (arm_rtx_costs): Add casts to enum type.
25844         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
25845         (vfp_emit_fstmd): Use add_rg_note.
25846         (emit_multi_reg_push, emit_sfm): Likewise.
25847         (thumb_set_frame_pointer): Likewise.
25848         (arm_expand_prologue): Likewise.
25849         (arm_regno_class): Change return type to enum reg_class.
25850         (thumb1_expand_prologue): Use add_reg_note.
25851         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
25852         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
25853         in function call.
25854         * config/arm/gentune.sh: Add cast to enum type.
25855         * config/arm/arm-tune.md: Rebuild.
25856         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
25857         (ix86_split_fp_branch, predict_jump): Likewise.
25858         (ix86_expand_multi_arg_builtin): Change sub_code from enum
25859         insn_code to enum rtx_code.
25860         (ix86_builtin_vectorized_function): Add cast to enum type.
25861         * config/i386/i386.md (truncdfsf2): Change slot to enum
25862         ix86_stack_slot.
25863         (truncxf<mode>2, isinf<mode>2): Likewise.
25864         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
25865         enum type.
25866         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
25867         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
25868         (insert_bundle_state): Change 1 to INSERT in function call.
25869         (ia64_add_bundle_selector_before): Likewise.
25870         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
25871         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
25872         (restore_stack_nonlocal): Likewise.
25873         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
25874         function call.
25875         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
25876         function call.
25877         (mips_rtx_costs): Likewise.
25878         (mips_override_options): Add casts to enum type.
25879         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
25880         in function call.
25881         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
25882         (store_reg, set_reg_plus_d): Likewise.
25883         (hppa_expand_prologue, hppa_profile_hook): Likewise.
25884         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25885         cast to enum type.
25886         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
25887         function call.
25888         (emit_unlikely_jump): Use add_reg_note.
25889         (rs6000_emit_allocate_stack): Likewise.
25890         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
25891         (output_toc): Change 1 to INSERT in function call.
25892         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
25893         (rs6000_initialize_trampoline): Likewise.
25894         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
25895         function call.
25896         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
25897         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
25898         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
25899         (save_gprs): Use add_reg_note.
25900         (s390_emit_prologue): Likewise.
25901         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25902         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
25903         (sparc_fold_builtin): Add cast to enum type.
25904         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
25905         enum insn_code.
25906         (spu_expand_prologue): Use add_reg_note.
25907         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
25908
25909 2009-04-20  Ian Lance Taylor  <iant@google.com>
25910
25911         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
25912         (c_parser_postfix_expression_after_primary): Get VEC for list of
25913         arguments.  Get original types of arguments.  Call
25914         build_function_call_vec.
25915         (cached_expr_list_1, cached_expr_list_2): New static variables.
25916         (c_parser_expr_list): Change return type to VEC *.  Add
25917         p_orig_types parameter.  Change all callers.
25918         (c_parser_release_expr): New static function.
25919         (c_parser_vec_to_tree_list): New static function.
25920         * c-typeck.c (build_function_call): Rewrite to build a VEC and
25921         call build_function_call_vec.
25922         (build_function_call_vec): New function, based on old
25923         build_function_call.
25924         (convert_arguments): Remove nargs and argarray parameters.  Change
25925         values to a VEC.  Add origtypes parameter.
25926         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
25927         (convert_for_assignment): Add origtype parameter.  Change all
25928         callers.  If warn_cxx_compat, check for conversion to an enum
25929         type when calling a function.
25930         (store_init_value): Add origtype parameter.  Change all callers.
25931         (digest_init): Likewise.
25932         (struct init_node): Add origtype field.
25933         (add_pending_init): Add origtype parameter.  Change all callers.
25934         (output_init_element): Likewise.
25935         (output_pending_init_elements): Pass origtype from init_node to
25936         output_init_element.
25937         (process_init_element): Pass origtype from c_expr to
25938         output_init_element.
25939         (c_finish_return): Add origtype parameter.  Change all callers.
25940         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
25941         caller.
25942         (sync_resolve_params): Likewise.
25943         (sync_resolve_return): Change params to first_param.  Change caller.
25944         (resolve_overloaded_builtins): Change params to VEC *.  Change
25945         callers.  Save first parameter around call to build_function_call_vec.
25946         * c-decl.c (finish_decl): Add origtype parameter.  Change all
25947         callers.  Call build_function_call_vec rather than
25948         build_function_call for cleanup.
25949         * c-tree.h: Update declarations.
25950         * c-common.h: Update declarations.
25951         * stub-objc.c (objc_rewrite_function_call): Change parameter from
25952         params to first_param.
25953         * target.h (struct gcc_target): Change resolve_overloaded_builtin
25954         params parameter from tree to void *.
25955         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25956         Change arglist parameter to have type void *, and to be a pointer
25957         to a VEC.
25958         * config/rs6000/rs6000-protos.h
25959         (altivec_resolve_overloaded_builtin): Update declaration.
25960         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
25961         fnargs parameter to have type void *, and to be a pointer to a
25962         VEC.  Call build_function_call_vec instead of
25963         build_function_call.
25964         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
25965
25966 2009-04-20  Joey Ye  <joey.ye@intel.com>
25967             Xuepeng Guo  <xuepeng.guo@intel.com>
25968             H.J. Lu  <hongjiu.lu@intel.com>
25969
25970         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
25971
25972         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
25973         (IX86_LEA_PRIORITY): Likewise.
25974         (distance_non_agu_define): New function.
25975         (distance_agu_use): Likewise.
25976         (ix86_lea_for_add_ok): Likewise.
25977         (ix86_dep_by_shift_count): Likewise.
25978
25979         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
25980         should split for LEA.
25981
25982         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
25983         function.
25984         (ix86_dep_by_shift_count): Likewise.
25985
25986 2009-04-20  Richard Guenther  <rguenther@suse.de>
25987
25988         * expr.c (handled_component_p): Move ...
25989         * tree.h (handled_component_p): ... here.
25990         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
25991         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
25992         and REALPART_EXPR to be in one group.
25993
25994 2009-04-20  Richard Guenther  <rguenther@suse.de>
25995
25996         * basic-block.h (get_all_dominated_blocks): Declare.
25997         * dominance.c (get_all_dominated_blocks): New function.
25998         * tree-cfg.c (get_all_dominated_blocks): Remove.
25999         (remove_edge_and_dominated_blocks): Adjust.
26000         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
26001         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
26002         instead of recursing.
26003
26004 2009-04-20  Doug Kwan  <dougkwan@google.com>
26005
26006         * cgraph.h (cgraph_node_ptr): New type for vector functions.
26007         (struct cgraph_node_set_def): New type.
26008         (cgraph_node_set) New type. Also declare vector functions.
26009         (struct cgraph_node_set_element_def): New type.
26010         (cgraph_node_set_element): Ditto.
26011         (cgraph_node_set_iterator): New iterator type.
26012         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
26013         cgraph_node_set_remove, dump_cgraph_node_set,
26014         debug_cgraph_node_set): New prototypes.
26015         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
26016         cgraph_node_set_size): New inlines.
26017         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
26018         including cgraph.h.
26019         (struct ipa_opt_pass): Add struct cgraph_node_set_def
26020         argument to function 'write_summary'.
26021         * ipa.c: Include ggc.h.
26022         (hash_cgraph_node_set_element,
26023         eq_cgraph_node_set_element, cgraph_node_set_new,
26024         cgraph_node_set_add, cgraph_node_set_remove,
26025         cgraph_node_set_find, dump_cgraph_node_set,
26026         debug_cgraph_node_set): New functions.
26027         * Makefile.in (ipa.o): Add dependency on GGC_H.
26028
26029 2009-04-20  Ira Rosen  <irar@il.ibm.com>
26030
26031         PR tree-optimization/39675
26032         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
26033         check of the return code of vect_schedule_slp. Check that
26034         stmt_vec_info still exists for the statement, before checking its
26035         vectorization type.
26036
26037 2009-04-20  Michael Matz  <matz@suse.de>
26038
26039         * Makefile.in (generated_files): Take out $(simple_generated_c).
26040
26041 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
26042
26043         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
26044         (UINTPTR_TYPE):  Likewise.
26045
26046 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26047
26048         PR c/37481
26049         * c-typeck.c (digest_init): Check for initializing an array with a
26050         string literal.
26051
26052 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26053
26054         PR c/19771
26055         * c-semantics.c (pop_stmt_list): Propagate
26056         STATEMENT_LIST_HAS_LABEL to parent statement list.
26057
26058 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
26059
26060         * config/mips/mips.h (mips_tune_attr): New macro.
26061         * config/mips/mips.md (cpu): Use it.
26062
26063 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26064
26065         PR c/38243
26066         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
26067         declaring a tag.
26068
26069 2009-04-19  Diego Novillo  <dnovillo@google.com>
26070
26071         * toplev.c (compile_file): Move call to coverage_finish ...
26072         * cgraphunit.c (ipa_passes): ... here.
26073         Call cgraph_process_new_functions.
26074         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
26075         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
26076
26077 2009-04-19  Jan Hubicka  <jh@suse.cz>
26078
26079         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
26080         cfun.
26081         (dump_cgraph_node): Dump can throw external flag.
26082         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
26083
26084 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26085
26086         PR c/32061
26087         PR c++/36954
26088         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
26089         * common.opt (Wlogical-op): Move from here...
26090         * c.opt (Wlogical-op): ... to here.
26091         * c-typeck.c (parser_build_binary_op): Update call to
26092         warn_logical_operator.
26093         * c-opts.c (c_common_post_options): Enable warn_logical_op with
26094         extra_warnings.
26095         * c-common.c (warn_logical_op): Update.
26096         * c-common.h (warn_logical_op): Update declaration.
26097
26098 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26099
26100         * tree.c (protected_set_expr_location): Fix formatting.
26101
26102 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26103
26104         PR c/27676
26105         * c-typeck.c (readonly_warning): new.
26106         (build_unary_op, build_modify_expr): Use readonly_warning for
26107         storing into something readonly but not const-qualified.
26108
26109 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26110
26111         PR c/22367
26112         * c-typeck.c (build_unary_op): Check for taking address of
26113         expression of type void.
26114
26115 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26116
26117         PR c/35210
26118         * c-typeck.c (build_function_call): Check for calling a function
26119         with qualified void return types.  Call require_complete_type when
26120         generating a trap.
26121
26122 2009-04-18  Jan Hubicka  <jh@suse.cz>
26123
26124         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
26125         Set nothrow flag.
26126         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
26127         can_throw_external flag.
26128         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
26129         * ipa-pure-const.c (ignore_edge): New function.
26130         (propagate): Compute order for NOTHROW computation; set NOTHROWs
26131         only over can_throw_external edges.
26132         (local_pure_const): Add nothrow flag.
26133         * ipa-utils.c (searchc): Add ignore_edge callback.
26134         (ipa_utils_reduced_inorder): Add ignore_edge callback.
26135         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
26136         (set_nothrow_function_flags): Update cgraph.
26137         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
26138
26139 2009-04-18  Richard Guenther  <rguenther@suse.de>
26140
26141         PR middle-end/39804
26142         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
26143         (fold_stmt): ... this and ...
26144         (fold_stmt_inplace): ... this.
26145         (fold_stmt_1): Fold references in calls and asms.
26146         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
26147
26148 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26149
26150         * tree-vrp.c (ssa_name_nonzero_p): Remove.
26151         * tree.h: Remove the prototype for ssa_name_nonzero_p.
26152
26153 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26154
26155         * tree.c (function_args_count): Remove.
26156         * tree.h: Remove the prototype for function_args_count.
26157
26158 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26159
26160         * tree-iterator.c (expr_only): Remove.
26161         * tree.h: Remove the prototype for expr_only.
26162
26163 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26164
26165         * reginfo.c (cannot_change_mode_set_regs): Remove.
26166         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
26167
26168 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
26169
26170         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
26171         whether operands 0 and 1 overlaps.
26172
26173 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26174
26175         PR middle-end/36902
26176         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
26177         pointer. Use warning_at instead of warning.
26178         (search_for_addr_array): Likewise.
26179         (check_array_bounds): Likewise.
26180         (check_all_array_refs): Check that the incoming edge is not in the
26181         list of edges to be removed.
26182         (check_all_array_refs): Avoid the temporal pointer.
26183         (vrp_visit_cond_stmt): Fix typo.
26184         (simplify_switch_using_ranges): Handle the case where the switch
26185         index is an integer constant.
26186
26187 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
26188
26189         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
26190
26191 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26192
26193         * doc/extend.texi, doc/invoke.texi: Fix typos.
26194
26195 2009-04-17  Cary Coutant  <ccoutant@google.com>
26196
26197         * tree-flow-inline.h (get_lineno): Fix inverted test.
26198
26199 2009-04-17  Diego Novillo  <dnovillo@google.com>
26200
26201         * tree-ssa-pre.c (create_expression_by_pieces): Remove
26202         assertion for AVAIL_OUT.
26203
26204 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
26205
26206         PR target/38627
26207         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
26208         * config/sh/linux-atomic.asm: Likewise.
26209
26210 2009-04-17  Diego Novillo  <dnovillo@google.com>
26211
26212         * except.c (debug_eh_tree): New.
26213         (struct eh_region, struct eh_status): Move ...
26214         * except.h: ... here.
26215         (add_type_for_runtime): Declare extern.
26216         (lookup_type_for_runtime): Likewise.
26217         (debug_eh_tree): Declare.
26218         * Makefile.in (GTFILES): List except.h before except.c
26219
26220 2009-04-17  Diego Novillo  <dnovillo@google.com>
26221
26222         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
26223         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
26224         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
26225         (find_vars_r): ... here.
26226         * tree-flow.h (find_referenced_vars_in): Declare.
26227         * tree-ssa-pre.c (create_expression_by_pieces): Assert
26228         that AVAIL_OUT exists for BLOCK.
26229         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
26230         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
26231         (tree-parloops.o): Likewise.
26232
26233 2009-04-17  Simon Baldwin  <simonb@google.com>
26234
26235         * toplev.c (default_tree_printer): Add handling for %E format.
26236
26237 2009-04-17  Diego Novillo  <dnovillo@google.com>
26238
26239         * tree-pretty-print.c (dump_generic_node): Add break after
26240         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
26241         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
26242         FUNCTION_TYPE together.  Call print_struct_decl when printing
26243         structures and TDF_SLIM is not given.
26244         (print_struct_decl): Fix logic for detecting recursion.
26245
26246 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26247
26248         PR 31567
26249         * gcc.c (create_at_file): New.
26250         (compile_input_file_p): New.
26251         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
26252         * main.c (main): Update call to toplev_main.
26253         * toplev.c (toplev_main): Change signature. Call expandargv.
26254         * toplev.h (toplev_main): Change signature.
26255
26256 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26257
26258         * dwarf2out.c (field_byte_offset): Use the type size as the field size
26259         if the latter is not constant.
26260
26261 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
26262
26263         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
26264
26265 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26266
26267         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
26268         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
26269
26270 2009-04-17  Richard Guenther  <rguenther@suse.de>
26271
26272         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26273         Handle component references view-converting an invariant address.
26274
26275 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
26276
26277         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
26278         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
26279         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
26280         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
26281         Use @deftypevr rather than @deftypevar.
26282
26283 2009-04-17  Richard Guenther  <rguenther@suse.de>
26284
26285         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
26286         (get_prop_source_stmt): Likewise.
26287         (can_propagate_from): Likewise.
26288
26289 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
26290
26291         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
26292         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
26293         (--with-multilib-list): Add default value.
26294         * configure: Regenerate.
26295         * Makefile.in (TM_ENDIAN_CONFIG): Define.
26296         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
26297         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
26298         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
26299         Don't add default cpu to multilib list unnecessarily, but do enable
26300         the relevant compiler option..
26301         Add support for --with-multilib-list=<blank> and
26302         --with-multilib-list=!<somelib> to supress unwanted multilibs.
26303         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
26304         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
26305         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
26306         TM_MULTILIB_CONFIG.
26307         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
26308         (MULTILIB_OSDIRNAMES): New variable.
26309         * config/sh/t-1e: Delete file.
26310         * config/sh/t-mlib-sh1: Delete file.
26311         * config/sh/t-mlib-sh2: Delete file.
26312         * config/sh/t-mlib-sh2a: Delete file.
26313         * config/sh/t-mlib-sh2a-nofpu: Delete file.
26314         * config/sh/t-mlib-sh2a-single: Delete file.
26315         * config/sh/t-mlib-sh2a-single-only: Delete file.
26316         * config/sh/t-mlib-sh2e: Delete file.
26317         * config/sh/t-mlib-sh3e: Delete file.
26318         * config/sh/t-mlib-sh4: Delete file.
26319         * config/sh/t-mlib-sh4-nofpu: Delete file.
26320         * config/sh/t-mlib-sh4-single: Delete file.
26321         * config/sh/t-mlib-sh4-single-only: Delete file.
26322         * config/sh/t-mlib-sh4a: Delete file.
26323         * config/sh/t-mlib-sh4a-nofpu: Delete file.
26324         * config/sh/t-mlib-sh4a-single: Delete file.
26325         * config/sh/t-mlib-sh4a-single-only: Delete file.
26326         * config/sh/t-mlib-sh4al: Delete file.
26327         * config/sh/t-mlib-sh5-32media: Delete file.
26328         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
26329         * config/sh/t-mlib-sh5-64media: Delete file.
26330         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
26331         * config/sh/t-mlib-sh5-compact: Delete file.
26332         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
26333         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
26334         * doc/install.texi (Options specification): Add
26335         --with-multilib-list and --with-endian.
26336
26337 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26338
26339         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
26340         REVISION_c.
26341         (OBJS-common): Add plugin-version.o.
26342         (plugin-version.o): New.
26343         * gcc-plugin.h (plugin_gcc_version): New.
26344         (plugin_default_version_check): New.
26345         (plugin_init_func, plugin_init): Add version argument.
26346         * plugin-version.c: New.
26347         * plugin.c (str_plugin_gcc_version_name): New.
26348         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
26349         pass it to the init function.
26350         (plugin_default_version_check): New.
26351
26352 2009-04-17  Richard Guenther  <rguenther@suse.de>
26353
26354         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
26355         for decl-vs-decl disambiguation.
26356
26357 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
26358
26359         * config/s390/s390.h (s390_tune_attr): New macro definition.
26360         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
26361
26362 2009-04-17  Richard Guenther  <rguenther@suse.de>
26363
26364         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
26365         (fold_stmt_r): Likewise.
26366         (maybe_fold_reference): New function.
26367         (fold_gimple_assign): Handle cases fold_stmt_r did.
26368         (fold_stmt): Do not use fold_stmt_r.
26369         (fold_stmt_inplace): Likewise.
26370
26371 2009-04-17  Richard Guenther  <rguenther@suse.de>
26372
26373         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
26374         (record_equivalences_from_stmt): Remove useless checks and
26375         simplifications.
26376         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
26377         the type is already suitable.
26378
26379 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
26380
26381         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
26382
26383 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
26384
26385         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
26386         (CMPtype): Define as __gcc_CMPtype.
26387
26388 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
26389
26390         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
26391         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
26392
26393 2009-04-17  Richard Guenther  <rguenther@suse.de>
26394
26395         PR tree-optimization/39746
26396         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
26397         special-casing for builtins and static variable use/def.
26398         (call_may_clobber_ref_p_1): Likewise.
26399
26400 2009-04-16  Ian Lance Taylor  <iant@google.com>
26401
26402         * df.h: Include "timevar.h".
26403         (struct df_problem): Change tv_id field to timevar_id_t.
26404         * tree-pass.h: Include "timevar.h".
26405         (struct opt_pass): Change tv_id field to timevar_id_t.
26406         * timevar.h (timevar_id_t): Define TV_NONE.
26407         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
26408         TV_NONE rather than tv_id != 0.
26409         (execute_one_pass): Likewise.
26410         * Makefile.in (DF_H): Add $(TIMEVAR_H).
26411         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
26412         dependencies to $(TREE_PASS_H).
26413         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
26414         to TV_NONE.
26415         (pass_branch_target_load_optimize2): Likewise.
26416         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
26417         (pass_outof_cfg_layout_mode): Likewise.
26418         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
26419         (pass_rebuild_cgraph_edges): Likewise.
26420         (pass_remove_cgraph_callee_edges): Likewise.
26421         * df-core.c (pass_df_initialize_opt): Likewise.
26422         (pass_df_initialize_no_opt): Likewise.
26423         (pass_df_finish): Likewise.
26424         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
26425         * except.c (pass_set_nothrow_function_flags): Likewise.
26426         (pass_convert_to_eh_region_ranges): Likewise.
26427         * final.c (pass_compute_alignments): Likewise.
26428         * function.c (pass_instantiate_virtual_regs): Likewise.
26429         (pass_init_function): Likewise.
26430         (pass_leaf_regs): Likewise.
26431         (pass_match_asm_constraints): Likewise.
26432         * gimple-low.c (pass_lower_cf): Likewise.
26433         (pass_mark_used_blocks): Likewise.
26434         * init-regs.c (pass_initialize_regs): Likewise.
26435         * integrate.c (pass_initial_value_sets): Likewise.
26436         * ira.c (pass_ira): Likewise.
26437         * jump.c (pass_cleanup_barriers): Likewise.
26438         * omp-low.c (pass_expand_omp): Likewise.
26439         (pass_lower_omp): Likewise.
26440         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
26441         * recog.c (pass_split_all_insns): Likewise.
26442         (pass_split_after_reload): Likewise.
26443         (pass_split_before_regstack): Likewise.
26444         (pass_split_before_sched2): Likewise.
26445         (pass_split_for_shorten_branches): Likewise.
26446         * reginfo.c (pass_reginfo_init): Likewise.
26447         (pass_subregs_of_mode_init): Likewise.
26448         (pass_subregs_of_mode_finish): Likewise.
26449         * passes.c (pass_postreload): Likewise.
26450         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
26451         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
26452         (pass_warn_function_return): Likewise.
26453         (pass_warn_function_noreturn): Likewise.
26454         * tree-complex.c (pass_lower_complex): Likewise.
26455         (pass_lower_complex_O0): Likewise.
26456         * tree-if-conv.c (pass_if_conversion): Likewise.
26457         * tree-into-ssa.c (pass_build_ssa): Likewise.
26458         * tree-mudflap.c (pass_mudflap_1): Likewise.
26459         (pass_mudflap_2): Likewise.
26460         * tree-nomudflap.c (pass_mudflap_1): Likewise.
26461         (pass_mudflap_2): Likewise.
26462         * tree-nrv.c (pass_return_slot): Likewise.
26463         * tree-object-size.c (pass_object_sizes): Likewise.
26464         * tree-optimize.c (pass_all_optimizations): Likewise.
26465         (pass_early_local_passes): Likewise.
26466         (pass_all_early_optimizations): Likewise.
26467         (pass_cleanup_cfg): Likewise.
26468         (pass_cleanup_cfg_post_optimizing): Likewise.
26469         (pass_free_datastructures): Likewise.
26470         (pass_free_cfg_annotations): Likewise.
26471         (pass_fixup_cfg): Likewise.
26472         (pass_init_datastructures): Likewise.
26473         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
26474         (pass_late_warn_uninitialized): Likewise.
26475         (pass_update_address_taken): Likewise.
26476         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
26477         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
26478         (pass_cse_sincos): Likewise.
26479         (pass_convert_to_rsqrt): Likewise.
26480         * tree-ssa-structalias.c (pass_build_alias): Likewise.
26481         * tree-stdarg.c (pass_stdarg): Likewise.
26482         * tree-tailcall.c (pass_tail_recursion): Likewise.
26483         (pass_tail_calls): Likewise.
26484         * tree-vect-generic.c (pass_lower_vector): Likewise.
26485         (pass_lower_vector_ssa): Likewise.
26486         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
26487
26488 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
26489
26490         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
26491         XLR entry.
26492         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
26493         Handle -march=xlr.
26494         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
26495         logical and signext.
26496
26497 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
26498
26499         PR target/39767
26500         * config/sh/predicates.md (arith_operand): Check if the operand
26501         of TRUNCATE is a REG.
26502
26503 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26504
26505         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
26506         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
26507
26508 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26509
26510         * tree-iterator.c (tsi_split_statement_list_after,
26511         tsi_split_statement_list_before): Remove.
26512         * tree-iterator.h: Remove the prototypes for
26513         tsi_split_statement_list_after and tsi_split_statement_list_before.
26514
26515 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26516
26517         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
26518         * tree-ssa-propagate.h: Remove the prototype for
26519         stmt_makes_single_load.
26520
26521 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26522
26523         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
26524         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
26525
26526 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26527
26528         * tree-iterator.c (EXPR_LAST_BODY): Remove.
26529
26530 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26531
26532         * except.c (eh_region_outer_p): Remove.
26533         * except.h: Remove the prototype for eh_region_outer_p.
26534
26535 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26536
26537         * function.c (current_function_assembler_name): Remove.
26538         * function.h: Remove the prototype for
26539         current_function_assembler_name.
26540
26541 2009-04-16  Ian Lance Taylor  <iant@google.com>
26542
26543         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
26544         (add_reg_note): Call alloc_reg_note.
26545         * rtl.h (alloc_reg_note): Declare.
26546         * combine.c (try_combine): Use alloc_reg_note.
26547         (recog_for_combine, move_deaths): Likewise.
26548         (distribute_notes): Use alloc_reg_note and add_reg_note.
26549         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
26550         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
26551         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
26552
26553 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
26554
26555         PR rtl-optimization/39762
26556         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
26557         ira_may_move_out_cost): Add comments about way of their usage.
26558         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
26559
26560         * ira-conflicts.c (process_regs_for_copy): Use function
26561         ira_get_register_move_cost instead of global
26562         ira_register_move_cost.
26563
26564         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
26565         color_pass, move_spill_restore, update_curr_costs): Ditto.
26566
26567         * ira-lives.c (process_single_reg_class_operands): Ditto.
26568
26569         * ira-emit.c (emit_move_list): Ditto.
26570
26571         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
26572         (record_reg_classes): Ditto.  Use functions
26573         ira_get_register_move_cost and ira_get_may_move_cost instead of
26574         global vars ira_register_move_cost, ira_may_move_out_cost and
26575         ira_may_move_in_cost.
26576         (record_address_regs): Don't call ira_init_register_move_cost.
26577         Use function ira_get_may_move_cost instead of global
26578         ira_may_move_in_cost.
26579         (process_bb_node_for_hard_reg_moves): Use function
26580         ira_get_register_move_cost instead of global ira_register_move_cost.
26581         (ira_costs): Don't call ira_init_register_move_cost.
26582
26583 2009-04-16  Richard Guenther  <rguenther@suse.de>
26584
26585         * tree-cfg.c (verify_gimple_assign_binary):
26586         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
26587         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
26588         (create_general_new_stmt): Note that this function is broken.
26589
26590 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26591
26592         * common.opt (fhelp): Add Var(help_flag).
26593         * gcc-plugin.h (plugin_info): Add help.
26594         * plugin.c (plugin_name_args): Add help.
26595         (register_plugin_info): Set plugin->help.
26596         (print_help_one_plugin): New.
26597         (print_plugins_help): New.
26598         * plugin.h (print_plugins_help): New.
26599         * toplev.c (toplev_main): Call print_plugins_help if needed.
26600
26601 2009-04-16  Richard Guenther  <rguenther@suse.de>
26602
26603         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
26604         (gimple_ior_addresses_taken_1): New function.
26605         (gimple_ior_addresses_taken): Likewise.
26606         * gimple.h (struct gimple_statement_with_ops_base): Remove
26607         addresses_taken member.
26608         (gimple_ior_addresses_taken): Declare.
26609         (gimple_addresses_taken, gimple_addresses_taken_ptr,
26610         gimple_set_addresses_taken): Remove.
26611         * ipa-reference.c (mark_address): New function.
26612         (scan_stmt_for_static_refs): Use it for marking addresses taken.
26613         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
26614         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
26615         (gimple_add_to_addresses_taken): Remove.
26616         (get_tmr_operands): Call mark_address_taken.
26617         (get_asm_expr_operands): Likewise.
26618         (get_expr_operands): Likewise.
26619         (build_ssa_operands): Do not clear the addresses_taken bitmap.
26620         (free_stmt_operands): Do not free it.
26621         * tree-ssa.c (delete_tree_ssa): Likewise.
26622         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
26623
26624 2009-04-16  Richard Guenther  <rguenther@suse.de>
26625
26626         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
26627         (walk_stmt_load_store_ops): Likewise.
26628         * gimple.c (get_base_loadstore): New function.
26629         (walk_stmt_load_store_addr_ops): Likewise.
26630         (walk_stmt_load_store_ops): Likewise.
26631         * ipa-pure-const.c (check_op): Simplify.
26632         (check_load, check_store): New functions.
26633         (check_stmt): Use walk_stmt_load_store_ops.
26634         * ipa-reference.c (mark_load): Adjust signature.
26635         (mark_store): Likewise.
26636         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
26637
26638 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26639
26640         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
26641         (plugin_info): New.
26642         * opts.c (common_handle_option): Don't call print_version.
26643         * plugin.c (plugin_name_args): Add version.
26644         (register_plugin_info): New.
26645         (register_callback): Handle PLUGIN_INFO.
26646         (try_init_one_plugin): New.
26647         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
26648         if failed to init.
26649         (finalize_one_plugin): New.
26650         (finalize_plugins): New.
26651         (print_one_plugin): New.
26652         (print_plugins_versions): New.
26653         * plugin.h (print_plugins_versions): New.
26654         (finalize_plugins): New.
26655         * toplev.c (compile_file): Don't call initialize_plugins.
26656         (print_version): Call print_plugins_versions.
26657         (toplev_main): Call initialize_plugins. Print version if needed.
26658         Call finalize_plugins.
26659
26660 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26661
26662         * common.opt (fversion): New.
26663         * gcc.c (print_version): New.
26664         (process_command): Don't print the version. Just set print_version.
26665         (main): Print version. Call subprocesses if print_version and
26666         verbose_flag are set.
26667         * opts.c (common_handle_option): Handle OPT_fversion.
26668
26669 2009-04-16  Richard Guenther  <rguenther@suse.de>
26670             Ira Rosen  <irar@il.ibm.com>
26671
26672         PR tree-optimization/39698
26673         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
26674         type of the reduction variable.  Only generate the def if
26675         it is needed.
26676
26677         * omp-low.c (expand_omp_for_generic): When converting to a pointer
26678         make sure to first convert to an integer of the same precision.
26679         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
26680         the type of the evolution correctly in computing the new
26681         induction variable base.
26682
26683 2009-04-16  Richard Guenther  <rguenther@suse.de>
26684
26685         PR middle-end/39625
26686         * tree-cfg.c (make_blocks): Split statements with to-be
26687         abnormal SSA names on the lhs.
26688
26689 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
26690
26691         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
26692         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
26693         * c-typeck.c (really_start_incremental_init): Likewise.
26694         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
26695         (TARGET_INITIALIZER): Remove it.
26696         * target.h (struct target): Remove vector_opaque_p.
26697         * tree.c (build_opaque_vector_type): New.
26698         * tree.h (TYPE_VECTOR_OPAQUE): New.
26699         (build_opaque_vector_type): Declare.
26700         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
26701         * config/rs6000/rs6000.c (build_opaque_vector_type,
26702         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
26703         (rs6000_init_builtins): Use build_opaque_vector_type for
26704         opaque_V4SI_type_node.
26705
26706 2009-04-15  Catherine Moore  <clm@codesourcery.com>
26707
26708         * debug.h (set_name):  Declare.
26709         * dwarf2out.c (dwarf2out_set_name): Declare.
26710         (dwarf2_debug_hooks): Add set_name.
26711         (find_AT_string): New.
26712         (add_AT_string): Call find_AT_string.
26713         (dwarf2out_set_name): New.
26714         * cp/decl.c (grokdeclarator): Call set_name.
26715         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
26716         * debug.c (do_nothing_debug_hooks):  Likewise.
26717         * dbxout.c (dbx_debug_hooks): Likewise.
26718         * sdbout.c (sdb_debug_hooks): Likewise.
26719
26720 2009-04-15  Michael Eager  <eager@eagercon.com>
26721
26722         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
26723         reg for single-precision FPU.
26724         * config/rs6000/rs6000.md (movsi_internal1): Only for
26725         !TARGET_SINGLE_FPU.
26726         (movsi_internal1_single): New. Add pattern to move SI values to/from
26727         single-precision FP regs.
26728
26729 2009-04-15  Richard Guenther  <rguenther@suse.de>
26730
26731         * omp-low.c (lower_rec_input_clauses): Build correct address
26732         expressions.
26733         (expand_omp_for_generic): Fix multiplication type.
26734         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
26735         (generate_memset_zero): Fix types.
26736         * tree-profile.c (prepare_instrumented_value): Correctly
26737         widen a pointer.
26738
26739 2009-04-15  Ian Lance Taylor  <iant@google.com>
26740
26741         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
26742         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
26743         for -Wall and for -Wc++-compat.
26744         (c_common_post_options): For C++, set warn_enum_compare if not
26745         already set.
26746         * c-tree.h (struct c_expr): Add field original_type.
26747         (build_external_ref): Update declaration.
26748         * c-parser.c (c_parser_braced_init): Set original_type.
26749         (c_parser_initelt): Likewise.
26750         (c_parser_expr_no_commas): Likewise.
26751         (c_parser_conditional_expression): Likewise.
26752         (c_parser_cast_expression): Likewise.
26753         (c_parser_unary_expression): Likewise.  Pull setting of
26754         original_code to top of function.
26755         (c_parser_sizeof_expression): Set original_type.
26756         (c_parser_alignof_expression): Likewise.
26757         (c_parser_postfix_expression): Likewise.  Pull setting of
26758         original_code to top of function.
26759         (c_parser_postfix_expression_after_paren_type): Set original_type.
26760         (c_parser_postfix_expression_after_primary): Likewise.
26761         (c_parser_expression): Likewise.
26762         * c-typeck.c (build_external_ref): Add type parameter.  Change all
26763         callers.
26764         (c_expr_sizeof_expr): Set original_type field.
26765         (parser_build_unary_op): Likewise.
26766         (parser_build_binary_op): Likewise.  Optionally warn about
26767         comparisons of enums of different types.
26768         (digest_init): Set original_type field.
26769         (really_start_incremental_init): Likewise.
26770         (push_init_level, pop_init_level): Likewise.
26771         * doc/invoke.texi (Warning Options): -Wenum-compare now
26772         supported in C.
26773
26774 2009-04-15  Richard Guenther  <rguenther@suse.de>
26775
26776         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
26777         out a necessary conversion.
26778         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
26779         names we didn't value number.
26780         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
26781
26782 2009-04-15  Richard Guenther  <rguenther@suse.de>
26783
26784         PR tree-optimization/39764
26785         * tree-ssa-ccp.c (get_value): Canonicalize value with
26786         canonicalize_float_value.
26787
26788 2009-04-15  Jan Hubicka  <jh@suse.cz>
26789
26790         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
26791         Wrong version of patch.
26792
26793 2009-04-15  Jan Hubicka  <jh@suse.cz>
26794
26795         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
26796
26797 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
26798
26799         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
26800         our distinct integral and vector types.
26801
26802 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
26803
26804         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
26805         * init.c (build_vtbl_address): Remove call to assemble_external.
26806
26807 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
26808
26809         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
26810         output for other floating point modes.
26811
26812 2009-04-14  Diego Novillo  <dnovillo@google.com>
26813
26814         * diagnostic.c (diagnostic_report_diagnostic): Do not
26815         warn about loaded plugins for DK_ERROR and DK_WARNING.
26816         * c-decl.c (declspecs_add_type): Move call to
26817         invoke_plugin_callbacks ...
26818         * c-parser.c (c_parser_declspecs): ... here.
26819         * plugin.c (dump_active_plugins): Tidy output.
26820
26821 2009-04-14  Diego Novillo  <dnovillo@google.com>
26822             Le-Chun Wu  <lcwu@google.com>
26823
26824         * configure.ac: Add --enable-plugin support.
26825         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
26826         * Makefile.in (PLUGIN_H): Define.
26827         Export ENABLE_PLUGIN and GMPINC to site.exp.
26828         Add PLUGINLIBS to link command.
26829         Add/modify dependencies for plugin.o and files including plugin.h.
26830         (plugin.o): New.
26831         * config.in: Regenerate.
26832
26833         * opts.c (common_handle_option): Handle OPT_fplugin_ and
26834         OPT_fplugin_arg_.
26835
26836 2009-04-14  Le-Chun Wu  <lcwu@google.com>
26837
26838         * tree-pass.h (register_one_dump_file): Add a prototype for
26839         register_one_dump_file.
26840         * toplev.c (compile_file): Call initialize_plugins.
26841         (do_compile): Call invoke_plugin_callbacks.
26842         (toplev_main): Call invoke_plugin_callbacks.
26843         * common.opt: Add -fplugin= and -fplugin-arg-.
26844         * gcc-plugin.h: New public header file for plugins to include.
26845         * plugin.c: New source file.
26846         * plugin.h: New internal header file.
26847         * passes.c (register_one_dump_file): Make it external.
26848
26849         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
26850
26851 2009-04-14  Diego Novillo  <dnovillo@google.com>
26852
26853         * doc/plugins.texi: New.
26854         * doc/gccint.texi: Add reference to Plugins chapter.
26855         * doc/invoke.texi: Document -fplugin and -fplugin-arg
26856         * diagnostic.c (diagnostic_report_diagnostic): Warn about
26857         loaded plugins, if any.
26858         * timevar.def (TV_PLUGIN_INIT): Define.
26859         (TV_PLUGIN_RUN): Define.
26860         * plugin.c: Include timevar.h
26861         (plugins_active_p): New.
26862         (dump_active_plugins): New.
26863         (debug_active_plugins): New.
26864
26865 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
26866
26867         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
26868         library paths.
26869         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
26870
26871 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
26872
26873         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
26874         the same as a minus without a shift.
26875
26876 2009-04-14  Nick Clifton  <nickc@redhat.com>
26877
26878         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
26879         comparisons with small integers will always produce a short
26880         branch.
26881
26882 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
26883
26884         Merge:
26885         2008-12-19  Diego Novillo  <dnovillo@google.com>
26886
26887         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
26888
26889 2009-04-14  Richard Guenther  <rguenther@suse.de>
26890
26891         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
26892         verification.
26893         (verify_gimple_assign_binary): Likewise.  Handle shifts and
26894         rotates correctly.
26895         (verify_gimple_phi): Print the mismatched argument position.
26896         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26897         Fix types.
26898         (vect_update_init_of_dr): Likewise.
26899         * matrix-reorg.c (transform_access_sites): Do what the
26900         comment suggests.
26901         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
26902
26903 2009-04-13  Michael Eager  <eager@eagercon.com>
26904
26905         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
26906         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
26907         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
26908         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
26909         remove duplicate config
26910
26911 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
26912
26913         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
26914         file_name:line_number type locator of the call site.
26915
26916 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
26917
26918         * genautomata.c: Put blank after comma.
26919         (automaton_decls): New.
26920         (struct unit_usage): Add comments to member next.
26921         (store_alt_unit_usage): Keep the list ordered.
26922         (unit_present_on_list_p, equal_alternatives_p): New.
26923         (check_regexp_units_distribution): Check units distribution
26924         correctness correctly.
26925         (main): Don't write automata if error is found.  Return correct
26926         exit code.
26927
26928         * config/m68k/cf.md (cfv4_ds): Remove.
26929         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
26930         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
26931
26932         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
26933         power4-load-ext, power4-store, power4-store-update,
26934         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
26935         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
26936         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
26937         power4-sqrt, power4-isync): Modify reservation to make correct
26938         unit distribution to automata.
26939
26940         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
26941         power5-store-update, power5-two, power5-three, power5-lmul,
26942         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
26943
26944 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
26945
26946         * except.c (pass_set_nothrow_function_flags): Set name and add
26947         TODO_dump_func.
26948         (set_nothrow_function_flags): Mention in the dump file when
26949         changing a function to nothrow.
26950
26951 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
26952
26953         PR/39066
26954         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
26955         instead of unsigned long.
26956
26957 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26958
26959         * config/arm/arm.c (return_used_this_function): Remove.
26960         (arm_output_function_prologue): Remove use of
26961         return_used_this_function.
26962         (output_return_instruction): Replace use of
26963         return_used_this_function
26964         by cfun->machine->return_used_this_function.
26965         (arm_output_epilogue): Likewise.
26966         (arm_output_function_epilogue): Likewise.
26967         (thumb_unexpanded_epilogue): Likewise.
26968         * config/arm/arm.h (struct machine_function):
26969         New member return_used_this_function.
26970
26971 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
26972
26973         * doc/install.texi: Correct description of default directory for
26974         --with-gxx-include-dir.
26975
26976 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
26977
26978         * fold-const.c (build_range_check): Properly deal with enumeral and
26979         boolean base types.
26980
26981 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
26982
26983         * doc/invoke.texi (max_gcse_passes): Remove documentation.
26984         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
26985         * params.h (MAX_GCSE_PASSES): Remove.
26986         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
26987         in sequence.  Remove ability to run multiple passes.
26988         (bypass_jumps): Report run as third CPROP pass.
26989
26990 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
26991
26992         PR middle-end/39651
26993         * except.c (can_throw_external): Look at each insn in a SEQUENCE
26994         when deciding whether the whole SEQUENCE can throw.
26995
26996 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
26997
26998         PR target/39740
26999         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
27000         offseted label references.
27001
27002 2009-04-11  Jan Hubicka  <jh@suse.cz>
27003
27004         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
27005
27006 2009-04-11  Richard Guenther  <rguenther@suse.de>
27007
27008         PR middle-end/39732
27009         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
27010         return variables as TREE_ADDRESSABLE.
27011
27012 2009-04-11  Richard Guenther  <rguenther@suse.de>
27013
27014         PR tree-optimization/39713
27015         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
27016         reference trees have SSA_NAME operands.
27017
27018 2009-04-11  Richard Guenther  <rguenther@suse.de>
27019
27020         PR c/39712
27021         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
27022         address expressions.
27023
27024 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
27025
27026         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
27027         match changes in Cygwin 1.7
27028         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
27029         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
27030
27031 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27032
27033         PR tree-optimization/39701
27034         * doc/invoke.texi (Optimization Options): Document change in
27035         meaning and initialization of -fdelete-null-pointer-checks.
27036
27037 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27038
27039         PR middle-end/39701
27040         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
27041
27042         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
27043         here.
27044
27045         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
27046
27047 2009-04-10  Chao-ying Fu  <fu@mips.com>
27048
27049         * doc/tm.texi (Instruction Output): Document
27050         TARGET_ASM_FINAL_POSTSCAN_INSN.
27051         * target.h (final_postscan_insn): New field in asm_out.
27052         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27053         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
27054         * final.c (final_scan_insn): Call
27055         targetm.asm_out.final_postscan_insn after outputting
27056         an asm macro and a normal instruction.
27057
27058         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
27059         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
27060         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
27061         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
27062         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27063
27064 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27065
27066         PR middle-end/39701
27067         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
27068         variables as non-NULL even with -fdelete-null-pointer-checks.
27069
27070 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27071
27072         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
27073
27074 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
27075
27076         PR target/39678
27077         * config/i386/i386.c (classify_argument): Handle SCmode with
27078         (bit_offset % 64) != 0.
27079
27080 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
27081
27082         * doc/invoke.texi (Optimize Options): Add cross-reference to
27083         -Q --help=optimizers examples.
27084
27085 2009-04-10  Ben Elliston  <bje@au.ibm.com>
27086
27087         PR target/36800
27088         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
27089         regalign for the reg == fpr and TDmode case.
27090
27091 2009-04-09  David Ayers  <ayers@fsfe.org>
27092
27093         PR objc/29200
27094         * objc/objc-act.c (warn_with_method): Remove helper function.
27095         (check_duplicates): Call warning and inform directly.
27096         (really_start_method): Likewise.
27097
27098 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27099
27100         * expmed.c (expand_divmod): Always use a comparison for a division
27101         by a large unsigned integer.
27102
27103         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
27104         for things others than variables or functions as nonzero.
27105
27106 2009-04-09  Nick Clifton  <nickc@redhat.com>
27107
27108         * unwind-compat.c: Change copyright header to refer to version
27109         3 of the GNU General Public License with version 3.1 of the
27110         GCC Runtime Library Exception and to point readers at the
27111         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
27112         * config/alpha/crtfastmath.c: Likewise.
27113         * config/alpha/linux-unwind.h: Likewise.
27114         * config/alpha/qrnnd.asm: Likewise.
27115         * config/alpha/vms-crt0-64.c: Likewise.
27116         * config/alpha/vms-crt0.c: Likewise.
27117         * config/alpha/vms-dwarf2.asm: Likewise.
27118         * config/alpha/vms-dwarf2eh.asm: Likewise.
27119         * config/alpha/vms-psxcrt0-64.c: Likewise.
27120         * config/alpha/vms-psxcrt0.c: Likewise.
27121         * config/alpha/vms_tramp.asm: Likewise.
27122         * config/arc/initfini.c: Likewise.
27123         * config/arc/lib1funcs.asm: Likewise.
27124         * config/arm/bpabi-v6m.S: Likewise.
27125         * config/arm/bpabi.S: Likewise.
27126         * config/arm/bpabi.c: Likewise.
27127         * config/arm/crti.asm: Likewise.
27128         * config/arm/crtn.asm: Likewise.
27129         * config/arm/ieee754-df.S: Likewise.
27130         * config/arm/ieee754-sf.S: Likewise.
27131         * config/arm/lib1funcs.asm: Likewise.
27132         * config/arm/libunwind.S: Likewise.
27133         * config/arm/linux-atomic.c: Likewise.
27134         * config/arm/mmintrin.h: Likewise.
27135         * config/arm/pr-support.c: Likewise.
27136         * config/arm/unaligned-funcs.c: Likewise.
27137         * config/arm/unwind-arm.c: Likewise.
27138         * config/arm/unwind-arm.h: Likewise.
27139         * config/avr/libgcc.S: Likewise.
27140         * config/bfin/crti.s: Likewise.
27141         * config/bfin/crtlibid.s: Likewise.
27142         * config/bfin/crtn.s: Likewise.
27143         * config/bfin/lib1funcs.asm: Likewise.
27144         * config/bfin/linux-unwind.h: Likewise.
27145         * config/cris/arit.c: Likewise.
27146         * config/cris/cris_abi_symbol.c: Likewise.
27147         * config/darwin-64.c: Likewise.
27148         * config/darwin-crt2.c: Likewise.
27149         * config/darwin-crt3.c: Likewise.
27150         * config/darwin.h: Likewise.
27151         * config/dbxelf.h: Likewise.
27152         * config/dfp-bit.c: Likewise.
27153         * config/dfp-bit.h: Likewise.
27154         * config/elfos.h: Likewise.
27155         * config/fixed-bit.c: Likewise.
27156         * config/fixed-bit.h: Likewise.
27157         * config/fp-bit.c: Likewise.
27158         * config/fp-bit.h: Likewise.
27159         * config/fr30/crti.asm: Likewise.
27160         * config/fr30/crtn.asm: Likewise.
27161         * config/fr30/lib1funcs.asm: Likewise.
27162         * config/freebsd-spec.h: Likewise.
27163         * config/frv/cmovd.c: Likewise.
27164         * config/frv/cmovh.c: Likewise.
27165         * config/frv/cmovw.c: Likewise.
27166         * config/frv/frvbegin.c: Likewise.
27167         * config/frv/frvend.c: Likewise.
27168         * config/frv/lib1funcs.asm: Likewise.
27169         * config/glibc-stdint.h: Likewise.
27170         * config/h8300/clzhi2.c: Likewise.
27171         * config/h8300/crti.asm: Likewise.
27172         * config/h8300/crtn.asm: Likewise.
27173         * config/h8300/ctzhi2.c: Likewise.
27174         * config/h8300/fixunssfsi.c: Likewise.
27175         * config/h8300/lib1funcs.asm: Likewise.
27176         * config/h8300/parityhi2.c: Likewise.
27177         * config/h8300/popcounthi2.c: Likewise.
27178         * config/i386/ammintrin.h: Likewise.
27179         * config/i386/att.h: Likewise.
27180         * config/i386/avxintrin.h: Likewise.
27181         * config/i386/biarch64.h: Likewise.
27182         * config/i386/bmmintrin.h: Likewise.
27183         * config/i386/cpuid.h: Likewise.
27184         * config/i386/cross-stdarg.h: Likewise.
27185         * config/i386/crtfastmath.c: Likewise.
27186         * config/i386/crtprec.c: Likewise.
27187         * config/i386/cygming-crtbegin.c: Likewise.
27188         * config/i386/cygming-crtend.c: Likewise.
27189         * config/i386/cygwin.asm: Likewise.
27190         * config/i386/emmintrin.h: Likewise.
27191         * config/i386/gmm_malloc.h: Likewise.
27192         * config/i386/gthr-win32.c: Likewise.
27193         * config/i386/i386.h: Likewise.
27194         * config/i386/immintrin.h: Likewise.
27195         * config/i386/linux-unwind.h: Likewise.
27196         * config/i386/linux64.h: Likewise.
27197         * config/i386/mm3dnow.h: Likewise.
27198         * config/i386/mmintrin-common.h: Likewise.
27199         * config/i386/mmintrin.h: Likewise.
27200         * config/i386/nmmintrin.h: Likewise.
27201         * config/i386/pmm_malloc.h: Likewise.
27202         * config/i386/pmmintrin.h: Likewise.
27203         * config/i386/smmintrin.h: Likewise.
27204         * config/i386/sol2-c1.asm: Likewise.
27205         * config/i386/sol2-ci.asm: Likewise.
27206         * config/i386/sol2-cn.asm: Likewise.
27207         * config/i386/sol2-gc1.asm: Likewise.
27208         * config/i386/tmmintrin.h: Likewise.
27209         * config/i386/unix.h: Likewise.
27210         * config/i386/w32-unwind.h: Likewise.
27211         * config/i386/wmmintrin.h: Likewise.
27212         * config/i386/x86-64.h: Likewise.
27213         * config/i386/x86intrin.h: Likewise.
27214         * config/i386/xmmintrin.h: Likewise.
27215         * config/ia64/crtbegin.asm: Likewise.
27216         * config/ia64/crtend.asm: Likewise.
27217         * config/ia64/crtfastmath.c: Likewise.
27218         * config/ia64/crti.asm: Likewise.
27219         * config/ia64/crtn.asm: Likewise.
27220         * config/ia64/fde-glibc.c: Likewise.
27221         * config/ia64/lib1funcs.asm: Likewise.
27222         * config/ia64/linux-unwind.h: Likewise.
27223         * config/ia64/quadlib.c: Likewise.
27224         * config/ia64/unwind-ia64.c: Likewise.
27225         * config/linux.h: Likewise.
27226         * config/m32c/m32c-lib1.S: Likewise.
27227         * config/m32c/m32c-lib2-trapv.c: Likewise.
27228         * config/m32c/m32c-lib2.c: Likewise.
27229         * config/m32r/initfini.c: Likewise.
27230         * config/m68hc11/larith.asm: Likewise.
27231         * config/m68hc11/m68hc11-crt0.S: Likewise.
27232         * config/m68k/cf.md: Likewise.
27233         * config/m68k/crti.s: Likewise.
27234         * config/m68k/crtn.s: Likewise.
27235         * config/m68k/lb1sf68.asm: Likewise.
27236         * config/m68k/linux-unwind.h: Likewise.
27237         * config/mcore/crti.asm: Likewise.
27238         * config/mcore/crtn.asm: Likewise.
27239         * config/mcore/lib1.asm: Likewise.
27240         * config/mips/linux-unwind.h: Likewise.
27241         * config/mips/loongson.h: Likewise.
27242         * config/mips/mips16.S: Likewise.
27243         * config/mmix/crti.asm: Likewise.
27244         * config/mmix/crtn.asm: Likewise.
27245         * config/pa/fptr.c: Likewise.
27246         * config/pa/hpux-unwind.h: Likewise.
27247         * config/pa/lib2funcs.asm: Likewise.
27248         * config/pa/linux-atomic.c: Likewise.
27249         * config/pa/linux-unwind.h: Likewise.
27250         * config/pa/milli64.S: Likewise.
27251         * config/pa/quadlib.c: Likewise.
27252         * config/pa/stublib.c: Likewise.
27253         * config/picochip/libgccExtras/adddi3.asm: Likewise.
27254         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
27255         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
27256         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
27257         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
27258         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
27259         * config/picochip/libgccExtras/divmod15.asm: Likewise.
27260         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
27261         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
27262         * config/picochip/libgccExtras/longjmp.asm: Likewise.
27263         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
27264         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
27265         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
27266         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
27267         * config/picochip/libgccExtras/setjmp.asm: Likewise.
27268         * config/picochip/libgccExtras/subdi3.asm: Likewise.
27269         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
27270         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
27271         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
27272         * config/rs6000/750cl.h: Likewise.
27273         * config/rs6000/altivec.h: Likewise.
27274         * config/rs6000/biarch64.h: Likewise.
27275         * config/rs6000/crtresfpr.asm: Likewise.
27276         * config/rs6000/crtresgpr.asm: Likewise.
27277         * config/rs6000/crtresxfpr.asm: Likewise.
27278         * config/rs6000/crtresxgpr.asm: Likewise.
27279         * config/rs6000/crtsavfpr.asm: Likewise.
27280         * config/rs6000/crtsavgpr.asm: Likewise.
27281         * config/rs6000/darwin-asm.h: Likewise.
27282         * config/rs6000/darwin-fallback.c: Likewise.
27283         * config/rs6000/darwin-fpsave.asm: Likewise.
27284         * config/rs6000/darwin-ldouble.c: Likewise.
27285         * config/rs6000/darwin-tramp.asm: Likewise.
27286         * config/rs6000/darwin-unwind.h: Likewise.
27287         * config/rs6000/darwin-vecsave.asm: Likewise.
27288         * config/rs6000/darwin-world.asm: Likewise.
27289         * config/rs6000/e500crtres32gpr.asm: Likewise.
27290         * config/rs6000/e500crtres64gpr.asm: Likewise.
27291         * config/rs6000/e500crtres64gprctr.asm: Likewise.
27292         * config/rs6000/e500crtrest32gpr.asm: Likewise.
27293         * config/rs6000/e500crtrest64gpr.asm: Likewise.
27294         * config/rs6000/e500crtresx32gpr.asm: Likewise.
27295         * config/rs6000/e500crtresx64gpr.asm: Likewise.
27296         * config/rs6000/e500crtsav32gpr.asm: Likewise.
27297         * config/rs6000/e500crtsav64gpr.asm: Likewise.
27298         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
27299         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
27300         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
27301         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
27302         * config/rs6000/eabi-ci.asm: Likewise.
27303         * config/rs6000/eabi-cn.asm: Likewise.
27304         * config/rs6000/eabi.asm: Likewise.
27305         * config/rs6000/linux-unwind.h: Likewise.
27306         * config/rs6000/linux64.h: Likewise.
27307         * config/rs6000/paired.h: Likewise.
27308         * config/rs6000/paired.md: Likewise.
27309         * config/rs6000/ppc64-fp.c: Likewise.
27310         * config/rs6000/ppu_intrinsics.h: Likewise.
27311         * config/rs6000/rs6000.h: Likewise.
27312         * config/rs6000/si2vmx.h: Likewise.
27313         * config/rs6000/sol-ci.asm: Likewise.
27314         * config/rs6000/sol-cn.asm: Likewise.
27315         * config/rs6000/spe.h: Likewise.
27316         * config/rs6000/spu2vmx.h: Likewise.
27317         * config/rs6000/sysv4.h: Likewise.
27318         * config/rs6000/tramp.asm: Likewise.
27319         * config/rs6000/vec_types.h: Likewise.
27320         * config/s390/linux-unwind.h: Likewise.
27321         * config/s390/tpf-unwind.h: Likewise.
27322         * config/score/crti.asm: Likewise.
27323         * config/score/crtn.asm: Likewise.
27324         * config/sh/crt1.asm: Likewise.
27325         * config/sh/crti.asm: Likewise.
27326         * config/sh/crtn.asm: Likewise.
27327         * config/sh/divtab-sh4-300.c: Likewise.
27328         * config/sh/divtab-sh4.c: Likewise.
27329         * config/sh/divtab.c: Likewise.
27330         * config/sh/lib1funcs-4-300.asm: Likewise.
27331         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
27332         * config/sh/lib1funcs.asm: Likewise.
27333         * config/sh/lib1funcs.h: Likewise.
27334         * config/sh/linux-atomic.asm: Likewise.
27335         * config/sh/linux-unwind.h: Likewise.
27336         * config/sh/shmedia.h: Likewise.
27337         * config/sh/sshmedia.h: Likewise.
27338         * config/sh/ushmedia.h: Likewise.
27339         * config/sparc/crtfastmath.c: Likewise.
27340         * config/sparc/linux-unwind.h: Likewise.
27341         * config/sparc/sol2-c1.asm: Likewise.
27342         * config/sparc/sol2-ci.asm: Likewise.
27343         * config/sparc/sol2-cn.asm: Likewise.
27344         * config/spu/divmodti4.c: Likewise.
27345         * config/spu/divv2df3.c: Likewise.
27346         * config/spu/float_disf.c: Likewise.
27347         * config/spu/float_unsdidf.c: Likewise.
27348         * config/spu/float_unsdisf.c: Likewise.
27349         * config/spu/float_unssidf.c: Likewise.
27350         * config/spu/mfc_multi_tag_release.c: Likewise.
27351         * config/spu/mfc_multi_tag_reserve.c: Likewise.
27352         * config/spu/mfc_tag_release.c: Likewise.
27353         * config/spu/mfc_tag_reserve.c: Likewise.
27354         * config/spu/mfc_tag_table.c: Likewise.
27355         * config/spu/multi3.c: Likewise.
27356         * config/spu/spu_internals.h: Likewise.
27357         * config/spu/spu_intrinsics.h: Likewise.
27358         * config/spu/spu_mfcio.h: Likewise.
27359         * config/spu/vec_types.h: Likewise.
27360         * config/spu/vmx2spu.h: Likewise.
27361         * config/stormy16/stormy16-lib2.c: Likewise.
27362         * config/svr4.h: Likewise.
27363         * config/sync.c: Likewise.
27364         * config/v850/lib1funcs.asm: Likewise.
27365         * config/vxlib-tls.c: Likewise.
27366         * config/vxlib.c: Likewise.
27367         * config/vxworks-dummy.h: Likewise.
27368         * config/xtensa/crti.asm: Likewise.
27369         * config/xtensa/crtn.asm: Likewise.
27370         * config/xtensa/ieee754-df.S: Likewise.
27371         * config/xtensa/ieee754-sf.S: Likewise.
27372         * config/xtensa/lib1funcs.asm: Likewise.
27373         * config/xtensa/lib2funcs.S: Likewise.
27374         * config/xtensa/linux-unwind.h: Likewise.
27375         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
27376         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
27377         * coretypes.h: Likewise.
27378         * crtstuff.c: Likewise.
27379         * defaults.h: Likewise.
27380         * dwarf2.h: Likewise.
27381         * emutls.c: Likewise.
27382         * gbl-ctors.h: Likewise.
27383         * gcov-io.h: Likewise.
27384         * ginclude/float.h: Likewise.
27385         * ginclude/iso646.h: Likewise.
27386         * ginclude/stdarg.h: Likewise.
27387         * ginclude/stdbool.h: Likewise.
27388         * ginclude/stddef.h: Likewise.
27389         * ginclude/stdfix.h: Likewise.
27390         * ginclude/stdint-gcc.h: Likewise.
27391         * ginclude/tgmath.h: Likewise.
27392         * gthr-aix.h: Likewise.
27393         * gthr-dce.h: Likewise.
27394         * gthr-gnat.c: Likewise.
27395         * gthr-gnat.h: Likewise.
27396         * gthr-lynx.h: Likewise.
27397         * gthr-mipssde.h: Likewise.
27398         * gthr-nks.h: Likewise.
27399         * gthr-posix.c: Likewise.
27400         * gthr-posix.h: Likewise.
27401         * gthr-posix95.h: Likewise.
27402         * gthr-rtems.h: Likewise.
27403         * gthr-single.h: Likewise.
27404         * gthr-solaris.h: Likewise.
27405         * gthr-tpf.h: Likewise.
27406         * gthr-vxworks.h: Likewise.
27407         * gthr-win32.h: Likewise.
27408         * gthr.h: Likewise.
27409         * libgcc2.c: Likewise.
27410         * libgcc2.h: Likewise.
27411         * libgcov.c: Likewise.
27412         * tsystem.h: Likewise.
27413         * typeclass.h: Likewise.
27414         * unwind-c.c: Likewise.
27415         * unwind-compat.h: Likewise.
27416         * unwind-dw2-fde-compat.c: Likewise.
27417         * unwind-dw2-fde-darwin.c: Likewise.
27418         * unwind-dw2-fde-glibc.c: Likewise.
27419         * unwind-dw2-fde.c: Likewise.
27420         * unwind-dw2-fde.h: Likewise.
27421         * unwind-dw2.c: Likewise.
27422         * unwind-dw2.h: Likewise.
27423         * unwind-generic.h: Likewise.
27424         * unwind-pe.h: Likewise.
27425         * unwind-sjlj.c: Likewise.
27426         * unwind.inc: Likewise.
27427         * config/arm/neon-gen.ml: Change generated copyright header to
27428         refer to version 3 of the GNU General Public License with
27429         version 3.1 of the GCC Runtime Library Exception and to point
27430         readers at the COPYING3 and COPYING3.RUNTIME files and the
27431         FSF's license web page.
27432         * config/arm/arm_neon.h: Regenerate.
27433
27434 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
27435
27436         * config/cris/cris.md: Change copyright header to refer to version
27437         3 of the GNU General Public License.
27438         * doc/install.texi2html: Change copyright header to refer to version
27439         3 of the GNU General Public License and to point readers at the
27440         COPYING3 file and the FSF's license web page.
27441         * config/vax/linux.h: Likewise.
27442
27443 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27444
27445         * config/i386/i386.md (cmpcc): New.
27446         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
27447         (sync_compare_and_swap_cc*): Delete.
27448
27449         * config/s390/s390.c (s390_compare_emitted): Remove.
27450         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
27451         s390_compare_emitted used to be handled.  Assert that modes match.
27452         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
27453         refer to sync_compare_and_swap_ccsi.
27454         * config/s390/s390.h (s390_compare_emitted): Remove.
27455         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
27456         instead of s390_compare_emitted.
27457         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
27458         instead of s390_compare_emitted.
27459         * config/s390/s390.md (cmpcc): New.
27460         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
27461         CC_REGNUM, do not pretend it's set.
27462         (sync_compare_and_swap_cc*): Delete.
27463         * config/s390/predicates.md (cc_reg_operand): New.
27464
27465         * expr.c (sync_compare_and_swap_cc): Delete.
27466         * optabs.h (sync_compare_and_swap_cc): Delete.
27467         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
27468         is being used with can_compare_p.
27469         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
27470         (find_cc_set): New.
27471         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
27472         look for a MODE_CC set instead.  Use emit_store_flag.
27473         (expand_compare_and_swap_loop): Likewise, with some additional
27474         complication to avoid a force_reg when useless.  Use
27475         emit_cmp_and_jump_insns.
27476         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
27477         * doc/md.texi (sync_compare_and_swap_cc): Merge with
27478         sync_compare_and_swap documentation.
27479
27480 2009-04-09  Jan Hubicka  <jh@suse.cz>
27481
27482         * except.c (find_prev_try): Break out from ....
27483         (duplicate_eh_regions): ... here; properly update prev_try pointers
27484         when duplication part of tree.
27485         (dump_eh_tree): Improve dumping.
27486         (verify_eh_region): New.
27487         (verify_eh_tree): Use it.
27488
27489 2009-04-06  Richard Guenther  <rguenther@suse.de>
27490
27491         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
27492         &ARRAY addresses by adjusting their types and prepending
27493         a conversion.
27494         * tree-cfg.c (verify_gimple_assign_single): Verify that
27495         addresses are correct.
27496
27497 2009-04-09  Richard Guenther  <rguenther@suse.de>
27498
27499         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
27500         indices into an array reference if possible.
27501         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
27502         Fold POINTER_PLUS_EXPR statements with invariant address.
27503
27504 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
27505
27506         PR target/39634
27507         * config.gcc (powerpc64-*-linux*): Always build biarch.
27508
27509 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
27510
27511         PR c/39613
27512         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
27513         it and pedwarn if this results in an INTEGER_CST.
27514
27515 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27516
27517         * doc/install.texi: Update minimum GMP version.  Remove obsolete
27518         text in MPFR section.
27519
27520 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
27521
27522         * dwarf2out.c (class_scope_p): New static inline.
27523         (class_or_namespace_scope_p): Use it.
27524         (gen_variable_die): Use DW_TAG_member tag for static data member
27525         declarations instead of DW_TAG_variable.
27526
27527         PR middle-end/39573
27528         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
27529         variables.
27530
27531 2009-04-08  Richard Guenther  <rguenther@suse.de>
27532
27533         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
27534         valueize random data.
27535
27536 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
27537
27538         * config.gcc (aix tm_file):  Add aix-stdint.h.
27539         (aix tm clause use_gcc_stdint):  Set to wrap.
27540         * config/rs6000/aix-stdint.h:  New file.
27541
27542 2009-04-08  Richard Guenther  <rguenther@suse.de>
27543
27544         PR middle-end/36291
27545         * tree-dfa.c (add_referenced_var): Do not recurse into
27546         global initializers.
27547         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
27548         exposed variables.
27549         (fold_const_aggregate_ref): Likewise.
27550
27551 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27552
27553         * recog.c (ordered_comparison_operator): New.
27554         * gensupport.c (std_preds): Add it.
27555         * doc/md.texi (Machine-Independent Predicates): Document it.
27556
27557 2009-04-08  Jan Hubicka  <jh@suse.cz>
27558
27559         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
27560         * function.h (rtl_eh): Remove exception_handler_label_map.
27561         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
27562         remove_exception_handler_label, for_each_eh_label_1): Remove.
27563         (rtl_remove_unreachable_regions): Remove.
27564         (convert_from_eh_region_ranges): Do not remove unreachable regions.
27565         (find_exception_handler_labels): Don't build the hashtable.
27566         (maybe_remove_eh_handler): Remove.
27567         (for_each_eh_label): Rewrite to walk the tree.
27568         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
27569         * except.h (maybe_remove_eh_handler): Remove.
27570         * passes.c (init_optimization_passes): Schedule second EH cleanup
27571         before out-of-ssa.
27572         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
27573         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
27574
27575 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27576
27577         * genoutput.c (validate_optab_operands): New.
27578         (gen_insn, gen_expand): Call it.
27579
27580         * genflags.c (gen_insn): Detect misused iterators.
27581         (main): Pass line_no to gen_insn, exit with status 1 on error.
27582
27583         * genextract.c (line_no): Make global.
27584         (VEC_safe_set_locstr): Change assertion to error message.
27585         (main): Exit with status 1 on error.
27586
27587 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
27588
27589         PR c/39614
27590         PR c/39673
27591         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27592         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27593         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
27594         * c-convert.c (convert): Do not call fold on results of conversion
27595         functions when the result is a C_MAYBE_CONST_EXPR.
27596         * c-parser.c (c_parser_postfix_expression): Do not fold condition
27597         of __builtin_choose_expr.
27598         * c-typeck.c (remove_c_maybe_const_expr): New.
27599         (build_unary_op, build_conditional_expr, build_compound_expr,
27600         build_binary_op, c_objc_common_truthvalue_conversion): Call
27601         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
27602         integer operands.
27603
27604 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
27605
27606         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
27607         CODE to produce a new one. Add a prototype to use fold_convert_const
27608
27609 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
27610
27611         PR bootstrap/39660
27612         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
27613         mix declarations and code.
27614
27615 2009-04-08  Ben Elliston  <bje@au.ibm.com>
27616
27617         * gcc.c: Replace `CC' with `GCC' throughout.
27618
27619 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
27620
27621         * doc/invoke.texi: Document Atom support.
27622
27623 2009-04-07  Jason Merrill  <jason@redhat.com>
27624
27625         PR c++/25185
27626         * c-common.h, c-common.c: Add flag_pretty_templates.
27627         * c-opts.c (c_common_handle_option): Set it.
27628         * c.opt: Add -fno-pretty-templates.
27629         * doc/invoke.texi (C++ Dialect Options): Likewise.
27630
27631 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
27632
27633         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
27634         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
27635         (ia64_expand_builtin): Likewise.
27636
27637 2009-04-07  Martin Jambor  <mjambor@suse.cz>
27638
27639         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
27640         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
27641         ADDR_EXPRS are include too.
27642
27643 2009-04-07  Richard Guenther  <rguenther@suse.de>
27644
27645         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
27646         decls are only used if passes as parameters or if they are
27647         local statics and the call is not to a builtin.
27648         (call_may_clobber_ref_p_1): Likewise.
27649
27650 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27651
27652         * expr.c (do_store_flag): Remove last argument.  Simplify code
27653         to avoid duplication of tests already done by can_compare_p.
27654         (expand_expr_real_1): Adjust caller.
27655
27656 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27657
27658         * optabs.c (can_compare_p): Test the predicate of a
27659         cbranch and cstore pattern.
27660
27661 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27662
27663         * expr.c (convert_move): Use emit_store_flag instead of
27664         "emulating" it.
27665
27666 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27667
27668         * config/i386/i386.c (ix86_compare_emitted): Remove.
27669         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
27670         ix86_compare_op0 like ix86_compare_emitted used to be handled.
27671         * config/i386/i386.h (ix86_compare_emitted): Remove.
27672         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
27673         instead of ix86_compare_emitted.
27674         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
27675
27676 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
27677
27678         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
27679         Add t-sysroot-suffix to tmake_file.
27680         * config/print-sysroot-suffix.sh: New file.
27681         * config/t-sysroot-suffix: New file.
27682
27683 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27684
27685         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
27686         as the latter produces a warning when the target does not support
27687         infinity.
27688
27689 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27690
27691         * dfp.c: Replace type punning assignments with memcpy throughout.
27692         * Makefile.in (dfp.o-warn): Remove.
27693
27694 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
27695
27696         PR target/39634
27697         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
27698         Include soft-fp/t-softfp after rs6000/t-linux64.
27699
27700 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
27701
27702         * stor-layout.c (set_sizetype): Use the full precision of their
27703         machine mode for bitsize types.
27704
27705 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27706
27707         * config/i386/i386.md: Revert 2 accidental checkins.
27708
27709 2009-04-06  Joey Ye  <joey.ye@intel.com>
27710             Xuepeng Guo  <xuepeng.guo@intel.com>
27711             H.J. Lu  <hongjiu.lu@intel.com>
27712
27713         Atom pipeline model, tuning and insn selection.
27714         * config.gcc (atom): Add atom config options and target.
27715
27716         * config/i386/atom.md: New.
27717
27718         * config/i386/i386.c (atom_cost): New cost.
27719         (m_ATOM): New macro flag.
27720         (initial_ix86_tune_features): Set m_ATOM.
27721         (x86_accumulate_outgoing_args): Likewise.
27722         (x86_arch_always_fancy_math_387): Likewise.
27723         (processor_target): Add Atom cost.
27724         (cpu_names): Add Atom cpu name.
27725         (override_options): Set Atom ISA.
27726         (ix86_issue_rate): New case PROCESSOR_ATOM.
27727         (ix86_adjust_cost): Likewise.
27728
27729         * config/i386/i386.h (TARGET_ATOM): New target macro.
27730         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
27731         (TARGET_OPT_AGU): New target option.
27732         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
27733         (processor_type): Add PROCESSOR_ATOM.
27734
27735         * config/i386/i386.md (cpu): Add new value "atom".
27736         (use_carry, movu): New attr.
27737         (atom.md): Include atom.md.
27738         (adddi3_carry_rex64): Set attr "use_carry".
27739         (addqi3_carry): Likewise.
27740         (addhi3_carry): Likewise.
27741         (addsi3_carry): Likewise.
27742         (*addsi3_carry_zext): Likewise.
27743         (subdi3_carry_rex64): Likewise.
27744         (subqi3_carry): Likewise.
27745         (subhi3_carry): Likewise.
27746         (subsi3_carry): Likewise.
27747         (x86_movdicc_0_m1_rex64): Likewise.
27748         (*x86_movdicc_0_m1_se): Likewise.
27749         (x86_movsicc_0_m1): Likewise.
27750         (*x86_movsicc_0_m1_se): Likewise.
27751         (*adddi_1_rex64): Emit add insn as much as possible.
27752         (*addsi_1): Likewise.
27753         (return_internal): Set atom_unit.
27754         (return_internal_long): Likewise.
27755         (return_pop_internal): Likewise.
27756         (*rcpsf2_sse): Set atom_sse_attr attr.
27757         (*qrt<mode>2_sse): Likewise.
27758         (*prefetch_sse): Likewise.
27759
27760         * config/i386/i386-c.c (ix86_target_macros_internal): New case
27761         PROCESSOR_ATOM.
27762         (ix86_target_macros_internal): Likewise.
27763
27764         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
27765         (*prefetch_sse_rex): Likewise.
27766         (sse_rcpv4sf2): Likewise.
27767         (sse_vmrcpv4sf2): Likewise.
27768         (sse_sqrtv4sf2): Likewise.
27769         (<sse>_vmsqrt<mode>2): Likewise.
27770         (sse_ldmxcsr): Likewise.
27771         (sse_stmxcsr): Likewise.
27772         (*sse_sfence): Likewise.
27773         (sse2_clflush): Likewise.
27774         (*sse2_mfence): Likewise.
27775         (*sse2_lfence): Likewise.
27776         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
27777         (<sse>_movup<ssemodesuffixf2c>): Likewise.
27778         (avx_movdqu<avxmodesuffix>): Likewise.
27779         (avx_lddqu<avxmodesuffix>): Likewise.
27780         (sse2_movntv2di): Change attr "type" to "ssemov".
27781         (sse2_movntsi): Likewise.
27782         (rsqrtv8sf2): Change attr "type" to "sseadd".
27783         (sse3_addsubv2df3): Set attr "atom_unit".
27784         (sse3_h<plusminus_insn>v4sf3): Likewise.
27785         (*sse2_pmaddwd): Likewise.
27786         (*vec_extractv2di_1_rex64): Likewise.
27787         (*vec_extractv2di_1_avx): Likewise.
27788         (sse2_psadbw): Likewise.
27789         (ssse3_phaddwv8hi3): Likewise.
27790         (ssse3_phaddwv4hi3): Likewise.
27791         (ssse3_phadddv4si3): Likewise.
27792         (ssse3_phadddv2si3): Likewise.
27793         (ssse3_phaddswv8hi3): Likewise.
27794         (ssse3_phaddswv4hi3): Likewise.
27795         (ssse3_phsubwv8hi3): Likewise.
27796         (ssse3_phsubwv4hi3): Likewise.
27797         (ssse3_phsubdv4si3): Likewise.
27798         (ssse3_phsubdv2si3): Likewise.
27799         (ssse3_phsubswv8hi3): Likewise.
27800         (ssse3_phsubswv4hi3): Likewise.
27801         (ssse3_pmaddubsw128): Likewise.
27802         (sse3_pmaddubsw: Likewise.
27803         (ssse3_palignrti): Likewise.
27804         (ssse3_palignrdi): Likewise.
27805
27806 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
27807
27808         * doc/install.texi (Specific): Fix two cross-references to MinGW.
27809
27810 2009-04-06  Richard Guenther  <rguenther@suse.de>
27811
27812         PR tree-optimization/28868
27813         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
27814         of which PHI results we inserted.
27815         (insert_into_preds_of_block): Record inserted PHIs.
27816         (eliminate): Eliminate redundant PHI nodes.
27817         (init_pre): Init inserted_phi_names.
27818
27819 2009-04-06  Richard Guenther  <rguenther@suse.de>
27820
27821         PR tree-optimization/39643
27822         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
27823         IMAGPART_EXPRs of complex constants.
27824         (execute_fold_all_builtins): If we folded a call queue
27825         TODO_update_address_taken.
27826
27827 2009-04-06  Jan Hubicka  <jh@suse.cz>
27828
27829         PR middle-end/39659
27830         * except.c (remove_unreachable_regions): Propagate may_contain_throw
27831         flag.
27832
27833 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
27834
27835         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
27836         delay slot.
27837         (ic_invalidate_array): Likewise.
27838
27839 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
27840
27841         * calls.c (emit_library_call_value_1): Fix a problem with parameter
27842         alignment for library calls.
27843
27844 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
27845
27846         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
27847         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
27848         * config/i386/mingw-stdint.h:  New file.
27849
27850 2009-04-05  Richard Guenther  <rguenther@suse.de>
27851
27852         PR tree-optimization/39648
27853         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
27854         our &A vs. &A[0] IL deficiencies.
27855
27856 2009-04-04  Jan Hubicka  <jh@suse.cz>
27857
27858         * except.c (sjlj_find_directly_reachable_regions): Be ready for
27859         removed toplevel regions.
27860         (sjlj_mark_call_sites): Likewise.
27861
27862 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
27863
27864         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
27865         (cygwin tm clause use_gcc_stdint):  Set to wrap.
27866         * config/i386/cygwin-stdint.h:  New file.
27867
27868 2009-04-04  Richard Guenther  <rguenther@suse.de>
27869
27870         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
27871         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
27872         single-argument PHIs if we are in loop-closed SSA form.
27873         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
27874         for the pre-condition.
27875         (slpeel_tree_peel_loop_to_edge): Likewise.
27876         (vect_build_loop_niters): Take an optional sequence to append stmts.
27877         (vect_generate_tmps_on_preheader): Likewise.
27878         (vect_do_peeling_for_loop_bound): Take extra guards for the
27879         pre-condition.
27880         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
27881         the cost model check.
27882         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
27883         guards if we are going to peel.  Do not apply versioning in that case.
27884         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
27885         (vect_do_peeling_for_loop_bound): Likewise.
27886         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
27887         loop bound only record extra pre-conditions, do not apply loop
27888         versioning.
27889
27890 2009-04-04  Richard Guenther  <rguenther@suse.de>
27891
27892         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
27893         renaming code.
27894
27895 2009-04-04  Jan Hubicka  <jh@suse.cz>
27896
27897         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27898         last_basic_block for size of bb->index indexed array.
27899         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
27900         compute_out, link_btr_uses, build_btr_def_use_webs,
27901         build_btr_def_use_webs, migrate_btr_defs): Likewise.
27902
27903 2009-04-04  Jan Hubicka  <jh@suse.cz>
27904
27905         * except.c (remove_eh_handler_and_replace): Break out from ...
27906         (remove_eh_handler): ... here.
27907         (bring_to_root): New function.
27908         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
27909         handled ones, bring others to root of tree.
27910
27911 2009-04-04  Jan Hubicka  <jh@suse.cz>
27912
27913         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
27914         (all_phis_safe_to_merge): New function.
27915         (update_info): New structure.
27916         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
27917         (cleanup_empty_eh): Update SSA if possible.
27918
27919 2009-04-04  Richard Guenther  <rguenther@suse.de>
27920
27921         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
27922         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
27923         (append_vuse): Likewise.
27924
27925 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
27926
27927         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
27928         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
27929         instead of REG_UNSAVED for DW_CFA_undefined.
27930         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
27931         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
27932         outermost frame.
27933
27934 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
27935
27936         PR target/39501
27937         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
27938
27939 2009-04-04  Richard Guenther  <rguenther@suse.de>
27940
27941         PR tree-optimization/8781
27942         PR tree-optimization/37892
27943         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
27944         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
27945         (valueize_refs): Call it for *& valueizations.
27946         (shared_reference_ops_from_ref): Rename to ...
27947         (valueize_shared_reference_ops_from_ref): ... this and valueize.
27948         (shared_reference_ops_from_call): Rename to ...
27949         (valueize_shared_reference_ops_from_call): ... this and valueize.
27950         (vn_reference_lookup): Update.
27951         (visit_reference_op_call): Likewise.
27952         * tree-ssa-pre.c (phi_translate_1): Fold *&.
27953         (eliminate): Value-replace the call address in call statements.
27954
27955 2009-04-04  Richard Guenther  <rguenther@suse.de>
27956
27957         PR tree-optimization/39636
27958         * tree-ssa-forwprop.c
27959         (forward_propagate_addr_into_variable_array_index): Check for
27960         GIMPLE_ASSIGN before accessing the rhs code.
27961
27962 2009-04-03  Jason Merrill  <jason@redhat.com>
27963
27964         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
27965
27966 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
27967
27968         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
27969         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
27970         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
27971         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
27972         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
27973         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
27974         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
27975         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
27976         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
27977         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
27978         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
27979         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
27980         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
27981         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
27982         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
27983         Use fr_reg_or_fp01_operand instead of fr_register_operand
27984
27985         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
27986         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
27987         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
27988
27989 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
27990
27991         PR rtl-optimization/39607
27992         PR rtl-optimization/39631
27993
27994         Revert:
27995
27996         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27997         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
27998         instead of DF_LR_OUT.
27999         * ira-lives.c (process_bb_node_lives): Ditto.
28000         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
28001         instead of DF_LR_{OUT,IN}.
28002         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
28003         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
28004
28005 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
28006
28007         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
28008         (execute_lower_omp): Always run but take the short way out if -fopenmp
28009         is not given.
28010         (gate_lower_omp): Remove, forcing the pass manager to always run the
28011         pass and always set PROP_gimple_lomp.
28012         (pass_lower_omp): Remove gate function.
28013         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
28014         PROP_trees.  Instead, require it.
28015         * ipa-cp.c (pass_ipa_cp): Likewise.
28016         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
28017         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
28018         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
28019         and PROP_gimple_leh.
28020
28021 2009-04-03  Richard Guenther  <rguenther@suse.de>
28022
28023         PR middle-end/13146
28024         PR tree-optimization/23940
28025         PR tree-optimization/33237
28026         PR middle-end/33974
28027         PR middle-end/34093
28028         PR tree-optimization/36201
28029         PR tree-optimization/36230
28030         PR tree-optimization/38049
28031         PR tree-optimization/38207
28032         PR tree-optimization/38230
28033         PR tree-optimization/38301
28034         PR tree-optimization/38585
28035         PR middle-end/38895
28036         PR tree-optimization/38985
28037         PR tree-optimization/39299
28038         * tree-ssa-structalias.h: Remove.
28039         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
28040         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
28041         (struct vuse_element_d): Remove.
28042         (struct vuse_vec_d): Likewise.
28043         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
28044         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
28045         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
28046         VUSE_ELEMENT_VAR): Likewise.
28047         (struct voptype_d): Likewise.
28048         (NUM_VOP_FREE_BUCKETS): Likewise.
28049         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
28050         (struct stmt_operands_d): Remove.
28051         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
28052         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
28053         VDEF_NUM, VDEF_VECT): Likewise.
28054         (copy_virtual_operands): Remove.
28055         (operand_build_cmp): Likewise.
28056         (create_ssa_artificial_load_stmt): Likewise.
28057         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
28058         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
28059         vuse_index and mayuse_index members.  Pack and move done and iter_type
28060         members to the front.
28061         (SSA_OP_VMAYUSE): Remove.
28062         (SSA_OP_VIRTUAL_USES): Adjust.
28063         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
28064         (unlink_stmt_vdef): Declare.
28065         (add_to_addressable_set): Remove.
28066         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
28067         (vrp_visit_stmt): Likewise.
28068         * doc/tree-ssa.texi (Alias analysis): Update.
28069         * doc/invoke.texi (max-aliased-vops): Remove docs.
28070         (avg-aliased-vops): Likewise.
28071         * tree-into-ssa.c (syms_to_rename): Remove.
28072         (need_to_update_vops_p): Likewise.
28073         (need_to_initialize_update_ssa_p): Rename to ...
28074         (update_ssa_initialized_fn): ... this.  Track function we are
28075         initialized for.
28076         (symbol_marked_for_renaming): Simplify.
28077         (add_new_name_mapping): Do not set need_to_update_vops_p.
28078         (dump_currdefs): Use SYMS_TO_RENAME.
28079         (rewrite_update_stmt): Always walk all uses/defs.
28080         (dump_update_ssa): Adjust.
28081         (init_update_ssa): Take function argument.  Track what we are
28082         initialized for.
28083         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
28084         (create_new_def_for): Initialize for cfun, assert we are initialized
28085         for cfun.
28086         (mark_sym_for_renaming): Simplify.
28087         (mark_set_for_renaming): Do not initialize update-ssa.
28088         (need_ssa_update_p): Simplify.  Take function argument.
28089         (name_mappings_registered_p): Assert we ask for the correct function.
28090         (name_registered_for_update_p): Likewise.
28091         (ssa_names_to_replace): Likewise.
28092         (release_ssa_name_after_update_ssa): Likewise.
28093         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
28094         (dump_decl_set): Do not print a newline.
28095         (debug_decl_set): Do it here.
28096         (dump_update_ssa): And here.
28097         * tree-ssa-loop-im.c (move_computations): Adjust.
28098         (movement_possibility): Likewise.
28099         (determine_max_movement): Likewise.
28100         (gather_mem_refs_stmt): Likewise.
28101         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
28102         or NAME_MEMORY_TAG.
28103         * tree-complex.c (update_all_vops): Remove.
28104         (expand_complex_move): Adjust.
28105         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
28106         Simplify test for memory referencing statement.  Exclude
28107         non-invariant ADDR_EXPRs.
28108         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
28109         * tree-loop-distribution.c (generate_memset_zero): Adjust.
28110         (rdg_flag_uses): Likewise.
28111         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
28112         related code.
28113         (tree_optimize_tail_calls_1): Also split the
28114         edge from the entry block if we have degenerate PHI nodes in
28115         the first basic block.
28116         * tree.c (init_ttree): Remove memory-tag related code.
28117         (tree_code_size): Likewise.
28118         (tree_node_structure): Likewise.
28119         (build7_stat): Re-write to be build6_stat.
28120         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
28121         (SSA_VAR_P): Adjust.
28122         (struct tree_memory_tag): Remove.
28123         (struct tree_memory_partition_tag): Likewise.
28124         (union tree_node): Adjust.
28125         (build7): Re-write to be build6.
28126         * tree-pass.h (pass_reset_cc_flags): Remove.
28127         (TODO_update_address_taken): New flag.
28128         (pass_simple_dse): Remove.
28129         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
28130         * params.h (MAX_ALIASED_VOPS): Remove.
28131         (AVG_ALIASED_VOPS): Likewise.
28132         * omp-low.c (expand_omp_taskreg): Update SSA form.
28133         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
28134         aliases the lhs in a copy stmt.
28135         * tree-ssa-dse.c (struct address_walk_data): Remove.
28136         (memory_ssa_name_same): Likewise.
28137         (memory_address_same): Likewise.
28138         (get_kill_of_stmt_lhs): Likewise.
28139         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
28140         unused stores.  Look through PHI nodes into post-dominated regions.
28141         (dse_optimize_stmt): Simplify.  Properly remove stores.
28142         (tree_ssa_dse): Compute dominators.
28143         (execute_simple_dse): Remove.
28144         (pass_simple_dse): Likewise.
28145         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
28146         gimple_loaded_syms and gimple_stored_syms computation.
28147         * toplev.c (dump_memory_report): Dump alias and pta stats.
28148         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
28149         (vn_reference_eq): Likewise.
28150         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
28151         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
28152         valueize_vuses): Remove.
28153         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
28154         (get_def_ref_stmt_vuse): ... this.
28155         (vn_reference_lookup_2): New function.
28156         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
28157         walking equivalent vuses.  Simplify.
28158         (vn_reference_lookup): Likewise.
28159         (vn_reference_insert): Likewise.
28160         (vn_reference_insert_pieces): Likewise.
28161         (visit_reference_op_call): Simplify.
28162         (visit_reference_op_load): Likewise.
28163         (visit_reference_op_store): Likewise.
28164         (init_scc_vn): Remove shared_lookup_vuses initialization.
28165         (free_scc_vn): Remove shared_lookup_vuses freeing.
28166         (sort_vuses, sort_vuses_heap): Remove.
28167         (get_ref_from_reference_ops): Export.
28168         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
28169         vector with single vuse pointer.
28170         (vn_reference_lookup_pieces, vn_reference_lookup,
28171         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
28172         (shared_vuses_from_stmt): Remove.
28173         (get_ref_from_reference_ops): Declare.
28174         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
28175         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
28176         memory-tag related code.
28177         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
28178         (likely_value): Add comment, skip static-chain of call statements.
28179         (surely_varying_stmt_p): Adjust.
28180         (gimplify_and_update_call_from_tree): Likewise.
28181         (execute_fold_all_builtins): Do not rebuild alias info.
28182         (gimplify_and_update_call_from_tree): Properly update VOPs.
28183         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
28184         (copy_ref_info): Remove memory-tag related code.
28185         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
28186         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
28187         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
28188         computation.
28189         * tree-ssa-dom.c (gimple_p): Remove typedef.
28190         (eliminate_redundant_computations): Adjust.
28191         (record_equivalences_from_stmt): Likewise.
28192         (avail_expr_hash): Likewise.
28193         (avail_expr_eq): Likewise.
28194         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
28195         (stmt_makes_single_load): Likewise.
28196         (stmt_makes_single_store): Likewise.
28197         * tree-ssa-alias.c: Rewrite completely.
28198         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
28199         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
28200         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
28201         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
28202         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
28203         Remove public functions.
28204         (pass_reset_cc_flags): Remove.
28205         (pass_build_alias): Move ...
28206         * tree-ssa-structalias.c (pass_build_alias): ... here.
28207         * tree-ssa-alias.c (may_be_aliased): Move ...
28208         * tree-flow-inline.h (may_be_aliased): ... here.
28209         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
28210         count_uses_and_derefs): Move ...
28211         * gimple.c: ... here.
28212         * gimple.h (count_uses_and_derefs): Declare.
28213         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
28214         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
28215         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
28216         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
28217         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
28218         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
28219         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
28220         New functions.
28221         * tree-dfa.c (refs_may_alias_p): Move ...
28222         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
28223         * tree-ssa-alias.h: New file.
28224         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
28225         (statement_sink_location): Likewise.
28226         * opts.c (decode_options): Do not adjust max-aliased-vops or
28227         avg-aliased-vops values.
28228         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
28229         (TV_CALL_CLOBBER): Likewise.
28230         (TV_FLOW_SENSITIVE): Likewise.
28231         (TV_FLOW_INSENSITIVE): Likewise.
28232         (TV_MEMORY_PARTITIONING): Likewise.
28233         (TV_ALIAS_STMT_WALK): New timevar.
28234         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
28235         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
28236         (get_address_description): Remove memory-tag related code.
28237         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
28238         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
28239         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
28240         and immediate uses in statements.  Document.
28241         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
28242         (dump_symbols): Remove.
28243         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
28244         * alias.c (get_deref_alias_set): New function split out from ...
28245         (get_alias_set): ... here.
28246         * alias.h (get_deref_alias_set): Declare.
28247         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
28248         type parameter.  Remove restrict pointer handling.  Create a
28249         ref-all pointer in case type-based alias sets do not conflict.
28250         (vect_analyze_data_refs): Remove SMT related code.
28251         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
28252         (vectorizable_load): Likewise.
28253         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
28254         (DR_SYMBOL_TAG, DR_VOPS): Remove.
28255         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
28256         Ignore vops and SMTs.
28257         (dr_analyze_alias): Likewise..
28258         (free_data_ref): Likewise.
28259         (create_data_ref): Likewise.
28260         (analyze_all_data_dependences): Likewise.
28261         (get_references_in_stmt): Adjust.
28262         * tree-flow-inline.h (gimple_aliases_computed_p,
28263         gimple_addressable_vars, gimple_call_clobbered_vars,
28264         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
28265         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
28266         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
28267         gimple_mem_ref_stats): Remove.
28268         (gimple_vop): New function.
28269         (op_iter_next_use): Remove vuses and mayuses cases.
28270         (op_iter_next_def): Remove vdefs case.
28271         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
28272         (clear_and_done_ssa_iter): Do not set removed fields.
28273         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
28274         Assert we are not iterating over vuses or vdefs if not also
28275         iterating over uses or defs.
28276         (op_iter_init_use): Likewise.
28277         (op_iter_init_def): Likewise.
28278         (op_iter_next_vdef): Remove.
28279         (op_iter_next_mustdef): Likewise.
28280         (op_iter_init_vdef): Likewise.
28281         (compare_ssa_operands_equal): Likewise.
28282         (link_use_stmts_after): Handle vuse operand.
28283         (is_call_used): Use is_call_clobbered.
28284         (is_call_clobbered): Global variables are always call clobbered,
28285         query the call-clobbers bitmap.
28286         (mark_call_clobbered): Ignore global variables.
28287         (clear_call_clobbered): Likewise.
28288         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
28289         virtual operands sanity check.
28290         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
28291         Remove.
28292         (TARGET_MEM_REF): Remove TMR_TAG operand.
28293         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
28294         Remove call-clobber related code.
28295         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
28296         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
28297         partitions or escape reason.
28298         (get_single_def_stmt, get_single_def_stmt_from_phi,
28299         get_single_def_stmt_with_phi): Remove.
28300         (dump_referenced_vars): Tidy.
28301         (get_ref_base_and_extent): Allow bare decls.
28302         (collect_dfa_stats): Adjust.
28303         * graphite.c (rename_variables_in_stmt): Adjust.
28304         (graphite_copy_stmts_from_block): Likewise.
28305         (translate_clast): Likewise.
28306         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
28307         (EXPR_DIES): New.
28308         (translate_vuse_through_block): Use the oracle.
28309         (phi_translate_1): Adjust.
28310         (value_dies_in_block_x): Use the oracle.  Cache the outcome
28311         in EXPR_DIES.
28312         (valid_in_sets): Check if the VUSE for
28313         a REFERENCE is available.
28314         (eliminate): Do not remove stmts during elimination,
28315         instead queue and remove them afterwards.
28316         (do_pre): Do not rebuild alias info.
28317         (pass_pre): Run TODO_rebuild_alias before PRE.
28318         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
28319         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
28320         (mark_all_v_defs_stmt): Remove.
28321         (mark_all_v_defs_seq): Adjust.
28322         (sra_replace): Likewise.
28323         (scalarize_use): Likewise.
28324         (scalarize_copy): Likewise.
28325         (scalarize_init): Likewise.
28326         (scalarize_ldst): Likewise.
28327         (todoflags): Remove.
28328         (tree_sra): Do not rebuild alias info.
28329         (tree_sra_early): Adjust.
28330         (pass_sra): Run TODO_update_address_taken before SRA.
28331         * tree-predcom.c (set_alias_info): Remove.
28332         (prepare_initializers_chain): Do not call it.
28333         (mark_virtual_ops_for_renaming): Adjust.
28334         (mark_virtual_ops_for_renaming_list): Remove.
28335         (initialize_root_vars): Adjust.
28336         (initialize_root_vars_lm): Likewise.
28337         (prepare_initializers_chain): Likewise.
28338         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
28339         (may_propagate_copy_into_stmt): Likewise.
28340         (merge_alias_info): Do nothing for now.
28341         (propagate_tree_value_into_stmt): Adjust.
28342         (stmt_may_generate_copy): Likewise.
28343         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
28344         not mark symbols for renaming.
28345         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
28346         with the same statement, make sure to update the new pointed-to one.
28347         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
28348         call statements, do not mark symbols for renaming.
28349         (mark_operand_necessary): Dump something.
28350         (ref_may_be_aliased): New function.
28351         (mark_aliased_reaching_defs_necessary_1): New helper function.
28352         (mark_aliased_reaching_defs_necessary): Likewise.
28353         (mark_all_reaching_defs_necessary_1): Likewise.
28354         (mark_all_reaching_defs_necessary): Likewise.
28355         (propagate_necessity): Do not process virtual PHIs.  For
28356         non-aliased loads mark all reaching definitions as necessary.
28357         For aliased loads and stores mark the immediate dominating
28358         aliased clobbers as necessary.
28359         (visited): New global static.
28360         (perform_tree_ssa_dce): Free visited bitmap after propagating
28361         necessity.
28362         (remove_dead_phis): Perform simple dead virtual PHI removal.
28363         (remove_dead_stmt): Properly unlink virtual operands when
28364         removing stores.
28365         (eliminate_unnecessary_stmts): Schedule PHI removal after
28366         stmt removal.
28367         * tree-ssa-ter.c (is_replaceable_p): Adjust.
28368         (process_replaceable): Likewise.
28369         (find_replaceable_in_bb): Likewise.
28370         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
28371         based on the single gimple vop.
28372         (verify_flow_insensitive_alias_info): Remove.
28373         (verify_flow_sensitive_alias_info): Likewise.
28374         (verify_call_clobbering): Likewise.
28375         (verify_memory_partitions): Likewise.
28376         (verify_alias_info): Likewise.
28377         (verify_ssa): Adjust..
28378         (execute_update_addresses_taken): Export.  Update SSA
28379         manually.  Optimize only when optimizing.  Use a local bitmap.
28380         (pass_update_address_taken): Remove TODO_update_ssa, add
28381         TODO_dump_func.
28382         (pass_update_address_taken): Just use TODO_update_address_taken.
28383         (init_tree_ssa): Do not initialize addressable_vars.
28384         (verify_ssa): Verify new VUSE / VDEF properties.
28385         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
28386         Do not call verify_alias_info.
28387         (delete_tree_ssa): Clear the VUSE, VDEF operands.
28388         Do not free the loaded and stored syms bitmaps.  Reset the escaped
28389         and callused solutions.  Do not free addressable_vars.
28390         Remove memory-tag related code.
28391         (warn_uninitialized_var): Aliases are always available.
28392         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
28393         * lambda-code.c (can_put_in_inner_loop): Adjust.
28394         (can_put_after_inner_loop): Likewise.
28395         (perfect_nestify): Likewise.
28396         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
28397         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
28398         (vectorizable_conversion): Do not mark symbols for renaming.
28399         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
28400         (expand_call_inline): Unlink the calls virtual operands before
28401         replacing it.
28402         (tree_function_versioning): Do not call update_ssa if we are not
28403         updating clones.  Simplify.
28404         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
28405         (propagate_with_phi): Likewise..
28406         * tree-outof-ssa.c (create_temp): Remove memory tag and call
28407         clobber code.  Assert we are not aliased or global.
28408         * tree-flow.h: Include tree-ssa-alias.h
28409         (enum escape_type): Remove.
28410         (struct mem_sym_stats_d): Likewise.
28411         (struct mem_ref_stats_d): Likewise.
28412         (struct gimple_df): Add vop member.  Remove global_var,
28413         call_clobbered_vars, call_used_vars, addressable_vars,
28414         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
28415         escaped and callused members.
28416         (struct ptr_info_def): Remove all members, add points-to solution
28417         member pt.
28418         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
28419         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
28420         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
28421         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
28422         (tree-ssa-alias.o): Likewise.
28423         (toplev.o): Add tree-ssa-alias.h
28424         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
28425         * gimple.c (gimple_set_bb): Fix off-by-one error.
28426         (is_gimple_reg): Do not handle memory tags.
28427         (gimple_copy): Also copy virtual operands.
28428         Delay updating the statement.  Do not reset loaded and stored syms.
28429         (gimple_set_stored_syms): Remove.
28430         (gimple_set_loaded_syms): Likewise.
28431         (gimple_call_copy_skip_args): Copy the virtual operands
28432         and mark the new statement modified.
28433         * tree-ssa-structalias.c (may_alias_p): Remove.
28434         (set_uids_in_ptset): Take the alias set to prune with as
28435         parameter.  Fold in the alias test of may_alias_p.
28436         (compute_points_to_sets): Compute whether a ptr is dereferenced
28437         in a local sbitmap.
28438         (process_constraint): Deal with &ANYTHING on the lhs, reject all
28439         other ADDRESSOF constraints on the lhs.
28440         (get_constraint_for_component_ref): Assert that we don't get
28441         ADDRESSOF constraints from the base of the reference.
28442         Properly generate UNKNOWN_OFFSET for DEREF if needed.
28443         (struct variable_info): Remove collapsed_to member.
28444         (get_varinfo_fc): Remove.
28445         (new_var_info): Do not set collapsed_to.
28446         (dump_constraint): Do not follow cycles.
28447         (dump_constraint_graph): Likewise.
28448         (build_pred_graph): Likewise.
28449         (build_succ_graph): Likewise.
28450         (rewrite_constraints): Likewise.
28451         (do_simple_structure_copy): Remove.
28452         (do_rhs_deref_structure_copy): Remove.
28453         (do_lhs_deref_structure_copy): Remove.
28454         (collapse_rest_of_var): Remove.
28455         (do_structure_copy): Re-implement.
28456         (pta_stats): New global variable.
28457         (dump_pta_stats): New function.
28458         (struct constraint_expr): Make offset signed.
28459         (UNKNOWN_OFFSET): Define special value.
28460         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
28461         (solution_set_expand): New helper function split out from ...
28462         (do_sd_constraint): ... here.
28463         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
28464         (do_ds_constraint): Likewise.
28465         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
28466         and CALLUSED = *CALLUSED.
28467         (set_union_with_increment): Make inc argument signed.
28468         (type_safe): Remove.
28469         (get_constraint_for_ptr_offset): Handle unknown and negative
28470         constant offsets.
28471         (first_vi_for_offset): Handle offsets before start.  Bail
28472         out early for offsets beyond the variable extent.
28473         (first_or_preceding_vi_for_offset): New function.
28474         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
28475         Together with ESCAPED = *ESCAPED this properly computes reachability.
28476         (find_what_var_points_to): New function.
28477         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
28478         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
28479         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
28480         pt_solutions_intersect): New functions.
28481         (compute_call_used_vars): Remove.
28482         (compute_may_aliases): New main entry into PTA computation.
28483         * gimple.h (gimple_p): New typedef.
28484         (struct gimple_statement_base): Remove references_memory_p.
28485         (struct gimple_statement_with_memory_ops_base): Remove
28486         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
28487         members.
28488         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
28489         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
28490         gimple_set_references_memory): Remove.
28491         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
28492         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
28493         New functions.
28494         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
28495         (verify_expr): Allow RESULT_DECL.
28496         (gimple_duplicate_bb): Do not copy virtual operands.
28497         (gimple_duplicate_sese_region): Adjust.
28498         (gimple_duplicate_sese_tail): Likewise.
28499         (mark_virtual_ops_in_region): Remove.
28500         (move_sese_region_to_fn): Do not call it.
28501         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
28502         and pass_simple_dse.
28503         (execute_function_todo): Handle TODO_update_address_taken,
28504         call execute_update_addresses_taken for TODO_rebuild_alias.
28505         (execute_todo): Adjust.
28506         (execute_one_pass): Init dump files early.
28507         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
28508         call-clobbered.
28509         (create_general_new_stmt): Clear vops.
28510         * tree-ssa-reassoc.c (get_rank): Adjust.
28511         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
28512         symbols for renaming.
28513         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
28514         (PARAM_AVG_ALIASED_VOPS): Likewise.
28515         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
28516         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
28517         * tree-ssa-operands.c: Simplify for new virtual operand representation.
28518         (operand_build_cmp, copy_virtual_operands,
28519         create_ssa_artificial_load_stmt, add_to_addressable_set,
28520         gimple_add_to_addresses_taken): Remove public functions.
28521         (unlink_stmt_vdef): New function.
28522
28523 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28524
28525         * config.gcc (powerpc-*-linux*): Merge variants.
28526
28527 2009-04-02  Chao-ying Fu  <fu@mips.com>
28528             James Grosbach  <james.grosbach@microchip.com>
28529
28530         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
28531         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
28532         cop0_sp_offset.
28533         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
28534         keep_interrupts_masked_p, use_debug_exception_return_p.
28535         (mips_attribute_table): Add interrupt, use_shadow_register_set,
28536         keep_interrupts_masked, use_debug_exception_return.
28537         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
28538         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
28539         New functions.
28540         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
28541         (mips_print_operand): Process COP0 registers to print $0 .. $31
28542         correctly for GAS to process.
28543         (mips_interrupt_extra_call_saved_reg_p): New function.
28544         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
28545         extra registers.
28546         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
28547         (mips_compute_frame_info): Add supports for interrupt context that
28548         includes doubleword accumulators and COP0 registers.
28549         (mips_for_each_saved_acc): New function.
28550         (mips_for_each_saved_gpr_and_fpr): Change the function name from
28551         mips_for_each_saved_reg.
28552         (mips_save_reg): Save accumulators.
28553         (mips_kernel_reg_p): A new for_each_rtx callback.
28554         (mips_expand_prologue): Support interrupt handlers.
28555         (mips_restore_reg): Restore accumulators.
28556         (mips_expand_epilogue): Support interrupt handlers.
28557         (mips_can_use_return_insn): Return false for interrupt handlers.
28558         (mips_epilogue_uses): New function.
28559         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
28560         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
28561         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
28562         cop0_move): New instructions.
28563         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
28564         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
28565         defines.
28566         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
28567         New defines.
28568         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
28569         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
28570         interrupt handlers, we use K0 as the temporary register.
28571         (EPILOGUE_USES): Change to a function call.
28572         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
28573         handlers, we use K0 as the temporary register.
28574
28575         * doc/extend.texi (Function Attributes): Document interrupt,
28576         use_shadow_register_set, keep_interrupts_masked,
28577         use_debug_exception_return for MIPS attributes.
28578
28579 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28580
28581         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
28582         Remove a number of t-files from tmake_file.
28583         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
28584         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
28585         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
28586         target_prototype, not TARGET_PROTOTYPE.
28587         (LINK_OS_GNU_SPEC): Define.
28588         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
28589         and darwin-ldoubdle.c.
28590
28591 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28592
28593         PR driver/39293
28594         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
28595         (cpp_options): Ditto.
28596         (default_compilers): Ditto.
28597         (display_help): Ditto.
28598         (process_command): Ditto.
28599         (do_spec_1): Ditto.
28600         (set_input): Use lbasename instead of duplicate code.
28601         (save_temps_prefix): New static for -save-temps=obj.
28602         (save_temps_length): Ditto.
28603
28604         * doc/invoke.texi (-save-temps=obj): Document new variant to
28605         -save-temps switch.
28606
28607 2009-04-02  Jeff Law  <law@redhat.com>
28608
28609         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
28610         variable.
28611
28612 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28613
28614         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
28615         * configure: Regenerated.
28616
28617 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28618
28619         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
28620         share the argument list.
28621
28622 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28623
28624         Merge
28625
28626         2009-02-12  Diego Novillo  <dnovillo@google.com>
28627
28628         * varpool.c (debug_varpool): New.
28629         * cgraph.h (debug_varpool): Declare.
28630
28631 2009-04-02  Jan Hubicka  <jh@suse.cz>
28632
28633         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
28634         pass.
28635
28636 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28637
28638         * config/i386/i386.c (ix86_abi): Move initialization to ...
28639         (override_options): Here.
28640
28641 2009-04-02  Christian Bruel  <christian.bruel@st.com>
28642
28643         * config/sh/sh.c (sh_dwarf_register_span): New function.
28644         (TARGET_DWARF_REGISTER_SPAN): Define.
28645         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
28646
28647 2009-04-02  Ira Rosen  <irar@il.ibm.com>
28648
28649         PR tree-optimization/39595
28650         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
28651         interleaved loads group is not  greater than the SLP group size.
28652
28653 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28654
28655         * builtins.c (is_builtin_name): New.
28656         (called_as_built_in): Use is_builtin_name.
28657         * tree.h (is_builtin_name): New.
28658         * varasm.c (incorporeal_function_p): Use is_builtin_name
28659
28660 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
28661
28662         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
28663
28664 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
28665
28666         PR c++/26693
28667         * c-decl.c (clone_underlying_type): Move this ...
28668         * c-common.c (set_underlying_type): ... here.
28669         Also, make sure the function properly sets TYPE_STUB_DECL() on
28670         the newly created typedef variant type.
28671         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
28672         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
28673         points.
28674
28675 2009-04-02  Richard Guenther  <rguenther@suse.de>
28676
28677         PR tree-optimization/37221
28678         * tree-flow.h (degenerate_phi_result): Declare.
28679         * tree-ssa-dom.c (degenerate_phi_result): Export.
28680         * tree-scalar-evolution.c (analyze_initial_condition): If
28681         the initial condition is defined by a degenerate PHI node
28682         use the degenerate value.
28683
28684 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
28685
28686         PR rtl-optimization/39588
28687         * combine.c (merge_outer_ops): Do not set the constant when this
28688         is not necessary.
28689         (simplify_shift_const_1): Do not modify it either in this case.
28690
28691 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28692
28693         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
28694         tuning is deprecated if -mtune value is set to an Itanium1 variant.
28695
28696 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
28697
28698         PR c/29027
28699         * c-lex.c (interpret_float): Default (no suffix) is double.
28700
28701 2009-04-1  Xinliang David Li  <davidxl@google.com>
28702
28703         * config/i386/i386.c (legitimate_constant_p): Recognize
28704         all one vector constant.
28705
28706 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28707
28708         * config/vax/vax.c: Add #includes to silence warnings.
28709         Change #include order to silence two warnings.
28710
28711 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28712
28713         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
28714         (ASM_SPEC): Pass -k to the assembler for PIC code.
28715
28716 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28717
28718         * config.gcc: Add vax-*-linux* to the switch.
28719         * config/vax/linux.h: New file. (TARGET_VERSION,
28720         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
28721
28722 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28723
28724         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
28725         Use predicate macros instead of GET_CODE() == foo.
28726         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
28727         ashlsi3, rotrsi3, <unnamed>): Likewise.
28728
28729 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28730
28731         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
28732         jbbccihi, jbbccisi): Remova trailing whitespace.
28733         * config/vax/constraints.md: Likewise.
28734         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
28735         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
28736         * config/vax/predicates.md: Likewise.
28737         * config/vax/vax.c (print_operand_address, vax_output_int_move,
28738         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
28739         * config/vax/vax.h: Likewise.
28740         * config/vax/vax.md (nonlocal_goto): Likewise.
28741
28742 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28743
28744         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
28745         (indirectable_address_p, adjacent_operands_p): Add spaces around
28746         braces.
28747         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
28748
28749 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28750
28751         * config/vax/vax.c (legitimate_constant_address_p,
28752         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
28753         index_term_p, reg_plus_index_p, legitimate_address_p,
28754         vax_mode_dependent_address_p): Update comments to match functions
28755         modified by the recent int->bool conversion.
28756
28757 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28758
28759         * config/vax/builtins.md: Update copyright message.
28760         * config/vax/constraints.md: Likewise.
28761         * config/vax/netbsd-elf.h: Likewise.
28762         * config/vax/predicates.md: Likewise.
28763         * config/vax/vax-protos.h: Likewise.
28764         * config/vax/vax.c: Likewise.
28765         * config/vax/vax.h: Likewise.
28766         * config/vax/vax.md: Likewise.
28767         * config/vax/vax.opt: Likewise.
28768
28769 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28770
28771         * config/vax/builtins.md (ffssi2, ffssi2_internal,
28772         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
28773         * config/vax/constraints.md (B, R): Likewise.
28774         * config/vax/predicates.md (external_memory_operand,
28775         nonimmediate_addsub_di_operand): Likewise.
28776         * config/vax/vax.c (vax_output_int_add): Likewise.
28777         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
28778         untyped_call): Likewise.
28779
28780 2009-04-01  Matt Thomas  <matt@3am-software.com>
28781
28782         * config/vax/predicates.md: New file.
28783         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
28784         external_const_operand, nonsymbolic_operand, external_memory_operand,
28785         indirect_memory_operand, indexed_memory_operand,
28786         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
28787         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
28788         predicate.
28789         * config/vax/constraints.md: New file.
28790         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
28791         New constraint.
28792         * config/vax/builtins.md: New file.
28793         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
28794         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
28795         jbbccisi): Define.
28796         * config/vax/vax.opt (mqmath): Add option.
28797         * config/vax/vax.md (isfx): Extend with DI.
28798         (VAXintQH, VAXintQHSD): Define.
28799         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
28800         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
28801         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
28802         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
28803         (movdi): Update constraints and use vax_output_int_move().
28804         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
28805         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
28806         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
28807         nonlocal_goto): New.
28808         (mov<mode>): Extend accepted operand types.
28809         (subdi3_old): Rename from subdi3, change update constraints and use
28810         a new implementation.
28811         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
28812         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
28813         MOVE_RATIO, CLEAR_RATIO): Define.
28814         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
28815         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
28816         (PRINT_OPERAND): Redefine using a function instead of inlined code.
28817         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
28818         (split_quadword_operands): Make static and really allow variable
28819         splitting.
28820         (print_operand_address): Update for PIC generation.
28821         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
28822         indexable_address_p, fixup_mathdi_operand,
28823         vax_expand_addsub_di_operands, adjacent_operands_p): New.
28824         (vax_float_literal, legitimate_constant_p,
28825         indirectable_constant_address_p, index_term_p,
28826         reg_plus_index_p): Return bool instead of int.
28827         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
28828         where needed.
28829         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
28830         generation.
28831         (vax_output_conditional_branch): Indent.
28832         (legitimate_constant_address_p, indirectable_constant_address_p,
28833         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
28834         vax_mode_dependent_address_p): Return bool instead of int, update for
28835         PIC generation.
28836         * config/vax/vax-protos.h (legitimate_constant_address_p,
28837         legitimate_constant_p, legitimate_address_p,
28838         vax_mode_dependent_address_p): Change declaration to bool.
28839         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
28840         vax_expand_addsub_di_operands, vax_output_int_subtract,
28841         vax_output_movmemsi): Declare.
28842         (split_quadword_operands, vax_float_literal): Delete declaration.
28843         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
28844         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
28845         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
28846         ASM_OUTPUT_DWARF_PCREL): Define.
28847         (ASM_SPEC): Change definition to allow PIC generation.
28848
28849 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
28850
28851         * doc/sourcebuild.texi: Update front-end requirements.
28852
28853 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28854
28855         PR target/39226
28856         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
28857         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
28858         (booldi3_internal3): Use boolean_or_operator instead of
28859         boolean_operator.
28860
28861 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
28862
28863         PR c/39605
28864         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
28865         declarator whose size is not an integer constant expression but
28866         folds to an integer constant, then treat it as a constant
28867         subsequently.
28868
28869 2009-04-01  Richard Guenther  <rguenther@suse.de>
28870
28871         * fold-const.c (fold_plusminus_mult_expr): Do not fold
28872         i * 4 + 2 to (i * 2 + 1) * 2.
28873
28874 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28875
28876         PR c/37772
28877         * c-parser.c (c_parser_asm_statement): Skip until close paren and
28878         return if c_parser_asm_string_literal returned NULL.
28879
28880 2009-04-01  Nick Clifton  <nickc@redhat.com>
28881
28882         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
28883         already defined.
28884         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
28885         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
28886         other typedefs to avoid conflicts with libgcc2.c.  Define labels
28887         to gain 16-bit bit-manipulation functions from libgcc2.c and then
28888         include it.
28889         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
28890         to gain 16-bit trapping arithmetic functions from libgcc2.c and
28891         then include it.
28892
28893 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
28894
28895         * varasm.c (default_function_rodata_section): Declare DOT as
28896         const char*.
28897
28898 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
28899             Andrey Galkin  <agalkin@hypercom.com>
28900
28901         PR/39492
28902         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
28903         Make object_name unique for each process.
28904
28905 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28906
28907         PR other/39591
28908         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
28909         addressable variables in the parallel that could go out of scope while
28910         running queued tasks.
28911
28912 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
28913
28914         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
28915         (CASE_VALUES_THRESHOLD): Redefine.
28916         * config/avr/avr.c (avr_override_options): Remove initialization of
28917         avr_case_values_threshold variable.
28918         (avr_case_values_threshold): Remove variable. Add new function.
28919         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
28920         * config/avr/avr.opt (mno-tablejump): Remove option.
28921         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
28922
28923 2009-04-01  DJ Delorie  <dj@redhat.com>
28924
28925         * varasm.c (default_function_rodata_section): Don't assume
28926         anything about where the first '.' in the section name is.
28927
28928 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
28929
28930         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
28931         rs6000_emit_stack_tie.
28932
28933 2009-03-31  Ian Lance Taylor  <iant@google.com>
28934
28935         * tree-eh.c (tree_remove_unreachable_handlers): Compare
28936         gimple_code with GIMPLE_RESX, not RESX.
28937
28938 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
28939
28940         * c-common.c (c_get_ident): New.
28941         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
28942
28943 2009-04-01  Ben Elliston  <bje@au.ibm.com>
28944
28945         * config/rs6000/sysv4.opt (msdata): Improve option description.
28946
28947 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
28948
28949         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
28950         (divdf3_internal_lat): Remove.
28951         (divxf3_internal_lat): Remove.
28952         (divxf3_internal_thr): Remove.
28953         (divxf): Use divxf3_internal.
28954         * config/ia64/div.md (divsf3_internal_lat): New.
28955         (divdf3_internal_lat): New.
28956         (divxf3_internal): New.
28957
28958 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
28959
28960         PR c/448
28961         * Makefile.in (USE_GCC_STDINT): Define.
28962         (stmp-int-hdrs): Install stdint.h if applicable.
28963         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
28964         if known.
28965         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
28966         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
28967         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
28968         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28969         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
28970         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
28971         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
28972         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28973         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
28974         (c_common_nodes_and_builtins): Initialize
28975         underlying_wchar_type_node.  Do not initialize
28976         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
28977         nodes for new types.
28978         (c_stddef_cpp_builtins): Define macros for new types.
28979         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
28980         Remove.
28981         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
28982         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
28983         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
28984         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
28985         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
28986         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
28987         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
28988         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
28989         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
28990         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
28991         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
28992         int16_type_node, int32_type_node, int64_type_node,
28993         uint8_type_node, uint16_type_node, c_uint32_type_node,
28994         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
28995         int_least32_type_node, int_least64_type_node,
28996         uint_least8_type_node, uint_least16_type_node,
28997         uint_least32_type_node, uint_least64_type_node,
28998         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
28999         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
29000         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
29001         uintptr_type_node): Define.
29002         * c-cppbuiltin.c (builtin_define_constants,
29003         builtin_define_type_minmax): New.
29004         (builtin_define_stdint_macros): Define more macros.
29005         (c_cpp_builtins): Define more limit macros.
29006         (type_suffix): New.
29007         (builtin_define_type_max): Define in terms of
29008         builtin_define_type_minmax.  Remove is_long parameter.  All
29009         callers changed.
29010         * config.gcc (use_gcc_stdint): Define.
29011         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
29012         Add newlib-stdint.h for generic targets.
29013         * config/glibc-stdint.h, config/newlib-stdint.h,
29014         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
29015         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
29016         * config/score/score.h (UINTPTR_TYPE): Define.
29017         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
29018         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
29019         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29020         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29021         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29022         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29023         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29024         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29025         * config/spu/spu.h (STDINT_LONG32): Define.
29026         * configure.ac (use_gcc_stdint): Substitute.
29027         * configure: Regenerate.
29028         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
29029         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
29030         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
29031         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
29032         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
29033         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
29034         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
29035         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
29036         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
29037         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
29038         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
29039         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
29040         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
29041         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
29042         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
29043         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
29044         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
29045         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
29046         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
29047         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
29048         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
29049         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
29050         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29051         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29052         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29053         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29054         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29055         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29056         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
29057
29058 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
29059
29060         * loop-iv.c (suitable_set_for_replacement): Renamed from
29061         simplify_using_assignment; changed to return bool and to accept new
29062         args DEST and SRC.  Return true iff we find a source/destination pair
29063         that can be used to make a replacement, and fill SRC and DEST if so.
29064         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
29065         changed.
29066         (simplify_using_initial_values): Deal with altered regs here and track
29067         more precisely the effect they have on the validity of our expression.
29068
29069         * loop-iv.c (simplify_using_condition): A condition of the form
29070         (EQ REG CONST) can be used to simply make a substitution.
29071         (simplify_using_initial_values): Keep track of conditions we have seen
29072         and keep using them to simplify new expressions, while applying the
29073         same substitutions to them as to the expression.
29074
29075         * simplify-rtx.c (simplify_relational_operation_1): Simplify
29076         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
29077         GEU/LTU reversed.
29078
29079         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
29080         changed.  Use this when trying to improve the upper bound.
29081         Generate the comparison by using simplify_gen_relational.
29082
29083         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
29084
29085         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
29086         functions.
29087         (simplify_using_assignment, simplify_using_initial_values): Call
29088         replace_in_expr to make replacements.  Call replace_single_def_regs
29089         once on the initial version of the expression.
29090
29091 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29092
29093         PR target/27237
29094         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
29095
29096 2009-03-31  Richard Guenther  <rguenther@suse.de>
29097
29098         PR middle-end/31029
29099         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
29100         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
29101
29102 2009-03-31  Richard Guenther  <rguenther@suse.de>
29103
29104         * tree.h (div_if_zero_remainder): Declare.
29105         * fold-const.c (div_if_zero_remainder): Export.
29106         * tree-ssa-forwprop.c
29107         (forward_propagate_addr_into_variable_array_index): Handle
29108         constant array index addition outside of the variable index.
29109
29110 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29111
29112         PR target/39592
29113         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
29114         define_splits, floatunssi<mode>2): Require x87 conversions from
29115         DImode to be permitted.
29116
29117 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29118
29119         PR preprocessor/15638
29120         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
29121
29122 2009-03-31  Richard Guenther  <rguenther@suse.de>
29123
29124         PR middle-end/23401
29125         PR middle-end/27810
29126         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
29127         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
29128         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
29129         a separate statement.
29130         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
29131         (lookup_tmp_var): Likewise.
29132         (is_gimple_formal_tmp_or_call_rhs): Remove.
29133         (is_gimple_reg_or_call_rhs): Rename to ...
29134         (is_gimple_reg_rhs_or_call): ... this.
29135         (is_gimple_mem_or_call_rhs): Rename to ...
29136         (is_gimple_mem_rhs_or_call): ... this.
29137         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
29138         DECL_GIMPLE_REG_P only if is_formal is true.
29139         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
29140         for non-proper post-modify expression gimplification.
29141         (gimplify_self_mod_expr): For post-modify expressions gimplify
29142         the lvalue to a minimal lvalue.
29143         (rhs_predicate_for): Remove formal temp case.
29144         (gimplify_modify_expr_rhs): Likewise.
29145         (gimplify_addr_expr): Use is_gimple_reg.
29146         (gimplify_expr): Remove formal temp cases.
29147         (gimple_regimplify_operands): Likewise.
29148         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
29149         and FILTER_EXPR like constants.
29150         * gimple.c (walk_gimple_op): Fix val_only initialization, use
29151         is_gimple_reg.
29152         (is_gimple_formal_tmp_rhs): Remove.
29153         (is_gimple_reg_rhs): Remove special casing.
29154         (is_gimple_mem_rhs): Fix.
29155         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
29156         (is_gimple_formal_tmp_var): Remove.
29157         (is_gimple_formal_tmp_reg): Likewise.
29158         (is_gimple_min_lval): Allow invariant component ref parts.
29159         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
29160         is_gimple_formal_tmp_reg): Remove declarations.
29161         * tree-cfg.c (verify_expr): Verify that variables with address
29162         taken do not have DECL_GIMPLE_REG_P set.
29163         * tree-mudflap.c (mf_build_check_statement_for): Use
29164         force_gimple_operand instead of gimplify_expr.
29165
29166 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
29167
29168         * modulo-sched.c (sms_schedule_by_order): Pass the actual
29169         schedulable rows to compute_split_row.
29170
29171 2009-03-31  Ben Elliston  <bje@au.ibm.com>
29172
29173         PR target/31635
29174         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
29175         OPT_mvrsave.
29176
29177 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29178
29179         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
29180         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
29181         * configure: Regenerate.
29182         * config.in: Regenerate.
29183         * config/rs6000/rs6000.opt (mtls-markers): Add.
29184         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
29185         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
29186         (tls_ld_aix, tls_ld_sysv): Likewise.
29187         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
29188         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
29189
29190 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29191
29192         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
29193
29194 2009-03-30  Jan Hubicka  <jh@suse.cz>
29195
29196         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
29197         out of RESX.
29198         (tree_remove_unreachable_handlers): Cleanup EH predecestor
29199         detection and label handling.
29200
29201 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29202
29203         * ira-int.h (ira_allocno): Rename left_conflicts_num to
29204         left_conflicts_size.
29205         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
29206         ALLOCNO_LEFT_CONFLICTS_SIZE.
29207
29208         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
29209         remove_allocno_from_bucket_and_push,
29210         allocno_spill_priority_compare, push_allocnos_to_stack,
29211         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29212         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
29213         (setup_allocno_left_conflicts_num): Ditto.  Rename to
29214         setup_allocno_left_conflicts_size.
29215         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29216         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
29217         setup_allocno_left_conflicts_size instead of
29218         setup_allocno_left_conflicts_num.
29219
29220         * ira-build.c (ira_create_allocno): Use
29221         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
29222         ALLOCNO_LEFT_CONFLICTS_NUM.
29223
29224 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29225
29226         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29227         instead of DF_LR_OUT.
29228
29229         * ira-lives.c (process_bb_node_lives): Ditto.
29230
29231         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29232         instead of DF_LR_{OUT,IN}.
29233
29234         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29235
29236         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29237
29238 2009-03-30  Jan Hubicka  <jh@suse.cz>
29239
29240         * except.c (label_to_region_map): Fix thinko.
29241
29242 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
29243
29244         PR middle-end/38237
29245         * tree.h (tree_find_value): New declaration.
29246         * tree.c (tree_find_value): New function.
29247         * varasm.c (assemble_external): Avoid duplicate entries on lists.
29248
29249 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
29250
29251         PR debug/39563
29252         * c-decl.c (struct c_binding): Add locus field.
29253         (bind): Add locus argument, set locus field from it.
29254         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
29255         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
29256         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
29257         implicitly_declare, undeclared_variable, lookup_label,
29258         declare_label, c_make_fname_decl, c_builtin_function,
29259         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
29260         bind callers.
29261
29262 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29263
29264         PR target/38781
29265         * config/i386/i386.c (classify_argument): Check total size of
29266         structure.
29267
29268 2009-03-30  Martin Jambor  <mjambor@suse.cz>
29269
29270         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
29271         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
29272         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
29273         respectively.
29274
29275         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
29276         seen_variable_array_ref while also traversing a union.
29277
29278         * tree-inline.c (optimize_inline_calls): Do not call
29279         cgraph_node_remove_callees.
29280         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
29281         (pass_remove_cgraph_callee_edges): New variable.
29282         * passes.c (init_optimization_passes): Add
29283         pass_remove_cgraph_callee_edges after early inlining and before all
29284         late intraprocedural passes.
29285
29286         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
29287
29288 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29289
29290         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
29291         Fix typos in names.
29292
29293 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29294
29295         * combine.c (simplify_comparison): Use have_insn_for.
29296         * dojump.c (do_jump): Likewise.
29297
29298 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29299
29300         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
29301         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
29302         sparc_compare_op0 like sparc_compare_emitted used to be handled.
29303         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
29304         instead of sparc_compare_emitted.
29305         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
29306         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
29307         instead of sparc_compare_emitted.
29308
29309 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29310
29311         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
29312         enter/exit cfglayout mode.
29313         (pass_partition_block): Require it.
29314         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
29315         (combine_instructions): Track basic blocks instead of labels.
29316         (update_cfg_for_uncondjump): New.
29317         (try_combine): Use it.  Update jumps after rescanning.
29318         (pass_combine): Require PROP_cfglayout.
29319         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
29320
29321 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29322
29323         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
29324         Provide/destroy PROP_cfglayout respectively.
29325         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
29326         * tree-pass.h (PROP_cfglayout): New.
29327
29328 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29329
29330         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
29331         fold_convert_const_fixed_from_fixed,
29332         fold_convert_const_fixed_from_int,
29333         fold_convert_const_fixed_from_real, fold_negate_const): Do not
29334         set TREE_CONSTANT_OVERFLOW.
29335         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
29336         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
29337
29338 2009-03-30  Ira Rosen  <irar@il.ibm.com>
29339
29340         * tree-vect-loop-manip.c: New file.
29341         * tree-vectorizer.c: Update documentation and included files.
29342         (vect_loop_location): Make extern.
29343         (rename_use_op): Move to tree-vect-loop-manip.c
29344         (rename_variables_in_bb, rename_variables_in_loop,
29345         slpeel_update_phis_for_duplicate_loop,
29346         slpeel_update_phi_nodes_for_guard1,
29347         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
29348         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
29349         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
29350         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
29351         find_loop_location): Likewise.
29352         (new_stmt_vec_info): Move to tree-vect-stmts.c.
29353         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
29354         get_vectype_for_scalar_type, vect_is_simple_use,
29355         supportable_widening_operation, supportable_narrowing_operation):
29356         Likewise.
29357         (bb_in_loop_p): Move to tree-vect-loop.c.
29358         (new_loop_vec_info, destroy_loop_vec_info,
29359         reduction_code_for_scalar_code, report_vect_op,
29360         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
29361         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
29362         (vect_supportable_dr_alignment): Likewise.
29363         * tree-vectorizer.h (tree-data-ref.h): Include.
29364         (vect_loop_location): Declare.
29365         Reorganize function declarations according to the new file structure.
29366         * tree-vect-loop.c: New file.
29367         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
29368         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
29369         * tree-vect-data-refs.c: New file.
29370         * tree-vect-patterns.c (timevar.h): Don't include.
29371         * tree-vect-stmts.c: New file.
29372         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
29373         tree-vect-slp.c, tree-vect-loop.c.
29374         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
29375         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
29376         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
29377         (tree-vect-analyze.o): Remove.
29378         (tree-vect-transform.o): Likewise.
29379         (tree-vect-data-refs.o): Add rule.
29380         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
29381         tree-vect-slp.o): Likewise.
29382         (tree-vect-patterns.o): Remove redundant dependencies.
29383         (tree-vectorizer.o): Likewise.
29384         * tree-vect-slp.c: New file.
29385
29386 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29387
29388         * optc-gen.awk: Warn if an option flag has multiple different
29389         help strings.
29390
29391 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
29392
29393         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
29394         -floop-block): Document dependences on PPL, CLooG and Graphite.
29395
29396 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29397
29398         PR rtl-optimization/323
29399         * c-common.c (c_fully_fold, convert_and_check,
29400         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
29401         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
29402         * c-common.def (EXCESS_PRECISION_EXPR): New.
29403         * c-cppbuiltin.c (builtin_define_float_constants): Define
29404         constants with enough digits for long double.
29405         * c-lex.c (interpret_float): Interpret constant with excess
29406         precision where appropriate.
29407         * c-opts.c (c_common_post_options): Set
29408         flag_excess_precision_cmdline.  Give an error for
29409         -fexcess-precision=standard for C++ for processors where the
29410         option is significant.
29411         * c-parser.c (c_parser_conditional_expression): Handle excess
29412         precision in condition.
29413         * c-typeck.c (convert_arguments): Handle arguments with excess
29414         precision.
29415         (build_unary_op): Move excess precision outside operation.
29416         (build_conditional_expr): Likewise.
29417         (build_compound_expr): Likewise.
29418         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
29419         (build_modify_expr): Handle excess precision in RHS.
29420         (convert_for_assignment): Handle excess precision in converted
29421         value.
29422         (digest_init, output_init_element, process_init_element): Handle
29423         excess precision in initializer.
29424         (c_finish_return): Handle excess precision in return value.
29425         (build_binary_op): Handle excess precision in operands and add
29426         excess precision as needed for operation.
29427         * common.opt (-fexcess-precision=): New option.
29428         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
29429         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
29430         For standard excess precision, output explicit conversion to and
29431         truncation from XFmode.
29432         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
29433         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
29434         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
29435         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
29436         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
29437         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
29438         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
29439         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
29440         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
29441         define_splits, sqrt<mode>2): Disable where appropriate for
29442         standard excess precision.
29443         * convert.c (convert_to_real): Do not shorten arithmetic to type
29444         for which excess precision would be used.
29445         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
29446         * doc/invoke.texi (-fexcess-precision=): Document option.
29447         (-mfpmath=): Correct index entry.
29448         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
29449         flag_excess_precision): New.
29450         * langhooks.c (lhd_post_options): Set
29451         flag_excess_precision_cmdline.
29452         * opts.c (common_handle_option): Handle -fexcess-precision=.
29453         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
29454         init_excess_precision): New.
29455         (lang_dependent_init_target): Call init_excess_precision.
29456         * tree.c (excess_precision_type): New.
29457         * tree.h (excess_precision_type): Declare.
29458
29459 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29460
29461         PR c/35235
29462         * c-typeck.c (build_component_ref): Do not copy qualifiers from
29463         non-lvalue to component.
29464
29465 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29466
29467         PR preprocessor/34695
29468         * Makefile.in (c-opts.o): Depend on c-tree.h.
29469         * c-common.c: Move down include of diagnostic.h.
29470         (done_lexing, c_cpp_error): New.
29471         * c-common.h (done_lexing): Declare.
29472         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
29473         (parse_in).
29474         * c-opts.c: Include c-tree.h.
29475         (c_common_init_options): Set preprocessor error callback.
29476         (c_common_handle_option): Do not set preprocessor
29477         inhibit_warnings, warnings_are_errors, warn_system_headers,
29478         pedantic_errors or inhibit_warnings flags.
29479         (c_common_post_options): Do not check cpp_errors (parse_in).
29480         (c_common_finish): Do not output dependencies if there were
29481         errors.  Do not check return value of cpp_finish.
29482         * c-ppoutput.c (pp_file_change): Set input_location.
29483         * c-tree.h (c_cpp_error): Declare.
29484         * diagnostic.c (diagnostic_set_info_translated): Also initialize
29485         override_column.
29486         (diagnostic_build_prefix): Check override_column.
29487         * diagnostic.h (diagnostic_info): Add override_column field.
29488         (diagnostic_override_column): Define.
29489
29490 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
29491
29492         * c-common.c (c_expand_expr, c_staticp): Remove.
29493         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
29494         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
29495         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
29496         * c-gimplify.c (gimplify_compound_literal_expr,
29497         optimize_compound_literals_in_ctor): Remove.
29498         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
29499         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
29500         * c-semantics.c (emit_local_var): Remove.
29501
29502         * langhooks-def.h (lhd_expand_expr): Remove.
29503         * langhooks.c (lhd_expand_expr): Remove.
29504         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
29505
29506         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
29507         handling from c-semantics.c; don't call into langhook.
29508         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
29509         * gimplify.c (gimplify_compound_literal_expr,
29510         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
29511         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
29512         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
29513         as was done in c-gimplify.c.
29514         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
29515         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
29516         Move from c-common.h.
29517         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
29518
29519         * tree.c (staticp): Do not call langhook.
29520         * langhooks.c (lhd_staticp): Delete.
29521         * langhooks-def.h (lhd_staticp): Delete prototype.
29522         (LANG_HOOKS_STATICP): Delete.
29523         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
29524
29525         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
29526         instead of DECL_STMTs.
29527
29528 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29529
29530         PR c/456
29531         PR c/5675
29532         PR c/19976
29533         PR c/29116
29534         PR c/31871
29535         PR c/35198
29536         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
29537         void_type_node.
29538         (fold_call_expr): Return a NOP_EXPR from folding rather than the
29539         contained expression.
29540         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
29541         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
29542         conditional expressions for C.
29543         (decl_constant_value_for_optimization): Move from
29544         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
29545         whether optimizing and that the expression is a VAR_DECL not of
29546         array type instead of doing such checks in the caller.  Do not
29547         check pedantic.  Call gcc_unreachable for C++.
29548         * c-common.def (C_MAYBE_CONST_EXPR): New.
29549         * c-common.h (c_fully_fold, c_save_expr,
29550         decl_constant_value_for_optimization): New prototypes.
29551         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
29552         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
29553         EXPR_INT_CONST_OPERANDS): Define.
29554         * c-convert.c (convert): Strip nops from expression.
29555         * c-decl.c (groktypename): Take extra parameters expr and
29556         expr_const_operands.  Update call to grokdeclarator.
29557         (start_decl): Update call to grokdeclarator.  Add statement for
29558         expressions used in type of decl.
29559         (grokparm): Update call to grokdeclarator.
29560         (push_parm_decl): Update call to grokdeclarator.
29561         (build_compound_literal): Add parameter non_const and build a
29562         C_MAYBE_COSNT_EXPR if applicable.
29563         (grokdeclarator): Take extra parameters expr and
29564         expr_const_operands.  Track expressions used in declaration
29565         specifiers and declarators.  Fold array sizes and track whether
29566         they are constant expressions and whether they are integer
29567         constant expressions.
29568         (parser_xref_tag): Set expr and expr_const_operands fields in
29569         return value.
29570         (grokfield): Update call to grokdeclarator.
29571         (start_function): Update call to grokdeclarator.
29572         (build_null_declspecs): Set expr and expr_const_operands fields in
29573         return value.
29574         (declspecs_add_type): Handle expressions in typeof specifiers.
29575         * c-parser.c (c_parser_declspecs): Set expr and
29576         expr_const_operands fields for declaration specifiers.
29577         (c_parser_enum_specifier): Likewise.
29578         (c_parser_struct_or_union_specifier): Likewise.
29579         (c_parser_typeof_specifier): Likewise.  Update call to
29580         groktypename.  Fold expression as needed.  Return expressions with
29581         type instead of adding statements.
29582         (c_parser_attributes): Update calls to c_parser_expr_list.
29583         (c_parser_statement_after_labels): Fold expression before passing
29584         to objc_build_throw_stmt.
29585         (c_parser_condition): Fold expression.
29586         (c_parser_asm_operands): Fold expression.
29587         (c_parser_conditional_expression): Use c_save_expr.  Update call
29588         to build_conditional_expr.
29589         (c_parser_alignof_expression): Update call to groktypename.
29590         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
29591         original_code.  Fold expression argument of va_arg.  Create
29592         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
29593         argument to va_arg.  Update calls to groktypename.  Fold array
29594         index for offsetof.  Verify that first argument to
29595         __builtin_choose_expr has integer type.
29596         (c_parser_postfix_expression_after_paren_type): Update calls to
29597         groktypename and build_compound_literal.  Handle expressions with
29598         side effects in type name.
29599         (c_parser_postfix_expression_after_primary): Update call to
29600         c_parser_expr_list.  Set original_code for calls to
29601         __builtin_constant_p.
29602         (c_parser_expr_list): Take extra parameter fold_p.  Fold
29603         expressions if requested.
29604         (c_parser_objc_type_name): Update call to groktypename.
29605         (c_parser_objc_synchronized_statement): Fold expression.
29606         (c_parser_objc_receiver): Fold expression.
29607         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
29608         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
29609         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
29610         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
29611         (struct c_typespec): Add elements expr and expr_const_operands.
29612         (struct c_declspecs): Add elements expr and expr_const_operands.
29613         (groktypename, build_conditional_expr, build_compound_literal):
29614         Update prototypes.
29615         (in_late_binary_op): Declare.
29616         * c-typeck.c (note_integer_operands): New function.
29617         (in_late_binary_op): New variable.
29618         (decl_constant_value_for_broken_optimization): Move to c-common.c
29619         and rename to decl_constant_value_for_optimization.
29620         (default_function_array_conversion): Do not strip nops.
29621         (default_conversion): Do not call
29622         decl_constant_value_for_broken_optimization.
29623         (build_array_ref): Do not fold result.
29624         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
29625         result when operand is a VLA.
29626         (c_expr_sizeof_type): Update call to groktypename.  Handle
29627         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
29628         result when operand names a VLA type.
29629         (build_function_call): Update call to build_compound_literal.
29630         Only fold result for calls to __builtin_* functions.  Strip
29631         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
29632         the function designator.
29633         (convert_arguments): Fold arguments.  Update call to
29634         convert_for_assignment.
29635         (build_unary_op): Handle increment and decrement of
29636         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
29637         decrement earlier.  Fold operand of increment and decrement.
29638         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
29639         built for integer operand.  Wrap returns that are INTEGER_CSTs
29640         without being integer constant expressions or that have integer
29641         constant operands without being INTEGER_CSTs.
29642         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
29643         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
29644         result is an integer constant expression or can be used in
29645         unevaluated parts of one and avoid folding and wrap as
29646         appropriate.  Fold operands before possibly doing -Wsign-compare
29647         warnings.
29648         (build_compound_expr): Wrap result for C99 if operands can be used
29649         in integer constant expressions.
29650         (build_c_cast): Update call to digest_init.  Do not ignore
29651         overflow from casting floating-point constants to integers.  Wrap
29652         results that could be confused with integer constant expressions,
29653         null pointer constants or floating-point constants.
29654         (c_cast_expr): Update call to groktypename.  Handle expressions
29655         included in type name.
29656         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
29657         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
29658         Update calls to convert_for_assignment.
29659         (convert_for_assignment): Take new parameter
29660         null_pointer_constant.  Do not strip nops or call
29661         decl_constant_value_for_broken_optimization.  Set
29662         in_late_binary_op for conversions to boolean.
29663         (store_init_value): Update call to digest_init.
29664         (digest_init): Take new parameter null_pointer_constant.  Do not
29665         call decl_constant_value_for_broken_optimization.  pedwarn for
29666         initializers not constant expressions.  Update calls to
29667         convert_for_assignment.
29668         (constructor_nonconst): New.
29669         (struct constructor_stack): Add nonconst element.
29670         (really_start_incremental_init, push_init_level, pop_init_level):
29671         Handle constructor_nonconst and nonconst element.
29672         (set_init_index): Call constant_expression_warning for array
29673         designators.
29674         (output_init_element): Fold value.  Set constructor_nonconst as
29675         applicable.  pedwarn for initializers not constant expressions.
29676         Update call to digest_init.  Call constant_expression_warning
29677         where constant initializers are required.
29678         (process_init_element): Use c_save_expr.
29679         (c_finish_goto_ptr): Fold expression.
29680         (c_finish_return): Fold return value.  Update call to
29681         convert_for_assignment.
29682         (c_start_case): Fold switch expression.
29683         (c_process_expr_stmt): Fold expression.
29684         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
29685         ensure statement expression is not evaluated in constant expression.
29686         (build_binary_op): Track whether results are integer constant
29687         expressions or may occur in such, disable folding and wrap results
29688         as applicable.  Fold operands for -Wsign-compare warnings unless
29689         in_late_binary_op.
29690         (c_objc_common_truthvalue_conversion): Handle results folded to
29691         integer constants that are not integer constant expressions.
29692         * doc/extend.texi: Document when typeof operands are evaluated,
29693         that condition of __builtin_choose_expr is an integer constant
29694         expression, and more about use of __builtin_constant_p in
29695         initializers.
29696
29697 2009-03-29  Richard Guenther  <rguenther@suse.de>
29698
29699         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
29700         propagate addresses of array references.
29701
29702 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29703
29704         * regmove.c (perhaps_ends_bb_p): Remove.
29705         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
29706         from INSN and check that the main loop stays within that basic block.
29707         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
29708         (regmove_forward_pass): Split out from regmove_optimize.  Use
29709         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
29710         (regmove_backward_pass): Split out from regmove_optimize.  Use
29711         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
29712         (regmove_optimize): Simplify.
29713
29714 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29715
29716         PR target/39545
29717         * config/i386/i386.c (classify_argument): Ignore flexible array
29718         member in struct and warn ABI change.
29719
29720 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29721
29722         * config/i386/i386-protos.h (ix86_agi_dependent): New.
29723
29724         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
29725         (ix86_adjust_cost): Updated.
29726
29727 2009-03-29  Jan Hubicka  <jh@suse.cz>
29728
29729         PR middle-end/28850
29730         * tree-pass.h (pass_cleanup_eh): New function.
29731         (remove_unreachable_regions): Break code handling RTL
29732         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
29733         that can not be reached by runtime.
29734         (can_be_reached_by_runtime): New function.
29735         (label_to_region_map): New function.
29736         (num_eh_regions): New function.
29737         (rtl_remove_unreachable_regions): New function.
29738         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
29739         (remove_eh_region): New function.
29740         * except.h: Include sbitmap and vecprim.
29741         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
29742         num_eh_regions): Declare.
29743         * passes.c (init_optimization_passes): Schedule cleanup_eh.
29744         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
29745         * tree-eh.c (tree_remove_unreachable_handlers): New function.
29746         (tree_empty_eh_handler_p): New function.
29747         (cleanup_empty_eh): New function.
29748         (cleanup_eh): New function.
29749         (pass_cleanup_eh): New function.
29750
29751 2009-03-29  Jan Hubicka  <jh@suse.cz>
29752
29753         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
29754         for removed regions.
29755
29756 2009-03-29  Jan Hubicka  <jh@suse.cz>
29757
29758         * except.c (dump_eh_tree): Dump all datastructures.
29759
29760 2009-03-29  Jan Hubicka  <jh@suse.cz>
29761
29762         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
29763         (duplicate_eh_regions_1): Likewise.
29764         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
29765         vector; call EH verification.
29766         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
29767         Be ready for region being removed.
29768
29769 2009-03-29  Jan Hubicka  <jh@suse.cz>
29770
29771         * bitmap.c (bitmap_last_set_bit): New function.
29772         * bitmap.h (bitmap_last_set_bit): Declare.
29773
29774 2009-03-29  David Ayers  <ayers@fsfe.org>
29775
29776         PR objc/27377
29777         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
29778         by calling objc_compare_types and surpress warnings about
29779         incompatible C pointers that are compatible ObjC pointers.
29780
29781 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
29782
29783         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
29784         call initialize_inline_failed.
29785         (initialize_inline_failed): Move it from here ...
29786         * cgraph.c (initialize_inline_failed): ... to here.
29787         (cgraph_create_edge): Call initialize_inline_failed rather than
29788         setting inline_failed directly.
29789
29790 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29791
29792         PR target/32542
29793         * sysv4.opt (msdata): Improve comment.
29794         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
29795         * sysv4.h (SVR4_ASM_SPEC): Likewise.
29796
29797 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29798
29799         PR target/30451
29800         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
29801         load and store attributes.
29802
29803 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29804
29805         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
29806         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
29807         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
29808         * doc/extend.texi (X86 Built-in Functions): Add index entries for
29809         __builtin_infq and __builtin_huge_valq.
29810
29811 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
29812
29813         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
29814         atmega8m1 devices.
29815         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29816         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
29817
29818 2009-03-28  Xinliang David Li  <davidxl@google.com>
29819
29820         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
29821         (do_dbg_cnt): New function.
29822
29823 2009-03-28  Jan Hubicka  <jh@suse.cz>
29824
29825         Merge from pretty-ipa:
29826
29827         2009-03-27  Jan Hubicka  <jh@suse.cz>
29828
29829         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29830         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
29831         * passes.c (function_called_by_processed_nodes_p): New.
29832         * ipa-pure-const.c (check_call): Fix handling of operands.
29833         (analyze_function): Dump debug output for skipped bodies.
29834         (local_pure_const): Use function_called_by_processed_nodes_p.
29835         * dwarf2out.c (reference_to_unused): Use output.
29836         * passes.c (do_per_function_toporder): Likewise.
29837
29838         2008-11-12  Jan Hubicka  <jh@suse.cz>
29839
29840         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
29841         * ipa-pure-const.c (funct_state_d): Add can throw field; make
29842         state_set_in_source enum
29843         (check_decl): Ignore memory tags; do not set fake looping flags;
29844         dump diagnostics.
29845         (check_operand, check_tree, check_rhs_var, check_lhs_var,
29846         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
29847         (check_call, analyze_function): Rewrite.
29848         (check_stmt): New.
29849         (add_new_function): Update call of analyze_function.
29850         (generate_summary): Add call of analyze_function.
29851         (propagate): Propagate can_throw; handle state_set_in_source correctly.
29852         (local_pure_const): New function.
29853         (pass_local_pure_const): New pass.
29854         * ipa-inline.c (inline_transform): Set after_inlining.
29855         * tree-eh.c (stmt_can_throw_external): New.
29856         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
29857         work with aliasing built.
29858         * tree-flow.h (stmt_can_throw_external): New.
29859         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
29860         and local pure/const pass in early and late optimization queue.
29861
29862 2009-03-28  Martin Jambor  <mjambor@suse.cz>
29863
29864         * fold-const.c (get_pointer_modulus_and_residue): New parameter
29865         allow_func_align.
29866         (fold_binary): Allow function decl aligment consideration is the
29867         second argument is integer constant one.
29868         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
29869         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
29870         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
29871
29872 2009-03-28  Jan Hubicka  <jh@suse.cz>
29873
29874         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
29875         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
29876         * function.h (rtl_data): Add nothrow flag.
29877         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
29878         set DECL_NOTHROW for AVAILABLE functions.
29879
29880 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
29881
29882         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
29883         following vector keyword has expansion starting with pixel or bool
29884         keyword, expand vector to __vector and pixel or bool to __pixel or
29885         __bool.
29886
29887         PR c++/39554
29888         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
29889         warn_if_disallowed_function_p): Removed.
29890         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
29891         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
29892         warning_if_disallowed_function_p.
29893         * flags.h (warn_if_disallowed_function_p,
29894         warn_disallowed_functions): Removed.
29895         * common.opt (Wdisallowed-function-list=): Removed.
29896         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
29897
29898 2009-03-28  Richard Guenther  <rguenther@suse.de>
29899
29900         PR tree-optimization/38723
29901         * tree-ssa-pre.c (compute_avail): Add all default definitions to
29902         the entry block.
29903
29904 2009-03-28  Jan Hubicka  <jh@suse.cz>
29905
29906         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
29907         test introduced by my previous patch.
29908
29909 2009-03-28  Richard Guenther  <rguenther@suse.de>
29910
29911         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
29912         the PHIs value undefined.
29913
29914 2009-03-28  Jan Hubicka  <jh@suse.cz>
29915
29916         * tree-pass.h (pass_fixup_cfg): New pass.
29917         * ipa-inline.c (inline_transform): Set
29918         always_inline_functions_inlined/after_inlining.
29919         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
29920         (pass_fixup_cfg): New pass.
29921         * passes.c (init_optimization_passes): Add fixup_cfg.
29922
29923 2009-03-28  Richard Guenther  <rguenther@suse.de>
29924
29925         PR tree-optimization/38458
29926         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
29927         argument use the arguments copy-of value.
29928
29929 2009-03-28  Richard Guenther  <rguenther@suse.de>
29930
29931         PR tree-optimization/38180
29932         * tree-ssa-ccp.c (get_default_value): Simplify.
29933         (likely_value): Likewise.
29934         (surely_varying_stmt_p): Properly handle VOP case.
29935         (ccp_initialize): Likewise.
29936         (ccp_fold): Handle propagating through *&.
29937         (fold_const_aggregate_ref): Also handle decls.
29938
29939 2009-03-28  Jan Hubicka  <jh@suse.cz>
29940
29941         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29942         * cgraph.h (cgraph_node): Likewise.
29943         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
29944         (cgraph_reset_node): Use process flag.
29945         (cgraph_mark_functions_to_output): Likewise.
29946         (cgraph_expand_function): Likewise.
29947         (cgraph_expand_all_functions): Likewise.
29948         (cgraph_output_in_order): Likewise.
29949         * dwarf2out.c (reference_to_unused): Likewise.
29950         * passes.c do_per_function_toporder): Likewise.
29951
29952 2009-03-28  Jan Hubicka  <jh@suse.cz>
29953
29954         Bring from lto-branch:
29955
29956         2008-09-03  Doug Kwan  <dougkwan@google.com>
29957
29958         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
29959         enums instead of reason strings.
29960         * cgraph.c (cgraph_create_edge): Same.
29961         (cgraph_inline_failed_string): New function.
29962         * cgraph.h (cgraph_inline_failed_t): New enum type.
29963         (cgraph_inline_failed_string): New prototype.
29964         (struct cgraph_edge): Change type of INLINED_FAILED from constant
29965         char pointer to cgraph_inline_failed_t.
29966         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
29967         (cgraph_default_inline_p): Ditto.
29968         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
29969         to cgraph_inline_failed_t pointer.
29970         * cif-code.def: New file.
29971         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
29972         reason string.
29973         (cgraph_check_inline_limits): Change type of REASON to pointer to
29974         cgraph_inline_failed_t.  Replace reason strings with enums.
29975         (cgraph_default_inline_p): Ditto.
29976         (cgraph_recursive_inlining_p): Ditto.
29977         (update_caller_keys): Change type of FAILED_REASON to
29978         cgraph_inline_failed_t.
29979         (cgraph_set_inline_failed): Change type of REASON to pointer to
29980         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
29981         convert enums to strings for text output.
29982         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
29983         to be of type cgraph_inline_failed_t.  Replace reason strings with
29984         enums.  Call cgraph_inline_failed_string to covert enums
29985         to strings for text output.
29986         (cgraph_decide_inlining): Replace reason strings with enums.
29987         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
29988         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
29989         for text output.
29990         * tree-inline.c (expand_call_inline): Change type of REASON
29991         to cgraph_inline_failed_t.  Replace reason strings with enums.
29992         Call cgraph_inline_failed_string for text output.
29993         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
29994         (cgraph.o): Ditto.
29995
29996 2009-03-28  Jan Hubicka  <jh@suse.cz>
29997
29998         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
29999         cgraph_clone_node): Remove master clone handling.
30000         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30001         * cgraph.h (master_clone): Remove.
30002         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30003         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
30004         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
30005
30006 2009-03-28  Jan Hubicka  <jh@suse.cz>
30007
30008         * cgraph.c (cgraph_function_body_availability): Functions declared
30009         inline are always safe to assume that it is not going to be replaced.
30010
30011 2009-03-28  Richard Guenther  <rguenther@suse.de>
30012
30013         PR tree-optimization/38513
30014         * tree-ssa-pre.c (eliminate): Remove redundant stores.
30015         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
30016         EXC_PTR_EXPR and FILTER_EXPR.
30017         (get_ref_from_reference_ops): Likewise.
30018
30019 2009-03-28  Richard Guenther  <rguenther@suse.de>
30020
30021         PR tree-optimization/38968
30022         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
30023         Use FLOOR_MOD_EXPR to compute misalignment.
30024
30025 2009-03-28  Richard Guenther  <rguenther@suse.de>
30026
30027         PR tree-optimization/37795
30028         * tree.h (combine_comparisons): Declare.
30029         * fold-const.c (combine_comparisons): Export.
30030         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
30031         comparisons.
30032         (ifcombine_iforif): Use combine_comparisons.
30033
30034 2009-03-28  Jan Hubicka  <jh@suse.cz>
30035
30036         * tree-eh.c (inlinable_call_p): New function.
30037         (make_eh_edges): Use it.
30038         (verify_eh_edges): Use it.
30039         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
30040         * except.c (reachable_next_level): Add inlinable_function argument
30041         (sjlj_find_directly_reachable_regions): Update.
30042         (add_reachable_handler): Do not set saw_any_handlers.
30043         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
30044         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30045         Add new inlinable call parameter.
30046         (can_throw_internal, can_throw_external): Update.
30047         * except.h (can_throw_internal_1, can_throw_external_1,
30048         foreach_reachable_handler): Update declaration.
30049
30050 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
30051
30052         * config/arm/t-arm-coff, config/h8300/coff.h,
30053         config/i386/i386-aout.h, config/i386/i386-coff.h,
30054         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
30055         config/pdp11/2bsd.h, config/rs6000/aix41.h,
30056         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
30057         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
30058         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
30059         sys-types.h: Remove.
30060         * Makefile.in: Remove protoize and fixproto support and references
30061         in comments.
30062         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
30063         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
30064         Remove.
30065         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
30066         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
30067         unprotoize$(exeext).
30068         (rest.encap): Don't depend on $(STMP_FIXPROTO)
30069         (.PHONY): Don't depend on proto.
30070         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
30071         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
30072         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
30073         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
30074         build/gen-protos.o, build/scan.o, xsys-protos.h,
30075         build/fix-header$(build_exeext), build/fix-header.o,
30076         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
30077         stmp-install-fixproto): Remove.
30078         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
30079         SYSCALLS.c or fixproto files.
30080         (install-common): Don't install protoize.
30081         (install-headers-tar, install-headers-cpio, install-headers-cp):
30082         Don't depend on $(STMP_FIXPROTO).
30083         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
30084         install fixproto files or write out fixproto settings.
30085         (uninstall): Don't uninstall protoize.
30086         * config.gcc (use_fixproto): Remove.
30087         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
30088         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
30089         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
30090         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
30091         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
30092         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
30093         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
30094         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
30095         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
30096         * config/t-vxworks (STMP_FIXPROTO): Remove.
30097         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
30098         STMP_FIXPROTO): Remove.
30099         * config.in, configure: Regenerate.
30100         * crtstuff.c (gid_t, uid_t): Don't undefine.
30101         * doc/install.texi: Change m68k-coff to m68k-elf in example.
30102         (arm-*-coff, arm-*-aout: Remove target entries.
30103         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
30104         Remove mention of AIX 4.1.
30105         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
30106         * doc/invoke.texi (Running Protoize): Remove.
30107         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
30108         (Protoize Caveats): Remove.
30109         * tsystem.h: Update comments on headers assumed to exist.
30110
30111 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30112
30113         * genautomata.c: Add a new year to the copyright.  Add a new
30114         reference.
30115         (struct insn_reserv_decl): Add comments for member bypass_list.
30116         (find_bypass): Remove.
30117         (insert_bypass): New.
30118         (process_decls): Use insert_bypass.
30119         (output_internal_insn_latency_func): Output all bypasses with the
30120         same input insn in one switch case.
30121
30122         * rtl.def (define_bypass): Describe bypass choice.
30123         * doc/md.texi (define_bypass): Ditto.
30124
30125 2009-03-27  Richard Guenther  <rguenther@suse.de>
30126
30127         * gimplify.c (mark_addressable): Export.
30128         * tree-flow.h (mark_addressable): Declare.
30129         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
30130         * tree-ssa.c (verify_phi_args): Verify that address taken
30131         variables have TREE_ADDRESSABLE set.
30132
30133 2009-03-27  Richard Guenther  <rguenther@suse.de>
30134
30135         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
30136         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
30137         Do not mark decls TREE_ADDRESSABLE.
30138         (build_fold_addr_expr): Adjust.
30139         (fold_addr_expr): Remove.
30140         (fold_unary): Use build_fold_addr_expr.
30141         (fold_comparison): Likewise.
30142         (split_address_to_core_and_offset): Likewise.
30143         * coverage.c (tree_coverage_counter_addr): Mark the array decl
30144         TREE_ADDRESSABLE.
30145         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
30146         (gimplify_modify_expr_to_memcpy): Mark source and destination
30147         addressable.
30148         * omp-low.c (create_omp_child_function): Mark the object decl
30149         TREE_ADDRESSABLE.
30150         (lower_rec_input_clauses): Mark the var we take the address of
30151         TREE_ADDRESSABLE.
30152         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
30153
30154 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30155
30156         PR middle-end/39315
30157         * cfgexpand.c (expand_one_stack_var_at): Change alignment
30158         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
30159
30160 2009-03-27  Richard Guenther  <rguenther@suse.de>
30161
30162         PR tree-optimization/39120
30163         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
30164         constraints.
30165         (handle_lhs_call): Process return constraints.  Add escape
30166         constraints if necessary.
30167         (handle_const_call): Fill out return constraints.  Make nested
30168         case more precise.  Avoid consttmp if possible.
30169         (handle_pure_call): Fill out return constraints.  Avoid
30170         callused if possible.
30171         (find_func_aliases): Simplify call handling.
30172
30173 2009-03-27  Richard Guenther  <rguenther@suse.de>
30174
30175         PR tree-optimization/39120
30176         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
30177         as a representative.
30178         (solve_graph): Do propagate CALLUSED.
30179         (handle_pure_call): Use a scalar constraint from CALLUSED for
30180         the return value.
30181         (find_what_p_points_to): CALLUSED shall not appear in poins-to
30182         solutions.
30183
30184 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30185
30186         PR c/39323
30187         * c-common.c (handle_aligned_attribute): Properly check alignment
30188         overflow.  Use (1U << i) instead of (1 << i).
30189
30190         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
30191
30192         * expr.h (get_mem_align_offset): Updated.
30193
30194         * tree.h (tree_decl_common): Change align to "unsigned int" and
30195         move it before pointer_alias_set.
30196
30197 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30198             Jakub Jelinek  <jakub@redhat.com>
30199
30200         PR target/38034
30201         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
30202         gr_register_operand with gr_reg_or_0_operand.
30203         (cmpxchg_rel_di): Likewise.
30204         (sync_lock_test_and_set<mode>): Likewise.
30205
30206 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30207
30208         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
30209         (true_regnum): Likewise.
30210
30211         * rtlanal.c (subreg_info): Moved to ...
30212         * rtl.h (subreg_info): Here.  New.
30213         (subreg_get_info): New.
30214
30215         * rtlanal.c (subreg_get_info): Make it extern.
30216
30217 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30218
30219         PR target/39472
30220         * config/i386/i386.c (ix86_abi): New.
30221         (override_options): Handle -mabi=.
30222         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
30223         (ix86_call_abi_override): Likewise.
30224         (init_cumulative_args): Likewise.
30225         (function_arg_advance): Likewise.
30226         (function_arg_64): Likewise.
30227         (function_arg): Likewise.
30228         (ix86_pass_by_reference): Likewise.
30229         (ix86_function_value_regno_p): Likewise.
30230         (ix86_build_builtin_va_list_abi): Likewise.
30231         (setup_incoming_varargs_64): Likewise.
30232         (is_va_list_char_pointer): Likewise.
30233         (ix86_init_machine_status): Likewise.
30234         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
30235         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
30236         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
30237         (ix86_function_abi): Make it static and return enum calling_abi.
30238         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
30239         with ix86_abi.
30240         (ix86_fn_abi_va_list): Updated.
30241
30242         * config/i386/i386.h (ix86_abi): New.
30243         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
30244         (CONDITIONAL_REGISTER_USAGE): Likewise.
30245         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
30246         (machine_function): Likewise.
30247
30248         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
30249         with ix86_abi.
30250         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
30251         (STACK_BOUNDARY): Likewise.
30252         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
30253
30254         * config/i386/i386.opt (mabi=): New.
30255
30256         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
30257         return enum calling_abi.
30258         (ix86_function_type_abi): Likewise.
30259         (ix86_function_abi): Removed.
30260
30261         * doc/invoke.texi: Document -mabi= option for x86.
30262
30263 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30264
30265         * builtins.c (real_dconstp): Delete.
30266         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
30267
30268 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
30269             Jakub Jelinek  <jakub@redhat.com>
30270
30271         PR debug/37959
30272         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
30273         (gen_subprogram_die): When a function is explicit, generate the
30274         DW_AT_explicit attribute.
30275         * langhooks.h (struct lang_hooks_for_decls): Add
30276         function_decl_explicit_p langhook.
30277         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
30278         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
30279
30280 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
30281
30282         * builtins.c (fold_builtin_memory_op): Optimize memmove
30283         into memcpy if we can prove source and destination don't overlap.
30284
30285         * tree-inline.c: Include gt-tree-inline.h.
30286         (clone_fn_id_num): New variable.
30287         (clone_function_name): New function.
30288         (tree_function_versioning): Use it.
30289         * Makefile.in (GTFILES): Add tree-inline.c.
30290
30291 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
30292
30293         * BASE-VER: Change to 4.5.0.
30294
30295 2009-03-27  Xinliang David Li  <davidxl@google.com>
30296
30297         PR tree-optimization/39557
30298         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
30299
30300 2009-03-27  Xinliang David Li  <davidxl@google.com>
30301
30302         PR tree-optimization/39548
30303         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
30304         candidate check.
30305
30306 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30307
30308         * c-common.c (pointer_int_sum): Use %wd on return from
30309         tree_low_cst.
30310
30311 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30312
30313         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
30314         on return from tree_low_cst.
30315
30316 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30317
30318         PR c++/36799
30319         * ginclude/stdarg.h (va_copy): Define also for
30320         __GXX_EXPERIMENTAL_CXX0X__.
30321
30322 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
30323
30324         PR c++/35652
30325         * builtins.h (c_strlen): Do not warn here.
30326         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
30327         * c-common.c (pointer_int_sum): Take an explicit location.
30328         Warn about offsets out of bounds.
30329         * c-common.h (pointer_int_sum): Adjust declaration.
30330
30331 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30332
30333         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
30334         markup glitch.
30335
30336 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
30337
30338         PR c++/39554
30339         * opts.c (warn_if_disallowed_function_p): Don't assume
30340         get_callee_fndecl must return non-NULL.
30341
30342 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
30343
30344         PR rtl-optimization/39522
30345         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
30346         when reg_reloaded_valid is set.
30347
30348 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30349
30350         * config/spu/divv2df3.c: New file.
30351         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
30352         (DPBIT_FUNCS): Filter out _div_df.
30353
30354 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
30355
30356         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
30357         a jump insn, count that jump in the distance to the loop start.
30358
30359 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30360
30361         PR target/39523
30362         * config/sh/sh.c (calc_live_regs): Fix condition for global
30363         registers except PIC_OFFSET_TABLE_REGNUM.
30364
30365 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
30366
30367         PR/39518
30368         * doc/invoke.texi (-mconsole): New.
30369         (-mcygwin): New.
30370         (-mno-cygwin): New.
30371         (-mdll): New.
30372         (-mnop-fun-dllimport): New.
30373         (-mthread): New.
30374         (-mwin32): New.
30375         (-mwindows): New.
30376         (sub section "i386 and x86-64 Windows Options"): New.
30377
30378 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
30379
30380         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
30381         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
30382
30383 2009-03-25  Richard Guenther  <rguenther@suse.de>
30384
30385         PR middle-end/39497
30386         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
30387         of -Wno-error.
30388
30389 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
30390
30391         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
30392         neither of haifa/selective schedulers are working.
30393
30394 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30395
30396         * doc/invoke.texi (Debugging Options): Fix description of
30397         -fno-merge-debug-strings.
30398
30399 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
30400
30401         * config/cris/libgcc.ver: New version-script.
30402         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
30403
30404         * configure.ac <GAS features, nop mnemonic>: Add pattern
30405         crisv32-*-* for "nop".
30406         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
30407         * configure: Regenerate.
30408
30409 2009-03-24  Ira Rosen  <irar@il.ibm.com>
30410
30411         PR tree-optimization/39529
30412         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
30413         mark_sym_for_renaming for the tag copied to the new vector
30414         pointer.
30415
30416 2009-03-24  Arthur Loiret  <aloiret@debian.org>
30417
30418         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
30419         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
30420         EXTRA_SPEC_FUNCTIONS.
30421         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
30422         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
30423         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
30424         -march and -mtune options.
30425
30426 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
30427
30428         * config/m68k/t-rtems: Add m5329 multilib.
30429
30430 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
30431             Jakub Jelinek  <jakub@redhat.com>
30432
30433         PR debug/39524
30434         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
30435         nodes.
30436
30437 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30438
30439         PR c/39495
30440         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
30441         instead of c_parser_expression_conv, if original_code isn't one of the
30442         4 allowed comparison codes, fail.
30443
30444 2009-03-23  Richard Guenther  <rguenther@suse.de>
30445
30446         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
30447         * tree.h (struct tree_type): Likewise.
30448         * reload.h (struct insn_chain): Likewise.
30449         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
30450         * function.h (struct function): Likewise.
30451         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
30452
30453 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30454
30455         PR tree-optimization/39516
30456         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
30457
30458 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
30459
30460         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
30461         should be set true if BITS_PER_WORD of target is bigger than 32
30462
30463 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
30464
30465         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
30466         Translate -B-options to -rpath-link.  Correct existing
30467         rpath-link and conditionalize on !nostdlib.
30468
30469 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30470
30471         * doc/extend.texi (Function Attributes, Variable Attributes):
30472         Fix typos.
30473         * doc/invoke.texi (Debugging Options, Optimize Options)
30474         (i386 and x86-64 Options, MCore Options): Likewise.
30475
30476 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
30477
30478         PR debug/37890
30479         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
30480         it for block local namespace aliases.
30481         (gen_decl_die): Pass context_die to gen_namespace_die.
30482
30483 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30484
30485         PR c/39495
30486         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
30487         minimum or maximum value.
30488
30489 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
30490
30491         * reginfo.c (globalize_reg): Recompute derived reg sets.
30492
30493 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
30494
30495         PR target/39063
30496         * libgcc2.c (mprotect): Do not use signed arguments for
30497         VirtualProtect, use DWORD arguments.  Also fix the 'may
30498         be used uninitialized' warning for the np variable.
30499
30500 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30501
30502         PR target/39496
30503         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
30504         functions using regparm calling conventions when not optimizing.
30505         (ix86_function_sseregparm): Similarly for sseregparm calling
30506         conventions.
30507
30508 2009-03-19  Li Feng  <nemokingdom@gmail.com>
30509
30510         PR middle-end/39500
30511         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
30512         dependence if the first conflict is after niter iterations.
30513
30514 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
30515
30516         PR middle-end/38609
30517         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
30518         functions with dynamic stack-pointer adjustments.
30519
30520 2009-03-19  Ben Elliston  <bje@au.ibm.com>
30521
30522         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
30523         option; change to -msdata=data.
30524
30525 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30526
30527         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
30528         and -fopenmp.
30529
30530 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30531
30532         PR target/35180
30533         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
30534
30535 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
30536
30537         * doc/invoke.texi (Code Gen Options): Expand discussion of
30538         -fno-common.
30539
30540 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
30541
30542         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
30543         * matrix-reorg.c (struct matrix_info): Likewise.
30544         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
30545         * rtl.h (struct mem_attrs): Likewise.
30546         * df.h (struct df): Likewise.
30547         * tree-data-ref.h (struct data_dependence_relation): Likewise.
30548         * ira-int.h (struct ira_allocno): Likewise.
30549         * df-scan.c (struct df_collection_rec): Likewise.
30550         * ira.c (struct equivalence): Likewise.
30551         * function.c (struct temp_slot): Likewise.
30552         * cfgloop.h (struct loop): Likewise.
30553
30554         PR debug/39485
30555         * function.c (use_register_for_decl): When not optimizing, disregard
30556         register keyword for variables with types containing methods.
30557
30558 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
30559
30560         PR middle-end/39447
30561         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
30562         (is_simple_operand): Call contains_component_ref_p before calling data
30563         reference analysis that would fail on COMPONENT_REFs.
30564
30565         * tree-vrp.c (search_for_addr_array): Fix formatting.
30566
30567 2009-03-18  Richard Guenther  <rguenther@suse.de>
30568
30569         * tree-vect-transform.c (vect_loop_versioning): Fold the
30570         generated comparisons.
30571         * tree-vectorizer.c (set_prologue_iterations): Likewise.
30572         (slpeel_tree_peel_loop_to_edge): Likewise.
30573
30574 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30575
30576         PR middle-end/37805
30577         * opts.c (print_specific_help): In addition to `undocumented',
30578         accept `separate' and `joined' flags if passed alone.  Describe
30579         output by the first matched one of those.
30580         (common_handle_option): Skip over empty strings.
30581         * gcc.c (display_help): Fix help string for `--help='.
30582         * doc/invoke.texi (Option Summary, Overall Options): With
30583         `--help=', classes and qualifiers can both be repeated, but
30584         only the latter can be negated.  One should not pass only
30585         negated qualifiers.  Fix markup and examples.
30586
30587         Revert
30588         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
30589         PR middle-end/37805
30590         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
30591         and -fhelp=separate.
30592
30593 2009-03-17  Jing Yu  <jingyu@google.com>
30594
30595         PR middle-end/39378
30596         * function.h (struct rtl_data): Move is_thunk from here...
30597         (struct function): ...to here.
30598         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
30599         * varasm.c (assemble_start_function): Change is_thunk from crtl to
30600         cfun.
30601         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
30602         cfun.
30603         (alpha_does_function_need_gp, alpha_start_function): Likewise.
30604         (alpha_output_function_end_prologue): Likewise.
30605         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
30606         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
30607         (rs6000_output_function_epilogue): Likewise.
30608         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
30609
30610 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
30611
30612         PR target/39482
30613         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
30614         from different units in a single alternative.
30615         (*truncdfsf_i387): Ditto.
30616         (*truncxfsf2_mixed): Ditto.
30617         (*truncxfdf2_mixed): Ditto.
30618
30619 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
30620
30621         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
30622         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
30623
30624         PR debug/39474
30625         * tree-ssa-live.c (remove_unused_locals): Don't remove local
30626         unused non-artificial variables when not optimizing.
30627
30628         PR debug/39471
30629         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
30630         DW_TAG_imported_module even if decl is IMPORTED_DECL with
30631         NAMESPACE_DECL in its DECL_INITIAL.
30632
30633         PR middle-end/39443
30634         * optabs.c (set_user_assembler_libfunc): New function.
30635         * expr.h (set_user_assembler_libfunc): New prototype.
30636         * c-common.c: Include libfuncs.h.
30637         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
30638         for memcmp, memset, memcpy, memmove and abort.
30639         * Makefile.in (c-common.o): Depend on libfuncs.h.
30640
30641         PR debug/39412
30642         * dwarf2out.c (gen_inlined_enumeration_type_die,
30643         gen_inlined_structure_type_die, gen_inlined_union_type_die,
30644         gen_tagged_type_instantiation_die): Removed.
30645         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
30646         do nothing.
30647
30648 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
30649
30650         PR testsuite/38526
30651         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
30652         its use.
30653         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
30654         (check-parallel-%): Ditto.
30655         (check-consistency): Ditto.
30656
30657 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
30658
30659         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
30660         local variable rhs by NULL_TREE.
30661
30662 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30663
30664         PR target/39477
30665         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
30666
30667 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30668
30669         PR target/39476
30670         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
30671
30672 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30673
30674         PR target/39473
30675         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
30676         for ms->sysv ABI calls only in 64bit mode.
30677
30678         * config/i386/i386.md (untyped_call): Support 32bit.
30679
30680 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30681
30682         * doc/extend.texi: Replace x86_65 with x86_64.
30683
30684 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
30685
30686         PR tree-optimization/39455
30687         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
30688         mismatches for POINTER_TYPE_P (type).
30689         (number_of_iterations_le): Likewise.
30690
30691 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30692
30693         * config/picochip/picochip.c: Removed profiling support.
30694         * config/picochip/picochip.md: Removed profiling instruction.
30695         * config/picochip/picochip.h: Removed profiling builtin.
30696
30697 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
30698
30699         * doc/install.texi (--with-host-libstdcxx): Document.
30700
30701 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
30702
30703         PR target/34299
30704         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
30705         generate a warning if the function name does not begin with
30706         "__vector" and the function has either the 'signal' or 'interrupt'
30707         attribute, from here to ...
30708         (avr_declare_function_name): ...here. New function.
30709         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
30710         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
30711
30712 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
30713
30714         PR bootstrap/39454
30715         * cse.c (fold_rtx): Don't modify original const_arg1 when
30716         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
30717         separate variable instead.
30718         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
30719         from out of range shift counts.
30720         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
30721
30722 2009-03-13  Catherine Moore  <clm@codesourcery.com>
30723
30724         * config/i386/x-mingw32 (host-mingw32.o): Replace
30725         diagnostic.h with $(DIAGNOSTIC_H).
30726
30727 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
30728
30729         PR target/39431
30730         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
30731         predicate.
30732         * config/i386/sync.md (sync_compare_and_swap<mode>,
30733         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
30734         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
30735         into a register.
30736         (sync_double_compare_and_swapdi_pic,
30737         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
30738         cmpxchg8b_pic_memory_operand instead of just memory_operand.
30739
30740 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30741
30742         PR target/39445
30743         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
30744
30745 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30746
30747         PR target/39327
30748         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
30749         (avx_addsubv4df3): Likewise.
30750         (*avx_addsubv4sf3): Likewise.
30751         (sse3_addsubv4sf3): Likewise.
30752
30753 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30754
30755         PR target/38824
30756         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
30757
30758 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
30759
30760         PR debug/39432
30761         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
30762         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
30763         registers for allocnos created from user-defined variables.
30764
30765 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30766
30767         PR target/39181
30768         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
30769         of non-integer mode as well.
30770
30771 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
30772
30773         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
30774         for functions for which the parameter types are unknown.
30775
30776 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
30777
30778         PR target/39137
30779         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
30780         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
30781         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
30782         * config/i386/i386.c (ix86_local_alignment): For
30783         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
30784         long long variables on the stack to avoid dynamic realignment.
30785         Allow the first argument to be a decl rather than type.
30786         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
30787
30788 2009-03-11  Nick Clifton  <nickc@redhat.com>
30789
30790         PR target/5362
30791         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
30792         options.
30793         Add description to mno-lsim option.
30794         * config/mcore/mcore.h: Remove comment about deprecated m4align
30795         option.
30796         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
30797         * doc/invoke.texi: Add description of mno-lsim and
30798         mstack-increment options.
30799
30800         * config/fr30/fr30.opt: Document the -mno-lsim option.
30801         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
30802         and -mno-lsim options.
30803
30804 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30805
30806         * fold-const.c (fold_comparison): Only call fold_inf_compare
30807         if the mode supports infinities.
30808
30809 2009-03-11  Jason Merrill  <jason@redhat.com>
30810
30811         PR debug/39086
30812         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
30813         end already did.  Notice GIMPLE_CALL modifications of the result.
30814         Don't copy debug information from an ignored decl or a decl from
30815         another function.
30816
30817 2009-03-10  Richard Guenther  <rguenther@suse.de>
30818             Nathan Froyd  <froydnj@codesourcery.com>
30819
30820         PR middle-end/37850
30821         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
30822         (__divMODE3): Likewise.
30823
30824 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
30825
30826         PR tree-optimization/39394
30827         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
30828         DECL_SIZE_UNIT of variable length FIELD_DECLs.
30829
30830 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30831
30832         * recog.c (verfiy_changes): Disallow renaming of hard regs in
30833         inline asms for register asm ("") declarations.
30834
30835 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
30836
30837         * fold-const.c (fold_unary): Fix comment.
30838
30839 2009-03-07  Jan Hubicka  <jh@suse.cz>
30840
30841         PR target/39361
30842         * tree-inline.c (setup_one_parameter): Do replacement of const
30843         argument by constant in SSA form.
30844
30845 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30846
30847         PR middle-end/38028
30848         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
30849         determine alignment passed to assign_stack_local.
30850         (assign_parms_unsplit_complex): Likewise.
30851         * except.c (sjlj_build_landing_pads): Likewise.
30852
30853 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
30854
30855         PR middle-end/39360
30856         * tree-flow.h (add_referenced_var): Return bool instead of void.
30857         * tree-dfa.c (add_referenced_var): Return result of
30858         referenced_var_check_and_insert call.
30859         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
30860         of referenced_var_check_and_insert.
30861
30862         PR debug/39372
30863         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
30864         (gen_variable_die): Emit DW_AT_location on abstract static variable's
30865         DIE, don't emit it if abstract origin already has it.
30866         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
30867         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
30868
30869 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30870
30871         * genpreds.c (needs_variable): Fix parentheses at variable name
30872         detection.
30873         (write_tm_constrs_h): Indent generated code.
30874
30875 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30876
30877         * doc/extend.texi (Function Attributes): Add documentation
30878         for isr attributes.
30879
30880 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
30881
30882         PR debug/39387
30883         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
30884         take locus from its DECL_SOURCE_LOCATION instead of input_location.
30885
30886 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
30887
30888         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
30889         the loop as bad.
30890
30891 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
30892
30893         PR debug/39379
30894         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
30895         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
30896
30897 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
30898
30899         * config/i386/i386.md (R8_REG, R9_REG): New constants.
30900         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
30901         constants instead of magic numbers.
30902         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
30903         (QI_REG_P): Ditto.
30904         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
30905         (x86_64_ms_abi_int_parameter_registers): Ditto.
30906         (x86_64_int_return_registers): Ditto.
30907         (ix86_maybe_switch_abi): Ditto.
30908         (ix86_expand_call): Ditto for clobbered_registers array.
30909         (ix86_hard_regno_mode_ok): Ditto.
30910         (x86_extended_QIreg_mentioned_p): Ditto.
30911
30912 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
30913
30914         PR tree-optimization/39349
30915         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
30916
30917         * combine.c (gen_lowpart_for_combine): Use omode when generating
30918         clobber.
30919
30920 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
30921
30922         PR rtl-optimization/39235
30923         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
30924
30925 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
30926
30927         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
30928
30929 2009-03-04  Richard Guenther  <rguenther@suse.de>
30930
30931         PR tree-optimization/39362
30932         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
30933         that occur in abnormal PHIs should be varying.
30934
30935 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
30936
30937         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
30938         Extend comments.
30939         (simple_iv):  Take loop as an argument instead of statement.
30940         * tree-scalar-evolution.h (simple_iv): Declaration changed.
30941         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
30942         to simple_iv.
30943         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
30944         Ditto.
30945         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
30946         * matrix-reorg.c (analyze_transpose): Ditto.
30947         * tree-data-ref.c (dr_analyze_innermost): Ditto.
30948         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
30949         * tree-predcom.c (ref_at_iteration): Ditto.
30950         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
30951
30952 2009-03-04  Richard Guenther  <rguenther@suse.de>
30953
30954         PR tree-optimization/39358
30955         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
30956         escaped_id and callused_id.
30957         (solve_graph): Likewise.
30958
30959 2009-03-04  Richard Guenther  <rguenther@suse.de>
30960
30961         PR tree-optimization/39339
30962         * tree-sra.c (try_instantiate_multiple_fields): Make it
30963         no longer ICE on the above.
30964
30965 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
30966
30967         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
30968         that fits within Pmode.
30969
30970 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
30971
30972         PR middle-end/10109
30973         * tm.texi (LIBCALL_VALUE): Update description.
30974
30975 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
30976
30977         PR middle-end/34443
30978         * doc/extend.texi (section): Update description.
30979
30980 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
30981
30982         PR middle-end/39345
30983         * tree-inline.c (remapped_type): New.
30984         (can_be_nonlocal): Call remapped_type instead of remap_type.
30985
30986 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
30987
30988         PR fortran/39354
30989         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
30990         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
30991
30992 2009-03-03  Richard Guenther  <rguenther@suse.de>
30993
30994         PR middle-end/39272
30995         * tree.c (tree_nonartificial_location): New function.
30996         * tree.h (tree_nonartificial_location): Declare.
30997         * builtins.c (expand_builtin_memory_chk): Provide location
30998         of the call location for artificial function pieces.
30999         (maybe_emit_chk_warning): Likewise.
31000         (maybe_emit_sprintf_chk_warning): Likewise.
31001         (maybe_emit_free_warning): Likewise.
31002         * expr.c (expand_expr_real_1): Likewise.
31003
31004 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31005
31006         PR tree-optimization/39343
31007         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
31008         COMPONENT_REF t has ARRAY_TYPE.
31009
31010 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
31011
31012         PR middle-end/39335
31013         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
31014         when the type precision of the induction variable should be
31015         larger than the type precision of nit.
31016         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
31017         * graphite.c (graphite_loop_normal_form): Same.
31018         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
31019
31020 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31021
31022         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
31023         (*call_1_rex64_ms_sysv): Use named constants instead of magic
31024         numbers to describe clobbered registers.
31025         (*call_value_0_rex64_ms_sysv): Ditto.
31026         * config/i386/mmx.md (mmx_emms): Ditto.
31027         (mmx_femms): Ditto.
31028
31029 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
31030
31031         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
31032         of ABI_64.
31033
31034 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31035
31036         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
31037         (spu_section_type_flags): New function.
31038
31039 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31040
31041         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
31042         reg_class_contents of FLOAT_REGS into a temporary.
31043
31044 2009-03-02  Richard Guenther  <rguenther@suse.de>
31045             Ira Rosen  <irar@il.ibm.com>
31046
31047         PR tree-optimization/39318
31048         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
31049         information to the vectorized statement.
31050
31051 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
31052
31053         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
31054         variable.  Use defined names instead of magic constants for REX SSE
31055         registers.
31056
31057 2009-03-01  Richard Guenther  <rguenther@suse.de>
31058
31059         PR tree-optimization/39331
31060         * omp-low.c (lower_send_shared_vars): Do not receive new
31061         values for the reference of DECL_BY_REFERENCE parms or results.
31062
31063 2009-03-01  Jan Hubicka  <jh@suse.cz>
31064
31065         PR debug/39267
31066         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
31067         BLOCK_NONLOCALIZED_VAR): New macros.
31068         (tree_block): Add nonlocalized_vars.
31069         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
31070         gen_decl_die): Add origin argument.  Allow generation of die with
31071         origin at hand only.
31072         (gen_member_die, gen_type_die_with_usage, force_decl_die,
31073         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
31074         of gen_*.
31075         (gen_block_die): Fix checking for unused blocks.
31076         (process_scope_var): Break out from .... ; work with origins only.
31077         (decls_for_scope) ... here; process nonlocalized list.
31078         (dwarf2out_ignore_block): Look for nonlocalized vars.
31079         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
31080         vars.
31081         (dump_scope_block): Dump them.
31082         * tree-inline.c (remap_decls): Handle nonlocalized vars.
31083         (remap_block): Likewise.
31084         (can_be_nonlocal): New predicate.
31085         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
31086
31087 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31088
31089         * configure: Regenerate.
31090
31091 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31092
31093         * optc-gen.awk: No need to duplicate option flags twice.
31094         Reuse help texts for duplicate options which do not have any.
31095
31096         * gcc.c (display_help): Document --version.
31097
31098         * gcc.c (main): If print_help_list and verbose_flag, ensure
31099         driver output comes before subprocess output.
31100
31101         * optc-gen.awk: Assign all remaining fields to help string,
31102         space-separated, for multi-line help in *.opt.
31103
31104         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
31105         -Wno-pedantic-ms-format is for MinGW targets only.
31106
31107         * doc/options.texi (Option file format): Fix bad indentation,
31108         restoring dropped sentence.
31109
31110 2009-02-28  Jan Hubicka  <jh@suse.cz>
31111
31112         * tree-inline.c (tree_function_versioning): Output debug info.
31113
31114 2009-02-28  Jan Hubicka  <jh@suse.cz>
31115
31116         PR debug/39267
31117         * tree-inline.c (setup_one_parameter): Do not copy propagate
31118         arguments when not optimizing.
31119
31120 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31121
31122         PR target/39327
31123         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31124         (avx_addsubv4df3): Likewise.
31125         (*avx_addsubv4sf3): Likewise.
31126         (sse3_addsubv4sf3): Likewise.
31127         (*avx_addsubv2df3): Likewise.
31128         (sse3_addsubv2df3): Likewise.
31129         (avx_unpckhps256): Correct item selectors.
31130         (avx_unpcklps256): Likewise.
31131         (avx_unpckhpd256): Likewise.
31132         (avx_unpcklpd256): Likewise.
31133
31134 2009-02-28  Jan Hubicka  <jh@suse.cz>
31135
31136         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
31137         static vars.
31138         (copy_arguments_for_versioning): If var is declared don't declare it.
31139         (tree_function_versioning): First setup substitutions and then copy
31140         args.
31141
31142 2009-02-27  Jan Hubicka  <jh@suse.cz>
31143
31144         PR debug/39267
31145         * cgraph.h (varpool_output_debug_info): Remove.
31146         * cgraphunit.c (varpool_output_debug_info): Remove.
31147         * dwarf2out.c (deferred_locations_struct): New struct
31148         (deferred_locations): New type.
31149         (deferred_locations_list): New static var.
31150         (deffer_location): New function.
31151         (gen_variable_die): Use it.
31152         (decls_for_scope): Output info on local static vars.
31153         (dwarf2out_finish): Process deferred locations.
31154         * varpool.c (varpool_output_debug_info): Remove.
31155
31156 2009-02-27  Jan Hubicka  <jh@suse.cz>
31157
31158         PR debug/39267
31159         * tree.h (TREE_PROTECTED): Fix comment.
31160         (BLOCK_HANDLER_BLOCK): Remove.
31161         (struct tree_block): Remove handler_block add body_block.
31162         (inlined_function_outer_scope_p): New.
31163         (is_body_block): Remove.
31164         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
31165         * dwarf2out.c (is_inlined_entry_point): Remove.
31166         (add_high_low_attributes): Use inlined_function_outer_scope_p.
31167         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
31168         code.
31169         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
31170         * gimplify.c (gimplify_expr): Gimplify body blocks.
31171         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
31172         block with multiple subblocks.
31173         (dump_scope_block): Prettier output; dump more flags and info.
31174         (dump_scope_blocks): New.
31175         (remove_unused_locals): Use dump_scope_blocks.
31176         * tree-flow.h (dump_scope_blocks): Declare.
31177         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
31178         * stmt.c (is_body_block): Remove.
31179         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
31180         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
31181
31182 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
31183
31184         PR middle-end/39308
31185         * graphite.c (graphite_loop_normal_form): Do not call
31186         number_of_iterations_exit from a gcc_assert.
31187
31188 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31189
31190         * config/s390/s390.c (s390_swap_cmp): Look for conditional
31191         jumps if COND is NULL.
31192         (find_cond_jump): New function.
31193         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
31194         * config/s390/s390.md: Remove z10_cobra attribute value.
31195
31196 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
31197
31198         * config/alpha/alpha.h (alpha_expand_mov): Return false if
31199         force_const_mem returns NULL_RTX.
31200
31201 2009-02-26  Jan Hubicka  <jh@suse.cz>
31202
31203         PR debug/39267
31204         * cgraph.h (varpool_output_debug_info): Remove.
31205         * cgraphunit.c (varpool_output_debug_info): Remove.
31206         * dwarf2out.c (deferred_locations_struct): New struct
31207         (deferred_locations): New type.
31208         (deferred_locations_list): New static var.
31209         (deffer_location): New function.
31210         (gen_variable_die): Use it.
31211         (decls_for_scope): Output info on local static vars.
31212         (dwarf2out_finish): Process deferred locations.
31213         * varpool.c (varpool_output_debug_info): Remove.
31214
31215 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31216
31217         PR rtl-optimization/39241
31218         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
31219         to subreg_offset_representable_p.
31220
31221 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31222
31223         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
31224         execute function prototype.  Get f and nregs from max_reg_num
31225         and get_insns.  Remove the first backward pass as it's dead,
31226         guard the forward pass by flag_expensive_optimizations.
31227         (rest_of_handle_regmove): Delete.
31228         (pass_regmove): Replace it with regmove_optimize.
31229
31230 2009-02-25  Martin Jambor  <mjambor@suse.cz>
31231
31232         PR tree-optimization/39259
31233         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
31234         calls_alloca function flags.
31235         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
31236         calls are detected.
31237
31238 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31239
31240         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
31241         flags_set_1_rtx, flags_set_1_set): Delete.
31242         (regmove_optimize): Do not call mark_flags_life_zones.
31243
31244 2009-02-24  Julian Brown  <julian@codesourcery.com>
31245
31246         PR target/35965
31247         * config/arm/arm.c (require_pic_register): Only set
31248         cfun->machine->pic_reg once per function.
31249
31250 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
31251
31252         * doc/invoke.texi (Link Options): Document an easier way to pass
31253         options that take arguments to the GNU linker using -Xlinker and -Wl.
31254
31255 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
31256
31257         PR target/33785
31258         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
31259
31260 2009-02-24  Richard Guenther  <rguenther@suse.de>
31261
31262         PR debug/39285
31263         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
31264
31265 2009-02-24  Richard Guenther  <rguenther@suse.de>
31266             Zdenek Dvorak  <ook@ucw.cz>
31267
31268         PR tree-optimization/39233
31269         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
31270         from converting them to a generic type.
31271
31272 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
31273
31274         PR tree-optimization/39260
31275         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
31276         contains a condition with a real type.
31277         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
31278
31279 2009-02-23  Jason Merrill  <jason@redhat.com>
31280
31281         PR c++/38880
31282         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
31283         narrowing_initializer_constant_valid_p.
31284         (narrowing_initializer_constant_valid_p): Don't return
31285         null_pointer_node for adding a pointer to itself.
31286
31287 2009-02-23  Jan Hubicka  <jh@suse.cz>
31288
31289         PR c/12245
31290         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
31291         resizing.
31292
31293 2009-02-23  Jan Hubicka  <jh@suse.cz>
31294
31295         PR tree-optimization/37709
31296         * tree.c (block_ultimate_origin): Move here from dwarf2out.
31297         * tree.h (block_ultimate_origin): Declare.
31298         * dwarf2out.c (block_ultimate_origin): Move to tree.c
31299         * tree-ssa-live.c (remove_unused_scope_block_p):
31300         Eliminate blocks containig no instructions nor live variables nor
31301         nested blocks.
31302         (dump_scope_block): New function.
31303         (remove_unused_locals): Enable removal of dead blocks by default;
31304         enable dumping at TDF_DETAILS.
31305
31306 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31307
31308         * config/i386/i386.c (classify_argument): Don't allow COImode
31309         and OImode.
31310         (function_arg_advance_32): Don't allow OImode.
31311         (function_arg_32): Likewise.
31312         (function_value_32): Likewise.
31313         (return_in_memory_32): Likewise.
31314         (function_arg_64): Remove OImode comment.
31315
31316 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31317
31318         PR target/39261
31319         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
31320         ix86_expand_vector_set for V4DImode in 64bit mode only.
31321         (ix86_expand_vector_init_one_var): Likewise.
31322
31323 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
31324
31325         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
31326
31327 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31328
31329         PR bootstrap/39257
31330         * loop-iv.c: Revert last change.
31331         * emit-rtl.c: Likewise.
31332
31333 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31334
31335         PR target/39256
31336         * config/i386/i386.c (type_natural_mode): Remove an extra
31337         space in the warning message.
31338         (function_value_32): Handle 32-byte vector modes.
31339         (return_in_memory_32): Likewise.
31340
31341 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31342
31343         * loop-iv.c (truncate_value): New function.
31344         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
31345         of lowpart_subreg.
31346         (lowpart_subreg): Move to...
31347         * emit-rtl.c: ...here.
31348
31349 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
31350
31351         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
31352         accidental and undocumented change at revision 140860.
31353
31354 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
31355
31356         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
31357         take gimple_seq * arguments.
31358         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
31359         types_compatible_p langhook.
31360
31361 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
31362             Joseph Myers  <joseph@codesourcery.com>
31363
31364         * config/arm/arm.c (arm_builtin_va_list): New function.
31365         (arm_expand_builtin_va_start): Likewise.
31366         (arm_gimplify_va_arg_expr): Likewise.
31367         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
31368         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
31369         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
31370         (va_list_type): New variable.
31371         (arm_mangle_type): Mangle va_list_type appropriately.
31372
31373 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31374
31375         PR middle-end/39157
31376         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
31377         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
31378         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
31379         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
31380         parameter to 1000 for -O1 by default.
31381         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
31382         parameter.
31383         * loop-invariant.c: Include params.h.
31384         (move_loop_invariants): Don't call move_single_loop_invariants on
31385         very large loops.
31386
31387 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
31388
31389         * calls.c (emit_library_call_value_1): Use slot_offset instead of
31390         offset when calculating bounds for indexing stack_usage_map.  Fixes
31391         a buffer overflow with certain target setups.
31392
31393 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31394
31395         PR target/39240
31396         * calls.c (expand_call): Clear try_tail_call if caller and callee
31397         disagree in promotion of function return value.
31398
31399 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
31400
31401         PR target/39175
31402         * c-common.c (c_determine_visibility): If visibility changed and
31403         DECL_RTL has been already set, call make_decl_rtl to update symbol
31404         flags.
31405
31406 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
31407
31408         PR c++/39188
31409         * varasm.c (assemble_variable): Don't check DECL_NAME when
31410         globalizing a variable.
31411
31412 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
31413
31414         PR c/38483
31415         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
31416         expression before any __builtin_trap call.
31417         * c-typeck.c (build_function_call): Convert and check function
31418         arguments before generating a call to a trap.  Evaluate the
31419         function arguments before the trap.
31420
31421 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
31422
31423         PR target/39228
31424         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
31425         (UNSPEC_FXAM_MEM): New unspec.
31426         (fxam<mode>2_i387_with_temp): New insn and split pattern.
31427         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
31428         memory using fxam<mode>2_i387_with_temp to remove excess precision.
31429
31430 2009-02-19  Richard Guenther  <rguenther@suse.de>
31431
31432         PR tree-optimization/39207
31433         PR tree-optimization/39074
31434         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
31435         storedanything_tree): New.
31436         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
31437         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
31438         (build_succ_graph): Add edges from STOREDANYTHING to all
31439         non-direct nodes.
31440         (init_base_vars): Initialize STOREDANYTHING.
31441         (compute_points_to_sets): Free substitution info after
31442         building the succ graph.
31443         (ipa_pta_execute): Likewise.
31444
31445         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
31446         field.
31447         (do_ds_constraint): Do not add to special var or non-pointer
31448         field solutions.
31449         (type_could_have_pointers): Split out from ...
31450         (could_have_pointers): ... here.  For arrays use the element type.
31451         (create_variable_info_for): Initialize may_have_pointers.
31452         (new_var_info): Likewise.
31453         (handle_lhs_call): Make the HEAP variable unknown-sized.
31454         (intra_create_variable_infos): Use a type with pointers for
31455         PARM_NOALIAS, make it unknown-sized.
31456
31457 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
31458
31459         PR target/39224
31460         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
31461
31462 2009-02-18  Jason Merrill  <jason@redhat.com>
31463
31464         PR target/39179
31465         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
31466         value if DECL_EXTERNAL.
31467         * tree-sra.c (sra_walk_gimple_assign): Likewise.
31468         * target.h (gcc_target::binds_local_p): Clarify "module".
31469         * tree.h (TREE_PUBLIC): Clarify "module".
31470
31471 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
31472
31473         PR target/38891
31474         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
31475         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
31476
31477 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
31478
31479         PR target/39082
31480         * c.opt (Wabi): Support C and ObjC.
31481         (Wpsabi): New.
31482
31483         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
31484
31485         * config/i386/i386.c (classify_argument): Warn once about the ABI
31486         change when passing union with long double.
31487
31488         * doc/invoke.texi: Update -Wabi for warning psABI changes.
31489
31490 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
31491
31492         PR c/35447
31493         * c-parser.c (c_parser_compound_statement): Always enter and leave
31494         a scope.
31495
31496 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31497
31498         PR target/34587
31499         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
31500
31501 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
31502
31503         PR tree-optimization/36922
31504         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
31505         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
31506         Likewise.
31507
31508 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31509
31510         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
31511         to 0 for EABI64.
31512
31513 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31514
31515         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
31516
31517 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31518
31519         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
31520         tree sharing.
31521
31522 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
31523             Richard Sandiford  <rdsandiford@googlemail.com>
31524
31525         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
31526         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
31527         (loongson_biadd): ...this.
31528
31529 2009-02-17  Richard Guenther  <rguenther@suse.de>
31530
31531         PR tree-optimization/39202
31532         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
31533         a var make sure to follow existing collapses.
31534
31535 2009-02-17  Richard Guenther  <rguenther@suse.de>
31536
31537         PR middle-end/39214
31538         * langhooks.c (lhd_print_error_function): Check for NULL block.
31539
31540 2009-02-17  Richard Guenther  <rguenther@suse.de>
31541
31542         PR tree-optimization/39204
31543         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
31544         of the PHI arg.
31545
31546 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
31547
31548         * config/soft-fp/double.h: Update from glibc CVS.
31549
31550 2009-02-17  Richard Guenther  <rguenther@suse.de>
31551
31552         PR tree-optimization/39207
31553         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
31554         strict-aliasing warnings for pointers pointing to NULL.
31555
31556 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
31557
31558         PR c/35446
31559         * c-parser.c (c_parser_braced_init): Call pop_init_level when
31560         skipping until next close brace.
31561
31562 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
31563
31564         PR target/37049
31565         * config/i386/i386.c (ix86_expand_push): Set memory alignment
31566         to function argument boundary.
31567
31568 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
31569
31570         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
31571         in the lea_add. Reload eventually constraints it properly.
31572         * config/picochip/constraints.md: Remove the target constraint
31573         "b", since it is not needed anymore.
31574
31575 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
31576
31577         * gthr-dce.h: Uglify function parameter and local variable names.
31578         * gthr-gnat.h: Likewise.
31579         * gthr-mipssde.h: Likewise.
31580         * gthr-nks.h: Likewise.
31581         * gthr-posix95.h: Likewise.
31582         * gthr-posix.h: Likewise.
31583         * gthr-rtems.h: Likewise.
31584         * gthr-single.h: Likewise.
31585         * gthr-solaris.h: Likewise.
31586         * gthr-tpf.h: Likewise.
31587         * gthr-vxworks.h: Likewise.
31588         * gthr-win32.h: Likewise.
31589
31590 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
31591
31592         PR target/39196
31593         * config/i386/i386.md: Restrict the new peephole2 to move
31594         between MMX/SSE registers.
31595
31596 2009-02-15  Richard Guenther  <rguenther@suse.de>
31597
31598         Revert
31599         2009-02-13  Richard Guenther  <rguenther@suse.de>
31600
31601         * configure.ac: Enable LFS.
31602         * configure: Re-generate.
31603         * config.in: Likewise.
31604
31605 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31606
31607         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
31608         spu_srqwbyte, spu_srqwbytebc): Define.
31609         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
31610         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
31611         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
31612         "shrqby_<mode>"): New insn-and-split patterns.
31613         * config/spu/spu.c (expand_builtin_args): Determine and return
31614         number of operands using spu_builtin_description data.
31615         (spu_expand_builtin_1): Use it.
31616
31617 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
31618
31619         PR target/38056
31620         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
31621         TARGET_CONST_GP.
31622
31623 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31624
31625         PR target/39149
31626         * config/i386/i386.c (override_options): Correct warning
31627         messages for -malign-loops, -malign-jumps and -malign-functions.
31628
31629 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31630
31631         PR target/39152
31632         * config/i386/i386.md: Restrict the new peephole2 to move
31633         between the general purpose registers.
31634
31635 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31636
31637         PR target/39162
31638         * config/i386/i386.c (type_natural_mode): Add a new argument.
31639         Return the original mode and warn ABI change if vector size is 32byte.
31640         (function_arg_advance): Updated.
31641         (function_arg): Likewise.
31642         (ix86_function_value): Likewise.
31643         (ix86_return_in_memory): Likewise.
31644         (ix86_sol10_return_in_memory): Likewise.
31645         (ix86_gimplify_va_arg): Likewise.
31646         (function_arg_32): Don't warn ABX ABI change here.
31647         (function_arg_64): Likewise.
31648
31649 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
31650
31651         * loop-iv.c (implies_p): In the final case, test that operands 0
31652         of the two comparisons match.
31653
31654         * config/bfin/bfin.c (find_prev_insn_start): New function.
31655         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
31656         (find_next_insn_start): Move.
31657
31658 2009-02-13  Richard Guenther  <rguenther@suse.de>
31659
31660         * configure.ac: Enable LFS.
31661         * configure: Re-generate.
31662         * config.in: Likewise.
31663
31664 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
31665
31666         PR c/35444
31667         * c-parser.c (c_parser_parms_list_declarator): Discard pending
31668         sizes on syntax error after some arguments have been parsed.
31669
31670 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31671
31672         * doc/invoke.texi (-fira): Remove.
31673
31674 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31675
31676         * caller-save.c: Replace regclass.c with reginfo.c in comments.
31677         * recog.c: Likewise.
31678         * rtl.h: Likewise.
31679
31680 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
31681
31682         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
31683         (umul_ppmm): Likewise.
31684         (count_leading_zeros): Likewise.
31685         (count_trailing_zeros): Likewise.
31686         (UMUL_TIME): Likewise.
31687
31688 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31689
31690         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
31691         soft-fp/t-softfp to tmake_file.
31692
31693         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
31694         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
31695         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
31696         IA64_BUILTIN_INFQ]: New.
31697         (ia64_init_builtins): Initialize __builtin_infq,
31698         __builtin_fabsq and __builtin_copysignq if not HPUX.
31699         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
31700         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
31701
31702         * config/ia64/lib1funcs.asm (__divtf3): Define only if
31703         SHARED is defined.
31704         (__fixtfti): Likewise.
31705         (__fixunstfti): Likewise.
31706         (__floattitf): Likewise.
31707
31708         * config/ia64/libgcc-glibc.ver: New.
31709         * config/ia64/t-fprules-softfp: Likewise.
31710         * config/ia64/sfp-machine.h: Likewise.
31711
31712         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
31713         (LIBGCC2_TF_CEXT): Likewise.
31714         (TF_SIZE): Likewise.
31715         (TARGET_INIT_LIBFUNCS): Likewise.
31716
31717         * config/ia64/t-glibc (SHLINB_MAPFILES):
31718         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
31719
31720 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31721
31722         * config/i386/i386.c (construct_container): Rewrite processing
31723         BLKmode with X86_64_SSE_CLASS.
31724
31725 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
31726
31727         PR target/39152
31728         * config/i386/i386.md: Replace simplify_replace_rtx with
31729         replace_rtx in the new peephole2.
31730
31731 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
31732
31733         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
31734         loop unrolling do not happen at -O2.
31735
31736 2009-02-12  Michael Matz  <matz@suse.de>
31737
31738         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
31739
31740 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31741
31742         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
31743         for -g3.
31744
31745 2009-02-12  Ben Elliston  <bje@au.ibm.com>
31746
31747         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
31748         patterns when updating the back chain.  Missed in the 2009-02-10
31749         change.
31750
31751 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
31752
31753         * doc/extend.texi (Decimal Floating Types): Update identifier of
31754         draft TR and list of missing support.
31755
31756 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
31757
31758         PR middle-end/39154
31759         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
31760         bit to variable length decl's flags, add it also to its
31761         pointer replacement variable.
31762
31763 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
31764             Jakub Jelinek  <jakub@redhat.com>
31765
31766         PR target/39118
31767         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
31768         (memory_blockage): New expander.
31769         (*memory_blockage): New insn pattern.
31770         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
31771         instead of general blockage at the end of function prologue when
31772         frame pointer is used to access red zone area.  Do not emit blockage
31773         when profiling, it is emitted in generic code.
31774         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
31775         function epilogue when frame pointer is used to access red zone area.
31776
31777 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
31778
31779         PR target/38824
31780         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
31781         by arithmetic with memory operands.
31782         * config/i386/predicates.md (commutative_operator): New.
31783
31784 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
31785
31786         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
31787         bulleted lists.
31788
31789 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
31790
31791         * alias.h (record_alias_subset): Declare.
31792         * alias.c (record_alias_subset): Make global.
31793
31794 2009-02-10  Nick Clifton  <nickc@redhat.com>
31795
31796         * tree-parloops.c: Change license to GPLv3.
31797         * ipa-struct-reorg.c: Change license to GPLv3.
31798         * ipa-struct-reorg.h: Change license to GPLv3.
31799
31800 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
31801
31802         PR c/39084
31803         * c-decl.c (start_struct): Return NULL on error.
31804
31805 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
31806
31807         PR middle-end/39124
31808         * cfgloopmanip.c (remove_path): Call remove_bbs after
31809         cancel_loop_tree, not before it.
31810
31811         PR target/39139
31812         * function.h (struct function): Add has_local_explicit_reg_vars bit.
31813         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
31814         VAR_DECLs were seen.
31815         * tree-ssa-live.c (remove_unused_locals): Recompute
31816         cfun->has_local_explicit_reg_vars.
31817         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
31818         copies or clearings if cfun->has_local_explicit_reg_vars.
31819
31820 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
31821
31822         PR target/39118
31823         * config/i386/i386.c (expand_prologue): Emit blockage at the end
31824         of function prologue when frame pointer is used to access
31825         red zone area.
31826
31827 2009-02-10  Richard Guenther  <rguenther@suse.de>
31828
31829         PR middle-end/39127
31830         * gimplify.c (gimple_regimplify_operands): Always look if
31831         we need to create a temporary.
31832
31833 2009-02-10  Richard Guenther  <rguenther@suse.de>
31834
31835         PR tree-optimization/39132
31836         * tree-loop-distribution.c (todo): New global var.
31837         (generate_memset_zero): Trigger TODO_rebuild_alias.
31838         (tree_loop_distribution): Return todo.
31839
31840 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
31841
31842         PR target/39119
31843         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
31844         (x86_64_reg_class_name): Removed.
31845         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
31846         first one isn't X86_64_SSE_CLASS or any other ones aren't
31847         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
31848         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
31849         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
31850         and 3 X86_64_SSEUP_CLASS.
31851         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
31852         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
31853
31854 2009-02-10  Ben Elliston  <bje@au.ibm.com>
31855
31856         * config/rs6000/rs6000.md (allocate_stack): Always use an update
31857         form instruction to update the stack back chain word, even if the
31858         user has disabled the generation of update instructions.
31859         (movdi_<mode>_update_stack): New.
31860         (movsi_update_stack): Likewise.
31861         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
31862         always use an update form instruction to update the stack back
31863         chain word.
31864
31865 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
31866
31867         PR middle-end/38953
31868         * graphite.c (if_region_set_false_region): After moving a region in
31869         the false branch of a condition, remove the empty dummy basic block.
31870         (gloog): Remove wrong fix for PR38953.
31871
31872 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31873
31874         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
31875         generation due to implicit sign extension.
31876
31877 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
31878
31879         PR middle-end/38981
31880         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
31881         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
31882
31883 2009-02-09  Richard Guenther  <rguenther@suse.de>
31884
31885         PR middle-end/35202
31886         * convert.c (convert_to_real): Disable (float)fn((double)x)
31887         to fnf(x) conversion if errno differences may occur and
31888         -fmath-errno is set.
31889
31890 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
31891
31892         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
31893         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
31894         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
31895
31896 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
31897
31898         PR c/35434
31899         * c-common.c (handle_alias_attribute): Disallow attribute for
31900         anything not a FUNCTION_DECL or VAR_DECL.
31901
31902 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
31903
31904         PR c/39035
31905         * real.c (do_compare): Special-case compare of zero against
31906         decimal float value.
31907
31908 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
31909
31910         PR c/36432
31911         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
31912         as indicating flexible array members unless the field itself is
31913         being declarared as the incomplete array.
31914
31915 2009-02-06  Jan Hubicka  <jh@suse.cz>
31916
31917         PR tree-optimization/38844
31918         * ipa-inline.c (try_inline): Stop inlining recursion when edge
31919         is already inlined.
31920
31921 2009-02-06  Richard Guenther  <rguenther@suse.de>
31922
31923         PR middle-end/38977
31924         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
31925         fork because we may expand it as __gcov_fork.
31926
31927 2009-02-06  Nick Clifton  <nickc@redhat.com>
31928
31929         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
31930
31931 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
31932
31933         PR tree-optimization/35659
31934         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
31935         vn_phi_eq): Shortcut if hashcode does not match.
31936         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
31937         NULL operands.
31938         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
31939         and avoid iterative_hash_expr.
31940         (FOR_EACH_VALUE_ID_IN_SET): New.
31941         (value_id_compare): Remove.
31942         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
31943         sort expressions by value id.
31944
31945 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
31946
31947         PR target/38991
31948         * config/sh/predicates.md (general_movsrc_operand): Don't check
31949         the subreg of system registers here.
31950
31951 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
31952
31953         PR c++/39106
31954         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
31955         on the copied decl.
31956
31957 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
31958
31959         PR rtl-optimization/39110
31960         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
31961         addresses, not aligned ones.
31962
31963 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
31964             Richard Guenther  <rguenther@suse.de>
31965
31966         PR tree-optimization/39100
31967         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
31968         comment says and add edges.
31969
31970 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
31971
31972         PR c/35435
31973         * c-common.c (handle_tls_model_attribute): Ignore attribute for
31974         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
31975
31976 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
31977
31978         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
31979         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
31980         register_bb_in_sese, new_sese, free_sese): Moved.
31981         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
31982         outermost_loop_in_scop, build_scop_iteration_domain,
31983         expand_scalar_variables_ssa_name, get_vdef_before_scop,
31984         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
31985         Use loop_in_sese_p instead of loop_in_scop_p.
31986         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
31987         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
31988         (scopdet_basic_block_info): Fix bug in scop detection.
31989         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
31990         eq_loop_to_cloog_loop): Remove.
31991         (nb_loops_around_loop_in_scop, nb_loop
31992         ref_nb_loops): Moved here...
31993         * graphite.h (ref_nb_loops): ... from here.
31994         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
31995         (loop_domain_dim, loop_iteration_vector_dim): Remove.
31996         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
31997
31998 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
31999             Hans-Peter Nilsson  <hp@axis.com>
32000
32001         PR rtl-optimization/37889
32002         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
32003         Move offset handling from PLUS to before the switch.  Use new
32004         arguments when considering SYMBOL_REFs too.
32005         (rtx_addr_can_trap_p): Pass dummy offset and size.
32006         (enum may_trap_p_flags): Remove.
32007         (may_trap_p_1): Pass size from MEM_SIZE.
32008
32009         PR rtl-optimization/38921
32010         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
32011         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
32012         * rtlanal.c (may_trap_after_code_motion_p): Delete.
32013         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
32014
32015 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
32016
32017         AVX Programming Reference (January, 2009)
32018         * config/i386/sse.md (*vpclmulqdq): New.
32019
32020 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
32021
32022         PR tree-optimization/38977
32023         PR gcov-profile/38292
32024         * calls.c (special_function_p): Disregard __builtin_ prefix.
32025
32026 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
32027
32028         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
32029         non-indexable addresses even before reload.
32030
32031 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32032
32033         PR c/29129
32034         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
32035         as having variable size.  Do not give an error for unnamed
32036         parameters with [*] declarators.  Give a warning for type names
32037         with [*] declarators and mark them as variable size.
32038         * c-parser.c (c_parser_sizeof_expression): Do not give an error
32039         for sizeof applied to [*] type names.
32040
32041 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32042
32043         PR C++/36607
32044         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
32045
32046 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32047
32048         * gcc.c (process_command): Update copyright notice dates.
32049         * gcov.c (print_version): Likewise.
32050         * gcov-dump.c (print_version): Likewise.
32051         * mips-tfile.c (main): Likewise.
32052         * mips-tdump.c (main): Likewise.
32053
32054 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32055
32056         PR c/35433
32057         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
32058         for composite type involving a zero-length array type.
32059
32060 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32061
32062         PR target/35318
32063         * function.c (match_asm_constraints_1): Skip over
32064         initial optional % in the constraint.
32065
32066         PR inline-asm/39059
32067         * c-parser.c (c_parser_postfix_expression): If fixed point is not
32068         supported, don't accept FIXED_CSTs.
32069         * c-decl.c (finish_declspecs): Error if fixed point is not supported
32070         and _Sat is used without _Fract/_Accum.  Set specs->type to
32071         integer_type_node for cts_fract/cts_accum if fixed point is not
32072         supported.
32073
32074 2009-02-02  Catherine Moore  <clm@codesourcery.com>
32075
32076         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
32077
32078 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32079
32080         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
32081         (ABI_HAS_64BIT_SYMBOLS): Use it.
32082         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
32083
32084 2009-02-02  Paul Brook  <paul@codesourcery.com>
32085
32086         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
32087
32088 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
32089
32090         PR inline-asm/39058
32091         * recog.h (asm_operand_ok): Add constraints argument.
32092         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
32093         recurse on matching constraint.
32094         (check_asm_operands): Pass constraints as 3rd argument to
32095         asm_operand_ok.  Don't look up matching constraint here.
32096         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
32097         to asm_operand_ok.
32098
32099 2009-02-02  Ben Elliston  <bje@au.ibm.com>
32100
32101         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
32102         TARGET_NARROW_VOLATILE_BITFIELD macro names.
32103
32104 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32105
32106         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
32107         information.  Remove some obsolete information.  Reorganize.
32108
32109         * config/pa/fptr.c: Revert license to GPL 2.
32110         * config/pa/milli64.S: Likewise.
32111
32112 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32113
32114         PR target/38904
32115         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
32116         LIBRARY name in, instead of hard-coding it.
32117         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
32118         extra target make frag to tmake_files according to EH model.
32119         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
32120         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
32121         frags that define makefile variable EH_MODEL appropriately.
32122         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
32123         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
32124         to "-sjlj" according to type of EH configured.
32125         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32126         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
32127         to "_sjlj" according to type of EH configured.
32128         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32129         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
32130         (SHLIB_LINK):  Add missing semicolon to if-else construct.
32131         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32132         string value of "pe_dll" command-line option.
32133         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
32134         (SHLIB_SONAME):  Use it when overriding t-cygming default.
32135         (SHLIB_IMPLIB):  Override t-cygming default.
32136         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32137         string value of "pe_dll" command-line option.
32138
32139 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32140
32141         PR target/38952
32142         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
32143         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
32144
32145 2009-01-31  Richard Guenther  <rguenther@suse.de>
32146
32147         PR tree-optimization/38937
32148         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
32149         computing the transitive closure.
32150
32151 2009-01-30  Richard Guenther  <rguenther@suse.de>
32152
32153         PR tree-optimization/39041
32154         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
32155         Propagate variable indices only if the types match for this stmt.
32156
32157 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
32158
32159         PR target/39013
32160         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
32161         inline but never defined.
32162
32163 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
32164
32165         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
32166         (*insv_h_di_reg_extimm): New insn.
32167         (*insv_l<mode>_reg_extimm): New insn.
32168
32169 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32170
32171         * config/picochip/picochip.c (flag_conserve_stack): set
32172         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
32173         fconserve-stack. Reduce call-overhead used by inliner.
32174
32175 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32176
32177         PR/38157
32178         * common.opt (flag_conserve_stack): Initialised to zero.
32179
32180 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
32181
32182         PR/39002
32183         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
32184         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
32185         method.
32186
32187 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
32188
32189         * ira-color.c (allocno_reload_assign): Update comments.
32190         * regmove.c (regmove_optimize): Likewise.
32191
32192         * ra.h: Removed.
32193
32194 2009-01-29  Robert Millan  <rmh@aybabtu.com>
32195
32196         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
32197         * config/i386/kopensolaris-gnu.h: New file.  Undefine
32198         `MD_UNWIND_SUPPORT'.
32199         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
32200
32201 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
32202
32203         PR tree-optimization/39007
32204         * tree-loop-distribution.c (generate_builtin): Use
32205         recompute_dominator to compute the immediate dominator of the
32206         basic block just after the loop.
32207
32208 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32209
32210         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
32211         (ASM_OUTPUT_DWARF_PCREL): Define.
32212
32213 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
32214
32215         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
32216         * doc/passes.texi: Remove entries about regclass, local-alloc, and
32217         global.  Modify entries about regmove and IRA.
32218
32219         * ra-conflict.c: Remove the file.
32220
32221         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
32222
32223         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
32224         (pass_regclass_init): Rename to pass_reginfo_init.
32225
32226         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
32227
32228         * toplev.h (flag_ira): Remove.
32229
32230         * caller-save.c (setup_save_areas): Remove flag_ira.
32231
32232         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
32233
32234         * global.c: Remove the file.
32235
32236         * opts.c (decode_options): Remove flag_ira.
32237
32238         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
32239
32240         * regmove.c: Modify file description.
32241         (find_use_as_address, try_auto_increment): Define them only if
32242         AUTO_INC_DEC is defined.
32243         (replacement_quality, replace_in_call_usage, fixup_match_1,
32244         stable_and_no_regs_but_for_p): Remove.
32245         (reg_set_in_bb): Make it static.
32246         (regmove_optimize): Remove flag_ira and code which worked for
32247         !flag_ira.
32248
32249         * local-alloc.c: Remove the file.
32250
32251         * common.opt (fira): Remove.
32252
32253         * ira.c: Include except.h.
32254         (eliminable_regset): Move from global.c.
32255         (mark_elimination): Ditto.  Remove flag_ira.
32256         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
32257         equiv_mem_modified, validate_equiv_mem_from_store,
32258         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
32259         contains_replace_regs, memref_referenced_p, memref_used_between_p,
32260         no_equiv, recorded_label_ref): Move from local-alloc.c.
32261         (update_equiv_regs): Ditto.  Make it static.
32262         (print_insn_chain, print_insn_chains): Move it from global.c.
32263         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
32264         (build_insn_chain): Ditto.  Make it static.
32265         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
32266         Rename to init_live_subregs.
32267         (gate_ira): Remove flag_ira.
32268
32269         * regclass.c: Rename reginfo.c.  Change file description.
32270         (FORBIDDEN_INC_DEC_CLASSES): Remove.
32271         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
32272         (init_reg_sets_1): Remove code for evaluation of
32273         reg_class_superclasses and losing_caller_save_reg_set.
32274         (init_regs): Remove init_reg_autoinc.
32275         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
32276         ok_for_base_p_nonstrict): Remove.
32277         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
32278         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
32279         corresponding entries.
32280         (dump_regclass, record_operand_costs, scan_one_insn,
32281         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
32282         record_address_regs, auto_inc_dec_reg_p): Remove.
32283         (gt-regclass.h): Rename to gt-reginfo.h.
32284
32285         * rtl.h (dump_global_regs, retry_global_alloc,
32286         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
32287
32288         * Makefile.in (RA_H): Remove.
32289         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
32290         Rename regclass.o to reginfo.o.
32291         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
32292         gt-reginfo.h.
32293         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
32294         (GTFILES): Rename regclass.c to reginfo.c.
32295
32296         * passes.c (init_optimization_passes): Remove pass_local_alloc and
32297         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
32298
32299         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32300         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
32301         Remove flag_ira.
32302         (finish_spills): Ditto.  Remove code for !flag_ira.
32303
32304 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
32305
32306         PR middle-end/35854
32307         * doc/invoke.texi (rtl debug options): Complete rewrite.
32308         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
32309         to auto_inc_dec".
32310         * mode-switching.c (pass_mode_switching): Rename pass from
32311         "mode-sw" to "mode_sw".
32312         * except.c (pass_convert_to_eh_ranges): Rename pass from
32313         "eh-ranges" to "eh_ranges".
32314         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
32315         to "subreg1".
32316
32317
32318 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
32319             Alexander Monakov  <amonakov@ispras.ru>
32320
32321         PR middle-end/38857
32322         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
32323         register.
32324         (move_exprs_to_boundary): Change return type and pass through
32325         should_move from move_op.  Relax assert.  Update usage ...
32326         (schedule_expr_on_boundary): ... here.  Use should_move instead of
32327         cant_move.
32328         (move_op_orig_expr_found): Indicate that insn was disconnected from
32329         stream.
32330         (code_motion_process_successors): Do not call after_merge_succs
32331         callback if original expression was not found when traversing any of
32332         the branches.
32333         (code_motion_path_driver): Change return type.  Update prototype.
32334         (move_op): Update comment.  Add a new parameter (should_move).  Update
32335         prototype.  Set *should_move based on indication provided by
32336         move_op_orig_expr_found.
32337
32338 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
32339
32340         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
32341         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
32342         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
32343         * config/rs6000/rs6000.c (rs6000_override_options): Default
32344         avoid-indexed-addresses on for Power6, off for everything else.
32345         (avoiding_indexed_address_p): New function.
32346         (rs6000_legitimize_address): Use it.
32347         (rs6000_legitimate_address): Likewise.
32348         * config/rs6000/rs6000.md (movXX_updateX): Likewise
32349
32350 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
32351
32352         PR tree-optimization/38997
32353         * tree-loop-distribution.c (generate_memset_zero): Use
32354         POINTER_PLUS_EXPR for a pointer addition.
32355
32356 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
32357
32358         * config/s390/s390.md (bswap<mode>2): New pattern added.
32359
32360 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32361
32362         * config/s390/s390.md (*tls_load_31): Added type attribute.
32363
32364 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32365
32366         * config/s390/s390.md: Fix a few comments.
32367
32368 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32369
32370         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
32371         (*tm<mode>_full): Fixed z10prop attribute.
32372         (*tst<mode>_extimm): Fixed z10prop attribute.
32373         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
32374         (*tstqiCCT_cconly): Fixed z10prop attribute.
32375         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
32376         (*movsi_larl): Fixed z10prop attribute.
32377         (*movsi_zarch): Fixed z10prop attribute.
32378         (*movsi_eas): Fixed z10prop attribute.
32379         (*movhi): Fixed z10prop attribute.
32380         (*movqi): Fixed z10prop attribute.
32381         (*movstrictqi): Fixed z10prop attribute.
32382         (*mov<mode>): Fixed z10prop attribute.
32383         (*movcc): Fixed z10prop attribute.
32384         (*sethighpartdi_64): Fixed z10prop attribute.
32385         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
32386         (*negdi2_sign_cc): Fixed z10prop attribute.
32387         (*negdi2_sign): Fixed z10prop attribute.
32388         (*absdi2_sign_cc): Fixed z10prop attribute.
32389         (*absdi2_sign): Fixed z10prop attribute.
32390         (*negabsdi2_sign_cc): Fixed z10prop attribute.
32391         (*negabsdi2_sign): Fixed z10prop attribute.
32392         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
32393         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
32394         (doloop_si64): Fixed z10prop attribute.
32395         (doloop_si31): Fixed z10prop attribute.
32396         (doloop_long): Fixed z10prop attribute.
32397         (indirect_jump): Fixed z10prop attribute.
32398         (nop): Fixed z10prop attribute.
32399         (main_base_64): Fixed z10prop attribute.
32400         (reload_base_64): Fixed z10prop attribute.
32401
32402 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32403
32404         PR rtl-optimization/38740
32405         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
32406         if !optimize.
32407         * config/mips/mips.c (mips_reorg): Likewise.
32408
32409 2009-01-28  Richard Guenther  <rguenther@suse.de>
32410
32411         PR tree-optimization/38926
32412         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
32413         with the correct value id to a value.
32414         (do_regular_insertion): Use the value number of edoubleprime
32415         for the value number of the expr.
32416
32417         Revert
32418         2008-08-21  Richard Guenther  <rguenther@suse.de>
32419
32420         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
32421         a PHI ask VN if it is already available.
32422         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
32423         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
32424
32425 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32426
32427         PR middle-end/38934
32428         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
32429         set to varying whenever max has TREE_OVERFLOW set, similarly
32430         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
32431
32432 2009-01-28  Richard Guenther  <rguenther@suse.de>
32433
32434         PR middle-end/38908
32435         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
32436         uninitialized aggregate uses in call arguments.
32437
32438 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
32439
32440         PR tree-optimization/38984
32441         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
32442         the nothing_id variable if -fno-delete-null-pointer-checks.
32443
32444 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
32445
32446         PR target/38988
32447         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
32448         (set_got_offset_rex64): Ditto.
32449
32450 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
32451
32452         PR target/38941
32453         * doc/extend.texi: Improve local variable with asm reg.
32454
32455 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
32456
32457         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
32458         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
32459         was not supplied then set warn_packed_bitfield_compat to the
32460         default value of 1.
32461         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
32462         against 1.
32463
32464 2009-01-27  Richard Guenther  <rguenther@suse.de>
32465
32466         PR tree-optimization/38503
32467         * cfgexpand.c (expand_gimple_basic_block): Ignore
32468         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
32469         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
32470         variables that cannot have TBAA applied.
32471         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
32472         statements.
32473
32474 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
32475
32476         PR middle-end/38969
32477         * calls.c (initialize_argument_information): Do not wrap complex
32478         arguments in SAVE_EXPR.
32479
32480 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
32481
32482         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
32483         (INSTALL_LIBGCC): Revert typo commit.
32484
32485 2009-01-26  Richard Guenther  <rguenther@suse.de>
32486
32487         PR tree-optimization/38745
32488         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
32489         from special handling.
32490
32491 2009-01-26  Richard Guenther  <rguenther@suse.de>
32492
32493         PR tree-optimization/38745
32494         * tree-ssa.c (execute_update_addresses_taken): Do not include
32495         variables that cannot possibly be a register in not_reg_needs.
32496         Do not clear TREE_ADDRESSABLE on vars that may not become
32497         registers.
32498         * tree-ssa.c (update_alias_info_1): Include those in the set
32499         of addressable vars.
32500
32501 2009-01-26  Richard Guenther  <rguenther@suse.de>
32502
32503         PR middle-end/38851
32504         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
32505         * tree-ssa-dse.c: Include langhooks.h
32506         (execute_simple_dse): Remove stores with zero size.
32507
32508 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
32509
32510         PR c/38957
32511         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
32512         as PLUS_EXPR.
32513
32514 2009-01-24  Julian Brown  <julian@codesourcery.com>
32515
32516         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
32517         config/arm/linux-atomic.c.
32518         * config/arm/linux-atomic.c: New.
32519
32520 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
32521
32522         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
32523         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
32524         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
32525
32526 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
32527
32528         PR c/38938
32529         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
32530         properly.
32531
32532 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
32533
32534         PR tree-optimization/38953
32535         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
32536         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
32537         (gloog): Split the exit of the scop when the scop exit is a loop exit.
32538         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
32539         changed the CFG.
32540
32541 2009-01-24  Paul Brook  <paul@codesourcery.com>
32542
32543         * config/arm/neon.md (neon_type): Move to arm.md.
32544         (neon_mov<VSTRUCT>): Add neon_type attribute.
32545         * config/arm/arm.md (neon_type): Move to here.
32546         (conds): Add "unconditioal" and use as default for NEON insns.
32547
32548 2009-01-24  Ben Elliston  <bje@au.ibm.com>
32549
32550         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
32551         void *' warning from -Wc++-compat.
32552         * Makefile.in (dominance.o-warn): Remove.
32553
32554 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
32555
32556         PR tree-optimization/38932
32557         * fold-const.c (fold_unary_ignore_overflow): New.
32558         * tree.h (fold_unary_ignore_overflow): Declare.
32559         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
32560         * tree-ssa-sccvn.c (visit_reference_op_load,
32561         simplify_unary_expression): Likewise.
32562
32563 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
32564
32565         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
32566         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
32567         regardless of their type.
32568         * c-common.c (handle_packed_attribute): Don't ignore packed on
32569         bitfields.
32570         * c.opt (Wpacked-bitfield-compat): New warning option.
32571         * stor-layout.c (place_field): Warn if offset of a field changed.
32572         * doc/extend.texi (packed): Mention the ABI change.
32573         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
32574         (Warning Options): Add it to the list.
32575
32576 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
32577
32578         * c-opts.c (c_common_post_options): Fix a typo in comments.
32579
32580 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
32581
32582         PR middle-end/38615
32583         * gimplify.c (gimplify_init_constructor): Fix promotion of const
32584         variables to static.
32585         * doc/invoke.texi (-fmerge-all-constants): Update description.
32586
32587 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
32588
32589         PR target/38931
32590         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
32591         (*movdi_1_rex64): Use type "mmx" for alternative 5.
32592
32593 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
32594
32595         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
32596         a word boundary.
32597         (LOCAL_ALIGNMENT): Similarly.
32598
32599 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32600             Joseph Myers  <joseph@codesourcery.com>
32601
32602         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
32603         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
32604         * config/arm/arm-tune.md: Regenerate.
32605         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
32606         -march=iwmmxt2.
32607
32608 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32609
32610         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
32611         version number to five.
32612
32613 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
32614
32615         PR c++/38930
32616         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
32617         * c-common.c (set_underlying_type): Likewise.
32618         (is_typedef_decl ): Likewise
32619         * tree.h: Likewise
32620         (set_underlying_type): Likewise.
32621         (is_typedef_type): Likewise.
32622
32623 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32624
32625         PR middle-end/38587
32626         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
32627         crossing setjmps.
32628
32629 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
32630
32631         PR bootstrap/37660
32632         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
32633         (LIBGCC_SPEC):  Don't define.
32634         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
32635
32636 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
32637
32638         PR rtl-optimization/38879
32639         * alias.c (base_alias_check): Unaligned access via AND address can
32640         alias all surrounding object types except those with sizes equal
32641         or wider than the size of unaligned access.
32642
32643 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
32644
32645         PR c++/26693
32646         * c-decl.c (clone_underlying_type): Move this ...
32647         * c-common.c (set_underlying_type): ... here.
32648         Also, make sure the function properly sets TYPE_STUB_DECL() on
32649         the newly created typedef variant type.
32650         (is_typedef_decl ): New entry point.
32651         * tree.h: Added a new member member_types_needing_access_check to
32652         struct tree_decl_non_common.
32653         (set_underlying_type): New entry point.
32654         (is_typedef_type): Likewise.
32655
32656 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
32657
32658         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
32659         Check whether two instructions have memory references that
32660         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
32661         are helper functions for traversing.
32662         * alias.h (insn_alias_sets_confilict_p): New prototypes.
32663         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
32664         not to draw dependency edge for instructions with non-conflicting
32665         alias sets.
32666
32667 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
32668
32669         PR other/38758
32670         * longlong.h: Update copyright years.  Use soft-fp license notice.
32671         Sync __clz_tab declaration with glibc.
32672
32673 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
32674
32675         PR target/30687
32676         * doc/extend.texi (syscall_linkage): New.
32677         (version_id): Modify.
32678
32679 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32680             Richard Guenther  <rguenther@suse.de>
32681
32682         PR tree-optimization/38747
32683         PR tree-optimization/38748
32684         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
32685         conversion if the base address is an indirect reference and the
32686         aliasing sets could cause issues.
32687
32688 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32689
32690         * common.opt (fgraphite, fgraphite-identity): Add comment for
32691         explaining why these options are not documented.
32692
32693 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32694
32695         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
32696         gimple_call_lhs is NULL.
32697
32698 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32699
32700         PR target/38868
32701         * emit-rtl.c (adjust_address_1): Make sure memref is never
32702         overwritten.
32703
32704 2009-01-20  Ben Elliston  <bje@au.ibm.com>
32705
32706         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32707         const qualifier from arg parameter. Remove unnecessary cast to char *.
32708         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32709         const qualifier from arg 2.
32710
32711 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32712
32713         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
32714
32715 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
32716
32717         PR c/38869
32718         * rtl.h (reinit_regs): New prototype.
32719         * regclass.c: Include ira.h.
32720         (reinit_regs): New.
32721         * Makefile.in (regclass.o): Add ira.h.
32722         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
32723
32724 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32725
32726         PR target/38736
32727         * c-common.c (handle_aligned_attribute): Use
32728         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
32729         default alignment value.
32730
32731         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
32732
32733         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
32734         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
32735
32736         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
32737         __BIGGEST_ALIGNMENT__.
32738
32739         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
32740
32741 2009-01-18  Richard Guenther  <rguenther@suse.de>
32742
32743         PR tree-optimization/38819
32744         * tree-flow.h (operation_could_trap_helper_p): Declare.
32745         * tree-eh.c (operation_could_trap_helper_p): Export.
32746         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
32747         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
32748         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
32749         are about to insert a possibly trapping instruction and fail
32750         in this case.
32751
32752 2009-01-18  Andreas Schwab  <schwab@suse.de>
32753
32754         * doc/install.texi (Configuration): Remove obsolete paragraph
32755         about use of --with-gnu-ld with --with-gnu-as.
32756
32757 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
32758
32759         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
32760         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
32761         Follow spelling conventions.
32762
32763 2009-01-18  Ben Elliston  <bje@au.ibm.com>
32764
32765         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
32766         C++ warning about implicit conversion from void * to struct
32767         bitmap_head_def *.
32768         (bitmap_obstack_free): Likewise for bitmap_element *.
32769         * Makefile.in (bitmap.o-warn): Remove.
32770
32771 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32772
32773         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
32774
32775 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
32776             Tobias Grosser  <tobi.grosser@amd.com>
32777
32778         * graphite.c (graphite_trans_scop_block): Do not block single
32779         nested loops.
32780
32781 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
32782
32783         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
32784         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
32785         test with assertion.
32786
32787 2009-01-16  Richard Guenther  <rguenther@suse.de>
32788
32789         PR tree-optimization/38835
32790         PR middle-end/36227
32791         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
32792         and INT + PTR -> (INT)(PTR p+ INT) folding.
32793         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
32794
32795 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
32796
32797         PR target/38554
32798         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
32799         the subreg from a lowpart subreg if it is also casting the value.
32800
32801 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
32802             Tobias Grosser  <tobi.grosser@amd.com>
32803
32804         * graphite.c (compare_prefix_loops): New.
32805         (build_scop_canonical_schedules): Rewritten.
32806         (graphite_transform_loops): Move build_scop_canonical_schedules
32807         after build_scop_iteration_domain.
32808
32809 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
32810             Tobias Grosser  <tobi.grosser@amd.com>
32811
32812         * graphite.c (add_conditions_to_domain): Add the loops to
32813         the dimension of the iteration domain.  Do copy the domain
32814         only when it exists.
32815         (build_scop_conditions_1): Do not call add_conditions_to_domain.
32816         (add_conditions_to_constraints): New.
32817         (can_generate_code_stmt, can_generate_code): Removed.
32818         (gloog): Do not call can_generate_code.
32819         (graphite_transform_loops): Call add_conditions_to_constraints
32820         after building the iteration domain.
32821
32822 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
32823
32824         PR tree-optimization/38789
32825         * tree-ssa-threadedge.c
32826         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
32827         __builtin_constant_p.
32828
32829 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
32830
32831         * dce.c (delete_unmarked_insns): Reversed the order that insns are
32832         examined before deleting them.
32833
32834 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
32835
32836         * function.c (aggregate_value_p): Correctly extract the function
32837         type from CALL_EXPR_FN lookup.
32838
32839 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
32840
32841         * config/picochip/picochip.c (picochip_override_options): Revert
32842         CFI asm flag disable commited previously.
32843
32844 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
32845             Tobias Grosser  <tobi.grosser@amd.com>
32846             Jan Sjodin  <jan.sjodin@amd.com>
32847
32848         * graphite.c (scan_tree_for_params): On substractions negate
32849         all the coefficients of the term.
32850         (clast_to_gcc_expression_red): New.  Handle reduction expressions
32851         of more than two operands.
32852         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
32853         (get_vdef_before_scop): Handle also the case of default definitions.
32854
32855 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
32856
32857         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
32858         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
32859         Also use them when walking CALL_INSN_FUNCTION_USAGE.
32860
32861 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
32862             Joey Ye  <joey.ye@intel.com>
32863
32864         PR middle-end/37843
32865         * cfgexpand.c (expand_stack_alignment): Don't update stack
32866         boundary nor check incoming stack boundary here.
32867         (gimple_expand_cfg): Update stack boundary and check incoming
32868         stack boundary here.
32869
32870 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
32871
32872         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
32873
32874 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
32875
32876         PR rtl-optimization/38245
32877         * calls.c (expand_call): Add stack arguments to
32878         CALL_INSN_FUNCTION_USAGE even for pure calls (when
32879         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
32880         in regs and partially in memory or BLKmode arguments.
32881         (emit_library_call_value_1): Add stack arguments to
32882         CALL_INSN_FUNCTION_USAGE even for pure calls (when
32883         ACCUMULATE_OUTGOING_ARGS).
32884         * dce.c: Include tm_p.h.
32885         (find_call_stack_args): New function.
32886         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
32887         argument.
32888         (mark_insn): Call find_call_stack_args for CALL_Ps.
32889         (prescan_insns_for_dce): Walk insns backwards in bb rather than
32890         forwards.  Allocate and free arg_stores bitmap if needed, pass it
32891         down to deletable_insn_p, don't mark stores set in arg_stores
32892         bitmap, clear the bitmap at the beginning of each bb.
32893         * Makefile.in (dce.o): Depend on $(TM_P_H).
32894
32895 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
32896
32897         PR target/22599
32898         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
32899         to make sure the insn is a conditional test (bug 22599).  Reformat a
32900         few long lines.
32901
32902 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
32903
32904         PR middle-end/38431
32905         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
32906         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
32907         (gloog): Do not call cleanup_tree_cfg.
32908         (graphite_transform_loops): Call cleanup_tree_cfg after all
32909         scops have been code generated.
32910
32911 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
32912         * doc/gty.texi (Invoking the garbage collector): Added new node
32913         and section documenting ggc_collect.
32914
32915 2009-01-14  Richard Guenther  <rguenther@suse.de>
32916
32917         PR tree-optimization/38826
32918         PR middle-end/38477
32919         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
32920         initialization notes only if we actually emitted a warning.
32921         (intra_create_variable_infos): Add constraints for a result decl
32922         that is passed by hidden reference.
32923         (build_pred_graph): Mark all related variables non-direct on
32924         address-taking.
32925
32926 2009-01-14  Nick Clifton  <nickc@redhat.com>
32927
32928         * ira-conflicts.c: Include addresses.h for the definition of
32929         base_reg_class.
32930         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
32931         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
32932
32933 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
32934
32935         PR target/38811
32936         * Makefile.in (ira-lives.o): Add except.h.
32937
32938         * ira-lives.c: Include except.h.
32939         (process_bb_node_lives): Process can_throw_internal.
32940
32941 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
32942
32943         PR rtl-optimization/38774
32944         * combine.c (simplify_set): When undoing cc_use change, don't do
32945         PUT_CODE on the newly created comparison, but instead put back the
32946         old comparison.
32947
32948 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
32949
32950         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
32951         values.  Remove duplicate arm8 entry.
32952
32953 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
32954
32955         PR tree-optimization/38786
32956         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
32957         the SSA_NAME case of expand_scalar_variables_expr.
32958         Set the type of an expression to the type of its assign statement.
32959         (expand_scalar_variables_expr): Also gather the scalar computation
32960         used to index the memory access.  Do not pass loop_p.
32961         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
32962         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
32963         the gimple_stmt_iterator where it inserts new code.
32964         Do not pass loop_p.
32965         (copy_bb_and_scalar_dependences): Do not pass loop_p.
32966         (translate_clast): Update call to copy_bb_and_scalar_dependences.
32967
32968 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
32969
32970         * graphite.h (debug_value): Removed.
32971         * graphite.c (debug_value): Removed.
32972
32973 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
32974
32975         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
32976         ldrd/strd with two 32-bit instructions.
32977
32978 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
32979
32980         * config/arm/arm.c (struct processors): Pass for speed down into
32981         cost helper functions.
32982         (const_ok_for_op): Handle COMPARE and inequality nodes.
32983         (arm_rtx_costs_1): Rewrite.
32984         (arm_size_rtx_costs): Update prototype.
32985         (arm_rtx_costs): Pass speed down to helper functions.
32986         (arm_slowmul_rtx_costs): Rework cost calculations.
32987         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
32988         (arm_9e_rtx_costs): Likewise.
32989
32990 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
32991
32992         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
32993         relocations of local symbols wider than UNITS_PER_WORD are not valid.
32994         (alpha_legitimize_address): Do not split local symbols wider than
32995         UNITS_PER_WORD into HIGH/LO_SUM parts.
32996
32997 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
32998
32999         PR bootstrap/38580
33000         * gcc.c (process_command): Replace call to execvp with calls
33001         to pex_one and exit.
33002
33003 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
33004
33005         PR target/29141
33006         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
33007         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
33008         variant for devices with 3-byte PC.
33009         (__tablejump_elpm__): New.
33010
33011 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33012
33013         PR c/32041
33014         * c-parser.c (c_parser_postfix_expression): Allow `->' in
33015         offsetof member-designator, handle it as `[0].'.
33016
33017 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33018
33019         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
33020         function when not using named sections on targets with named sections
33021         if branch distance is less than 262132.
33022
33023 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
33024
33025         * combine.c (combine_instructions):  Recompute
33026         optimize_this_for_speed_p  for each BB in the main combine loop.
33027
33028 2009-01-12  Tomas Bily  <tbily@suse.cz>
33029
33030         PR middlend/38385
33031         * tree-loop-distribution.c (prop_phis): New function.
33032         (generate_builtin): Call prop_phis.
33033
33034 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33035
33036         PR tree-optimization/38807
33037         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
33038         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
33039
33040 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
33041
33042         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
33043         subreg of op0 to the original op0.
33044
33045 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
33046
33047         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
33048
33049 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
33050
33051         PR debug/7055
33052         * mips-tfile.c (parse_def): Fix parsing of def strings
33053         starting with digits.
33054
33055 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
33056
33057         PR target/38695
33058         * config/arm/arm.c (arm_is_long_call_p): Don't call
33059         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
33060
33061 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
33062
33063         * regrename.c (regrename_optimize): Fix dumping.
33064         (find_oldest_value_reg): Preserve REG_POINTER.
33065         (copy_hardreg_forward_1): Likewise.
33066
33067 2009-01-09  Diego Novillo  <dnovillo@google.com>
33068
33069         * gimple.h (struct gimple_statement_base) <uid>: Document
33070         the restrictions on its use.
33071         (gimple_uid): Tidy.
33072         (gimple_set_uid): Tidy.
33073
33074 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33075
33076         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
33077         zero guard even if align_bytes != 0 and count is smaller than
33078         size_needed.
33079
33080 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
33081
33082         PR rtl-optimization/38495
33083         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
33084         (add_range_and_copies_from_move_list): Print all added ranges.
33085         Add ranges to memory optimized destination.
33086
33087 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33088
33089         PR target/38686
33090         PR target/38708
33091         * config/i386/i386.c (override_options): Reject
33092         -mstringop-strategy=rep_8byte with -m32.
33093         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
33094         to 1.  Do count comparison against epilogue_size_needed at compile
33095         time even when count_exp was constant forced into register.  For
33096         size_needed don't jump to epilogue, instead just avoid aligning
33097         and invoke the body algorithm.  If need_zero_guard, add zero guard
33098         even if count is non-zero, but smaller than size_needed + number of
33099         bytes that could be stored for alignment.
33100         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
33101         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
33102         but smaller than size_needed + number of bytes that could be stored
33103         for alignment.  Compare size_needed with epilogue_size_needed instead
33104         of desired_align - align, don't adjust size_needed, pass
33105         epilogue_size_needed to the epilogue expanders.
33106
33107         PR c/35742
33108         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
33109
33110 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33111
33112         * pa.c (last_address): Change to unsigned.
33113         (update_total_code_bytes): Change argument to unsigned.  Don't
33114         check if insn addresses are set.
33115         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
33116         addresses are not set.
33117         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
33118
33119 2009-01-09  Nick Clifton  <nickc@redhat.com>
33120
33121         * config/sh/symbian.c: Replace uses of DECL_INLINE with
33122         DECL_DECLARED_INLINE_P.
33123
33124 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33125
33126         PR middle-end/38347
33127         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
33128         GET_MODE (op0) in operand_subword_force calls.
33129
33130         PR middle-end/38771
33131         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
33132         fold_convert arg0 operands to TREE_TYPE (op0) first.
33133
33134 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
33135
33136         * params.def (ira-max-conflict-table-size): Decrease default value
33137         to 1000.
33138
33139 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
33140
33141         PR tree-optimization/37031
33142         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
33143         on parameter_set.
33144         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
33145         allocate it using gc instead of heap, use VEC_quick_push instead of
33146         VEC_safe_push.
33147         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
33148         instead of heap, use VEC_quick_push instead of VEC_safe_push.
33149         * tree-data-ref.h (struct access_matrix): Change matrix to gc
33150         allocated vector from heap allocated.
33151         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
33152         * tree-loop-linear.c (linear_transform_loops): Allocate nest
33153         vector only after perfect_loop_nest_depth call.
33154
33155 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
33156             Jan Sjodin  <jan.sjodin@amd.com>
33157
33158         PR tree-optimization/38559
33159         * graphite.c (debug_value, copy_constraint,
33160         swap_constraint_variables, scale_constraint_variable, ): New.
33161         (get_lower_bound, get_upper_bound): Removed.
33162         (graphite_trans_bb_strip_mine): Clean up this code that works
33163         only for constant number of iterations.  Fully copy upper and
33164         lower bound constraints, not only the constant part of them.
33165         * graphite.h (debug_value): Declared.
33166
33167 2009-01-08  Ira Rosen  <irar@il.ibm.com>
33168
33169         PR tree-optimization/37194
33170         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
33171         Don't add the cost of cost model guard in prologue to scalar
33172         outside cost in case of known number of iterations.
33173
33174 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
33175             Alan Modra  <amodra@bigpond.net.au>
33176
33177         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
33178         non-word-aligned REG+CONST addressing.
33179
33180 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33181
33182         PR target/38706
33183         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
33184         free_after_compilation when outputting a thunk.
33185         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
33186         Do not call free_after_compilation here.
33187
33188 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33189
33190         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
33191         (ix86_valid_target_attribute_inner_p): Ditto.
33192
33193 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
33194
33195         PR tree-optimization/38492
33196         PR tree-optimization/38498
33197         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
33198         * tree-chrec.h (scev_is_linear_expression): Declared.
33199         * graphite.c (graphite_cannot_represent_loop_niter): New.
33200         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
33201         (graphite_loop_normal_form): Use gcc_assert.
33202         (scan_tree_for_params): Use CASE_CONVERT.
33203         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
33204         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
33205         Use gcc_assert.  Discard scops that contain unhandled cases.
33206         (build_scop_conditions): Return a boolean status for unhandled cases.
33207         (strip_mine_profitable_p): Print the loop number, not its depth.
33208         (is_interchange_valid): Pass the depth of the loop nest, don't
33209         recompute it wrongly.
33210         (graphite_trans_bb_block): Same.
33211         (graphite_trans_bb_block): Print tentative of loop blocking.
33212         (graphite_trans_scop_block): Do not print that the loop has been
33213         blocked.
33214         (graphite_transform_loops): Do not handle scops that contain condition
33215         scalar phi nodes.
33216
33217 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
33218
33219         AVX Programming Reference (December, 2008)
33220         * config/i386/avxintrin.h (_mm256_stream_si256): New.
33221         (_mm256_stream_pd): Likewise.
33222         (_mm256_stream_ps): Likewise.
33223
33224         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
33225         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
33226         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
33227         (bdesc_special_args): Add __builtin_ia32_movntdq256,
33228         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
33229         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
33230         (ix86_expand_special_args_builtin): Likewise.
33231
33232         * config/i386/sse.md (AVXMODEDI): New.
33233         (avx_movnt<mode>): Likewise.
33234         (avx_movnt<mode>): Likewise.
33235         (<sse>_movnt<mode>): Remove AVX support.
33236         (sse2_movntv2di): Likewise.
33237
33238 2009-01-07  Richard Guenther  <rguenther@suse.de>
33239
33240         PR middle-end/38751
33241         * fold-const.c (extract_muldiv): Remove obsolete comment.
33242         (fold_plusminus_mult_expr): Undo MINUS_EXPR
33243         to PLUS_EXPR canonicalization for the canonicalization.
33244
33245 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
33246
33247         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
33248         hosted cross-compilers generating less efficient code.
33249
33250 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33251
33252         * function.h (rtl_data): Add a dbr_scheduled_p field.
33253         * reorg.c (dbr_schedule): Set it.
33254         (gate_handle_delay_slots): Check it.
33255         * config/mips/mips.c (mips_base_delayed_branch): Delete.
33256         (mips_reorg): Check flag_delayed_branch instead of
33257         mips_base_delayed_branch.
33258         (mips_override_options): Don't set mips_base_delayed_branch
33259         or flag_delayed_branch.
33260
33261 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33262
33263         PR rtl-optimization/38426.
33264         * ira.c (ira): Set current_function_is_leaf earlier.
33265
33266 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
33267
33268         PR rtl-optimization/38722
33269         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
33270         too early, only set a flag and modify after last possible
33271         undo_all point.
33272
33273 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
33274
33275         PR c/34252
33276         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
33277         * real.c (decimal_single_format): Correct values of emin and emax.
33278         (decimal_double_format): Ditto.
33279         (decimal_quad_format): Ditto.
33280         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
33281         computation of DECnn_MIN and DECnn_MAX for corrected values of
33282         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
33283         __DECnn_MIN__, and adjust its computation for the corrected value
33284         of emin.
33285
33286 2009-01-06  Jan Hubicka  <jh@suse.cz>
33287
33288         PR target/38744
33289         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
33290
33291 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
33292
33293         * doc/contrib.texi (Contributors): Slightly adjust the end note.
33294         Add Robert Clark to the list of testers.
33295
33296 2009-01-06  Jan Hubicka  <jh@suse.cz>
33297             Kai Tietz  <kai.tietz@onevision.com>
33298
33299         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
33300         * config/i386/i386.c (ix86_expand_call): Add clobbers.
33301
33302 2009-01-06  Jan Hubicka  <jh@suse.cz>
33303             Kai Tietz  <kai.tietz@onevision.com>
33304
33305         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
33306         for w64 ABI.
33307         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
33308         (ix86_nsaved_regs): Count only general purpose regs.
33309         (ix86_nsaved_sseregs): New.
33310         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
33311         to 16 for w64; compute padding and size of sse reg save area.
33312         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
33313         general purpose regs.
33314         (ix86_emit_save_sse_regs_using_mov): New.
33315         (ix86_expand_prologue): Save SSE regs if needed.
33316         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
33317         (ix86_emit_restore_sse_regs_using_mov): New.
33318         (ix86_expand_epilogue): Save SSE regs if needed.
33319
33320 2009-01-06  Jan Hubicka  <jh@suse.cz>
33321             Kai Tietz  <kai.tietz@onevision.com>
33322
33323         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
33324         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
33325         functions when accumulate outgoing args is off.
33326
33327 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33328
33329         PR bootstrap/38742
33330         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
33331         before using pseudos_have_intersected_live_ranges_p.
33332
33333         * ira-int.h (ira_assert): Always define.
33334
33335 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33336
33337         AVX Programming Reference (December, 2008)
33338         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
33339         (_mm256_permute2_pd): Likewise.
33340         (_mm_permute2_ps): Likewise.
33341         (_mm256_permute2_ps): Likewise.
33342         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
33343         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
33344
33345         * config/i386/i386.c (ix86_builtins): Remove
33346         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
33347         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
33348         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
33349         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
33350         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
33351         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
33352         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
33353         __builtin_ia32_vpermil2ps256.
33354         (ix86_init_mmx_sse_builtins): Updated.
33355         (ix86_expand_args_builtin): Likewise.
33356
33357 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33358
33359         * pa.c (output_call): Relocate non-jump insns in the delay slot of
33360         long absolute calls when generating PA 2.0 code.
33361
33362 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
33363
33364         PR rtl-optimization/38583
33365         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
33366
33367         * params.def (ira-max-conflict-table-size): New.
33368
33369         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
33370
33371         * ira.h (ira_conflicts_p): New external definition.
33372
33373         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
33374         table.  Report this.  Return result of building.
33375         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
33376         building conflict table.
33377
33378         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
33379         (ira_color): Use ira_conflicts_p.
33380
33381         * global.c: Include ira.h.
33382         (pseudo_for_reload_consideration_p, build_insn_chain): Use
33383         ira_conflicts_p.
33384
33385         * Makefile.in (global.o): Add ira.h.
33386
33387         * ira-build.c (mark_all_loops_for_removal,
33388         propagate_some_info_from_allocno): New.
33389         (remove_unnecessary_allocnos): Call
33390         propagate_some_info_from_allocno.
33391         (remove_low_level_allocnos): New.
33392         (remove_unnecessary_regions): Add parameter.  Call
33393         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
33394         parameter to remove_unnecessary_regions.
33395         (ira_build): Remove all regions but root if the conflict table was
33396         not built.  Update conflict hard regs for allocnos crossing calls.
33397
33398         * ira.c (ira_conflicts_p): New global.
33399         (ira): Define and use ira_conflicts_p.
33400
33401         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33402         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
33403         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
33404
33405 2009-01-06  Ben Elliston  <bje@au.ibm.com>
33406
33407         * gengtype-lex.l (YY_NO_INPUT): Define.
33408
33409 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33410
33411         PR c/34911
33412         * c-common.c (handle_vector_size_attribute): Also reject
33413         BOOLEAN_TYPE types.
33414
33415 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
33416
33417         PR tree-optimization/38492
33418         * graphite.c (rename_map_elt, debug_rename_elt,
33419         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
33420         rename_map_elt_info, eq_rename_map_elts,
33421         get_new_name_from_old_name, bb_in_sese_p): Moved around.
33422         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
33423         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
33424         (sese_build_livein_liveouts): New.
33425         (new_sese, free_sese): New.
33426         (new_scop): Call new_sese.
33427         (free_scop): Call free_sese.
33428         (rename_variables_from_edge, rename_phis_end_scop): Removed.
33429         (register_old_new_names): Renamed register_old_and_new_names.
33430         (register_scop_liveout_renames, add_loop_exit_phis,
33431         insert_loop_close_phis, struct igp,
33432         default_liveout_before_guard, add_guard_exit_phis,
33433         insert_guard_phis, copy_renames): New.
33434         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
33435         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
33436         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
33437         (scop_adjust_phis_for_liveouts): New.
33438         (gloog): Call scop_adjust_phis_for_liveouts.
33439
33440         * graphite.h (struct sese): Documented.  Added fields liveout,
33441         num_ver and livein.
33442         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
33443         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
33444         (struct scop): Added field liveout_renames.
33445         (SCOP_LIVEOUT_RENAMES): New.
33446
33447 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33448
33449         PR tree-optimization/38510
33450         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
33451         (translate_clast): Call recompute_all_dominators before
33452         graphite_verify.
33453         (gloog): Call recompute_all_dominators before graphite_verify.
33454
33455 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33456             Jan Sjodin  <jan.sjodin@amd.com>
33457
33458         PR tree-optimization/38500
33459         * graphite.c (create_sese_edges): Call fix_loop_structure after
33460         splitting blocks.
33461
33462 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
33463
33464         * config.gcc: Add m32r*-*-rtems*.
33465         * config/m32r/rtems.h: New file.
33466
33467 2009-01-05  Ben Elliston  <bje@au.ibm.com>
33468
33469         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
33470         (.po.pox): Likewise.
33471         (po/gcc.pot): Likewise.
33472
33473 2009-01-04  David S. Miller  <davem@davemloft.net>
33474
33475         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
33476         (STARTING_FRAME_OFFSET): Always set to zero.
33477
33478 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33479
33480         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
33481         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
33482         fixed-point types, and vectors of the same.
33483
33484 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33485
33486         * config/mips/sync.md (*mb_barrier): Rename to...
33487         (*memory_barrier): ...this.
33488
33489 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
33490
33491         * doc/extend.texi (Function Attributes): Move @cindex after @item
33492         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
33493         and put in alphabetical order. Fix 'target' name and put in order.
33494         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
33495         typos.
33496
33497 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
33498
33499         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
33500         (memory_barrier): Expand as unspec instead of unspec_volatile.
33501         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33502         (*memory_barrier): Define as unspec instead of unspec_volatile.
33503         Use (match_dup 0) as input operand.
33504
33505         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
33506         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
33507         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
33508         scratch register.  Remove operand 1.
33509         (*stbar): Define as unspec instead of unspec_volatile.
33510         Use (match_dup 0) as input operand, remove (const_int 8).
33511         (*membar): Define as unspec instead of unspec_volatile.
33512         Use (match_dup 0) as input operand, remove input operand 2.
33513
33514         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
33515         (memory_barrier): Expand as unspec instead of unspec_volatile.
33516         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33517         (*memory_barrier): Define as unspec instead of unspec_volatile.
33518         Use (match_dup 0) as input operand.
33519
33520         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
33521         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33522         Set volatile flag on operand 0.
33523         (*memory_barrier): New insn pattern.
33524
33525         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
33526         insn operands.
33527         (*memory_barrier): Use (match_dup 0) as input operand.
33528
33529         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
33530         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33531         Set volatile flag on operand 0.
33532         (*mb_internal): New insn pattern.
33533
33534         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
33535
33536 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33537
33538         PR middle-end/38586
33539         * function.c (struct temp_slot): Move to the section of the file
33540         that deals with temp slots.  Remove field 'address'.
33541         (temp_slot_address_table): New hash table of address -> temp slot.
33542         (struct temp_slot_address_entry): New struct, items for the table.
33543         (temp_slot_address_compute_hash, temp_slot_address_hash,
33544         temp_slot_address_eq, insert_temp_slot_address): Support functions
33545         for the new table.
33546         (find_temp_slot_from_address): Rewrite to use the new hash table.
33547         (remove_unused_temp_slot_addresses): Remove addresses of temp
33548         slots that have been made available.
33549         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
33550         worker function for remove_unused_temp_slot_addresses.
33551         (assign_stack_temp_for_type): Don't clear the temp slot address list.
33552         Add the temp slot address to the address -> temp slot map.
33553         (update_temp_slot_address): Update via insert_temp_slot_address.
33554         (free_temp_slots): Call remove_unused_temp_slot_addresses.
33555         (pop_temp_slots): Likewise.
33556         (init_temp_slots): Allocate the address -> temp slot map, or empty
33557         the map if it is already allocated.
33558         (prepare_function_start): Initialize temp slot processing.
33559
33560 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33561
33562         PR middle-end/38584
33563         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
33564         Calculate the size of all stack vars assuming no packing of stack
33565         vars will happen, replacing a quadratic algorithm with a linear one.
33566
33567 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33568
33569         PR target/38707
33570         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
33571         can't be used.
33572
33573 2009-01-03  Diego Novillo  <dnovillo@google.com>
33574
33575         * doc/contrib.texi: Update contributions.
33576
33577 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33578
33579         PR c++/38705
33580         * builtins.c (fold_builtin_memory_op): Give up if either operand
33581         is volatile.  Set srctype or desttype to non-qualified version
33582         of the other type.
33583
33584         PR c/38700
33585         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
33586         and FUNCTION_DECLs.
33587
33588 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
33589
33590         PR rtl-optimization/35805
33591         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
33592         problem if fast dce is able to remove any instructions.
33593         * dce.c (dce_process_block): Fix dump message.
33594
33595 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
33596
33597         PR 33649
33598         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
33599
33600 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
33601
33602         PR middle-end/38690
33603         * tree-flow.h (op_code_prio, op_prio): New prototypes.
33604         * tree-pretty-print.c (op_code_prio): New function.
33605         (op_prio): No longer static.  Use op_code_prio.
33606         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
33607         Use op_prio and op_code_prio to determine if () should be
33608         printed around operand(s) or not.
33609
33610         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
33611         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
33612         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
33613         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
33614         pp_character instead of pp_string for single letter printing.
33615
33616 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33617
33618         * doc/extend.texi: Fix '#pragma GCC option' typo.
33619
33620 2009-01-02  Richard Guenther  <rguenther@suse.de>
33621
33622         * doc/install.texi (--enable-checking): Mention different
33623         default for stage1.
33624         (--enable-stage1-checking): Document.
33625
33626 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
33627
33628         PR middle-end/30142
33629         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
33630         case to be an error.
33631
33632 2009-01-02  Ben Elliston  <bje@au.ibm.com>
33633
33634         * config/fp-bit.h (pack_d): Constify argument.
33635         * config/fp-bit.c (makenan): Constify return type. Remove casts.
33636         (isnan): Constify argument.
33637         (isinf): Likewise.
33638         (iszero): Likewise.
33639         (pack_d): Likewise.
33640         (_fpadd_parts): Constify return type.
33641         (_fpmul_parts): Likewise.
33642         (_fpdiv_parts): Likewise.
33643
33644 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
33645
33646         PR c/36489
33647         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
33648         warn about overwriting initializer with side-effects or
33649         -Woverride-init if !IMPLICIT.
33650         (output_init_element): Likewise.  Pass IMPLICIT down to
33651         add_pending_init.
33652         (process_init_element): Add IMPLICIT argument.  Pass it down
33653         to output_init_element.
33654         (push_init_element, pop_init_level, set_designator): Adjust
33655         process_init_element callers.
33656         (set_nonincremental_init, set_nonincremental_init_from_string):
33657         Adjust add_pending_init callers.
33658         (output_pending_init_elements): Adjust output_init_element callers.
33659         * c-tree.h (process_init_element): Adjust prototype.
33660         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
33661         process_init_element callers.
33662
33663 \f
33664 Copyright (C) 2009 Free Software Foundation, Inc.
33665
33666 Copying and distribution of this file, with or without modification,
33667 are permitted in any medium without royalty provided the copyright
33668 notice and this notice are preserved.