OSDN Git Service

* doc/invoke.texi (-fdump-tree-slp): Document.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-12-02  Ira Rosen  <irar@il.ibm.com>
2
3         * doc/invoke.texi (-fdump-tree-slp): Document.
4         (-ftree-vectorizer-verbose): Update.
5         (-ftree-slp-vectorize): Document.
6
7 2009-12-02  Nick Clifton  <nickc@redhat.com>
8
9         * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
10         no fixed registers are available for interrupt handlers.  Do not
11         fix normal registers.
12         (MUST_SAVE_ACC_REGISTER): New macro.
13         (rx_get_stack_layout): Create a stack frame for fast interrupt
14         handlers, if necessary.  Push extra registers if needed in order
15         to save the accumulator.
16         (rx_expand_prologue): Create a stack frame for fast interrupt
17         handlers, if necessary.
18         (rx_expand_builtin_mvfc): Handle the case where there is no
19         target.
20
21 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
22
23         * config/i386/abmintrin.h (__lzcnt16): New.
24         (__lzcnt): New.
25         (__lzcnt64): New.
26         * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
27         * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
28         (bdesc_special_args): Add __builtin_clzs.
29         (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
30
31 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
32
33         * config/i386/abmintrin.h (_mm_popcnt_u32): New.
34         (_mm_popcnt_u64): New.
35
36 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
37
38         * config/i386/abmintrin.h: New.
39         * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
40         * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
41
42 2009-12-01  Uros Bizjak  <ubizjak@gmail.com>
43
44         * config/i386/i386.md (SWI124): Rename from CRC32MODE.
45         (crc32modesuffix): Remove.
46         (crc32modeconstraint): Ditto.
47         (sse4_2_crc32<mode>): Update for renamed mode iterator.  Use
48         imodesuffix instead of crc32modesuffix and <r>m instead of
49         crc32modeconstraint.
50
51 2009-12-01  Jakub Jelinek  <jakub@redhat.com>
52
53         PR c++/42234
54         * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
55         contains no statements.
56
57 2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
58             Joern Rennecke  <amylaar@spamcop.net>
59
60         * cgraphunit.c (plugin.h): Include.
61         (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
62         PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
63         * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
64         (enum plugin_event): Define by including plugin.def.
65         Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
66         (plugin_event_name): Change type to const char **.
67         (get_event_last, get_named_event_id, unregister_callback): Declare.
68         (register_callback): Change type of event argument to int.
69         (highlev-plugin-common.h): New file.
70         * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
71         $(HASHTAB_H)
72         (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
73         (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
74         (s-header-vars): New rule.
75         (install-plugin): Depend on s-header-vars.  Install b-header-vars.
76         * params.c (get_num_compiler_params): New function.
77         * params.h (get_num_compiler_params): Declare.
78         * passes.c (plugin.h): Include.
79         (make_pass_instance): Invoke PLUGIN_NEW_PASS.
80         (do_per_function_toporder, pass_init_dump_file): No longer static.
81         (pass_fini_dump_file): Likewise.
82         (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
83         PLUGIN_PASS_EXECUTION.
84         (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
85         PLUGIN_EARLY_GIMPLE_PASSES_END.
86         * plugin.c (plugin_event_name_init): New array, defined by
87         including plugin.def.
88         (FMT_FOR_PLUGIN_EVENT): Update.
89         (plugin_event_name): Change type to const char ** and initialize
90         to plugin_event_name_init.
91         (event_tab, event_last, event_horizon): New variable.
92         (get_event_last): New function.
93         (plugin_callbacks_init): New array.
94         (plugin_callbacks: Change type to struct callback_info **.
95         Initialize to plugin_callbacks_init.
96         (htab_event_eq, get_named_event_id, unregister_callback): New function.
97         (invoke_plugin_va_callbacks): Likewise.
98         (register_callback): Change type of event argument to int.
99         Handle new events.  Allow dynamic events.
100         (invoke_plugin_callbacks): Likewise.  Return success status.
101         (plugins_active_p): Allow dynamic callbacks.
102         * plugin.def: New file.
103         * plugin.h (invoke_plugin_callbacks): Update prototype.
104         (invoke_plugin_va_callbacks): Declare.
105         * tree-optimize.c (plugin.h): Include.
106         (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
107         PLUGIN_ALL_PASSES_END.
108         * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
109         (pass_fini_dump_file, do_per_function_toporder): Likewise.
110         * doc/plugin.texi: Document new event types.
111
112 2009-12-01  Martin Jambor  <mjambor@suse.cz>
113
114         PR tree-optimization/42237
115         * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
116         in between references into two.
117
118 2009-12-01  Richard Guenther  <rguenther@suse.de>
119
120         * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
121         to the block of the call when remapping a type.
122
123 2009-12-01  Martin Jambor  <mjambor@suse.cz>
124
125         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
126         unsigned short int.
127         * ipa-prop.h (struct ipa_param_call_note): Likewise.
128         * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
129
130 2009-12-01  Richard Guenther  <rguenther@suse.de>
131
132         * final.c (rest_of_clean_state): If -fcompare-debug is
133         given dump final insns without UIDs.
134         * tree-ssa-live.c (remove_unused_scope_block_p): Remove
135         after_inlining checks.
136
137 2009-11-30  Chao-ying Fu  <fu@mips.com>
138
139         * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
140
141 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
142
143         * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
144         status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
145         * configure: Regenerate.
146         * config.in: Regenerate.
147
148         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
149         options for Cygwin DLL libstdc++ support wrappers.
150         (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
151         according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
152         (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
153         whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
154         (LINK_SPEC): Include CXX_WRAP_SPEC.
155         * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
156         (i386_find_on_wrapper_list): Check if a function is found on the list
157         of libstdc++ wrapper options.
158         (i386_pe_file_end): If we are importing a wrapped function, also emit
159         an external declaration for the real version.
160         * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
161         Cygwin targets. Update copyright year.
162
163 2009-11-30  Steve Ellcey  <sje@cup.hp.com>
164             Jakub Jelinek <jakub@redhat.com>
165
166         * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
167         before forcing mode.
168
169 2009-11-30  Anatoly Sokolov  <aesok@post.ru>
170
171         * config/sh/sh.c (sh_promote_prototypes): Make static.
172         (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
173         functions.
174         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
175         * config/sh/sh.h: (FUNCTION_VALUE_REGNO_P): Redefine, use
176         sh_function_value_regno_p.
177         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
178         * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
179         (sh_promote_prototypes) : Remove.
180
181 2009-11-30  Julian Brown  <julian@codesourcery.com>
182
183         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
184         reloads to LO_REGS.
185
186 2009-11-30  Richard Henderson  <rth@redhat.com>
187
188         * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
189         (bdesc_special_args): Update insn codes.
190         (avx_vpermilp_parallel): Correct range check.
191         (ix86_rtx_costs): Handle vector permutation rtx codes.
192         (struct expand_vec_perm_d): Move earlier.
193         (get_mode_wider_vector): New.
194         (expand_vec_perm_broadcast_1): New.
195         (ix86_expand_vector_init_duplicate): Use it.  Tidy AVX modes.
196         (expand_vec_perm_broadcast): New.
197         (ix86_expand_vec_perm_builtin_1): Use it.
198         * config/i386/i386-protos.h: Update.
199         * config/i386/predicates.md (avx_vbroadcast_operand): New.
200         * config/i386/sse.md (AVX256MODE24P): New.
201         (ssescalarmodesuffix2s): New.
202         (avxhalfvecmode, avxscalarmode): Fill out to all modes.
203         (avxmodesuffixf2c): Add V8SI, V4DI.
204         (vec_dupv4sf): New expander.
205         (*vec_dupv4sf_avx): Add vbroadcastss alternative.
206         (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
207         V4SF and V4SI.  Move C alternatives to front.  Add insertps and
208         pinsrd alternatives.
209         (*vec_set<mode>_0_sse2): Split out from ...
210         (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
211         (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
212         destination; use ix86_vec_interleave_v2df_operator_ok, instead of
213         ix86_fixup_binary_operands.
214         (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
215         (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
216         (*avx_movddup, *sse3_movddup): Remove.  New splitter from
217         vec_select form to vec_duplicate form.
218         (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
219         ix86_vec_interleave_v2df_operator_ok.
220         (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
221         (*avx_unpcklpd256): ... here.
222         (*vec_dupv4si_avx): New.
223         (*vec_dupv2di_avx): Add movddup alternative.
224         (*vec_dupv2di_sse3): New.
225         (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
226         avx_vbroadcastss256; represent with vec_duplicate instead of
227         nested vec_concat operations.
228         (avx_vbroadcastf128_<mode>): Rename from
229         avx_vbroadcastf128_p<avxmodesuffixf2c>256.
230         (*avx_vperm_broadcast_v4sf): New.
231         (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
232
233 2009-11-30  Martin Jambor  <mjambor@suse.cz>
234
235         PR middle-end/42196
236         * tree-sra.c (struct access): New field grp_different_types.
237         (dump_access): Dump grp_different_types.
238         (compare_access_positions): Prefer scalars and vectors over other
239         scalar types.
240         (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
241         (sra_modify_expr): Use the original also when dealing with a complex
242          or vector group accessed as multiple types.
243
244 2009-11-30  Richard Henderson  <rth@redhat.com>
245
246         * config/i386/i386.c (avx_vperm2f128_parallel): New.
247         * config/i386/i386-protos.h: Declare it.
248         * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
249         avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
250         * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
251         (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
252         (*avx_vperm2f128<mode>_nozero): New.
253
254 2009-11-30  Richard Henderson  <rth@redhat.com>
255
256         * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
257         (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
258         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
259         V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
260         (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
261         (bdesc_args): Add them.
262         (ix86_expand_builtin): Expand them.
263         (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
264
265 2009-11-30  Martin Jambor  <mjambor@suse.cz>
266
267         PR middle-end/42206
268         * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
269
270 2009-11-30  Jakub Jelinek  <jakub@redhat.com>
271
272         * ipa-reference.c (propagate): Only dump bitmaps if computed.
273
274 2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>
275
276         PR middle-end/39806
277         * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
278         (new_var_hash): Likewise.
279         (is_in_new_vars_htab): Likewise.
280         (add_to_new_vars_htab): Likewise.
281
282 2009-11-30  Ira Rosen  <irar@il.ibm.com>
283
284         * tree-vect-stmts.c (vectorizable_assignment): Support
285         multiple types.
286
287 2009-11-30  Richard Guenther  <rguenther@suse.de>
288
289         * doc/contrib.texi (Contributors): Add myself.
290
291 2009-11-30  Richard Guenther  <rguenther@suse.de>
292
293         * tree.c (free_lang_data): Do not set debug_info_level to
294         none if terse.
295
296 2009-11-30  Richard Guenther  <rguenther@suse.de>
297
298         PR middle-end/42119
299         PR fortran/38530
300         * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
301         of CONST_DECLs.
302
303 2009-11-30  Richard Guenther  <rguenther@suse.de>
304
305         * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
306         variable UID order.
307
308 2009-11-30  Richard Guenther  <rguenther@suse.de>
309
310         * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
311         * tree-pass.h (TDF_NOUID): Likewise.
312         * print-rtl.c: Include tree-pass.h.
313         (print_mem_expr): Pass dump_flags.
314         (print_rtx): Likewise.
315         * print-tree.c: Include tree-pass.h.
316         (print_node_brief): Handle TDF_NOUID.
317         (print_node): Likewise.
318         * tree-pretty-print.c (dump_decl_name): Likewise.
319         (dump_generic_node): Likewise.
320         * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
321         dependency.
322
323 2009-11-30  Nick Clifton  <nickc@redhat.com>
324
325         * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
326         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
327         stormy16-lib2-count-leading-zeros.c.
328         * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
329         __stormy16_count_leading_zeros() into this function.
330         (__ctzhi2): Use __builtin_clz.
331         (__ffshi2): Likewise.
332
333 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
334
335         * config/sparc/sparc.c (DF_MODES): Simplify.
336         (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
337         (TF_MODES, OF_MODES): Adjust for above change.
338         (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
339         *  config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
340
341 2009-11-30  Paolo Bonzini  <bonzini@gnu.org>
342
343         PR rtl-optimization/41812
344         * fwprop.c (local_md, local_lr): New globals.
345         (process_defs, process_uses): Remove local_md argument.  Never
346         consider dead pseudos to have singleton def-use chains.
347         (single_def_use_enter_block): Perform LR simulation.
348         (build_single_def_use_links): Remove local_md local variable.
349         Add DF_NOTE.  Allocate local_lr.
350         (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
351         * df-problems.c (df_md_scratch): New.
352         (df_md_alloc, df_md_free): Allocate/free it.
353         (df_md_local_compute): Only include live registers in init.
354         (df_md_transfer_function): Prune the in-set computed by
355         the confluence function, and the gen-set too.
356
357 2009-11-30  Hans-Peter Nilsson  <hp@axis.com>
358
359         PR rtl-optimization/40086
360         * reorg.c (relax_delay_slots): When looking for redundant insn at
361         the branch target, use next_real_insn, not next_active_insn.
362
363 2009-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
364
365         * doc/install.texi: Update minimum MPC version to 0.8.
366
367 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
368
369         * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
370         HONOR_SIGNED_ZEROS final condition.
371         (fnmsubsf4_powerpc_1): Same.
372         (fnmadddf4_fpr_1): Same.
373         (fnmsubdf4_fpr_1): Same.
374
375 2009-11-29  Ira Rosen  <irar@il.ibm.com>
376
377         PR tree-optimization/42193
378         * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
379         to 1 in case of basic block SLP.
380         (vectorizable_load): Likewise.
381
382 2009-11-28  Jan Hubicka  <jh@suse.cz>
383
384         * cgraph.c (same_body_alias_1): Break out of
385         (same_body_alias): ... here; remove comdat check; it is handled
386         in cp already.
387         (cgraph_add_thunk): New.
388         (dump_cgraph_node): Dump aliases and thunks.
389         * cgraph.h (cgraph_thunk_info): New structure.
390         (struct cgraph_node): Add thunk info.
391         (cgraph_add_thunk): New.
392         * cgraphunit.c (cgraph_emit_thunks): Remove.
393         (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
394         (assemble_thunk): New function.
395         (cgraph_expand_function): Handle thunks.
396         (thunk_adjust): New.
397         (init_lowered_empty_function): New.
398         * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
399         Remove.
400         * lto-cgraph.c (lto_output_node): Stream thunk info.
401         (input_node): Likewise.
402         * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
403         * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
404         (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
405         * i386.c (x86_output_mi_thunk): Make output prettier.
406
407 2009-11-28  Richard Guenther  <rguenther@suse.de>
408
409         PR tree-optimization/42183
410         * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
411         address taken.  Merge the addressable state of the NRV
412         variable and the result instead of copying it.
413
414 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
415
416         * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
417         malloc_fname variable.
418         (check_allocation_function): Remove unused gsi and bb_level_0
419         variables.
420         (transform_access_sites): Remove unused d_type_size and d_type_size_k
421         variables.
422         * omega.c (resurrect_subs): Remove unused n variable.
423         (omega_solve_geq): Remove unused neweqns variable.
424         * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
425         * tree-inline.c (declare_return_variable): Remove USE_P argument,
426         return use instead of var.
427         (remap_decl, remap_block): Remove unused fn variable.
428         (expand_call_inline): Remove unused retvar variable, adjust
429         declare_return_variable caller.
430         (optimize_inline_calls): Remove unused prev_fn variable.
431         * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
432         variable.
433         (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
434         variables.
435         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
436         properly.
437         * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
438         variable.
439         (vect_create_epilog_for_reduction): Remove unused bytesize variable.
440         * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
441         parameter.  Remove unused par_stmt variable.
442         (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
443         (expand_omp_sections): Remove unused l1 variable.
444         (lower_omp_for): Remove unused ilist variable.
445         * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
446         Remove unused has_upstream_mem_write_p variable.
447         * recog.c (decode_asm_operands): Remove unused noperands variable.
448         * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
449         size2 variable.
450         * libgcov.c (__gcov_merge_delta): Remove unused last variable.
451         * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
452         base_nm variable.
453         (gen_conditions_for_pow): Remove unused ec variable.
454         * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
455         variable.
456         * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
457         fndecl variable.
458         * tree-ssa-sink.c (statement_sink_location): Remove unused code
459         variable.
460         * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
461         variables.
462         * tree-complex.c (create_one_component_var): Remove unused inner_type
463         variable.
464         * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
465         unnecessarily when GEN_*CALL omits that argument.
466         * regrename.c (regrename_optimize): Remove unused regs_seen variable.
467         (build_def_use): Remove unused icode variable.
468         * ipa-pure-const.c (check_call): Remove unused callee and avail
469         variables.
470         * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
471         * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
472         variable.
473         (vect_pattern_recog): Remove unused stmt variable.
474         * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
475         new_regions variable.
476         * postreload.c (reload_cse_simplify_operands): Remove unused mode
477         variable.
478         * tree-parloops.c (create_call_for_reduction_1): Remove unused
479         addr_type variable.
480         (create_parallel_loop): Remove unused res variable.
481         (gen_parallel_loop): Remove unused nloop variable.
482         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
483         * value-prof.c (gimple_mod_subtract_transform,
484         gimple_stringops_transform): Remove unused value variable.
485         (gimple_stringops_values_to_profile): Remove unused fcode variable.
486         * tree-vrp.c (register_new_assert_for): Remove unused found variable.
487         (vrp_visit_switch_stmt): Remove unused n variable.
488         * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
489         variable.
490         (vectorizable_operation): Remove unused shift_p variable.
491         (vectorizable_store): Remove unused first_stmt_vinfo variable.
492         * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
493         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
494         variable.
495         (vect_permute_store_chain): Remove unused scalar_dest variable.
496         (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
497         variable.
498         * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
499         local_info variable.
500         * tree-optimize.c (tree_rest_of_compilation): Remove unused node
501         variable.
502         * optabs.c (expand_binop): Remove unused equiv_value variable.
503         (emit_libcall_block): Remove unused prev variable.
504         (init_optabs): Remove unused int_mode variable.
505         * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
506         variable.
507         (do_structure_copy): Remove unused lhsbase and rhsbase variables.
508         (find_func_aliases): Remove unused rhstype variable.
509         (ipa_pta_execute): Remove unused varid variable.
510
511 2009-11-28  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
512
513         * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
514
515 2009-11-28  David Binderman  <dcb314@hotmail.com>
516
517         * ira-color.c (put_allocno_into_bucket): Remove set but not used
518         local variable hard_regs_num.
519         * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
520         * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
521         * lower-subreg.c (decompose_multiword_subregs): Remove next.
522
523 2009-11-27  Martin Jambor  <mjambor@suse.cz>
524
525         PR middle-end/42006
526         * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
527         instead of create_tmp_var.  Set DECL_GIMPLE_REG_P to one manually
528         for vector and complex types.
529         (get_adjustment_for_base): Describe return value in the comment.
530
531 2009-11-27  Nick Clifton  <nickc@redhat.com>
532
533         * longlong.h (count_leading_zeros): Define macro for stormy16 target.
534         (COUNT_LEADING_ZEROS_0): Likewise.
535         * config/stormy16/stormy16-lib2.c: Arrange for separate
536         compilation of each function.
537         (__ffshi2): New function.
538         (__stormy16_count_leading_zeros): New function.
539         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
540         compile each function into its own object file.
541         (stormy16-lib2-ashlsi3.c): New stub file.
542         (stormy16-lib2-ashrsi3.c): New stub file.
543         (stormy16-lib2-clzhi2.c): New stub file.
544         (stormy16-lib2-count-leading-zeros.c): New stub file.
545         (stormy16-lib2-ctzhi2.c): New stub file.
546         (stormy16-lib2-divsi3.c): New stub file.
547         (stormy16-lib2-ffshi2.c): New stub file.
548         (stormy16-lib2-lshrsi3.c): New stub file.
549         (stormy16-lib2-modsi3.c): New stub file.
550         (stormy16-lib2-parityhi2.c): New stub file.
551         (stormy16-lib2-popcounthi2.c): New stub file.
552         (stormy16-lib2-udivmodsi4.c): New stub file.
553         (stormy16-lib2-udivsi3.c): New stub file.
554         (stormy16-lib2-umodsi3.c): New stub file.
555
556 2009-11-27  Richard Henderson  <rth@redhat.com>
557
558         * config/i386/sse.md (vec_interleave_highv16qi,
559         vec_interleave_lowv16qi, vec_interleave_highv8hi,
560         vec_interleave_lowv8hi, vec_interleave_highv4si,
561         vec_interleave_lowv4si, vec_interleave_highv2di,
562         vec_interleave_lowv2di, vec_interleave_highv4sf,
563         vec_interleave_lowv4sf, vec_interleave_highv2df,
564         vec_interleave_lowv2df): Remove expanders.
565         (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
566         sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
567         sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
568         Rename to their proper vec_interleave equivalent.  Update all users
569         to the new name.
570         * config/i386/i386.c, config/i386/i386.md: Update all users.
571
572 2009-11-27  Michael Matz  <matz@suse.de>
573
574         PR rtl-optimization/42084
575         * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
576         use it to stop walking.
577         (expand_gimple_cond): Adjust call to above.
578
579 2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
580
581         PR target/41810
582         * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
583         [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
584         __extension__ to allow cast from function pointer to object
585         pointer in C++.
586         * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
587
588 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
589
590         * config/ia64/itanium1.md: Remove.
591         * config/ia64/ia64.md: Do not include it.
592         * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
593         "itanium1", and "merced" from the processor alias table.
594         (clocks, add_cycles): Remove global variables.
595         (ia64_sched_reorder2): Don't set/use them.
596         (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
597         (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
598
599 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
600
601         * config/s390/s390.c (last_scheduled_insn): New variable.
602         (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
603         functions.
604         (s390_sched_reorder, s390_sched_variable_issue): New functions.
605         (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
606         defined.
607
608 2009-11-27  Michael Matz  <matz@suse.de>
609
610         PR c++/41906
611         * tree-eh.c (lower_catch): Stop after expanding a catch-all.
612
613 2009-11-27  Richard Guenther  <rguenther@suse.de>
614
615         * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
616         TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
617         * loop-init.c (pass_rtl_move_loop_invariants): Use
618         TV_LOOP_MOVE_INVARIANTS.
619         (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
620         (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
621         (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
622
623 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
624
625         * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
626
627 2009-11-27  Jakub Jelinek  <jakub@redhat.com>
628
629         * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
630         unused insn variable.
631         * genemit.c (output_peephole2_scratches): Only declare and initialize
632         _regs_allocated if it will be ever used.
633         * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
634         succ_bb variable.
635         (create_empty_loop_on_edge): Remove unused freq and cnt variables.
636         * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
637         variable.
638
639         * opts.c (decode_options): If optimize is bigger than 255,
640         set it to 255.
641
642 2009-11-26  Richard Henderson  <rth@redhat.com>
643
644         * config/i386/sse.md (mulv16qi3): Change back from an expander
645         to an insn-and-split.
646         (mulv4si): Mention AVX not XOP for AVX exception.
647         (*sse2_mulv4si3): Likewise.
648         (mulv2di3): Use vmulld not vpmacsdd for XOP expansion.  Tidy.
649
650 2009-11-26  Bernd Schmidt  <bernd.schmidt@analog.com>
651
652         * cfgexpand (n_stack_vars_conflict): New static variable.
653         (triangular_index): Reduce likelyhood of overflow by performing
654         the division before the multiplication.
655         (resize_stack_vars_conflict): Call fatal_error if overflow
656         occurred in triangular_index.  Update n_stack_vars_conflict.
657
658         PR rtl-opt/38582
659         * regrename.c (struct du_chain): Remove member earlyclobber.
660         (scan_rtx_reg): Don't set it.  Remove argument earlyclobber,
661         all callers changed.
662         (scan_rtx): Remove argument earlyclobber, all callers changed.
663         (hide_operands, restore_operands, record_out_operands): New functions,
664         broken out of build_def_use.
665         (build_def_use): Call them as necessary.
666
667         * regrename.c (struct du_head): New members id, conflicts,
668         hard_conflicts and cannot_rename.
669         (enum scan_actions): Remove terminate_all_read and
670         terminate_overlapping_read; add mark_all_read.
671         (scan_actions_name): Likewise.
672         (du_head_p): New typedef.  Define a vector type for it.
673         (id_to_chain): New static variable.
674         (note_sets, clear_dead_regs): Delete functions.
675         (free_chain_data): New function.
676         (merge_overlapping_regs): Simply walk the conflicts bitmap.
677         Remove argument B, all callers changed.
678         (regrename_optimize): Allocate id_to_chain.  Ignore chains that have
679         the cannot_rename bit set.  Update regno and nregs of a renamed chain.
680         Call free_chain_data when done.
681         (do_replace): Remove death notes when the renamed reg is set in the
682         last insn; add them if not.
683         (mark_conflict, note_sets_clobbers): New static function.
684         (fail_current_block, current_id, open_chains_set, live_hard_regs): New
685         static variables.
686         (scan_rtx_reg): Keep track of conflicts between chains, and between
687         chains and hard regs.  Don't terminate chains when we find a read we
688         can't handle, mark it unrenameable instead.  For terminate_write,
689         terminate chains that are written with an exact match or a superset
690         of registers.  Set fail_current_block if multi-word lifetimes are too
691         complex to handle.
692         (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
693         (build_def_use): Initialize current_id, live_chains and live_hard_regs;
694         free memory for them when done.
695         Rearrange the steps so that earlyclobbers are noted before reads
696         are processed.  Add new steps to keep track of hard register lifetimes
697         outside insn operands.
698
699 2009-11-26  Richard Guenther  <rguenther@suse.de>
700
701         * tree-ssa-dce.c (nr_walks): New variable.
702         (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
703         (perform_tree_ssa_dce): Init nr_walks.
704
705 2009-11-26  Michael Matz  <matz@suse.de>
706
707         PR tree-optimization/41905
708         * tree-eh.c (lower_eh_constructs_2): Don't add assignments
709         below statements that can't fall thru.
710
711 2009-11-26  Michael Matz  <matz@suse.de>
712
713         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
714         expand_builtin_sprintf): Remove.
715         (expand_builtin): Don't call them.
716
717 2009-11-26  Richard Guenther  <rguenther@suse.de>
718
719         * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
720
721 2009-11-26  Nick Clifton  <nickc@redhat.com>
722
723         * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
724         being used incorrectly.
725         (rx_function_ok_for_sibcall): New function.  Do not allow indirect
726         sibcalls, or sibcalls from interrupt functions.
727         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
728         * config/rx/rx.md (sibcall): Convert to a define_expand.  Check
729         for a MEM inside a MEM.
730         (sibcall_value): Likewise.
731         (sibcall_internal): New pattern containing old sibcall pattern.
732         (sibcall_value_internal): Likewise.
733
734 2009-11-25  Richard Henderson  <rth@redhat.com>
735
736         * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
737         optional 3rd argument to define the mode.
738         * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
739         (V2UDI, V4USI, V8UHI, V16UQI): New.
740         (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
741         V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
742         V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
743         * config/i386/i386-modes.def: Rearrange for double-wide AVX.
744         * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
745         * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
746         (bdesc_args): Add the builtin definitions to match.
747         (ix86_expand_builtin): Expand them.
748         (ix86_builtin_vectorization_cost): Rename from
749         x86_builtin_vectorization_cost.
750         (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
751         doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
752         expand_vec_perm_blend, expand_vec_perm_vpermil,
753         expand_vec_perm_pshufb, expand_vec_perm_1,
754         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
755         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
756         expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
757         ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
758         ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
759         ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
760         TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
761         * sse.md (SSEMODE_EO): New.
762         (vec_extract_even<mode>): Use SSEMODE_EO and
763         ix86_expand_vec_extract_even_odd.
764         (vec_extract_odd<mode>): Likewise.
765         (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
766         vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
767
768 2009-11-25  Richard Henderson  <rth@redhat.com>
769
770         * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
771         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
772         * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
773         * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
774         the vector constant here...
775         (vect_transform_slp_perm_load): ... do it here instead.  Validate
776         that the permutation vector is implementable by the target.
777
778 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
779
780         * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
781         * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
782
783         * print-rtl.c (print_rtx): When printing newline, append
784         print_rtx_head and indentation after the newline.
785
786         PR target/42165
787         * config/i386/i386.c (print_operand): For 32-byte memory use
788         YMMWORD in -masm=intel mode.  Use TBYTE instead of XWORD.
789         * config/i386/i386.md (crc32modesuffix): Expand to nothing
790         in -masm=intel mode.
791         (sse4_2_crc32di): Print just crc32 instead of crc32q in
792         -masm=intel mode.
793         * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
794         memory operand in -masm=intel mode.
795         * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
796         *sse2_pinsrw): Likewise.
797         (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
798         q suffix in -masm=intel mode.
799
800 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
801
802         PR target/10127
803         PR ada/20548
804         PR middle-end/42004
805         * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
806         (dwarf2out_stack_adjust): ...this.  Do not adjust the arg size for
807         ACCUMULATE_OUTGOING_ARGS targets.  Rename former version to...
808         (dwarf2out_notice_stack_adjust): ...this.  Adjust for above renaming.
809         (dwarf2out_frame_debug_expr): Revert previous change and adjust for
810         above renaming.
811         (dwarf2out_frame_debug): Add ??? comment.  Adjust for above renaming.
812
813 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
814
815         * config/i386/predicates.md (emms_operation): New predicate.
816         (vzeroupper_operation): Ditto.
817         (vzeroall_operation): Improve pattern recognition.
818         * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
819         (avx_vzeroupper): Change insn pattern to expander.
820         (*avx_vzeroupper): New insn pattern.  Use vzeroupper_operation
821         predicate.
822         (*avx_vzeroall): Remove operands 1 and 2.
823         * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
824         (mmx_femms): Ditto.
825         (*mmx_emms): New insn pattern.  Use emms_operation predicate.
826         (*mmx_femms): Ditto.
827         * config/i386/i386.c (enum ix86_builtins)
828         <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
829         (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
830         Remove initailization.
831         <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
832
833 2009-11-25  Paul Brook  <paul@codesourcery.com>
834
835         * config/arm/arm.md (consttable_4): Handle (high ...).
836
837 2009-11-25  Robert Nelson  <robert.nelson@digikey.com>
838             Richard Earnshaw  <rearnsha@arm.com>
839
840         * arm.h (enum vfp_reg_type): Add VFP_NONE.
841         * arm.c (all_fpus): Use it for floating point units that aren't based
842         on the VFP architecture.
843         (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
844         enum machine_mode.
845
846 2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
847
848         * alias.c: Remove trailing white spaces.
849         * alloc-pool.c: Likewise.
850         * alloc-pool.h: Likewise.
851         * attribs.c: Likewise.
852         * auto-inc-dec.c: Likewise.
853         * basic-block.h: Likewise.
854         * bb-reorder.c: Likewise.
855         * bt-load.c: Likewise.
856         * builtins.c: Likewise.
857         * builtins.def: Likewise.
858         * c-common.c: Likewise.
859         * c-common.h: Likewise.
860         * c-cppbuiltin.c: Likewise.
861         * c-decl.c: Likewise.
862         * c-format.c: Likewise.
863         * c-lex.c: Likewise.
864         * c-omp.c: Likewise.
865         * c-opts.c: Likewise.
866         * c-parser.c: Likewise.
867         * c-pretty-print.c: Likewise.
868         * c-tree.h: Likewise.
869         * c-typeck.c: Likewise.
870         * caller-save.c: Likewise.
871         * calls.c: Likewise.
872         * cfg.c: Likewise.
873         * cfganal.c: Likewise.
874         * cfgexpand.c: Likewise.
875         * cfghooks.c: Likewise.
876         * cfghooks.h: Likewise.
877         * cfglayout.c: Likewise.
878         * cfgloop.c: Likewise.
879         * cfgloop.h: Likewise.
880         * cfgloopmanip.c: Likewise.
881         * cfgrtl.c: Likewise.
882         * cgraph.c: Likewise.
883         * cgraph.h: Likewise.
884         * cgraphbuild.c: Likewise.
885         * cgraphunit.c: Likewise.
886         * cif-code.def: Likewise.
887         * collect2.c: Likewise.
888         * combine.c: Likewise.
889         * convert.c: Likewise.
890         * coverage.c: Likewise.
891         * crtstuff.c: Likewise.
892         * cse.c: Likewise.
893         * cselib.c: Likewise.
894         * dbgcnt.c: Likewise.
895         * dbgcnt.def: Likewise.
896         * dbgcnt.h: Likewise.
897         * dbxout.c: Likewise.
898         * dce.c: Likewise.
899         * ddg.c: Likewise.
900         * ddg.h: Likewise.
901         * defaults.h: Likewise.
902         * df-byte-scan.c: Likewise.
903         * df-core.c: Likewise.
904         * df-problems.c: Likewise.
905         * df-scan.c: Likewise.
906         * df.h: Likewise.
907         * dfp.c: Likewise.
908         * diagnostic.c: Likewise.
909         * diagnostic.h: Likewise.
910         * dominance.c: Likewise.
911         * domwalk.c: Likewise.
912         * double-int.c: Likewise.
913         * double-int.h: Likewise.
914         * dse.c: Likewise.
915         * dwarf2asm.c: Likewise.
916         * dwarf2asm.h: Likewise.
917         * dwarf2out.c: Likewise.
918         * ebitmap.c: Likewise.
919         * ebitmap.h: Likewise.
920         * emit-rtl.c: Likewise.
921         * et-forest.c: Likewise.
922         * except.c: Likewise.
923         * except.h: Likewise.
924         * expmed.c: Likewise.
925         * expr.c: Likewise.
926         * expr.h: Likewise.
927         * final.c: Likewise.
928         * flags.h: Likewise.
929         * fold-const.c: Likewise.
930         * function.c: Likewise.
931         * function.h: Likewise.
932         * fwprop.c: Likewise.
933         * gcc.c: Likewise.
934         * gcov-dump.c: Likewise.
935         * gcov-io.c: Likewise.
936         * gcov-io.h: Likewise.
937         * gcov.c: Likewise.
938         * gcse.c: Likewise.
939         * genattr.c: Likewise.
940         * genattrtab.c: Likewise.
941         * genautomata.c: Likewise.
942         * genchecksum.c: Likewise.
943         * genconfig.c: Likewise.
944         * genflags.c: Likewise.
945         * gengtype-parse.c: Likewise.
946         * gengtype.c: Likewise.
947         * gengtype.h: Likewise.
948         * genmddeps.c: Likewise.
949         * genmodes.c: Likewise.
950         * genopinit.c: Likewise.
951         * genpreds.c: Likewise.
952         * gensupport.c: Likewise.
953         * ggc-common.c: Likewise.
954         * ggc-page.c: Likewise.
955         * ggc-zone.c: Likewise.
956         * ggc.h: Likewise.
957         * gimple-iterator.c: Likewise.
958         * gimple-low.c: Likewise.
959         * gimple-pretty-print.c: Likewise.
960         * gimple.c: Likewise.
961         * gimple.def: Likewise.
962         * gimple.h: Likewise.
963         * gimplify.c: Likewise.
964         * graphds.c: Likewise.
965         * graphite-clast-to-gimple.c: Likewise.
966         * gthr-nks.h: Likewise.
967         * gthr-posix.c: Likewise.
968         * gthr-posix.h: Likewise.
969         * gthr-posix95.h: Likewise.
970         * gthr-single.h: Likewise.
971         * gthr-tpf.h: Likewise.
972         * gthr-vxworks.h: Likewise.
973         * gthr.h: Likewise.
974         * haifa-sched.c: Likewise.
975         * hard-reg-set.h: Likewise.
976         * hooks.c: Likewise.
977         * hooks.h: Likewise.
978         * hosthooks.h: Likewise.
979         * hwint.h: Likewise.
980         * ifcvt.c: Likewise.
981         * incpath.c: Likewise.
982         * init-regs.c: Likewise.
983         * integrate.c: Likewise.
984         * ipa-cp.c: Likewise.
985         * ipa-inline.c: Likewise.
986         * ipa-prop.c: Likewise.
987         * ipa-pure-const.c: Likewise.
988         * ipa-reference.c: Likewise.
989         * ipa-struct-reorg.c: Likewise.
990         * ipa-struct-reorg.h: Likewise.
991         * ipa-type-escape.c: Likewise.
992         * ipa-type-escape.h: Likewise.
993         * ipa-utils.c: Likewise.
994         * ipa-utils.h: Likewise.
995         * ipa.c: Likewise.
996         * ira-build.c: Likewise.
997         * ira-color.c: Likewise.
998         * ira-conflicts.c: Likewise.
999         * ira-costs.c: Likewise.
1000         * ira-emit.c: Likewise.
1001         * ira-int.h: Likewise.
1002         * ira-lives.c: Likewise.
1003         * ira.c: Likewise.
1004         * jump.c: Likewise.
1005         * lambda-code.c: Likewise.
1006         * lambda-mat.c: Likewise.
1007         * lambda-trans.c: Likewise.
1008         * lambda.h: Likewise.
1009         * langhooks.c: Likewise.
1010         * lcm.c: Likewise.
1011         * libgcov.c: Likewise.
1012         * lists.c: Likewise.
1013         * loop-doloop.c: Likewise.
1014         * loop-init.c: Likewise.
1015         * loop-invariant.c: Likewise.
1016         * loop-iv.c: Likewise.
1017         * loop-unroll.c: Likewise.
1018         * lower-subreg.c: Likewise.
1019         * lto-cgraph.c: Likewise.
1020         * lto-compress.c: Likewise.
1021         * lto-opts.c: Likewise.
1022         * lto-section-in.c: Likewise.
1023         * lto-section-out.c: Likewise.
1024         * lto-streamer-in.c: Likewise.
1025         * lto-streamer-out.c: Likewise.
1026         * lto-streamer.c: Likewise.
1027         * lto-streamer.h: Likewise.
1028         * lto-symtab.c: Likewise.
1029         * lto-wpa-fixup.c: Likewise.
1030         * matrix-reorg.c: Likewise.
1031         * mcf.c: Likewise.
1032         * mode-switching.c: Likewise.
1033         * modulo-sched.c: Likewise.
1034         * omega.c: Likewise.
1035         * omega.h: Likewise.
1036         * omp-low.c: Likewise.
1037         * optabs.c: Likewise.
1038         * optabs.h: Likewise.
1039         * opts-common.c: Likewise.
1040         * opts.c: Likewise.
1041         * params.def: Likewise.
1042         * params.h: Likewise.
1043         * passes.c: Likewise.
1044         * plugin.c: Likewise.
1045         * postreload-gcse.c: Likewise.
1046         * postreload.c: Likewise.
1047         * predict.c: Likewise.
1048         * predict.def: Likewise.
1049         * pretty-print.c: Likewise.
1050         * pretty-print.h: Likewise.
1051         * print-rtl.c: Likewise.
1052         * print-tree.c: Likewise.
1053         * profile.c: Likewise.
1054         * read-rtl.c: Likewise.
1055         * real.c: Likewise.
1056         * recog.c: Likewise.
1057         * reg-stack.c: Likewise.
1058         * regcprop.c: Likewise.
1059         * reginfo.c: Likewise.
1060         * regmove.c: Likewise.
1061         * regrename.c: Likewise.
1062         * regs.h: Likewise.
1063         * regstat.c: Likewise.
1064         * reload.c: Likewise.
1065         * reload1.c: Likewise.
1066         * resource.c: Likewise.
1067         * rtl.c: Likewise.
1068         * rtl.def: Likewise.
1069         * rtl.h: Likewise.
1070         * rtlanal.c: Likewise.
1071         * sbitmap.c: Likewise.
1072         * sched-deps.c: Likewise.
1073         * sched-ebb.c: Likewise.
1074         * sched-int.h: Likewise.
1075         * sched-rgn.c: Likewise.
1076         * sched-vis.c: Likewise.
1077         * sdbout.c: Likewise.
1078         * sel-sched-dump.c: Likewise.
1079         * sel-sched-dump.h: Likewise.
1080         * sel-sched-ir.c: Likewise.
1081         * sel-sched-ir.h: Likewise.
1082         * sel-sched.c: Likewise.
1083         * sel-sched.h: Likewise.
1084         * sese.c: Likewise.
1085         * sese.h: Likewise.
1086         * simplify-rtx.c: Likewise.
1087         * stack-ptr-mod.c: Likewise.
1088         * stmt.c: Likewise.
1089         * stor-layout.c: Likewise.
1090         * store-motion.c: Likewise.
1091         * stringpool.c: Likewise.
1092         * stub-objc.c: Likewise.
1093         * sync-builtins.def: Likewise.
1094         * target-def.h: Likewise.
1095         * target.h: Likewise.
1096         * targhooks.c: Likewise.
1097         * targhooks.h: Likewise.
1098         * timevar.c: Likewise.
1099         * tlink.c: Likewise.
1100         * toplev.c: Likewise.
1101         * toplev.h: Likewise.
1102         * tracer.c: Likewise.
1103         * tree-affine.c: Likewise.
1104         * tree-affine.h: Likewise.
1105         * tree-browser.def: Likewise.
1106         * tree-call-cdce.c: Likewise.
1107         * tree-cfg.c: Likewise.
1108         * tree-cfgcleanup.c: Likewise.
1109         * tree-chrec.c: Likewise.
1110         * tree-chrec.h: Likewise.
1111         * tree-complex.c: Likewise.
1112         * tree-data-ref.c: Likewise.
1113         * tree-data-ref.h: Likewise.
1114         * tree-dfa.c: Likewise.
1115         * tree-dump.c: Likewise.
1116         * tree-dump.h: Likewise.
1117         * tree-eh.c: Likewise.
1118         * tree-flow-inline.h: Likewise.
1119         * tree-flow.h: Likewise.
1120         * tree-if-conv.c: Likewise.
1121         * tree-inline.c: Likewise.
1122         * tree-into-ssa.c: Likewise.
1123         * tree-loop-distribution.c: Likewise.
1124         * tree-loop-linear.c: Likewise.
1125         * tree-mudflap.c: Likewise.
1126         * tree-nested.c: Likewise.
1127         * tree-nomudflap.c: Likewise.
1128         * tree-nrv.c: Likewise.
1129         * tree-object-size.c: Likewise.
1130         * tree-optimize.c: Likewise.
1131         * tree-outof-ssa.c: Likewise.
1132         * tree-parloops.c: Likewise.
1133         * tree-pass.h: Likewise.
1134         * tree-phinodes.c: Likewise.
1135         * tree-predcom.c: Likewise.
1136         * tree-pretty-print.c: Likewise.
1137         * tree-profile.c: Likewise.
1138         * tree-scalar-evolution.c: Likewise.
1139         * tree-ssa-address.c: Likewise.
1140         * tree-ssa-alias.c: Likewise.
1141         * tree-ssa-ccp.c: Likewise.
1142         * tree-ssa-coalesce.c: Likewise.
1143         * tree-ssa-copy.c: Likewise.
1144         * tree-ssa-copyrename.c: Likewise.
1145         * tree-ssa-dce.c: Likewise.
1146         * tree-ssa-dom.c: Likewise.
1147         * tree-ssa-dse.c: Likewise.
1148         * tree-ssa-forwprop.c: Likewise.
1149         * tree-ssa-ifcombine.c: Likewise.
1150         * tree-ssa-live.c: Likewise.
1151         * tree-ssa-live.h: Likewise.
1152         * tree-ssa-loop-ch.c: Likewise.
1153         * tree-ssa-loop-im.c: Likewise.
1154         * tree-ssa-loop-ivcanon.c: Likewise.
1155         * tree-ssa-loop-ivopts.c: Likewise.
1156         * tree-ssa-loop-manip.c: Likewise.
1157         * tree-ssa-loop-niter.c: Likewise.
1158         * tree-ssa-loop-prefetch.c: Likewise.
1159         * tree-ssa-loop-unswitch.c: Likewise.
1160         * tree-ssa-loop.c: Likewise.
1161         * tree-ssa-math-opts.c: Likewise.
1162         * tree-ssa-operands.c: Likewise.
1163         * tree-ssa-operands.h: Likewise.
1164         * tree-ssa-phiopt.c: Likewise.
1165         * tree-ssa-phiprop.c: Likewise.
1166         * tree-ssa-pre.c: Likewise.
1167         * tree-ssa-propagate.c: Likewise.
1168         * tree-ssa-reassoc.c: Likewise.
1169         * tree-ssa-sccvn.c: Likewise.
1170         * tree-ssa-sink.c: Likewise.
1171         * tree-ssa-structalias.c: Likewise.
1172         * tree-ssa-ter.c: Likewise.
1173         * tree-ssa-threadedge.c: Likewise.
1174         * tree-ssa-threadupdate.c: Likewise.
1175         * tree-ssa-uncprop.c: Likewise.
1176         * tree-ssa.c: Likewise.
1177         * tree-ssanames.c: Likewise.
1178         * tree-switch-conversion.c: Likewise.
1179         * tree-tailcall.c: Likewise.
1180         * tree-vect-data-refs.c: Likewise.
1181         * tree-vect-generic.c: Likewise.
1182         * tree-vect-loop-manip.c: Likewise.
1183         * tree-vect-loop.c: Likewise.
1184         * tree-vect-patterns.c: Likewise.
1185         * tree-vect-slp.c: Likewise.
1186         * tree-vect-stmts.c: Likewise.
1187         * tree-vectorizer.c: Likewise.
1188         * tree-vectorizer.h: Likewise.
1189         * tree-vrp.c: Likewise.
1190         * tree.c: Likewise.
1191         * tree.def: Likewise.
1192         * tree.h: Likewise.
1193         * treestruct.def: Likewise.
1194         * unwind-compat.c: Likewise.
1195         * unwind-dw2-fde-glibc.c: Likewise.
1196         * unwind-dw2.c: Likewise.
1197         * value-prof.c: Likewise.
1198         * value-prof.h: Likewise.
1199         * var-tracking.c: Likewise.
1200         * varasm.c: Likewise.
1201         * varpool.c: Likewise.
1202         * vec.c: Likewise.
1203         * vec.h: Likewise.
1204         * vmsdbgout.c: Likewise.
1205         * web.c: Likewise.
1206         * xcoffout.c: Likewise.
1207
1208 2009-11-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1209
1210         * pa.c (output_call): Only use sr4 for long interspace calls if
1211         call binds local and generating non PIC code.
1212         (attr_length_call): Adjust length calculation for above.
1213
1214 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1215
1216         * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
1217         (add<mode>3_carry): Change operand order of plus RTX.
1218         (*add<mode>3_carry): Ditto.
1219         (*addsi3_carry_zext): Ditto.
1220         (*add<dwi>3_doubleword): Update for changed operand order.
1221         (*negti2_1 splitter): Ditto.
1222         (*negdi2_1 splitter): Ditto.
1223         (<plusminus_insn><mode>3_carry): Macroize expander from
1224         {add,sub}<mode>3_carry patterns using plusminus code iterator.
1225         (*<plusminus_insn><mode>3_carry): Macroize insn from
1226         *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
1227         (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
1228         patterns using SDWIM mode iterator.
1229         (*neg<dwi>2_doubleword): New insn_and_split pattern.  Macroize
1230         pattern from *neg{di,ti}2_1 patterns and corresponding splitters
1231         using DWIH mode iterator.
1232         (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
1233         using SWI mode iterator.
1234         (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
1235         (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
1236         patterns using SWIM mode iterator.
1237         (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
1238         patterns using SWI248 mode iterator.
1239         (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
1240         patterns using SWI mode iterator.
1241         (*one_cmpl<mode>2_2 splitter): Macroize splitter from
1242         one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
1243
1244 2009-11-24  Michael Matz  <matz@suse.de>
1245
1246         * expr.c (set_storage_via_libcall): Fix build_call_expr call.
1247
1248 2009-11-24  David Binderman  <dcb314@hotmail.com>
1249
1250         * expr.c (store_field): Remove set but not used local variable
1251         width_mask.
1252         (expand_expr_real_2): Remove treeop2.
1253         * gcse.c (update_ld_motion_stores): Remove new_rtx.
1254         * haifa-sched.c (max_issue): Remove points.
1255         (sched_create_recovery_edges): Remove e.
1256         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
1257
1258 2009-11-24  Nick Clifton  <nickc@redhat.com>
1259
1260         * config/v850/v850.c (function_arg): Fix handling of zero-length
1261         function arguments.
1262
1263 2009-11-24  Michael Matz  <matz@suse.de>
1264
1265         * tree.h (union tree_ann_d): Don't declare.
1266         (tree_base): Remove ann field.
1267         (struct var_ann_d): Declare forward.
1268         (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
1269         (DECL_VAR_ANN_PTR): New macro.
1270         * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
1271         accept only VAR, PARM or RESULT decls.
1272         (create_tree_common_ann): Remove.
1273         (remove_referenced_var): Use DECL_VAR_ANN_PTR.
1274         * tree-eh.c (lookup_expr_eh_lp): Remove.
1275         * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
1276         DECL_VAR_ANN_PTR.
1277         (ann_type, tree_common_ann, get_tree_common_ann): Remove.
1278         * tree-flow.h (enum tree_ann_type): Remove.
1279         (struct tree_ann_common_d): Remove.
1280         (struct var_ann_d): Remove common field.
1281         (union tree_ann_d): Remove.
1282         (tree_ann_t, tree_ann_common_t): Remove typedefs.
1283         (tree_common_ann, get_tree_common_ann, ann_type,
1284         create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
1285         * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
1286         * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
1287         * builtins.c (expand_builtin_memcpy): Use
1288         currently_expanding_gimple_stmt instead of tree annotation.
1289         (expand_builtin_memset_args): Ditto.
1290         * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
1291         (expand_call_stmt): Don't set tree annotation.
1292         (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
1293         * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
1294         * gimple.h (currently_expanding_gimple_stmt): Declare.
1295
1296 2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1297
1298         * dwarf2out.c (add_location_or_const_value_attribute): Remove
1299         useless NOTE_VAR_LOCATION_STATUS call.
1300         * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
1301
1302 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
1303
1304         * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
1305         being called recursively.
1306
1307 2009-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1308
1309         * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
1310         $(MD5_H) params.def params.h prefix.h tree-inline.h.
1311
1312 2009-11-24  Paul Brook  <paul@codesourcery.com>
1313
1314         * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
1315         typo.
1316
1317 2009-11-24  Julian Brown  <julian@codesourcery.com>
1318             Paul Brook  <paul@codesourcery.com>
1319
1320         * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
1321         (arm_dwarf_register_span): New function.
1322         (arm_dbx_register_number): Add VFPv3 dwarf numbering.
1323
1324 2009-11-24  David Binderman  <dcb314@hotmail.com>
1325
1326         * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
1327         local variable bb_note.
1328         * dominance.c (get_dominated_by): Likewise local var n.
1329         (output_file_names): Likewise local var idx.
1330         (add_location_or_const_value_attribute): Likewise local var status.
1331         * dwarf2out.c (gen_variable_die): Likewise local var field.
1332         * emit-rtl.c (no_line_numbers): Remove.
1333         (init_emit_once): Remove line_numbers parameter.
1334         * rtl.h (init_emit_once): Adjust prototype.
1335         * toplev.c (backend_init): Adjust init_emit_once call.
1336
1337 2009-11-24  Richard Guenther  <rguenther@suse.de>
1338
1339         PR tree-optimization/42142
1340         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1341         Handle iv-dependent (non-)kills properly.
1342         (mark_aliased_reaching_defs_necessary): Pass the basic-block
1343         of the reference statement to mark_aliased_reaching_defs_necessary_1.
1344
1345 2009-11-24  Martin Jambor  <mjambor@suse.cz>
1346
1347         PR tree-optimization/42154
1348         * tree-sra.c (struct access): Added comments.
1349         (sra_modify_expr): Build references to the old aggregate with
1350         build_ref_for_offset instead of reusing access->expr.
1351         (load_assign_lhs_subreplacements): Likewise.
1352
1353 2009-11-24  Uros Bizjak  <ubizjak@gmail.com>
1354
1355         * config/i386/i386.md (add<mode>3_carry): Change insn pattern
1356         to expander.
1357         (sub<mode>3_carry): Ditto.
1358         (x86_mov<mode>cc_0_m1): Ditto.
1359         (*add<mode>3_carry): New insn pattern.  Use VOIDmode match_operator
1360         for ix86_carry_flag_operator operator predicate.
1361         (*sub<mode>3_carry): Ditto.
1362         (*x86_mov<mode>cc_0_m1): Ditto.
1363         (*addsi3_carry_zext): Use VOIDmode match_operator for
1364         ix86_carry_flag_operator operator predicate.
1365         (*subsi3_carry_zext): Ditto.
1366         (*x86_mov<mode>cc_0_m1_s): Ditto.
1367         (*x86_mov<mode>cc_0_m1_neg): Ditto.
1368         * config/i386/predocates.md (ix86_carry_flag_operator): Do not
1369         check operator sub-expressions for FLAGS_REG and const0_rtx.
1370         * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
1371         (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
1372         (ix86_expand_int_addcc): Update calls to
1373         gen_{add,sub}{qi,hi,si,di}3_carry.  Do not set mode of compare_op.
1374         (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
1375         Do not set mode of compare operation.
1376
1377 2009-11-23  Jan Hubicka  <jh@suse.cz>
1378
1379         PR middle-end/42151
1380         * ipa-inline.c (inline_transform): Avoid ICE when transform is called
1381         twice.
1382
1383 2009-11-23  Jan Hubicka  <jh@suse.cz>
1384
1385         * ipa-cp.c (ipcp_compute_node_scale): Work around completely
1386         wrong profile updates.
1387         * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
1388         having largest frequency.
1389         * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
1390         used uninitalized warning.
1391         * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
1392         frequencies.
1393
1394 2009-11-23  Uros Bizjak  <ubizjak@gmail.com>
1395
1396         * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
1397         of gen_rtx_REG to generate operand 5.
1398         (*cmp_ssub_sidi): Ditto.
1399
1400 2009-11-23  Richard Henderson  <rth@redhat.com>
1401
1402         * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
1403         mismatch.
1404
1405 2009-11-23  Paul Brook  <paul@codesourcery.com>
1406
1407         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
1408         case for noreturn functions.
1409         (arm_compute_save_reg_mask): Remove special noreturn handling.
1410
1411 2009-11-23  Richard Guenther  <rguenther@suse.de>
1412
1413         * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
1414         size for DECL bases.
1415
1416 2009-11-22  Richard Henderson  <rth@redhat.com>
1417
1418         * i386.c (avx_vpermilp_parallel): New function.
1419         * i386-protos.h: Declare it.
1420         * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
1421         avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
1422         * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
1423         (ssescalarnum, ssedoublesizemode): Add AVX modes.
1424         (vpermilbits): Remove.
1425         (avx_vpermil<mode>): Change insns to expanders.
1426         (*avx_vpermil<mode>): New.  Use vec_select.
1427
1428 2009-11-22  Richard Earnshaw  <rearnsha@arm.com>
1429
1430         * opts.c (decode_options): Don't enable flag_schedule_insns
1431         when optimizing for size.
1432         * doc/invoke.texi: Document change.
1433
1434 2009-11-22  Uros Bizjak  <ubizjak@gmail.com>
1435
1436         PR target/42113
1437         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
1438         of scratch register to SImode.
1439         (*cmp_sadd_sidi): Ditto.
1440         (*cmp_ssub_si): Ditto.
1441         (*cmp_ssub_sidi): Ditto.
1442
1443 2009-11-21  Ian Lance Taylor  <iant@google.com>
1444
1445         * Makefile.in (HOST_LIBS): Move higher in file.
1446         (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
1447         is not empty, set to $(CC) and $(CFLAGS).
1448
1449 2009-11-22  Martin Jambor  <mjambor@suse.cz>
1450
1451         * tree-cfg.c (verify_types_in_gimple_reference): Error out on
1452         V_C_E of an SSA_NAME or an invariant if lvalue is required.
1453         (verify_gimple_call): Verify LHS also with with
1454         verify_types_in_gimple_reference.
1455
1456 2009-11-21  Martin Jambor  <mjambor@suse.cz>
1457
1458         PR middle-end/42025
1459         * tree-sra.c (access_precludes_ipa_sra_p): New function.
1460         (splice_param_accesses): Check all accesses by calling
1461         access_precludes_ipa_sra_p.
1462         (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
1463         not convert types if it is true.
1464         (sra_ipa_modify_assign): Convert types in case of mismatch.
1465
1466 2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1467
1468         * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
1469         for operand 1.
1470
1471 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
1472
1473         * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
1474         (mips_mulsidi3_gen_fn): Declare new function.
1475         * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
1476         * config/mips/mips.md (<u>mulsidi3): Change condition to use
1477         mips_mulsidi3_gen_fn.  Use mips_mulsidi3_gen_fn to generate the insn.
1478         (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
1479         (mulsidi3_64bit_dmul): New define_insn.
1480
1481 2009-11-21  Ben Elliston  <bje@au.ibm.com>
1482
1483         * gengtype-lex.l: Enable noinput flex option.
1484         (YY_NO_INPUT): Remove define.
1485
1486 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1487
1488         * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
1489         (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
1490         (insert_debug_temps_for_defs): Handle PHI nodes.
1491         * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
1492         SSA names.
1493
1494 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1495
1496         * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
1497         after remove_phi_node.
1498
1499 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1500
1501         PR tree-optimization/42078
1502         * gimple.h (gimple_replace_lhs): New declaration.
1503         * gimple.c (gimple_replace_lhs): New function.
1504         * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
1505         modifying the call.
1506
1507 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
1508
1509         * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
1510         (xop_mulv2div2di3_low): Same.
1511         (*xop_pmacsdqh_mem): Same.
1512
1513 2009-11-20  Richard Henderson  <rth@redhat.com>
1514
1515         * config/i386/i386-builtin-types.awk: New file.
1516         * config/i386/i386-builtin-types.def: New file.
1517         * config/i386/t-i386: Use them to build i386-builtin-types.inc.
1518         * config/i386/i386.c: Include it.
1519         (ix86_builtin_type_tab, ix86_get_builtin_type): New.
1520         (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
1521         (struct builtin_isa): Remove GTY marker.  Replace tree type with
1522         ix86_builtin_func_type; add set_and_not_built_p.
1523         (def_builtin): Change type parameter to tcode; use
1524         ix86_get_builtin_func_type; update all callers.  Accept zero mask
1525         to mean the builtin is unconditionally available.
1526         (ix86_add_new_builtins): Use set_and_not_built_p instead of type
1527         being set to NULL.
1528         (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
1529         Update some users to rationalized enumeration codes from new include.
1530         (enum multi_arg_type): Remove.  Replace all enumeration values
1531         with defines to new ix86_builtin_func_type.
1532         (ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
1533         all type resolution to def_builtin.
1534         (ix86_init_builtin_types): Split out from ...
1535         (ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
1536
1537 2009-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1538
1539         PR target/41787
1540         * config/rs6000/rs6000.c (struct machine_function): Revert
1541         2009-10-23 change to set VRSAVE to non-0 if we use VSX.
1542         (rs6000_expand_to_rtl_hook): Ditto.
1543         (rs6000_check_vector_mode): Ditto.
1544         (compute_vrsave_mask): Ditto.
1545
1546 2009-11-20  Paul Brook  <paul@codesourcery.com>
1547
1548         * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
1549         * config/arm/arm-cores.def: Add cortex-a5.
1550         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
1551         * config/arm/arm-tune.md: Regenerate.
1552
1553 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
1554
1555         PR middle-end/39960
1556         * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
1557         (ref_pos): New field in structure.
1558         (insert_new_var_in_stmt): New function.
1559
1560
1561 2009-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1562
1563         * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
1564         * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
1565         (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
1566         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
1567         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1568         INT_LEAST64_TYPE): Define.
1569         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
1570         UINT_LEAST64_TYPE): Define.
1571         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
1572         INT_FAST64_TYPE): Define.
1573         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1574         UINT_FAST64_TYPE): Define.
1575         (INTPTR_TYPE, UINTPTR_TYPE): Define.
1576
1577 2009-11-20  Julian Brown  <julian@codesourcery.com>
1578
1579         * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
1580         specially for Thumb-1.
1581         (ASM_OUTPUT_REG_POP): Likewise.
1582
1583 2009-11-19  Jason Merrill  <jason@redhat.com>
1584
1585         * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
1586
1587 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1588             Rafael Avila de Espindola  <espindola@google.com>
1589
1590         * doc/plugins.texi (Plugin initialization): Added advices for
1591         retrieving the version of GCC at plugin compilation and loading times.
1592
1593 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1594
1595         * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
1596         (dump_active_plugins): output to file everything. Use
1597         internationalized dump & FMT_FOR_PLUGIN_EVENT.
1598
1599 2009-11-19  Richard Guenther  <rguenther@suse.de>
1600
1601         * gimple.c (canonicalize_cond_expr_cond): Strip conversions
1602         around truth-valued expressions.
1603         * tree.c (free_lang_data): Untangle check for LTO frontend.
1604
1605 2009-11-19  Jakub Jelinek  <jakub@redhat.com>
1606
1607         * tree.c (need_assembler_name_p): Use cgraph_get_node instead
1608         of cgraph_node_for_decl.
1609         * cgraph.h (cgraph_node_for_decl): Remove prototype.
1610         * cgraph.c (cgraph_node_for_decl): Remove.
1611         (cgraph_get_node): Just return NULL if !cgraph_hash.
1612
1613 2009-11-19  Paul Brook  <paul@codesourcery.com>
1614
1615         * config.gcc: Add new ARM --with-fpu options.
1616         * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
1617         * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
1618
1619 2009-11-18  Richard Guenther  <rguenther@suse.de>
1620
1621         * gimple.h (union gimple_statement_d): Add gsmembase member.
1622         (gimple_vuse_op): Use gsmembase for access.
1623         (gimple_vdef_op): Likewise.
1624         (gimple_vuse): Likewise.
1625         (gimple_vdef): Likewise.
1626         (gimple_vuse_ptr): Likewise.
1627         (gimple_vdef_ptr): Likewise.
1628         (gimple_set_vuse): Likewise.
1629         (gimple_set_vdef): Likewise.
1630         * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
1631
1632 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1633
1634         * doc/arm-neon-intrinsics.texi: Regenerated.
1635
1636 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1637
1638         * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
1639
1640 2009-11-18  Paul Brook  <paul@codesourcery.com>
1641             Daniel Jacobowitz  <dan@codesourcery.com>
1642
1643         * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
1644         (arm_arch7em): New variable.
1645         (all_architectures): Add armv7e-m.
1646         (arm_override_options): Set arm_arch7em.
1647         * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
1648         Include arm_arch7em.
1649         (arm_arch7em): Declare.
1650
1651 2009-11-18  Richard Guenther  <rguenther@suse.de>
1652
1653         * lto-streamer-in.c (input_gimple_stmt): Assert that we find
1654         a valid field decl if checking is enabled.
1655
1656 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1657
1658         * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
1659         (lto_ipa_fixup_call_notes): Declare.
1660         * ipa-prop.c (ipa_note_param_call): Store gimple uid.
1661         (update_call_notes_after_inlining): Copy call stmt uid to the new
1662         edge.
1663         (ipa_write_param_call_note): New function.
1664         (ipa_read_param_call_note): New function
1665         (ipa_write_node_info): Write also param call notes.  Removed a bogus
1666         comment, reformatted to fit 80 columns.
1667         (ipa_read_node_info): Read also param call notes. Removed a bogus
1668         comment.  Remove ipa_edge_args_vector growth.
1669         (lto_ipa_fixup_call_notes): New function.
1670         * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
1671         * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
1672         inlining regardless of flag_wpa.
1673         (cgraph_decide_inlining_of_small_functions): Likewise.
1674         (cgraph_decide_inlining): Likewise.
1675         (inline_read_summary): Likewise.
1676
1677 2009-11-18  Jan Hubicka  <jh@suse.cz>
1678
1679         * predict.c (compute_function_frequency): Export.
1680         * predict.h (compute_function_frequency): Declare.
1681         * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
1682
1683 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1684
1685         * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
1686         on all nodes we write summaries for.
1687
1688 2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
1689
1690         PR middle-end/22201
1691         * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
1692         (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
1693         (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
1694         (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
1695         (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
1696         (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
1697         (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
1698         description string.
1699
1700 2009-11-18  Jakub Jelinek  <jakub@redhat.com>
1701
1702         * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
1703         unnecessarily.
1704         (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
1705
1706         PR c++/3187
1707         * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
1708         fields.
1709         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1710         prototypes.
1711         * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
1712         cgraph_materialize_all_clones): Handle same_body aliases.
1713         * cgraph.c (cgraph_allocate_node): New function.
1714         (cgraph_create_node): Use it.
1715         (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
1716         cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
1717         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1718         functions.
1719         * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
1720         (input_node): Stream in same_body aliases.
1721         * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
1722         for same_body aliases.
1723         (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
1724
1725 2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1726
1727         PR other/39888
1728         * config/darwin.h: Use the extension stub libraries to access
1729         current libgcc_s features.
1730
1731 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1732
1733         PR debug/41926
1734         * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
1735         (vect_transform_loop): Call it.
1736
1737 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1738
1739         * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
1740         released SSA names.
1741
1742 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1743
1744         PR debug/41888
1745         PR debug/41886
1746         * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
1747         are ok.
1748         * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
1749         (try_generate_gimple_bb): Skip debug stmts when finding data refs.
1750         * sese.c (sese_build_liveouts_bb): Skip debug stmts.
1751         (sese_bad_liveouts_use): New.
1752         (sese_reset_debug_liveouts_bb): New.
1753         (sese_build_liveouts): Use it.
1754         (rename_variables_in_stmt): Reset debug stmts rather than creating
1755         new vars for them.
1756         (expand_scalar_variable_stmt): Likewise.
1757
1758 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1759
1760         * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
1761         (df_ref_remove): Likewise.
1762
1763 2009-11-17  Jan Hubicka  <jh@suse.cz>
1764
1765         * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
1766         info.
1767
1768 2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1769
1770         * toplev.c (process_options): Remove dead code.
1771         * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
1772
1773 2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
1774
1775         * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
1776         nodes.
1777
1778 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1779
1780         PR tree-optimization/41857
1781         * tree-ssa-address.c (move_hint_to_base): Use void pointer to
1782         TYPE's address space instead of pointer to TYPE.
1783
1784 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1785
1786         * reload.c (find_reloads_address): Fix typo.
1787
1788 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1789
1790         * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
1791         registers in leaf functions if possible.
1792
1793 2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
1794
1795         * config/m68k/m68k-devices.def: Add MCF5441x family.
1796
1797 2009-11-17  Jan Hubicka  <jh@suse.cz>
1798
1799         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
1800         removed node.
1801         * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
1802
1803 2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
1804
1805         * config/i386/predicates.md (x86_64_szext_general_operand): Do not
1806         nest ior expressions.
1807         (x86_64_szext_nonmemory_operand): Ditto.
1808         (call_insn_operand): Ditto.
1809
1810 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1811
1812         * stmt.c (expand_asm_stmt): Get locus from stmt.
1813
1814 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1815
1816         * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
1817         Create the decl label for the new dest block on demand.  Require
1818         a fallthrough edge if no asm labels were redirected.
1819
1820 2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
1821
1822         * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
1823         operand 1 predicate.
1824         (cstoresi4): Ditto for operand 2.
1825         (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
1826         patterns using SDWIM mode iterator.
1827         (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
1828         using SWIM mode iterator.
1829         (cmpdi_1): Rename from cmpdi_1_rex64.
1830         (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
1831         SWI48 mode iterator.
1832         (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
1833         using SWI mode iterator.
1834         (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
1835         (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
1836         (*cmpqi_ext_3_insn): Make private.
1837         (*cmpqi_ext_3_insn_rex64): Make private.
1838         (cmpstrnsi): Update for renamed cmpdi_1_rex64.
1839         * config/i386/predicates.md (cmpsi_operand): Remove.
1840
1841 2009-11-16  Paul Brook  <paul@codesourcery.com>
1842
1843         * doc/invoke.texi: Document ARM VFPv4 based FPUs.
1844         * config/arm/arm.c (all_fpus): Add VFPv4 entries.
1845
1846 2009-11-14  Jan Hubicka  <jh@suse.cz>
1847
1848         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
1849         ENTRY_BLOCK_PTR.
1850         * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
1851         zero out all callees.
1852         * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
1853         frequency and count match.
1854         * ipa-inline.c (update_noncloned_frequencies): New function.
1855         (cgraph_clone_inlined_nodes): Use it.
1856         * tree-inline.c (copy_bb): Fix frequency scaling; output
1857         diagnostic on frequency mismatches to dump file.
1858         (initialize_cfun): Do not scale frequency; fix count scaling;
1859         initialize entry and exit block frequencies; copy profile info.
1860         (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
1861         (copy_body): Use frequency_scale as argument.
1862         (expand_call_inline): Compute frequency scale and output diagnostic
1863         to dump file.
1864         (delete_unreachable_blocks_update_callgrah): Remove checking that
1865         has to be done after edge redirection.
1866         (tree_function_versioning): Update initialize_cfun and copy_body call.
1867
1868 2009-11-14  Jan Hubicka  <jh@suse.cz>
1869
1870         * cgraph.c (cgraph_release_function_body): Update use of
1871         ipa_transforms_to_apply.
1872         (cgraph_remove_node): Remove ipa_transforms_to_apply.
1873         * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
1874         * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
1875         copied body.
1876         (cgraph_materialize_clone): Remove original if dead.
1877         * lto-streamer-in.c (lto_read_body): Remove FIXME and
1878         ipa_transforms_to_apply hack.
1879         * function.h (struct function): Add ipa_transforms_to_apply.
1880         * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
1881         * tree-inline.c (copy_bb): Update sanity check.
1882         (initialize_cfun): Do not copy ipa_transforms_to_apply.
1883         (expand_call_inline): remove dead clone originals.
1884         (tree_function_versioning): Merge transformation queues.
1885         * passes.c (add_ipa_transform_pass): Remove.
1886         (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
1887         tracking.
1888         (execute_all_ipa_transforms): Update.
1889         (execute_one_pass): Update.
1890
1891 2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1892
1893         PR target/21078, 21080
1894         * config/avr/avr.c (avr_return_addr_rtx): New function for
1895         builtin_return_address.
1896         (expand_prologue): Calculate stack usage.
1897         (avr_asm_function_end_prologue): Output stack size and offset label.
1898         * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
1899         (machine_function): Add stack_usage.
1900         * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
1901
1902 2009-11-14  Anatoly Sokolov  <aesok@post.ru>
1903
1904         * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
1905         new 'outgoing' argument.
1906         (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
1907         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1908         * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1909         iq2000_function_value_regno_p.
1910         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1911         * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
1912         Declare.
1913
1914 2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
1915
1916         PR target/42031
1917         * arm.md (adddi_sesidi_di): Place tied contraint first.
1918         (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
1919         (subdi_zesidi_di, subdi_sesidi_di): Likewise.
1920         (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
1921         (mulsi3addsi, mulsi3addsi_compare0): Likewise.
1922         (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
1923         (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
1924         (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
1925         (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
1926         (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
1927
1928 2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
1929
1930         * config/i386/predicates.md (call_register_no_elim_operand):
1931         New predicate.  Reject stack register as valid call operand
1932         for 32bit targets.
1933         (call_insn_operand): Use call_register_no_elim_operand.
1934
1935 2009-11-13  Richard Henderson  <rth@redhat.com>
1936
1937         * function.c (stack_protect_prologue): Don't bypass expand_expr
1938         for stack_protect_guard and guard_decl.
1939         (stack_protect_epilogue): Likewise.
1940
1941 2009-11-13  Jan Hubicka  <jh@suse.cz>
1942
1943         * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
1944         when to PUBLIC is set.
1945
1946 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1947
1948         PR middle-end/42029
1949         * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
1950         tmp_load if needed.
1951
1952 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
1953
1954         PR target/41900
1955         * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
1956         *call_value_1): Use "lsm" as operand 1 constraint.
1957         * config/i386/predicates.md (call_insn_operand): Depend on
1958         index_register_operand to avoid %esp register.
1959
1960 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
1961
1962         Revert:
1963         2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
1964
1965         PR target/41900
1966         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
1967         (TARGET_CALL_ESP): New define.
1968         * config/i386/i386.c (initial_ix86_tune_features): Initialize
1969         X86_ARCH_CALL_ESP.
1970         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
1971         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
1972         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
1973         TARGET_CALL_ESP.
1974         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
1975         New patterns, use "lsm" as operand 1 constraint.
1976         * config/i386/predicates.md (call_insn_operand): Depend on
1977         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
1978
1979 2009-11-13  Jason Merrill  <jason@redhat.com>
1980
1981         PR debug/26965
1982         * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
1983         Don't emit a second declaration at any scope.
1984
1985 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
1986
1987         PR rtl-optimization/41697
1988         * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
1989         a conditional jump has a single successor.
1990
1991 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
1992
1993         * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
1994         allocate reg_last when in case lazy_reg_last is true.
1995         (init_deps_reg_last): New.
1996         (free_deps): When max_reg is 0, this context is already freed.
1997         * sched-int.h (init_deps_reg_last): Export.
1998         (init_deps): Update prototype.
1999         * sched-ebb.c (schedule_ebb): Update the call to init_deps.
2000         * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
2001         * ddg.c (build_intra_loop_deps): Likewise.
2002         * sel-sched-ir.c (copy_deps_context, create_deps_context,
2003         reset_deps_context, deps_init_id): Likewise.
2004         (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
2005         (free_data_for_scheduled_insn): New, break down from ...
2006         (free_first_time_insn_data): ... here.
2007         (has_dependence_p): Allocate reg_last now, when it is needed.
2008         (extend_insn_data): When maximal LUID is big enough, allocate
2009         per-insn data in smaller chunks.
2010         * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
2011         * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
2012         in scheduled insn.
2013
2014 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2015
2016         * config/i386/i386.md (call_value): Fix comment.
2017         (sibcall_value): Ditto.
2018
2019 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2020
2021         * config/i386/linux-unwind.h (x86_frob_update_context): New function.
2022         (MD_FROB_UPDATE_CONTEXT): Define.
2023
2024 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2025             Laurent GUERBY  <laurent@guerby.net>
2026
2027         * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
2028         Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
2029         (sparc_fallback_frame_state): Tidy.  Compensate for RETURN_ADDR_OFFSET.
2030
2031 2009-11-12  Jan Hubicka  <jh@suse.cz>
2032
2033         * ipa.c (function_and_variable_visibility): Fix my accidentail commit
2034         and clear DECL_COMMON on localized declarations.
2035
2036 2009-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2037
2038         PR rtl-opt/38582
2039         * regrename.c (struct du_head): New structure; some elements moved
2040         from...
2041         (struct du_chain): ... this one.
2042         (open_chains, closed_chains): Now of type struct du_head *.
2043         (do_replace): Accept du_head argument, not du_chain.  All callers
2044         changed.  Modified code to match new data structures.
2045         (build_def_use): Return a list of du_head structures.  Modified code
2046         to match new data structures.
2047         (dump_def_use_chain): Accept du_head argument, not du_chain.  All
2048         callers changed.  Modified code to match new data structures.
2049         (merge_overlapping_regs): Accept du_head argument, not du_chain.  All
2050         callers changed.  Modified code to match new data structures.
2051         (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
2052         Allocate a du_head structure as well as a du_chain when creating a
2053         new chain.  Modified other code to match new data structures.
2054
2055 2009-11-12  Jan Hubicka  <jh@suse.cz>
2056
2057         * cgraph.h (varpool_node_name): Declare.
2058         * cgraphunit.c (process_function_and_variable_attributes): Set
2059         force_output flag on used variables.
2060         * ipa.c (function_and_variable_visibility): Dump externally visible
2061         and needed variables.
2062         * varpool.c (varpool_node_name): Export.
2063         (decide_is_variable_needed): Check COMDAT for externally visible vars;
2064         ignore needed flag.
2065
2066 2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
2067
2068         PR middle-end/41930
2069         * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
2070         processing if XEXP (x, i) is NULL.
2071
2072 2009-11-12  Jan Hubicka  <jh@suse.cz>
2073
2074         * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
2075         imply PUBLIC || EXTERNAL.
2076
2077 2009-11-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2078
2079         PR middle-end/41440
2080         * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
2081         single successor block, ending with jump created by RTL expander.
2082
2083 2009-11-11  Jan Hubicka  <jh@suse.cz>
2084
2085         PR middle-end/41729
2086         * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
2087         and WEAK variables at -fwhole-program.
2088
2089         PR middle-end/41735
2090         * ipa.c (whole_program_function_and_variable_visility): COMDAT
2091         functions/variables are not needed even if they are externally visible.
2092
2093 2009-11-11  Jan Hubicka  <jh@suse.cz>
2094
2095         (patch by Richard Guenther)
2096         * lto-streamer-out.c (output_function): Output head of argument list
2097         earlier.
2098         * lto-streamer-in.c (input_function): Re-map arguments into merged
2099         declaration.
2100
2101 2009-11-11  Jan Hubicka  <jh@suse.cz>
2102
2103         * lto-cgraph.c: Include gcov-io.h
2104         (output_profile_summary): New function.
2105         (output_cgraph): Use it.
2106         (input_profile_summary): New function.
2107         (input_cgraph): Use it.
2108         * coverage.c (build_ctr_info_value): Use varpool; initalize
2109         DECL_ASSEMBLER_NAME.
2110         (create_coverage): Likewise.
2111         * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
2112         (tree_init_edge_profiler): Likewise.
2113         * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
2114
2115 2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
2116
2117         * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2118         * c-pragma.c (def_pragma_macro_value): Likewise.
2119         (def_pragma_macro): Likewise.
2120         (pushed_macro_table): Likewise.
2121         (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
2122         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2123
2124 2009-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
2125
2126         * doc/plugins.texi (Registering custom attributes): section
2127         renamed as (Registering custom attributes or pragmas).
2128         Mentions custom attributes & pragmas, and c_register_pragma, with
2129         a small example.
2130         * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
2131         pragmas.
2132         * doc/extend.texi (Function Attributes): Mentions that plugin can
2133         provide their attributes.
2134
2135 2009-11-11  Jon Beniston  <jon@beniston.com>
2136
2137         * config.gcc: Add lm32 elf and uclinux targets.
2138         * config/lm32: New directory.
2139         * config/lm32/lm32.c: New file.
2140         * config/lm32/lm32.h: New file.
2141         * config/lm32/lm32.md: New file.
2142         * config/lm32/lm32.opt: New file.
2143         * config/lm32/lm32-protos.h: New file.
2144         * config/lm32/constraints.md: New file.
2145         * config/lm32/predicates.md: New file.
2146         * config/lm32/sfp-machine.h: New file.
2147         * config/lm32/t-fprules-softfp: New file.
2148         * config/lm32/uclinux-elf.h: New file.
2149         * doc/invoke.texi: Document lm32 options.
2150         * doc/contrib.texi: Document lm32 porter.
2151         * doc/install.texi: Document lm32 targets.
2152
2153 2009-11-11  Martin Jambor  <mjambor@suse.cz>
2154
2155         PR lto/41932
2156         * ipa-prop.c (ipa_update_after_lto_read): Call
2157         ipa_check_create_node_params and ipa_check_create_edge_args.  Also
2158         call ipa_initialize_node_params instead of ipa_populate_param_decls.
2159
2160 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2161
2162         * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
2163         (neon_expand_vector_init): Use them.  Also handle non-constant
2164         vectors with identical elements and vectors with only one
2165         non-constant element.
2166         (arm_print_operand): Handle 'y' modifier.
2167         * config/arm/arm-protos.h (neon_make_constant): Declare.
2168         * config/arm/neon.md (neon_vdup_n<mode>): Split into two
2169         patterns.  Use VX instead of VDQW for the first one.  Allow
2170         a VFP alternative and V32 modes for the second one.
2171         * config/arm/neon.ml (shape_elt): Add Alternatives.
2172         (ops): Use Alternatives for vdup lane instructions.
2173         * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
2174         * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
2175
2176 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2177
2178         * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
2179         operands.
2180         (movti, mov<mode>): Call force_reg on one operand if required.
2181         * config/arm/vec-common.md (mov<mode>): Likewise.
2182
2183 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2184
2185         * config/arm/arm.c (arm_override_options): Enable scheduling for
2186         Thumb-2.
2187
2188 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2189
2190         PR target/10127
2191         PR ada/20548
2192         * expr.h (anti_adjust_stack_and_probe): Declare.
2193         * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
2194         parameter and rewrite head comment.
2195         (allocate_dynamic_stack_space): Adjust call to above function.
2196         * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
2197
2198         * tree.h (dwarf2out_args_size): Delete.
2199         * dwarf2out.c (dwarf2out_args_size): Make static and move around.
2200         (dwarf2out_args_size_adjust): Delete prototype and move around.
2201         (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
2202         ACCUMULATE_OUTGOING_ARGS targets.
2203
2204 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2205
2206         * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
2207         DECL_SIZE of DECL_RESULT before evaluating it.
2208
2209 2009-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2210
2211         PR tree-optimization/41987
2212         * fold-const.c (const_binop): Avoid using fold_buildN().
2213
2214 2009-11-10  Martin Jambor  <mjambor@suse.cz>
2215
2216         * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
2217         (execute_all_ipa_stmt_fixups): Declare.
2218         * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
2219         * ipa-inline.c (pass_ipa_inline): Likewise.
2220         * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
2221         * ipa-reference.c (pass_ipa_reference): Likewise.
2222         * ipa.c (pass_ipa_whole_program_visibility): Likewise.
2223         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
2224         (pass_ipa_lto_finish_out): Likewise.
2225         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
2226         * passes.c (execute_ipa_stmt_fixups): New function.
2227         (execute_all_ipa_stmt_fixups): New function.
2228         * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
2229
2230 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2231
2232         PR ada/20548
2233         * explow.c (probe_stack_range): Fix typo.
2234         * config/sparc/sparc.md (probe_stack): New expander.
2235
2236 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2237
2238         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
2239
2240 2009-11-09  Jason Merrill  <jason@redhat.com>
2241
2242         * gdbinit.in (pgq): New function for printing gimple sequence.
2243
2244 2009-11-09  Paul Brook  <paul@codesourcery.com>
2245             Daniel Jacobowitz  <dan@codesourcery.com>
2246             Sandra Loosemore  <sandra@codesourcery.com>
2247
2248         * doc/extend.texi (Half-Precision): Update wording to reflect
2249         that there are now multiple -mfpu options that enable fp16
2250         hardware support.
2251         * doc/invoke.texi: Update list of ARM -mfpu= options.
2252         * config.gcc: Update ARM --with-fpu option list.
2253         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
2254         vfpv3xd and vfpv3xd-fp16.
2255         (use_vfp_abi): New function.
2256         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
2257         when undesirable.
2258         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
2259         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
2260         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
2261         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
2262         provides them.
2263         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
2264         NEON.
2265         (arm_print_operand): Handle 'p' modifier.
2266         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
2267         TARGET_FP16.
2268         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
2269         (TARGET_FP16): Define.
2270         * config/arm/vfp.md: Disable double-precision patterns if the FPU
2271         does not provide them.
2272         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
2273         double-precision values on a single-precision FPU.
2274         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
2275         double-precision constants.
2276         (movhf_vfp_neon): New pattern (was movhf_vfp).
2277         (movhf_vfp): Remove NEON instructions.
2278         * config/arm/constraints.md: Add new "Dy" constraint for
2279         double-precision constants.  Update description of "Dv".
2280         * config/arm/arm.md: Disable double-precision patterns if the FPU
2281         does not provide them
2282
2283 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
2284
2285         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
2286         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
2287         diagnostics.
2288
2289 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
2290
2291         * collect2.c (main): Search PLUGIN_LD for plugin linker.
2292
2293         * configure.ac (--with-plugin-ld): New.  Default to ld.
2294         * configure: Regenerated.
2295         * config.in: Likewise.
2296
2297         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
2298         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
2299
2300 2009-11-08  Jonathan Gray  <jsg@openbsd.org>
2301
2302         * config/openbsd-stdint.h: Change to reflect what
2303         c_common_nodes_and_builtins expects.
2304
2305 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
2306
2307         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
2308
2309 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
2310
2311         PR target/41985
2312         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
2313         function contains at least one local dynamic name.
2314         (print_operand) <case '&'>: Instead output operand lossage diagnostics
2315         here if that happens.
2316
2317 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
2318             Joern Rennecke  <amylaar@spamcop.net>
2319
2320         * cfgrtl.c (pass_free_cfg): Add pass name.
2321         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
2322         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
2323         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
2324         * df-core.c (pass_df_initialize_no_opt): Likewise.
2325         * except.c (pass_rtl_eh): Likewise.
2326         * function.c (pass_init_function, pass_leaf_regs): Likewise.
2327         * gcse.c (pass_rtl_pre): Change pass name.
2328         * passes.c (pass_postreload): Add pass name.
2329         (make_pass_instance): Don't use duplicate-tracking logic for
2330         names starting with '*'.
2331         (next_pass_1): Assert that pass has a name.
2332         (register_one_dump_file): If there is an space in the name,
2333         skip past it.
2334         * predict.c (pass_strip_predict_hints): Add pass name.
2335         * reg-stack.c (pass_stack_regs): Likewise.
2336         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2337         * tree-cfg.c (pass_warn_function_return,
2338         pass_warn_function_noreturn): Add pass name.
2339         * tree-dfa.c (pass_referenced_vars): Likewise.
2340         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
2341         Fix whitespace before comment.
2342         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
2343         (pass_init_datastructures): Add pass name.
2344         * tree-ssa-loop.c (pass_record_bounds): Likewise.
2345         * tree-ssa.c (pass_early_warn_uninitialized,
2346         pass_late_warn_uninitialized): Likewise.
2347         * tree.c (pass_ipa_free_lang_data): Likewise.
2348         * doc/passes.texi (pass manager): Document how to disambiguate
2349         pass names.
2350
2351 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
2352
2353         * df-problems.c: Fix documentation for forward simulation of LR.
2354         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
2355         (df_simulate_finalize_forwards): Remove.
2356         * df.h (df_simulate_finalize_forwards): Remove.
2357
2358 2009-11-08  Richard Guenther  <rguenther@suse.de>
2359
2360         * tree-ssa-structalias.c (build_succ_graph): Properly make
2361         variables escape if they are stored to anything.
2362
2363 2009-11-08  Richard Guenther  <rguenther@suse.de>
2364
2365         PR rtl-optimization/41928
2366         * loop-invariant.c (free_loop_data): If we didn't allocate
2367         loop data do not try to free it.
2368
2369 2009-11-07  Jason Merrill  <jason@redhat.com>
2370
2371         * tree.c (reconstruct_complex_type): Preserve attributes.
2372
2373 2009-11-07  Richard Guenther  <rguenther@suse.de>
2374
2375         * tree-ssa-structalias.c (build_succ_graph): Feed stores
2376         to anything only to variables that can take pointers.
2377         (get_constraint_for_ssa_var): Properly exclude full
2378         variables from expanding.
2379         (first_vi_for_offset): Avoid overflow in arithmetic.
2380         (first_or_preceding_vi_for_offset): Likewise.
2381         (count_num_arguments): Fix implementation.
2382         (gate_ipa_pta): Do not run when not optimizing.
2383
2384 2009-11-07  David Binderman <dcb314@hotmail.com>
2385
2386         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
2387         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
2388         set but not used variables.
2389         (apply_args_reg_offset): Comment out as unused.
2390         * calls.c (flags_from_decl_or_type): Likewise.
2391         * genautomata.c (check_regexp_units_distribution): Likewise.
2392
2393 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
2394
2395         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
2396         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
2397         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
2398         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
2399         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
2400         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
2401         operand alternatives.
2402
2403 2009-11-06  Michael Matz  <matz@suse.de>
2404
2405         PR middle-end/41963
2406         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
2407         of a potential reciprocal to really be reciprocals.
2408
2409 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
2410
2411         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
2412         lwpintrin.h after immintrin.h.
2413         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
2414         typedefs.
2415
2416         PR middle-end/41935
2417         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
2418         or non-constant index, allow index one past the last element and
2419         allow exceeding array bound in arrays that might be used as flexible
2420         array members.
2421
2422 2009-11-05  Richard Henderson  <rth@redhat.com>
2423
2424         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
2425
2426 2009-11-05  Paul Brook  <paul@codesourcery.com>
2427
2428         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
2429         (arm_fpu_desc): New.
2430         (all_fpus): Add FPU details.
2431         (fp_model_for_fpu): Remove.
2432         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
2433         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
2434         (arm_file_start): Use arm_fpu_desc.
2435         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
2436         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
2437         arm_fpu_desc.
2438         (TARGET_FPA_EMU2): Define.
2439         (arm_fp_model, fputype, arm_fpu_tune): Remove.
2440         (vfp_reg_type, arm_fpu_desc): New.
2441         * config/arm/arm.md (attr fpu): Simplify.
2442         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
2443         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
2444         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
2445         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
2446         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
2447
2448 2009-11-05  Michael Matz  <matz@suse.de>
2449
2450         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
2451         on TARGET_RECIP.
2452         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
2453         for 1/sqrtf.
2454
2455 2009-11-04  Jason Merrill  <jason@redhat.com>
2456
2457         PR c++/36912
2458         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
2459         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
2460         (output_constant): Avoid crash after error.
2461
2462 2009-11-05  Martin Jambor  <mjambor@suse.cz>
2463
2464         * tree-sra.c (struct access): Changed comment of next_sibling field.
2465         (analyze_modified_params): Loop over accesses of a group rather than
2466         over all with the ame base, pass a common bitmap to
2467         walk_aliased_vdefs.
2468         (unmodified_by_ref_scalar_representative): Build link lists of
2469         accesses of a group.
2470         (splice_param_accesses): Likewise.
2471
2472 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
2473
2474         * df-scan.c (df-uses-record): Add case zero_extract of mem.
2475
2476 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2477
2478         PR target/10127
2479         PR ada/20548
2480         * config/i386/i386.md (probe_stack): New expander.
2481         (logical operation peepholes): Do not split stack checking probes.
2482
2483 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2484             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2485
2486         * doc/invoke.texi (-mlwp): Add documentation.
2487         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
2488         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
2489         (x86_64-*-*): Ditto.
2490         * config/i386/lwpintrin.h: New file, provide x86 compiler
2491         intrinisics for LWP.
2492         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
2493         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
2494         * config/i386/i386-c.c (ix86_target_macros_internal): Check
2495         ISA_FLAG for LWP.
2496         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
2497         * config/i386/i386.opt (-mlwp): New switch for LWP support.
2498         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
2499         (OPTION_MASK_ISA_LWP_UNSET): New.
2500         (ix86_handle_option): Handle -mlwp.
2501         (isa_opts): Handle -mlwp.
2502         (enum pta_flags): Add PTA_LWP.
2503         (override_options): Add LWP support.
2504         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
2505         (IX86_BUILTIN_LLWPCB32): Ditto.
2506         (IX86_BUILTIN_LLWPCB64): Ditto.
2507         (IX86_BUILTIN_SLWPCB16): Ditto.
2508         (IX86_BUILTIN_SLWPCB32): Ditto.
2509         (IX86_BUILTIN_SLWPCB64): Ditto.
2510         (IX86_BUILTIN_LWPVAL16): Ditto.
2511         (IX86_BUILTIN_LWPVAL32): Ditto.
2512         (IX86_BUILTIN_LWPVAL64): Ditto.
2513         (IX86_BUILTIN_LWPINS16): Ditto.
2514         (IX86_BUILTIN_LWPINS32): Ditto.
2515         (IX86_BUILTIN_LWPINS64): Ditto.
2516         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
2517         (builtin_description): Ditto.
2518         (ix86_init_mmx_sse_builtins): Ditto.
2519         (ix86_expand_special_args_builtin): Ditto.
2520         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
2521         LWP support.
2522         (UNSPEC_SLWP_INTRINSIC): Ditto.
2523         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
2524         (UNSPECV_LWPINS_INTRINSIC): Ditto.
2525         (lwp_llwpcbhi1): New lwp pattern.
2526         (lwp_llwpcbsi1): Ditto.
2527         (lwp_llwpcbdi1): Ditto.
2528         (lwp_slwpcbhi1): Ditto.
2529         (lwp_slwpcbsi1): Ditto.
2530         (lwp_slwpcbdi1): Ditto.
2531         (lwp_lwpvalhi3): Ditto.
2532         (lwp_lwpvalsi3): Ditto.
2533         (lwp_lwpvaldi3): Ditto.
2534         (lwp_lwpinshi3): Ditto.
2535         (lwp_lwpinssi3): Ditto.
2536         (lwp_lwpinsdi3): Ditto.
2537
2538 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2539             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2540
2541         PR rtl-opt/41833
2542         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
2543         a vec_duplicate.
2544
2545 2009-11-04  Richard Guenther  <rguenther@suse.de>
2546             Rafael Avila de Espindola  <espindola@google.com>
2547
2548         * gcc.c (process_command): Handle arguments name@offset.
2549
2550 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2551             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2552
2553         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
2554         (x86_64-*-*): Ditto.
2555         * config/i386/xopintrin.h: New file, provide common x86 compiler
2556         intrinisics for XOP.
2557         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
2558         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
2559         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2560         ISA_FLAG for XOP.
2561         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
2562         * config/i386/i386.opt (-mxop): New switch for XOP support.
2563         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
2564         (UNSPEC_XOP_TRUEFALSE)
2565         (UNSPEC_XOP_PERMUTE)
2566         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
2567         (PPERM_*): New constants for vpperm instruction.
2568         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
2569         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
2570         (OPTION_MASK_ISA_XOP_UNSET): New.
2571         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
2572         (ix86_handle_option): Handle -mxop.
2573         (isa_opts): Handle -mxop.
2574         (enum pta_flags): Add PTA_XOP.
2575         (override_options): Add XOP support.
2576         (print_operand): Add code for XOP compare instructions.
2577         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
2578         (ix86_expand_int_vcond): Extend for XOP compare instruction.
2579
2580         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
2581         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
2582         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
2583         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
2584         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
2585         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
2586         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
2587
2588         (IX86_BUILTIN_VPCMOV256): Ditto.
2589         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
2590         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
2591         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
2592         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
2593         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
2594         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
2595
2596         (IX86_BUILTIN_VPPERM): Ditto.
2597
2598         (IX86_BUILTIN_VPMACSSWW): Ditto.
2599         (IX86_BUILTIN_VPMACSWW): Ditto.
2600         (IX86_BUILTIN_VPMACSSWD): Ditto.
2601         (IX86_BUILTIN_VPMACSWD): Ditto.
2602         (IX86_BUILTIN_VPMACSSDD): Ditto.
2603         (IX86_BUILTIN_VPMACSDD): Ditto.
2604         (IX86_BUILTIN_VPMACSSDQL): Ditto.
2605         (IX86_BUILTIN_VPMACSSDQH): Ditto.
2606         (IX86_BUILTIN_VPMACSDQL): Ditto.
2607         (IX86_BUILTIN_VPMACSDQH): Ditto.
2608         (IX86_BUILTIN_VPMADCSSWD): Ditto.
2609         (IX86_BUILTIN_VPMADCSWD): Ditto.
2610
2611         (IX86_BUILTIN_VPHADDBW): Ditto.
2612         (IX86_BUILTIN_VPHADDBD): Ditto.
2613         (IX86_BUILTIN_VPHADDBQ): Ditto.
2614         (IX86_BUILTIN_VPHADDWD): Ditto.
2615         (IX86_BUILTIN_VPHADDWQ): Ditto.
2616         (IX86_BUILTIN_VPHADDDQ): Ditto.
2617         (IX86_BUILTIN_VPHADDUBW): Ditto.
2618         (IX86_BUILTIN_VPHADDUBD): Ditto.
2619         (IX86_BUILTIN_VPHADDUBQ): Ditto.
2620         (IX86_BUILTIN_VPHADDUWD): Ditto.
2621         (IX86_BUILTIN_VPHADDUWQ): Ditto.
2622         (IX86_BUILTIN_VPHADDUDQ): Ditto.
2623         (IX86_BUILTIN_VPHSUBBW): Ditto.
2624         (IX86_BUILTIN_VPHSUBWD): Ditto.
2625         (IX86_BUILTIN_VPHSUBDQ): Ditto.
2626
2627         (IX86_BUILTIN_VPROTB): Ditto.
2628         (IX86_BUILTIN_VPROTW): Ditto.
2629         (IX86_BUILTIN_VPROTD): Ditto.
2630         (IX86_BUILTIN_VPROTQ): Ditto.
2631         (IX86_BUILTIN_VPROTB_IMM): Ditto.
2632         (IX86_BUILTIN_VPROTW_IMM): Ditto.
2633         (IX86_BUILTIN_VPROTD_IMM): Ditto.
2634         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
2635
2636         (IX86_BUILTIN_VPSHLB): Ditto.
2637         (IX86_BUILTIN_VPSHLW): Ditto.
2638         (IX86_BUILTIN_VPSHLD): Ditto.
2639         (IX86_BUILTIN_VPSHLQ): Ditto.
2640         (IX86_BUILTIN_VPSHAB): Ditto.
2641         (IX86_BUILTIN_VPSHAW): Ditto.
2642         (IX86_BUILTIN_VPSHAD): Ditto.
2643         (IX86_BUILTIN_VPSHAQ): Ditto.
2644
2645         (IX86_BUILTIN_VFRCZSS): Ditto.
2646         (IX86_BUILTIN_VFRCZSD): Ditto.
2647         (IX86_BUILTIN_VFRCZPS): Ditto.
2648         (IX86_BUILTIN_VFRCZPD): Ditto.
2649         (IX86_BUILTIN_VFRCZPS256): Ditto.
2650         (IX86_BUILTIN_VFRCZPD256): Ditto.
2651
2652         (IX86_BUILTIN_VPCOMEQUB): Ditto.
2653         (IX86_BUILTIN_VPCOMNEUB): Ditto.
2654         (IX86_BUILTIN_VPCOMLTUB): Ditto.
2655         (IX86_BUILTIN_VPCOMLEUB): Ditto.
2656         (IX86_BUILTIN_VPCOMGTUB): Ditto.
2657         (IX86_BUILTIN_VPCOMGEUB): Ditto.
2658         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
2659         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
2660
2661         (IX86_BUILTIN_VPCOMEQUW): Ditto.
2662         (IX86_BUILTIN_VPCOMNEUW): Ditto.
2663         (IX86_BUILTIN_VPCOMLTUW): Ditto.
2664         (IX86_BUILTIN_VPCOMLEUW): Ditto.
2665         (IX86_BUILTIN_VPCOMGTUW): Ditto.
2666         (IX86_BUILTIN_VPCOMGEUW): Ditto.
2667         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
2668         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
2669
2670         (IX86_BUILTIN_VPCOMEQUD): Ditto.
2671         (IX86_BUILTIN_VPCOMNEUD): Ditto.
2672         (IX86_BUILTIN_VPCOMLTUD): Ditto.
2673         (IX86_BUILTIN_VPCOMLEUD): Ditto.
2674         (IX86_BUILTIN_VPCOMGTUD): Ditto.
2675         (IX86_BUILTIN_VPCOMGEUD): Ditto.
2676         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
2677         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
2678
2679         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
2680         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
2681         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
2682         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
2683         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
2684         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
2685         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
2686         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
2687
2688         (IX86_BUILTIN_VPCOMEQB): Ditto.
2689         (IX86_BUILTIN_VPCOMNEB): Ditto.
2690         (IX86_BUILTIN_VPCOMLTB): Ditto.
2691         (IX86_BUILTIN_VPCOMLEB): Ditto.
2692         (IX86_BUILTIN_VPCOMGTB): Ditto.
2693         (IX86_BUILTIN_VPCOMGEB): Ditto.
2694         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
2695         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
2696
2697         (IX86_BUILTIN_VPCOMEQW): Ditto.
2698         (IX86_BUILTIN_VPCOMNEW): Ditto.
2699         (IX86_BUILTIN_VPCOMLTW): Ditto.
2700         (IX86_BUILTIN_VPCOMLEW): Ditto.
2701         (IX86_BUILTIN_VPCOMGTW): Ditto.
2702         (IX86_BUILTIN_VPCOMGEW): Ditto.
2703         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
2704         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
2705
2706         (IX86_BUILTIN_VPCOMEQD): Ditto.
2707         (IX86_BUILTIN_VPCOMNED): Ditto.
2708         (IX86_BUILTIN_VPCOMLTD): Ditto.
2709         (IX86_BUILTIN_VPCOMLED): Ditto.
2710         (IX86_BUILTIN_VPCOMGTD): Ditto.
2711         (IX86_BUILTIN_VPCOMGED): Ditto.
2712         (IX86_BUILTIN_VPCOMFALSED): Ditto.
2713         (IX86_BUILTIN_VPCOMTRUED): Ditto.
2714
2715         (IX86_BUILTIN_VPCOMEQQ): Ditto.
2716         (IX86_BUILTIN_VPCOMNEQ): Ditto.
2717         (IX86_BUILTIN_VPCOMLTQ): Ditto.
2718         (IX86_BUILTIN_VPCOMLEQ): Ditto.
2719         (IX86_BUILTIN_VPCOMGTQ): Ditto.
2720         (IX86_BUILTIN_VPCOMGEQ): Ditto.
2721         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
2722         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
2723
2724         (enum multi_arg_type): New enum for describing the various XOP
2725         intrinsic argument types.
2726         (bdesc_multi_arg): New table for XOP intrinsics.
2727         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
2728         (ix86_expand_multi_arg_builtin): New function for creating XOP
2729         intrinsics.
2730
2731         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
2732         (xop_pmacsww): Ditto.
2733         (xop_pmacssww): Ditto.
2734         (xop_pmacsdd): Ditto.
2735         (xop_pmacssdd): Ditto.
2736         (xop_pmacssdql): Ditto.
2737         (xop_pmacssdqh): Ditto.
2738         (xop_pmacsdql): Ditto.
2739         (xop_pmacsdql_mem): Ditto.
2740         (xop_mulv2div2di3_low): Ditto.
2741         (xop_pmacsdqh): Ditto.
2742         (xop_pmacsdqh_mem): Ditto.
2743         (xop_mulv2div2di3_high): Ditto.
2744         (xop_pmacsswd): Ditto.
2745         (xop_pmacswd): Ditto.
2746         (xop_pmadcsswd): Ditto.
2747         (xop_pmadcswd): Ditto.
2748         (xop_pcmov_<mode>): Ditto.
2749         (xop_pcmov_<mode>256): Ditto.
2750         (xop_phaddbw): Ditto.
2751         (xop_phaddbd): Ditto.
2752         (xop_phaddbq): Ditto.
2753         (xop_phaddwd): Ditto.
2754         (xop_phaddwq): Ditto.
2755         (xop_phadddq): Ditto.
2756         (xop_phaddubw): Ditto.
2757         (xop_phaddubd): Ditto.
2758         (xop_phaddubq): Ditto.
2759         (xop_phadduwd): Ditto.
2760         (xop_phadduwq): Ditto.
2761         (xop_phaddudq): Ditto.
2762         (xop_phsubbw): Ditto.
2763         (xop_phsubwd): Ditto.
2764         (xop_phsubdq): Ditto.
2765         (xop_pperm): Ditto.
2766         (rotl<mode>3): Ditto.
2767         (rotr<mode>3): Ditto.
2768         (xop_rotl<mode>3): Ditto.
2769         (xop_rotr<mode>3): Ditto.
2770         (vrotr<mode>3): Ditto.
2771         (vrotl<mode>3): Ditto.
2772         (xop_vrotl<mode>3): Ditto.
2773         (vlshr<mode>3): Ditto.
2774         (vashr<mode>3): Ditto.
2775         (vashl<mode>3
2776         (xop_ashl<mode>3): Ditto.
2777         (xop_lshl<mode>3): Ditto.
2778         (ashlv16qi3): Ditto.
2779         (lshlv16qi3): Ditto.
2780         (ashrv16qi3): Ditto.
2781         (ashrv2di3): Ditto.
2782         (xop_frcz<mode>2): Ditto.
2783         (xop_vmfrcz<mode>2): Ditto.
2784         (xop_frcz<mode>2256): Ditto.
2785         (xop_maskcmp<mode>3): Ditto.
2786         (xop_maskcmp_uns<mode>3): Ditto.
2787         (xop_maskcmp_uns2<mode>3): Ditto.
2788         (xop_pcom_tf<mode>3): Ditto.
2789
2790         * doc/invoke.texi (-mxop): Add documentation.
2791         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
2792
2793 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
2794
2795         PR driver/11810
2796         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
2797         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
2798         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
2799
2800 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
2801
2802         PR target/40835
2803         * arm.md (peephole2 patterns for move and compare): New.
2804
2805 2009-11-04  Nick Clifton  <nickc@redhat.com>
2806
2807         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
2808         Make sure that it does not allow CONST_DOUBLEs.
2809         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
2810         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
2811         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
2812         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
2813         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
2814         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
2815         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
2816         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
2817         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
2818         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
2819         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
2820         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
2821         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
2822         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
2823         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
2824
2825 2009-11-04  Richard Guenther  <rguenther@suse.de>
2826
2827         PR tree-optimization/41919
2828         * tree-vrp.c (test_for_singularity): Properly compare values.
2829
2830 2009-11-04  Revital Eres  <eres@il.ibm.com>
2831
2832         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2833         Consider peeling for alignment only for stores and remove
2834         redundant assignment.
2835
2836 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
2837
2838         PR target/41302
2839         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
2840         (m68k_ok_for_sibcall_p): Handle different result return locations.
2841
2842 2009-11-04  Richard Guenther  <rguenther@suse.de>
2843
2844         * c-opts.c (c_common_post_options): Move LTO option processing
2845         code ...
2846         * opts.c (decode_options): ... here.
2847
2848 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
2849
2850         * c-common.c (fold_offsetof_1): Use %wd instead of
2851         HOST_WIDE_INT_PRINT_DEC.
2852
2853 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
2854
2855         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
2856         __pic__ or __PIC__.
2857
2858 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
2859
2860         * config.gcc (vax-*-linux*): Keep the original contents of
2861         tmake_file while adding vax/t-linux.
2862
2863 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2864
2865         PR target/10127
2866         PR ada/20548
2867         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
2868         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
2869         (STACK_CHECK_MOVING_SP): Likewise.
2870         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
2871         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
2872         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
2873         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
2874         Document PROBE_STACK.
2875         * explow.c (anti_adjust_stack_and_probe): New function.
2876         (allocate_dynamic_stack_space): Do not directly allocate space if
2877         STACK_CHECK_MOVING_SP, instead invoke above function.
2878         (emit_stack_probe): Handle probe_stack insn.
2879         (PROBE_INTERVAL): New macro.
2880         (STACK_GROW_OPTAB): Likewise.
2881         (STACK_GROW_OFF): Likewise.
2882         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
2883         loop condition in the small constant case.  Rewrite in the general
2884         case to be immune to wraparounds.  Make sure the address of probes
2885         is valid.  Try to use [base + disp] addressing mode if possible.
2886         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
2887         checking is enabled and STACK_CHECK_MOVING_SP.
2888         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
2889         return 1 for volatile references to the stack pointer.
2890         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
2891         __builtin_alloca if stack checking is enabled.
2892         * unwind-dw2.c (uw_identify_context): Take into account whether the
2893         context is that of a signal frame or not.
2894         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
2895         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
2896
2897 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
2898
2899         PR rtl-optimization/41917
2900         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
2901         operand isn't known to be 0, return 1.
2902
2903 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2904
2905         * config/mips/mips.md: Fix typos.
2906
2907 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2908
2909         * doc/invoke.texi: Fix typo.
2910
2911 2009-11-03  Paul Brook  <paul@codesourcery.com>
2912
2913         * config/arm/neon.ml (vectype): Add T_floatSF.
2914         (string_of_vectype): Ditto.
2915         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
2916         (deftypes): Use float for float32_t.
2917         * config/arm/arm_neon.h: Regenerate.
2918
2919 2009-11-03  Nick Clifton  <nickc@redhat.com>
2920             Kevin Buettner  <kevinb@redhat.com>
2921
2922         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
2923         order of expected registers.
2924         (rx_load_multiple_vector): Likewise.
2925         (rx_rtsd_vector): Likewise.
2926         * config/rx/rx.c (rx_cpu_type): New variable.
2927         (rx_print_operand): Fix bug printing 64-bit constant values.
2928         (rx_emit_stack_pushm): Reverse order of pushed registers.
2929         (gen_rx_store_vector): Likewise.
2930         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
2931         attribute name.
2932         (is_exception_func): Rename to is_interrupt_func and only accept
2933         "interrupt" as the attribute name.
2934         (rx_get_stack_layout): Use new function name.
2935         (rx_func_attr_inlinable): Likewise.
2936         (rx_attribute_table): Remove "exception".
2937         (rx_expand_prologue): If necessary push the accumulator register
2938         in the prologue of interrupt functions.
2939         (rx_expand_epilogue): If necessary pop the accumulator.
2940         (rx_builtins): Add RX_BUILTIN_MVTIPL.
2941         (rx_expand_builtin_stz): Remove.
2942         (rx_expand_builtin_mvtipl): New function.
2943         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
2944         (rx_expand_builtin): Likewise.
2945         (rx_enable_fpu): New variable.
2946         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
2947         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
2948         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
2949         (enum rx_cpu_types): Define.
2950         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
2951         (INCOMING_FRAME_SP_OFFSET): Define.
2952         (ARG_POINTER_CFA_OFFSET): Define.
2953         (FRAME_POINTER_CFA_OFFSET): Define.
2954         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
2955         (ALLOW_RX_FPU_INSNS): Define.
2956         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
2957         fast_math_flags_set_p.
2958         (UNSPEC_BUILTIN_MVTIPL): Define.
2959         (revl): Rename to bswapsi2.
2960         (bswaphi2): New pattern.
2961         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
2962         (mvtaclo): Likewise.
2963         (racw): Likewise.
2964         (mvtc): Remove clobber of cc0.
2965         (mvtcp): Delete.
2966         (opecp): Delete.
2967         * config/rx/rx.opt (mieee): Remove.
2968         (fpu): Add.
2969         (nofpu): Add.
2970         (mcpu=): Add.
2971         (patch=): Add.
2972         (msave-acc-in-interrupts): Add.
2973         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
2974         (MULTILIB_DIRS): Likewise.
2975         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
2976         * doc/extend.texi: Remove description of "exception" function
2977         attribute.
2978         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
2979         -msave-acc-in-interrupts options.
2980
2981 2009-11-03  Richard Guenther  <rguenther@suse.de>
2982
2983         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
2984
2985 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
2986
2987         PR c++/38699
2988         * c-common.c (fold_offsetof_1): Issue errors when the member
2989         designator of the offsetof expression is not legitimate.
2990
2991 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2992
2993         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
2994         names instead of numerical constants.
2995         (sse_prologue_save): Ditto.
2996         (*sse_prologue_save_insn): Ditto.
2997
2998 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2999
3000         PR target/41900
3001         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3002         (TARGET_CALL_ESP): New define.
3003         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3004         X86_ARCH_CALL_ESP.
3005         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3006         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3007         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
3008         TARGET_CALL_ESP.
3009         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3010         New patterns, use "lsm" as operand 1 constraint.
3011         * config/i386/predicates.md (call_insn_operand): Depend on
3012         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3013
3014 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3015
3016         PR tree-optimization/41857
3017         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
3018         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
3019         to create_mem_ref.
3020         * tree-ssa-address.c (move_hint_to_base): New function.
3021         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
3022         address space associated with TYPE.
3023         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
3024         most_expensive_mult_to_index.  Call move_hint_to_base.
3025         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
3026         TYPE to addr_to_parts.
3027
3028 2009-11-02  Martin Jambor  <mjambor@suse.cz>
3029
3030         PR tree-optimization/41750
3031         * tree-sra.c (analyze_modified_params): Loop over all
3032         representatives of components of a parameter.
3033
3034 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
3035
3036         PR tree-optimization/41841
3037         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
3038         local variables of not yet materialized clones.
3039
3040         PR debug/41893
3041         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
3042         for a VOIDmode variable.
3043
3044         PR c++/41774
3045         * c-pragma.c (visstack): Change into vector of ints rather than
3046         enum symbol_visibility.
3047         (push_visibility): Add kind argument, push default_visibility together
3048         with kind.
3049         (pop_visibility): Add kind argument, return true if successful, fail
3050         if visibility stack is empty or if stack top is of different kind.
3051         (handle_pragma_visibility): Don't check length of visstack, instead
3052         call pop_visibility and issue diagnostics if it failed.  Pass 0
3053         as last argument to push_visibility and pop_visibility.
3054         * c-pragma.h (push_visibility): Add kind argument.
3055         (pop_visibility): Likewise.  Return bool instead of void.
3056
3057 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
3058
3059         * tree.def (TARGET_MEM_REF): Update comment.
3060         * alias.c (get_alias_set): Retrieve the original memory reference for
3061         a TARGET_MEM_REF before proceeding.
3062
3063 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3064
3065         * config/frv/frv.c (frv_function_value, frv_libcall_value,
3066         frv_function_value_regno_p): New functions.
3067         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3068         * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3069         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
3070         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
3071
3072 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3073
3074         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
3075         new 'outgoing' argument.
3076         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
3077         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3078         * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3079         LIBCALL_VALUE): Remove.
3080         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
3081         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
3082         (mh10300_function_value_regno_p): Declare.
3083
3084 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3085
3086         * config/arm/cortex-a9.md: New - integer pipeline description.
3087
3088 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
3089
3090         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
3091         aborting if the sizes of the two references don't match.
3092
3093 2009-10-31  Toon Moene  <toon@moene.org>
3094
3095         * ipa-inline.c (cgraph_decide_inlining):
3096         Include reason for not inlining called-once functions in dump file.
3097
3098 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
3099
3100         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
3101         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
3102         (LINK_SPEC): BE_LINK_SPEC added.
3103
3104 2009-10-30  Richard Guenther  <rguenther@suse.de>
3105
3106         PR lto/41858
3107         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
3108
3109 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
3110
3111         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
3112         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
3113         label.
3114
3115 2009-10-30  Martin Jambor  <mjambor@suse.cz>
3116
3117         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
3118
3119 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3120
3121         PR target/40838
3122         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
3123         first.  Move assert on stack_alignment_estimated just before
3124         setting stack_realign_needed.
3125         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
3126         Don't call update_stack_boundary.
3127
3128         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
3129         (verride_options): Don't check ix86_force_align_arg_pointer here.
3130         (ix86_function_ok_for_sibcall): Use it.
3131         (ix86_update_stack_boundary): Likewise.
3132
3133         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
3134
3135 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
3136
3137         * arm.md (QHSI): New mode iterator.
3138         (movqi): If generating for thumb, then truncate any immediate to
3139         8 bits.
3140         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
3141         with...
3142         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
3143         version.
3144
3145 2009-10-29  Cary Coutant  <ccoutant@google.com>
3146
3147         PR debug/41700
3148         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
3149         locations in the source).
3150         (store_vcall_insn): New function.
3151         (lookup_vcall_insn): New function.
3152         (dwarf2out_virtual_call_token): Use store_vcall_insn.
3153         (dwarf2out_copy_call_info): New function.
3154         (dwarf2out_virtual_call): Use lookup_vcall_insn.
3155         * emit-rtl.c (try_split): Call copy_call_info debug hook.
3156         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
3157         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
3158         (debug_nothing_rtx_rtx): New dummy hook.
3159         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
3160         (xcoff_debug_hooks): Likewise.
3161         * sdbout.c (sdb_debug_hooks): Likewise.
3162         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3163
3164 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
3165
3166         * doc/invoke.texi (mmcount-ra-address): Document new command line
3167         option.
3168         * config/mips/mips.opt (mmcount-ra-address): New option.
3169         * config/mips/mips-protos.h (mips_function_profiler): Declare new
3170         function.
3171         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
3172         member.
3173         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
3174         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
3175         rewritten.
3176         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
3177         mips_function_profiler.
3178
3179 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
3180
3181         PR middle-end/37565
3182         PR target/38018
3183         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
3184         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3185         * optc-gen.awk (cl_target_option_restore): Include call to
3186         targetm.override_options_after_change.
3187         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3188         * target.h (override_options_after_change): New.
3189         * c-common.c (parse_optimize_options): Call
3190         targetm.override_options_after_change.
3191         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3192         (ia64_override_options_after_change): New.
3193         (ia64_override_options) Add call to above.
3194
3195 2009-10-29  Michael Matz  <matz@suse.de>
3196
3197         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
3198         (gate_convert_to_rsqrt): Ditto.
3199         (pass_convert_to_rsqrt): Ditto.
3200         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
3201         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
3202         to pass list.
3203
3204         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
3205
3206 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3207
3208         * config/arm/arm.c (find_best_start): Fix type of remainder to be
3209         unsigned.
3210
3211 2009-10-29  Martin Jambor  <mjambor@suse.cz>
3212
3213         PR tree-optimization/41775
3214         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
3215         (generate_subtree_copies): Do not unshare agg.
3216         (load_assign_lhs_subreplacements): Do not unshare rhs.
3217         (sra_modify_assign): Do not unshare exprs.
3218         (propagate_subacesses_accross_link): Renamed to
3219         propagate_subaccesses_across_link.
3220
3221 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
3222
3223         * arm.c (count_insns_for_constant): Rework to support counting for
3224         thumb2 immediates as well.
3225         (find_best_start): Split out from arm_gen_constant.
3226         (arm_gen_constant): Rework to support XOR with immediate.
3227
3228 2009-10-29  Chao-ying Fu  <fu@mips.com>
3229
3230         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
3231         functions.
3232         (mips_expand_synci_loop):  Use the length rtx to control the
3233         synci loop from the begin rtx that points to the first byte of
3234         the cache line.
3235
3236 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3237
3238         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
3239
3240 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3241
3242         * dbxout.c (dbxout_common_check): Accept non public trees.
3243         * dwarf2out.c (fortran_common): Accept non public trees.
3244
3245 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3246
3247         * common.opt (fuse-linker-plugin): New option.
3248         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
3249         fuse-linker-plugin.
3250         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
3251
3252 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3253
3254         PR rtl-optimization/39715
3255         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
3256         (gen_cstoresi_ltu_thumb1): New splitter.
3257
3258 2009-10-28  Richard Guenther  <rguenther@suse.de>
3259
3260         PR lto/41808
3261         PR lto/41839
3262         * tree-ssa.c (useless_type_conversion_p): Do not treat
3263         conversions to pointers to incomplete types as useless.
3264         * gimple.c (gimple_types_compatible_p): Compare struct tags,
3265         not typedef names.
3266
3267 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
3268
3269         * var-tracking.c (emit_note_insn_var_location): Don't call the second
3270         vt_expand_loc unnecessarily when location is not a register nor
3271         memory.
3272
3273         PR middle-end/41837
3274         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
3275         fields don't have DECL_NAME.
3276
3277         PR debug/41801
3278         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
3279         call convert_memory_address on addr.
3280
3281         PR target/41762
3282         * config/i386/i386.c (ix86_pic_register_p): Don't call
3283         rtx_equal_for_cselib_p for VALUEs discarded as useless.
3284
3285 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
3286
3287         * var-tracking.c (emit_note_insn_var_location): Get the mode of
3288         a variable part from its REG, MEM or VALUE.
3289
3290 2009-10-28  Richard Guenther  <rguenther@suse.de>
3291
3292         * gimple.c (gimple_get_alias_set): Fix comment typo.
3293
3294 2009-10-28  Richard Guenther  <rguenther@suse.de>
3295
3296         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
3297         (free_lang_data): Unconditionally compute alias sets for all
3298         standard integer types.  Bail out if gate bailed out previously.
3299         Do not reset the types_compatible_p langhook.
3300         (gate_free_lang_data): Remove.
3301         (struct pass_ipa_free_lang_data): Enable unconditionally.
3302         * gimple.c (gimple_get_alias_set): Use the same alias-set for
3303         all pointer types.
3304
3305 2009-10-28  Richard Guenther  <rguenther@suse.de>
3306
3307         PR middle-end/41855
3308         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
3309         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
3310         (call_may_clobber_ref_p_1): Likewise.
3311         * tree-ssa-structalias.c (find_func_aliases): Likewise.
3312         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
3313
3314 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3315
3316         PR rtl-optimization/41812
3317
3318         Revert:
3319         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3320
3321         * df-problems.c (df_md_scratch): New.
3322         (df_md_alloc, df_md_free): Allocate/free it.
3323         (df_md_local_compute): Only include live registers in init.
3324         (df_md_transfer_function): Prune the in-set computed by
3325         the confluence function, and the gen-set too.
3326
3327 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3328
3329         PR rtl-optimization/39715
3330         * combine.c (simplify_comparison): Use extensions to
3331         widen comparisons.  Try an ANDing first.
3332
3333 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3334
3335         PR rtl-optimization/40741
3336         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
3337         a small constant is cheap.
3338         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
3339         force_reg on the LHS.
3340         (xorsi3): Likewise, and split the XOR if the constant is complex
3341         and not in Thumb mode.
3342
3343 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3344
3345         * expmed.c (emit_store_flag): Check costs before
3346         transforming to the opposite representation.
3347
3348 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3349
3350         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
3351         cstore result to DImode.
3352
3353 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3354
3355         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
3356         inside the unspec vector.
3357
3358 2009-10-27  Richard Henderson  <rth@redhat.com>
3359
3360         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
3361
3362 2009-10-27  Richard Henderson  <rth@redhat.com>
3363
3364         PR c++/41819
3365         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
3366         eh_region_may_contain_throw; update users.
3367         (eh_region_may_contain_throw): New function.
3368         (lower_catch): Check flag_exceptions before creating exception region.
3369         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
3370         (lower_cleanup): Tidy existing flag_exceptions check to match.
3371
3372 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
3373
3374         PR/41799
3375         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
3376         * config/i386/mingw.opt: Add fset-stack-executable.
3377         * config/i386/i386.c (ix86_trampoline_init): Make call to
3378         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
3379         defined and its value is not zero.
3380         * doc/invoke.texi
3381
3382 2009-10-27  Richard Guenther  <rguenther@suse.de>
3383
3384         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
3385         handle calls to externally visible functions like in regular mode.
3386         (create_variable_info_for): Do not create function infos here.
3387         (have_alias_info): Remove write-only variable.
3388         (solve_constraints): New function split out from common code
3389         in compute_points_to_sets and ipa_pta_execute.
3390         (compute_points_to_sets): Adjust.
3391         (ipa_pta_execute): Likewise.  Handle clones and externally visible
3392         functions like in non-IPA mode.
3393
3394 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
3395
3396         PR c/41842
3397         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
3398         error_mark_node.
3399
3400 2009-10-27  Richard Guenther  <rguenther@suse.de>
3401
3402         * tree-complex.c (expand_complex_div_wide): Check for
3403         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
3404
3405 2009-10-27  Revital Eres  <eres@il.ibm.com>
3406
3407         PR tree-optimization/40648
3408         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3409         Change decision of when to peel for alignment.
3410
3411 2009-10-27  Richard Guenther  <rguenther@suse.de>
3412
3413         PR lto/41821
3414         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
3415
3416 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
3417
3418         PR bootstrap/41451
3419         * fold-const.c (fold_binary_loc): Do not call
3420         protected_set_expr_location.
3421
3422 2009-10-27  Wei Guozhi  <carrot@google.com>
3423
3424         PR target/41705
3425         * target.h (have_conditional_execution): Add a new target hook
3426         function.
3427         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
3428         * targhooks.h (default_have_conditional_execution): Likewise.
3429         * targhooks.c (default_have_conditional_execution): Likewise.
3430         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
3431         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
3432         (arm_have_conditional_execution): New function.
3433         * ifcvt.c (noce_process_if_block, find_if_header,
3434         cond_exec_find_if_block, dead_or_predicable): Change the usage of
3435         macro HAVE_conditional_execution to a target hook call.
3436         * recog.c (peephole2_optimize): Likewise.
3437         * sched-rgn.c (add_branch_dependences): Likewise.
3438         * final.c (asm_insn_count, final_scan_insn): Likewise.
3439         * bb-reorder.c (HAVE_conditional_execution): Remove it.
3440
3441 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3442             Michael Meissner  <meissner@linux.vnet.ibm.com>
3443             Ulrich Weigand  <uweigand@de.ibm.com>
3444
3445         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
3446         * config/spu/spu_cache.h: New file.
3447
3448         * config/spu/cachemgr.c: New file.
3449         * config/spu/cache.S: New file.
3450
3451         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
3452         (ADDR_SPACE_EA): Define.
3453         (TARGET_ADDR_SPACE_KEYWORDS): Define.
3454         * config/spu/spu.c (EAmode): New macro.
3455         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3456         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3457         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
3458         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3459         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3460         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3461         (TARGET_ASM_SELECT_SECTION): Likewise.
3462         (TARGET_ASM_UNIQUE_SECTION): Likewise.
3463         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3464         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3465         (ea_symbol_ref): New function.
3466         (spu_legitimate_constant_p): Handle __ea qualified addresses.
3467         (spu_addr_space_legitimate_address_p): New function.
3468         (spu_addr_space_legitimize_address): Likewise.
3469         (cache_fetch): New global.
3470         (cache_fetch_dirty): Likewise.
3471         (ea_alias_set): Likewise.
3472         (ea_load_store): New function.
3473         (ea_load_store_inline): Likewise.
3474         (expand_ea_mem): Likewise.
3475         (spu_expand_mov): Handle __ea qualified memory references.
3476         (spu_addr_space_pointer_mode): New function.
3477         (spu_addr_space_address_mode): Likewise.
3478         (spu_addr_space_subset_p): Likewise.
3479         (spu_addr_space_convert): Likewise.
3480         (spu_section_type_flags): Handle "._ea" section.
3481         (spu_select_section): New function.
3482         (spu_unique_section): Likewise.
3483         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
3484         and __EA64__ predefined macros.
3485         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
3486         -matomic-updates switches.
3487
3488         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
3489         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
3490         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
3491         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
3492         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
3493         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
3494         $(T)cache128k.o): Likewise.
3495         ($(T)libgcc_%.a): Likewise.
3496
3497         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
3498         * config/spu/spu.opt (-mea32/-mea64): Add switches.
3499         (-maddress-space-conversion): Likewise.
3500         (-mcache-size=): Likewise.
3501         (-matomic-updates): Likewise.
3502         * doc/invoke.texi (-mea32/-mea64): Document.
3503         (-maddress-space-conversion): Likewise.
3504         (-mcache-size=): Likewise.
3505         (-matomic-updates): Likewise.
3506
3507 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3508             Michael Meissner  <meissner@linux.vnet.ibm.com>
3509             Ulrich Weigand  <uweigand@de.ibm.com>
3510
3511         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
3512
3513         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
3514         defined, add the named address space keywords.
3515         (c_addr_space_name): New function.
3516         (complete_array_type): Preserve named address space.
3517         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
3518         instead of targetm.valid_pointer_mode.
3519
3520         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
3521         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
3522         (ADDR_SPACE_KEYWORD): New macro.
3523         (c_addr_space_name): Add prototype.
3524
3525         * c-tree.h (struct c_declspecs): Add address_space member.
3526         (declspecs_add_addrspace): Add prototype.
3527
3528         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
3529
3530         * c-parser.c (c_parse_init): Add assertion.
3531         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
3532         (c_lex_one_token): Handle address space keywords.
3533         (c_token_starts_typename): Likewise.
3534         (c_token_starts_declspecs): Likewise.
3535         (c_parser_declspecs): Likewise.
3536         (c_parser_postfix_expression_after_paren_type): Diagnose compound
3537         literal within function qualified with named address space.
3538
3539         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
3540         address space qualifiers.
3541         (shadow_tag_warned): Warn about useless address space qualifiers.
3542         (quals_from_declspecs): Handle address space qualifiers.
3543         (grokdeclarator): Likewise.
3544         (build_null_declspecs): Likewise.
3545         (declspecs_add_addrspace): New function.
3546
3547         * c-typeck.c (addr_space_superset): New function.
3548         (qualify_type): Handle named address spaces.
3549         (composite_type): Likewise.
3550         (common_pointer_type): Likewise.
3551         (comp_target_types): Likewise.
3552         (build_conditional_expr): Likewise.
3553         (handle_warn_cast_qual): Likewise.
3554         (build_c_cast): Likewise.
3555         (convert_for_assignment): Likewise.
3556         (build_binary_op): Likewise.
3557         (pointer_diff): Handle named address spaces.  Use intermediate
3558         integer type of sufficient size if required.
3559
3560 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3561             Michael Meissner  <meissner@linux.vnet.ibm.com>
3562             Ulrich Weigand  <uweigand@de.ibm.com>
3563
3564         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
3565         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3566         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3567
3568         * target.h (struct target_def): Add pointer_mode, address_mode,
3569         and valid_pointer_mode to addr_space substructure.
3570         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3571         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3572         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3573         (TARGET_ADDR_SPACE_HOOKS): Add them.
3574         * targhooks.c (target_default_pointer_address_modes_p): New function.
3575         * target.h (target_default_pointer_address_modes_p): Add prototype.
3576         * targhooks.c (default_addr_space_pointer_mode): New function.
3577         (default_addr_space_address_mode): Likewise.
3578         (default_addr_space_valid_pointer_mode): Likewise.
3579         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
3580         (default_addr_space_address_mode): Likewise.
3581         (default_addr_space_valid_pointer_mode): Likewise.
3582         * output.h (default_valid_pointer_mode): Move to ...
3583         * targhooks.h (default_valid_pointer_mode): ... here.
3584         * varasm.c (default_valid_pointer_mode): Move to ...
3585         * targhooks.c (default_valid_pointer_mode): ... here.
3586
3587         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
3588         instead of targetm.valid_pointer_mode.
3589
3590         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
3591         * tree.c (integer_pow2p): Likewise.
3592         (tree_log2): Likewise.
3593         (tree_floor_log2): Likewise.
3594         (signed_or_unsigned_type_for): Support pointer type of different size.
3595         (int_or_pointer_precision): New function.
3596         * tree.h (int_or_pointer_precision): Add prototype.
3597         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
3598         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
3599         incoming pointer type instead of POINTER_SIZE.
3600
3601         * tree.c (build_pointer_type): Use appropriate pointer mode
3602         instead of ptr_mode.
3603         (build_reference_type): Likewise.
3604         * expr.c (store_expr): Likewise.
3605         (expand_expr_addr_expr): Likewise.
3606         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
3607         * cfgexpand.c (expand_debug_expr): Likewise.
3608
3609         * auto-inc-dec.c: Include "target.h".
3610         (try_merge): Use appropriate address mode instead of Pmode.
3611         (find_inc): Likewise.
3612         * combine.c (find_split_point): Likewise.
3613         * cselib.c (cselib_record_sets): Likewise.
3614         * dse.c (replace_inc_dec): Likewise.
3615         (canon_address): Likewise.
3616         * var-tracking.c (replace_expr_with_values): Likewise.
3617         (count_uses): Likewise.
3618         (add_uses): Likewise.
3619         (add_stores): Likewise.
3620         * emit-rtl.c: Include "target.h".
3621         (adjust_address_1): Use appropriate address mode instead of Pmode.
3622         (offset_address): Likewise.
3623         * explow.c (break_out_memory_refs): Likewise.
3624         (memory_address_addr_space): Likewise.
3625         (promote_mode): Likewise.
3626         * expr.c (move_by_pieces): Likewise.
3627         (emit_block_move_via_loop): Likewise.
3628         (store_by_pieces): Likewise.
3629         (store_by_pieces_1): Likewise.
3630         (expand_assignment): Likewise.
3631         (store_constructor): Likewise.
3632         (expand_expr_addr_expr): Likewise.
3633         (expand_expr_real_1): Likewise.
3634         * cfgexpand.c (expand_debug_expr): Likewise.
3635         * ifcvt.c (noce_try_cmove_arith): Likewise.
3636         * regcprop.c (kill_autoinc_value): Likewise.
3637         * regmove.c (try_auto_increment): Likewise.
3638         * reload.c (find_reloads): Likewise.
3639         (find_reloads_address): Likewise.
3640         (find_reloads_address_1): Likewise.
3641         * sched-deps.c: Include "target.h".
3642         (sched_analyze_1): Use appropriate address mode instead of Pmode.
3643         (sched_analyze_2): Likewise.
3644         * sel-sched-dump.c: Include "target.h".
3645         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
3646         * stor-layout.c (layout_type): Likewise.
3647         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3648         (multiplier_allowed_in_address_p): Likewise.
3649         (get_address_cost): Likewise.
3650         * varasm.c (make_decl_rtl): Likewise.
3651
3652         * expr.c (expand_assignment): Always convert offsets to appropriate
3653         address mode.
3654         (store_expr): Likewise.
3655         (store_constructor): Likewise.
3656         (expand_expr_real_1): Likewise.
3657
3658         * reload.h (form_sum): Add MODE argument.
3659         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
3660         Update recursive calls.
3661         (subst_indexed_address): Update calls to form_sum.
3662
3663         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
3664         * tree-ssa-address.c: Include "target.h".
3665         (templates): Replace by ...
3666         (mem_addr_template_list): ... this new vector.
3667         (TEMPL_IDX): Handle address space numbers.
3668         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
3669         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
3670         instead of global cache.  Update call to gen_addr_rtx.
3671         (valid_mem_ref_p): Update call to addr_for_mem_ref.
3672         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
3673
3674         * rtl.h (convert_memory_address_addr_space): Add prototype.
3675         (convert_memory_address): Define as macro.
3676         * explow.c (convert_memory_address): Rename to ...
3677         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3678         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
3679         Update recursive calls.
3680         (memory_address_addr_space): Call convert_memory_address_addr_space.
3681         * expmed.c (make_tree): Likewise.
3682         * expr.c (expand_assignment): Likewise.
3683         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
3684         (expand_expr_addr_expr): Likewise.  Also, update call.
3685
3686         * alias.c (find_base_value): Guard pointer size optimizations.
3687         (find_base_term): Likewise.
3688         * rtlanal.c (nonzero_bits1): Likewise.
3689         (num_sign_bit_copies1): Likewise.
3690         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3691
3692         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
3693         (emit-rtl.o): Likewise.
3694         (auto-inc-dec.o): Likewise.
3695         (sched-deps.o): Likewise.
3696
3697 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3698             Michael Meissner  <meissner@linux.vnet.ibm.com>
3699             Ulrich Weigand  <uweigand@de.ibm.com>
3700
3701         * doc/extend.texi (Named Address Spaces): New section.
3702         * coretypes.h (addr_space_t): New type.
3703         (ADDR_SPACE_GENERIC): New define.
3704         (ADDR_SPACE_GENERIC_P): New macro.
3705
3706         * doc/tm.texi (Named Address Spaces): New section.
3707         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
3708         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
3709         (TARGET_ADDR_SPACE_SUBSET_P): Document.
3710         (TARGET_ADDR_SPACE_CONVERT): Document.
3711         * target.h (struct gcc_target): Add addr_space substructure.
3712         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3713         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3714         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3715         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3716         (TARGET_ADDR_SPACE_HOOKS): Likewise.
3717         (TARGET_INITIALIZER): Initialize addr_space hooks.
3718         * targhooks.c (default_addr_space_legitimate_address_p): New function.
3719         (default_addr_space_legitimize_address): Likewise.
3720         (default_addr_space_subset_p): Likewise.
3721         (default_addr_space_convert): Likewise.
3722         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
3723         (default_addr_space_legitimize_address): Likewise.
3724         (default_addr_space_subset_p): Likewise.
3725         (default_addr_space_convert): Likewise.
3726
3727         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
3728         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
3729         (MEM_ADDR_SPACE): New macro.
3730         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
3731         address space memory attribute.
3732         (mem_attrs_htab_hash): Handle address space memory attribute.
3733         (mem_attrs_htab_eq): Likewise.
3734         (set_mem_attributes_minus_bitpos): Likewise.
3735         (set_mem_alias_set): Likewise.
3736         (set_mem_align): Likewise.
3737         (set_mem_expr): Likewise.
3738         (set_mem_offset): Likewise.
3739         (set_mem_size): Likewise.
3740         (adjust_address_1): Likewise.
3741         (offset_address): Likewise.
3742         (widen_memoy_address): Likewise.
3743         (get_spill_slot_decl): Likewise.
3744         (set_mem_attrs_for_spill): Likewise.
3745         (set_mem_addr_space): New function.
3746         * emit-rtl.h (set_mem_addr_space): Add prototype.
3747         * print-rtl.c (print_rtx): Print address space memory attribute.
3748         * expr.c (expand_assignment): Set address space memory attribute
3749         of generated MEM RTXes as appropriate.
3750         (expand_expr_real_1): Likewise.
3751         * cfgexpand.c (expand_debug_expr): Likewise.
3752         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3753
3754         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
3755         size of "spare" bitfield.
3756         (TYPE_ADDR_SPACE): New macro.
3757         (ENCODE_QUAL_ADDR_SPACE): Likewise.
3758         (DECODE_QUAL_ADDR_SPACE): Likewise.
3759         (CLEAR_QUAL_ADDR_SPACE): Likewise.
3760         (KEEP_QUAL_ADDR_SPACE): Likewise.
3761         (TYPE_QUALS): Encode type address space.
3762         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
3763         * tree.c (set_type_quals): Set type address space.
3764         (build_array_type): Inherit array address space from element type.
3765         * print-tree.c (print_node_brief): Print type address space.
3766         (print_node): Likewise.
3767         * tree-pretty-print.c (dump_generic_node): Likewise.
3768
3769         * explow.c (memory_address): Rename to ...
3770         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3771         Use address-space aware variants of memory address routines.
3772         * recog.c (memory_address_p): Rename to ...
3773         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3774         Use address-space aware variants of memory address routines.
3775         (offsettable_address_p): Rename to ...
3776         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
3777         Use address-space aware variants of memory address routines.
3778         * reload.c (strict_memory_address_p): Rename to ...
3779         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3780         Use address-space aware variants of memory address routines.
3781         (maybe_memory_address_p): Rename to ...
3782         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3783         Use address-space aware variants of memory address routines.
3784         * expr.h (memory_address_addr_space): Add prototype.
3785         (memory_address): Define as macro.
3786         * recog.h (memory_address_addr_space_p): Add prototype.
3787         (memory_address_p): Define as macro.
3788         (offsettable_address_addr_space_p): Add prototype.
3789         (offsettable_address_p): Define as macro.
3790         (strict_memory_address_addr_space_p): Add prototype.
3791         (strict_memory_address_p): Define as macro.
3792
3793         * combine.c (find_split_point): Use address-space aware variants
3794         of memory address routines.
3795         * emit-rtl.c (operand_subword): Likewise.
3796         (change_address_1): Likewise.
3797         (adjust_address_1): Likewise.
3798         (offset_address): Likewise.
3799         * expr.c (emit_move_insn): Likewise.
3800         (expand_assignment): Likewise.
3801         (expand_expr_real_1): Likewise.
3802         * recog.c (verify_changes): Likewise.
3803         (general_operand): Likewise.
3804         (offsettable_memref_p): Likewise.
3805         (offsettable_nonstrict_memref_p): Likewise.
3806         (constrain_operands): Likewise.
3807         * reload.c (get_secondary_mem): Likewise.
3808         (find_reloads_toplev): Likewise.
3809         (find_reloads_address): Likewise.
3810         (find_reloads_subreg_address): Likewise.
3811         * reload1.c (reload): Likewise.
3812         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3813         * rtl.h (address_cost): Add ADDRSPACE argument.
3814         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
3815         aware variant of memory address routines.
3816         * loop-invariant.c (create_new_invariant): Update address_cost call.
3817         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3818         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
3819         Use address-space aware variant of memory address routines.
3820         (propagate_rtx_1): Update call to should_replace_address.
3821         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
3822         argument.
3823         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
3824         ADDRSPACE argument.  Use per-address-space instead of global cache.
3825         Use address-space aware variant of memory address routines.
3826         (get_address_cost): Likewise.
3827         (get_computation_cost_at): Update calls.
3828         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
3829         Use address-space aware variant of memory address routines.
3830         (create_mem_ref_raw): Update call to valid_mem_ref_p.
3831         (most_expensive_mult_to_index): Update call to
3832         multiplier_allowed_in_address_p.
3833
3834         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
3835         attribute to indicate named address spaces.
3836
3837         * varasm.c (get_variable_section): DECLs in named address spaces
3838         cannot be "common".
3839
3840         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
3841         for addresses in a non-generic address space.
3842
3843         * expr.c (emit_block_move_hints): Do not use libcalls for
3844         memory in non-generic address spaces.
3845         (clear_storage_hints): Likewise.
3846         (expand_assignment): Likewise.
3847
3848         * fold-const.c (operand_equal_p): Expressions refering to different
3849         address spaces are not equivalent.
3850
3851         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
3852         spaces are not equivalent.
3853         (rtx_equal_p): Likewise.
3854         * cse.c (exp_equiv_p): Likewise.
3855         * jump.c (rtx_renumbered_equal_p): Likewise.
3856         * reload.c (operands_match_p): Likewise.
3857
3858         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
3859         address spaces may alias.
3860         (true_dependence): Likewise.
3861         (canon_true_dependence): Likewise.
3862         (write_dependence_p): Likewise.
3863
3864         * dse.c (canon_address): Handle named address spaces.
3865         * ifcvt.c (noce_try_cmove_arith): Likewise.
3866
3867         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
3868         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
3869         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
3870         to handle conversions between different address spaces.
3871         * fold-const.c (fold_convert_loc): Likewise.
3872         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
3873         * tree-pretty-print.c (dump_generic_node): Likewise.
3874         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
3875         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
3876         * tree-inline.c (estimate_operator_cost): Likewise.
3877         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
3878         to different address spaces are not useless.
3879
3880 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
3881
3882         PR bootstrap/41345
3883         * cfgcleanup.c (trivially_empty_bb_p): New function.
3884         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
3885
3886         PR debug/41828
3887         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
3888         add_name_and_src_coords_attributes, gen_namespace_die,
3889         dwarf2out_set_name): Handle dwarf2_name returning NULL.
3890
3891 2009-10-26  Nick Clifton  <nickc@redhat.com>
3892
3893         * config.gcc: Add support for RX target.
3894         * config/rx: New directory.
3895         * config/rx/constraints.md: New file.
3896         * config/rx/predicates.md: New file.
3897         * config/rx/rx.c: New file.
3898         * config/rx/rx.h: New file.
3899         * config/rx/rx.md: New file.
3900         * config/rx/rx.opt: New file.
3901         * config/rx/rx-protos.h: New file.
3902         * config/rx/t-rx: New file.
3903         * doc/extend.texi: Document RX function attributes.
3904         * doc/invoke.texi: Document RX specific command line options.
3905         * doc/contrib.texi: Document RX contribution.
3906         * doc/md.texi: Document RX constraints.
3907         * doc/install.texi: Document RX support.
3908
3909 2009-10-26  Michael Matz  <matz@suse.de>
3910
3911         PR tree-optimization/41783
3912         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
3913         case for simple diamonds.
3914         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
3915         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
3916         argument, use alias oracle to skip some vdefs.
3917         (phi_translate_1): Change call to above, don't allocate new
3918         value ids if they can stay the same.
3919         (compute_avail): Allow vuse walking when looking up references.
3920
3921 2009-10-26  Richard Guenther  <rguenther@suse.de>
3922
3923         PR tree-optimization/41826
3924         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
3925         access to re-allocated vector fields.
3926
3927 2009-10-26  Richard Guenther  <rguenther@suse.de>
3928
3929         * graphite-sese-to-poly.c (check_poly_representation): Fix
3930         compile without checking.
3931
3932 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
3933
3934         PR fortran/41714
3935         * gimple.h (tree_annotate_all_with_location): Remove prototype.
3936         * gimplify.c (tree_should_carry_location_p,
3937         tree_annotate_one_with_location,tree_annotate_all_with_location):
3938         Remove obsolete functions.
3939
3940 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3941
3942         PR target/41813
3943         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
3944
3945 2009-10-25  Richard Guenther  <rguenther@suse.de>
3946
3947         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3948         Stream DECL_RESTRICTED_P.
3949         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3950
3951 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
3952
3953         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
3954         a note when expanding to nothing.
3955
3956 2009-10-25  Richard Guenther  <rguenther@suse.de>
3957
3958         PR middle-end/41814
3959         * tree.c (find_decls_types_r): Deal with Java overloading
3960         BINFO_VIRTUALS for its own purpose.
3961
3962 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
3963
3964         * config/mips/predicates.md (hilo_operand): New predicate.
3965         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
3966         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
3967         splitter part from here ...:
3968         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
3969         op0 and op4 to match the DINS case.
3970         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
3971
3972 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
3973
3974         PR middle-end/19154
3975         * avr.md (QIDI): Add new mode iterator.
3976         (sbrx_branch<mode>): Create new zero extract bit, test and jump
3977         patterns for all QI thru DI modes combinations.
3978         (sbrx_and_branch<mode>): Create new and based bit test and jump
3979         patterns for QI thru SI modes.
3980         avr.c (avr_out_sbxx_branch): Use only bit number.
3981
3982 2009-10-24  Jan Hubicka  <jh@suse.cz>
3983
3984         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
3985         to memory.
3986         (analyze_function): When analyzing noreturn nothrow call, do not
3987         compute written stats; free bitmaps of vars early if possible.
3988         (generate_summary): Only update bitmaps if computed.
3989         (propagate): Only dump bitmaps if computed.
3990         (ipa_reference_read_summary): Fix pasto.
3991
3992 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3993
3994         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
3995         (aliasing_component_refs_p): ...this.  Return true if there is no
3996         common base and the base access types have the same alias set.
3997         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
3998         (indirect_refs_may_alias_p): Likewise.
3999
4000 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4001
4002         PR c/40033
4003         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
4004         a C_MAYBE_CONST_EXPR.
4005
4006 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4007
4008         PR target/41787
4009         * config/rs6000/rs6000.c (struct machine_function): Add
4010         vsx_or_altivec_used_p to record if vector types are used.
4011         (rs6000_expand_to_rtl_hook): Rename from
4012         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
4013         any vector operations, so if there are, we can set VRSAVE to
4014         non-zero when only floating point vector registers are used.
4015         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
4016         (rs6000_check_vector_mode): Inner function to check if vector
4017         types are used in the code.
4018         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
4019         vector instructions are used.
4020
4021         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
4022         Indicate that VSX registers which overlap floating point
4023         registers, can't be used across a call, since the ABI only states
4024         the scalar part of the register will be saved and restored.
4025
4026 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4027
4028         PR c/41673
4029         * alias.c (get_alias_set): Call langhook before returning 0 for
4030         types with structural equality.
4031         * c-common.c (c_common_get_alias_set): Use alias set of element
4032         type for arrays with structural comparison.
4033
4034 2009-10-23  Richard Guenther  <rguenther@suse.de>
4035
4036         PR middle-end/41805
4037         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
4038         gimple_call_nothrow_p.
4039
4040 2009-10-23  Richard Guenther  <rguenther@suse.de>
4041
4042         PR tree-optimization/41778
4043         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
4044         redundancy along a path in the CFG we want to optimize for speed
4045         is going to be removed.
4046         (execute_pre): Do partial-PRE only if the function is to be
4047         optimized for speed.
4048         (gate_pre): Do not turn off all of PRE when not optimizing a
4049         function for speed.
4050
4051 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4052
4053         * builtins.c (fold_builtin_cabs): Use validate_arg().
4054         (fold_builtin_cexp): Fix if-logic.
4055         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
4056
4057 2009-10-22  Jeff Law  <law@redhat.com>
4058
4059         * ira-lives.c (process_single_reg_class_operands): Update the
4060         hard reg costs for all the hard registers desired by the
4061         single reg class operand.
4062
4063 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4064
4065         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
4066         for rtxes that aren't handled specially.
4067
4068 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4069
4070         * rtl.h (shallow_copy_rtvec): Declare.
4071         * rtl.c (shallow_copy_rtvec): New function.
4072         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
4073         rtx field if the subrtx has changed.
4074
4075 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
4076
4077         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
4078         (m32c_function_value): Make static, add new 'outgoing' argument.
4079         (m32c_libcall_value): Make static, add new 'fun' argument.
4080         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4081         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4082         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
4083         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
4084         (m32c_function_value, m32c_libcall_value): Delete declaration.
4085
4086 2009-10-22  Diego Novillo  <dnovillo@google.com>
4087
4088         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
4089
4090 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4091
4092         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
4093         space.
4094
4095 2009-10-22  Richard Guenther  <rguenther@suse.de>
4096
4097         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
4098         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
4099         (lto_symtab_merge): Do not merge cgraph nodes here.
4100         (lto_symtab_resolve_can_prevail_p): Simplify.
4101         (lto_symtab_resolve_symbols): Store cgraph node.
4102         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
4103         functions from the symtab.
4104         (lto_symtab_merge_cgraph_nodes_1): New function.
4105         (lto_symtab_merge_cgraph_nodes): Likewise.
4106
4107 2009-10-22  Richard Guenther  <rguenther@suse.de>
4108
4109         PR lto/41791
4110         * lto-streamer-out.c (lto_output_location): Stream the
4111         system header flag.
4112         * lto-streamer-in.c (lto_input_location): Likewise.
4113
4114 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4115
4116         * cfgloopmanip.c (duplicate_subloops): Export.
4117         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
4118         (transform_to_exit_first_loop): Duplicate bbs starting from
4119         header up to loop->latch instead of exit->src.
4120         Initialize control variable to the correct number of iterations.
4121         (gather_scalar_reductions): Do not register double reductions.
4122         (parallelize_loops): Dump which loop is tested.
4123         Indicate whether the parallelized loop is inner or not.
4124         Remove the innermost-loop requirement.
4125         * cfgloop.h (duplicate_subloops): Export.
4126         * tree-cfg.c (add_phi_args_after_redirect): New function.
4127         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
4128         Call duplicate_subloops.
4129         Update number of iterations at the exit condition.
4130         Don't redirect nexits always to the loop exit.
4131         Redirect copied edges from latch to the loop exit.
4132
4133 2009-10-22  Jan Hubicka  <jh@suse.cz>
4134
4135         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
4136         flag_ltrans check.
4137         * ipa-inline.c (cgraph_mark_inline_edge,
4138         cgraph_decide_inlining_of_small_function,
4139         cgraph_decide_inlining, inline_read_summary): Disable indirect
4140         inlining for WPA for time being.
4141
4142         PR tree-optimize/40556
4143         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
4144
4145 2009-10-22  Richard Guenther  <rguenther@suse.de>
4146
4147         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
4148         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
4149
4150 2009-10-22  Jan Hubicka  <jh@suse.cz>
4151
4152         PR lto/41730
4153         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
4154         global vars.
4155         (check_call): Handle only indirect calls.
4156         (propagate_bits): Update comment.
4157         (write_node_summary_p): Turn bogus check to assert.
4158         (ipa_reference_write_summary): Stream calls_read_all properly.
4159         (ipa_reference_read_summary): Stream in calls_read_all properly.
4160         (read_write_all_from_decl): New function.
4161         (propagate): Handle OVERWRITABLE nodes and external calls here.
4162         * ipa-pre-const.c (check_call): In IPA mode handle indirect
4163         calls only.
4164         (analyze_function): Do not check visibility here.
4165         (add_new_function): We summary OVERWRITABLE too.
4166         (generate_summary): Stream OVERWRITABLE nodes too.
4167         (propagate): Handle external calls and OVERWRITABLE nodes here.
4168         (local_pure_const): Check visibility here.
4169
4170 2009-10-22  Jan Hubicka  <jh@suse.cz>
4171
4172         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
4173         (pass_ipa_cp): Register them.
4174         (ipcp_init_stage): Analyze all functions for whopr/lto.
4175         (ipcp_propagate_stage): Skip external calls.
4176         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
4177         * ipa-reference.c (write_node_summary_p): Fix thinko about
4178         availability.
4179         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
4180         when in ltrans, skip executing of ipa passes since everything
4181         should've been done.
4182         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
4183         (inline_generate_summary): Likewise.
4184         (inline_read_summary): New function.
4185         (inline_write_summary): New function.
4186         (pass_ipa_inline): Register new hooks.
4187         * ipa-prop.c: Inlcude lto-streamer.h
4188         (ipa_edge_args_vector): Update declaration.
4189         (ipa_count_arguments, ipa_compute_jump_functions,
4190         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
4191         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
4192         ipa_read_node_info): New static functions.
4193         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
4194         (duplicate_array): Use xmalloc.
4195         (duplicate_ggc_array): New.
4196         (ipa_edge_duplication_hook): Use it.
4197         (ipa_update_after_lto_read): New function.
4198         * ipa-prop.h (ipa_prop_write_jump_functions,
4199         ipa_prop_read_jump_functions): Declare.
4200         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
4201         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
4202         (ipa_edge_args_vector): Move into GGC.
4203         (ipa_check_create_edge_args): Update.
4204         (ipa_update_after_lto_read): New.
4205         * passes.c (ipa_write_summaries_1): When in wpa, do not write
4206         summaries.
4207         (ipa_read_summaries): When in ltrans, so not read summaries.
4208         * lto-streamer.c (lto_get_section_name): Add
4209         LTO_section_jump_functions.
4210         * lto-streamer.h (LTO_section_jump_functions): New section.
4211         (produce_asm): Declare.
4212         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
4213         * lto-streamer-out.c (produce_asm): Export.
4214         * lto-streamer-in.c: Include tree-pass.h
4215         (input_function): Free dominance info when done.
4216         (lto_read_body): Push ipa_inline in ltrans stage.
4217         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
4218         * Makefile.in (GTFILES): Add ipa-prop.h
4219
4220 2009-10-22  Matthias Klose  <doko@ubuntu.com>
4221
4222         * doc/install.texi: Document --enable-browser-plugin.
4223
4224 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
4225
4226         * doc/invoke.texi (fira-loop-pressure): Update default value.
4227         * opts.c (decode_options): Remove default value setting for
4228         flag_ira_loop_pressure.
4229         * config/ia64/ia64.c (ia64_override_options): Set
4230         flag_ira_loop_pressure up for -O3.
4231         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
4232
4233 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
4234
4235         PR tree-optimization/41497
4236         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
4237         chrec_dont_know if the evolution function returned by follow_ssa_edge
4238         is constant in the analyzed loop and is not compatible with the
4239         initial value before the loop.
4240         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
4241
4242 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
4243
4244         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
4245
4246 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
4247
4248         PR other/25507
4249         * doc/invoke.texi: Document -print-multi-os-directory.
4250
4251 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
4252
4253         PR c++/41313
4254         * gcc/config/darwin10.h: Use default_emit_unwind_label.
4255         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
4256         when darwin_emit_unwind_label is used.
4257
4258 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4259
4260         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
4261         order of checks.
4262
4263 2009-10-20  Richard Henderson  <rth@redhat.com>
4264
4265         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
4266         before emit_post_landing_pad.
4267
4268 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
4269
4270         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
4271         Use when calling rtx_costs.
4272         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
4273         global optimize_size.  Pass speed to mips_binary_cost.
4274
4275 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4276
4277         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
4278         of TREE_CONSTANT.
4279
4280 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
4281
4282         * rtl.h (simplify_replace_fn_rtx): Declare.
4283         (wrap_constant, unwrap_constant): Delete.
4284         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
4285         (expand_debug_expr): Don't call wrap_constant.
4286         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
4287         (auto_adjust_pair): Fold into...
4288         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
4289         Just return a new value.
4290         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
4291         otherwise use simplify_replace_rtx.
4292         * cselib.c (wrap_constant): Reinstate old definition.
4293         (cselib_expand_value_rtx_1): Don't wrap constants.
4294         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
4295         simplify_replace_rtx.
4296         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
4297         * reload1.c (reload): Skip all uses for an insn before adjusting it.
4298         Use simplify_replace_rtx.
4299         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
4300         adapted from...
4301         (simplify_replace_rtx): ...here.  Turn into a wrapper for
4302         simplify_replace_fn_rtx.
4303         (simplify_unary_operation): Don't unwrap CONSTs.
4304         * var-tracking.c (check_wrap_constant): Delete.
4305         (vt_expand_loc_callback): Don't call it.
4306         (vt_expand_loc): Likewise.
4307
4308 2009-10-20  Pascal Obry  <obry@adacore.com>
4309             Eric Botcazou  <ebotcazou@adacore.com>
4310
4311         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
4312
4313 2009-10-20  Michael Matz  <matz@suse.de>
4314
4315         * loop-invariant.c (create_new_invariant): Use different magic number.
4316
4317 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
4318
4319         PR target/39247
4320         * arm.c (arm_override_options): Forcibly disable hot/cold block
4321         partitioning.
4322
4323 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4324
4325         PR debug/41739
4326         * haifa-sched.c (try_ready): Skip debug deps updating speculation
4327         status.
4328
4329 2009-10-20  Richard Guenther  <rguenther@suse.de>
4330
4331         * ggc-page.c: Include cfgloop.h.
4332         (struct max_alignment): Drop long double, add void *.
4333         (extra_order_size_table): Add low non-power-of-two multiples
4334         of MAX_ALIGNMENT.  Drop small type-based entries, add
4335         tree_type, cgraph_node and loop.
4336         * alloc-pool.c (struct allocation_object_def): Drop long double
4337         aligning element.
4338
4339 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4340
4341         PR debug/41340
4342         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
4343         referenced just in DEBUG_INSNs.
4344
4345 2009-10-20  Richard Guenther  <rguenther@suse.de>
4346
4347         PR lto/41761
4348         * gimple.c (gimple_register_type): Make sure we register
4349         the types main variant first.
4350
4351 2009-10-20  Richard Guenther  <rguenther@suse.de>
4352
4353         * gimple.c (gimple_types_compatible_p): Simplify.  Move
4354         cheap checks before hashtable queries.  Add checks for
4355         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
4356
4357 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4358
4359         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
4360         without size or with size that can't be represented as a host integer.
4361
4362 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4363
4364         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
4365         the removal of a debug stmt as a significant change.
4366
4367 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
4368
4369         * config/s390/s390.md: Added agen condition to operand
4370         forwarding bypasses.  Added bypass for early address generation
4371         use of int results.  Updated comments.
4372
4373 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
4374
4375         * config/i386/i386.c: Remove signal.h #include.
4376
4377 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
4378
4379         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
4380         * doc/rtl.texi: Document ss_abs.
4381
4382 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4383
4384         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
4385         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
4386         instead of C_LEX_RAW_STRINGS.
4387         (lex_string): Handle CPP_UTF8STRING.
4388         * c-parser.c (c_parser_postfix_expression): Likewise.
4389         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
4390         (C_LEX_STRING_NO_JOIN): ... this.
4391
4392 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
4393
4394         * config/cris/cris.c (cris_function_value, cris_libcall_value,
4395         cris_function_value_regno_p): New functions.
4396         (cris_promote_function_mode): Update comment.
4397         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4398         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4399         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
4400         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
4401
4402 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4403
4404         * unwind-dw2.c (execute_stack_op): Fix operand order for
4405         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
4406
4407 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4408
4409         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
4410         (lower_stmt) <GIMPLE_BIND>: Add comment.
4411         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
4412         and return.
4413         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
4414         Otherwise lower it and set cannot_fallthru to true.
4415         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
4416         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
4417         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
4418         to true for a noreturn call.  Do not remove statements.
4419         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
4420         Set cannot_fallthru to false on function exit.
4421         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
4422         <GIMPLE_ASSIGN>: Remove.
4423
4424 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4425
4426         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
4427
4428 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4429
4430         * config/s390/s390.c (s390_z10_optimize_cmp): Use
4431         next/prev_active_insn to skip DEBUG_INSNs as well.
4432
4433 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
4434
4435         * config/arm/arm.c (output_move_neon): Use DImode in call to
4436         adjust_address.
4437
4438 2009-10-19  Matthias Klose  <doko@ubuntu.com>
4439
4440         PR target/40134
4441         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
4442
4443 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4444
4445         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
4446
4447 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4448
4449         PR middle-end/41738
4450         * optabs.c (expand_binop): Make mode of shift count expression mode
4451         of shift count not target.
4452         Remove indent nit.
4453
4454 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4455
4456         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
4457         case.  Force using values to replace references within the statement.
4458         (convert_local_reference_stmt): Likewise.
4459
4460 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4461
4462         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
4463         remove a subsequent GOTO or RETURN statement.
4464
4465 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
4466
4467         * config/avr.md (*movqi): Add zero as equally preferable constraint
4468         as general register.
4469         (*movhi): Ditto.
4470
4471 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4472
4473         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
4474
4475 2009-10-17  Richard Guenther  <rguenther@suse.de>
4476
4477         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
4478
4479 2009-10-17  Richard Guenther  <rguenther@suse.de>
4480
4481         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
4482         operands in COMPONENT_REFs.
4483
4484 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
4485
4486         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
4487         if not defined. Change type of second argument to const_rtx.
4488         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
4489         macro not defined.
4490         * targhooks.h (default_libcall_value): Update prototype.
4491         * target.h (struct gcc_target): Change type of second argument of
4492         libcall_value to const_rtx.
4493         * config/arm/arm.c (arm_libcall_value): Change type of second argument
4494         to const_rtx.
4495         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
4496         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
4497
4498 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
4499
4500         PR debug/40521
4501         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
4502         * cgraphunit.c (cgraph_optimize): Call it.
4503         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
4504         (dwarf2out_assembly_start): ... here.  New hook.
4505         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
4506         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
4507         hook.
4508         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4509         * sdbout.c (sdb_debug_hooks): Likewise.
4510         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
4511         (vmsdbgout_assembly_start): New hook.
4512
4513 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4514
4515         * rtl.h (RTL_LOCATION): Fix typo.
4516
4517 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4518
4519         * print-rtl.c (print_rtx): Print locators in asm_operands
4520         and asm_input.
4521
4522 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4523
4524         PR debug/41535
4525         * sched-deps.c (depl_on_debug_p): New.
4526         (attach_dep_link): Reject debug deps before nondebug deps.
4527         (add_to_deps_list): Insert debug deps after nondebug deps.
4528         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
4529         deps.
4530         (sd_add_dep): Do not reject debug deps.
4531         (add_insn_mem_dependence): Don't count debug deps.
4532         (remove_from_deps): Likewise.
4533         (sched_analyze_2): Set up mem deps on debug insns.
4534         (sched_analyze_insn): Record reg uses for deps on debug insns.
4535         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
4536         try_ready nondebug insn after debug insn.
4537         * ddg.c (create_ddg_dep_from_intra_loop_link,
4538         create_ddg_dep_no_link): Don't reject debug deps.
4539
4540 2009-10-16  Richard Guenther  <rguenther@suse.de>
4541
4542         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
4543         (maybe_merge_incomplete_and_complete_type): Likewise.
4544         (lto_symtab_merge): Do not call them.  Do not warn for
4545         complete vs. incomplete compatible types.
4546         (lto_symtab_merge_decls_2): Simplify.
4547         * gimple.c (gimple_force_type_merge): Remove.
4548         (gimple_types_compatible_p): Make it static.
4549         * gimple.h (gimple_force_type_merge): Remove.
4550         (gimple_types_compatible_p): Likewise.
4551
4552 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
4553
4554         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
4555         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
4556
4557 2009-10-16  Richard Guenther  <rguenther@suse.de>
4558
4559         PR tree-optimization/41728
4560         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
4561         if fold_stmt did anything.
4562
4563 2009-10-16  Richard Guenther  <rguenther@suse.de>
4564
4565         PR lto/41715
4566         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
4567         (maybe_fixup_handled_component): New function.
4568         (input_gimple_stmt): Fixup mismatched decl replacements.
4569
4570 2009-10-16  Richard Guenther  <rguenther@suse.de>
4571
4572         PR lto/41713
4573         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
4574         the same as VAR_DECL.
4575
4576 2009-10-16  Richard Guenther  <rguenther@suse.de>
4577
4578         * gimple.c (iterative_hash_gimple_type): For integer types
4579         also hash their minimum and maximum values and the string flag.
4580         For array types hash their domain and the string flag.
4581
4582 2009-10-16  Richard Guenther  <rguenther@suse.de>
4583
4584         * gimple.c (gimple_types_compatible_p): Restrict completing
4585         types to record or unions.  Simplify completion.
4586         Do not merge records or unions with different
4587         TYPE_STRUCTURAL_EQUALITY_P tag.
4588         (iterative_hash_gimple_type): Restrict non-recursing into
4589         pointer targets for records and unions.
4590
4591 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4592
4593         PR debug/41717
4594         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
4595         * dwarf2out.c (mem_loc_descriptor): Don't handle
4596         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
4597         punt if it is not lowpart subreg or if inner mode isn't
4598         MODE_INT.
4599
4600 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4601
4602         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
4603         investigating previous or next insns.
4604
4605 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4606
4607         * tree-sra.c (build_ref_for_offset_1): Update comment.
4608
4609 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
4610
4611         * config/s390/s390.md (atype): Added missing values.
4612
4613 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4614
4615         PR target/41702
4616         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
4617         (casesi64p): Update pattern to reflect above.
4618
4619 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
4620
4621         PR rtl-optimization/41697
4622         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
4623
4624 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4625
4626         PR target/23983
4627         * config/rs6000/predicates.md: Update copyright year.
4628         * config/rs6000/altivec.md: Ditto.
4629
4630         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
4631         (MD_INCLUDES): Add a2.md.
4632
4633         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
4634         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
4635         (builtin_classify): New static vector to classify various builtins
4636         to get the tree attributes correct.
4637         (def_builtin): Set the attributes of builtins based on what the
4638         builtin does (i.e. memory operation, floating point, saturation
4639         need special attributes, others are pure functions).
4640
4641         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
4642         the builtins.
4643         (enum rs6000_builtins): Include rs6000-builtin.def to define the
4644         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
4645         RS6000_BUILTIN_COUNT.
4646         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
4647         MAX_RS6000_BUILTINS.
4648
4649         * config/rs6000/rs6000-builtin.def: New file that combines the
4650         builtin enumeration name and attributes.
4651
4652 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4653
4654         * config/i386/linux.h (ASM_SPEC): Add --32.
4655
4656 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4657
4658         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
4659         and DW_TAG_template_alias.
4660         (dwarf_attr_name): Handle DW_AT_main_subprogram,
4661         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
4662         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
4663         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
4664         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
4665         and DW_AT_GNU_odr_signature.
4666         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
4667         DW_FORM_flag_present and DW_FORM_ref_sig8.
4668         (output_signature): Only print name on the first byte.
4669         (output_die): Likewise for dw_val_class_data8.
4670
4671 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
4672
4673         * doc/invoke.texi: Clarify that most optimizations are not enabled
4674         without -O.
4675
4676 2009-10-15  Richard Guenther  <rguenther@suse.de>
4677
4678         PR lto/41668
4679         * gimple.c (compare_type_names_p): Handle anonymous names
4680         differently based on new mode argument.
4681         (gimple_types_compatible_p): For structs also compare the tags.
4682         (iterative_hash_type_name): Rename to ...
4683         (iterative_hash_name): ... this.  Hash all names.
4684         (iterative_hash_gimple_type): Fix hashing the struct tag of
4685         pointer targets.  Hash field decl names.
4686
4687 2009-10-15  Richard Guenther  <rguenther@suse.de>
4688
4689         PR lto/41669
4690         * gimple.c (gimple_get_alias_set): Avoid recursing on
4691         invalid type topology.
4692
4693 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4694
4695         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
4696
4697 2009-10-15  Richard Guenther  <rguenther@suse.de>
4698
4699         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
4700
4701 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4702
4703         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
4704         add --with-tune{,-32,-64} configured default for -mtune if explicit
4705         -mcpu is used.
4706
4707 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
4708
4709         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
4710
4711 2009-10-14  DJ Delorie  <dj@redhat.com>
4712
4713         * config/h8300/h8300.c (F): New.
4714         (Fpa): New.
4715         (h8300_emit_stack_adjustment): Call them.
4716         (push): Likewise.
4717         (h8300_push_pop): Likewise.
4718         (h8300_expand_prologue): Likewise.
4719         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
4720         (MUST_USE_SJLJ_EXCEPTIONS): Define.
4721         (INCOMING_RETURN_ADDR_RTX): Define.
4722         (INCOMING_FRAME_SP_OFFSET): Define.
4723         (DWARF_CIE_DATA_ALIGNMENT): Define.
4724
4725 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4726
4727         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
4728         fields in builtin structs.
4729         (finalize_record_size): Likewise.
4730
4731 2009-10-14  Richard Guenther  <rguenther@suse.de>
4732
4733         * gimple.c (gtc_ob): New global.
4734         (struct type_pair_d): Replace pointers with type UIDs.
4735         (type_pair_hash): Adjust.
4736         (type_pair_eq): Likewise.
4737         (lookup_type_pair): Likewise.  Allocate from an obstack.
4738         (gimple_force_type_merge): Adjust.
4739         (gimple_types_compatible_p): Likewise.
4740         (free_gimple_type_tables): Free the obstack.
4741
4742 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4743
4744         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
4745         stmts setting DEBUG_EXPR_DECLs.
4746
4747         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
4748         Don't crash if mode1 is VOIDmode.
4749
4750 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
4751
4752         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
4753         * params.h (IRA_LOOP_RESERVED_REGS): New.
4754         * tree-pass.h (pass_subregs_of_mode_init,
4755         pass_subregs_of_mode_finish): Remove.
4756         * passes.c (pass_subregs_of_mode_init,
4757         pass_subregs_of_mode_finish): Remove.
4758         (pass_reginfo_init): Move before loop optimizations.
4759         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
4760         * common.opt (fira-loop-pressure): New.
4761         * toplev.h (flag_ira_loop_pressure): New.
4762         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
4763         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
4764         Make external and void type functions.
4765         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
4766         pass_subregs_of_mode_finish): Remove.
4767         * ira-costs.c (init_costs): Call init_subregs_of_mode.
4768         * regmove.c: Include ira.h.
4769         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
4770         register pressure calculation in loops.
4771         * loop-invariant.c: Include REGS_H and ira.h.
4772         (struct loop_data): New members max_reg_pressure, regs_ref, and
4773         regs_live.
4774         (struct invariant): New member orig_regno.
4775         (curr_loop): New variable.
4776         (find_exits): Initialize regs_ref and regs_live.
4777         (create_new_invariant): Initialize orig_regno.
4778         (get_cover_class_and_nregs): New.
4779         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
4780         array.  Add code for flag_ira_loop_pressure.
4781         (gain_for_invariant): Make new_regs an array.  Add code for
4782         flag_ira_loop_pressure.
4783         (best_gain_for_invariant): Ditto.
4784         (set_move_mark): New parameter gain.  Use it for debugging output.
4785         (find_invariants_to_move): Make regs_needed and new_regs an array.
4786         Add code for flag_ira_loop_pressure.
4787         (move_invariant_reg): Set up orig_regno.
4788         (move_invariants): Set up reg classes for pseudos for
4789         flag_ira_loop_pressure.
4790         (free_loop_data): Clear regs_ref and regs_live.
4791         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
4792         get_regno_cover_class, change_pressure, mark_regno_live,
4793         mark_regno_death, mark_reg_store, mark_reg_clobber,
4794         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
4795         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
4796         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
4797         register pressure calculation in loops if new regs were added.
4798         Call finish_subregs_of_mode.
4799         * opts.c (decode_options): Set up flag_ira_loop_pressure.
4800         * Makefile.in (loop-invariant.o): Add ira.h.
4801         (regmove.o): Ditto.
4802         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
4803         Describe.
4804         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
4805
4806 2009-10-14  Richard Guenther  <rguenther@suse.de>
4807
4808         * lto-symtab.c (lto_symtab_compatible): Fold in ...
4809         (lto_symtab_merge): ... here.  Rewrite both to take the
4810         prevailing and a to-be-merged entry and to queue diagnostics properly.
4811         (lto_symtab_resolve_replaceable_p): New predicate for
4812         symbol resolution.
4813         (lto_symtab_resolve_can_prevail_p): Likewise.
4814         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
4815         handles merging commons by choosing the largest decl.  Fold
4816         in code that gives ODR errors.
4817         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
4818         diagnostics here.
4819         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
4820         case of no prevailing decl here.  Diagnose mismatches
4821         in object types here.  Drop all but the prevailing decls.
4822         (lto_symtab_prevailing_decl): Return the single prevailing decl.
4823         * lto-streamer-in.c (lto_input_tree_ref): Deal with
4824         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
4825
4826 2009-10-14  Richard Guenther  <rguenther@suse.de>
4827
4828         PR lto/41521
4829         * lto-streamer-in.c (input_bb): Replace debug stmts with
4830         nops instead of dropping them.
4831
4832 2009-10-14  Nick Clifton  <nickc@redhat.com>
4833
4834         * gcc/doc/extended.texi: Replace the dash character with @minus{}
4835         in situations where it is being used as a minus symbol.
4836         * gcc/doc/tm.texi: Likewise.
4837         * gcc/doc/md.texi: Likewise.
4838
4839 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4840
4841         PR preprocessor/41543
4842         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
4843         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
4844         * tree.c: Include intl.h.
4845         (expand_location): Handle BUILTINS_LOCATION.
4846         * Makefile.in (tree.o): Depend on intl.h.
4847
4848         PR debug/41695
4849         * dwarf2out.c (dwarf2out_var_location): Always clear
4850         last_postcall_label when changing last_label.
4851
4852 2009-10-14  Pascal Obry  <obry@adacore.com>
4853
4854         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
4855         (process_command): Handle -E as done with -c and -S.  Do not add
4856         the target executable suffix to the output file when -E is used.
4857         (main): Adjust error message accordingly.
4858
4859 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
4860
4861         PR debug/41343
4862         PR debug/41447
4863         PR debug/41264
4864         PR debug/41338
4865         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
4866         decl with rtl.
4867         (tree_code_size): Likewise.
4868
4869 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4870
4871         * builtins.c (fold_builtin_1): Support complex "arc" functions.
4872         * real.h (HAVE_mpc_arc): Define.
4873
4874 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
4875
4876         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
4877         (struct builtin_description): Add fndecl field.
4878         (bdesc): Remove const qualifier.  Update initializer.
4879         (sh_media_init_builtins): Remove const qualifier for d.  Record
4880         the result of add_builtin_function to the fndecl field.
4881         (sh_builtin_decl): New.
4882         (sh_media_builtin_decl): New.
4883
4884 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
4885
4886         PR target/38948
4887         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
4888         requests between special registers.
4889
4890 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4891
4892         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
4893
4894 2009-10-13  Richard Henderson  <rth@redhat.com>
4895
4896         PR tree-optimization/41377
4897         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
4898         (cleanup_empty_eh_merge_phis): New change_region parameter;
4899         pass it on to redirect_eh_edge_1.  Update callers.
4900         (cleanup_empty_eh_unsplit): Don't require an existing EH label
4901         at the destination block.
4902
4903 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
4904
4905         * passes.c (register_pass): Replaced gcc_unreachable by
4906         fatal_error on failure. Mentions plugins in comments & messages.
4907
4908 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
4909
4910         PR target/41693
4911         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
4912         * sched-vis.c (print_value): Use it.
4913         * cselib.c (cselib_hash_rtx): Likewise.
4914         * print-rtl.c (print_rtx): Likewise.
4915         * cfgexpand.c (expand_debug_rtx): Likewise.
4916         * var-tracking.c (vt_expand_loc_callback): Likewise.
4917
4918 2009-10-13  Richard Guenther  <rguenther@suse.de>
4919
4920         PR lto/41565
4921         * opts.c (handle_option): Split out code to handle setting
4922         the options flag var ...
4923         (set_option): ... here.
4924         * opts.h (set_option): Declare.
4925         * lto-opts.c (register_user_option_p): Include -fexceptions
4926         and all position independent code variants.
4927         (handle_common_option): Remove.
4928         (lto_reissue_options): Use set_option.
4929
4930 2009-10-13  Martin Jambor  <mjambor@suse.cz>
4931
4932         PR tree-optimization/41661
4933         * ipa-prop.c (compute_complex_pass_through): Allow only operations
4934         that are tcc_comparisons or do not change the type in any
4935         un-usleless way.
4936         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
4937         folding tcc_comparison operations.
4938
4939 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4940
4941         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
4942         properly.
4943
4944 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
4945
4946         PR debug/41343
4947         PR debug/41447
4948         PR debug/41264
4949         PR debug/41338
4950         * tree.def (DEBUG_EXPR_DECL): New.
4951         * rtl.def (DEBUG_EXPR): New.
4952         * gengtype.c (adjust_field_rtx_def): Handle it.
4953         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
4954         (insert_debug_temp_for_var_def): ... this.  Drop support for
4955         moving.  Take iterator for def stmt; insert debug stmt before it.
4956         Scan early for use count and kind in debug stmts.
4957         (propagate_defs_into_debug_stmts): Rename to...
4958         (insert_debug_temps_for_defs): ... this.  Likewise.
4959         * tree.h (DEBUG_TEMP_UID): New.
4960         * tree.c (next_debug_decl_uid): New.
4961         (make_node_stat): Count debug decls separately.
4962         (copy_node_stat): Likewise.
4963         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
4964         * var-tracking.c (dv_is_decl_p): Recognize it.
4965         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
4966         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
4967         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
4968         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
4969         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
4970         (cselib_hash_rtx): Likewise.
4971         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
4972         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
4973         debug bind stmts.
4974         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
4975         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
4976         * rtl.c (copy_rtx): Likewise.
4977         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
4978         * print-rtl.c (print_rtx): Likewise.
4979         * sched-vis.c (print_value): Likewise.
4980         (print_insn): Handle DEBUG_EXPR_DECL.
4981         * tree-dump.c (dequeue_and_dump): Likewise.
4982         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
4983         * gimple-iterator (gsi_replace): Check for same lhs.
4984         (gsi_remove): Insert debug temps.
4985         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
4986         (move_computations_stmt): Drop explicit propagation into debug stmts.
4987         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
4988         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
4989         * tree-ssa-sink.c (statement_sink_location): Likewise.
4990         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
4991         * tree-ssanames.c (release_ssa_name): Adjust for rename.
4992         * tree-flow.h: Likewise.
4993         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
4994         debug temps without values.
4995         (eliminate_unnecessary_stmts): Don't discard just-inserted
4996         debug stmts.
4997
4998 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
4999
5000         PR target/26515
5001         * config/cris/cris.md (andu): Check that operand 1 is one of the
5002         general registers.  Fix typo in head comment.
5003
5004 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
5005
5006         * config/i386/i386.md (vswapmov): New.
5007         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
5008         (ix86_function_ms_hook_prologue): New.
5009         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
5010         * configure.ac: Test for swap suffix support in as.
5011         * configure: Rebuild.
5012
5013 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
5014
5015         PR target/41680
5016         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
5017         paradoxical subregs to prevent partial register stalls if the inner
5018         mode is integer mode.
5019
5020 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5021
5022         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
5023
5024 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
5025
5026         PR c++/41570
5027         * gcc/dwarf2out.c (template_parameter_pack_die,
5028         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
5029
5030 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
5031
5032         PR debug/41616
5033         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
5034         on updates too.
5035         (maybe_register_def): Likewise.  Take stmt iterator.
5036         (rewrite_update_stmt): Take stmt iterator and pass it on.
5037         (rewrite_update_enter_block): Pass stmt iterator.
5038
5039 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5040
5041         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
5042         (spu_builtin_decl): New function.
5043
5044 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5045
5046         * config/i386/i386.md (SWIM): New mode iterator.
5047         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
5048         using SWIM mode iterator.
5049         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
5050         patterns using SWI48 mode iterator.
5051         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
5052         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
5053         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
5054         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
5055         patterns using SWI248 mode iterator.
5056         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
5057         gen_x86_movdicc_0_m1_rex64 for renamed function
5058
5059 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
5060             Eric Botcazou  <ebotcazou@adacore.com>
5061
5062         PR target/33743
5063         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
5064         * config/sparc/sol2-unwind.h: New file.
5065
5066 2009-10-11  Olivier Hainque  <hainque@adacore.com>
5067             Eric Botcazou  <ebotcazou@adacore.com>
5068
5069         PR target/33743
5070         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
5071         * config/i386/sol2-unwind.h: New file.
5072
5073 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5074
5075         PR target/41665
5076         * config/i386/i386.md (addsi_1_zext): Get the proper second
5077         operand for lea.
5078
5079 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
5080
5081         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
5082         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
5083         replacement value.
5084
5085 2009-10-11  Richard Guenther  <rguenther@suse.de>
5086
5087         * gimple.c (iterative_hash_type_name): Do not handle special
5088         anonymous names.
5089
5090 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
5091
5092         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
5093         (*setcc_si_1_and): Ditto.
5094         (*setcc_si_1_movzbl): Ditto.
5095         (*setcc_<mode>_2): Ditto.
5096         (*setcc_qi): Rename from *setcc_1.
5097         (*setcc_qi_slp): Rename from *setcc_2.
5098
5099         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
5100         (*zero_extendqisi2_movzbw_and splitter): Ditto.
5101
5102         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
5103         "if" condition, there is already assert with reload_completed present.
5104
5105 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
5106
5107         * plugin.c (try_init_one_plugin): Improve constness of variable err.
5108
5109 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
5110
5111         * doc/install.texi (Final install): Refer to
5112         http://gcc.gnu.org/bugs/ for bug reporting.
5113
5114 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
5115
5116         * configure.ac: Add test for dci instruction.
5117         * configure: Regenerate.
5118         * config.in: Likewise.
5119         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
5120         * doc/invoke.texi: Add cpu_type 476 and 476fp.
5121         (-mmulhw): Add 476 to description.
5122         (-mdlmzb): Likewise.
5123         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
5124         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
5125         (processor_target_table): Add 476 and 476fp entries.
5126         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
5127         (rs6000_issue_rate): Add CPU_PPC476.
5128         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
5129         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
5130         (processor_type): Add PROCESSOR_PPC476.
5131         (EXTRA_SPECS): Add asm_cpu_476 string.
5132         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
5133         (define_attr "cpu"): Add ppc476.
5134         Include 476.md.
5135         Update comments for 476.
5136         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
5137         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
5138         Update copyright year.
5139         * config/rs6000/476.md: New file.
5140         * config/rs6000/40x.md: Add description for "isel" attribute.
5141         Update copyright year.
5142         * config/rs6000/440.md: Likewise.
5143         * config/rs6000/603.md: Likewise.
5144         * config/rs6000/6xx.md: Likewise.
5145         * config/rs6000/7450.md: Likewise.
5146         * config/rs6000/7xx.md: Likewise.
5147         * config/rs6000/8540.md: Likewise.
5148         * config/rs6000/cell.md: Likewise.
5149         * config/rs6000/e300c2c3.md: Likewise.
5150         * config/rs6000/e500mc.md: Likewise.
5151         * config/rs6000/mpc.md: Likewise.
5152         * config/rs6000/power4.md: Likewise.
5153         * config/rs6000/power5.md: Likewise.
5154         * config/rs6000/power6.md: Likewise.
5155         * config/rs6000/power7.md: Likewise.
5156         * config/rs6000/rios1.md: Likewise.
5157         * config/rs6000/rios2.md: Likewise.
5158         * config/rs6000/rs64.md: Likewise.
5159
5160 2009-10-10  Richard Guenther  <rguenther@suse.de>
5161
5162         PR tree-optimization/41654
5163         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
5164         a cond expr before calling gimple_cond_set_condition_from_tree.
5165         (ifcombine_iforif): Likewise.
5166
5167 2009-10-09  Ian Lance Taylor  <iant@google.com>
5168
5169         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
5170         * configure: Rebuild.
5171
5172 2009-10-09  Neil Vachharajani <nvachhar@google.com>
5173
5174         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
5175         deprecated.
5176
5177 2009-10-09  Richard Guenther  <rguenther@suse.de>
5178
5179         PR lto/41638
5180         * target-def.h (TARGET_BUILTIN_DECL): Define.
5181         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
5182         * target.h (struct gcc_target): Add builtin_decl target hook.
5183         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
5184         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
5185         target builtins.
5186         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
5187         not gcc_unreachable.
5188         (lto_output_builtin_tree): Sorry if the target does not support
5189         streaming target builtins.
5190         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
5191         (rs6000_builtin_decl): New function.
5192         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
5193         (ix86_builtin_decl): New function.
5194
5195 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
5196
5197         PR preprocessor/41445
5198         * c-ppoutput.c (do_line_change): New function.
5199         (cb_line_change): Use it.
5200         (scan_translation_unit): Call do_line_change if
5201         avoid_paste or PREV_WHITE and token location is on a different line
5202         than print.src_line.
5203
5204         PR debug/40521
5205         * dwarf2out.c (dwarf2out_init): Test whether
5206         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
5207         it is defined.
5208
5209         PR rtl-optimization/41646
5210         * calls.c (expand_call): For BLKmode types returned in registers
5211         avoid likely spilled hard regs in copy_blkmode_from_reg generated
5212         insns.
5213
5214 2009-10-09  Richard Guenther  <rguenther@suse.de>
5215
5216         PR tree-optimization/41634
5217         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
5218         we remove the correct elements.
5219         (optimize_stmt): Make sure to update stmt operands before
5220         optimizing redundancies.
5221
5222 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5223
5224         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
5225
5226 2009-10-09  Richard Guenther  <rguenther@suse.de>
5227
5228         PR driver/41637
5229         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
5230         globals.
5231         (lto_wrapper_exit): New function.
5232         (fatal): Use it.
5233         (fatal_perror): Likewise.
5234         (fork_execute): Use global args_name, do not free it.
5235         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
5236         * lto-streamer.h: Remove duplicate prototypes.
5237
5238 2009-10-09  Richard Guenther  <rguenther@suse.de>
5239
5240         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
5241         before calling stmt_can_throw_external.
5242
5243 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5244
5245         PR tree-optimization/40071
5246         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
5247         pointer if the original data reference doesn't conflict with the
5248         created vector data reference.  Fix long line.
5249
5250 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
5251
5252         * config/i386/i386.md (any_div): New code iterator.
5253         (u): Handle div and udiv.
5254         (sgnprefix): Ditto.
5255         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
5256         code iterator.
5257         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
5258         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
5259         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
5260         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
5261
5262 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
5263
5264         * gcc.c (main): Remove trailing "." from diagnostics.
5265
5266 2009-10-08  Cary Coutant  <ccoutant@google.com>
5267
5268         Add support for debugging with ICF (Identical Code Folding).
5269         * calls.c (debug.h): New #include.
5270         (emit_call_1): Call virtual_call_token debug hook.
5271         * common.opt (-fenable-icf-debug): New option.
5272         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
5273         locations in the source).
5274         (poc_label_num): New variable.
5275         (dcall_entry, vcall_entry): New typedefs.
5276         (dcall_table, vcall_table): New variables.
5277         (struct vcall_insn): New type.
5278         (vcall_insn_table): New variable.
5279         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
5280         (size_of_dcall_table): New function.
5281         (output_dcall_table): New function.
5282         (size_of_vcall_table): New function.
5283         (output_vcall_table): New function.
5284         (dwarf2out_direct_call): New function.
5285         (vcall_insn_table_hash): New function.
5286         (vcall_insn_table_eq): New function.
5287         (dwarf2out_virtual_call_token): New function.
5288         (dwarf2out_virtual_call): New function.
5289         (dwarf2out_init): Allocate new tables and sections.
5290         (prune_unused_types): Mark DIEs referenced from direct call table.
5291         (dwarf2out_finish): Output direct and virtual call tables.
5292         * final.c (final_scan_insn): Call direct_call and virtual_call
5293         debug hooks.
5294         * debug.h (struct gcc_debug_hooks): Add direct_call,
5295         virtual_call_token, virtual_call hooks.
5296         (debug_nothing_uid): New function.
5297         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
5298         (debug_nothing_uid): New function.
5299         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
5300         (xcoff_debug_hooks): Likewise.
5301         * sdbout.c (sdb_debug_hooks): Likewise.
5302         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5303         * doc/invoke.texi (-fenable-icf-debug): New option.
5304
5305 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
5306
5307         PR debug/41353
5308         * regmove.c (regmove_backward_pass): Replace src with dst in the
5309         debug insn, and check for dst before rather than after.
5310
5311 2009-10-08  Janis Johnson <janis187@us.ibm.com>
5312
5313         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
5314         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
5315
5316 2009-10-08  Jan Hubicka  <jh@suse.cz>
5317
5318         PR middle-end/41626
5319         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
5320         do not mark cgraph nodes as needed.
5321         (record_references_in_initializer): Add new only_vars parameter.
5322         * cgraph.h (record_references_in_initializer): New parameter.
5323         * varasm.c (assemble_variable): Update call.
5324         * varpool.c (varpool_analyze_pending_decls): Always look for
5325         referenced vars.
5326
5327 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
5328
5329         * config/avr/avr.c (last_insn_address) Remove variable.
5330         (expand_prologue): Don't initialise last_insn_address variable.
5331         (final_prescan_insn): Don't output insn size.
5332         * config/avr/avr.opt (msize): Remove switch.
5333         * doc/invoke.texi (AVR Options): Remove documentation of -msize
5334         switch.
5335
5336 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
5337
5338         * combine.c (label_tick_ebb_start): Fix comment.
5339         (combine_instructions): Set label_tick and label_tick_ebb_start before
5340         calling setup_incoming_promotions.  Start them from 1.  Increment
5341         label_tick instead of deriving it from the BB index.  Rather than
5342         comparing ticks use the block from the previous iteration to decide
5343         whether to start a new EBB.  Remove empty lines before function.
5344
5345 2009-10-08  Michael Matz  <matz@suse.de>
5346
5347         PR middle-end/41573
5348         * builtins.c (fold_builtin_isascii): Use fold_build2.
5349         (fold_builtin_isdigit): Ditto.
5350         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
5351         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
5352         remove_useless_stmts_cond, remove_useless_stmts_tf,
5353         remove_useless_stmts_tc, remove_useless_stmts_bind,
5354         remove_useless_stmts_goto, remove_useless_stmts_label,
5355         remove_useless_stmts_1, remove_useless_stmts,
5356         pass_remove_useless_stmts): Remove.
5357         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
5358         * passes.c (init_optimization_passes): Don't add
5359         pass_remove_useless_stmts.
5360         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
5361         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
5362         static constants.
5363         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
5364         for static constants.
5365         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
5366         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
5367
5368 2009-10-08  Richard Guenther  <rguenther@suse.de>
5369
5370         * gimple.c (free_gimple_type_tables): New function.
5371         * gimple.h (free_gimple_type_tables): Declare.
5372
5373 2009-10-07  Mark Heffernan  <meheff@google.com>
5374
5375         * ipa-prop.c (ipa_print_node_params) Only print
5376         names of named arguments.
5377
5378 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
5379
5380         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
5381         being statically linked.
5382
5383 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5384
5385         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
5386
5387 2009-10-08  Jan Hubicka  <jh@suse.cz>
5388
5389         PR bootstrap/41620
5390         * ipa.c (cgraph_externally_visible_p,
5391         function_and_variable_visibility,
5392         whole_program_function_and_variable_visibility): Skip non-finalized
5393         nodes.
5394
5395 2009-10-08  Nick Clifton  <nickc@redhat.com>
5396
5397         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
5398         CONST_DOUBLEs.
5399
5400 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
5401
5402         PR bootstrap/37739
5403         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
5404
5405 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
5406
5407         PR c/41182
5408         * c-common.c (c_fully_fold_internal): Strip nops from the result
5409         of recursive calls to c_fully_fold_internal.
5410         (c_wrap_maybe_const): New.
5411         (c_save_expr): Use c_wrap_maybe_const.
5412         * c-common.h (c_wrap_maybe_const): Declare.
5413         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
5414         build_binary_op): Use c_wrap_maybe_const.
5415
5416 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5417
5418         * real.c: Fix comment to reflect actual exponent size.
5419
5420 2009-10-08  Ben Elliston  <bje@au.ibm.com>
5421
5422         * config/rs6000/a2.md: Add FSF comment header.
5423
5424 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
5425
5426         * config/i386/i386.md (any_extend): New code iterator.
5427         (u, s): New code attributes.
5428         (sgnprefix): Ditto.
5429         (DWIH): Rewrite as code iterator for SI and DI modes.
5430         (DWI): Rewrite as mode attribute.
5431         (dwi): New mode attribute.
5432         (di): Depend on SI mode and DI mode.
5433         (doubleint_general_operand): Remove mode attribute.
5434
5435         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
5436         DWIH mode iterator.
5437
5438         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
5439         (*sub<mode>3_doubleword): Ditto.
5440
5441         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
5442         using SWIM248 mode iterator.
5443         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
5444         using SWI48 mode iterator.
5445         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
5446         patterns using DWIH mode iterator and any_extend code iterator.
5447         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
5448         using any_extend code iterator.
5449         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
5450         patterns using DWIH mode iterator and any_extend code iterator.
5451         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
5452         using any_extend code iterator.
5453         (<s>mul<mode>3_highpart): Macroize expander from
5454         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
5455         and any_extend code iterator.
5456         (*<s>muldi3_highpart_1): Macroize insn from
5457         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
5458         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
5459         patterns using any_extend code iterator.
5460         (*<s>mulsi3_highpart_zext): Macroize insn from
5461         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
5462
5463 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
5464
5465         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
5466         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
5467         refering to a DIE with DW_AT_const_value.
5468
5469 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
5470
5471         PR middle-end/22072
5472         * ira-lives.c (check_and_make_def_conflict): Process all operands.
5473
5474 2009-10-06  Jan Hubicka  <jh@suse.cz>
5475
5476         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
5477         correctly.
5478
5479 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5480
5481         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
5482         *lea_2_rex64): Move before *add<mode>_1 pattern.
5483
5484 2009-10-07  Jan Hubicka  <jh@suse.cz>
5485
5486         * collect2.c (main): Add -fno-whole-program.
5487         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
5488
5489 2009-10-07  Jan Hubicka  <jh@suse.cz>
5490
5491         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
5492         has no address taken.
5493         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
5494         never needed.
5495         (cgraph_clone_node): Clear externally_visible flag for clones.
5496         * cgraph.h (cgraph_only_called_directly_p,
5497         cgraph_can_remove_if_no_direct_calls_p): New predicates.
5498         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
5499         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
5500         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
5501         ipcp_insert_stage): Likwise.
5502         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
5503         externally_visible flag.
5504         (verify_cgraph_node): Verify that inline clones look right.
5505         (process_function_and_variable_attributes): Do not set
5506         externally_visible flags.
5507         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
5508         been already run.
5509         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
5510         boundaries.
5511         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
5512         clear externally_visible when turning into inline clones
5513         (cgraph_mark_inline_edge): Use new predicates.
5514         (cgraph_estimate_growth): Likewise.
5515         (cgraph_decide_inlining): Likewise.
5516         * ipa.c (cgraph_postorder): Likewise.
5517         (cgraph_remove_unreachable_nodes): Likewise; sanity check
5518         that inline clones are not needed.
5519         (cgraph_externally_visible_p): New predicate.
5520         (function_and_variable_visibility): Add whole_program parameter;
5521         always set externally_visible flag; handle COMDAT function
5522         privatization.
5523         (local_function_and_variable_visibility): New function.
5524         (gate_whole_program_function_and_variable_visibility): New function.
5525         (whole_program_function_and_variable_visibility): New function.
5526         (pass_ipa_whole_program_visibility): New function.
5527         * passes.c  (init_optimization_passes): Add whole program visibility
5528         pass.
5529         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
5530         not care about needed/reachable flags.
5531         * varpool.c: Include flags.h
5532         (decide_is_variable_needed): When doing LTO assume whole-program mode.
5533         (varpool_finalize_decl): When we are in LTO read-back, all variables
5534         are analyzed.
5535         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
5536
5537 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5538
5539         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
5540         add MASK_HARD_DFP.
5541
5542 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5543
5544         * config.gcc: Don't include the makefile fragments intended for
5545         libgcc.
5546         * config/s390/fixdfdi.h: File removed.
5547         * config/s390/libgcc-glibc.ver: File removed.
5548         * config/s390/s390.h: Remove the fixdfdi.h hack.
5549         * config/s390/t-crtstuff: File moved to libgcc dir.
5550         * config/s390/t-linux: Likewise.
5551         * config/s390/t-tpf: libgcc specific parts removed.
5552         * config/s390/t-linux64: Likewise.
5553
5554 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5555
5556         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
5557         (lto-compress.o): Likewise.
5558
5559 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
5560
5561         PR target/41512
5562         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
5563         dllexport to class members here.
5564         (i386_pe_determine_dllimport_p): Only check static class data for
5565         definition.
5566         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
5567         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
5568         functions for vague linkage.
5569         (i386_pe_type_dllexport_p): Fix formatting.
5570         (maybe_add_dllexport) New function.
5571         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
5572         to class members.
5573
5574 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5575
5576         * config/rs6000/a2.md: Remove duplicated lines.
5577
5578 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5579
5580         * config.gcc (powerpc*-*-*): Handle a2.
5581         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
5582         * config/rs6000/a2.md: New file.
5583         * config/rs6000/rs6000.opt (mno-update): New.
5584         (mupdate): Return to using a mask, not a var.
5585         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
5586         (enum processor_type): Add PROCESSOR_PPCA2.
5587         * config/rs6000/rs6000.c (ppca2_cost): New costs.
5588         (rs6000_override_options): Add "a2" to processor_target_table.
5589         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
5590         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
5591
5592 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5593
5594         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5595         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
5596         reference to nonexistent gen_truncxfxf2 function.
5597
5598 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5599
5600         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
5601         (DWIH, g, di, doubleint_general_operand): New mode attributes.
5602         (general_operand): Handle TI mode.
5603         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
5604         using SDWIM mode iterator.
5605         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
5606         pattern from *add{di,ti}3_1 patterns and corresponding splitters
5607         using DWI mode iterator.
5608         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
5609         patterns using SWI mode iterator.
5610         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
5611         using SWI48 mode iterator.
5612         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
5613         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
5614         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
5615         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
5616         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
5617         using SDWIM mode iterator.
5618         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
5619         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
5620         using DWI mode iterator.
5621         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
5622         patterns using SWI mode iterator.
5623         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
5624         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
5625         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
5626         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
5627         patterns using plusminus code iterator.
5628         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
5629         sub<mode>3 patterns using plusminus code iterator.
5630         * config/i386/i386.c (override_options): Update the call to
5631         gen_subdi_carry_rex64 for renamed function.
5632         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
5633         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
5634         calls to instruction expanders.
5635
5636 2009-10-06  Martin Jambor  <mjambor@suse.cz>
5637
5638         PR bootstrap/41395
5639         * opts.c (decode_options): Run IPA-SRA at -O2.
5640
5641 2009-10-06  Richard Guenther  <rguenther@suse.de>
5642
5643         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
5644
5645 2009-10-06  Tobias Burnus  <burnus@net-b.de>
5646
5647         PR lto/41591
5648         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
5649         -flto and -fwhole-program flags can be combined.
5650
5651 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
5652
5653         PR driver/41217
5654         * gcc.c (process_command): Check that -o argument was specified.
5655
5656 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5657
5658         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
5659
5660 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5661
5662         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
5663         * doc/invoke.texi (Warning Options): Annotate allowed languages
5664         for -Wunsuffixed-float-constants.
5665
5666 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
5667
5668         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
5669         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
5670         same name and isn't the main variant.
5671
5672         PR debug/41558
5673         * dwarf2out.c (loc_by_reference): Removed.
5674         (dw_loc_list_1): New function.
5675         (dw_loc_list): Remove toplev argument, add want_address argument.
5676         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
5677         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
5678         want_address == 2 to dw_loc_list.  For successful dw_loc_list
5679         set have_address to 1 only if want_address is not 0.
5680
5681 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5682
5683         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
5684         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
5685         a code block followed by two pointers.
5686         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
5687         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
5688         (MIPS_MOVE): Likewise.
5689         (MIPS_LUI): Likewise.
5690         (MIPS_JR): Likewise.
5691         (MIPS_BAL): Likewise.
5692         (MIPS_NOP): Likewise.
5693         (mips_asm_trampoline_template): Delete.
5694         (mips_trampoline_code_size): New function.
5695         (mips_trampoline_init): Add shorter sequences for all cases
5696         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
5697         Calculate the opcodes directly, rather than copying from a template.
5698         Only flush the code part of the trampoline.
5699         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
5700
5701 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5702
5703         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
5704         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
5705         (INCOMING_RETURN_ADDR_RTX): Likewise.
5706         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
5707         with AT_REGNUM.
5708         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
5709         with RETURN_ADDR_REGNUM.
5710         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
5711         * config/mips/mips.c (mips16_build_call_stub): Replace
5712         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
5713         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
5714         (mips_print_operand_punctuation): Likewise.
5715         (mips_frame_set): Likewise.
5716         (mips16e_output_save_restore): Likewise.
5717         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5718         (mips_save_reg_p): Likewise.
5719         (mips_return_addr): Likewise.
5720         (mips_set_return_address): Likewise.
5721         (mips_direct_save_slot_move_p): Likewise.
5722         (mips_output_function_prologue): Likewise.
5723         (mips_restore_reg): Likewise.
5724         (mips_expand_epilogue): Likewise.
5725         (mips_epilogue_uses): Likewise.
5726         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
5727         (*mov<mode>_ra): Use it instead of a hard-coded 31.
5728         (clear_hazard_<mode>): Likewise.
5729         (call_internal): Likewise.
5730         (call_internal_direct): Likewise.
5731         (call_direct_split): Likewise.
5732         (call_value_internal): Likewise.
5733         (call_value_split): Likewise.
5734         (call_value_internal_direct): Likewise.
5735         (call_value_direct_split): Likewise.
5736         (call_value_multiple_internal): Likewise.
5737         (call_value_multiple_split): Likewise.
5738
5739 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
5740             Jakub Jelinek  <jakub@redhat.com>
5741
5742         PR rtl-optimization/41511
5743         * combine.c (record_value_for_reg): Pass explicit values as argument
5744         to get_last_value_validate.
5745         (get_last_value_validate): Document INSN parameter.
5746         For non-readonly MEMs, assume they might have been modified if INSN
5747         was in another basic block.
5748         (get_last_value): Minor reformatting.
5749
5750 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5751
5752         PR tree-opt/40992
5753         * final.c (asm_str_count): Split out from asm_insn_count.
5754         * rtl.h (asm_str_count): New prototype.
5755         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
5756         asm_str_count.
5757
5758 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
5759
5760         * doc/plugins.texi: Change plugin_pass to register_pass_info.
5761
5762 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
5763             Rafael Espindola  <espindola@google.com>
5764
5765         * gengtype.c (write_types): Moved call to write_func_for_structure
5766         into seperate loops.
5767
5768 2009-10-05  Richard Guenther  <rguenther@suse.de>
5769
5770         PR lto/41281
5771         * lto-cgraph.c (output_cgraph): Output toplevel asms.
5772         (input_cgraph_1): Input toplevel asms.
5773
5774 2009-10-05  Richard Guenther  <rguenther@suse.de>
5775
5776         PR lto/40902
5777         * lto-symtab.c (lto_compatible_attributes_p): Remove.
5778         (external_aggregate_decl_p): Likewise.
5779         (lto_symtab_compatible): Re-structure.  Remove dead code.
5780         For variables ignore toplevel qualifiers when comparing types.
5781         Issue warnings, not errors for mismatched user-alignment.
5782
5783 2009-10-05  Richard Guenther  <rguenther@suse.de>
5784
5785         PR lto/41552
5786         PR lto/41487
5787         * lto-symtab.c (struct lto_symtab_base_def): Remove.
5788         (struct lto_symtab_identifier_def): Likewise.
5789         (struct lto_symtab_decl_def): Likewise.
5790         (struct lto_symtab_entry_def): New.
5791         (lto_symtab_identifier_t): Rename to ...
5792         (lto_symtab_entry_t): ... this.
5793         (lto_symtab_decls): Remove.
5794         (lto_symtab_base_hash): Rename to ...
5795         (lto_symtab_entry_hash): ... this.
5796         (lto_symtab_base_eq): Rename to ...
5797         (lto_symtab_entry_eq): ... this.
5798         (lto_symtab_base_marked_p): Rename to ...
5799         (lto_symtab_entry_marked_p): ... this.
5800         (lto_symtab_identifier_marked_p): Remove.
5801         (lto_symtab_decl_marked_p): Likewise.
5802         (lto_symtab_maybe_init_hash_tables): Rename to ...
5803         (lto_symtab_maybe_init_hash_table): ... this.
5804         (lto_symtab_set_resolution_and_file_data): Remove.
5805         (lto_symtab_register_decl): New function.
5806         (lto_symtab_get_identifier): Remove.
5807         (lto_symtab_get): New function.
5808         (lto_symtab_get_resolution): Adjust.
5809         (lto_symtab_get_identifier_decl): Remove.
5810         (lto_symtab_set_identifier_decl): Likewise.
5811         (lto_symtab_merge_decl): Rename to ...
5812         (lto_symtab_merge): ... this.  Rewrite.
5813         (lto_symtab_merge_var): Remove.
5814         (lto_symtab_merge_fn): Likewise.
5815         (lto_symtab_prevailing_decl): Adjust.
5816         (lto_cgraph_replace_node): New function.
5817         (lto_symtab_merge_decls_2): Likewise.
5818         (lto_symtab_merge_decls_1): Likewise.
5819         (lto_symtab_fixup_var_decls): Likewise.
5820         (lto_symtab_resolve_symbols): Likewise.
5821         (lto_symtab_merge_decls): Likewise.
5822         (lto_symtab_prevailing_decl): Adjust.
5823         (lto_symtab_get_symtab_def): Remove.
5824         (lto_symtab_get_file_data): Likewise.
5825         (lto_symtab_clear_resolution): Adjust.
5826         (lto_symtab_clear_resolution): Likewise.
5827         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
5828         (input_cgraph_1): Likewise.
5829         * lto-streamer-in.c (get_resolution): Do not provide fake
5830         symbol resolutions here.
5831         (deferred_global_decls): Remove.
5832         (lto_register_deferred_decls_in_symtab): Likewise.
5833         (lto_register_var_decl_in_symtab): Change signature, register
5834         variable via lto_symtab_register_decl.
5835         (lto_register_function_decl_in_symtab): Likewise.
5836         (lto_read_tree): Adjust.
5837         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
5838         (lto_symtab_merge_var): Likewise.
5839         (lto_symtab_merge_fn): Likewise.
5840         (lto_symtab_register_decl): Declare.
5841         (lto_symtab_merge_decls): Likewise.
5842
5843 2009-10-05  Richard Guenther  <rguenther@suse.de>
5844
5845         PR tree-optimization/23821
5846         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
5847         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
5848         simple IV increments.
5849
5850 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5851
5852         * config/arm/arm.c (arm_override_options): Really initialize
5853         flag_dwarf2_cfi_asm to 0.
5854
5855 2009-10-05  Doug Kwan  <dougkwan@google.com>
5856
5857         PR rtl-optimization/41574
5858         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
5859         floating point and we are not doing unsafe math optimizations.
5860
5861 2009-10-03  Simon Baldwin  <simonb@google.com>
5862             Cary Coutant  <ccoutant@google.com>
5863             Rafael Espindola  <espindola@google.com>
5864             Richard Guenther  <rguenther@suse.de>
5865             Jan Hubicka  <jh@suse.cz>
5866             Doug Kwan <dougkwan@google.com>
5867             H.J. Lu  <hongjiu.lu@intel.com>
5868             Bill Maddox  <maddox@google.com>
5869             Ryan Mansfield  <rmansfield@qnx.com>
5870             Diego Novillo  <dnovillo@google.com>
5871             Ollie Wild  <aaw@google.com>
5872             Kenneth Zadeck <zadeck@naturalbridge.com>
5873
5874         * lto-cgraph.c: New file.
5875         * lto-compress.c: New file.
5876         * lto-compress.h: New file.
5877         * lto-opts.c: New file.
5878         * lto-section-in.c: New file.
5879         * lto-section-out.c: New file.
5880         * lto-streamer-in.c: New file.
5881         * lto-streamer-out.c: New file.
5882         * lto-streamer.c: New file.
5883         * lto-streamer.h: New file.
5884         * lto-symtab.c: New file.
5885         * lto-wpa-fixup.c: New file.
5886         * lto-wrapper.c: New file.
5887
5888 2009-10-03  Simon Baldwin  <baldwin@google.com>
5889             Ben Elliston  <bje@au.ibm.com>
5890             Rafael Espindola  <espindola@google.com>
5891             Nathan Froyd  <froydnj@codesourcery.com>
5892             Jan Hubicka  <jh@suse.cz>
5893             Doug Kwan  <dougkwan@google.com>
5894             Diego Novillo  <dnovillo@google.com>
5895             Kenneth Zadeck  <zadeck@naturalbridge.com>
5896
5897         * Makefile.in (enable_lto): New.
5898         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
5899         (LINKER_PLUGIN_API_H): Define.
5900         (LTO_SYMTAB_H): Define.
5901         (LTO_STREAMER_H): Define.
5902         (TREE_VECTORIZER_H): Define.
5903         (INCLUDES): Add LIBELFINC.
5904         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
5905         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
5906         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
5907         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
5908         (native): Add lto-wrapper$(exeext)
5909         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
5910         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
5911         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
5912         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
5913         (varasm.o): Add dependency on tree-iterator.h.
5914         (cgraph.o): Add dependency on cif-code.def.
5915         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
5916         (ipa-pure-const.o): Likewise.
5917         (GTFILES): Add lto-symtab.c.
5918         (install-lto-wrapper): New.
5919         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
5920         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
5921         * config.in: Regenerate.
5922
5923 2009-10-03  Rafael Espindola  <espindola@google.com>
5924             Diego Novillo  <dnovillo@google.com>
5925
5926         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
5927         ipa_write_summaries.
5928         Call execute_ipa_summary_passes for all_regular_ipa_passes and
5929         all_lto_gen_passes.
5930         (cgraph_optimize): Make extern.
5931
5932 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
5933             Kenneth Zadeck <zadeck@naturalbridge.com>
5934
5935         * toplev.c (in_lto_p): Declare.
5936         * collect2.c (scan_prog_file): Read all the output when reading
5937         information for LTO.
5938         (enum lto_mode_d): Declare.
5939
5940 2009-10-03  Richard Guenther  <rguenther@suse.de>
5941             Diego Novillo  <dnovillo@google.com>
5942
5943         * gimple.c: Include target.h and alias.h.
5944         (gimple_types): Declare.
5945         (type_hash_cache): Declare.
5946         (gimple_alloc_stat): Make extern.
5947         (gimple_build_eh_must_not_throw): Call
5948         gimple_eh_must_not_throw_set_fndecl.
5949         (struct type_pair_d): Declare.
5950         (type_pair_t): Declare.
5951         (type_pair_hash): New.
5952         (type_pair_eq): New.
5953         (lookup_type_pair): New.
5954         (gimple_force_type_merge): New.
5955         (compare_type_names_p): New.
5956         (compare_field_offset): New.
5957         (gimple_types_compatible_p): New.
5958         (struct sccs): Declare.
5959         (next_dfs_num): Declare.
5960         (iterative_hash_gimple_type): New.
5961         (visit): New.
5962         (iterative_hash_type_name): New.
5963         (iterative_hash_gimple_type): New.
5964         (gimple_type_hash): New.
5965         (gimple_type_eq): New.
5966         (gimple_register_type): New.
5967         (print_gimple_types_stats): New.
5968         (gimple_signed_or_unsigned_type): New.
5969         (gimple_unsigned_type): New.
5970         (gimple_signed_type): New.
5971         (gimple_get_alias_set): New.
5972         (gimple_decl_printable_name): Do not use DMGL_TYPES.
5973         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
5974         (gimple_force_type_merge): Declare.
5975         (gimple_types_compatible_p): Declare.
5976         (gimple_register_type): Declare.
5977         (print_gimple_types_stats): Declare.
5978         (gimple_unsigned_type): Declare.
5979         (gimple_signed_type): Declare.
5980         (gimple_get_alias_set): Declare.
5981         (gimple_eh_must_not_throw_set_fndecl): New.
5982
5983 2009-10-03  Jan Hubicka  <jh@suse.cz>
5984             Kenneth Zadeck <zadeck@naturalbridge.com>
5985
5986         * ipa-pure-const.c: Include lto-streamer.h.
5987         (register_hooks): Factor out of ...
5988         (generate_summary): ... here.
5989         (pure_const_write_summary): New.
5990         (pure_const_read_summary): New.
5991         (pass_ipa_pure_const): Add pure_const_write_summary and
5992         pure_const_read_summary.
5993         * ipa-reference.c: Include lto-streamer.h.
5994         (add_new_function): New.
5995         (remove_node_data): New.
5996         (duplicate_node_data): New.
5997         (ipa_init): Guard against multiple calls.
5998         Move hook setup from analyze_function.
5999         (write_node_summary_p): New.
6000         (ipa_reference_write_summary): New.
6001         (ipa_reference_read_summary): New.
6002         (pass_ipa_reference): Add ipa_reference_write_summary and
6003         ipa_reference_read_summary.
6004         * cgraph.h (cgraph_local_info): Add field lto_file_data.
6005         (struct cgraph_edge): Add fields lto_stmt_uid and
6006         call_stmt_cannot_inline_p.
6007         (cgraph_optimize): Declare.
6008         (cgraph_decide_is_function_needed): Declare.
6009         (reset_inline_failed): Declare.
6010         (enum LTO_cgraph_tags): Declare.
6011         (LTO_cgraph_tag_names): Declare.
6012         (LCC_NOT_FOUND): Define.
6013
6014 2009-10-03  Doug Kwan  <dougkwan@google.com>
6015             Rafael Espindola  <espindola@google.com>
6016             Jan Hubicka  <jh@suse.cz>
6017             Diego Novillo  <dnovillo@google.com>
6018             Kenneth Zadeck  <zadeck@naturalbridge.com>
6019
6020         * passes.c (all_regular_ipa_passes): New.
6021         (all_ipa_passes): Rename to all_small_ipa_passes.
6022         (init_optimization_passes): Init all_regular_ipa_passes.
6023         * tree-pass.h (all_regular_ipa_passes): New.
6024         (all_ipa_passes): Rename to all_small_ipa_passes.
6025         * passes.c (all_lto_gen_passes): New.
6026         (init_optimization_passes): Initialize all_lto_gen_passes.
6027         (execute_ipa_summary_passes): Make non-static.
6028         (ipa_write_summaries_1): New.
6029         (ipa_write_summaries_2): New.
6030         (ipa_write_summaries): New.
6031         (ipa_write_summaries_of_cgraph_node_set): New.
6032         (ipa_read_summaries_1): New.
6033         (ipa_read_summaries): New.
6034         (execute_ipa_pass_list): Call cgraph_process_new_functions.
6035         (execute_regular_ipa_pass_list): Remove.
6036         (init_optimization_passes): Schedule
6037         pass_rebuild_cgraph_edges and pass_early_inline outside
6038         of pass_all_early_optimizations.  Document reason.
6039         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
6040         pass_ipa_lto_finish_out): New pass.
6041         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
6042         (execute_all_ipa_transforms): New.
6043         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
6044         (dump_properties, debug_properties): New.
6045         * tree-optimize.c (gate_all_early_local_passes): Return
6046         false if we are in lto1.
6047         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
6048         * tree-pass.h (execute_all_ipa_transforms): Declare.
6049         (pass_ipa_function_and_variable_visibility): Declare.
6050         (pass_ipa_early_inline): Declare.
6051         (pass_ipa_lto_gimple_out): Declare.
6052         (pass_ipa_lto_wpa_fixup): Declare.
6053         (pass_ipa_lto_finish_out): Declare.
6054         (all_small_ipa_passes, all_regular_ipa_passes,
6055         all_lto_gen_passes): Declare.
6056         (execute_ipa_summary_passes): Declare.
6057         (execute_all_ipa_transforms): Declare.
6058         (ipa_write_summaries): Declare
6059         (ipa_write_summaries_of_cgraph_node_set): Declare.
6060         (ipa_read_summaries): Declare.
6061
6062 2009-10-03  Doug Kwan  <dougkwan@google.com>
6063             Ollie Wild  <aaw@google.com>
6064
6065         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
6066
6067         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
6068         (lto_mode): New variable.
6069         (maybe_run_lto_and_relink): Handle the -fwpa option.
6070         (main): Handle the -fwpa option.
6071         (maybe_unlink_list): New function.
6072         * gcc.c (link_lto_options): Replace -flto with -fwpa.
6073         * common.opt (flto): New flag.
6074         * toplev.c (flag_generate_lto): Declare.
6075
6076 2009-10-03  Simon Baldwin  <simonb@google.com>
6077
6078         * common.opt (flto-compression-level): New flag.
6079
6080         * opts.c: Include lto-opts.h.
6081         (handle_option): Call lto_register_user_option for each
6082         valid option handled.
6083         (decode_options): Clear registered options before the options
6084         handling loop.
6085
6086 2009-10-03  Cary Coutant  <ccoutant@google.com>
6087
6088         * collect2.c (is_elf): New function.
6089         (scan_prog_file): Require LTO object to be in ELF format.
6090
6091 2009-10-03  Rafael Espindola  <espindola@google.com>
6092
6093         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
6094         libgcc to the linker.
6095
6096         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
6097
6098         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
6099         (collect_execute): Add flags argument. Pass flags to pex_run. Update
6100         all callers.
6101         * collect2.h (collect_execute): Add flags argument.
6102         * tlink.c (tlink_execute): Update call to collect_execute.
6103         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
6104         (use_linker_plugin): New.
6105         (use_linker_plugin_spec_function): New.
6106         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
6107         (linker_plugin_file_spec): New.
6108         (lto_wrapper_spec): New.
6109         (lto_gcc_spec): New.
6110         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
6111         (static_spec_functions): Add use-linker-plugin.
6112         (process_command): Handle -use-linker-plugin.
6113         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
6114         linker_plugin_file_spec and lto_gcc_spec.
6115         (use_linker_plugin_spec_function): New.
6116
6117 2009-10-03  Richard Guenther  <rguenther@suse.de>
6118
6119         PR lto/41547
6120         PR lto/41548
6121         * tree.h (is_lang_specific): Include LANG_TYPE.
6122         * tree.c (find_decls_types_r): Manually add interesting parts
6123         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
6124
6125         * gimple.c (type_pair_hash): Make symmetric.
6126         (type_pair_eq): Likewise.
6127         (lookup_type_pair): Increase initial hashtable size.
6128         (gimple_force_type_merge): Rely on type-pair symmetry.
6129         (visit): Remove excessive checking code.
6130         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
6131         (gimple_register_type): Remove getenv calls, shrink initial
6132         hashtable size.
6133
6134         PR middle-end/41502
6135         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
6136         inline functions if not generating lto output.
6137
6138         PR lto/41379
6139         * toplev.c (finalize): In WPA mode remove the asm file.
6140
6141 2009-10-03  Doug Kwan  <dougkwan@google.com>
6142
6143         * ipa-inline.c (cgraph_mark_inline): Check
6144         edge->call_stmt_cannot_inline_p instead of calling
6145         gimple_call_cannot_inline_p.
6146         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
6147         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
6148         (inline_generate_summary): Do nothing in LTRANS.
6149         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
6150         exists before calling gimple_call_cannot_inline_p.
6151         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
6152         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
6153         Update new_edge->lto_stmt_uid.
6154         * cgraphbuild.c (reset_inline_failed): New.
6155
6156         * common.opt (fwpa): New flag.
6157         (fltrans): New option.
6158         * gcc.c (gcc_lto_option_t): New type.
6159         (current_lto_option): New variable.
6160         (lto_single_spec_function): Remove and is replaced by ..
6161         (lto_option_spec_function): New function.
6162         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
6163         passing the -flto flag.
6164         (cc1_options): Separate non-LTO related parts into ..
6165         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
6166         (lto1_options): New spec for lto FE.
6167         (link_lto_options): New spec for handling LTO flags in linker.
6168         (invoke_lto_single): Re-format to fit in 80 column.  Replace
6169         lto-single with lto-option.
6170         (static_specs): Add cc1_non_lto_options, lto1_options and
6171         link_lto_options.
6172         (static_spec_function): Replace lto-single with lto-option.
6173         (process_command): Handle -flto, -fwpa and -fltran by setting
6174         current_lto_option and not passing it to subprocess unconditionally.
6175
6176 2009-10-03  Bill Maddox  <maddox@google.com>
6177
6178         Add `gcc' driver support for link-time code generation (LTO).
6179
6180         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
6181         (lto_flag, lto_objects, lto_o_file): New variables.
6182         (struct lto_object, struct lto_object_list): New structures.
6183         (collect_exit, handler): Remove LTO temporary output file on exit.
6184         (add_lto_object): New function.
6185         (maybe_run_lto_and_relink): New function. Perform link time code
6186         generation and relinking for object files containing LTO information.
6187         (main): Invoke maybe_run_lto_and_relink().
6188         (dump_argv): New function.  For debugging, currently disabled.
6189         (scan_prog_file): Add LTO information pass.
6190         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
6191         collect2.
6192         * toplev.c (compile_file): Emit assembler directive to create
6193         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
6194
6195 2009-10-03  Diego Novillo  <dnovillo@google.com>
6196
6197         * c.opt: Add LTO to warn_abi and warn_psabi.
6198
6199         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
6200         inline function.  Ignore language-specific nodes.  Update all users.
6201         (find_decls_types_r): Do not traverse the subtrees of
6202         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
6203         * tree.h (is_lang_specific): New.
6204         * langhooks.h (struct lang_hooks_for_decls): Remove
6205         may_need_assembler_name_p.  Update all users.
6206
6207         * c-common.c (set_builtin_user_assembler_name): Move ...
6208         * builtins.c (set_builtin_user_assembler_name): ... here.
6209         (is_builtin_name): Add comment
6210         (is_builtin_fn): New.
6211         * except.c (output_ttype): Only call
6212         lookup_type_for_runtime if TYPE is not a runtime type.
6213
6214         * passes.c (register_pass): Call position_pass on
6215         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
6216         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
6217         (TV_IPA_LTO_DECL_IO): Define.
6218         (TV_IPA_LTO_CGRAPH_IO): Define.
6219         (TV_LTO): Define.
6220         (TV_WHOPR_WPA): Define.
6221         (TV_WHOPR_WPA_IO): Define.
6222         (TV_WHOPR_LTRANS): Define.
6223         (TV_WHOPR_WPA_FIXUP): Define.
6224         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
6225         * tree-cfg.c (tree_node_can_be_shared): Make extern.
6226         * tree-flow.h (tree_node_can_be_shared): Declare.
6227         * tree-inline.c (tree_can_inline_p): Check that E has a
6228         statement associated with it.
6229         * tree.c (free_lang_data_in_binf): Factor out of ...
6230         (free_lang_data_in_type): ... here.
6231         Call RECORD_OR_UNION_TYPE_P.
6232         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
6233         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
6234         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
6235         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
6236         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
6237         (gate_free_lang_data): Return true if flag_generate_lto is set.
6238         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
6239         * c-common.h (set_builtin_user_assembler_name): Move ...
6240         * tree.h (set_builtin_user_assembler_name): ... here.
6241
6242         * common.opt (flto-report): New flag.
6243         * opts.c (complain_wrong_lang): Do not complain if running lto1.
6244         * collect2.c (scan_prog_file): Send the error output of
6245         'nm' to HOST_BIT_BUCKET.
6246
6247 2009-10-03  Ollie Wild  <aaw@google.com>
6248
6249         * langhooks-def.h (lhd_begin_section): New function declaration.
6250         (lhd_write_section): New function declaration.
6251         (lhd_end_section): New function declaration.
6252         (LANG_HOOKS_BEGIN_SECTION): New macro.
6253         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
6254         (LANG_HOOKS_END_SECTION): New macro.
6255         (LANG_HOOKS_LTO): New macro.
6256         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
6257         * langhooks.c (output.h): Add include.
6258         (saved_section): New static variable.
6259         (lhd_begin_section): New function.
6260         (lhd_write_section_data): New function.
6261         (lhd_end_section): New function.
6262         * langhooks.h (struct lang_hooks_for_lto): New structure.
6263         (struct lang_hooks): Add member lto.
6264         * Makefile.in (langhooks.o): Add dependency on output.h.
6265
6266         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
6267
6268 2009-10-03  Richard Guenther  <rguenther@suse.de>
6269
6270         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6271         Handle LTO.
6272
6273 2009-10-03  Simon Baldwin  <simonb@google.com>
6274             Richard Guenther  <rguenther@suse.de>
6275             Janis Johnson  <janis187@us.ibm.com>
6276             Doug Kwan  <dougkwan@google.com>
6277             Diego Novillo  <dnovillo@google.com>
6278             Ramana Radhakrishnan  <ramana.r@gmail.com>
6279             Ollie Wild  <aaw@google.com>
6280
6281         * doc/install.texi: Add documentation for libelf and --enable-lto.
6282         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
6283         -flto-report, -flto-compression-level and -use-linker-plugin.
6284         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
6285         Add section for LTO Testing.
6286
6287 2009-10-02  Cary Coutant  <ccoutant@google.com>
6288
6289         Add support for comdat type sections for DWARF v4.
6290         Merge from dwarf4 branch.
6291
6292         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
6293         (dw_die_ref): Define vector type.
6294         (enum dw_val_class): Add dw_val_class_data8.
6295         (struct dw_val_struct): Add v.val_data8.
6296         (comdat_type_node_ref): New type.
6297         (struct die_struct): Move die_symbol into a union; add new field
6298         die_type_node.  Change all uses.
6299         (comdat_type_node): New type.
6300         (skeleton_chain_node): New type.
6301         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
6302         (comdat_type_list): New variable.
6303         (dwarf_tag_name): Add DW_TAG_type_unit.
6304         (dwarf_attr_name): Add DW_AT_signature.
6305         (add_AT_data8): New function.
6306         (replace_child): New function.
6307         (move_all_children): New function.
6308         (print_signature): New function.
6309         (print_die): Print signature information; add dw_val_class_data8.
6310         (attr_checksum): Support dw_val_class_data8.
6311         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
6312         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
6313         (checksum_sleb128, checksum_uleb128): New functions.
6314         (checksum_die_context): New function.
6315         (loc_checksum_ordered): New function.
6316         (attr_checksum_ordered): New function.
6317         (struct checksum_attributes): New structure.
6318         (collect_checksum_attributes): New function.
6319         (die_checksum_ordered): New function.
6320         (generate_type_signature): New function.
6321         (same_dw_val_p): Add dw_val_class_data8.
6322         (is_symbol_die): Use new is_declaration_die function.
6323         (is_declaration_die): New function.
6324         (should_move_die_to_comdat): New function.
6325         (clone_die): New function.
6326         (clone_tree): New function.
6327         (clone_as_declaration): New function.
6328         (copy_declaration_context): New function.
6329         (generate_skeleton_ancestor_tree): New function.
6330         (generate_skeleton_bottom_up): New function.
6331         (generate_skeleton): New function.
6332         (remove_child_or_replace_with_skeleton): New function.
6333         (break_out_comdat_types): New function.
6334         (struct decl_table_entry): New type.
6335         (htab_decl_hash): New function.
6336         (htab_decl_eq): New function.
6337         (htab_decl_del): New function.
6338         (copy_ancestor_tree): New function.
6339         (copy_decls_walk): New function.
6340         (copy_decls_for_unworthy_types): New function.
6341         (build_abbrev_table): Don't assert on missing die_symbol when doing
6342         comdat type sections.
6343         (size_of_die): Use DW_FORM_sig8 for external references.  Add
6344         dw_val_class_data8.
6345         (unmark_dies): Don't assert for unmarked dies when doing comdat
6346         type sections.
6347         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
6348         (output_signature): New function.
6349         (output_die): Likewise.
6350         (output_compilation_unit_header): Mark output as DWARF version 3
6351         even if generating DWARF 4.
6352         (output_comdat_type_unit): New function.
6353         (output_line_info): Mark output as DWARF version 3 even if generating
6354         DWARF 4.
6355         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
6356         DWARF-4.
6357         (dwarf2out_end_source_file): Likewise.
6358         (prune_unused_types_walk_attribs): Don't follow references into
6359         comdat type sections.
6360         (prune_unused_types_mark): When generating type units, do not mark
6361         children of non-defining declarations of types; do mark children of
6362         type entries.
6363         (prune_unused_types): Process comdat type sections.
6364         (htab_ct_hash): New function.
6365         (htab_ct_eq): New function.
6366         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
6367         Add a pointer to the line table from type unit entries so
6368         DW_AT_decl_file has meaning.
6369         * varasm.c (default_elf_asm_named_section): Use identifier name as
6370         comdat key instead of lang hook.
6371
6372 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
6373
6374         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
6375
6376 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
6377
6378         * config/i386/i386.md (SWIM248): New mode iterator.
6379         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
6380         divmodhi4 patterns using SWIM248 macro.
6381         (*divmod<mode>4): Macroize insn_and_split pattern from
6382         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
6383         and their corresponding splitters usign SWIM248 macro.  Split SImode
6384         insn to generate cltd and DImode insn to generate cqto instead of
6385         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
6386         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
6387         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
6388         *divmodsi_noext patterns using SWIM248 macro.
6389         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
6390         udivmodhi4 patterns using SWIM248 macro.
6391         (*udivmod<mode>4): Macroize insn_and_split pattern from
6392         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
6393         corresponding splitters using SWIM248 macro.
6394         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
6395         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
6396
6397 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
6398
6399         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
6400         of zero-sized element is zero-sized regardless of its extent.
6401
6402 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
6403
6404         PR debug/40521
6405         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
6406         * configure: Regenerated.
6407         * config.in: Regenerated.
6408         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
6409         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
6410         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
6411         not emitting .eh_frame, emit .cfi_sections .debug_frame
6412         directive.
6413
6414         PR debug/41404
6415         PR debug/41353
6416         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
6417         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
6418         with '\0'.
6419         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
6420         vars use DECL_RTL with resetting it back to NULL afterwards.
6421         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
6422         rtx_equal_p instead of asserting it is a SYMBOL_REF.
6423         (value_format): For dw_val_class_addr only use DW_FORM_addr if
6424         the attribute type allows it, otherwise use DW_FORM_dataN.
6425         (mem_loc_descriptor): Handle CONST_STRING.
6426         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
6427         Handle MEM with CONST_STRING address using add_AT_string.
6428         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
6429         CONST_STRING for const arrays initialized with a string literal.
6430         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
6431         (dwarf2out_finish): Call resolve_addr.
6432
6433 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
6434             Maxim Kuvyrkov  <maxim@codesourcery.com>
6435
6436         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
6437
6438 2009-10-02  Nick Clifton  <nickc@redhat.com>
6439
6440         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
6441         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
6442
6443 2009-10-01  Jan Hubicka  <jh@suse.cz>
6444
6445         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
6446         (cgraph_create_virtual_clone): Just pass redirect_callers
6447         around.
6448         * cgraph.h (cgraph_clone_node): Update prototype.
6449         * ipa-pure-const.c (self_recursive_p): New function.
6450         (propagate): Use it.
6451         * ipa-inline.c (cgraph_clone_inlined_nodes,
6452         cgraph_decide_recursive_inlining): Update.
6453
6454 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
6455
6456         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
6457         instructions for TARGET_OCTEON.
6458
6459 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6460
6461         * config/arm/arm.c (arm_override_options): Turn off
6462         flag_dwarf2_cfi_asm for AAPCS variants.
6463
6464 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6465
6466         PR middle-end/12392
6467         * tree-sra.c (convert_callers): Do not call
6468         compute_inline_parameters on one caller more than once.
6469
6470 2009-10-01  Nick Clifton  <nickc@redhat.com>
6471
6472         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
6473         an empty string if not already defined.
6474
6475 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6476
6477         PR bootstrap/41395
6478         * tree-sra.c (is_va_list_type): New function.
6479         (find_var_candidates): Call is_va_list_type.
6480         (find_param_candidates): Check that the type or the type pointed
6481         to are not va_list types.
6482
6483 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6484
6485         PR c++/41503
6486         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
6487         DECL_ARTIFICIAL (param_decl) is true.
6488
6489 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
6490
6491         * tree.h (tree_decl_common::lang_flag_8): New.
6492         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
6493         keyword.
6494         * c-common.h (RID_CONSTEXPR): New.
6495
6496 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6497
6498         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
6499         Use ref-all pointers.
6500         (alpha_gimplify_va_arg): Ditto.
6501
6502 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
6503
6504         PR target/41279
6505         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
6506         before insn counting loop now that BB_END (bb) is counted.  Ensure
6507         the return value isn't zero.
6508
6509 2009-09-30  Nick Clifton  <nickc@redhat.com>
6510
6511         * config.gcc (sh-symbianelf): Replace definition of extra_objs
6512         with separate definitions of c_target_objs and cxx_target_objs.
6513         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
6514         and symbian-base.o.
6515         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
6516         sh_symbian_import_export_class.
6517         * config/sh/sh-protos.h: Fix names of exported symbian functions.
6518         * config/sh/symbian.c: Delete, moving code into...
6519         * config/sh/symbian-base.c: ... here
6520         * config/sh/symbian-c.c: ... and here
6521         * config/sh/symbian-cxx.c: ... and here.
6522
6523 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6524
6525         PR target/22093
6526         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
6527         of plus RTX into register.
6528
6529 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6530
6531         * doc/install.texi: Linguistic and markup fixes.
6532         (Configuration) <--disable-cpp>: Remove description.
6533         <--enable-maintainer-mode>: Autotools files are affected, too.
6534         <--with-sysroot>: Improve description.
6535         (Building): Bump required GNU make version.
6536
6537 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6538
6539         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
6540         (x86_64-*-*): Ditto.
6541
6542         * config/i386/fma4intrin.h: New file, provide common x86 compiler
6543         intrinisics for FMA4.
6544         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
6545         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
6546         Add FMA4 check and fma4intrin.h.
6547         * config/i386/i386-c.c(ix86_target_macros_internal): Check
6548         ISA_FLAG for FMA4.
6549         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
6550         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
6551         constant for FMA4 support.
6552         (UNSPEC_FMA4_FMADDSUB): Ditto.
6553         (UNSPEC_FMA4_FMSUBADD): Ditto.
6554         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
6555         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
6556         (ix86_expand_fma4_multiple_memory): Ditto.
6557         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
6558         (OPTION_MASK_ISA_FMA4_UNSET): New.
6559         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
6560         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
6561         (ix86_handle_option): Handle -mfma4.
6562         (isa_opts): Handle -mfma4.
6563         (enum pta_flags): Add PTA_FMA4.
6564         (override_options): Add FMA4 support.
6565         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
6566         (IX86_BUILTIN_VFMADDSD): Ditto.
6567         (IX86_BUILTIN_VFMADDPS): Ditto.
6568         (IX86_BUILTIN_VFMADDPD): Ditto.
6569         (IX86_BUILTIN_VFMSUBSS): Ditto.
6570         (IX86_BUILTIN_VFMSUBSD): Ditto.
6571         (IX86_BUILTIN_VFMSUBPS): Ditto.
6572         (IX86_BUILTIN_VFMSUBPD): Ditto.
6573         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
6574         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
6575         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
6576         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
6577         (IX86_BUILTIN_VFNMADDSS): Ditto.
6578         (IX86_BUILTIN_VFNMADDSD): Ditto.
6579         (IX86_BUILTIN_VFNMADDPS): Ditto.
6580         (IX86_BUILTIN_VFNMADDPD): Ditto.
6581         (IX86_BUILTIN_VFNMSUBSS): Ditto.
6582         (IX86_BUILTIN_VFNMSUBSD): Ditto.
6583         (IX86_BUILTIN_VFNMSUBPS): Ditto.
6584         (IX86_BUILTIN_VFNMSUBPD): Ditto.
6585         (IX86_BUILTIN_VFMADDPS256): Ditto.
6586         (IX86_BUILTIN_VFMADDPD256): Ditto.
6587         (IX86_BUILTIN_VFMSUBPS256): Ditto.
6588         (IX86_BUILTIN_VFMSUBPD256): Ditto.
6589         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
6590         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
6591         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
6592         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
6593         (IX86_BUILTIN_VFNMADDPS256): Ditto.
6594         (IX86_BUILTIN_VFNMADDPD256): Ditto.
6595         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
6596         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
6597         (enum multi_arg_type): New enum for describing the various FMA4
6598         intrinsic argument types.
6599         (bdesc_multi_arg): New table for FMA4 intrinsics.
6600         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
6601         (ix86_expand_multi_arg_builtin): New function for creating FMA4
6602         intrinsics.
6603         (ix86_expand_builtin): Add FMA4 intrinsic support.
6604         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
6605         operand instructions.
6606         (ix86_expand_fma4_multiple_memory): New function to split the
6607         second memory reference from FMA4 instructions.
6608         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
6609         (ssemodesuffixf2s): Ditto.
6610         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
6611         instructions.
6612         (fma4_fmsub<mode>4): Ditto.
6613         (fma4_fnmadd<mode>4): Ditto.
6614         (fma4_fnmsub<mode>4): Ditto.
6615         (fma4_vmfmadd<mode>4): Ditto.
6616         (fma4_vmfmsub<mode>4): Ditto.
6617         (fma4_vmfnmadd<mode>4): Ditto.
6618         (fma4_vmfnmsub<mode>4): Ditto.
6619         (fma4_fmadd<mode>4256): Ditto.
6620         (fma4_fmsub<mode>4256): Ditto.
6621         (fma4_fnmadd<mode>4256): Ditto.
6622         (fma4_fnmsub<mode>4256): Ditto.
6623         (fma4_fmaddsubv8sf4): Ditto.
6624         (fma4_fmaddsubv4sf4): Ditto.
6625         (fma4_fmaddsubv4df4): Ditto.
6626         (fma4_fmaddsubv2df4): Ditto.
6627         (fma4_fmsubaddv8sf4): Ditto.
6628         (fma4_fmsubaddv4sf4): Ditto.
6629         (fma4_fmsubaddv4df4): Ditto.
6630         (fma4_fmsubaddv2df4): Ditto.
6631         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
6632         instructions for intrinsics.
6633         (fma4i_fmsub<mode>4): Ditto.
6634         (fma4i_fnmadd<mode>4): Ditto.
6635         (fma4i_fnmsub<mode>4): Ditto.
6636         (fma4i_vmfmadd<mode>4): Ditto.
6637         (fma4i_vmfmsub<mode>4): Ditto.
6638         (fma4i_vmfnmadd<mode>4): Ditto.
6639         (fma4i_vmfnmsub<mode>4): Ditto.
6640         (fma4i_fmadd<mode>4256): Ditto.
6641         (fma4i_fmsub<mode>4256): Ditto.
6642         (fma4i_fnmadd<mode>4256): Ditto.
6643         (fma4i_fnmsub<mode>4256): Ditto.
6644         (fma4i_fmaddsubv8sf4): Ditto.
6645         (fma4i_fmaddsubv4sf4): Ditto.
6646         (fma4i_fmaddsubv4df4): Ditto.
6647         (fma4i_fmaddsubv2df4): Ditto.
6648         (fma4i_fmsubaddv8sf4): Ditto.
6649         (fma4i_fmsubaddv4sf4): Ditto.
6650         (fma4i_fmsubaddv4df4): Ditto.
6651         (fma4i_fmsubaddv2df4): Ditto.
6652
6653         * doc/invoke.texi (-mfma4): Add documentation.
6654         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
6655
6656 2009-09-29  Richard Henderson  <rth@redhat.com>
6657
6658         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
6659         an edge to the new destination block.
6660
6661 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6662
6663         PR target/41393
6664         * pa.c (hppa_profile_hook): Use
6665         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
6666
6667 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
6668             Alexander Monakov  <amonakov@ispras.ru>
6669
6670         PR target/41365
6671         * config/ia64/predicates.md (not_postinc_destination_operand): New.
6672         (not_postinc_memory_operand): New.
6673         (not_postinc_move_operand): New.
6674         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
6675         (*cmovsi_internal): Ditto.
6676
6677 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
6678
6679         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
6680         restrict issue_rate in first pass when scheduling for register
6681         pressure.
6682
6683 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
6684             Rafael Avila de Espindola  <espindola@google.com>
6685
6686         * gengtype.c (plugin_output): New.
6687         (get_output_file_with_visibility): Return plugin_output for plugins.
6688         (main): Parse and use the -P option.
6689         * gty.texi: Update the command line format.
6690
6691 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
6692
6693         PR debug/41438
6694         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
6695         functions.
6696         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
6697         out if !const_ok_for_output.
6698
6699         PR debug/41474
6700         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
6701         case VAR_LOCATION>: Remove gcc_unreachable ().
6702
6703 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6704
6705         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
6706         (x86_64-*-*): Ditto.
6707         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
6708         back to smmintrin.h.
6709         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
6710         * config/i386/x86intrin.h: Remove SSE5.
6711         * config/i386/mmintrin-common.h: Delete file.
6712         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
6713
6714 2009-09-29  Richard Guenther  <rguenther@suse.de>
6715
6716         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
6717         resulting from stack temporaries on STRICT_ALIGNMENT targets.
6718
6719 2009-09-29  Nick Clifton  <nickc@redhat.com>
6720
6721         * function.c (current_function_name): If there is no current
6722         function just return "<none>".
6723
6724 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
6725
6726         * tree-pass.h (register_pass_info): New structure.
6727         (pass_positioning_ops): Move enum from gcc-plugin.h.
6728         (register_pass): New function.
6729         * gcc-plugin.h (plugin_pass): Delete structure.
6730         (pass_positioning_ops): Delete enum.
6731         * plugin.c (regsiter_pass): Delete function.
6732         (position_pass): Delete function.
6733         (added_pass_nodes): Delete variable.
6734         (prev_added_pass_nodes): Delete variable.
6735         (pass_list_node): Delete structure.
6736         * passes.c (make_pass_instance): New function.
6737         (next_pass_1): Change to call make_pass_instance.
6738         (pass_list_node): Move structure from gcc-plugin.h.
6739         (added_pass_nodes): Move variable from plugin.c.
6740         (prev_added_pass_nodes): Move variable from plugin.c.
6741         (position_pass): New function.
6742         (register_pass): New function.
6743
6744 2009-09-28  Easwaran Raman  <eraman@google.com>
6745
6746         * ifcvt.c (noce_try_abs): Recognize pattern and call
6747         expand_one_cmpl_abs_nojump.
6748         * optabs.c (expand_one_cmpl_abs_nojump): New function.
6749         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
6750
6751 2009-09-28  Ian Lance Taylor  <iant@google.com>
6752
6753         PR middle-end/40500
6754         * c-opts.c (c_common_handle_option): Don't set
6755         warn_jump_misses_init for -Wall.
6756         * doc/invoke.texi (Warning Options): Update documentation.
6757
6758 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6759
6760         * Makefile.in ($(out_object_file)): Depend on
6761         gt-$(basename $(notdir $(out_file))).h.
6762
6763 2009-09-28  Richard Henderson  <rth@redhat.com>
6764
6765         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
6766         * except.c (gen_eh_region): Set it.
6767         (duplicate_eh_regions_1): Copy it.
6768         * tree-eh.c (lower_resx): Use it to determine which function
6769         to call to resume.
6770
6771         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
6772         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
6773         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
6774         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
6775         BUILT_IN_CXA_END_CLEANUP if necessary.
6776
6777         * c-common.c (c_define_builtins): Update call to
6778         build_common_builtin_nodes.
6779
6780 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6781
6782         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
6783
6784 2009-09-28  Michael Matz  <matz@suse.de>
6785
6786         * builtins.c (interclass_mathfn_icode): New helper.
6787         (expand_builtin_interclass_mathfn): Use it here, and split folding
6788         into ...
6789         (fold_builtin_interclass_mathfn): ... this new folder.
6790         (build_call_nofold_loc): New static helper.
6791         (build_call_nofold): New wrapper macro for above.
6792         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
6793         (expand_builtin_pow): Ditto.
6794         (expand_builtin_memset_args): Ditto.
6795         (expand_builtin_printf): Ditto.
6796         (expand_builtin_fprintf): Ditto.
6797         (expand_builtin_sprintf): Ditto.
6798         (expand_builtin_memory_chk): Ditto.
6799         (expand_builtin_mempcpy_args): Ditto and don't call folders.
6800         (expand_builtin_stpcpy): Ditto.
6801         (expand_builtin_strcmp): Ditto.
6802         (expand_builtin_strncmp): Ditto.
6803         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
6804         (expand_builtin_strcpy_args): Don't call folders.
6805         (expand_builtin_memcmp): Ditto.
6806         (expand_builtin_strncpy): Ditto, and use target.
6807         (expand_builtin_memcpy): Ditto.
6808         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
6809         expand_builtin_strpbrk, expand_builtin_memmove,
6810         expand_builtin_memmove_args, expand_builtin_bcopy,
6811         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
6812         expand_builtin_strspn, expand_builtin_strcspn,
6813         expand_builtin_fputs): Remove these.
6814         (expand_builtin): Don't call the above, change calls to other
6815         expanders that changed prototype.
6816         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
6817         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
6818         fold_builtin_interclass_mathfn.
6819         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
6820         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
6821
6822         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
6823         * passes.c (init_optimization_passes): Move pass_fold_builtins
6824         after last phiopt pass.
6825         * tree-inline.c (fold_marked_statements): When folding builtins
6826         iterate over all instruction potentially generated.
6827         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
6828         earlier.
6829         (fold_gimple_call): Use it to always fold calls (into potentially
6830         multiple instructions).
6831         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
6832         calls into zero at this time.
6833         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
6834         statements generated by builtin folding.
6835
6836 2009-09-28  Nick Clifton  <nickc@redhat.com>
6837
6838         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
6839
6840 2009-09-28  Duncan Sands  <baldrick@free.fr>
6841
6842         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
6843         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
6844         (register_callback): Dispatch it.
6845         (invoke_plugin_callbacks): Incorporate in sanity check.
6846         * ggc.h (ggc_register_cache_tab): Add declaration.
6847         * ggc-common.c (ggc_register_root_tab): Simplify.
6848         (const_ggc_cache_tab_t): New typedef.
6849         (extra_cache_vec): New vector of dynamically added cache tables.
6850         (ggc_register_cache_tab): New function.
6851         (ggc_scan_cache_tab): New function.
6852         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
6853         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
6854
6855 2009-09-27  Richard Henderson  <rth@redhat.com>
6856
6857         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
6858         which we remove __builtin_stack_restore.
6859
6860 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
6861
6862         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
6863         to test for GRD_INVARIANT.
6864         (simple_rhs_p): Anything that's function_invariant_p is fine.
6865
6866 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
6867
6868         * gengtype.c (main): Use plunge_files instead of plugin_output.
6869
6870 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
6871             Rafael Avila de Espindola  <espindola@google.com>
6872
6873         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
6874         Don't print pch related info if it is false.
6875         (main): Don't print pch info in plugin mode.
6876
6877 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6878
6879         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
6880         with dw_val_class_const_double.
6881         (struct dw_val_struct): Replace val_long_long with val_double and
6882         adjust for above change.
6883         (output_loc_operands): Likewise.
6884         (add_AT_long_long): Rename into...
6885         (add_AT_double): ...this.
6886         (print_die): Replace dw_val_class_long_long with
6887         dw_val_class_const_double and adjust.
6888         (attr_checksum): Likewise.
6889         (same_dw_val_p): Likewise.
6890         (size_of_die): Likewise.
6891         (value_format): Likewise.
6892         (output_die): Likewise.
6893         (loc_descriptor) <CONST_DOUBLE>: Likewise.
6894         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
6895         instead of add_AT_long_long.
6896         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
6897         value with the precision of its type.
6898
6899 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
6900
6901         PR c/41476
6902         * c-typeck.c (build_conditional_expr): Use the readonly and
6903         volatile flags of the operand types, not of the operands itself.
6904
6905 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
6906
6907         * collect2.c (main): Look for -brtl before adding libraries.
6908
6909 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
6910
6911         * config.gcc: Update OpenBSD targets.
6912         * config/openbsd-stdint.h: New file.
6913         * config/openbsd-libpthread.h: New file.
6914         * config/openbsd.h: Update and break out LIB_SPEC definition.
6915         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
6916         * config/i386/openbsdelf.h: Correct types.
6917         * config/m68k/openbsd.h: Likewise.
6918         * config/mips/openbsd.h: Likewise.
6919         * config/vax/openbsd.h: Likewise.
6920
6921 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6922
6923         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
6924         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
6925         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
6926         of the length and zero.
6927
6928 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6929
6930         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
6931         (FLAGS_H): Add options.h $(REAL_H).
6932         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
6933         (TREE_VECTORIZER_H): New.
6934         (EBITMAP_H): Renamed from EBIMAP_H.
6935         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
6936         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
6937         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
6938         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
6939         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
6940         (graphite-clast-to-gimple.o, graphite-dependences.o)
6941         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
6942         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
6943         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
6944         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
6945         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
6946         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
6947         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
6948         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
6949         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
6950         updated and fixed as per above changes and per
6951         check_makefile_deps.sh output.
6952
6953         PR bootstrap/40928
6954         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
6955         * configure: Regenerate.
6956
6957 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6958
6959         * doc/install.texi: Update minimum MPC version to 0.7.
6960
6961 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
6962
6963         * doc/install.texi (Binaries): Remove reference to the binary
6964         distribution CD-ROM from the FSF.
6965
6966 2009-09-26  Michael Matz  <matz@suse.de>
6967
6968         PR lto/40758
6969         PR middle-end/41470
6970         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
6971         that are mentioned in the body.
6972
6973 2009-09-26  Michael Matz  <matz@suse.de>
6974
6975         PR tree-optimization/41454
6976         * tree-ssa-dom (stmts_to_rescan): Remove variable.
6977         (tree_ssa_dominator_optimize): Don't allocate and free it.
6978         (dom_opt_leave_block): Don't iterate over it.
6979         (eliminate_redundant_computations): Don't return a value.
6980         (cprop_operand, cprop_into_stmt): Ditto.
6981         (optimize_stmt): Don't defer updating stmts.
6982
6983 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
6984
6985         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
6986         generic_parameter_die, template_parameter_pack_die,
6987         gen_formal_parameter_die, gen_subprogram_die): Adjust after
6988         renaming DW_TAG_formal_parameter_pack and
6989         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
6990         and DW_TAG_GNU_template_parameter_pack.
6991
6992 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
6993
6994         * config/v850/v850.h (FUNCTION_VALUE): Remove.
6995         * config/v850/v850.c (v850_function_value): New function.
6996         (TARGET_FUNCTION_VALUE): Define.
6997
6998 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
6999
7000         * tree-vect-stmts.c (vectorizable_call): Call
7001         mark_symbols_for_renaming after vect_finish_stmt_generation.
7002
7003         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
7004         to loc_descriptor_from_tree.
7005         (add_location_or_const_value_attribute): Pass 0 instead of 2
7006         for decl_by_reference_p decls.
7007
7008 2009-09-25  Richard Guenther  <rguenther@suse.de>
7009
7010         PR middle-end/41463
7011         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
7012         arrays again.
7013
7014 2009-09-25  Ben Elliston  <bje@au.ibm.com>
7015
7016         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
7017         after `power7'.
7018
7019 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
7020
7021         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
7022         form of instruction.
7023
7024 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7025
7026         PR middle-end/41435
7027         * fold-const.c (const_binop): Handle complex int division.
7028         * tree-complex.c (expand_complex_div_straight,
7029         expand_complex_div_wide): Update comments.
7030
7031 2009-09-24  DJ Delorie  <dj@redhat.com>
7032
7033         PR target/41456
7034         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
7035         (reg_class): Likewise.
7036         (REG_CLASS_NAMES): Likewise.
7037         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
7038         (m32c_override_options): Disable -fivopts for M32C.
7039
7040 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7041
7042         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7043         Delete VSX load/store with update support.
7044         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
7045         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
7046         (vsx_movti): Ditto.
7047         (VSX_U): Delete.
7048         (VSbit): Ditto.
7049         (VStype_load_update): Ditto.
7050         (VStype_store_update): Ditto.
7051         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7052         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7053
7054         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
7055         load/store with update builtins.
7056
7057 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
7058
7059         * libgcc2.c (L_trampoline): Prototype for getpagesize
7060         and mprotect in WINNT case.
7061
7062 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
7063
7064         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
7065         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
7066         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
7067         'outgoing' argument.
7068         (TARGET_FUNCTION_VALUE): Define.
7069
7070 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7071
7072         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
7073
7074 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7075
7076         PR bootstrap/41405
7077         * common.opt: Initialize dwarf_strict to -1.
7078         * toplev.c (process_options): Catch unset dwarf_strict
7079         and set to 0 for all targets not overriding.
7080         * config/darwin.c (darwin_override_options): Catch unset
7081         dwarf_strict and override to 1.
7082
7083 2009-09-24  Jeff Law  <law@redhat.com>
7084
7085         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
7086
7087 2009-09-24  Richard Guenther  <rguenther@suse.de>
7088
7089         PR tree-optimization/36143
7090         PR tree-optimization/38747
7091         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
7092         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
7093
7094 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7095
7096         PR bootstrap/41457
7097         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
7098         return false instead of gcc_unreachable ().  For CONST return the
7099         value returned by recursive call instead of always returning true.
7100         (tree_add_const_value_attribute): Return the value returned by
7101         add_const_value_attribute instead of always returning true if rtl
7102         is non-NULL.
7103
7104 2009-09-23  Justin Seyster  <jrseys@gmail.com>
7105
7106         * Makefile.in (PLUGIN_HEADERS): Include real.h.
7107
7108 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7109
7110         * cgraphunit.c (cgraph_lower_function): Revert last change.
7111         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
7112         instead of DECL_NO_STATIC_CHAIN.
7113         * tree-cfg.c (verify_gimple_call): Likewise.
7114         * tree-nested.c (get_chain_decl, get_chain_field,
7115         convert_tramp_reference_op, convert_gimple_call): Likewise.
7116         (convert_all_function_calls): Likewise.  Always set or clear
7117         DECL_STATIC_CHAIN initially, for !n->outer clear it.
7118         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
7119         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
7120         if nested.
7121         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
7122         DECL_NO_STATIC_CHAIN.
7123         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
7124         instead of DECL_NO_STATIC_CHAIN.
7125         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
7126         decl_function_context.
7127         * varasm.c (initializer_constant_valid_p): Likewise.
7128         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
7129         (DECL_STATIC_CHAIN): ... this.
7130         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
7131         instead of DECL_NO_STATIC_CHAIN.
7132
7133 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
7134             Rafael Avila de Espindola  <espindola@google.com>
7135
7136         * gengtype.c (nb_plugin_files): Make it unsigned to match
7137         num_gt_files. Adjust other variables to avoid warnings.
7138         (main): Allocate an all zero lang_bitmap before each plugin file name
7139         to match regular file names.
7140
7141 2009-09-23  Richard Henderson  <rth@redhat.com>
7142
7143         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7144         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
7145         static chain passed in memory.
7146         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
7147         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
7148         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
7149         STATIC_CHAIN_REGNUM defined.
7150
7151         * config/picochip/picochip-protos.h: s/class/klass/.
7152         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
7153         (picochip_static_chain): New.
7154         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
7155         (STATIC_CHAIN_INCOMING): Remove.
7156
7157         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
7158         (xtensa_static_chain): New.
7159         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
7160         (STATIC_CHAIN_INCOMING): Remove.
7161
7162 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7163
7164         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
7165         * config/pa/pa-protos.h (function_value): Remove.
7166         * config/pa/pa.c (pa_function_value): Rename from function_value.
7167         Make static, add 'outgoing' argument.
7168         (TARGET_FUNCTION_VALUE): Define.
7169
7170 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7171
7172         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
7173         instead of cfun->machine->is_leaf.
7174         * config/avr/avr.h (machine_function): Remove is_leaf field.
7175
7176 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7177
7178         PR debug/41439
7179         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
7180         DW_OP_piece after DW_OP_stack_value, adjust size calculations
7181         for it, when DW_OP_stack_value and DW_OP_implicit_value has
7182         the same size, prefer DW_OP_stack_value.
7183         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
7184         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
7185
7186 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7187
7188         PR debug/41353
7189         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
7190
7191 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7192
7193         PR debug/41248
7194         * cfgexpand.c (convert_debug_memory_address): New.
7195         (expand_debug_expr): Convert base address and offset to the same
7196         mode.  Use it to convert addresses to other modes.  Accept
7197         ptr_mode addresses.
7198
7199 2009-09-23  Dodji Seketeli <dodji@redhat.com>
7200
7201         PR debug/41065
7202         * function.h (types_used_by_vars_hash): Declare new hash table.
7203         (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
7204         equality and hash function for the hash table.
7205         (types_used_by_cur_var_decl): Declare a new global chained list.
7206         (types_used_by_var_decl_insert): Declare new function.
7207         * function.c (types_used_by_vars_hash): Define the hashtable ...
7208         (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
7209         its equality and hash functions.
7210         (hash_types_used_by_vars_entry): New hash helper.
7211         (types_used_by_cur_var_decl): Define the global chained list.
7212         (used_types_insert): Update the list of types used by the global
7213         variable being parsed.
7214         (types_used_by_var_decl_insert): Define new function.
7215         * c-common.h (record_types_used_by_current_var_decl): Declare ...
7216         * c-common.c (record_types_used_by_current_var_decl): ... new
7217         function.
7218         * c-decl.c (finish_decl): Record the types used by the global
7219         variable declaration we've just parsed.
7220         * dwarf2out.c (premark_used_types): Insert a new line between
7221         comment and function.
7222         (premark_used_types_helper): Fix comment.
7223         (premark_types_used_by_global_vars_helper,
7224         premark_types_used_by_global_vars): New functions.
7225         (prune_unused_types): Do not prune types used by global variables.
7226
7227 2009-09-23  Richard Guenther  <rguenther@suse.de>
7228
7229         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
7230         produced for bigendian targets with promoted subregs.
7231
7232 2009-09-23  Richard Guenther  <rguenther@suse.de>
7233
7234         * value-prof.c (gimple_ic): Purge old EH edges only after building
7235         the new ones.
7236
7237 2009-09-23  Nick Clifton  <nickc@redhat.com>
7238
7239         * config/arc/arc.c (arc_trampoline_init): Fix typo.
7240
7241 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7242
7243         PR bootstrap/41405
7244         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
7245
7246         PR bootstrap/41436
7247         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
7248         on non-nested functions.
7249
7250 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7251             Jan Hubicka  <jh@suse.cz>
7252
7253         * dwarf2out.c (loc_list_plus_const): Only define if
7254         DWARF2_DEBUGGING_INFO.
7255         (address_of_int_loc_descriptor): Likewise.
7256
7257         PR debug/41411
7258         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
7259
7260 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
7261
7262         PR c/39779
7263         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
7264         constant is more than zero.
7265
7266 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
7267
7268         PR target/40473
7269         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7270         call final to emit non-scheduled prologue, instead insert at entry.
7271
7272 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7273             Joseph S. Myers  <joseph@codesourcery.com>
7274
7275         * doc/install.texi (*-*-freebsd*): Add proper format codes.
7276
7277 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7278             Rafael Avila de Espindola  <espindola@google.com>
7279
7280         * gengtype.c (is_file_equal): New function.
7281         (close_output_files): Use is_file_equal. Free of->buf.
7282
7283 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7284             Rafael Avila de Espindola  <espindola@google.com>
7285
7286         * gengtype.c (write_types, write_local): Add the output_header
7287         argument. Update all callers.
7288
7289 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
7290
7291         * dwarf2out.c (template_parameter_pack_die,
7292         gen_formal_parameter_pack_die ): New functions.
7293         (make_ith_pack_parameter_name): Remove this function.
7294         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
7295         DW_TAG_formal_parameter_pack.
7296         (gen_generic_params_dies): Represent each template parameter pack
7297         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
7298         represented by usual DW_TAG_template_*_parameter DIEs that are
7299         children of the DW_TAG_template_parameter_pack element DIE.
7300         (generic_parameter_die): This doesn't deal with parameter pack
7301         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
7302         of parameter pack DIEs.
7303         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
7304         in certain cases, e.g. for pack elements.
7305         (gen_formal_types_die, gen_decl_die): Adjust usage of
7306         gen_formal_parameter_die.
7307         (gen_subprogram_die): Represent each function parameter pack by a
7308         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
7309         represented by usual DW_TAG_formal_parameter DIEs that are children
7310         of the DW_TAG_formal_parameter_pack DIE. Remove references to
7311         ____builtin_va_alist decls as no part of the compiler uses those
7312         anymore.
7313         * langhooks.h (struct lang_hooks_for_decls): Add
7314         function_parm_expanded_from_pack_p, get_generic_function_decl
7315         and function_parameter_pack_p hooks.  Fix comment for
7316         get_innermost_generic_parms hook.
7317         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
7318         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
7319         macros and use them to initialize lang_hook.
7320
7321 2009-09-22  Richard Henderson  <rth@redhat.com>
7322
7323         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
7324         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
7325         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
7326         on TRAMPOLINE_TEMPLATE.
7327         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
7328         TRAMPOLINE_ADJUST_ADDRESS.
7329         * targhooks.c (default_asm_trampoline_template): Remove.
7330         (default_trampoline_adjust_address): Remove.
7331         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
7332         * targhooks.h: Update decls.
7333
7334 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7335
7336         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
7337         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
7338         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7339
7340 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
7341
7342         PR debug/41295
7343         * reload1.c (reload): Reset debug insns with pseudos without
7344         equivalences.
7345
7346 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
7347
7348         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
7349         unconditional true for decimal float modes.
7350         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
7351         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
7352
7353 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7354
7355         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
7356         Enable a new case for __FreeBSD__ >= 7.
7357         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
7358         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
7359         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
7360         and USE_LD_AS_NEEDED.
7361
7362         * doc/install.texi (*-*-freebsd*): Update target information.
7363
7364 2009-09-22  Richard Guenther  <rguenther@suse.de>
7365
7366         PR middle-end/41395
7367         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
7368         arrays really properly.
7369
7370 2009-09-22  Richard Henderson  <rth@redhat.com>
7371
7372         PR target/41246
7373         * target.h (struct gcc_target): Add asm_out.trampoline_template,
7374         calls.static_chain, calls.trampoline_init,
7375         calls.trampoline_adjust_address.
7376         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7377         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7378         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7379         * builtins.c (expand_builtin_setjmp_receiver): Use
7380         targetm.calls.static_chain; only clobber registers.
7381         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
7382         set up memory attributes properly for the trampoline block.
7383         (expand_builtin_adjust_trampoline): Use
7384         targetm.calls.trampoline_adjust_address.
7385         * calls.c (prepare_call_address): Add fndecl argument.  Use
7386         targetm.calls.static_chain.
7387         * df-scan.c (df_need_static_chain_reg): Remove.
7388         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
7389         consolodate static chain handling.
7390         * doc/tm.texi: Document new hooks.
7391         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
7392         (init_emit_regs): Don't initialize them.
7393         * expr.h (prepare_call_address): Update decl.
7394         * final.c (profile_function): Use targetm.calls.static_chain.
7395         * function.c (expand_function_start): Likewise.
7396         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
7397         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
7398         only clobber registers.
7399         * targhooks.c (default_static_chain): New.
7400         (default_asm_trampoline_template, default_trampoline_init): New.
7401         (default_trampoline_adjust_address): New.
7402         * targhooks.h: Declare them.
7403         * varasm.c (assemble_trampoline_template): Use
7404         targetm.asm_out.trampoline_template.  Make the memory block const
7405         and set its size.
7406
7407         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
7408         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
7409         differences into the TARGET_ABI_OPEN_VMS code block.
7410         (TARGET_TRAMPOLINE_INIT): New.
7411         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
7412         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
7413         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
7414         (INITIALIZE_TRAMPOLINE): Remove.
7415
7416         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
7417         (TRAMPOLINE_TEMPLATE): Merge with ...
7418         (INITIALIZE_TRAMPOLINE): ... this and move ...
7419         * config/arc/arc.c (arc_trampoline_init): ... here.
7420         (TARGET_TRAMPOLINE_INIT): New.
7421
7422         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7423         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7424         (arm_asm_trampoline_template): New.
7425         (arm_trampoline_init, arm_trampoline_adjust_address): New.
7426         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
7427         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
7428         code to arm_asm_trampoline_template.
7429         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
7430         arm_trampoline_adjust_address.
7431         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
7432         adjust for target hook parameters.
7433
7434         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
7435         Remove.
7436
7437         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
7438         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
7439         (bfin_trampoline_init): Rename from initialize_trampoline;
7440         make static; update for target hook parameters.
7441         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7442         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
7443         bfin_asm_trampoline_template.
7444         (INITIALIZE_TRAMPOLINE): Remove.
7445
7446         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7447         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
7448         cris_trampoline_init): New.
7449         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
7450         cris_asm_trampoline_template.
7451         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
7452         adjust for target hook parameters.
7453
7454         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
7455
7456         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7457         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
7458         fr30_trampoline_init): New.
7459         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
7460         fr30_asm_trampoline_template.
7461         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
7462         adjust for target hook parameters.
7463
7464         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
7465         (frv_trampoline_init): Rename from frv_initialize_trampoline;
7466         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
7467         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
7468         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
7469
7470         * config/h8300/h8300.c (h8300_trampoline_init): New.
7471         (TARGET_TRAMPOLINE_INIT): New.
7472         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
7473         to h8300_trampoline_init and adjust for hook parameters.
7474
7475         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
7476         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
7477         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
7478         make static; adjust for hook parameters.
7479         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
7480
7481         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7482         (TARGET_TRAMPOLINE_INIT): New.
7483         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
7484         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
7485         iq2000_asm_trampoline_template.
7486         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
7487         (TRAMPOLINE_CODE_SIZE): New.
7488         (TRAMPOLINE_SIZE): Use it.
7489         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
7490
7491         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
7492         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
7493         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
7494         adjust for hook parameters.
7495         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
7496
7497         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
7498         (m32r_trampoline_init): New.
7499         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
7500         m32r_trampoline_init.
7501
7502         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
7503         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
7504         make static; update for hook parameters.
7505         * config/m68hc11/m68hc11-protos.h: Update.
7506         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
7507
7508         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7509         (TARGET_TRAMPOLINE_INIT): New.
7510         (mcore_function_value): Fix typo.
7511         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
7512         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
7513         to mcore_asm_trampoline_template.
7514         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
7515
7516         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
7517         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
7518         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
7519         update for hook parameters.
7520         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
7521
7522         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7523         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7524         mips_trampoline_init): New.
7525         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
7526         mips_asm_trampoline_template.
7527         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
7528         update for hook parameters.
7529
7530         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7531         (TARGET_TRAMPOLINE_INIT): New.
7532         (mmix_trampoline_size): Remove.
7533         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
7534         make static.  Remove out-of-date tetra vs octa comment.
7535         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
7536         make static; update for hook parameters.
7537         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
7538         (INITIALIZE_TRAMPOLINE): Remove.
7539         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
7540         (TRAMPOLINE_ALIGNMENT): New.
7541         * gcc/config/mmix/mmix-protos.h: Update.
7542
7543         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7544         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7545         mn10300_trampoline_init): New.
7546         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
7547         mn10300_asm_trampoline_template.
7548         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
7549
7550         * config/moxie/moxie.c (moxie_static_chain,
7551         moxie_asm_trampoline_template, moxie_trampoline_init,
7552         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
7553         TARGET_TRAMPOLINE_INIT): New.
7554         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
7555         moxie_trampoline_init.
7556         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
7557         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7558
7559         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7560         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7561         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
7562         pa_trampoline_adjust_address): New.
7563         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
7564         pa_asm_trampoline_template.
7565         (TRAMPOLINE_ALIGNMENT): New.
7566         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
7567         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
7568         adjust for hook parameters.
7569         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
7570
7571         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
7572         (TARGET_TRAMPOLINE_INIT): New.
7573         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
7574         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
7575
7576         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
7577
7578         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
7579         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
7580         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
7581         make static; adjust parameters for the hook.
7582         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
7583
7584         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
7585         s390_trampoline_template; make static.
7586         (s390_trampoline_init): Rename from s390_initialize_trampoline;
7587         make static; adjust for target hook.
7588         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7589         * config/s390/s390-protos.h: Remove trampoline decls.
7590         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
7591         (TRAMPOLINE_TEMPLATE): Remove.
7592         (TRAMPOLINE_ALIGNMENT): New.
7593
7594         * config/score/score-protos.h (score_initialize_trampoline): Remove.
7595         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7596         (TARGET_TRAMPOLINE_INIT): New.
7597         (score_asm_trampoline_template): New.
7598         (score_trampoline_init): Rename from score_initialize_trampoline;
7599         make static; adjust for hook parameters.
7600         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
7601         score[37]_asm_trampoline_template.
7602         (INITIALIZE_TRAMPOLINE): Remove.
7603         * config/score/score3.c (score3_asm_trampoline_template): New.
7604         (score3_trampoline_init): Rename from score3_initialize_trampoline;
7605         adjust for target hook.
7606         * config/score/score7.c (score7_asm_trampoline_template): New.
7607         (score7_trampoline_init): Rename from score7_initialize_trampoline;
7608         adjust for target hook.
7609         * config/score/score3.h, config/score/score7.h: Update.
7610
7611         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
7612         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
7613         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7614         (sh_trampoline_init): Rename from sh_initialize_trampoline;
7615         make static; adjust for target hook parameters.
7616         (sh_trampoline_adjust_address): New.
7617         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
7618         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
7619
7620         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
7621         (sparc32_initialize_trampoline): Rename from
7622         sparc_initialize_trampoline; make static; replace tramp parameter
7623         with m_tramp and update memory accesses.
7624         (sparc64_initialize_trampoline): Similarly.
7625         (sparc_trampoline_init): New.
7626         * config/sparc/sparc-protos.h: Remove trampoline decls.
7627         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
7628         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
7629
7630         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
7631         (array_to_constant): Make ARR parameter const.
7632         (spu_trampoline_init): Rename from spu_initialize_trampoline;
7633         make static; update for hook parameters.
7634         * config/spu/spu-protos.h: Update decls.
7635         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
7636
7637         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
7638         from xstormy16_initialize_trampoline; make static; update for
7639         hook parameters.
7640         (TARGET_TRAMPOLINE_INIT): New.
7641         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
7642
7643         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7644         (TARGET_TRAMPOLINE_INIT): New.
7645         (v850_can_eliminate): Make static.
7646         (v850_asm_trampoline_template, v850_trampoline_init): New.
7647         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
7648         v850_asm_trampoline_template.
7649         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
7650         and adjust for target hook parameters.
7651
7652         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7653         (TARGET_TRAMPOLINE_INIT): New.
7654         (vax_asm_trampoline_template, vax_trampoline_init): New.
7655         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
7656         vax_asm_trampoline_template.
7657         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
7658
7659         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7660         (TARGET_TRAMPOLINE_INIT): New.
7661         (xtensa_asm_trampoline_template): Rename from
7662         xtensa_trampoline_template; make static.
7663         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
7664         make static; update for hook parameters.
7665         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
7666         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
7667         (INITIALIZE_TRAMPOLINE): Remove.
7668
7669         * config/i386/i386.c (ix86_function_regparm): Do not issue an
7670         error for nested functions with regparm=3.
7671         (ix86_compute_frame_layout): Adjust frame pointer offset for
7672         ix86_static_chain_on_stack.
7673         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
7674         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
7675         don't reset to UNITS_PER_WORD.
7676         (ix86_emit_leave): Adjust ix86_cfa_state.
7677         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
7678         (ix86_static_chain): New.
7679         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
7680         make static; update for target hook parameters; use ix86_static_chain.
7681         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7682         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
7683         (INITIALIZE_TRAMPOLINE): Remove.
7684         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
7685         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
7686         to the end.  Add static_chain_on_stack.
7687         (ix86_static_chain_on_stack): New.
7688
7689         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
7690         (m68k_output_mi_thunk): Don't use static_chain_rtx.
7691         (m68k_trampoline_init): New.
7692         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
7693         m68k_trampoline_init and adjust for hook parameters.
7694         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
7695         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
7696
7697 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7698
7699         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
7700         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
7701
7702         * reload1.c (reload): Call wrap_constant when substituting
7703         reg for equiv inside of DEBUG_INSNs.
7704
7705         PR bootstrap/41405
7706         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
7707         add_call_src_coords_attributes, add_high_low_attributes,
7708         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
7709         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
7710         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
7711         when -gdwarf-2 -gstrict-dwarf.
7712         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
7713         -gdwarf-[23] -gstrict-dwarf.
7714         (address_of_int_loc_descriptor, loc_descriptor,
7715         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
7716         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
7717         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
7718
7719 2009-09-22  Richard Guenther  <rguenther@suse.de>
7720
7721         PR tree-optimization/41428
7722         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
7723         (ccp_finalize): Pass it to substitute_and_fold.
7724
7725 2009-09-22  Richard Guenther  <rguenther@suse.de>
7726
7727         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
7728         (substitute_and_fold): Adjust prototype.
7729         * tree-vrp.c (vrp_evaluate_conditional): Make static.
7730         (simplify_stmt_using_ranges): Likewise.
7731         (fold_predicate_in): Move here from tree-ssa-propagate.c.
7732         (vrp_fold_stmt): New function.
7733         (vrp_finalize): Pass it to substitute_and_fold.
7734         * tree-flow.h (vrp_evaluate_conditional): Remove.
7735         (simplify_stmt_using_ranges): Likewise.
7736         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
7737         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7738         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
7739         member.
7740         (fold_predicate_in): Move to tree-vrp.c.
7741         (substitute_and_fold): Use the callback instead of calling into
7742         tree-vrp.c functions directly.
7743
7744 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7745
7746         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
7747         comparison warning on rs6000.
7748
7749         PR middle-end/41429
7750         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
7751         GIMPLE_EH_MUST_NOT_THROW cleanup.
7752         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7753
7754 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
7755
7756         PR middle-end/41260
7757         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
7758         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
7759         LIB_SPEC for darwin10 and later since it always uses the unwinder in
7760         libSystem which is derived from the gcc 4.2.1 unwinder.
7761
7762 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7763
7764         PR middle-end/41357
7765         * varasm.c (default_encode_section_info): Copy TLS model into
7766         sym_ref flags regardless of backend support for TLS, for all
7767         model types except TLS_MODEL_EMULATED.
7768
7769 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7770
7771         PR bootstrap/41404
7772         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
7773         we can handle it correctly.
7774
7775 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7776
7777         * doc/install.texi (os2): Remove section.
7778
7779 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7780
7781         * doc/standards.texi (Objective-C): Adjust two URLs.
7782
7783 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
7784
7785         * tree-tailcall.c (process_assignment): Don't check if a
7786         multiplication or an addition are already present.
7787         (find_tail_calls): Combine multiple additions and multiplications.
7788         (adjust_accumulator_values): Emit accumulators.
7789
7790 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
7791
7792         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
7793         xmm register restore.
7794
7795 2009-09-21  Jan Hubicka  <jh@suse.cz>
7796
7797         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
7798         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
7799         restore at the end.
7800
7801 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
7802
7803         * stor-layout.c (layout_type): Remove obsolete code.
7804
7805 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
7806
7807         PR middle-end/41395
7808         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
7809
7810 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7811
7812         PR middle-end/30789
7813         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
7814         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
7815         (fold_builtin_2, do_mpc_arg1): Update accordingly.
7816         * fold-const.c (const_binop): Likewise.
7817         * real.h (do_mpc_arg2): Update prototype.
7818
7819 2009-09-20  Jan Hubicka  <jh@suse.cz>
7820
7821         * dwarf2out.c (add_const_value_attribute): Return true if successful.
7822         (add_location_or_const_value_attribute): Rewrite using
7823         loc_list_from_tree.
7824         (tree_add_const_value_attribute): Return true if successful.
7825         (tree_add_const_value_attribute_for_decl): Likewise.
7826
7827         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
7828         (loc_descriptor): ... here;
7829         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7830         (cst_pool_loc_descr): Break out from ...; do not reffer constant
7831         pool items that was not marked for output.
7832         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
7833         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7834         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7835         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
7836         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
7837         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
7838         DW_OP_stack_value to get address of items that are not available
7839         as addresses.
7840         (dw_loc_list): Handle single element lists correctly.
7841
7842 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
7843             Pascal Obry  <obry@adacore.com>
7844
7845         * unwind-dw2-fde.c (classify_object_over_fdes):
7846         Cast the constant 1 to _Unwind_Ptr.
7847         (add_fdes): Likewise.
7848         (linear_search_fdes): Likewise.
7849
7850 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7851
7852         * stor-layout.c (set_sizetype): Avoid useless type copy.
7853
7854 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
7855
7856         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
7857         feature check.
7858         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
7859         * configure, config.in: Regenerate.
7860         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
7861         DW_EH_PE_absptr.
7862         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
7863         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
7864         for global data if the output could be used in a shared library.
7865         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
7866         to 0 if TARGET_WRITABLE_EH_FRAME.
7867
7868 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
7869
7870         PR rtl-optimization/39886
7871         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
7872         just when insn is equal to BB_END (bb).
7873
7874 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
7875
7876         * config/mips/mips.opt (mrelax-pic-calls): New option.
7877         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
7878         the file.
7879         (mips_unspec_call): Change "unspec_call" expander into this.
7880         (mips_strip_unspec_call): New function.
7881         (mips_got_load): Call mips_unspec_call instead of
7882         gen_unspec_call<mode>.
7883         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
7884         MIPS_CALL.
7885         (mips_cfg_in_reorg): New function.
7886         (mips16_lay_out_constants): Use it to decide whether to call
7887         CFG-aware insn splitting.
7888         (r10k_insert_cache_barriers): Move CFG set-up code from here to
7889         mips_reorg.  Move DF set-up code from here ...
7890         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
7891         from here.
7892         (mips_reorg): Call mips_df_reorg instead of
7893         r10k_insert_cache_barriers.  Move CFG set-up code here from
7894         r10k_insert_cache_barriers.
7895         (mips_call_expr_from_insn): New function.
7896         (mips_pic_call_symbol_from_set): Likewise.
7897         (mips_find_pic_call_symbol): Likewise.
7898         (mips_annotate_pic_call_expr): Likewise.
7899         (mips_get_pic_call_symbol): Likewise.
7900         (mips_annotate_pic_calls): Likewise.
7901         (mips_override_options): Disable -mrelax-pic-calls unless PIC
7902         calls are used.
7903         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
7904         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
7905         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
7906         directive.
7907         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
7908         (unspec_call<mode>): Remove it.
7909         (sibcall_internal, sibcall_value_internal,
7910         sibcall_value_multiple_internal, call_internal, call_split,
7911         call_value_internal, call_value_split,
7912         call_value_multiple_internal, call_value_multiple_split): Pass
7913         SIZE_OPNO to MIPS_CALL.
7914         (call_internal_direct, call_direct_split,
7915         call_value_internal_direct, call_value_direct_split): Pass -1 as
7916         SIZE_OPNO to MIPS_CALL.
7917         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
7918         * configure: Regenerate.
7919         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
7920         and -mno-relax-pic-calls.
7921         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
7922
7923 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7924
7925         PR bootstrap/35619
7926         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
7927         in the directory this rule is called from, rather than the
7928         toplevel 'gcc' directory, to fix in-tree build.
7929
7930 2009-09-19  Chris Demetriou  <cgd@google.com>
7931
7932         PR preprocessor/28435:
7933         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
7934         to cpplib that the preprocessor output is needed.
7935
7936 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
7937
7938         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
7939         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
7940         *return_and_restore_fpregs_<mode>,
7941         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
7942
7943         PR bootstrap/41397
7944         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
7945         instead of assuming it has always a REG inside of it.
7946
7947 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
7948
7949         * config/freebsd.h: Update comment on types.
7950         (WINT_TYPE): Define.
7951
7952 2009-09-18  Jason Merrill  <jason@redhat.com>
7953
7954         * c.opt: Add -fno-deduce-init-list.
7955
7956 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
7957
7958         * value-prof.c (interesting_stringop_to_profile_p): Added output
7959         argument to indicate which parameter is the size parameter.
7960         * value-prof.c (gimple_stringop_fixed_value): Use
7961         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
7962         * value-prof.c (gimple_stringops_transform): Update call sites to
7963         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
7964
7965 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
7966
7967         PR target/38288
7968         From David Binderman <dcb314@hotmail.com>:
7969         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
7970         local variable f.  Remove stale comments.
7971         (ix86_compute_frame_layout): Remove useless local variable total_size.
7972         Remove #if 0'd code.
7973         (legitimate_address_p): Remove useless local variables
7974         reason_rtx and reason.
7975         (ix86_split_copysign_const): Remove useless local variable op1.
7976         (scale_counter): Remove useless local variable piece_size_mask.
7977
7978 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
7979
7980         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
7981         output decl.
7982
7983 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7984
7985         PR target/40913
7986         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
7987
7988 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
7989
7990         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
7991         TYPE_STUB_DECL.
7992
7993 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
7994
7995         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
7996         DW_OP_implicit_value even without dwarf_version 4.
7997
7998 2009-09-17  Jan Hubicka  <jh@suse.cz>
7999
8000         * dwarf2out.c: Include tree-pass.h and gimple.h.
8001         (loc_list_plus_const): New function.
8002         (loc_descriptor_from_tree_1): Rename to ...
8003         (loc_descriptor_from_tree): ... remove original.
8004         (loc_list_from_tree): New function.
8005         (add_AT_location_description): Accept location list.
8006         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
8007         (concatn_mem_loc_descriptor): Remove.
8008         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
8009         returning NULL.
8010         (secname_for_decl): Move up.
8011         (hidden_reference_p): New function; break out from ...
8012         (loc_by_refernece): ... here; move up.
8013         (dw_loc_list): New function.
8014         (single_element_loc_list): New function.
8015         (single_element_loc_list_p): New function.
8016         (add_loc_descr_to_each): New function.
8017         (add_loc_list): New function.
8018         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
8019         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
8020         add diagnostics why expansion failed.
8021         (add_location_or_const_value_attribute): Support location lists.
8022         (add_bound_info): Likewise.
8023         (descr_info_loc): Update call of loc_descriptor_from_tree.
8024         (gen_variable_die): Work on location lists.
8025         * final.c (pass_final): Add dump file.
8026         * Makefile.in (dwarf2out.o): Add new dependencies.
8027
8028 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
8029
8030         PR c/41049
8031         * real.c decimal_from_integer, decimal_integer_string): New.
8032         (real_from_integer): Use them as special case for decimal float.
8033         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
8034         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
8035         Do not append zero after the decimal point in string to convert.
8036
8037 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
8038
8039         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
8040         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
8041
8042 2009-09-17  Martin Jambor  <mjambor@suse.cz>
8043
8044         * common.opt (fipa-sra): New switch.
8045         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
8046         * timevar.def (TV_IPA_SRA): New timevar.
8047         * params.def (ipa-sra-ptr-growth-factor): New parameter.
8048         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
8049         * tree-sra.c: Include cgraph.c.
8050         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
8051         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
8052         and grp_not_necessarilly_dereferenced.
8053         (func_param_count): New variable.
8054         (encountered_apply_args): New variable.
8055         (bb_dereferences): New variable.
8056         (final_bbs): New variable.
8057         (no_accesses_representant): New variable.
8058         (no_accesses_p): New function.
8059         (dump_access): Dump the new fields.
8060         (sra_initialize): Set encountered_apply_args to false.
8061         (get_ssa_base_param): New function.
8062         (mark_parm_dereference): New function.
8063         (create_access): Caring for INIDRECT_REFs and different handling of
8064         varialble length accesses in early IPA SRA.  Store the stmt - a new
8065         parameter - to the new access.
8066         (build_access_from_expr_1): New parameter stmt, passed to
8067         create_access.  Handle INDIRECT_REFs.
8068         (build_access_from_expr): Pass the current statement to
8069         build_access_from_expr_1.
8070         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
8071         passes.
8072         (build_accesses_from_assign): Pass the current statement to
8073         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
8074         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
8075         final_bbs when necessary.  Check for calls to __builtin_apply_args.
8076         Fixup EH info if anythng was changed.
8077         (is_unused_scalar_param): New function.
8078         (ptr_parm_has_direct_uses): New function.
8079         (find_param_candidates): New function.
8080         (mark_maybe_modified): New function.
8081         (analyze_modified_params): New function.
8082         (propagate_dereference_distances): New function.
8083         (dump_dereferences_table): New function.
8084         (analyze_caller_dereference_legality): New function.
8085         (unmodified_by_ref_scalar_representative): New function.
8086         (splice_param_accesses): New function.
8087         (decide_one_param_reduction): New function.
8088         (enum ipa_splicing_result): New type.
8089         (splice_all_param_accesses): New function.
8090         (get_param_index): New function.
8091         (turn_representatives_into_adjustments): New function.
8092         (analyze_all_param_acesses): New function.
8093         (get_replaced_param_substitute): New function.
8094         (get_adjustment_for_base): New function.
8095         (replace_removed_params_ssa_names): New function.
8096         (sra_ipa_reset_debug_stmts): New function.
8097         (sra_ipa_modify_expr): New function.
8098         (sra_ipa_modify_assign): New function.
8099         (convert_callers): New function.
8100         (modify_function): New function.
8101         (ipa_sra_preliminary_function_checks): New function.
8102         (ipa_early_sra): New function.
8103         (ipa_early_sra_gate): New function.
8104         (pass_early_ipa_sra): New variable.
8105         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
8106
8107 2009-09-17  Michael Matz  <matz@suse.de>
8108
8109         PR middle-end/41347
8110         * tree.c (build_type_attribute_qual_variant): Export.
8111         * tree.h (build_type_attribute_qual_variant): Declare.
8112         * tree-inline.c (remap_type_1): Use it to build variants with
8113         the original qualifiers and attributes.
8114
8115 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8116
8117         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
8118         without a fallthrough edge.
8119
8120 2009-09-16  DJ Delorie  <dj@redhat.com>
8121
8122         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
8123         chip and ignore the "fast_interrupt" attribute if so.
8124
8125 2009-09-16  Richard Henderson  <rth@redhat.com>
8126
8127         PR middle-end/41360
8128         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
8129         barrier fix.
8130
8131 2009-09-16  Richard Henderson  <rth@redhat.com>
8132
8133         PR target/41246
8134         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
8135         is set only if DECL_NO_STATIC_CHAIN is unset.
8136         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
8137         (FOR_EACH_NEST_INFO): New.
8138         (walk_all_functions): Use it.
8139         (finalize_nesting_tree): Likewise.
8140         (unnest_nesting_tree): Likewise.
8141         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
8142         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
8143         (convert_gimple_call): Early out if gimple_call_chain already set.
8144         (convert_all_function_calls): Iterate until no new functions
8145         require a static chain.
8146         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
8147         when building a trampoline.  Use dump_function_to_file instead
8148         of dump_function.
8149         (lower_nested_functions): Open dump_file.  Validate that decls
8150         that have DECL_NO_STATIC_CHAIN from the front end don't have that
8151         bit reset by this pass.
8152
8153 2009-09-16  Michael Matz  <matz@suse.de>
8154
8155         PR fortran/41212
8156         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
8157         shorten decl_common_unused.
8158         (DECL_RESTRICTED_P): New accessor.
8159         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
8160         to disambiguate marked decls and restrict pointers.
8161
8162 2009-09-16  Richard Henderson  <rth@redhat.com>
8163
8164         PR middle-end/41360
8165         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
8166
8167 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
8168
8169         * integrate.c (set_block_abstract_flags): Call
8170         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
8171
8172 2009-09-16  Richard Guenther  <rguenther@suse.de>
8173
8174         PR middle-end/34011
8175         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
8176         as non-aliased.
8177
8178 2009-09-16  DJ Delorie  <dj@redhat.com>
8179             Kaz Kojima  <kkojima@gcc.gnu.org>
8180
8181         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
8182         (sh_expand_prologue): Update calls to output_stack_adjust.
8183         (sh_expand_epilogue): Likewise.
8184
8185 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
8186
8187         PR bootstrap/41349
8188         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
8189         trying to limit the extent of searches in the insn stream.
8190
8191 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
8192             Jakub Jelinek  <jakub@redhat.com>
8193
8194         PR target/41175
8195         PR target/40677
8196         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
8197         problem.
8198         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
8199         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
8200         (rs6000_savres_strategy): Always save FP registers inline if the
8201         target doesn't support hardware double-precision.  Set the above
8202         bits in return value when needed.
8203         (rs6000_savres_routine_sym): Fix computation for cache selector.
8204         Mark the generated symbol as a function.  Rename exitp argument to
8205         lr.  Move code for determining the name of the symbol...
8206         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
8207         getting the names right on AIX and 64-bit Linux.
8208         (savres_routine_name): New variable.
8209         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
8210         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
8211         on what the target routine uses as a base register.  If savep && lr
8212         describe saving of r0 into memory slot.
8213         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
8214         line calls for AIX ABI.
8215         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
8216         determine FP save/restore functions.
8217         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
8218         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
8219         gen_addsi3.
8220         (rs6000_emit_epilogue): Adjust computation of restore_lr.
8221         Duplicate restoration of LR and execute the appropriate one
8222         depending on whether GPRs are being restored inline.  Set r11 from
8223         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
8224         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
8225         Fix out of line calls for AIX ABI.
8226         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
8227         New insn.
8228         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
8229         register 11.
8230         (*restore_gpregs_spe): Likewise.
8231         (*return_and_restore_gpregs_spe): Likewise.
8232         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8233         Define to empty string unconditionally.
8234         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8235         Define to empty string unconditionally.
8236         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
8237         !TARGET_64BIT.
8238
8239 2009-09-15  Jan Hubicka  <jh@suse.cz>
8240
8241         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
8242         * params.def (inline-insns-auto): Likewise.
8243
8244 2009-09-15  Martin Jambor  <mjambor@suse.cz>
8245
8246         * ipa-inline.c (estimate_function_body_sizes): Dump info about
8247         individual statements only at TDF_DETAILS dump level.  Format
8248         source for 80 characters per line.
8249
8250 2009-09-15  Christian Bruel  <christian.bruel@st.com>
8251
8252         * regrename.c (do_replace): Update REG_DEAD notes.
8253
8254 2009-09-15  Revital Eres  <eres@il.ibm.com>
8255
8256         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
8257         * targhooks.c (default_builtin_support_vector_misalignment):
8258         New builtin function.
8259         * targhooks.h (default_builtin_support_vector_misalignment):
8260         Declare.
8261         * target.h (builtin_support_vector_misalignment):
8262         New field in struct gcc_target.
8263         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
8264         new builtin function.
8265         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
8266         Define.
8267         * config/rs6000/rs6000.c
8268         (rs6000_builtin_support_vector_misalignment): New function.
8269         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
8270
8271 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
8272
8273         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
8274         instead of INSN_P.
8275         (bfin_optimize_loop): Likewise.
8276         (bfin_gen_bundles): Likewise.
8277         (workaround_speculation): Likewise.
8278         (find_load): Return NULL_RTX for debug_insn.
8279
8280 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
8281
8282         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
8283         (sminsf3): Ditto.
8284
8285 2009-09-14  DJ Delorie  <dj@redhat.com>
8286
8287         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
8288         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
8289         VLIW mode.
8290
8291 2009-09-14  Richard Henderson  <rth@redhat.com>
8292             Jakub Jelinek  <jakub@redhat.com>
8293
8294         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
8295         * cfgbuild.c (make_edges): Handle asm goto.
8296         * cfglayout.c (fixup_reorder_chain): Likewise.
8297         * cfgrtl.c (patch_jump_insn): Likewise.
8298         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
8299         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
8300         (gimple_build_asm_vec): Add and use labels parameter.
8301         (gimple_build_asm): Remove.
8302         (walk_gimple_asm): Walk labels too.
8303         * gimple.def (GIMPLE_ASM): Update docs.
8304         * gimple.h: Update decls.
8305         (struct gimple_statement_asm): Change nc to use unsigned char;
8306         add nl member.
8307         (gimple_asm_nlabels): New.
8308         (gimple_asm_label_op, gimple_asm_set_label_op): New.
8309         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
8310         into gimple_build_asm_vec.
8311         * jump.c (mark_jump_label_asm): New.
8312         (mark_jump_label): Use it.
8313         (redirect_jump_1): Handle asm goto.
8314         (invert_jump_1): Soft fail if X is null.
8315         * recog.c (extract_asm_operands): New.
8316         (asm_noperands): Use it; handle asm labels.
8317         (decode_asm_operands): Use extract_asm_operands.
8318         (asm_operand_ok): Properly handle empty string.
8319         * reg-stack.c (get_asm_operands_in_out): Rename from
8320         get_asm_operand_n_inputs; use extract_asm_operands; return both
8321         inputs and outputs by reference; update all callers.
8322         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
8323         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
8324         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
8325         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
8326         (extract_asm_operands): Declare.
8327         * stmt.c (expand_asm_operands): Add and use labels parameter.
8328         (check_unique_operand_names): Likewise.
8329         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
8330         (expand_asm_stmt): Handle asm labels.
8331         * tree-cfg.c (make_gimple_asm_edges): New.
8332         (make_edges): Use it.
8333         (cleanup_dead_labels): Handle asm labels.
8334         (is_ctrl_altering_stmt): Likewise.
8335         (gimple_redirect_edge_and_branch): Likewise.
8336         * tree.def (ASM_EXPR): Add 5th operand.
8337         * tree.h (ASM_LABELS): New.
8338         (resolve_asm_operand_names): Update decl.
8339
8340         * c-parser.c (c_parser_asm_statement): Parse asm goto.
8341         (c_parser_asm_goto_operands): New.
8342         * c-tree.h (build_asm_expr): Update decl.
8343         * c-typeck.c (build_asm_expr): Add and use labels parameter.
8344         * doc/extend.texi: Document asm goto.
8345
8346 2009-09-14  Richard Henderson  <rth@redhat.com>
8347
8348         * except.h: Update declarations.
8349         (struct pointer_map_t): Forward declare.
8350         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
8351         (struct eh_landing_pad_d, eh_landing_pad): New.
8352         (struct eh_catch_d, eh_catch): New.
8353         (struct eh_region_d): Remove next_region_sharing_label, aka,
8354         label, tree_label, landing_pad, post_landing_pad, resume,
8355         may_contain_throw.  Rename region_number to index.  Remove
8356         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
8357         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
8358         (VEC(eh_landing_pad,gc)): New.
8359         (struct eh_status): Remove last_region_number.  Add lp_array,
8360         throw_stmt_table, ttype_data, ehspec_data.
8361         (ehr_next, FOR_ALL_EH_REGION_AT): New.
8362         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
8363         * except.c (lang_protect_cleanup_actions): Return tree.
8364         (struct ehl_map_entry): Remove.
8365         (init_eh_for_function): Push zero entries for region and lp_array.
8366         (gen_eh_region): Add to region_array immediately.
8367         (gen_eh_region_catch): Operate on eh_catch objects.
8368         (gen_eh_landing_pad): New.
8369         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
8370         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
8371         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
8372         (get_eh_landing_pad_from_number_fn): New.
8373         (get_eh_landing_pad_from_number): New.
8374         (get_eh_region_from_lp_number_fn): New.
8375         (get_eh_region_from_lp_number): New.
8376         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
8377         (get_exception_pointer, get_exception_filter): Remove.
8378         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
8379         (current_function_has_exception_handlers): Simplify.
8380         (bring_to_root, eh_region_replaceable_by_p): Remove.
8381         (replace_region, hash_type_list, hash_eh_region): Remove.
8382         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
8383         (label_to_region_map, num_eh_regions): Remove.
8384         (get_next_region_sharing_label, must_not_throw_labels): Remove.
8385         (find_exception_handler_labels): Remove.
8386         (duplicate_eh_regions_0, find_prev_try): Remove.
8387         (struct duplicate_eh_regions_data): New.
8388         (duplicate_eh_regions_1): Rewrite.
8389         (duplicate_eh_regions): Return a pointer map instead of an
8390         integer offset.
8391         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
8392         (redirect_eh_edge_to_label): Remove.
8393         (eh_region_outermost): Rewrite using eh_region pointers
8394         instead of integers.
8395         (add_ttypes_entry): Update for ttype_data move to eh_status.
8396         (add_ehspec_entry): Rewrite with VEC instead of varray.
8397         (assign_filter_values): Likewise.  Export.
8398         (build_post_landing_pads, connect_post_landing_pads): Remove.
8399         (dw2_build_landing_pads): Rewrite to use lp_array.
8400         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
8401         (sjlj_assign_call_site_values): Rewrite to use lp_array.
8402         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
8403         (sjlj_mark_call_sites): Update for landing pad numbers.
8404         (finish_eh_generation): Rewrite.
8405         (gate_handle_eh): Do nothing for no eh tree.
8406         (pass_rtl_eh): Move up near finish_eh_generation.
8407         (remove_eh_landing_pad): New.
8408         (remove_eh_handler): Export.
8409         (remove_eh_region, remove_eh_handler_and_replace): Remove.
8410         (for_each_eh_label): Rewrite to use lp_array.
8411         (make_reg_eh_region_note): New.
8412         (make_reg_eh_region_note_nothrow_nononlocal): New.
8413         (insn_could_throw_p): New.
8414         (copy_reg_eh_region_note_forward): New.
8415         (copy_reg_eh_region_note_backward): New.
8416         (check_handled, add_reachable_handler): Remove.
8417         (reachable_next_level, foreach_reachable_handler): Remove.
8418         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
8419         (get_eh_region_and_lp_from_rtx): New.
8420         (get_eh_region_from_rtx): New.
8421         (can_throw_internal_1, can_throw_external_1): Remove.
8422         (can_throw_internal): Use get_eh_region_from_rtx.
8423         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
8424         (insn_nothrow_p, can_nonlocal_goto): New.
8425         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
8426         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
8427         (add_action_record): Use VEC not varray.
8428         (collect_one_action_chain): Update for eh_region changes.
8429         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
8430         Use get_eh_region_and_lp_from_rtx.
8431         (gate_convert_to_eh_region_ranges): New.
8432         (pass_convert_to_eh_region_ranges): Use it.
8433         (push_uleb128, push_sleb128): Use VEC not varray.
8434         (output_one_function_exception_table): Likewise.
8435         (dump_eh_tree): Update for eh_region changes.
8436         (verify_eh_tree): Likewise.
8437         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
8438         * tree-eh.c: Include target.h.
8439         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
8440         Don't disallow GIMPLE_RESX; adjust argument check.
8441         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
8442         (record_stmt_eh_region): Update for landing pad numbers;
8443         generate a landing pad if necessary.
8444         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
8445         (remove_stmt_from_eh_lp_fn): Similarly.
8446         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
8447         Update for lp numbers; don't special case missing throw_stmt_table.
8448         (lookup_expr_eh_lp): Similarly.
8449         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
8450         (eh_seq, eh_region_may_contain_throw): New.
8451         (struct leh_state): Add ehp_region.
8452         (struct leh_tf_state): Remove eh_label.
8453         (emit_post_landing_pad): New.
8454         (emit_resx, emit_eh_dispatch): New.
8455         (note_eh_region_may_contain_throw): New.
8456         (frob_into_branch_around): Take eh_region not eh label;
8457         emit eh code into eh_seq.
8458         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
8459         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
8460         lower_eh_must_not_throw.  Emit code to eh_seq.
8461         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
8462         (lower_try_finally_onedest): Likewise.
8463         (lower_try_finally_copy): Likewise.
8464         (lower_try_finally_switch): Likewise.
8465         (lower_try_finally): Initialize ehp_region.
8466         (lower_catch): Update for eh_catch objects.
8467         (lower_eh_filter): Don't handle must_not_throw.
8468         (lower_eh_must_not_throw): New.
8469         (lower_cleanup): Don't set eh_label.
8470         (lower_eh_constructs_2): Resolve eh builtins.
8471         Handle GIMPLE_EH_MUST_NOT_THROW.
8472         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
8473         Add eh_seq to the end of the function body.
8474         (make_eh_dispatch_edges): New.
8475         (make_eh_edge): Remove.
8476         (make_eh_edges): Simplify for landing pads.
8477         (redirect_eh_edge_1): New.
8478         (redirect_eh_edge): Use it.
8479         (redirect_eh_dispatch_edge): New.
8480         (stmt_could_throw_p): Use a switch.  Allow RESX.
8481         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
8482         (stmt_can_throw_internal): Likewise.
8483         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
8484         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
8485         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
8486         (gate_refactor_eh): New.
8487         (pass_refactor_eh): Use it.
8488         (lower_resx, execute_lower_resx, pass_lower_resx): New.
8489         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
8490         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
8491         (remove_unreachable_handlers): Rename from
8492         tree_remove_unreachable_handlers; rewrite for landing pads;
8493         call remove_eh_handler directly.
8494         (remove_unreachable_handlers_no_lp): New.
8495         (unsplit_eh, unsplit_all_eh): New.
8496         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
8497         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
8498         (cleanup_empty_eh_unsplit): New.
8499         (cleanup_empty_eh): Rewrite.
8500         (cleanup_all_empty_eh): New.
8501         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
8502         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
8503         (gate_cleanup_eh): New.
8504         (pass_cleanup_eh): Use it.
8505         (verify_eh_edges): Move later in file.  Expect one EH edge.
8506         (verify_eh_dispatch_edge): New.
8507
8508         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
8509         (gtype-desc.o): Add TARGET_H.
8510         (tree.o): Use EXCEPT_H, not except.h.
8511         (cfgbuild.o): Add EXPR_H.
8512         (GTFILES): Add vecprim.h.
8513         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
8514         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
8515         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
8516         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
8517         * calls.c (emit_call_1): Use make_reg_eh_region_note.
8518         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
8519         calls to can_throw_internal.
8520         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
8521         (make_edges): Don't handle RESX; use can_nonlocal_goto.
8522         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
8523         (expand_gimple_stmt): Use make_reg_eh_region_note.
8524         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
8525         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
8526         or find_exception_handler_labels.
8527         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
8528         there is exacly one EH edge.  Use can_nonlocal_goto and
8529         can_throw_internal.
8530         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
8531         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
8532         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
8533         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
8534         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
8535         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
8536         * dse.c (scan_insn): Use insn_could_throw_p.
8537         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
8538         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
8539         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
8540         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
8541         EXC_PTR_EXPR or FILTER_EXPR.
8542         (tree_expr_nonzero_warnv_p): Likewise.
8543         * function.h: Include vecprim.h, not varray.h
8544         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
8545         move ttype_data and ehspec_data members to struct eh_status; change
8546         action_record_data member to a VEC.
8547         * gcse.c (hash_scan_set): Use can_throw_internal.
8548         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
8549         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
8550         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8551         (block_may_fallthru): Don't handle RESX_EXPR.
8552         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
8553         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
8554         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
8555         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
8556         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
8557         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
8558         (gimple_size): Likewise.
8559         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
8560         (gimple_build_resx): Use gimple_build_with_ops.
8561         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
8562         (is_gimple_val): Likewise.
8563         (is_gimple_stmt): Remove RESX_EXPR.
8564         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
8565         (GIMPLE_RESX): Reorder with other EH constructs.
8566         * gimple.h (struct gimple_statement_eh_mnt): New.
8567         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
8568         (gimple_eh_filter_must_not_throw): Remove.
8569         (gimple_eh_filter_set_must_not_throw): Remove.
8570         (gimple_eh_must_not_throw_fndecl): New.
8571         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
8572         (is_gimple_resx): New.
8573         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
8574         Don't copy EH_FILTER_MUST_NOT_THROW.
8575         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
8576         * ipa-inline.c (estimate_function_body_sizes): Don't try to
8577         handle must_not_throw_labels specially.
8578         * ipa-pure-const.c (check_call): Update debug statement for LP.
8579         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
8580         * ipa-utils.c (get_base_var): Likewise.
8581         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
8582         * lower-subreg.c (move_eh_region_note): Remove.
8583         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
8584         * omp-low.c (new_omp_context): Update for eh_lp_nr.
8585         (create_task_copyfn): Likewise.
8586         (maybe_catch_exception): Use gimple_build_eh_filter.
8587         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
8588         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
8589         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
8590         and pass_lower_resx.
8591         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
8592         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
8593         can_throw_internal, can_nonlocal_goto.
8594         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
8595         copy_reg_eh_region_note_forward.
8596         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
8597         (emit_output_reload_insns): Likewise.
8598         (copy_eh_notes): Remove.
8599         * rtl.def (RESX): Remove.
8600         * rtl.h: Update declarations.
8601         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
8602         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
8603         (update_eh_label): Remove.
8604         (cleanup_dead_labels_eh): New.
8605         (cleanup_deal_labels): Use it instead of update_eh_label.
8606         (gimple_merge_blocks): Update landing pad data structure when
8607         removing a landing pad label.
8608         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
8609         test; handle GIMPLE_EH_MUST_NOT_THROW.
8610         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
8611         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
8612         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
8613         (verify_stmt): Likewise.  Verify landing pads.
8614         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
8615         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
8616         (struct move_stmt_d): Add eh_map.
8617         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
8618         (move_stmt_r): Remap eh region numbers in builtin calls,
8619         resx and eh_dispatch.
8620         (move_block_to_fn): Remove eh_offset parameter.  Use
8621         maybe_duplicate_eh_stmt_fn.
8622         (find_outermost_region_in_block): Operate on eh_region pointers
8623         instead of region numbers.
8624         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
8625         duplicate_eh_regions.
8626         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
8627         test earlier.  Disallow EH landing pads.
8628         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
8629         * tree-flow.h: Update declarations.
8630         (struct tree_ann_common_d): Replace rn with lp_nr.
8631         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
8632         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
8633         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
8634         resx and eh_dispatch.
8635         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
8636         (copy_edges_for_bb): Use make_eh_dispatch_edges.
8637         (copy_cfg_body): Expect eh_map instead of eh_region_offset
8638         from duplicate_eh_regions.
8639         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
8640         update RESX; handle EH_DISPATCH.
8641         (expand_call_inline): Set eh_lp_nr, not eh_region.
8642         (maybe_inline_call_in_expr): Likewise.
8643         * tree-inline.h (struct copy_body_data): Replace eh_region with
8644         eh_lp_nr, eh_region_offset with eh_map.
8645         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
8646         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
8647         * tree-pretty-print.c (dump_generic_node): Don't handle
8648         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
8649         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
8650         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
8651         EXC_PTR_EXPR, FILTER_EXPR.
8652         * tree-ssa-operands.c (get_expr_operands): Likewise.
8653         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
8654         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8655         (ao_ref_init_from_vn_reference): Likewise.
8656         * tree-ssa-sink.c (statement_sink_location): Likewise.
8657         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8658         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
8659         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
8660         EXC_PTR_EXPR, FILTER_EXPR.
8661         (is_exception_related): Remove.
8662         (compute_avail): Don't call it.
8663         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
8664         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
8665         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
8666         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
8667         Build EH builtins.
8668         (build_resx): Remove.
8669         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
8670         * tree.h: Update declarations.
8671         (EH_FILTER_MUST_NOT_THROW): Remove.
8672         (struct tree_label_decl): Add eh_landing_pad_nr.
8673         (EH_LANDING_PAD_NR): New.
8674         * value-prof.c (gimple_ic): Tidy variable names.  Update for
8675         landing pad numbers.
8676         (gimple_stringop_fixed_value): Tidy variable names.  Assert
8677         that neither call stmt can throw.
8678         * vecprim.h (uchar): New.
8679         (VEC(uchar,heap), VEC(uchar,gc)): New.
8680
8681         * c-common.c (c_define_builtins): Update call to
8682         build_common_builtin_nodes.
8683         * c-parser.c (c_parse_file): Don't call
8684         default_init_unwind_resume_libfunc.
8685
8686 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8687
8688         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
8689         (mips_cprestore_address_p): Likewise.
8690         (mips_save_gp_to_cprestore_slot): Likewise.
8691         (mips_restore_gp): Rename to...
8692         (mips_restore_gp_from_cprestore_slot): ...this.
8693         (mips_must_initialize_gp_p): Declare.
8694         (mips_emit_save_slot_move): Likewise.
8695         (mips_output_load_label): Return nothing.
8696         (mips_eh_uses): Declare.
8697         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
8698         (TARGET_CPRESTORE_DIRECTIVE): New macro.
8699         (TARGET_ABSOLUTE_JUMPS): Likewise.
8700         (EH_USES): Likewise.
8701         (FIRST_PSEUDO_REGISTER): Update comment.
8702         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
8703         (MIPS_CALL): ...here.
8704         (REGISTER_NAMES): Add $cprestore.
8705         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
8706         Add load_label_length, has_inflexible_gp_insn_p,
8707         has_flexible_gp_insn_p, must_initialize_gp_p and
8708         must_restore_gp_when_clobbered_p.
8709         (mips_expand_call): Don't generate split instructions here.
8710         (mips_split_call): Update the call to mips_restore_gp after
8711         the above name change.
8712         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
8713         (mips_find_gp_ref): New function.
8714         (mips_insn_has_inflexible_gp_ref_p): Likewise.
8715         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
8716         (mips_insn_has_flexible_gp_ref_p): Likewise.
8717         (mips_cfun_has_flexible_gp_ref_p): Likewise.
8718         (mips_function_has_gp_insn): Delete.
8719         (mips_global_pointer): Drop the df_regs_ever_live_p check.
8720         Use the new functions above.  Only return INVALID_REGNUM
8721         for TARGET_ABSOLUTE_JUMPS.
8722         (mips_must_initialize_gp_p): New function.
8723         (mips_get_cprestore_base_and_offset): New function, extracted from...
8724         (mips_cprestore_slot): ...here.  Take a bool parameter.
8725         (mips_cfun_has_cprestore_slot_p): New function.
8726         (mips_cprestore_address_p): Likewise.
8727         (mips_save_gp_to_cprestore_slot): Likewise.
8728         (mips_restore_gp): Rename to...
8729         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
8730         epilogue_completed.  Update the call to mips_cprestore_slot.
8731         Test cfun->machine->must_restore_gp_when_clobbered_p.
8732         (mips_direct_save_slot_move_p): New function.
8733         (mips_emit_save_slot_move): Likewise.
8734         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
8735         of cfun->machine->global_pointer.
8736         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
8737         (mips_save_reg): Use mips_emit_save_slot_move.
8738         (mips_expand_prologue): Set must_initialize_gp_p.
8739         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
8740         for all cprestore saves.  Emit a use_cprestore instruction after
8741         setting up the cprestore slot.
8742         (mips_restore_reg): Use mips_emit_save_slot_move.
8743         (mips_process_load_label): New function.
8744         (mips_load_label_length): Likewise.
8745         (mips_output_load_label): Don't return asm: output it here instead.
8746         Use mips_process_load_label.
8747         (mips_adjust_insn_length): Adjust the length of branch instructions
8748         that have length MAX_PIC_BRANCH_LENGTH.
8749         (mips_output_conditional_branch): Update the call to
8750         mips_output_load_label.  Assume the branch target is OPERANDS[0]
8751         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
8752         (mips_output_order_conditional_branch): Swap the meaning of
8753         OPERANDS[0] and OPERANDS[1].
8754         (mips_variable_issue): Don't count ghost instructions.
8755         (mips_expand_ghost_gp_insns): New function.
8756         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
8757         (mips_output_mi_thunk): Set must_initialize_gp_p.
8758         (mips_eh_uses): New function.
8759         * config/mips/predicates.md (cprestore_save_slot_operand)
8760         (cprestore_load_slot_operand): New predicates.
8761         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
8762         (UNSPEC_MOVE_GP): Likewise.
8763         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
8764         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
8765         (CPRESTORE_SLOT_REGNUM): New register.
8766         (MAX_PIC_BRANCH_LENGTH): New constant.
8767         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
8768         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
8769         branches.  Fix commentary.
8770         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
8771         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
8772         Change type to "ghost".
8773         (loadgp_absolute_<mode>): Likewise.
8774         (loadgp_rtp_<mode>): Likewise.
8775         (copygp_mips16): Likewise.
8776         (loadgp_blockage): Remove redundant mode attribute.
8777         (potential_cprestore): New instruction.
8778         (cprestore): Turn into an unspec set.
8779         (use_cprestore): New instruction.
8780         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
8781         (*branch_fp_inverted): Likewise.
8782         (*branch_order<mode>): Likewise.
8783         (*branch_order<mode>_inverted): Likewise.
8784         (*branch_equality<mode>): Likewise.
8785         (*branch_equality<mode>_inverted): Likewise.
8786         (*branch_bit<bbv><mode>): Likewise.
8787         (*branch_bit<bbv><mode>_inverted): Likewise.
8788         (*branch_equality<mode>_mips16): Remove redundant mode.
8789         (jump): Turn into a define_expand.
8790         (*jump_absolute): New instruction.
8791         (*jump_pic): Likewise.
8792         (*jump_mips16): Rename previously-unnamed pattern.  Remove
8793         redundant mode attribute.
8794         (restore_gp): Split on epilogue_completed rather than
8795         reload_completed.  Change type to "ghost".
8796         (move_gp<mode>): New instruction.
8797         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
8798         Remove redundant mode attribute.
8799         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
8800         (bc1any4f, bc1any2t, bc1any2f): Likewise.
8801         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
8802
8803 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8804
8805         PR target/41210
8806         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
8807         are returned in the same register (vs34 or v2) that Altivec vector
8808         types are returned in.
8809         (rs6000_libcall_value): Ditto.
8810
8811         PR target/41331
8812         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
8813         instead of explicit addsi3/adddi3 calls.
8814         (rs6000_split_multireg_move): Ditto.
8815         (rs6000_emit_allocate_stack): Ditto.
8816         (rs6000_emit_prologue): Ditto.
8817         (rs6000_output_mi_thunk): Ditto.
8818
8819         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
8820         size is 64 bits if we can use 64-bit registers.
8821
8822 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
8823
8824         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
8825         symbols.
8826
8827         From Jie Zhang <jie.zhang@analog.com>:
8828         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
8829         save FP and RETS with saveall attribute.
8830         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
8831         with saveall attribute.
8832
8833         * config/bfin/bfin.c (bfin_expand_builtin,
8834         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
8835         operands.
8836
8837         From Jie Zhang <jie.zhang@analog.com>:
8838         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
8839         before use in two places.
8840         * config/bfin/bfin.md (AREG): Define mode iterator.
8841         (reload_in, reload_out): Use mode iterator AREG.
8842
8843 2009-09-14  Richard Guenther  <rguenther@suse.de>
8844
8845         PR middle-end/41350
8846         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
8847         EH personality path.
8848
8849 2009-09-13  Richard Guenther  <rguenther@suse.de>
8850             Rafael Avila de Espindola  <espindola@google.com>
8851
8852         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
8853         (LANG_HOOKS_EH_PERSONALITY): Likewise.
8854         (LANG_HOOKS_INITIALIZER): Adjust.
8855         (lhd_pass_through_t): Declare.
8856         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
8857         eh_personality.
8858         * langhooks.c (lhd_pass_through_t): New function.
8859         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
8860         dwarf2out_begin_prologue): Use personality from current_function_decl.
8861         * expr.h (get_personality_function): Declare.
8862         * expr.c (get_personality_function): New function.
8863         (build_personality_function): Likewise.
8864         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
8865         (eh_personality_libfunc): Remove.
8866         * optabs.c (build_libfunc_function): New function split out from ...
8867         (init_one_libfunc): ... here.
8868         * tree.h (DECL_FUNCTION_PERSONALITY): New.
8869         (tree_function_decl): Add personality.
8870         (lhd_gcc_personality): Declare.
8871         (build_personality_function): Likewise.
8872         * tree.c (gcc_eh_personality_decl): New.
8873         (lhd_gcc_personality): New function.
8874         * except.h (lang_eh_runtime_type): Remove.
8875         (enum eh_personality_kind): New.
8876         (build_personality_function): Declare.
8877         (function_needs_eh_personality): Declare.
8878         * except.c (lang_eh_runtime_type): Remove.
8879         (function_needs_eh_personality): New function.
8880         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
8881         (sjlj_emit_function_enter, output_function_exception_table):
8882         Use personality from current_function_decl.
8883         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
8884         * tree-inline.c (tree_can_inline_p): Do not inline across different
8885         EH personalities.
8886         (expand_call_inline): Likewise.  Adjust the callers EH personality.
8887         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
8888         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
8889         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
8890         (c-parser.o): Likewise
8891         * c-tree.h (c_eh_initialized_p): Remove.
8892         (c_maybe_initialize_eh): Likewise.
8893         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
8894         (finish_decl): Don't call c_maybe_initialize_eh.
8895         (c_eh_initialized_p): Remove.
8896         (c_maybe_initialize_eh): Likewise.
8897         * c-parser.c (c_parser_omp_construct): Likewise.
8898         (c_parse_file): Initialize exception handling.
8899
8900 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
8901
8902         * config.gcc (tm_file): Remove i386/biarch32.h
8903         for i?86-w64-mingw* case.
8904         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
8905         support.
8906         * config.host: Set for x64 mingw the option
8907         use_long_long_for_widest_fast_int to yes.
8908
8909 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
8910
8911         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
8912         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
8913         (dbxout_begin_function): Likewise.
8914         * final.c (dwarf2_debug_info_emitted_p): New predicate.
8915         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
8916         set on the function.
8917         (final_end_function): Likewise.
8918         (final_scan_insn): Likewise.
8919         (rest_of_handle_final): Likewise.
8920         * varasm.c (assemble_start_function): Likewise.
8921         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8922
8923 2009-09-12  Jason Merrill  <jason@redhat.com>
8924
8925         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
8926         * opts.c (common_handle_option): constify.
8927
8928 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
8929
8930         * doc/install.texi (avr): Remove obsolete reference site.
8931
8932 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
8933
8934         * doc/install.texi (Binaries): Adjust AIX link.
8935
8936 2009-09-12  Akim Demaille  <demaille@gostai.com>
8937
8938         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
8939         Use an imperative sentence.
8940
8941 2009-09-11  Richard Henderson  <rth@redhat.com>
8942
8943         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
8944         structure-name and has-tree-operands arguments; update all entries.
8945         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
8946         update all entries.
8947         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
8948         (gsstruct_code_size): New.
8949         (gss_for_code_): New.
8950         (gss_for_code): Remove.
8951         (gimple_size): Rewrite using gsstruct_code_size.
8952         (gimple_statement_structure): Move to gimple.h.
8953         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
8954         (gss_for_code, gimple_statement_structure): New.
8955         (gimple_ops): Use new arrays; tidy.
8956
8957 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8958
8959         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
8960         operand to be a PLUS expression.
8961         * config/pa/pa.c (pa_secondary_reload): Likewise.
8962
8963 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
8964
8965         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
8966
8967         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
8968         XEXP (in_rtx, 8).
8969
8970 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8971
8972         From Jie Zhang <jie.zhang@analog.com>:
8973         * doc/extend.texi (node Function Attributes): Document l2
8974         function attribute.
8975         (node Blackfin Variable Attributes): Document l2 variable attributes.
8976
8977 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
8978
8979         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
8980         to match the system compiler's configuration at inflection point.
8981         Add comment to remark a remaining difference with system compiler.
8982
8983         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
8984         * configure: Regenerate.
8985
8986 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8987
8988         From Jie Zhang <jie.zhang@analog.com>:
8989         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
8990         (bfin_handle_l2_attribute): New.
8991         (bfin_attribute_table): Add l2 attribute.
8992
8993 2009-09-11  Michael Matz  <matz@suse.de>
8994
8995         PR middle-end/41275
8996         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
8997         on the local_decls list.
8998
8999 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
9000
9001         PR debug/41276
9002         PR debug/41307
9003         * cselib.c (cselib_expand_value_rtx_cb): Document callback
9004         interface.
9005         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
9006         for VALUEs, to implement the documented interface.
9007         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
9008         Adjust for VALUEs and anything else, to implement the
9009         documented interface.
9010
9011 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
9012
9013         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
9014         with actual SPE/paired vector modes before using 64-bit alignment.
9015         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
9016
9017 2009-09-10  DJ Delorie  <dj@redhat.com>
9018
9019         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
9020         emitted.
9021
9022         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
9023         * config/mep/mep.c (mep_legitimate_constant_p): New.
9024         * config/mep/mep-protos.h: Prototype it.
9025
9026 2009-09-10  Richard Henderson  <rth@redhat.com>
9027
9028         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
9029
9030 2009-09-10  Jason Merrill  <jason@redhat.com>
9031
9032         * tree.c (chain_index): New fn.
9033         * tree.h: Declare it.
9034
9035 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9036
9037         * config/sol2-c.c (cmn_err_length_specs): Initialize
9038         scalar_identity_flag.
9039
9040 2009-09-10  Richard Henderson  <rth@redhat.com>
9041
9042         * tree.h (struct tree_decl_common): Move align member earlier;
9043         move label_decl_uid member ...
9044         (struct tree_label_decl): ... here.
9045         (LABEL_DECL_UID): Update to match.
9046
9047         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
9048         not TDF_DETAILS.
9049
9050         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
9051         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
9052
9053         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
9054         dest_prev if the edge is complex.
9055
9056         * tree-cfg.c (is_ctrl_stmt): Use a switch.
9057
9058         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
9059         loop latch tests earlier.
9060
9061         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
9062         before GIMPLE_RETURN, not after its predecessor; insert
9063         before GIMPLE_RESX.
9064
9065         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
9066         gimple_seq_empty_p to test for no PHI nodes.
9067         * tree-cfg.c (split_critical_edges): Likewise.
9068
9069         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
9070
9071 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9072
9073         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
9074         introduced by the VTA branch merge.
9075
9076 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9077
9078         * ira-conflicts.c: Use fputs or putc instead of fprintf
9079         where appropriate.
9080         * cfg.c: Ditto.
9081         * toplev.c: Ditto.
9082         * tree-switch-conversion.c: Ditto.
9083
9084 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9085
9086         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
9087         introduced by the VTA branch merge.
9088
9089 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9090
9091         Revert:
9092         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9093
9094         PR rtl-optimization/39779
9095         * expr.c (convert_modes): Return when mode == oldmode after
9096         CONST_INTs are processed.
9097
9098 2009-09-10  Nick Clifton  <nickc@redhat.com>
9099
9100         * config/mep/mep.c (mep_encode_section_info): Copy weakness
9101         attribute and referring decl when creating renamed symbol.
9102
9103 2009-09-10  Richard Guenther  <rguenther@suse.de>
9104
9105         PR middle-end/41257
9106         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
9107         reachable nodes.
9108         (cgraph_finalize_compilation_unit): Compute reachability
9109         before emitting thunks.  Properly process aliases before
9110         possibly removing unreachable nodes.
9111
9112 2009-09-10  Richard Guenther  <rguenther@suse.de>
9113
9114         PR middle-end/41254
9115         * tree.c (struct free_lang_data_d): Add worklist member.
9116         (find_decls_types_r): Push onto the worklist instead of recursing.
9117         Handle TREE_BINFOs properly.
9118         (find_decls_types): New function wrapped around find_decls_types_r
9119         to process the worklist.
9120         (find_decls_types_in_eh_region): Use it.
9121         (find_decls_types_in_node): Likewise.
9122         (find_decls_types_in_var): Likewise.
9123         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
9124         * tree.h (RECORD_OR_UNION_TYPE_P): New.
9125         (AGGREGATE_TYPE_P): Adjust.
9126
9127 2009-09-09  Jason Merrill  <jason@redhat.com>
9128
9129         * configure.ac: Check glibc version even if we have an in-tree
9130         assembler.
9131
9132 2009-09-09  Anthony Green  <green@moxielogic.com>
9133
9134         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
9135         the constant 0 when appropriate.
9136         * config/moxie/constraints.md: Add constraint O.
9137
9138         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
9139         to pass up to 6 32-bit argument values in registers.
9140         (moxie_function_arg): Ditto.
9141         (moxie_arg_partial_bytes): Ditto.
9142         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
9143         (REG_PARM_STACK_SPACE): Ditto.
9144         (FUNCTION_ARG_REGNO_P): Ditto.
9145
9146         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9147         instruction to allocate stack space.
9148
9149 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
9150
9151         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
9152         unnecessarily stringent constraints.  Fix address
9153         calculation in the splitters.
9154
9155 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9156
9157         PR rtl-optimization/39779
9158         * expr.c (convert_modes): Return when mode == oldmode after
9159         CONST_INTs are processed.
9160
9161 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
9162
9163         PR/41315
9164         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
9165         (ix86_expand_prologue): Take frame.padding0 into logic of
9166         to_allocate checks.
9167         (ix86_expand_epilogue): Likewise.
9168
9169 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
9170
9171         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
9172         New variables.
9173         (SHLIB_LINK, SHLIB_INSTALL): Use them.
9174         * config/t-slibgcc-libgcc: New file.
9175         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
9176
9177 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9178
9179         PR tree-optimization/41089
9180         * tree-sra.c (find_var_candidates): Do not consider va_lists in
9181         early SRA.
9182
9183 2009-09-09  Richard Henderson  <rth@redhat.com>
9184
9185         * gimple.h (CASE_GIMPLE_OMP): New.
9186         (is_gimple_omp): Use it.
9187         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
9188         (verify_gimple_debug): Likewise.
9189
9190 2009-09-09  Richard Guenther  <rguenther@suse.de>
9191
9192         PR tree-optimization/41101
9193         * tree-ssa-pre.c (maximal_set): Remove.
9194         (compute_antic_aux): Treat the maximal set as implicitly all ones.
9195         Defer all blocks we didn't visit at least one successor.
9196         (add_to_exp_gen): Do not add to the maximal set.
9197         (make_values_for_phi): Likewise.
9198         (compute_avail): Likewise.
9199         (init_pre): Do not allocate the maximal set.
9200         (execute_pre): Do not dump it.
9201
9202 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9203
9204         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
9205         an SSA_NAME rather than a is_gimple_variable.
9206
9207 2009-09-09  Richard Guenther  <rguenther@suse.de>
9208
9209         PR middle-end/41317
9210         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
9211         code dealing with plain pointer bases.
9212         (maybe_fold_offset_to_reference): Likewise.
9213         (maybe_fold_stmt_addition): Adjust.
9214
9215 2009-09-09  Richard Guenther  <rguenther@suse.de>
9216
9217         * tree.c (free_lang_data_in_type): Do not free the type variant
9218         chains.
9219         (free_lang_data): Merge char_type_node with its properly signed
9220         variant.
9221         (pass_ipa_free): Collect after freeing language specific data.
9222
9223 2009-09-09  Michael Matz  <matz@suse.de>
9224
9225         PR middle-end/41268
9226         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
9227         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
9228         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
9229         to reflect reality.
9230
9231 2009-09-08  DJ Delorie  <dj@redhat.com>
9232
9233         * config/mep/mep.c (conversions[]): Add "ml" pattern.
9234
9235 2009-09-04  Jason Merrill  <jason@redhat.com>
9236
9237         * tree.c (tree_find_value): Remove.
9238         * tree.h: Remove prototype.
9239         * varasm.c (assemble_external): Use value_member instead.
9240
9241 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9242
9243         * toplev.c (process_options): Choose default debugging type when
9244         gtoggle enables debug info and type is unset.
9245
9246 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9247
9248         PR debug/41276
9249         PR debug/41307
9250         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
9251         invalid subreg.
9252
9253 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9254
9255         * configure: Rebuilt with modified libtool.m4.
9256
9257 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9258
9259         PR debug/41229
9260         PR debug/41291
9261         PR debug/41300
9262         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
9263
9264 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9265
9266         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
9267         (remove_statement): Likewise.
9268         (rewrite_use_nonlinear_expr): Adjust.
9269         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
9270         * tree-ssa.c (release_defs_bitset): ... this.  New.
9271         * tree-flow.h (release_defs_bitset): Declare.
9272
9273 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9274
9275         PR debug/41232
9276         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
9277         in the middle block.
9278
9279 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
9280
9281         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
9282         via intptr_t to long type.
9283         (insert_operand_rank): Cast long type via intptr_t to
9284         pointer type.
9285         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
9286         pointer to scalar.
9287         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
9288         from pointer to unsigned via uintptr_t.
9289
9290         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
9291         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
9292         and HAVE_INTPTR_T.
9293         * configure: Regenerated.
9294         * config.in: Regenerated
9295         * system.h (stdint.h): Add include.
9296         (inttypes.h): Likewise.
9297         * Makefile.in (aclocal): Add config/stdint.m4.
9298         * aclocal.m4: Regenerated.
9299
9300 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
9301
9302         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
9303         variables.
9304         (note_np_check_stores): New function.
9305         (harmless_null_pointer_p): New function.
9306         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
9307         changed.  Take into account whether we're in the shadow of a condjump
9308         that tested NP_REG for NULL.
9309         Lose all code that tested for SEQUENCEs.
9310         (workaround_speculation): Avoid inserting NOPs for loads that are
9311         either always executed or a NULL pointer.
9312
9313 2009-09-08  Jan Hubicka  <jh@suse.cz>
9314
9315         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
9316         * params.def (early-inlining-insns): Likewise.
9317
9318 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
9319
9320         PR rtl-optimization/41239
9321         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
9322         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
9323         lists.
9324         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
9325         across calls, as the calls might not always return normally.
9326         (call_may_noreturn_p): New function.
9327         (deps_analyze_insn): Update last_function_call_may_noreturn list.
9328         (init_deps): Initialize it.
9329         (remove_from_deps): Also remove calls from
9330         last_function_call_may_noreturn list.
9331
9332 2009-09-07  Richard Henderson  <rth@redhat.com>
9333
9334         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
9335         more VR->OPERANDS than LHS operands.  Free LHS before returning.
9336
9337 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9338
9339         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
9340         (attr "addrtype"): New member "spreg".
9341         Use it if mem_spfp_address_operand is true for the address.
9342         (attr "type"): New entry "stall".
9343         (cpu_unit "load"): New.
9344         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
9345         "load".
9346         (insn_reservation "loadsp"): New.
9347         (insn_reservation "load_stall1"): New.
9348         (insn_reservation "load_stall3"): New.
9349         (stall): New insn.
9350         * config/bfin/predicates.md (const1_operand, const3_operand): New.
9351         (mem_p_address_operand): Exclude stack and frame pointer based
9352         addresses.
9353         (mem_spfp_address_operand): New; match them here.
9354         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
9355         (bfin_reorg): Call it if scheduling insns.
9356         (bfin_gen_bundles): Remove dummy insns created by
9357         add_sched_insns_for_speculation.
9358
9359         From Jie Zhang <jie.zhang@analog.com>:
9360         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
9361         bfin_si_revision, bfin_workarounds): Move these ...
9362         * config/bfin/bfin.h: ... here.
9363
9364         From Mike Frysinger  <michael.frysinger@analog.com>
9365         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
9366         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
9367         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
9368         bf547m, bf548m, and bf549m.
9369         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
9370         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
9371         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
9372         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
9373         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9374         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
9375         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9376         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9377         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
9378         bf542m, bf544m, bf547m, bf548m, and bf549m.
9379
9380         From Jie Zhang <jie.zhang@analog.com>:
9381         * config/bfin/predicates.md (p_register_operand): New predicate.
9382         (dp_register_operand): New predicate.
9383         * config/bfin/bfin-protos.h (WA_05000074): Define.
9384         (ENABLE_WA_05000074): Define.
9385         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
9386         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
9387         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
9388         (define_attr addrtype): Allow load/store register to be P register.
9389         (define_attr storereg): New.
9390         (define_cpu_unit anomaly_05000074): New.
9391         (define_insn_reservation dsp32shiftimm): New.
9392         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
9393         (define_insn_reservation loadp): Cannot use slot2.
9394         (define_insn_reservation loadsp): Cannot use slot2.
9395         (define_insn_reservation storep): Cannot use slot2. Does not
9396         apply when working around 05000074.
9397         (define_insn_reservation storep_anomaly_05000074): New.
9398         (define_insn_reservation storei): Does not apply when working
9399         around 05000074.
9400         (define_insn_reservation storei_anomaly_05000074): New.
9401         (define_attr length): Add dsp32shiftimm case.
9402         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
9403         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
9404         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
9405         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
9406         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
9407
9408 2009-09-07  Martin Jambor  <mjambor@suse.cz>
9409
9410         PR middle-end/41282
9411         * tree-sra.c (create_artificial_child_access): Return NULL if
9412         build_ref_for_offset fails.
9413         (propagate_subacesses_accross_link): Allow build_ref_for_offset
9414         and create_artificial_child_access to fail.
9415
9416 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
9417
9418         PR c++/41214
9419         * unwind-dw2.c (uw_init_context_1): Mark noinline.
9420         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
9421         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
9422
9423 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9424
9425         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
9426         block, ensure it has an exit edge.  Emit a barrier after a jump.
9427
9428 2009-09-07  Nick Clifton  <nickc@redhat.com>
9429
9430         * gcc.c (this_is_linker_script): New variable.  Like
9431         this_is_library_file but for the %T constructor.
9432         (end_going_arg): If this_is_linker_script is set then locate the
9433         script and insert a --script switch before it
9434         (do_spec_2): Initialise this_is_linker_script.
9435         (do_spec_1): Likewise.  Handle %T construct.
9436         (eval_spec_function): Preserve this_is_linker_script.
9437         * doc/invoke.texi: Document %T construct in spec files.
9438         * config/m32c/m32c.h (LIB_SPEC): Use it.
9439
9440 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9441
9442         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
9443         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
9444         when volatile flag is set.
9445         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
9446
9447 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9448
9449         PR bootstrap/41241
9450         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
9451         (combine_stack_adjustments_for_block): Allow insns between stack
9452         adjustments and stores with corresponding pre-(dec|inc)rement or
9453         pre-modify operation.
9454
9455 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
9456
9457         PR bootstrap/41241
9458         * combine-stack-adj.c (struct csa_memlist): Rename to...
9459         (struct csa_reflist): ... this.  Rename mem field to ref.
9460         (free_csa_memlist): Rename to...
9461         (free_csa_reflist): ... this.
9462         (record_one_stack_memref): Rename to...
9463         (record_one_stack_ref): ... this.  Handle also REG_P.
9464         (try_apply_stack_adjustment): Handle also REG_P.
9465         (struct record_stack_memrefs_data): Rename to...
9466         (struct record_stack_refs_data): ... this.  Rename memlist field to
9467         reflist.
9468         (record_stack_memrefs): Rename to...
9469         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
9470         subexpressions instead of failing when a MEM contains SP references.
9471         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
9472         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
9473
9474 2009-09-06  Richard Guenther  <rguenther@suse.de>
9475
9476         PR middle-end/41144
9477         * tree.c (build_array_type): Do not record types marked
9478         with structural equality in the canonical type hashtable.
9479
9480 2009-09-06  Richard Guenther  <rguenther@suse.de>
9481
9482         PR middle-end/41261
9483         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
9484
9485 2009-09-05  Richard Guenther  <rguenther@suse.de>
9486
9487         PR middle-end/41181
9488         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
9489
9490 2009-09-05  Richard Guenther  <rguenther@suse.de>
9491
9492         PR debug/41273
9493         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
9494
9495 2009-09-05  Richard Guenther  <rguenther@suse.de>
9496
9497         PR middle-end/41271
9498         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
9499         before comparing function argument types.
9500
9501 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9502
9503         PR target/41024
9504         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
9505         the assembler.
9506
9507 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9508
9509         Revert:
9510         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9511
9512         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9513         locators before emit_insn is called.
9514
9515 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
9516
9517         PR bootstrap/41241
9518         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
9519         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
9520         (reginfo_init): Don't call allocate_reg_info.
9521
9522 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9523
9524         PR target/41262
9525         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
9526         NONDEBUG_INSN_P instead of INSN_P.
9527
9528 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9529
9530         PR debug/41225
9531         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
9532
9533 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9534
9535         PR target/41252
9536         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
9537         pattern of the split.
9538
9539 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9540
9541         * toplev.c (process_options): Move setter of flag_var_tracking
9542         before other tests that depend on it.  Move down setter of
9543         flag_rename_registers.  Don't enable var-tracking-assignments
9544         by default if selective scheduling is enabled.  Warn if both
9545         are enabled.
9546
9547 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9548
9549         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
9550         comment.  Use switch statement to catch overlaps between rtx
9551         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
9552         (IS_DECL_CODE): ... here. Remove.
9553         (check_value_is_not_decl): Remove.
9554         (dv_from_decl, dv_from_value): Check after conversion.
9555
9556 2009-09-04  Richard Guenther  <rguenther@suse.de>
9557
9558         PR middle-end/41257
9559         * (cgraph_finalize_compilation_unit): Move finalizing aliases
9560         after emitting tunks.  Move emitting thunks and ctors from ...
9561         (cgraph_optimize): ... here.  Remove redundant
9562         cgraph_analyze_functions.
9563         * varasm.c (find_decl_and_mark_needed): Remove no longer
9564         necessary check.
9565         (finish_aliases_1): Adjust check for thunk aliases.
9566
9567 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
9568
9569         * config/arm/arm.md (ctzsi2): Added braces
9570         to avoid warning that broke booststrap.
9571
9572 2009-09-04  Martin Jambor  <mjambor@suse.cz>
9573
9574         PR tree-optimization/41112
9575         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
9576         handle variable-bounded arrays.
9577         (expr_with_var_bounded_array_refs_p): New function.
9578         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
9579
9580 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
9581
9582         * config/s390/2097.md: Removed two incorrect bypasses.
9583         (z10_fsimpdf): Fixed latency.
9584         (z10_fhex): New insn_reservation.
9585         (z10_floaddf): Fixed latency.
9586         (z10_floadsf): Fixed latency.
9587         (z10_ftrunctf): Fixed latency.
9588         (z10_ftruncdf): Fixed latency.
9589         * config/s390/s390.c (z10_cost): Fixed values.
9590         (s390_adjust_priority): Added z10 path.
9591         * config/s390/s390.md (type): Added fhex.
9592         (*mov<mode>_64dfp): Updated type attribute.
9593         (*mov<mode>_64): Updated type attribute.
9594         (*mov<mode>_31): Updated type attribute.
9595         (*mov<mode>"): Likewise.
9596         * config/s390/2084.md (x_fsimpdf): Updated condition.
9597
9598 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
9599
9600         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
9601         RTXs in the predicate for operand 1.
9602
9603 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
9604
9605         * config/arm/arm.md (UNSPEC_RBIT): New constant.
9606         (rbitsi2): New insn.
9607         (ctzsi2): New expand.
9608         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
9609
9610 2009-09-03  Martin Jambor  <mjambor@suse.cz>
9611
9612         * tree-sra.c (duplicate_expr_for_different_base): Removed.
9613         (create_artificial_child_access): Use build_ref_for_offset instead
9614         of duplicate_expr_for_different_base.
9615         (propagate_subacesses_accross_link): Likewise.
9616
9617 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
9618
9619         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
9620         of INSN_P.
9621         (mips16e_collect_argument_saves): Skip debug instructions.
9622         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
9623         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
9624         (r10k_insert_cache_barriers): Likewise.
9625         (mips_reorg_process_insns): Likewise.
9626
9627 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
9628
9629         PR bootstrap/41241
9630         * ira.c (update_equiv_reg): Remove check on class likely spill.
9631
9632 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
9633
9634         PR debug/41236
9635         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
9636         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
9637         it or SUBREG.
9638
9639         PR debug/41238
9640         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
9641         the stack slot if it is passed by invisible reference.
9642         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
9643         by invisible reference.
9644
9645 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
9646
9647         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9648         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9649         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
9650         0.
9651         * config/bfin/sync.md: New file.
9652         * config/bfin/bfin.md: Include it.
9653         (UNSPEC_ATOMIC): New.
9654         (UNSPEC_ONES): Provide a unique number.
9655
9656         From Jie Zhang <jie.zhang@analog.com>:
9657         * config/bfin/bfin.c (ret_regs): New.
9658         (must_save_fp_p): Don't return true because of frame_pointer_needed.
9659         (must_save_rets_p): New.
9660         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
9661         current_function_is_leaf.
9662         (do_link): Likewise.
9663         (do_unlink): Likewise.
9664         (expand_interrupt_handler_prologue): Use ret_regs array.
9665         (expand_interrupt_handler_epilogue): Use ret_regs array and
9666         pass return register to gen_return_internal.
9667         (bfin_expand_epilogue): Pass return register to
9668         gen_return_internal.
9669         (bfin_expand_call): Explicitly clobber RETS.
9670         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
9671         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
9672         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
9673         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
9674         RETS.
9675         (return_internal): Take a reg rtx rather than the register number.
9676
9677 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
9678
9679         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
9680         when comparing against estimated_loop_iterations_int return.
9681
9682 2009-09-03  Richard Guenther  <rguenther@suse.de>
9683
9684         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
9685         eh_personality_libfunc.
9686
9687 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9688
9689         * tree-parloops.c (separate_decls_in_region): Add space.
9690
9691 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9692
9693         * tree-parloops.c (separate_decls_in_region): Change the condition
9694         checking if there are reductions in the loop.
9695
9696 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9697
9698         PR tree-optimization/38275
9699         * tree-parloops.c (parallelize_loops): Replace profitability condition
9700         for expected number of iterations.
9701
9702 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9703
9704         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
9705         (bootstrap-debug): Explain conditions in which it becomes default.
9706         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
9707         make it add to it.
9708
9709 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
9710
9711         * doc/invoke.texi (Optimize Options): Move
9712         -finline-small-functions to the -O2 list.
9713
9714 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9715
9716         * toplev.c (process_options): Enable var-tracking-assignments
9717         by default if var-tracking is enabled.
9718
9719 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
9720
9721         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
9722         barrier.
9723         * emit-rtl.c (prev_nonnote_insn_bb): New function.
9724         * rtl.h (prev_nonnote_insn_bb): Declare it.
9725
9726 2009-09-03  Diego Novillo  <dnovillo@google.com>
9727
9728         * cgraph.c (cgraph_node_for_decl): New.
9729         * cgraph.h (cgraph_node_for_decl): Declare.
9730         * tree.c (host_integerp): Return 0 if T is NULL.
9731
9732 2009-09-03  Diego Novillo  <dnovillo@google.com>
9733
9734         * tree.h (struct alias_pair): Move from varasm.c.
9735         (alias_pairs): Likewise.
9736         (TYPE_MAXVAL): Define.
9737         (TYPE_MINVAL): Define.
9738         (iterative_hash_host_wide_int): Declare.
9739         (remove_unreachable_alias_pairs): Declare.
9740         * tree-pass.h (pass_ipa_free_lang_data): Declare.
9741         * diagnostic.c (default_diagnostic_starter): Make extern.
9742         (default_diagnostic_finalizer): Make extern.
9743         * diagnostic.h (default_diagnostic_starter): Declare.
9744         (default_diagnostic_finalizer): Declare.
9745         (default_tree_printer): Declare.
9746         * toplev.c (default_tree_printer): Make extern.
9747
9748 2009-09-03  Richard Guenther  <rguenther@suse.de>
9749             Diego Novillo  <dnovillo@google.com>
9750
9751         * cgraph.c (cgraph_add_new_function): Remove gimplification.
9752         * cgraphunit.c (cgraph_expand_function): Do not emit
9753         associated thunks from here.
9754         (cgraph_emit_thunks): New.
9755         (cgraph_optimize): Call it.
9756         Return if any IPA pass finds an error.
9757         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
9758         by thunks.
9759
9760 2009-09-03  Simon Baldwin  <simonb@google.com>
9761             Rafael Espindola  <espindola@google.com>
9762             Richard Guenther  <rguenther@suse.de>
9763             Doug Kwan  <dougkwan@google.com>
9764             Diego Novillo  <dnovillo@google.com>
9765
9766         * tree.c: Include tree-pass.h, langhooks-def.h,
9767         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
9768         (free_lang_data_in_type): New.
9769         (need_assembler_name_p): New.
9770         (free_lang_data_in_block): New.
9771         (free_lang_data_in_decl): New.
9772         (struct free_lang_data_d): New.
9773         (add_tree_to_fld_list): New.
9774         (find_decls_types_r): New.
9775         (get_eh_types_for_runtime): New.
9776         (find_decls_types_in_eh_region): New.
9777         (find_decls_types_in_node): New.
9778         (find_decls_types_in_var): New.
9779         (free_lang_data_in_cgraph): New.
9780         (free_lang_data): New.
9781         (gate_free_lang_data): New.
9782         (pass_ipa_free_lang_data): New.
9783
9784 2009-09-03  Diego Novillo  <dnovillo@google.com>
9785
9786         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
9787         * langhooks.h (struct lang_hooks): Add field free_lang_data.
9788         (lang_hooks): Remove const qualifier.
9789         * ipa.c (cgraph_remove_unreachable_nodes): Call
9790         remove_unreachable_alias_pairs.
9791         * except.c (add_type_for_runtime): Check if TYPE has
9792         already been converted.
9793         (lookup_type_for_runtime): Likewise.
9794         (check_handled): Handle converted types.
9795         * varasm.c (remove_unreachable_alias_pairs): New.
9796         * gimple.c: Include demangle.h.
9797         (gimple_decl_printable_name): New.
9798         (gimple_fold_obj_type_ref): New.
9799         * gimple.h (gimple_decl_printable_name): Declare.
9800         (gimple_fold_obj_type_ref): Declare.
9801         * passes.c (init_optimization_passes): Add pass
9802         pass_ipa_free_lang_data.
9803         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
9804         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
9805
9806 2009-09-03  Diego Novillo  <dnovillo@google.com>
9807
9808         * c-lang.c (lang_hooks): Remove const qualifier.
9809
9810 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
9811
9812         * doc/install.texi (*-*-freebsd*): Update target information.
9813
9814 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
9815
9816         * hard-reg-set.h (call_fixed_regs): Remove.
9817         * reginfo.c (call_fixed_regs): Remove.
9818         (init_reg_sets_1): Remove initialization of call_fixed_regs.
9819         (globalize_reg): Don't use call_fixed_regs.
9820         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
9821         call_fixed_regs.
9822
9823 2009-09-01  Michael Matz  <matz@suse.de>
9824
9825         * expr.h (emit_storent_insn, expand_expr_real_1,
9826         expand_expr_real_2): Declare.
9827         * expr.c (emit_storent_insn, expand_expr_real_1,
9828         expand_expr_real_2): Export.
9829         (store_expr): Setting and evaluating dont_return_target is useless.
9830         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
9831         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
9832         * except.c (expand_resx_expr): Rename to ...
9833         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
9834         * except.h (expand_resx_stmt): Declare.
9835         * stmt.c: Add include gimple.h
9836         (expand_asm_expr): Rename to ...
9837         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
9838         (expand_case): Rewrite to take gimple statement.
9839         * tree.h (expand_asm_stmt): Declare.
9840         (expand_case): Change prototype.
9841         * Makefile.in (stmt.o): Depend on gimple.h.
9842         * builtins.c (expand_builtin_synchronize): Build gimple asm
9843         statement, not an ASM_EXPR.
9844         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
9845         gimple_to_tree, release_stmt_tree): Remove.
9846         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
9847         ggc_free, but hold comparison code and operands separately.
9848         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
9849         (expand_call_stmt, expand_gimple_stmt_1,
9850         expand_gimple_stmt): New helpers.
9851         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
9852         release_stmt_tree.  Call expand_gimple_stmt instead.
9853         (expand_gimple_basic_block): Ditto.
9854
9855         * calls.c (emit_call_1): Don't look at EH regions here, make
9856         fntree parameter useless.
9857         (expand_call): New local rettype for TREE_TYPE(exp), use it
9858         throughout.  Remove local p, use addr instead.
9859         Don't look at EH regions here.
9860
9861 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
9862
9863         * doc/invoke.texi (-fsched-pressure): Document it.
9864         (-fsched-reg-pressure-heuristic): Remove it.
9865
9866         * reload.c (ira.h): Include.
9867         (find_reloads): Add choosing reload on number of small spilled
9868         classes.
9869
9870         * haifa-sched.c (ira.h): Include.
9871         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
9872         saved_reg_pressure, curr_reg_live, saved_reg_live,
9873         region_ref_regs): New variables.
9874         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
9875         initiate_reg_pressure_info, setup_ref_regs,
9876         initiate_bb_reg_pressure_info, save_reg_pressure,
9877         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
9878         functions.
9879         (setup_insn_reg_pressure_info): New function.
9880         (rank_for_schedule): Add pressure checking and insn issue time.
9881         Remove comparison of insn reg weights.
9882         (ready_sort): Set insn reg pressure info.
9883         (update_register_pressure, setup_insn_max_reg_pressure,
9884         update_reg_and_insn_max_reg_pressure,
9885         sched_setup_bb_reg_pressure_info): New functions.
9886         (schedule_insn): Add code for printing and updating reg pressure info.
9887         (find_set_reg_weight, find_insn_reg_weight): Remove.
9888         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
9889         (debug_ready_list): Print reg pressure info.
9890         (schedule_block): Ditto.  Check insn issue time.
9891         (sched_init): Set up sched_pressure_p.  Allocate and set up some
9892         reg pressure related info.
9893         (sched_finish): Free some reg pressure related info.
9894         (fix_tick_ready): Make insn always ready if pressure_p.
9895         (init_h_i_d): Don't call find_insn_reg_weight.
9896         (haifa_finish_h_i_d): Free insn reg pressure info.
9897
9898         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9899         ira_memory_move_cost, ira_class_hard_regs,
9900         ira_class_hard_regs_num, ira_no_alloc_regs,
9901         ira_available_class_regs, ira_reg_class_cover_size,
9902         ira_reg_class_cover, ira_class_translate): Move to ira.h.
9903
9904         * ira-lives.c (single_reg_class): Check mode to find how many
9905         registers are necessary for operand.
9906         (ira_implicitly_set_insn_hard_regs): New.
9907
9908         * common.opt (fsched-pressure): New options.
9909         (fsched-reg-pressure-heuristic): Remove.
9910
9911         * ira.c (setup_eliminable_regset): Rename to
9912         ira_setup_eliminable_regset.  Make it external.
9913         (expand_reg_info): Pass cover class to setup_reg_classes.
9914         (ira): Call resize_reg_info instead of allocate_reg_info.
9915
9916         * sched-deps.c: Include ira.h.
9917         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
9918         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
9919         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
9920         mark_insn_hard_regno_birth, mark_insn_reg_birth,
9921         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
9922         mark_insn_reg_store, mark_insn_reg_clobber,
9923         setup_insn_reg_pressure_info): New.
9924         (sched_analyze_1): Update implicit_reg_pending_uses.
9925         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
9926         Use them to create dependencies.  Set insn reg uses and pressure
9927         info.  Process reg_pending_uses in one place.
9928         (free_deps): Free implicit sets.
9929         (remove_from_deps): Remove implicit sets if necessary.  Check
9930         implicit sets when clearing reg_last_in_use.
9931         (init_deps_global): Clear implicit_reg_pending_clobbers and
9932         implicit_reg_pending_uses.
9933
9934         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9935         ira_memory_move_cost, ira_class_hard_regs,
9936         ira_class_hard_regs_num, ira_no_alloc_regs,
9937         ira_available_class_regs, ira_reg_class_cover_size,
9938         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
9939         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
9940         ira_implicitly_set_insn_hard_regs): New prototypes.
9941
9942         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
9943         cost_elements_num): New variables.
9944         (allocno_costs, total_costs): Rename to costs and
9945         total_allocno_costs.
9946         (COSTS_OF_ALLOCNO): Rename to COSTS.
9947         (allocno_pref): Rename to pref.
9948         (allocno_pref_buffer): Rename to pref_buffer.
9949         (common_classes): Rename to regno_cover_class.
9950         (COST_INDEX): New.
9951         (record_reg_classes): Set allocno attributes only if allocno_p.
9952         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
9953         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
9954         and COSTS_OF_ALLOCNO.
9955         (print_costs): Rename to print_allocno_costs.
9956         (print_pseudo_costs): New.
9957         (process_bb_node_for_costs): Split into 2 functions with new
9958         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
9959         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
9960         new parameter dump_file.  Use cost_elements_num instead of
9961         ira_allocnos_num.  Make one iteration if preferred classes were
9962         already calculated for scheduler.  Make 2 versions of code
9963         depending on allocno_p.
9964         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
9965         regno_cover_class and COSTS instead of common_classes and
9966         COSTS_OF_ALLOCNO.
9967         (init_costs, finish_costs): New.
9968         (ira_costs): Set up allocno_p and cost_elements_num.  Call
9969         init_costs and finish_costs.
9970         (ira_set_pseudo_classes): New.
9971
9972         * rtl.h (allocate_reg_info): Remove.
9973         (resize_reg_info): Change return type.
9974         (reg_cover_class): New.
9975         (setup_reg_classes): Add new parameter.
9976
9977         * sched-int.h (struct deps_reg): New member implicit_sets.
9978         (sched_pressure_p, sched_regno_cover_class): New external definitions.
9979         (INCREASE_BITS): New macro.
9980         (struct reg_pressure_data, struct reg_use_data): New.
9981         (struct _haifa_insn_data): Remove reg_weight.  Add members
9982         reg_pressure, reg_use_list, reg_set_list, and
9983         reg_pressure_excess_cost_change.
9984         (struct deps): New member implicit_sets.
9985         (pressure_p): New variable.
9986         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
9987         (struct reg_pressure_data, struct reg_use_data): New.
9988         (INSN_REG_WEIGHT): Remove.
9989         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
9990         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
9991         (sched_init_region_reg_pressure_info,
9992         sched_setup_bb_reg_pressure_info): New prototypes.
9993
9994         * reginfo.c (struct reg_pref): New member coverclass.
9995         (reg_cover_class): New function.
9996         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
9997         (reg_info_size): New variable.
9998         (allocate_reg_info): Make static.  Setup reg_info_size.
9999         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
10000         (setup_reg_classes): Add a new parameter.  Setup cover class too.
10001
10002         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
10003         the dependencies.
10004
10005         * sched-rgn.c (deps_join): Set up implicit_sets.
10006         (schedule_region): Set up region and basic blocks pressure
10007         relative info.
10008
10009         * passes.c (init_optimization_passes): Move
10010         pass_subregs_of_mode_init before pass_sched.
10011
10012 2009-09-02  Martin Jambor  <mjambor@suse.cz>
10013
10014         * tree-sra.c (struct access): New field grp_hint.
10015         (dump_access): Dump grp_hint.
10016         (sort_and_splice_var_accesses): Set grp_hint if a group is read
10017         multiple times.
10018         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
10019         those which have been specifically read and somehow written to.
10020         (propagate_subacesses_accross_link): Set grp_hint of right child and
10021         also possibly of the left child.
10022
10023 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
10024
10025         * tree-object-size.c (addr_object_size): Always use object_size_type
10026         0 or 2 when determining the pointer pointed object size.
10027
10028 2009-09-02  Richard Guenther  <rguenther@suse.de>
10029
10030         Revert
10031         2009-08-31  Richard Guenther  <rguenther@suse.de>
10032
10033         * builtins.c (fold_builtin_memory_op): Use the alias oracle
10034         to query if the memory regions for memmove overlap.
10035         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10036         asserts on pointers, instead deal with odd trees.
10037         (ptr_derefs_may_alias_p): Likewise.
10038         (refs_may_alias_p_1): Constructor bases also never alias.
10039
10040 2009-08-01  Christian Bruel  <christian.bruel@st.com>
10041
10042         Revert:
10043         2009-07-31  Christian Bruel  <christian.bruel@st.com>
10044         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10045
10046 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
10047
10048         * doc/invoke.texi (-fvar-tracking-assignments): New.
10049         (-fvar-tracking-assignments-toggle): New.
10050         (-fdump-final-insns=file): Mark filename as optional.
10051         (--param min-nondebug-insn-uid): New.
10052         (-gdwarf-@{version}): Mention version 4.
10053         * opts.c (common_handle_option): Accept it.
10054         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
10055         * regrename.c (regrename_optimize): Drop last.  Don't count debug
10056         insns as uses.  Don't reject change because of debug insn.
10057         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
10058         from the chain starter, and check for inexact matches in DEBUG_INSNS.
10059         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
10060         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
10061         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
10062         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
10063         * doc/gimple.texi (is_gimple_debug): New.
10064         (gimple_debug_bind_p): New.
10065         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
10066         * doc/install.texi (bootstrap-debug): More details.
10067         (bootstrap-debug-big, bootstrap-debug-lean): Document.
10068         (bootstrap-debug-lib): More details.
10069         (bootstrap-debug-ckovw): Update.
10070         (bootstrap-time): New.
10071         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
10072         (insert_phi_nodes_for): Insert debug stmts.
10073         (rewrite_stmt): Take iterator.  Insert debug stmts.
10074         (rewrite_enter_block): Adjust.
10075         (maybe_replace_use_in_debug_stmt): New.
10076         (rewrite_update_stmt): Use it.
10077         (mark_use_interesting): Return early for debug stmts.
10078         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
10079         stmts before replacing stmt.
10080         (move_computations_stmt): Likewise.
10081         * ira-conflicts.c (add_copies): Skip debug insns.
10082         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
10083         (regstat_bb_compute_ri): Skip debug insns.
10084         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
10085         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
10086         check_loop_closed_ssa_stmt): Skip debug stmts.
10087         * tree-tailcall.c (find_tail_calls): Likewise.
10088         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10089         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
10090         (build_var_debug_value_stat): Declare.
10091         (build_var_debug_value): Define.
10092         (target_for_debug_bind): Declare.
10093         * reload.c (find_equiv_reg): Skip debug insns.
10094         * rtlanal.c (reg_used_between_p): Skip debug insns.
10095         (side_effects_p): Likewise.
10096         (canonicalize_condition): Likewise.
10097         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
10098         insns never depend on debug insns.
10099         (create_ddg_dep_no_link): Likewise.
10100         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
10101         Don't add inter-loop dependencies for debug insns.
10102         (build_intra_loop_deps): Likewise.
10103         (create_ddg): Count debug insns.
10104         * ddg.h (struct ddg::num_debug): New.
10105         (num_backargs): Pair up with previous int field.
10106         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
10107         -fcompare-debug-second.
10108         * final.c (get_attr_length_1): Skip debug insns.
10109         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
10110         * gcc.c (invoke_as): Call compare-debug-dump-opt.
10111         (driver_self_specs): Map -fdump-final-insns to
10112         -fdump-final-insns=..
10113         (get_local_tick): New.
10114         (compare_debug_dump_opt_spec_function): Test for . argument and
10115         compute output name.  Compute temp output spec without flag name.
10116         Compute -frandom-seed.
10117         (OPT): Undef after use.
10118         * cfgloopanal.c (num_loop_insns): Skip debug insns.
10119         (average_num_loop_insns): Likewise.
10120         * params.h (MIN_NONDEBUG_INSN_UID): New.
10121         * gimple.def (GIMPLE_DEBUG): New.
10122         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
10123         * auto-inc-dec.c (merge_in_block): Skip debug insns.
10124         (merge_in_block): Fix whitespace.
10125         * toplev.c (flag_var_tracking): Update comment.
10126         (flag_var_tracking_assignments): New.
10127         (flag_var_tracking_assignments_toggle): New.
10128         (process_options): Don't open final insns dump file if we're not
10129         going to write to it.  Compute defaults for var_tracking.
10130         * df-scan.c (df_insn_rescan_debug_internal): New.
10131         (df_uses_record): Handle debug insns.
10132         * haifa-sched.c (ready): Initialize n_debug.
10133         (contributes_to_priority): Skip debug insns.
10134         (dep_list_size): New.
10135         (priority): Use it.
10136         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
10137         they're ready.  Disregard previous debug insns to make decisions.
10138         (queue_insn): Never queue debug insns.
10139         (ready_add, ready_remove_first, ready_remove): Count debug insns.
10140         (schedule_insn): Don't reject debug insns because of issue rate.
10141         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
10142         (queue_to_ready): Skip and discount debug insns.
10143         (choose_ready): Let debug insns through.
10144         (schedule_block): Check boundary debug insns.  Discount debug
10145         insns, schedule them early.  Adjust whitespace.
10146         (set_priorities): Check for boundary debug insns.
10147         (add_jump_dependencies): Use dep_list_size.
10148         (prev_non_location_insn): New.
10149         (check_cfg): Use it.
10150         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
10151         stmts.
10152         (remove_unused_ivs): Reset debug stmts.
10153         * modulo-sched.c (const_iteration_count): Skip debug insns.
10154         (res_MII): Discount debug insns.
10155         (loop_single_full_bb_p): Skip debug insns.
10156         (sms_schedule): Likewise.
10157         (sms_schedule_by_order): Likewise.
10158         (ps_has_conflicts): Likewise.
10159         * caller-save.c (refmarker_fn): New.
10160         (save_call_clobbered_regs): Replace regs with saved mem in
10161         debug insns.
10162         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
10163         Call refmarker_fn mark for hardregnos.
10164         (mark_reg_as_referenced): New.
10165         (replace_reg_with_saved_mem): New.
10166         * ipa-pure-const.c (check_stmt): Skip debug stmts.
10167         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
10168         searching back.
10169         (cse_extended_basic_block): Skip debug insns.
10170         (count_reg_usage): Likewise.
10171         (is_dead_reg): New, split out of...
10172         (set_live_p): ... here.
10173         (insn_live_p): Use it for debug insns.
10174         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
10175         (execute_optimize_stdarg): Likewise.
10176         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10177         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
10178         changes in debug stmts as changes.
10179         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
10180         (moveup_expr): Don't move across debug insns.  Don't move
10181         debug insn if it would create a bookkeeping block.
10182         (moveup_expr_cached): Don't use cache for debug insns that
10183         are heads of blocks.
10184         (compute_av_set_inside_bb): Skip debug insns.
10185         (sel_rank_for_schedule): Schedule debug insns first.  Remove
10186         dead code.
10187         (block_valid_for_bookkeeping_p); Support lax searches.
10188         (create_block_for_bookkeeping): Adjust block numbers when
10189         encountering debug-only blocks.
10190         (find_place_for_bookkeeping): Deal with debug-only blocks.
10191         (generate_bookkeeping_insn): Accept no place to insert.
10192         (remove_temp_moveop_nops): New argument full_tidying.
10193         (prepare_place_to_insert): Deal with debug insns.
10194         (advance_state_on_fence): Debug insns don't start cycles.
10195         (update_boundaries): Take fence as argument.  Deal with
10196         debug insns.
10197         (schedule_expr_on_boundary): No full_tidying on debug insns.
10198         (fill_insns): Deal with debug insns.
10199         (track_scheduled_insns_and_blocks): Don't count debug insns.
10200         (need_nop_to_preserve_insn_bb): New, split out of...
10201         (remove_insn_from_stream): ... this.
10202         (fur_orig_expr_not_found): Skip debug insns.
10203         * rtl.def (VALUE): Move up.
10204         (DEBUG_INSN): New.
10205         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
10206         (nearest_common_dominator_of_uses): Take debug_stmts argument.
10207         Set it if debug stmts are found.
10208         (statement_sink_location): Skip debug stmts.  Propagate
10209         moving defs into debug stmts.
10210         * ifcvt.c (first_active_insn): Skip debug insns.
10211         (last_active_insns): Likewise.
10212         (cond_exec_process_insns): Likewise.
10213         (noce_process_if_block): Likewise.
10214         (check_cond_move_block): Likewise.
10215         (cond_move_convert_if_block): Likewise.
10216         (block_jumps_and_fallthru_p): Likewise.
10217         (dead_or_predicable): Likewise.
10218         * dwarf2out.c (debug_str_hash_forced): New.
10219         (find_AT_string): Add comment.
10220         (gen_label_for_indirect_string): New.
10221         (get_debug_string_label): New.
10222         (AT_string_form): Use it.
10223         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
10224         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
10225         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
10226         several operations that cannot be represented with DWARF opcodes.
10227         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
10228         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
10229         (dwarf2out_var_location): Take during-call mark into account.
10230         (output_indirect_string): Update comment.  Output if there are
10231         label and references.
10232         (prune_indirect_string): New.
10233         (prune_unused_types): Call it if debug_str_hash_forced.
10234         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
10235         (dw_long_long_const): Remove.
10236         (struct dw_val_struct): Change val_long_long type to rtx.
10237         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
10238         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
10239         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
10240         component instead of HOST_BITS_PER_LONG.
10241         (output_loc_operands): Likewise.  For const8* assert
10242         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
10243         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
10244         rather than HOST_BITS_PER_LONG is >= 64.
10245         (add_AT_long_long): Remove val_hi and val_lo arguments, add
10246         val_const_double.
10247         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
10248         HOST_BITS_PER_LONG for dw_val_class_long_long.
10249         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
10250         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
10251         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
10252         DW_OP_stack_value.
10253         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10254         Handle DW_OP_implicit_value.
10255         (extract_int): Move prototype earlier.
10256         (mem_loc_descriptor): For SUBREG punt if inner
10257         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
10258         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
10259         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
10260         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
10261         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
10262         instead of Pmode size.
10263         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
10264         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
10265         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
10266         (concat_loc_descriptor, concatn_loc_descriptor,
10267         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
10268         (add_location_or_const_value_attribute): Likewise.  For single
10269         location loc_lists attempt to use add_const_value_attribute
10270         for constant decls.  Add DW_AT_const_value even if
10271         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
10272         in its expression.
10273         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
10274         (control_flow_insn_p): Likewise.
10275         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
10276         (separate_decls_in_region_debug_bind): New.
10277         (separate_decls_in_region): Process debug bind stmts afterwards.
10278         * recog.c (verify_changes): Handle debug insns.
10279         (extract_insn): Likewise.
10280         (peephole2_optimize): Skip debug insns.
10281         * dse.c (scan_insn): Skip debug insns.
10282         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
10283         Pass it on.
10284         (setup_id_for_insn): Handle debug insns.
10285         (maybe_tidy_empty_bb): Adjust whitespace.
10286         (tidy_control_flow): Skip debug insns.
10287         (sel_remove_insn): Adjust for debug insns.
10288         (sel_estimate_number_of_insns): Skip debug insns.
10289         (create_insn_rtx_from_pattern): Handle debug insns.
10290         (create_copy_of_insn_rtx): Likewise.
10291         * sel-sched-.h (sel_bb_end): Declare.
10292         (sel_bb_empty_or_nop_p): New.
10293         (get_all_loop_exits): Use it.
10294         (_eligible_successor_edge_p): Likewise.
10295         (return_nop_to_pool): Adjust.
10296         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
10297         * ira-lives.c (process_bb_node_lives): Skip debug insns.
10298         * gimple-pretty-print.c (dump_gimple_debug): New.
10299         (dump_gimple_stmt): Use it.
10300         (dump_bb_header): Skip gimple debug stmts.
10301         * regmove.c (optimize_reg_copy_1): Discount debug insns.
10302         (fixup_match_2): Likewise.
10303         (regmove_backward_pass): Likewise.  Simplify combined
10304         replacement.  Handle debug insns.
10305         * function.c (instantiate_virtual_regs): Handle debug insns.
10306         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
10307         * print-rtl.h: Include cselib.h.
10308         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
10309         * df.h (df_inns_rescan_debug_internal): Declare.
10310         * gcse.c (alloc_hash_table): Estimate n_insns.
10311         (cprop_insn): Don't regard debug insns as changes.
10312         (bypass_conditional_jumps): Skip debug insns.
10313         (one_pre_gcse_pass): Adjust.
10314         (one_code_hoisting_pass): Likewise.
10315         (compute_ld_motion_mems): Skip debug insns.
10316         (one_cprop_pass): Adjust.
10317         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
10318         (if_convertible_stmt_p): Handle debug stmts.
10319         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
10320         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
10321         * ira-build.c (create_bb_allocnos): Skip debug insns.
10322         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
10323         (has_single_use): Likewise.
10324         (single_imm_use): Likewise.
10325         (num_imm_uses): Likewise.
10326         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
10327         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
10328         (create_outofssa_var_map): Likewise.
10329         * lower-subreg.c (adjust_decomposed_uses): New.
10330         (resolve_debug): New.
10331         (decompose_multiword_subregs): Use it.
10332         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
10333         * emit-rtl.c: Include params.h.
10334         (cur_debug_insn_uid): Define.
10335         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
10336         (copy_rtx_if_shared_1): Handle debug insns.
10337         (reset_used_flags): Likewise.
10338         (set_used_flags): LIkewise.
10339         (get_max_insn_count): New.
10340         (next_nondebug_insn): New.
10341         (prev_nondebug_insn): New.
10342         (make_debug_insn_raw): New.
10343         (emit_insn_before_noloc): Handle debug insns.
10344         (emit_jump_insn_before_noloc): Likewise.
10345         (emit_call_insn_before_noloc): Likewise.
10346         (emit_debug_insn_before_noloc): New.
10347         (emit_insn_after_noloc): Handle debug insns.
10348         (emit_jump_insn_after_noloc): Likewise.
10349         (emit_call_insn_after_noloc): Likewise.
10350         (emit_debug_insn_after_noloc): Likewise.
10351         (emit_insn_after): Take loc from earlier non-debug insn.
10352         (emit_jump_insn_after): Likewise.
10353         (emit_call_insn_after): Likewise.
10354         (emit_debug_insn_after_setloc): New.
10355         (emit_debug_insn_after): New.
10356         (emit_insn_before): Take loc from later non-debug insn.
10357         (emit_jump_insn_before): Likewise.
10358         (emit_call_insn_before): Likewise.
10359         (emit_debug_insn_before_setloc): New.
10360         (emit_debug_insn_before): New.
10361         (emit_insn): Handle debug insns.
10362         (emit_debug_insn): New.
10363         (emit_jump_insn): Handle debug insns.
10364         (emit_call_insn): Likewise.
10365         (emit): Likewise.
10366         (init_emit): Take min-nondebug-insn-uid into account.
10367         Initialize cur_debug_insn_uid.
10368         (emit_copy_of_insn_after): Handle debug insns.
10369         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
10370         location of single rhs in place.
10371         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
10372         (floor_sdiv_adjust): New.
10373         (cell_sdiv_adjust): New.
10374         (cell_udiv_adjust): New.
10375         (round_sdiv_adjust): New.
10376         (round_udiv_adjust): New.
10377         (wrap_constant): Moved from cselib.
10378         (unwrap_constant): New.
10379         (expand_debug_expr): New.
10380         (expand_debug_locations): New.
10381         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
10382         debug bind stmts.
10383         (gimple_expand_cfg): Expand debug locations.
10384         * cselib.c: Include tree-pass.h.
10385         (struct expand_value_data): New.
10386         (cselib_record_sets_hook): New.
10387         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
10388         (cselib_clear_table): Move, and implemnet in terms of...
10389         (cselib_reset_table_with_next_value): ... this.
10390         (cselib_get_next_unknown_value): New.
10391         (discard_useless_locs): Don't discard preserved values.
10392         (cselib_preserve_value): New.
10393         (cselib_preserved_value_p): New.
10394         (cselib_preserve_definitely): New.
10395         (cselib_clear_preserve): New.
10396         (cselib_preserve_only_values): New.
10397         (new_cselib_val): Take rtx argument.  Dump it in details.
10398         (cselib_lookup_mem): Adjust.
10399         (expand_loc): Take regs_active in struct.  Adjust.  Silence
10400         dumps unless details are requested.
10401         (cselib_expand_value_rtx_cb): New.
10402         (cselib_expand_value_rtx): Rename and reimplment in terms of...
10403         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
10404         without details.  Copy more subregs.  Try to resolve values
10405         using a callback.  Wrap constants.
10406         (cselib_subst_to_values): Adjust.
10407         (cselib_log_lookup): New.
10408         (cselib_lookup): Call it.
10409         (cselib_invalidate_regno): Don't count preserved values as useless.
10410         (cselib_invalidate_mem): Likewise.
10411         (cselib_record_set): Likewise.
10412         (struct set): Renamed to cselib_set, moved to cselib.h.
10413         (cselib_record_sets): Adjust.  Call hook.
10414         (cselib_process_insn): Reset table when it would be cleared.
10415         (dump_cselib_val): New.
10416         (dump_cselib_table): New.
10417         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
10418         (remove_forwarder_block): Support moving debug stmts.
10419         * cselib.h (cselib_record_sets_hook): Declare.
10420         (cselib_expand_callback): New type.
10421         (cselib_expand_value_rtx_cb): Declare.
10422         (cselib_reset_table_with_next_value): Declare.
10423         (cselib_get_next_unknown_value): Declare.
10424         (cselib_preserve_value): Declare.
10425         (cselib_preserved_value_p): Declare.
10426         (cselib_preserve_only_values): Declare.
10427         (dump_cselib_table): Declare.
10428         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
10429         (try_crossjump_to_edge): Likewise.
10430         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
10431         dominated blocks when debug stmts are present.
10432         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
10433         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
10434         (set_var_live_on_entry): Likewise.
10435         * loop-invariant.c (find_invariants_bb): Skip debug insns.
10436         * cfglayout.c (curr_location, last_location): Make static.
10437         (set_curr_insn_source_location): Don't avoid bouncing.
10438         (get_curr_insn_source_location): New.
10439         (get_curr_insn_block): New.
10440         (duplicate_insn_chain): Handle debug insns.
10441         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
10442         into debug stmts.
10443         * common.opt (fcompare-debug): Move to sort order.
10444         (fdump-unnumbered-links): Likewise.
10445         (fvar-tracking-assignments): New.
10446         (fvar-tracking-assignments-toggle): New.
10447         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
10448         because of debug stmts.
10449         (mark_stmt_if_obviously_necessary): Mark debug stmts.
10450         (eliminate_unnecessary_stmts): Walk dominated blocks before
10451         dominators.
10452         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
10453         * ira.c (memref_used_between_p): Skip debug insns.
10454         (update_equiv_regs): Likewise.
10455         * sched-deps.c (sd_lists_size): Accept empty list.
10456         (sd_init_insn): Mark debug insns.
10457         (sd_finish_insn): Unmark them.
10458         (sd_add_dep): Reject non-debug deps on debug insns.
10459         (fixup_sched_groups): Give debug insns group treatment.
10460         Skip debug insns.
10461         (sched_analyze_reg): Don't mark debug insns for sched before call.
10462         (sched_analyze_2): Handle debug insns.
10463         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
10464         insns.
10465         (deps_analyze_insn): Handle debug insns.
10466         (deps_start_bb): Skip debug insns.
10467         (init_deps): Initialize last_debug_insn.
10468         * tree-ssa.c (target_for_debug_bind): New.
10469         (find_released_ssa_name): New.
10470         (propagate_var_def_into_debug_stmts): New.
10471         (propagate_defs_into_debug_stmts): New.
10472         (verify_ssa): Skip debug bind stmts without values.
10473         (warn_uninialized_vars): Skip debug stmts.
10474         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
10475         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
10476         (rtx_equal_p): Likewise.
10477         * ira-costs.c (scan_one_insn): Skip debug insns.
10478         (process_bb_node_for_hard_reg_moves): Likewise.
10479         * rtl.h (DEBUG_INSN_P): New.
10480         (NONDEBUG_INSN_P): New.
10481         (MAY_HAVE_DEBUG_INSNS): New.
10482         (INSN_P): Accept debug insns.
10483         (RTX_FRAME_RELATED_P): Likewise.
10484         (INSN_DELETED_P): Likewise
10485         (PAT_VAR_LOCATION_DECL): New.
10486         (PAT_VAR_LOCATION_LOC): New.
10487         (PAT_VAR_OCATION_STATUS): New.
10488         (NOTE_VAR_LOCATION_DECL): Reimplement.
10489         (NOTE_VAR_LOCATION_LOC): Likewise.
10490         (NOTE_VAR_LOCATION_STATUS): Likewise.
10491         (INSN_VAR_LOCATION): New.
10492         (INSN_VAR_LOCATION_DECL): New.
10493         (INSN_VAR_LOCATION_LOC): New.
10494         (INSN_VAR_LOCATION_STATUS): New.
10495         (gen_rtx_UNKNOWN_VAR_LOC): New.
10496         (VAR_LOC_UNKNOWN_P): New.
10497         (NOTE_DURING_CALL_P): New.
10498         (SCHED_GROUP_P): Accept debug insns.
10499         (emit_debug_insn_before): Declare.
10500         (emit_debug_insn_before_noloc): Declare.
10501         (emit_debug_insn_beore_setloc): Declare.
10502         (emit_debug_insn_after): Declare.
10503         (emit_debug_insn_after_noloc): Declare.
10504         (emit_debug_insn_after_setloc): Declare.
10505         (emit_debug_insn): Declare.
10506         (make_debug_insn_raw): Declare.
10507         (prev_nondebug_insn): Declare.
10508         (next_nondebug_insn): Declare.
10509         (delegitimize_mem_from_attrs): Declare.
10510         (get_max_insn_count): Declare.
10511         (wrap_constant): Declare.
10512         (unwrap_constant): Declare.
10513         (get_curr_insn_source_location): Declare.
10514         (get_curr_insn_block): Declare.
10515         * tree-inline.c (insert_debug_decl_map): New.
10516         (processing_debug_stmt): New.
10517         (remap_decl): Don't create new mappings in debug stmts.
10518         (remap_gimple_op_r): Don't add references in debug stmts.
10519         (copy_tree_body_r): Likewise.
10520         (remap_gimple_stmt): Handle debug bind stmts.
10521         (copy_bb): Skip debug stmts.
10522         (copy_edges_for_bb): Likewise.
10523         (copy_debug_stmt): New.
10524         (copy_debug_stmts): New.
10525         (copy_body): Copy debug stmts at the end.
10526         (insert_init_debug_bind): New.
10527         (insert_init_stmt): Take id.  Skip and emit debug stmts.
10528         (setup_one_parameter): Remap variable earlier, register debug mapping.
10529         (estimate_num_insns): Skip debug stmts.
10530         (expand_call_inline): Preserve debug_map.
10531         (optimize_inline_calls): Check for no debug_stmts left-overs.
10532         (unsave_expr_now): Preserve debug_map.
10533         (copy_gimple_seq_and_replace_locals): Likewise.
10534         (tree_function_versioning): Check for no debug_stmts left-overs.
10535         Init and destroy debug_map as needed.  Split edges unconditionally.
10536         (build_duplicate_type): Init and destroy debug_map as needed.
10537         * tree-inline.h: Include gimple.h instead of pointer-set.h.
10538         (struct copy_body_data): Add debug_stmts and debug_map.
10539         * sched-int.h (struct ready_list): Add n_debug.
10540         (struct deps): Add last_debug_insn.
10541         (DEBUG_INSN_SCHED_P): New.
10542         (BOUNDARY_DEBUG_INSN_P): New.
10543         (SCHEDULE_DEBUG_INSN_P): New.
10544         (sd_iterator_cond): Accept empty list.
10545         * combine.c (create_log_links): Skip debug insns.
10546         (combine_instructions): Likewise.
10547         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
10548         return value is always unshared.
10549         (struct rtx_subst_pair): New.
10550         (auto_adjust_pair): New.
10551         (propagate_for_debug_subst): New.
10552         (propagate_for_debug): New.
10553         (try_combine): Skip debug insns.  Propagate removed defs into
10554         debug insns.
10555         (next_nonnote_nondebug_insn): New.
10556         (distribute_notes): Use it.  Skip debug insns.
10557         (distribute_links): Skip debug insns.
10558         * tree-outof-ssa.c (set_location_for_edge): Likewise.
10559         * resource.c (mark_target_live_regs): Likewise.
10560         * var-tracking.c: Include cselib.h and target.h.
10561         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
10562         MO_VAL_SET.
10563         (micro_operation_type_name): New.
10564         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
10565         (struct micro_operation_def): Update comments.
10566         (decl_or_value): New type.  Use instead of decls.
10567         (struct emit_note_data_def): Add vars.
10568         (struct attrs_def): Use decl_or_value.
10569         (struct variable_tracking_info_def): Add permp, flooded.
10570         (struct location_chain_def): Update comment.
10571         (struct variable_part_def): Use decl_or_value.
10572         (struct variable_def): Make var_part a variable length array.
10573         (valvar_pool): New.
10574         (scratch_regs): New.
10575         (cselib_hook_called): New.
10576         (dv_is_decl_p): New.
10577         (dv_is_value_p): New.
10578         (dv_as_decl): New.
10579         (dv_as_value): New.
10580         (dv_as_opaque): New.
10581         (dv_onepart_p): New.
10582         (dv_pool): New.
10583         (IS_DECL_CODE): New.
10584         (check_value_is_not_decl): New.
10585         (dv_from_decl): New.
10586         (dv_from_value): New.
10587         (dv_htab_hash): New.
10588         (variable_htab_hash): Use it.
10589         (variable_htab_eq): Support values.
10590         (variable_htab_free): Free from the right pool.
10591         (attrs_list_member, attrs_list_insert): Use decl_or_value.
10592         (attrs_list_union): Adjust.
10593         (attrs_list_mpdv_union): New.
10594         (tie_break_pointers): New.
10595         (canon_value_cmp): New.
10596         (unshare_variable): Return possibly-modified slot.
10597         (vars_copy_1): Adjust.
10598         (var_reg_decl_set): Adjust.  Split out of...
10599         (var_reg_set): ... this.
10600         (get_init_value): Adjust.
10601         (var_reg_delete_and_set): Adjust.
10602         (var_reg_delete): Adjust.
10603         (var_regno_delete): Adjust.
10604         (var_mem_decl_set): Split out of...
10605         (var_mem_set): ... this.
10606         (var_mem_delete_and_set): Adjust.
10607         (var_mem_delete): Adjust.
10608         (val_store): New.
10609         (val_reset): New.
10610         (val_resolve): New.
10611         (variable_union): Adjust.  Speed up merge of 1-part vars.
10612         (variable_canonicalize): Use unshared slot.
10613         (VALUED_RECURSED_INTO): New.
10614         (find_loc_in_1pdv): New.
10615         (struct dfset_merge): New.
10616         (insert_into_intersection): New.
10617         (intersect_loc_chains): New.
10618         (loc_cmp): New.
10619         (canonicalize_loc_order_check): New.
10620         (canonicalize_values_mark): New.
10621         (canonicalize_values_star): New.
10622         (variable_merge_over_cur): New.
10623         (variable_merge_over_src): New.
10624         (dataflow_set_merge): New.
10625         (dataflow_set_equiv_regs): New.
10626         (remove_duplicate_values): New.
10627         (struct dfset_post_merge): New.
10628         (variable_post_merge_new_vals): New.
10629         (variable_post_merge_perm_vals): New.
10630         (dataflow_post_merge_adjust): New.
10631         (find_mem_expr_in_1pdv): New.
10632         (dataflow_set_preserve_mem_locs): New.
10633         (dataflow_set_remove_mem_locs): New.
10634         (dataflow_set_clear_at_call): New.
10635         (onepart_variable_different_p): New.
10636         (variable_different_p): Use it.
10637         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
10638         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
10639         if not needed.
10640         (track_loc_p): Pass it true.
10641         (struct count_use_info): New.
10642         (find_use_val): New.
10643         (replace_expr_with_values): New.
10644         (log_op_type): New.
10645         (use_type): New, partially split out of...
10646         (count_uses): ... this.  Count new micro-ops.
10647         (count_uses_1): Adjust.
10648         (count_stores): Adjust.
10649         (count_with_sets): New.
10650         (VAL_NEEDS_RESOLUTION): New.
10651         (VAL_HOLDS_TRACK_EXPR): New.
10652         (VAL_EXPR_IS_COPIED): New.
10653         (VAL_EXPR_IS_CLOBBERED): New.
10654         (add_uses): Adjust.  Generate new micro-ops.
10655         (add_uses_1): Adjust.
10656         (add_stores): Generate new micro-ops.
10657         (add_with_sets): New.
10658         (find_src_status): Adjust.
10659         (find_src_set_src): Adjust.
10660         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
10661         Handle new micro-ops.  Canonicalize value equivalances.
10662         (vt_find_locations): Compute total size of hash tables for
10663         dumping.  Perform merge for var-tracking-assignments.  Don't
10664         disregard single-block loops.
10665         (dump_attrs_list): Handle decl_or_value.
10666         (dump_variable): Take variable.  Deal with decl_or_value.
10667         (dump_variable_slot): New.
10668         (dump_vars): Use it.
10669         (dump_dataflow_sets): Adjust.
10670         (set_slot_part): New, extended to support one-part variables
10671         after splitting out of...
10672         (set_variable_part): ... this.
10673         (clobber_slot_part): New, split out of...
10674         (clobber_variable_part): ... this.
10675         (delete_slot_part): New, split out of...
10676         (delete_variable_part): .... this.
10677         (check_wrap_constant): New.
10678         (vt_expand_loc_callback): New.
10679         (vt_expand_loc): New.
10680         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
10681         EMIT_NOTE_AFTER_CALL_INSN.
10682         (emit_notes_for_differences_1): Adjust.  Handle values.
10683         (emit_notes_for_differences_2): Likewise.
10684         (emit_notes_for_differences): Adjust.
10685         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
10686         Adjust.  Handle new micro-ops.
10687         (vt_add_function_parameters): Adjust.  Create and bind values.
10688         (vt_initialize): Adjust.  Initialize scratch_regs and
10689         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
10690         operations.  Move some code to count_with_sets and add_with_sets.
10691         (delete_debug_insns): New.
10692         (vt_debug_insns_local): New.
10693         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
10694         cselib.
10695         (var_tracking_main): If var-tracking-assignments is enabled
10696         but var-tracking isn't, delete debug insns and leave.  Likewise
10697         if we exceed limits or fail the stack adjustments tests, and
10698         after all var-tracking processing.
10699         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
10700         (dataflow_set): Add traversed_vars.
10701         (value_chain, const_value_chain): New typedefs.
10702         (value_chain_pool, value_chains): New variables.
10703         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
10704         add_value_chains, add_cselib_value_chains, remove_value_chain,
10705         remove_value_chains, remove_cselib_value_chains): New functions.
10706         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
10707         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
10708         static inlines.
10709         (shared_hash_find_slot_unshare, shared_hash_find_slot,
10710         shared_hash_find_slot_noinsert, shared_hash_find): Update.
10711         (dst_can_be_shared): New variable.
10712         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
10713         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
10714         different from set->vars, look up slot again instead of using the
10715         passed in slot.
10716         (dataflow_set_init): Initialize traversed_vars.
10717         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
10718         lookup if set->vars is shared.  Don't keep slot cleared before
10719         calling unshare_variable.  Unshare set->vars if needed.  Adjust
10720         unshare_variable callers.  Clear dst_can_be_shared if needed.
10721         Even ->refcount == 1 vars must be unshared if set->vars is shared
10722         and var needs to be modified.
10723         (dataflow_set_union): Set traversed_vars during canonicalization.
10724         (VALUE_CHANGED, DECL_CHANGED): Define.
10725         (set_dv_changed, dv_changed_p): New static inlines.
10726         (track_expr_p): Clear DECL_CHANGED.
10727         (dump_dataflow_sets): Set it.
10728         (variable_was_changed): Call set_dv_changed.
10729         (emit_note_insn_var_location): Likewise.
10730         (changed_variables_stack): New variable.
10731         (check_changed_vars_1, check_changed_vars_2): New functions.
10732         (emit_notes_for_changes): Do nothing if changed_variables is
10733         empty.  Traverse changed_variables with check_changed_vars_1,
10734         call check_changed_vars_2 on each changed_variables_stack entry.
10735         (emit_notes_in_bb): Add SET argument.  Just clear it at the
10736         beginning, use it instead of local &set, don't destroy it at the end.
10737         (vt_emit_notes): Call dataflow_set_clear early on all
10738         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
10739         computed set, dataflow_set_clear also VTI(bb)->in when we are
10740         done with the basic block.  Initialize changed_variables_stack,
10741         free it afterwards.  If ENABLE_CHECKING verify that after noting
10742         differences to an empty set value_chains hash table is empty.
10743         (vt_initialize): Initialize value_chains and value_chain_pool.
10744         (vt_finalize): Delete value_chains htab, free value_chain_pool.
10745         (variable_tracking_main): Call dump_dataflow_sets before calling
10746         vt_emit_notes, not after it.
10747         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
10748         (propagate_var_def_into_debug_stmts): Declare.
10749         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
10750         (df_set_note): Reject debug insns.
10751         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
10752         add notes to debug insns.
10753         (df_note_bb_compute): Adjust.  Likewise.
10754         (df_simulate_uses): Skip debug insns.
10755         (df_simulate_initialize_backwards): Likewise.
10756         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
10757         (subst_stack_regs_pat): Reject debug insns.
10758         (convert_regs_1): Handle debug insns.
10759         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
10760         (print-rtl.o): Depend on cselib.h.
10761         (cselib.o): Depend on TREE_PASS_H.
10762         (var-tracking.o): Depend on cselib.h and TARGET_H.
10763         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
10764         (init_ready_list): Skip boundary debug insns.
10765         (add_branch_dependences): Skip debug insns.
10766         (free_block_dependencies): Check for blocks with only debug insns.
10767         (compute_priorities): Likewise.
10768         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
10769         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
10770         all callers.
10771         (gimple_build_debug_bind_stat): New.
10772         (empty_body_p): Skip debug stmts.
10773         (gimple_has_side_effects): Likewise.
10774         (gimple_rhs_has_side_effects): Likewise.
10775         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
10776         (gimple_build_debug_bind_stat): Declare.
10777         (gimple_build_debug_bind): Define.
10778         (is_gimple_debug): New.
10779         (gimple_debug_bind_p): New.
10780         (gimple_debug_bind_get_var): New.
10781         (gimple_debug_bind_get_value): New.
10782         (gimple_debug_bind_get_value_ptr): New.
10783         (gimple_debug_bind_set_var): New.
10784         (gimple_debug_bind_set_value): New.
10785         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
10786         (gimple_debug_bind_reset_value): New.
10787         (gimple_debug_bind_has_value_p): New.
10788         (gsi_next_nondebug): New.
10789         (gsi_prev_nondebug): New.
10790         (gsi_start_nondebug_bb): New.
10791         (gsi_last_nondebug_bb): New.
10792         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
10793         (print_insn): Handle DEBUG_INSN.
10794         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
10795         of first insn prevail.
10796         (first_stmt): Skip debug stmts.
10797         (first_non_label_stmt): Likewise.
10798         (last_stmt): Likewise.
10799         (has_zero_uses_1): New.
10800         (single_imm_use_1): New.
10801         (verify_gimple_debug): New.
10802         (verify_types_in_gimple_stmt): Handle debug stmts.
10803         (verify_stmt): Likewise.
10804         (debug_loop_num): Skip debug stmts.
10805         (remove_edge_and_dominated_blocks): Remove dominators last.
10806         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
10807         (linearize_expr): Likewise.
10808         * config/i386/i386.c (ix86_delegitimize_address): Call
10809         default implementation.
10810         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
10811         (group_barrier_needed): Skip debug insns.
10812         (emit_insn_group_barriers): Likewise.
10813         (emit_all_insn_group_barriers): Likewise.
10814         (ia64_variable_issue): Handle debug insns.
10815         (ia64_dfa_new_cycle): Likewise.
10816         (final_emit_insn_group_barriers): Skip debug insns.
10817         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
10818         def cfa without frame.
10819         (process_set): Likewise.
10820         (process_for_unwind_directive): Pass frame on.
10821         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10822         (rs6000_delegitimize_address): New.
10823         (rs6000_debug_adjust_cost): Handle debug insns.
10824         (is_microcoded_insn): Likewise.
10825         (is_cracked_insn): Likewise.
10826         (is_nonpipeline_insn): Likewise.
10827         (insn_must_be_first_in_group): Likewise.
10828         (insn_must_be_last_in_group): Likewise.
10829         (force_new_group): Likewise.
10830         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
10831         contains only debug insns.
10832         (rtl_merge_blocks): Skip debug insns.
10833         (purge_dead_edges): Likewise.
10834         (rtl_block_ends_with_call_p): Skip debug insns.
10835         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
10836         (mark_reg_dependencies): Skip debug insns.
10837         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
10838         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
10839         * tree-ssa-threadedge.c
10840         (record_temporary_equivalences_from_stmts): Skip debug stmts.
10841         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
10842         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
10843         (copyprop_hardreg_forward_1): Handle debug insns.
10844         * reload1.c (reload): Skip debug insns.  Replace unassigned
10845         pseudos in debug insns with their equivalences.
10846         (eliminate_regs_in_insn): Skip debug insns.
10847         (emit_input_reload_insns): Skip debug insns at first, adjust
10848         them later.
10849         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
10850         (get_indirect_ref_operands): Pass opf_no_vops on.
10851         (get_expr_operands): Likewise.  Skip debug stmts.
10852         (parse_ssa_operands): Scan debug insns with opf_no_vops.
10853
10854 2009-09-01  Richard Henderson  <rth@redhat.com>
10855
10856         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
10857         stmt_ends_pp_p statements at least once.
10858         * tree-vrp.c (vrp_initialize): Likewise.
10859         (vrp_visit_stmt): Be prepared for non-interesting stmts.
10860
10861 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
10862
10863         PR bootstrap/41205
10864         Fix AIX bootstrap after PR debug/30161
10865         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
10866         that is a GNU extension.
10867         (tmpl_value_parm_die_table): Move the definition of this global
10868         outside #ifdef DWARF2_DEBUGGING_INFO region.
10869
10870 2009-09-01  Richard Guenther  <rguenther@suse.de>
10871
10872         * tree.c (tree_expr_size): New function.
10873         * tree.h (tree_expr_size): Declare.
10874         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
10875         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
10876         * langhooks.c (lhd_expr_size): Remove.
10877         * langhooks.h (struct lang_hooks): Remove expr_size.
10878         * explow.c (expr_size): Use tree_expr_size.
10879         (int_expr_size): Likewise.
10880         * langhooks-def.h (lhd_expr_size): Remove.
10881         (LANG_HOOKS_EXPR_SIZE): Likewise.
10882         (LANG_HOOKS_INITIALIZER): Adjust.
10883
10884 2009-09-01  Richard Guenther  <rguenther@suse.de>
10885
10886         * tree-flow.h (mark_addressable): Move declaration ...
10887         * tree.h (mark_addressable): ... here.
10888         * stmt.c (expand_asm_operands): Use mark_addressable, not
10889         lang_hooks.mark_addressable.
10890         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
10891         LANG_HOOKS_MARK_ADDRESSABLE.
10892         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
10893         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
10894
10895 2009-08-31  Chris Demetriou  <cgd@google.com>
10896
10897         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
10898         vectorize if not TARGET_SSE2.
10899
10900 2009-08-31  DJ Delorie  <dj@redhat.com>
10901
10902         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
10903         registers if no coprocessor is enabled.
10904
10905 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
10906
10907         PR debug/30161
10908         * cgraph.h (cgraph_get_node): Declare ...
10909         * cgraph.c (cgraph_get_node): ... new function.
10910         * dwarf2out.c (gen_generic_params_dies,
10911         generic_parameter_die, tree_add_const_value_attribute_for_decl,
10912         make_ith_pack_parameter_name,
10913         append_entry_to_tmpl_value_parm_die_table,
10914         gen_remaining_tmpl_value_param_die_attribute): New functions.
10915         (gen_subprogram_die): Generate debug info for template parameters
10916         if debug info level is higher than DINFO_LEVEL_TERSE.
10917         Use tree_add_const_value_attribute_for_decl instead of
10918         tree_add_const_value_attribute.
10919         (gen_const_die): Use tree_add_const_value_attribute_for_decl
10920         instead of tree_add_const_value_attribute.
10921         (gen_struct_or_union_type_die): Generate debug
10922         info for template parameters if debug info level is higher than
10923         DINFO_LEVEL_TERSE.
10924         (tree_add_const_value_attribute): Handle integral and pointer
10925         constants. Update comment.
10926         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
10927         (dwarf_attr_name): Support DW_AT_GNU_template_name.
10928         (reference_to_unused): Fix thinko. Remove redundant predicates from
10929         tests.
10930         (tree_add_const_value_attribute): Make this work for constant
10931         expressions only.
10932         tree_add_const_value_attribute_for_decl is to be used for variable
10933         DECLs now.
10934         (add_location_or_const_value_attribute): Use
10935         tree_add_const_value_attribute_for_decl now.
10936         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
10937         DW_TAG_template_value_param DIEs after function DIEs have been
10938         emitted.
10939         * langhooks.h (lang_hooks_for_types): Add
10940         get_argument_pack_elems.
10941         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
10942         (lang_hooks): Added get_innermost_generic_parms,
10943         get_innermost_generic_args.
10944         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
10945         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
10946         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
10947         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
10948
10949 2009-08-31  DJ Delorie  <dj@redhat.com>
10950
10951         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
10952         it once we start generating the prologue or epilogue.
10953         (mep_call_saves_register): If the frame is locked, re-use
10954         cached values.
10955         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
10956         (mep_expand_prologue): Call it.
10957         (mep_expand_epilogue): Likewise.
10958         (mep_start_function): Use the same logic as mep_expand_prologue.
10959         (mep_pass_by_reference): Make logic more readable.
10960         (mep_return_in_memory): Zero-sized objects are passed in memory.
10961         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
10962
10963 2009-08-31  Richard Guenther  <rguenther@suse.de>
10964
10965         * builtins.c (fold_builtin_memory_op): Use the alias oracle
10966         to query if the memory regions for memmove overlap.
10967         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10968         asserts on pointers, instead deal with odd trees.
10969         (ptr_derefs_may_alias_p): Likewise.
10970         (refs_may_alias_p_1): Constructor bases also never alias.
10971
10972 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
10973
10974         * doc/install.texi (Final install): Adjust reference on where to
10975         order printed manuals.
10976
10977 2009-08-30  Olivier Hainque  <hainque@adacore.com>
10978
10979         * dwarf2out.c (switch_to_frame_table_section): Move
10980         definition prior to first use.
10981
10982 2009-08-30  Richard Guenther  <rguenther@suse.de>
10983
10984         PR tree-optimization/41186
10985         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
10986         (ao_ref_init_from_ptr_and_size): New function.
10987         (ref_maybe_used_by_call_p_1): Be more precise tracking
10988         used ranges for builtin functions.
10989         (ref_maybe_used_by_call_p): Adjust.
10990         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
10991         ranges for builtin functions.
10992         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
10993
10994 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
10995
10996         PR target/41081
10997         * fwprop.c (get_reg_use_in): Delete.
10998         (free_load_extend): New function.
10999         (forward_propagate_subreg): Use it.
11000
11001 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11002
11003         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
11004
11005 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
11006
11007         PR/41184
11008         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
11009         padding.
11010
11011 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
11012
11013         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
11014         fini or fini_array section.
11015
11016 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11017
11018         * graphite-dependences.c (graphite_legal_transform_bb): Call
11019         pbb_remove_duplicate_pdrs.
11020         * graphite-poly.c (can_collapse_pdr): Removed.
11021         (pdr_find_duplicate): Removed.
11022         (can_collapse_pdrs): New.
11023         (pbb_remove_duplicate_pdrs): New.
11024         (new_poly_dr): Do not look for duplicates.
11025         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
11026         (PBB_PDR_DUPLICATES_REMOVED): New.
11027         (pbb_remove_duplicate_pdrs): Declared.
11028
11029 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11030
11031         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
11032         the strides by multiplying by PDR_NB_REFS.
11033         * graphite-poly.c (can_collapse_pdr): New.
11034         (pdr_find_duplicate): New.
11035         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
11036         Initialize PDR_NB_REFS.
11037         * graphite-poly.h (struct poly_dr): Add field nb_refs.
11038         (PDR_NB_REFS): New.
11039         (new_poly_dr): Number of subscripts is a graphite_dim_t.
11040
11041 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11042
11043         PR middle-end/40965
11044         * graphite-poly.c (apply_poly_transforms): Remove legality test before
11045         any transform.
11046
11047 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11048
11049         * graphite-dependences.c (pddr_original_scattering): Return NULL
11050         for read-read dependence relations.
11051         * graphite-poly.h (enum poly_dr_type): Fix comment.
11052         (pdr_read_p): New.
11053         (pdr_write_p): New.
11054         (pdr_may_write_p): New.
11055
11056 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11057
11058         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
11059         (struct poly_dr): Same.
11060         (new_poly_dr): Same.
11061         * graphite-poly.c (new_poly_dr): Same.
11062         * graphite-dependences.c (dot_deps): Disable call to system.
11063
11064 2009-08-28  Cary Coutant  <ccoutant@google.com>
11065
11066         PR debug/41063
11067         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
11068         struct/union/enum types local to a function.
11069
11070 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11071             Sebastian Pop  <sebastian.pop@amd.com>
11072
11073         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
11074         pbb_strip_mine_time_depth.  Changed the implementation so that
11075         transformation is expressed as a transformation on
11076         time (scatttering) dimensions.  Also, ensures that the 2d+1
11077         scheduling format is preserved.
11078         (pbb_strip_mine_profitable_p): Profitability is based on the
11079         iteration number of a given time (scattering) dimension,
11080         and not on a original loop depth dimension.
11081         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
11082         (pbb_do_strip_mine): Call psct_dynamic_dim.
11083         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
11084         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
11085         (pbb_nb_dynamic_scattering_transform): New.
11086         (psct_dynamic_dim): New.
11087
11088 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11089
11090         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11091         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11092         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
11093         * graphite-interchange.c (build_linearized_memory_access): Same.
11094         (memory_stride_in_loop): Same.
11095
11096 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11097
11098         * graphite-dependences.c (pddr_original_scattering): New.
11099         (graphite_legal_transform_dr): Call pddr_original_scattering.
11100         (dot_deps_1): New.
11101         (dot_deps): New.
11102         * graphite-dependences.h (dot_deps): Declared.
11103         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
11104         (print_pdr): Print PDR_ID.
11105         * graphite-poly.h (struct poly_dr): Add field id.
11106         (PDR_ID): New.
11107         (pbb_index): New.
11108         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
11109
11110 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11111
11112         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
11113         not delete the original dependence relation.
11114
11115 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11116
11117         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
11118         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
11119         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
11120         (free_poly_ddr): New.
11121         (pddr_is_empty): New.
11122         (dependence_polyhedron_1): Now returns a poly_ddr_p.
11123         (dependence_polyhedron): Same.  Remove useless gcc_assert.
11124         Remove fprintfs.
11125         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
11126         (graphite_carried_dependence_level_k): Call pddr_is_empty.
11127         * graphite-dependences.h (enum poly_dependence_kind): New.
11128         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
11129         (PDRP_SOURCE): Renamed PDDR_SOURCE.
11130         (PDRP_SINK): Renamed PDDR_SINK.
11131         (PDRP_DDP): Renamed PDDR_DDP.
11132         (PDDR_KIND): New.
11133         (free_poly_ddr): Declared.
11134         * graphite-poly.c (new_scop): Use the new hash function names.
11135         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
11136         into original_pddrs.
11137         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
11138
11139 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11140
11141         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
11142         bounds with LT_EXPR to make niter analysis more precise on code
11143         generated by Graphite.
11144
11145 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11146
11147         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
11148         (graphite_legal_transform_bb): Same.
11149         (poly_drs_may_alias_p): Same.
11150
11151 2009-08-28  Richard Guenther  <rguenther@suse.de>
11152
11153         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
11154
11155 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11156
11157         * config/i386/netware.c: Include langhooks.h.
11158         (i386_nlm_encode_section_info): Simplify.
11159         (netware_override_options): Delete.
11160         * config/i386/netware.h (netware_override_options): Delete
11161         declaration.
11162         (OVERRIDE_OPTIONS): Delete definition.
11163         (SUBTARGET_OVERRIDE_OPTIONS): Define.
11164         (ASM_COMMENT_START): Define.
11165         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
11166
11167 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11168
11169         * configure.ac: For in-tree ld, do a plain version check to
11170         determine whether comdat groups are supported.
11171         * configure: Regenerate.
11172
11173 2009-08-28  Olivier Hainque  <hainque@adacore.com>
11174
11175         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
11176         always defined.  Reflect definition or absence of such for
11177         COLLECT_EXPORT_LIST.  Readability helper.
11178         (scanfilter): New enum, to help control what symbols
11179         are to be considered or ignored by scan_prog_file.
11180         (enum pass): Rename as "scanpass", moved together with scanfilter
11181         prior to scan_prog_file's prototype.
11182         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
11183         Group prototype with the scanpass/scanfilter definitions, factorize
11184         head comments for the several implementations at the prototype.
11185         (main): Reorganize the first pass link control to let AIX
11186         drag only the needed frame tables in executables.  Prevent
11187         frame tables collection during the scan aimed at static ctors.
11188         Pre-link and scan for frame tables later to compensate.
11189         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
11190         A C statement to issue assembly directives that create a reference
11191         to the given DWARF table identifier label from the current function
11192         section.
11193         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
11194         to differentiate first time section entry.  Only emit a .data
11195         tables start identifier label the first time around.
11196         (switch_to_frame_table_section): New function.  Helper for
11197         output_call_frame_info to switch possibly BACK into the eh_frame
11198         or the debug_frame section depending on FOR_EH.
11199         (output_call_frame_info): Use helper to first enter the proper
11200         frame section.
11201         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
11202         emit a link to the frame table start label from each function
11203         section.
11204         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
11205         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
11206         * config/rs6000/rs6000-protos.h: Declare it.
11207         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
11208
11209 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11210
11211         * config/sh/sh.c (split_branches): Check the result of
11212         next_active_insn.
11213
11214 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
11215
11216         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
11217         using -pthread -fopenmp
11218
11219 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
11220
11221         * doc/service.texi (service directory): Update URL.
11222
11223 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
11224
11225         PR rtl-optimization/40861
11226         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
11227         extract word from a multi-word subreg for negative byte positions.
11228
11229 2009-08-27  Tristan Gingold  <gingold@adacore.com>
11230             Douglas B Rupp  <rupp@gnat.com>
11231
11232         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
11233         (SECTION_VMS_OVERLAY): Define.
11234         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
11235         attribute.
11236         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
11237         for common_object.
11238         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
11239         common_object declarations.
11240         (ia64_section_type_flags): Set section flag for common_object.
11241         * config/ia64/ia64-protos.h
11242         (ia64_vms_output_aligned_decl_common): Declare.
11243         (ia64_vms_elf_asm_named_section): Declare.
11244
11245 2009-08-27  Michael Matz  <matz@suse.de>
11246
11247         * expr.c (expand_expr_real_2): New function taking exploded
11248         unary or binary expression, split out from ...
11249         (expand_expr_real_1): ... here.  Move over all unary/binary
11250         switch parts to above function, in particular these codes:
11251         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
11252         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
11253         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
11254         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
11255         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
11256         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
11257         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
11258         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
11259         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
11260         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
11261         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
11262         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
11263         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
11264         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
11265         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
11266         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
11267         VEC_PACK_FIX_TRUNC_EXPR.
11268         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
11269         full expression.
11270
11271 2009-08-27  Richard Guenther  <rguenther@suse.de>
11272
11273         * gengtype.c (main): Handle uint64_t.
11274         * ipa-utils.c (get_base_var): Indent properly.
11275         * tree-ssa-live.c (debug_scope_block): New function.
11276         * tree-flow.h (debug_scope_block): Declare.
11277         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
11278         * basic-block.h (enum profile_status): Rename to
11279         enum profile_status_d.
11280         (x_profile_status): Adjust type.
11281
11282 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
11283
11284         PR debug/41170
11285         * dwarf2out.c (get_context_die): Declare this static function.
11286         (gen_type_die_with_usage): Make sure a DIE is a generated for
11287         the context of a typedef.
11288
11289 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
11290
11291         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
11292         switch.
11293
11294 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11295
11296         * config/mips/mips-protos.h (mips_output_sync): Declare.
11297         (mips_sync_loop_insns): Likewise.
11298         (mips_output_sync_loop): Replace first two parameters with an rtx.
11299         * config/mips/mips.c (mips_multi_member): New structure.
11300         (mips_multi_members): New variable.
11301         (mips_multi_start): New function.
11302         (mips_multi_add): Likewise.
11303         (mips_multi_add_insn): Likewise.
11304         (mips_multi_add_label): Likewise.
11305         (mips_multi_last_index): Likewise.
11306         (mips_multi_copy_insn): Likewise.
11307         (mips_multi_set_operand): Likewise.
11308         (mips_multi_write): Likewise.
11309         (mips_print_operand_punctuation): Remove '%|' and '%-'.
11310         (mips_init_print_operand_punct): Update accordingly.
11311         (mips_start_ll_sc_sync_block): New function.
11312         (mips_end_ll_sc_sync_block): Likewise.
11313         (mips_output_sync): Likewise.
11314         (mips_sync_insn1_template): Likewise.
11315         (mips_sync_insn2_template): Likewise.
11316         (mips_get_sync_operand): Likewise.
11317         (mips_process_sync_loop): Likewise.
11318         (mips_output_sync_loop): Use mips_process_sync_loop.
11319         (mips_sync_loop_insns): New function.
11320         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
11321         (MIPS_COMPARE_AND_SWAP_12): Likewise.
11322         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
11323         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
11324         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
11325         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
11326         (MIPS_SYNC_OLD_OP_12): Likewise.
11327         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
11328         (MIPS_SYNC_NEW_OP_12): Likewise.
11329         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
11330         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
11331         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
11332         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
11333         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
11334         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
11335         * config/mips/mips.md (sync_mem): New attribute.
11336         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
11337         (sync_exclusive_mask, sync_required_oldval): Likewise.
11338         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
11339         (sync_release_barrier): Likewise.
11340         (length): Handle sync loops.
11341         (sync): Use mips_output_sync.
11342         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
11343         (sync_compare_and_swap<mode>): Set the new sync_* attributes
11344         and use mips_output_sync_loop.
11345         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
11346         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
11347         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
11348         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
11349         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
11350         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
11351         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
11352         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
11353         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
11354
11355 2009-08-26  Richard Guenther  <rguenther@suse.de>
11356
11357         PR middle-end/41163
11358         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
11359         the types to not match.
11360         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
11361         verification.
11362         * tree-ssa.c (useless_type_conversion_p): Conversions to
11363         pointers to unprototyped functions are useless.
11364
11365 2009-08-26  Richard Guenther  <rguenther@suse.de>
11366
11367         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
11368         whole-program condition, prepare to be called for non-globals.
11369         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
11370         params build a representative with known type and track its fields.
11371
11372 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
11373
11374         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
11375         clearing by a taken branch.
11376         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
11377         effectively after bbro pass.
11378         (sync_nand<mode>): Ditto.
11379         (sync_old_<fetchop_name><mode>): Ditto.
11380         (sync_old_nand<mode>): Ditto.
11381         (sync_new_<fetchop_name><mode>): Dito.
11382         (sync_new_nand<mode>): Ditto.
11383         (sync_compare_and_swap<mode>_1): Ditto.
11384         (*sync_compare_and_swap<mode>): Ditto.
11385         (sync_lock_test_and_set<mode>_1): Ditto.
11386         ("sync_lock_test_and_set<mode>): Ditto.
11387
11388 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
11389
11390         * hwint.h (HOST_LONG_FORMAT): New macro
11391         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
11392         Use HOST_PTR_PRINTF.
11393         * system.h (HOST_PTR_PRINTF): Resurrect old macro
11394         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
11395         (HOST_PTR_PRINTF): Document.
11396
11397 2009-08-25 Jan Hubicka  <jh@suse.cz>
11398
11399         * config/i386/bmmintrin.h: Replace by #error.
11400
11401         Revert:
11402         Michael Meissner  <michael.meissner@amd.com>
11403         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11404         Tony Linthicum  <tony.linthicum@amd.com>
11405
11406         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
11407         (TARGET_ROUND): New macro for the round/ptest instructions which
11408         are shared between SSE4.1 and SSE5.
11409         (OPTION_MASK_ISA_ROUND): Ditto.
11410         (OPTION_ISA_ROUND): Ditto.
11411         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
11412         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
11413
11414         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
11415         (-mfused-madd): New switch to give users control over whether the
11416         compiler optimizes to use the multiply/add SSE5 instructions.
11417
11418         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
11419         (ix86_handle_option): Turn off 3dnow if -msse5.
11420         (override_options): Add SSE5 support.
11421         (print_operand): %Y prints comparison codes for SSE5 com/pcom
11422         instructions.
11423         (ix86_expand_sse_movcc): Add SSE5 support.
11424         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
11425         vector type to the next largest size.
11426         (ix86_expand_sse5_pack): New function to use pperm to pack a
11427         vector type to the next smallest size.
11428         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
11429         (IX86_BUILTIN_FMADDSD): Ditto.
11430         (IX86_BUILTIN_FMADDPS): Ditto.
11431         (IX86_BUILTIN_FMADDPD): Ditto.
11432         (IX86_BUILTIN_FMSUBSS): Ditto.
11433         (IX86_BUILTIN_FMSUBSD): Ditto.
11434         (IX86_BUILTIN_FMSUBPS): Ditto.
11435         (IX86_BUILTIN_FMSUBPD): Ditto.
11436         (IX86_BUILTIN_FNMADDSS): Ditto.
11437         (IX86_BUILTIN_FNMADDSD): Ditto.
11438         (IX86_BUILTIN_FNMADDPS): Ditto.
11439         (IX86_BUILTIN_FNMADDPD): Ditto.
11440         (IX86_BUILTIN_FNMSUBSS): Ditto.
11441         (IX86_BUILTIN_FNMSUBSD): Ditto.
11442         (IX86_BUILTIN_FNMSUBPS): Ditto.
11443         (IX86_BUILTIN_FNMSUBPD): Ditto.
11444         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
11445         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
11446         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
11447         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
11448         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
11449         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
11450         (IX86_BUILTIN_PPERM): Ditto.
11451         (IX86_BUILTIN_PERMPS): Ditto.
11452         (IX86_BUILTIN_PERMPD): Ditto.
11453         (IX86_BUILTIN_PMACSSWW): Ditto.
11454         (IX86_BUILTIN_PMACSWW): Ditto.
11455         (IX86_BUILTIN_PMACSSWD): Ditto.
11456         (IX86_BUILTIN_PMACSWD): Ditto.
11457         (IX86_BUILTIN_PMACSSDD): Ditto.
11458         (IX86_BUILTIN_PMACSDD): Ditto.
11459         (IX86_BUILTIN_PMACSSDQL): Ditto.
11460         (IX86_BUILTIN_PMACSSDQH): Ditto.
11461         (IX86_BUILTIN_PMACSDQL): Ditto.
11462         (IX86_BUILTIN_PMACSDQH): Ditto.
11463         (IX86_BUILTIN_PMADCSSWD): Ditto.
11464         (IX86_BUILTIN_PMADCSWD): Ditto.
11465         (IX86_BUILTIN_PHADDBW): Ditto.
11466         (IX86_BUILTIN_PHADDBD): Ditto.
11467         (IX86_BUILTIN_PHADDBQ): Ditto.
11468         (IX86_BUILTIN_PHADDWD): Ditto.
11469         (IX86_BUILTIN_PHADDWQ): Ditto.
11470         (IX86_BUILTIN_PHADDDQ): Ditto.
11471         (IX86_BUILTIN_PHADDUBW): Ditto.
11472         (IX86_BUILTIN_PHADDUBD): Ditto.
11473         (IX86_BUILTIN_PHADDUBQ): Ditto.
11474         (IX86_BUILTIN_PHADDUWD): Ditto.
11475         (IX86_BUILTIN_PHADDUWQ): Ditto.
11476         (IX86_BUILTIN_PHADDUDQ): Ditto.
11477         (IX86_BUILTIN_PHSUBBW): Ditto.
11478         (IX86_BUILTIN_PHSUBWD): Ditto.
11479         (IX86_BUILTIN_PHSUBDQ): Ditto.
11480         (IX86_BUILTIN_PROTB): Ditto.
11481         (IX86_BUILTIN_PROTW): Ditto.
11482         (IX86_BUILTIN_PROTD): Ditto.
11483         (IX86_BUILTIN_PROTQ): Ditto.
11484         (IX86_BUILTIN_PROTB_IMM): Ditto.
11485         (IX86_BUILTIN_PROTW_IMM): Ditto.
11486         (IX86_BUILTIN_PROTD_IMM): Ditto.
11487         (IX86_BUILTIN_PROTQ_IMM): Ditto.
11488         (IX86_BUILTIN_PSHLB): Ditto.
11489         (IX86_BUILTIN_PSHLW): Ditto.
11490         (IX86_BUILTIN_PSHLD): Ditto.
11491         (IX86_BUILTIN_PSHLQ): Ditto.
11492         (IX86_BUILTIN_PSHAB): Ditto.
11493         (IX86_BUILTIN_PSHAW): Ditto.
11494         (IX86_BUILTIN_PSHAD): Ditto.
11495         (IX86_BUILTIN_PSHAQ): Ditto.
11496         (IX86_BUILTIN_FRCZSS): Ditto.
11497         (IX86_BUILTIN_FRCZSD): Ditto.
11498         (IX86_BUILTIN_FRCZPS): Ditto.
11499         (IX86_BUILTIN_FRCZPD): Ditto.
11500         (IX86_BUILTIN_CVTPH2PS): Ditto.
11501         (IX86_BUILTIN_CVTPS2PH): Ditto.
11502         (IX86_BUILTIN_COMEQSS): Ditto.
11503         (IX86_BUILTIN_COMNESS): Ditto.
11504         (IX86_BUILTIN_COMLTSS): Ditto.
11505         (IX86_BUILTIN_COMLESS): Ditto.
11506         (IX86_BUILTIN_COMGTSS): Ditto.
11507         (IX86_BUILTIN_COMGESS): Ditto.
11508         (IX86_BUILTIN_COMUEQSS): Ditto.
11509         (IX86_BUILTIN_COMUNESS): Ditto.
11510         (IX86_BUILTIN_COMULTSS): Ditto.
11511         (IX86_BUILTIN_COMULESS): Ditto.
11512         (IX86_BUILTIN_COMUGTSS): Ditto.
11513         (IX86_BUILTIN_COMUGESS): Ditto.
11514         (IX86_BUILTIN_COMORDSS): Ditto.
11515         (IX86_BUILTIN_COMUNORDSS): Ditto.
11516         (IX86_BUILTIN_COMFALSESS): Ditto.
11517         (IX86_BUILTIN_COMTRUESS): Ditto.
11518         (IX86_BUILTIN_COMEQSD): Ditto.
11519         (IX86_BUILTIN_COMNESD): Ditto.
11520         (IX86_BUILTIN_COMLTSD): Ditto.
11521         (IX86_BUILTIN_COMLESD): Ditto.
11522         (IX86_BUILTIN_COMGTSD): Ditto.
11523         (IX86_BUILTIN_COMGESD): Ditto.
11524         (IX86_BUILTIN_COMUEQSD): Ditto.
11525         (IX86_BUILTIN_COMUNESD): Ditto.
11526         (IX86_BUILTIN_COMULTSD): Ditto.
11527         (IX86_BUILTIN_COMULESD): Ditto.
11528         (IX86_BUILTIN_COMUGTSD): Ditto.
11529         (IX86_BUILTIN_COMUGESD): Ditto.
11530         (IX86_BUILTIN_COMORDSD): Ditto.
11531         (IX86_BUILTIN_COMUNORDSD): Ditto.
11532         (IX86_BUILTIN_COMFALSESD): Ditto.
11533         (IX86_BUILTIN_COMTRUESD): Ditto.
11534         (IX86_BUILTIN_COMEQPS): Ditto.
11535         (IX86_BUILTIN_COMNEPS): Ditto.
11536         (IX86_BUILTIN_COMLTPS): Ditto.
11537         (IX86_BUILTIN_COMLEPS): Ditto.
11538         (IX86_BUILTIN_COMGTPS): Ditto.
11539         (IX86_BUILTIN_COMGEPS): Ditto.
11540         (IX86_BUILTIN_COMUEQPS): Ditto.
11541         (IX86_BUILTIN_COMUNEPS): Ditto.
11542         (IX86_BUILTIN_COMULTPS): Ditto.
11543         (IX86_BUILTIN_COMULEPS): Ditto.
11544         (IX86_BUILTIN_COMUGTPS): Ditto.
11545         (IX86_BUILTIN_COMUGEPS): Ditto.
11546         (IX86_BUILTIN_COMORDPS): Ditto.
11547         (IX86_BUILTIN_COMUNORDPS): Ditto.
11548         (IX86_BUILTIN_COMFALSEPS): Ditto.
11549         (IX86_BUILTIN_COMTRUEPS): Ditto.
11550         (IX86_BUILTIN_COMEQPD): Ditto.
11551         (IX86_BUILTIN_COMNEPD): Ditto.
11552         (IX86_BUILTIN_COMLTPD): Ditto.
11553         (IX86_BUILTIN_COMLEPD): Ditto.
11554         (IX86_BUILTIN_COMGTPD): Ditto.
11555         (IX86_BUILTIN_COMGEPD): Ditto.
11556         (IX86_BUILTIN_COMUEQPD): Ditto.
11557         (IX86_BUILTIN_COMUNEPD): Ditto.
11558         (IX86_BUILTIN_COMULTPD): Ditto.
11559         (IX86_BUILTIN_COMULEPD): Ditto.
11560         (IX86_BUILTIN_COMUGTPD): Ditto.
11561         (IX86_BUILTIN_COMUGEPD): Ditto.
11562         (IX86_BUILTIN_COMORDPD): Ditto.
11563         (IX86_BUILTIN_COMUNORDPD): Ditto.
11564         (IX86_BUILTIN_COMFALSEPD): Ditto.
11565         (IX86_BUILTIN_COMTRUEPD): Ditto.
11566         (IX86_BUILTIN_PCOMEQUB): Ditto.
11567         (IX86_BUILTIN_PCOMNEUB): Ditto.
11568         (IX86_BUILTIN_PCOMLTUB): Ditto.
11569         (IX86_BUILTIN_PCOMLEUB): Ditto.
11570         (IX86_BUILTIN_PCOMGTUB): Ditto.
11571         (IX86_BUILTIN_PCOMGEUB): Ditto.
11572         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
11573         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
11574         (IX86_BUILTIN_PCOMEQUW): Ditto.
11575         (IX86_BUILTIN_PCOMNEUW): Ditto.
11576         (IX86_BUILTIN_PCOMLTUW): Ditto.
11577         (IX86_BUILTIN_PCOMLEUW): Ditto.
11578         (IX86_BUILTIN_PCOMGTUW): Ditto.
11579         (IX86_BUILTIN_PCOMGEUW): Ditto.
11580         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
11581         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
11582         (IX86_BUILTIN_PCOMEQUD): Ditto.
11583         (IX86_BUILTIN_PCOMNEUD): Ditto.
11584         (IX86_BUILTIN_PCOMLTUD): Ditto.
11585         (IX86_BUILTIN_PCOMLEUD): Ditto.
11586         (IX86_BUILTIN_PCOMGTUD): Ditto.
11587         (IX86_BUILTIN_PCOMGEUD): Ditto.
11588         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
11589         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
11590         (IX86_BUILTIN_PCOMEQUQ): Ditto.
11591         (IX86_BUILTIN_PCOMNEUQ): Ditto.
11592         (IX86_BUILTIN_PCOMLTUQ): Ditto.
11593         (IX86_BUILTIN_PCOMLEUQ): Ditto.
11594         (IX86_BUILTIN_PCOMGTUQ): Ditto.
11595         (IX86_BUILTIN_PCOMGEUQ): Ditto.
11596         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
11597         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
11598         (IX86_BUILTIN_PCOMEQB): Ditto.
11599         (IX86_BUILTIN_PCOMNEB): Ditto.
11600         (IX86_BUILTIN_PCOMLTB): Ditto.
11601         (IX86_BUILTIN_PCOMLEB): Ditto.
11602         (IX86_BUILTIN_PCOMGTB): Ditto.
11603         (IX86_BUILTIN_PCOMGEB): Ditto.
11604         (IX86_BUILTIN_PCOMFALSEB): Ditto.
11605         (IX86_BUILTIN_PCOMTRUEB): Ditto.
11606         (IX86_BUILTIN_PCOMEQW): Ditto.
11607         (IX86_BUILTIN_PCOMNEW): Ditto.
11608         (IX86_BUILTIN_PCOMLTW): Ditto.
11609         (IX86_BUILTIN_PCOMLEW): Ditto.
11610         (IX86_BUILTIN_PCOMGTW): Ditto.
11611         (IX86_BUILTIN_PCOMGEW): Ditto.
11612         (IX86_BUILTIN_PCOMFALSEW): Ditto.
11613         (IX86_BUILTIN_PCOMTRUEW): Ditto.
11614         (IX86_BUILTIN_PCOMEQD): Ditto.
11615         (IX86_BUILTIN_PCOMNED): Ditto.
11616         (IX86_BUILTIN_PCOMLTD): Ditto.
11617         (IX86_BUILTIN_PCOMLED): Ditto.
11618         (IX86_BUILTIN_PCOMGTD): Ditto.
11619         (IX86_BUILTIN_PCOMGED): Ditto.
11620         (IX86_BUILTIN_PCOMFALSED): Ditto.
11621         (IX86_BUILTIN_PCOMTRUED): Ditto.
11622         (IX86_BUILTIN_PCOMEQQ): Ditto.
11623         (IX86_BUILTIN_PCOMNEQ): Ditto.
11624         (IX86_BUILTIN_PCOMLTQ): Ditto.
11625         (IX86_BUILTIN_PCOMLEQ): Ditto.
11626         (IX86_BUILTIN_PCOMGTQ): Ditto.
11627         (IX86_BUILTIN_PCOMGEQ): Ditto.
11628         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
11629         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
11630         (enum multi_arg_type): New enum for describing the various SSE5
11631         intrinsic argument types.
11632         (bdesc_multi_arg): New table for SSE5 intrinsics.
11633         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
11634         (ix86_expand_multi_arg_builtin): New function for creating SSE5
11635         intrinsics.
11636         (ix86_expand_builtin): Add SSE5 intrinsic support.
11637         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
11638         operand instructions.
11639         (ix86_expand_sse5_multiple_memory): New function to split the
11640         second memory reference from SSE5 instructions.
11641         (type_has_variadic_args_p): Delete in favor of stdarg_p.
11642         (ix86_return_pops_args): Use stdarg_p to determine if the function
11643         has variable arguments.
11644         (ix86_setup_incoming_varargs): Ditto.
11645         (x86_this_parameter): Ditto.
11646
11647         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
11648         declaration.
11649         (ix86_expand_sse5_pack): Ditto.
11650         (ix86_sse5_valid_op_p): Ditto.
11651         (ix86_expand_sse5_multiple_memory): Ditto.
11652
11653         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
11654         constant for SSE5 support.
11655         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
11656         (UNSPEC_SSE5_TRUEFALSE): Ditto.
11657         (UNSPEC_SSE5_PERMUTE): Ditto.
11658         (UNSPEC_SSE5_ASHIFT): Ditto.
11659         (UNSPEC_SSE5_LSHIFT): Ditto.
11660         (UNSPEC_FRCZ): Ditto.
11661         (UNSPEC_CVTPH2PS): Ditto.
11662         (UNSPEC_CVTPS2PH): Ditto.
11663         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
11664         (PCOM_TRUE): Ditto.
11665         (COM_FALSE_S): Ditto.
11666         (COM_FALSE_P): Ditto.
11667         (COM_TRUE_S): Ditto.
11668         (COM_TRUE_P): Ditto.
11669         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
11670         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
11671         types.
11672         (memory attribute): Ditto.
11673         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11674         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
11675         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11676         (floor<mode>2): Ditto.
11677         (ceil<mode>2): Ditto.
11678         (btrunc<mode>2): Ditto.
11679         (nearbyintdf2): Ditto.
11680         (nearbyintsf2): Ditto.
11681         (sse_setccsf): Disable if SSE5.
11682         (sse_setccdf): Ditto.
11683         (sse5_setcc<mode>): New support for SSE5 conditional move.
11684         (sse5_pcmov_<mode>): Ditto.
11685
11686         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
11687         (SSEMODEF4): Ditto.
11688         (SSEMODEF2P): Ditto.
11689         (ssemodesuffixf4): New mode attribute for SSE5.
11690         (ssemodesuffixf2s): Ditto.
11691         (ssemodesuffixf2c): Ditto.
11692         (sserotatemax): Ditto.
11693         (ssescalarmode): Ditto.
11694         (sse_maskcmpv4sf3): Disable if SSE5.
11695         (sse_maskcmpv2df3): Ditto.
11696         (sse_vmmaskcmpv4sf3): Ditto.
11697         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
11698         (sse5_vmfmadd<mode>4): Ditto.
11699         (sse5_fmsub<mode>4): Ditto.
11700         (sse5_vmfmsub<mode>4): Ditto.
11701         (sse5_fnmadd<mode>4): Ditto.
11702         (sse5_vmfnmadd<mode>4): Ditto.
11703         (sse5_fnmsub<mode>4): Ditto.
11704         (sse5_vmfnmsub<mode>4): Ditto.
11705         (sse5i_fmadd<mode>4): Ditto.
11706         (sse5i_fmsub<mode>4): Ditto.
11707         (sse5i_fnmadd<mode>4): Ditto.
11708         (sse5i_fnmsub<mode>4): Ditto.
11709         (sse5i_vmfmadd<mode>4): Ditto.
11710         (sse5i_vmfmsub<mode>4): Ditto.
11711         (sse5i_vmfnmadd<mode>4): Ditto.
11712         (sse5i_vmfnmsub<mode>4): Ditto.
11713         (mulv16qi3): Add SSE5 support.
11714         (mulv4si3): Ditto.
11715         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
11716         (sse2_mulv4si3): Disable if SSE5.
11717         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
11718         (sse4_1_roundps): Ditto.
11719         (sse4_1_roundsd): Ditto.
11720         (sse4_1_roundss): Ditto.
11721         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
11722         be generated.
11723         (sse_maskcmpsf3): Ditto.
11724         (sse_vmmaskcmpv4sf3): Ditto.
11725         (sse2_maskcmpv2df3): Ditto.
11726         (sse2_maskcmpdf3): Ditto.
11727         (sse2_vmmaskcmpv2df3): Ditto.
11728         (sse2_eq<mode>3): Ditto.
11729         (sse2_gt<mode>3): Ditto.
11730         (sse5_pcmov_<mode>): Add SSE5 support.
11731         (vec_unpacku_hi_v16qi): Ditto.
11732         (vec_unpacks_hi_v16qi): Ditto.
11733         (vec_unpacku_lo_v16qi): Ditto.
11734         (vec_unpacks_lo_v16qi): Ditto.
11735         (vec_unpacku_hi_v8hi): Ditto.
11736         (vec_unpacks_hi_v8hi): Ditto.
11737         (vec_unpacku_lo_v8hi): Ditto.
11738         (vec_unpacks_lo_v8hi): Ditto.
11739         (vec_unpacku_hi_v4si): Ditto.
11740         (vec_unpacks_hi_v4si): Ditto.
11741         (vec_unpacku_lo_v4si): Ditto.
11742         (vec_unpacks_lo_v4si): Ditto.
11743         (sse5_pmacsww): New SSE5 intrinsic insn.
11744         (sse5_pmacssww): Ditto.
11745         (sse5_pmacsdd): Ditto.
11746         (sse5_pmacssdd): Ditto.
11747         (sse5_pmacssdql): Ditto.
11748         (sse5_pmacssdqh): Ditto.
11749         (sse5_pmacsdqh): Ditto.
11750         (sse5_pmacsswd): Ditto.
11751         (sse5_pmacswd): Ditto.
11752         (sse5_pmadcsswd): Ditto.
11753         (sse5_pmadcswd): Ditto.
11754         (sse5_pcmov_<move>): Conditional move support on SSE5.
11755         (sse5_phaddbw): New SSE5 intrinsic insn.
11756         (sse5_phaddbd): Ditto.
11757         (sse5_phaddbq): Ditto.
11758         (sse5_phaddwd): Ditto.
11759         (sse5_phaddwq): Ditto.
11760         (sse5_phadddq): Ditto.
11761         (sse5_phaddubw): Ditto.
11762         (sse5_phaddubd): Ditto.
11763         (sse5_phaddubq): Ditto.
11764         (sse5_phadduwd): Ditto.
11765         (sse5_phadduwq): Ditto.
11766         (sse5_phaddudq): Ditto.
11767         (sse5_phsubbw): Ditto.
11768         (sse5_phsubwd): Ditto.
11769         (sse5_phsubdq): Ditto.
11770         (sse5_pperm): Ditto.
11771         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
11772         (sse5_pperm_zero_v16qi_v8hi): Ditto.
11773         (sse5_pperm_sign_v8hi_v4si): Ditto.
11774         (sse5_pperm_zero_v8hi_v4si): Ditto.
11775         (sse5_pperm_sign_v4si_v2di): Ditto.
11776         (sse5_pperm_sign_v4si_v2di): Ditto.
11777         (sse5_pperm_pack_v2di_v4si): Ditto.
11778         (sse5_pperm_pack_v4si_v8hi): Ditto.
11779         (sse5_pperm_pack_v8hi_v16qi): Ditto.
11780         (sse5_perm<mode>): New SSE5 intrinsic insn.
11781         (rotl<mode>3): Ditto.
11782         (sse5_rotl<mode>3): Ditto.
11783         (sse5_ashl<mode>3): Ditto.
11784         (sse5_lshl<mode>3): Ditto.
11785         (sse5_frcz<mode>2): Ditto.
11786         (sse5s_frcz<mode>2): Ditto.
11787         (sse5_cvtph2ps): Ditto.
11788         (sse5_cvtps2ph): Ditto.
11789         (sse5_vmmaskcmp<mode>3): Ditto.
11790         (sse5_com_tf<mode>3): Ditto.
11791         (sse5_maskcmp<mode>3): Ditto.
11792         (sse5_maskcmp_uns<mode>3): Ditto.
11793         (sse5_maskcmp_uns2<mode>3): Ditto.
11794         (sse5_pcom_tf<mode>3): Ditto.
11795
11796         * config/i386/predicates.md (sse5_comparison_float_operator):
11797         New predicate to match the comparison operators supported by
11798         the SSE5 com instruction.
11799         (ix86_comparison_int_operator): New predicate to match just the
11800         signed int comparisons.
11801         (ix86_comparison_uns_operator): New predicate to match just the
11802         unsigned int comparisons.
11803
11804         * doc/invoke.texi (-msse5): Add documentation.
11805         (-mfused-madd): Ditto.
11806
11807         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
11808
11809         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
11810         mmintrin-common.h.
11811         (x86_64-*-*): Ditto.
11812
11813         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
11814
11815         * config/i386/bmmintrin.h: New file, provide common x86 compiler
11816         intrinisics for SSE5.
11817
11818         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
11819         mmintrin-common.h.
11820
11821         * config/i386/mmintrin-common.h: New file, to contain common
11822         instructions between SSE4.1 and SSE5.
11823
11824         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
11825         FOREACH_FUNCTION_ARGS to iterate over the argument list.
11826         (gen_regparm_prefix): Ditto.
11827
11828         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
11829         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
11830         prototype_p to determine if a function is prototyped.
11831
11832 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
11833
11834         * c-common.c (c_common_reswords) add the alignof keyword,
11835         with same RID as __alignof and __alignof__
11836
11837 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
11838
11839         * hooks.h (hook_bool_const_int_const_int_true): Declare.
11840         * hooks.c (hook_bool_const_int_const_int_true): New function.
11841         * target.h (struct gcc_target): Add can_eliminate field.
11842         * target-def.h (TARGET_CAN_ELIMINATE): Define.
11843         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
11844         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
11845         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
11846         (elim_table): Revise comment.
11847         * system.h (CAN_ELIMINATE): Poison.
11848         * defaults.h (CAN_ELIMINATE): Remove.
11849         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11850
11851         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
11852         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
11853         Define macro.
11854         (alpha_vms_can_eliminate): Declare as static, change return type to
11855         bool.
11856         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
11857
11858         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
11859         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
11860         (arm_can_eliminate): New function.
11861
11862         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
11863         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
11864         (avr_can_eliminate): Declare as static.
11865         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
11866
11867         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
11868         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
11869         (bfin_can_eliminate): New function.
11870
11871         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
11872         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
11873         (crx_can_eliminate): New function.
11874
11875         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
11876         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
11877         (fr30_can_eliminate): New function.
11878
11879         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
11880         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
11881         (frv_can_eliminate): New function.
11882
11883         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
11884         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
11885         (h8300_can_eliminate): New function.
11886
11887         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
11888         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
11889         (i386_can_eliminate): Declare as static, change return type to bool.
11890         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
11891
11892         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
11893         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
11894         (ia64_can_eliminate): New function.
11895
11896         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
11897         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
11898         (iq2000_can_eliminate): New function.
11899
11900         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
11901         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
11902         (m32r_can_eliminate): New function.
11903
11904         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
11905         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
11906         (m68hc11_can_eliminate): New function.
11907
11908         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
11909         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
11910         (m68k_can_eliminate): New function.
11911
11912         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
11913         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
11914         (mep_can_eliminate): New function.
11915
11916         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
11917         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
11918         (mips_can_eliminate): New function.
11919
11920         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
11921         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
11922         (rs6000_can_eliminate): New function.
11923
11924         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
11925         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
11926         (s390_can_eliminate): Declare as static.
11927         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
11928
11929         * config/score/score.h (CAN_ELIMINATE): Remove macro.
11930         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
11931         (score_can_eliminate): New function.
11932
11933         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
11934         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
11935         (sparc_can_eliminate): Declare as static.
11936         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
11937
11938         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
11939         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
11940         (xstormy16_can_eliminate): New function.
11941
11942         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
11943         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
11944         (v850_can_eliminate): New function.
11945
11946 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
11947
11948         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
11949         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
11950         (*movdfcc_ext[1234]): Disable for IEEE mode.
11951
11952 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
11953
11954         * gimplify.c (prepare_gimple_addressable): New static function.
11955         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
11956         it addressable.
11957         (gimplify_addr_expr): Invoke it similarly on the operand instead of
11958         manually fiddling with it.
11959
11960 2009-08-25  Michael Matz  <matz@suse.de>
11961
11962         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
11963         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
11964         full expression.
11965         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
11966         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
11967         (do_jump): Split out code for simple binary comparisons into ...
11968         (do_jump_1): ... this, taking the individual operands and code.
11969         Change callers to helper function above accordingly.
11970         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
11971         comparisons.
11972
11973 2009-08-25  Michael Matz  <matz@suse.de>
11974
11975         * expr.h (struct separate_ops, sepops): New type for passing
11976         around an exploded simple expression.
11977         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
11978         Use this structure instead of expression tree.
11979         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
11980         expression, only its type.
11981         (expand_vec_cond_expr): Take type and individual operands instead
11982         of full expression.
11983         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
11984         expand_vec_shift_expr): Change prototype accordingly.
11985         * tree-vect-stmts.c (vectorizable_condition): Change call of
11986         expand_vec_cond_expr_p to pass only type.
11987         * expr.c (do_store_flags): Change prototype and implementation
11988         to take an exploded expression.
11989         (expand_expr_real_1): New local ops initialized with details
11990         of the full expression.  Use it instead of full
11991         expression in calls to do_store_flags, expand_vec_cond_expr,
11992         expand_widen_pattern_expr and expand_vec_shift_expr.
11993
11994 2009-08-25  Michael Matz  <matz@suse.de>
11995
11996         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
11997         treeop2 initialized with first three operands of the full expression.
11998         Substitute all TREE_OPERAND (exp, [012]) calls with them.
11999
12000 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
12001
12002         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
12003         (__gthread_objc_condition_allocate): Mark arguments as unused.
12004         (__gthread_objc_condition_deallocate): Likewise.
12005         (__gthread_objc_condition_wait): Likewise.
12006         (__gthread_objc_condition_broadcast): Likewise.
12007         (__gthread_objc_condition_signal): Likewise.
12008         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
12009         (__gthread_objc_thread_id): Likewise.
12010
12011 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
12012
12013         PR middle-end/41149
12014         * tree-pretty-print.c (print_call_name): Print the correct call name
12015         for procedure pointer components.
12016
12017 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
12018
12019         * config/ia64/ia64.c (ia64_promote_function_mode): Call
12020         default_promote_function_mode when not VMS.
12021
12022 2009-08-24  Olivier Hainque  <hainque@adacore.com>
12023
12024         * convert.c (convert_to_integer): Don't assume an input pointer is
12025         POINTER_SIZE wide.  Fetch from the type instead.
12026
12027 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12028
12029         * configure.ac (AC_PREREQ): Bump to 2.64.
12030
12031 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
12032
12033         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
12034         (process_command): Don't search standard_exec_prefix_1 and
12035         standard_exec_prefix_2.
12036
12037 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12038
12039         * config/arm/arm.c (output_return_instruction): Handle for
12040         unified syntax.
12041
12042 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12043
12044         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
12045
12046 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12047
12048         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
12049         (*arm_movdf_vfp): Likewise.
12050
12051 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12052
12053         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
12054         (vashr<mode>3): Rename from ashr<mode>3.
12055         (vlshr<mode>3): Rename from lshr<mode>3.
12056
12057 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
12058
12059         PR/40786
12060         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
12061         (check_format_info_main): Use scalar_identify_flag.
12062         (check_format_types): Check for scalar size identity if
12063         scalar_identify_flag is set.
12064         (printf_length_specs): Extend by new field.
12065         (asm_fprintf_length_specs): Likewise.
12066         (gcc_diag_length_specs): Likewise.
12067         (scanf_length_specs): Likewise.
12068         (strfmon_length_specs): Likewise.
12069         (gcc_gfc_length_specs): Likewise.
12070         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
12071         (ms_printf_flag_specs): Likewise.
12072         * c-format.h (format_length_info): Add new member scalar_identity_flag.
12073
12074 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
12075
12076         PR target/40718
12077         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
12078         (*call_value_pop_1): Ditto.
12079         (*sibcall_pop_1): New insn pattern.
12080         (*sibcall_value_pop_1): Ditto.
12081
12082 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12083
12084         PR target/41081
12085         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
12086         ashrsi3_64): New.
12087
12088 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12089
12090         PR target/41081
12091         * fwprop.c (try_fwprop_subst): Allow multiple sets.
12092         (get_reg_use_in): New function.
12093         (forward_propagate_subreg): Propagate through subreg of zero_extend
12094         or sign_extend.
12095
12096 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12097
12098         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
12099         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
12100
12101 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12102
12103         * configure.ac: Remove --with-datarootdir, --with-docdir,
12104         --with-htmldir switches.  No need to call AC_SUBST for
12105         datarootdir, docdir, htmldir any more.
12106         * configure: Regenerate.
12107         * doc/install.texi (Configuration): Document --datarootdir,
12108         --docdir, --htmldir, --pdfdir; update documentation for
12109         --infodir, --mandir.
12110         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
12111         M4 to 1.4.6.
12112
12113         * aclocal.m4: Regenerate.
12114         * config.in: Regenerate.
12115         * configure: Regenerate.
12116
12117 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
12118             Olivier Hainque  <hainque@adacore.com>
12119
12120         * config/ia64/ia64.c: Include libfuncs.h.
12121         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
12122         (ia64_expand_call): Use reg 25 on VMS.
12123         (ia64_initialize_trampoline): Fix for VMS ABI.
12124         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
12125         (ia64_function_arg): Initialize reg 25 on VMS.
12126         Fix OpenVMS ABI issues for varargs.
12127         For OpenVMS, emit the Argument Information register set in the
12128         incoming/sibcall case as well.
12129         (ia64_arg_type): New function.
12130         (ia64_function_arg_advance): Keep track of cum->words.
12131         Fix OpenVMS ABI issues for varargs.
12132         (ia64_function_value): On VMS, promote mode of non-aggregate types.
12133         (ia64_override_options): Set flag_no_common on VMS.
12134         (ia64_init_builtins): Disable FWRITE builtin.
12135         (ia64_asm_output_external): Call DO_CRTL_NAMES.
12136         (ia64_vms_init_libfuncs): Add decc$ routines.
12137         (ia64_vms_valid_pointer_mode): New function.
12138         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
12139         (ia64_promote_function_mode): New function
12140         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
12141         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
12142         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12143         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
12144         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
12145         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
12146         Suppress trailing '#' if VALUE is numeric.
12147         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
12148         ia64_promote_function_mode.
12149         (TARGET_VALID_POINTER_MODE): Define.
12150
12151 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12152
12153         PR target/40671
12154         * config/rs6000/rs6000.c (rs6000_override_options): Use
12155         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
12156
12157         PR target/41145
12158         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
12159         reporting of vector + decimal/boolean/complex error.
12160
12161 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
12162
12163         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
12164         __vector double TYPE_DECL.
12165
12166 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
12167
12168         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
12169         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
12170         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
12171         to pointer to enum machine_mode.  Update all callers as needed.
12172
12173 2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
12174
12175         * config/alpha/alpha.md (exception_receiver): Emit alternative
12176         GP load sequence if flag_reorder_blocks_and_partition is set.
12177         (*exception_receiver_2): Also enable when
12178         flag_reorder_blocks_and_partition is set.
12179
12180 2009-08-20  Matt Rice  <ratmice@gmail.com>
12181             Diego Novillo  <dnovillo@google.com>
12182
12183         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
12184         tree-ssa-sccvn.h.
12185
12186 2009-08-20  Richard Guenther  <rguenther@suse.de>
12187
12188         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
12189         * c-tree.h (c_dup_lang_specific_decl): Remove.
12190         (struct lang_decl, struct lang_type): Move definitions ...
12191         * c-lang.h: ... here.  New file.
12192         * c-decl.c: Include c-lang.h.
12193         (c_dup_lang_specific_decl): Remove.
12194         * c-typeck.c: Include c-lang.h.
12195         * Makefile.in (c-decl.o): Add c-lang.h dependency.
12196         (c-typeck.o): Likewise.
12197         * c-config-lang.in (gtfiles): Add c-lang.h.
12198         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
12199         like c-tree.h.
12200
12201 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
12202
12203         * config/alpha/alpha.c (alpha_end_function): Do not clear
12204         crtl->emit structure and free insn locators if cfun->is_thunk is true,
12205         this is now handled in generic code.
12206
12207 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12208
12209         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
12210         (s390_z10_fix_long_loop_prediction): New function.
12211         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
12212         (s390_reorg): Walk over the INSNs and invoke
12213         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
12214
12215 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12216
12217         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
12218         "*brx_64bit", "*brx_31bit"): New patterns.
12219         * config/s390/s390.c ('E'): New output modifier.
12220
12221 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12222             Richard Earnshaw  <richard.earnshaw@arm.com>
12223
12224         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
12225         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
12226
12227 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12228
12229         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
12230         patterns.
12231         * pa.c (emit_move_sequence): Check if address of operand1 is valid
12232         for mode mode of operand0 when doing secondary reload for SAR.
12233
12234 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12235
12236         PR middle-end/41123
12237         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
12238         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
12239
12240 2009-08-19  Jason Merrill  <jason@redhat.com>
12241
12242         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
12243         supported template depth in C++0x.
12244
12245 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12246
12247         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
12248         free_after_compilation.
12249         * config/score/score7.c (score7_output_mi_thunk): Likewise.
12250         * config/score/score3.c (score3_output_mi_thunk): Likewise.
12251         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12252         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12253         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12254         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12255         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12256
12257 2009-08-19  Ian Lance Taylor  <iant@google.com>
12258
12259         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
12260         of (plus (mult (neg B) C) A).
12261
12262 2009-08-18  Michael Matz  <matz@suse.de>
12263
12264         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
12265         instead of comparing TYPE_MAIN_VARIANT for equality.
12266         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
12267         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
12268         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
12269         * gimplify.c (goa_lhs_expr_p): Ditto and use
12270         STRIP_USELESS_TYPE_CONVERSION.
12271
12272 2009-08-18  Michael Matz  <matz@suse.de>
12273
12274         * tree-ssa-structalias.c (create_variable_info_for): Also mark
12275         first field in a struct.
12276         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
12277
12278 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
12279
12280         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
12281         locators before emit_insn is called.  Remove assert that
12282         cfun->is_thunk.
12283         (alpha_end_function): Clear crtl->emit structure and free insn
12284         locators if cfun->is_thunk is true.
12285
12286 2009-08-18  Jason Merrill  <jason@redhat.com>
12287
12288         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12289         type if available.
12290         * configure.ac: Test for it.
12291         * configure, config.in: Regenerate.
12292         * doc/install.texi: Document --enable-gnu-unique-object.
12293
12294 2009-08-18  Richard Guenther  <rguenther@suse.de>
12295
12296         PR middle-end/41094
12297         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
12298         pow(x,y*z) only if x is nonnegative.
12299
12300 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
12301
12302         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
12303         on jumps.
12304
12305         PR target/40971
12306         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
12307         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
12308
12309 2009-08-17  DJ Delorie  <dj@redhat.com>
12310
12311         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
12312         * config/m32c/prologue.md (epilogue_freit): New.
12313         (fset_b): New.
12314         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
12315         (bank_switch_p): Likewise.
12316         (fast_interrupt_p): Likewise.
12317         (interrupt_p): Likewise.
12318         (m32c_conditional_register_usage): Round memregs size up.
12319         (need_to_save): We only need to save $a0 when we use ENTER.
12320         (interrupt_p): Check for fast_interrupt too.
12321         (bank_switch_p): New.
12322         (fast_interrupt_p): New.
12323         (m32c_attribute_table): Add bank_switch and fast_interrupt.
12324         (m32c_emit_prolog): Support bank switching and fast interrupts.
12325         * doc/extend.texi (Function Attributes): Add bank_switch and
12326         fast_interrupt.
12327
12328 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
12329
12330         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
12331         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
12332
12333 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
12334
12335         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
12336         (menu): Add IA-64/VMS Options.
12337         (IA-64/VMS Options): Likewise.
12338
12339 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12340
12341         PR target/38599
12342         * config/mips/mips.md (*lwxs): Use :P for pointer values.
12343
12344 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12345
12346         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
12347         (mips_pop_asm_switch): Likewise.
12348         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
12349         with...
12350         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12351         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
12352         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
12353         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
12354         instead of set_noreorder.
12355         (mips_output_function_prologue): Use the new functions.
12356         (mips_output_function_epilogue): Likewise.
12357         (mips_need_noat_wrapper_p): New function, split out from...
12358         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
12359         Use mips_push_asm_switch and mips_pop_asm_switch.
12360         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
12361         and mips_pop_asm_switch.
12362         (ASM_OUTPUT_REG_POP): Likewise.
12363         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
12364         Use mips_pop_asm_switch.
12365         (mips_asm_switch): New structure.
12366         (set_noreorder, set_nomacro): Replace with...
12367         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12368         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
12369         instead of set_nomacro.
12370         (fix_truncsfsi2_macro): Likewise.
12371         (cprestore): Likewise.
12372         (hazard): Use mips_noreorder instead of set_noreorder.
12373         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
12374
12375 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
12376
12377         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
12378         from prev_active_insn.
12379
12380 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
12381
12382         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
12383         * config/avr/avr.c (avr_override_options): Initialize
12384         avr_current_arch variable.
12385         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
12386         __AVR_HAVE_16BIT_SP__ according to the device type.
12387         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
12388         TARGET_TINY_STACK.
12389         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
12390         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
12391
12392 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
12393
12394         PR debug/37801
12395         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
12396         generating inlined subroutine die only. We shouldn't be
12397         called for anything else.
12398         (gen_block_die): Don't generate inline subroutine debug info for
12399         abstract blocks.
12400
12401 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12402
12403         * graphite-poly.c (print_pbb): Print PBB index.
12404
12405 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12406
12407         PR middle-end/40981
12408         * graphite-interchange.c (ppl_max_for_le): Moved...
12409         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
12410         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
12411         ppl_Pointset_Powerset_C_Polyhedron_maximize.
12412         * graphite-ppl.h (ppl_max_for_le): Declared.
12413
12414 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
12415
12416         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
12417         supported on all platforms.
12418         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
12419         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
12420         * c-pragma.c: Likewise.
12421         * target-def.h (TARGET_INITIALIZER): Remove
12422         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12423         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12424
12425 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12426
12427         * config/ia64/fde-vms.c: New file.
12428         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
12429         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
12430         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
12431         (uw_frame_state_for): Only register a personality routine if it is
12432         known to be compatible with our expectations.
12433         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
12434         Declare unw_table_entry stack variable and
12435         mod all calls to _Unwind_FindTableEntry to add arg.
12436         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
12437         (_Unwind_FindTableEntry): Add arg to prototype.
12438
12439 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
12440
12441         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
12442         field 'signal_pfs_loc'.
12443         (uw_frame_state_for): Remove duplicate code dealing with leaf
12444         procedures without unwind info.
12445         If in the frame after unwinding through a signal handler, restore
12446         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
12447         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
12448         'pfs_loc' to the AR.PFS location in the signal context; instead
12449         set 'signal_pfs_loc'.
12450         Manually generate the unwind info for the AR.PFS register.
12451         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
12452         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
12453         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
12454         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
12455         instead set 'signal_pfs_loc'.
12456         Remove code preventing the AR.PFS register from being restored
12457         from the signal context.
12458
12459 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12460             Tristan Gingold  <gingold@adacore.com>
12461
12462         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
12463         * config/ia64/t-vms: New file.
12464         * config/ia64/vms64.h: New file.
12465         * config/ia64/vms.h: New file.
12466         * config/ia64/vms-crtinit.asm: New file.
12467         * config/ia64/vms_symvec_libgcc_s.opt: New file.
12468         * config/ia64/vms-unwind.h: New file.
12469
12470 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12471
12472         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
12473         TFmode compares.
12474
12475 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12476
12477         PR middle-end/30789
12478         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
12479         Move declaration...
12480         * real.h (do_mpc_arg2): ... here.
12481         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
12482         and RDIV_EXPR.
12483
12484 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
12485
12486         * final.c (add_debug_prefix_map): Don't use GC memory for
12487         old_prefix and new_prefix.
12488
12489 2009-08-14  Richard Guenther  <rguenther@suse.de>
12490
12491         * ipa-prop.c (compute_complex_pass_through): If we cannot
12492         compute a non-varying offset for IPA_JF_ANCESTOR punt.
12493
12494 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12495
12496         * c-lex.c (c_lex_with_flags): Increase size of local variable
12497         to avoid memory clobber.
12498
12499 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
12500
12501         PR target/40934
12502         * config/i386/i386.c (ix86_fp_comparison_strategy):
12503         Only enable/disable sahf at function granularity.
12504
12505 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
12506
12507         PR rtl-optimization/41064
12508         * reload1.c (reload_as_needed): Don't call extract_insn
12509         for known invalid replacements after calling
12510         validate_replace_rtx_group and verify_changes.
12511
12512 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12513
12514         PR target/41019
12515         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
12516         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
12517         ix86_expand_fp_vcond.
12518         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
12519         Assert that operation is supported by ix86_expand_int_vcond.
12520         (vcondu<SSEMODE124C8:mode>): Ditto.
12521
12522 2009-08-13  DJ Delorie  <dj@redhat.com>
12523
12524         * config/i386/djgpp-stdint.h: New.
12525         * config.gcc (djgpp): Use it.
12526
12527 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
12528
12529         * config/sh/sh.c (sh_override_options): When flag_exceptions or
12530         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
12531
12532 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12533
12534         * tree-ssa-loop-prefetch.c
12535         (prune_ref_by_group_reuse): Enhance probabilistic analysis
12536         for long-stride pruning.
12537         (compute_miss_rate): New function to compute the probability
12538         that two memory references access different cache lines.
12539
12540 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
12541
12542         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
12543
12544 2009-08-13  Richard Guenther  <rguenther@suse.de>
12545
12546         PR middle-end/41047
12547         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
12548         use the constant pointer type.
12549         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
12550         of CV qualifiers on the target pointer type.
12551         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
12552         conversion check before restrict check.
12553
12554 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12555
12556         PR target/41029
12557         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
12558
12559 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12560
12561         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
12562
12563 2009-08-12  Richard Guenther  <rguenther@suse.de>
12564
12565         PR tree-optimization/41011
12566         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
12567         and reference constructing.
12568
12569 2009-08-12  Xinliang David Li  <davidxl@google.com>
12570
12571         PR tree-optimization/41012
12572         * tree-flow.h : New external interface.
12573         * gimple-low.c (check_call_arg): Change to public function.
12574         Remove argument mismatch check in lowering.
12575         * tree-inline.h (tree_can_inline_p): Interface change.
12576         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
12577         into this function.
12578         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
12579         Call change to tree_can_inline_p function.
12580         (cgraph_decide_inlining_incrementally): Ditto.
12581
12582 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
12583
12584         PR tree-optimization/41031
12585         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
12586         on the partition variable rather than promote_mode on the source
12587         type.  Assert that the partition variable's type has the same
12588         mode as the source value's.
12589
12590 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
12591
12592         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
12593         for for_return == 2.
12594         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
12595         comments.
12596         * calls.c (expand_call): Fix typo.
12597         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
12598         and PARM_DECL.
12599         * stmt.c (expand_value_return): Use promote_function_mode to copy out
12600         of pseudo.
12601         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
12602         * config/cris/cris.c (cris_promote_function_mode): Likewise.
12603         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
12604         * config/pa/pa.c (pa_promote_function_mode): Likewise.
12605
12606 2009-08-12  Andrew Haley  <aph@redhat.com>
12607
12608         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
12609
12610 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12611
12612         PR bootstrap/40103
12613         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12614
12615 2009-08-12  Richard Guenther  <rguenther@suse.de>
12616
12617         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
12618         * gimplify.c (gimplify_modify_expr): Do not use
12619         lang_hooks.types_compatible_p.
12620         * tree-ssa.c (useless_type_conversion_p): For aggregates
12621         just return false if the canonical types differ.
12622
12623 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12624
12625         PR middle-end/40980
12626         * sese.c (convert_for_phi_arg): New.
12627         (add_guard_exit_phis): Use convert_for_phi_arg.
12628
12629 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12630
12631         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
12632         unknown subscript upper bounds.
12633
12634 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12635             Pranav Garg  <pranav.garg2107@gmail.com>
12636
12637         * graphite-interchange.c (gather_access_strides): Removed.
12638         (ppl_max_for_le): New.
12639         (build_linearized_memory_access): New.
12640         (memory_stride_in_loop): New.
12641         (pbb_interchange_profitable_p): Reimplemented.
12642         * graphite-ppl.h (ppl_new_id_map): New.
12643         (ppl_interchange): New.
12644
12645 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12646
12647         * graphite-interchange.c (compute_subscript): Removed.
12648         (compute_array_size_cstr): Removed.
12649         (compute_array_size_poly): Removed.
12650         (compute_array_size): Removed.
12651         (gather_access_strides_poly): Removed.
12652         (gather_access_strides): Empty.
12653
12654 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12655
12656         * graphite-dependences.c (dependence_polyhedron_1): Replace
12657         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
12658         (graphite_legal_transform_dr): Same.
12659         (graphite_carried_dependence_level_k): Same.
12660         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
12661         Initialize PDR_NB_SUBSCRIPTS.
12662         (print_pdr_access_layout): Replace pdr_nb_subscripts with
12663         PDR_NB_SUBSCRIPTS.
12664         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
12665         (PDR_NB_SUBSCRIPTS): New.
12666         (pdr_nb_subscripts): Removed.
12667         (pdr_dim): Simplified.
12668         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
12669         with PDR_NB_SUBSCRIPTS.
12670
12671 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12672
12673         * graphite-interchange.c (compute_array_size): Remove use of
12674         PDR_DATA_CONTAINER.
12675         * graphite-poly.c (new_poly_dr): Remove argument data_container.
12676         Do not initialize PDR_DATA_CONTAINER.
12677         (print_pdr): Do not print PDR_DATA_CONTAINER.
12678         * graphite-poly.h (struct poly_dr): Remove data_container field.
12679         (PDR_DATA_CONTAINER): Removed.
12680         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
12681         PDR_DATA_CONTAINER.
12682         (build_poly_dr): Same.
12683
12684 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
12685             Sebastian Pop  <sebastian.pop@amd.com>
12686
12687         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
12688         copy of the dependence polyhedron.  Free the temporary objects.
12689         (graphite_carried_dependence_level_k): Free unused objects before
12690         returning.
12691
12692 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12693
12694         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
12695         Early return without analyzing the data dependences if no
12696         transform has been done.  Call restore_scattering if the transform
12697         is not legal.
12698         (graphite-interchange.c): Same.
12699         * graphite-poly.c (print_scattering_function): Test for
12700         PBB_TRANSFORMED.
12701         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
12702         (apply_poly_transforms): Do not gcc_assert that
12703         the transform is legal.
12704         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
12705         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
12706         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
12707         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
12708         * graphite-poly.h (struct poly_scattering): New.
12709         (struct poly_bb): Add original, transformed, and saved fields.
12710         Remove transformed_scattering, original_scattering,
12711         nb_local_variables and nb_scattering_transform fields.
12712         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
12713         (poly_scattering_new): New.
12714         (poly_scattering_free): New.
12715         (poly_scattering_copy): New.
12716         (store_scattering_pbb): New.
12717         (store_scattering): New.
12718         (restore_scattering_pbb): New.
12719         (restore_scattering): New.
12720         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12721         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
12722
12723 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12724
12725         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
12726         (print_scop): Same.
12727
12728 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12729
12730         * Makefile.in (graphite.o): Depends on PREDICT_H.
12731         * graphite.c: Include predict.h.
12732         (graphite_finalize): Call tree_estimate_probability.
12733         * predict.c (predict_loops): Do not call scev_initialize and
12734         scev_finalize.
12735         (tree_estimate_probability_bb): New.
12736         (tree_estimate_probability): Do not initialize loops: move that
12737         code to the driver.  Call tree_estimate_probability_bb.
12738         (tree_estimate_probability_driver): New.
12739         (pass_profile): Use tree_estimate_probability_driver.
12740         * predict.h (tree_estimate_probability): Declared.
12741
12742 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12743
12744         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
12745         * graphite-dependences.c (graphite_legal_transform): Add time to
12746         TV_GRAPHITE_DATA_DEPS.
12747         (dependency_between_pbbs_p): Same.
12748         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
12749
12750 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
12751
12752         PR rtl-optimization/41033
12753         * alias.c (nonoverlapping_component_refs_p): Punt when strict
12754         aliasing is disabled.
12755
12756 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12757
12758         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
12759         si_mask_operand, and_load_operand, low_bitmask_operand,
12760         and_reg_operand, and_operand): New predicates.
12761         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
12762         * config/mips/mips.c (and_operands_ok): New function.
12763         * config/mips/mips-protos.h (and_operands_ok): Declare it.
12764         * config/mips/mips.md (move_type): Add ext_ins and logical.
12765         (type): Handle them.
12766         (and<mode>3): Use and_reg_operand as the second operand's predicate.
12767         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
12768         shift_shift.  Remove commutative constraint modifier.
12769         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
12770         shift_shift.
12771         (*clear_upper32_dext): Remove define_insn_and_split.
12772         (*clear_upper32): Turn this define_insn_and_split ...
12773         (splitter for ANDing register with 0xffff_ffff): .. into this.
12774
12775 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12776
12777         * combine.c (try_widen_shift_mode): Factor out code to check if an
12778         integer constant is a low-order bitmask from here ...
12779         * rtlanal.c (low_bitmask_len): ... to here.
12780         * rtl.h (low_bitmask_len): Declare.
12781
12782 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
12783
12784         PR target/8603
12785         * config/alpha/alpha.md (addsi3): Remove expander.
12786         (addsi3): Rename from *addsi3_internal insn pattern.
12787         (subsi3): Remove expander.
12788         (subsi3): Rename from *subsi3_internal insn pattern.
12789
12790 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
12791
12792         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
12793         FWRITE_UNLOCKED.
12794
12795 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
12796             Eric Botcazou  <botcazou@adacore.com>
12797             Douglas B Rupp  <rupp@gnat.com>
12798
12799         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
12800         that records that fit in 64 bits are returned by immediate value,
12801         as required by OpenVMS Calling Standard.
12802         (function_value): Adjust for above modification.
12803         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
12804         virtual_incoming_args_rtx as base object, not next_arg.
12805         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12806
12807 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12808
12809         * reload.c (find_reloads_subreg_address): Check the original
12810         req_equiv_mem address to detect the case where an address is
12811         not valid in the outer mode.
12812
12813 2009-08-11  Richard Guenther  <rguenther@suse.de>
12814
12815         PR bootstrap/40788
12816         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
12817
12818 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
12819
12820         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
12821         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
12822
12823 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
12824             Douglas B Rupp  <rupp@gnat.com>
12825
12826         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
12827         PT_STACK when frame_pointer_needed on OpenVMS.
12828         (alpha_pv_save_size, alpha_using_fp): Remove.
12829         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
12830         with proper processing for PT_NULL.
12831         (alpha_vms_initial_elimination_offset): New function. Support for
12832         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
12833         (alpha_sa_size): Force procedure type to PT_STACK when
12834         frame_pointer_needed on OpenVMS.
12835         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
12836         (alpha_using_fp): Likewise.
12837         (alpha_vms_can_eliminate): Add prototype.
12838         (alpha_vms_initial_elimination_offset): Likewise.
12839         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
12840         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
12841
12842 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
12843             Douglas B Rupp  <rupp@gnat.com>
12844
12845         * config/alpha/alpha.c (common_object_handler): New function.
12846         (vms_attribute_table): Declare a single attribute "common_object".
12847         (vms_output_aligned_decl_common): New global function.
12848         (SECTION_VMS_OVERLAY): Delete.
12849         (SECTION_VMS_GLOBAL): Likewise.
12850         (SECTION_VMS_INITIALIZE): Likewise.
12851         (vms_asm_named_section): Remove support for above flags.
12852         (vms_section_type_flags): Delete.
12853         (TARGET_SECTION_TYPE_FLAGS): Likewise.
12854         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
12855         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
12856         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
12857
12858 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12859
12860         PR target/41015
12861         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
12862         (sub_ddmmss): Likewise.
12863
12864 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
12865
12866         PR bootstrap/41018
12867         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
12868         year.
12869
12870 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12871
12872         PR target/37053
12873         * reload1.c (reload_as_needed): Use cancel_changes to completely
12874         undo a failed replacement attempt.
12875
12876 2009-08-10  Richard Guenther  <rguenther@suse.de>
12877
12878         PR middle-end/41006
12879         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
12880         (useless_type_conversion_p): ... here.  Require pointer targets
12881         to be compatible.
12882
12883 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
12884
12885         PR c++/40866
12886         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
12887         loose the original type of the statement list.
12888
12889 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12890
12891         * config/alpha/alpha.c: Include libfuncs.h
12892         (avms_asm_output_extern): New function.
12893         (alpha_init_libfuncs): Init some decc libfuncs.
12894         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
12895         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
12896         (DO_CRTL_NAMES): Define.
12897         (LIB_SPEC): Remove.
12898         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
12899         (LONG_TYPE_SIZE): Define.
12900         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
12901         (SUBTARGET_SWITCHES): Define malloc64 switch.
12902         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
12903         (MASK_RETURN_ADDR): Define.
12904         doc/invoke.texi (mmalloc64): Document switch.
12905
12906 2009-08-09  Olivier Hainque  <hainque@adacore.com>
12907             Douglas B Rupp  <rupp@gnat.com>
12908
12909         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
12910         uses_condition_handler.
12911         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
12912         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
12913         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
12914         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
12915         (code_for_builtin): New insn codes for the new alpha_builtins.
12916         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
12917         (alpha_sa_size): Account for uses_condition_handler.
12918         (alpha_expand_prologue): Likewise.
12919         (alpha_start_function): Likewise.
12920         (alpha_expand_epilogue): Likewise.
12921         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
12922         establish/revert expanders.
12923         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
12924         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
12925         New expander, resorting to the alpha.c associated function.
12926         (builtin_revert_vms_condition_handler): Likewise.
12927         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
12928         __gcc_shell_handler, the static VMS condition handler used as
12929         an indirection wrapper to the current dynamically established
12930         handler.
12931         * config/alpha/vms-unwind.h: Complete rewrite.
12932         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
12933         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
12934
12935 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
12936             Douglas B Rupp  <rupp@gnat.com>
12937
12938         * config/alpha/alpha.c (alpha_links): Add 'target' field.
12939         (alpha_need_linkage): Handle aliases.  Return function symbol.
12940         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
12941         Use ultimate alias target for the linkage name.
12942         * config/alpha/alpha.md (movmemdi): Use the symbol returned
12943         by alpha_need_linkage for the function symbol.
12944         (setmemdi): Likewise.
12945
12946 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12947
12948         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
12949         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
12950         (ASM_WEAKEN_LABEL): Define.
12951         (CRT_CALL_STATIC_FUNCTION): Define.
12952         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
12953         (ENDFILE_SPEC): Define.
12954         (INIT_SECTION_ASM_OP): Define.
12955         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
12956         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
12957         crtend.o crtendS.o.
12958         (MULTILIB_OSDIRNAMES): Define.
12959         (shlib_version): Define.
12960         (SHLIB_EXT): Define.
12961         (SHLIB_OBJS): Define.
12962         (SHLIB_NAME): Define.
12963         (SHLIB_MULTILIB): Define.
12964         (SHLIB_INSTALL): Define.
12965         (SHLIB_SYMVEC): Define.
12966         (SHLIB_SYMVECX2): Define.
12967         (SHLIB_LINK): Define.
12968
12969 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12970
12971         * config/alpha/alpha.c (alpha_initialize_trampoline):
12972         Initialize VMS trampoline IAW ABI for bounded procedure calls.
12973         (alpha_start_function): Emit transfer address on nested functions
12974         for VMS trampoline call.
12975         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
12976         since no longer used.
12977         * config/alpha/vms-tramp.asm: Remove.
12978         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
12979         since now only data initialized at runtime.
12980
12981 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12982
12983         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
12984         (LINK_GCC_C_SEQUENCE_SPEC): Define.
12985         (MD_EXEC_PREFIX): Remove, no longer used.
12986         (MD_STARTFILE_PREFIX): Likewise.
12987         (INCLUDE_DEFAULTS): Likewise.
12988         * config/alpha/t-vms:
12989         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
12990
12991 2009-08-09  Richard Guenther  <rguenther@suse.de>
12992
12993         PR tree-optimization/41016
12994         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
12995         (operand_precision): Remove.
12996         (integral_operand_p): Likewise.
12997         (recognize_single_bit_test): Adjust.
12998
12999 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13000
13001         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
13002         operation overflows.  Likewise non-cast unary arithmetic.
13003         If one arm of a conditional expression is always taken,
13004         inhibit evaluation warnings for the other arm.  Likewise inhibit
13005         evaluation warnings for the second && or || operand if the first
13006         operand is enough to determine the result.
13007         * c-typeck.c (build_conditional_expr): Apply the same inhibition
13008         rules here.
13009         (build_binary_op): Prevent duplicate evaluation warnings.
13010
13011 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13012
13013         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
13014         and destination have different modes, Use promote_mode to
13015         determine the signedness of the conversion.  Assert that the
13016         promoted source mode matches the destination mode.  Don't pass
13017         the destination and destination mode to expand_expr if the source
13018         mode is different.  Simplify conversion logic.
13019
13020 2009-08-09  Ira Rosen  <irar@il.ibm.com>
13021
13022         PR tree-optimization/41008
13023         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
13024         from condition only in case it's a comparison. Adjust checks.
13025
13026 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
13027
13028         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
13029         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
13030         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
13031         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
13032         (dump_cand): Handle them.
13033         (struct iv_cand): New members COST_STEP and AINC_USE.
13034         (stmt_after_increment): Likewise.
13035         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
13036         callers changed.  Use gimple_uid comparison instead of scanning.
13037         (add_candidate_1): When looking for identical candidates, take
13038         AINC_USE into account.  Set it for new candidates.
13039         (force_expr_to_var_cost): Cast target_spill_cost to int.
13040         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
13041         All callers changed.  Check for availability of autoinc addressing
13042         modes, both in general for a given mode, and in the specific use case.
13043         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
13044         changed.
13045         (get_computation_cost): Likewise.
13046         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
13047         add_autoinc_candidates): New static functions.
13048         (add_candidate): Call add_autoinc_candidates for candidates based on
13049         a USE_ADDRESS use.
13050         (find_iv_candidates): Call set_autoinc_for_original_candidates.
13051         (determine_use_iv_cost_address): If we have an autoinc candidate at
13052         the matching use, verify autoinc is possible and subtract the cost
13053         of the candidate's step from the cost.
13054         (determine_iv_cost): Record the cost of the increment in the COST_STEP
13055         member of the candidate.
13056         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
13057         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
13058
13059 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13060
13061         * config.build (ia64-hp-*vms*): New target.
13062         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13063         with ia64-hp-*vms*.
13064         * config.gcc (ia64-hp-*vms*): New target.
13065         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13066         with ia64-hp-*vms*.
13067         * config.host (ia64-hp-*vms*): New target.
13068         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13069         with ia64-hp-*vms*.
13070
13071 2009-08-08  Richard Guenther  <rguenther@suse.de>
13072
13073         PR tree-optimization/40991
13074         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
13075
13076 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
13077
13078         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
13079         mode check.  Do truncations in an integer mode.
13080         (force_to_mode): Handle subregs for all mode types.  Only do
13081         arithmetic simplifications on integer modes.
13082
13083 2009-08-07  Richard Guenther  <rguenther@suse.de>
13084
13085         PR tree-optimization/40999
13086         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
13087         (maybe_fold_reference): Lookup constant initializers.
13088         (fold_gimple_assign): Likewise.
13089
13090 2009-08-07  Richard Guenther  <rguenther@suse.de>
13091
13092         * tree-ssa.c (useless_type_conversion_p_1): Only for types
13093         that require structural equality defer to the langhook.
13094
13095 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13096
13097         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
13098         comments.
13099         (struct ipa_pass_through_data): New type.
13100         (struct ipa_ancestor_jf_data): New type.
13101         (union jump_func_value): Removed field formal_id, added fields
13102         pass_through and ancestor.
13103         (struct ipa_param_call_note): Changed type of formal_id to int from
13104         unsigned.
13105         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
13106         operations jump functions and ancestor jump functions.
13107         (compute_complex_pass_through): New function.
13108         (compute_scalar_jump_functions): Call compute_complex_pass_through,
13109         reflect changes in the jump function strucutre.
13110         (update_jump_functions_after_inlining): Ignore complex pass-through
13111         and ancestor jump functions.
13112         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
13113         polynomial pass-through with operation jump functions.
13114
13115 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
13116
13117         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
13118         fde->dw_fde_begin as begin label instead of hot/cold label.
13119         Use LLSDAC label instead of LLSDA for second section lsda.
13120         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
13121         label instead of LLSDA if it is true.
13122         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
13123         callers.
13124         * except.c (add_call_site, dw2_size_of_call_site_table): Add
13125         SECTION argument.  Use it as index into crtl->eh.call_site_record
13126         array.
13127         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
13128         use it to determine how to print table entries instead of using
13129         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
13130         label instead of normal begin label as base.
13131         (sjlj_assign_call_site_values): Adjust add_call_site caller.
13132         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
13133         ensure no EH range spans between sections and that landing pads
13134         are always in the corresponding section.
13135         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
13136         for crtl->eh.call_site_record being an array rather than scalar.
13137         (output_one_function_exception_table): New function, copied
13138         from output_function_exception_table.  Adjust
13139         dw2_size_of_call_site_table, dw2_output_call_site_table
13140         callers.  For SECOND section use *C suffixed labels.
13141         (output_function_exception_table): Call
13142         output_one_function_exception_table and, when doing hot/cold
13143         partitioning, also another time for the second section.
13144         * opts.c: Include except.h.
13145         (decode_options): Allow -freorder-blocks-and-partition with
13146         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
13147         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
13148         * function.h (struct rtl_eh): Change call_site_record from
13149         scalar into array of 2 elements.
13150
13151 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13152
13153         * ipa-prop.c (count_formal_params_1): New function.
13154         (ipa_get_vector_of_formal_parms): New function.
13155         (get_vector_of_formal_parm_types): New function.
13156         (ipa_modify_formal_parameters): New function.
13157         (ipa_modify_call_arguments): New function.
13158         (index_in_adjustments_multiple_times_p): New function.
13159         (ipa_combine_adjustments): New function.
13160         (ipa_dump_param_adjustments): New function.
13161         * ipa-prop.h (struct ipa_parm_adjustment): New type.
13162         (ipa_get_vector_of_formal_parms): Declare.
13163         (ipa_modify_formal_parameters): Declare.
13164         (ipa_modify_call_arguments): Declare.
13165         (ipa_combine_adjustments): Declare.
13166         (ipa_dump_param_adjustments): Declare.
13167         (build_ref_for_offset): Declare.
13168         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
13169         * tree-sra.c: Include ipa-prop.c.
13170         (build_ref_for_offset): Make public.
13171
13172 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
13173
13174         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
13175
13176 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
13177
13178         * gcc/doc/extend.texi (__builtin_extract_return_address)
13179         (__builtin_frob_return_address): Document.
13180
13181 2009-08-06  Paul Brook  <paul@codesourcery.com>
13182
13183         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
13184         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
13185         implementation on ARMv6-M.
13186
13187 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13188
13189         * doc/extend.texi (pcs): Document new attribute for ARM.
13190
13191 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13192
13193         * arm.c (pcs_attribute_args): Comment out unsupported attribute
13194         variants.
13195
13196 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13197
13198         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
13199         warning ().
13200
13201 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13202
13203         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
13204
13205 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13206
13207         Merge ARM/hard_vfp_branch to trunk.
13208
13209         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
13210
13211         * arm.c (libcall_eq): New function.
13212         (libcall_hash): New function.
13213         (add_libcall): New function.
13214         (arm_libcall_uses_aapcs_base): New function.
13215         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
13216         libcalls using the base PCS.
13217         (arm_init_cumulative_args): Likewise.
13218
13219         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
13220
13221         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
13222         Use base ABI for conversion libfuncs between HFmode and SFmode.
13223
13224         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13225
13226         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
13227         V4SImode as representatives of all 64-bit and 128-bit vector
13228         types.  Allow vector types without vector modes.
13229         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
13230         without vector modes like BLKmode.
13231         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
13232         BLKmode.  Avoid unsupported vector modes or TImode moves for
13233         non-TARGET_NEON.
13234         (aapcs_vfp_allocate_return_reg): Likewise.
13235         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
13236         V8QImode if TARGET_NEON || TARGET_IWMMXT.
13237
13238         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13239
13240         * config/arm/arm.c (arm_handle_pcs_attribute): New.
13241         (arm_get_pcs_model): Pass attribute arguments to
13242         arm_pcs_from_attribute.
13243         (arm_init_cumulative_args): Use base AAPCS for conversions from
13244         floating-point types to DImode.
13245         (arm_attribute_table): Add pcs attribute.
13246         (arm_handle_pcs_attribute): New.
13247         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
13248         conversions from floating-point types to DImode, also declare them
13249         to use base AAPCS and declare functions they call to use base
13250         AAPCS and their RTABI names.
13251
13252         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13253
13254         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
13255         -mfloat-abi=hard not being supported for VFP.
13256
13257         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
13258
13259         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
13260         SYMBOL_REF to hard_libcall_value.
13261
13262         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13263             Richard Earnshaw  <rearnsha@arm.com>
13264
13265         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
13266         has been put on the stack, all remaining co-processory arguments for
13267         that co-processor also go on the stack.
13268
13269         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13270
13271         * config/arm/arm.c (arm_return_in_memory): Handle returning
13272         vectors of suitable size in registers also for AAPCS case.
13273
13274         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
13275
13276         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
13277
13278         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
13279
13280         ARM Hard-VFP calling convention
13281         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
13282         * target.h (gcc_target): Add libcall_value to table of call hooks.
13283         * targhooks.h (default_libcall_value): Default implementation.
13284         * targhooks.c (default_libcall_value): Likewise.
13285         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
13286         * optabs.c (expand_unop): Use it.
13287         * expr.h (hard_libcall_value): Pass the function RTX through.
13288         * calls.c (emit_library_call_value_1): Update call to
13289         hard_libcall_value.
13290         * explow.c (hard_libcall_value): Use new target hook.
13291         * config/arm/arm.c: Include cgraph.h
13292         (TARGET_FUNCTION_VALUE): Override default hook.
13293         (arm_pcs_default): New variable.
13294         (arm_override_options): Don't fault hard calling convention with VFP.
13295         Add support for AAPCS variants.
13296         (arm_function_value): Make static.  Handle AAPCS variants.
13297         (arm_libcall_value): New function.
13298         (arm_apply_result_size): Handle VFP registers in results.
13299         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
13300         conventions.
13301         (pcs_attribute_args): New variable.
13302         (arm_pcs_from_attribute): New function.
13303         (arm_get_pcs_model): New function.
13304         (aapcs_vfp_cum_init): New function.
13305         (aapcs_vfp_sub_candidate): New function.
13306         (aapcs_vfp_is_return_candidate): New function.
13307         (aapcs_vfp_is_call_candidate): New function.
13308         (aapcs_vfp_allocate): New function.
13309         (aapcs_vfp_allocate_return_reg): New function.
13310         (aapcs_vfp_advance): New function.
13311         (aapcs_cp_arg_layout): New variable.
13312         (aapcs_select_call_coproc): New function.
13313         (aapcs_select_return_coproc): New function.
13314         (aapcs_allocate_return_reg): New function.
13315         (aapcs_libcall_value): New function.
13316         (aapcs_layout_arg): New function.
13317         (arm_init_cumulative_args): Initialize AAPCS args data.
13318         (arm_function_arg): Handle AAPCS variants using new interface.
13319         (arm_arg_parital_bytes): Likewise.
13320         (arm_function_arg_advance): New function.
13321         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
13322         calling conventions.
13323         (arm_setup_incoming_varargs): Handle new AAPCS args data.
13324         * arm.h (NUM_VFP_ARG_REGS): Define.
13325         (LIBCALL_VALUE): Update.
13326         (FUNCTION_VALUE): Delete.
13327         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
13328         (arm_pcs): New enum.
13329         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
13330         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
13331         (FUNCTION_ARG_REGNO_P): Add VFP regs.
13332         * arm-protos.h (arm_function_arg_advance): Add.
13333         (aapcs_libcall_value): Add.
13334         (arm_function_value): Delete.
13335
13336 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
13337             H.J. Lu  <hongjiu.lu@intel.com>
13338
13339         PR target/40957
13340         * config/i386/i386.c (standard_sse_mode_p): Remove.
13341         (standard_sse_constant_p): Return 2 for integer mode
13342         vector_all_ones_operand when SSE2 is enabled.
13343         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
13344         (ix86_expand_vector_move): Do not check for negative values from
13345         standard_sse_constant_p.
13346
13347 2009-08-06  Richard Guenther  <rguenther@suse.de>
13348
13349         * tree-ssa.c (useless_type_conversion_p_1): Make function and
13350         array type comparisons frontend independent.
13351         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
13352         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
13353         out array reference lower bound and element size operands.
13354         (ao_ref_init_from_vn_reference): Properly compute the offset
13355         for ARRAY_RANGE_REF.
13356         (vn_reference_fold_indirect): Fill out array reference lower
13357         bound and element size operands.
13358         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
13359         a non gimple valued reference operand which can happen for
13360         array reference lower bound or element size.
13361         (create_component_ref_by_pieces_1): Properly generate the
13362         element size operand for array references.
13363
13364 2009-08-06  Richard Guenther  <rguenther@suse.de>
13365
13366         PR tree-optimization/40964
13367         * tree.c (iterative_hash_host_wide_int): Export.
13368         * tree.h (iterative_hash_host_wide_int): Declare.
13369         * tree-ssa-structalias.c (heapvar_map): New struct.
13370         (heapvar_map_eq): New function.
13371         (heapvar_map_hash): Likewise.
13372         (heapvar_lookup): Adjust.
13373         (heapvar_insert): Likewise.
13374         (make_constraint_from_heapvar): Allow multiple heap variables
13375         per decl at different offsets.
13376         (init_alias_heapvars): Adjust.
13377
13378 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13379
13380         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
13381         * mips_output_sync_loop (mips_output_sync_loop): Only emit
13382         trailing sync if TARGET_SYNC_AFTER_SC.
13383
13384 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
13385
13386         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
13387         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
13388         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
13389         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
13390         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
13391         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
13392         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13393         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
13394         test_and_set_12): Rewrite calls to mips_output_sync_loop.
13395         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
13396         the prototype declaration match the definition.
13397         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
13398         instructions explicitly.  Add barrier_before and operands
13399         parameters.
13400         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
13401         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
13402         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
13403         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
13404         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
13405         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
13406
13407 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
13408
13409         * tree-ssa-alias.c: Fix intervals to use [) syntax.
13410
13411 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
13412             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13413
13414         PR target/40906
13415         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
13416         source operand.
13417
13418 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
13419
13420         PR rtl-optimization/40924
13421         * dse.c (canon_address): Before calling cselib_expand_value_rtx
13422         make sure canon_rtx (mem_address) isn't simpler than
13423         canon_rtx (expanded_mem_address).
13424
13425 2009-08-05  Li Feng  <nemokingdom@gmail.com>
13426
13427         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
13428         for each poly_bb_p.
13429         (build_scop_drs): Build alias set for each SCoP.
13430
13431 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
13432
13433         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
13434         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
13435         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
13436         (MIPS_ARCH_FLOAT_SPEC): Likewise.
13437         (BASE_DRIVER_SELF_SPECS): Likewise.
13438
13439 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
13440
13441         * tree-ssa-alias.c: Fix some comment typos.
13442
13443 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13444
13445         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
13446         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
13447
13448 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
13449
13450         PR c/39902
13451         * simplify-rtx.c (simplify_binary_operation_1): Disable
13452         simplifications for decimal float operations.
13453
13454 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
13455
13456         PR middle-end/40943
13457         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
13458         operand of INDIRECT_REF.
13459
13460 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
13461
13462         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
13463         constants referencing TLS symbols.
13464
13465 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13466
13467         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
13468         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
13469
13470 2009-08-03  Richard Guenther  <rguenther@suse.de>
13471
13472         * tree.c (make_vector_type): Build a main variant first,
13473         get the canonical one and then build the variant.
13474         * tree-ssa.c (useless_type_conversion_p_1): Handle
13475         fixed-point types.
13476         (useless_type_conversion_p): Conversions to pointers to
13477         incomplete record types are useless.
13478
13479 2009-08-03  Richard Guenther  <rguenther@suse.de>
13480
13481         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
13482         file will be created.
13483         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
13484         * toplev.c (compile_file): Adjust comment.
13485
13486 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13487
13488         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
13489         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
13490         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13491         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13492         (sh_promote_function_mode): Fix typo.
13493
13494 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
13495
13496         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
13497
13498 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13499
13500         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
13501         declaration arguments.
13502
13503 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
13504
13505         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
13506         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
13507         (ix86_split_ashl): Ditto.
13508         (ix86_expand_vector_init_one_nonzero): Ditto.
13509         (ix86_expand_vector_set): Ditto.
13510         (ix86_expand_reduc_v4sf): Ditto.
13511
13512 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13513
13514         * explow.c (promote_function_mode): Remove assert.
13515         * config/sh/sh.c (sh_promote_function_mode): Declare.
13516
13517 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13518
13519         * config/pa/pa.c (pa_promote_function_mode): Declare.
13520         Change to static.  Fix promote_mode call.
13521
13522         * gthr-dce.h (CONST_CAST2): Define if not defined.
13523         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
13524
13525         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
13526
13527 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
13528
13529         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13530         now write-only variable unsignedp.
13531         (expand_expr_real_1): Use promote_decl_mode.
13532         * expr.h (promote_function_mode, promote_decl_mode): New.
13533         (promote_mode): Remove last argument.
13534         * function.c (assign_temp): Drop last argument of promote_mode.
13535         (assign_parm_find_data_types): Use promote_function_mode.
13536         (assign_parm_setup_reg): Likewise.
13537         (expand_function_end): Use promote_function_mode.
13538         * calls.c (initialize_argument_information): Use promote_function_mode.
13539         (precompute_arguments): Use promote_mode instead of checking if
13540         only PROMOTE_FUNCTION_MODE is defined.
13541         (expand_call): When making sibcall decisions, use promote_function_mode.
13542         Below, remove an if for targetm.calls.promote_function_return and
13543         and use promote_function_mode.
13544         (emit_library_call_value_1): Use promote_function_mode, fix bug
13545         where promote_mode was passed FOR_CALL == 0 for a return value in an
13546         assertion.
13547         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13548         * explow.c (promote_function_mode, promote_decl_mode): New.
13549         (promote_mode): Keep only the FOR_CALL == 0 case.
13550         * combine.c (setup_incoming_promotion): Remove test of
13551         promote_function_args.  Use promote_function_mode.
13552         * stmt.c (expand_value_return): Use promote_decl_mode.
13553         (expand_decl): Use promote_decl_mode.
13554
13555         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13556         now write-only variable unsignedp.
13557         (expand_expr_real_1): Use promote_decl_mode.
13558         * expr.h (promote_function_mode, promote_decl_mode): New.
13559         (promote_mode): Remove last argument.
13560         * function.c (assign_temp): Drop last argument of promote_mode.
13561         (assign_parm_find_data_types): Use promote_function_mode.
13562         (assign_parm_setup_reg): Likewise.
13563         (expand_function_end): Use promote_function_mode.
13564         * calls.c (initialize_argument_information): Use promote_function_mode.
13565         (precompute_arguments): Use promote_mode instead of checking if
13566         only PROMOTE_FUNCTION_MODE is defined.
13567         (expand_call): When making sibcall decisions, use promote_function_mode.
13568         Below, remove an if for targetm.calls.promote_function_return and
13569         and use promote_function_mode.
13570         (emit_library_call_value_1): Use promote_function_mode, fix bug
13571         where promote_mode was passed FOR_CALL == 0 for a return value in an
13572         assertion.
13573         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13574         * explow.c (promote_function_mode, promote_decl_mode): New.
13575         (promote_mode): Keep only the FOR_CALL == 0 case.
13576         * combine.c (setup_incoming_promotion): Remove test of
13577         promote_function_args.  Use promote_function_mode.
13578         * stmt.c (expand_value_return): Use promote_decl_mode.
13579         (expand_decl): Use promote_decl_mode.
13580
13581         * explow.c (promote_function_mode): Just call the target hook.
13582         * targhooks.c (default_promote_function_mode,
13583         default_promote_function_mode_always_promote): New.
13584         * targhooks.h (default_promote_function_mode,
13585         default_promote_function_mode_always_promote): Declare.
13586         * target.h (promote_function_args, promote_function_return): Remove.
13587         (promote_function_mode): New.
13588         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
13589         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13590         (TARGET_PROMOTE_FUNCTION_MODE): New.
13591         (TARGET_CALLS): Adjust.
13592         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
13593         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
13594
13595         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
13596         * config/s390/s390.c (s390_promote_function_mode): ... here,
13597         with pointer handling.
13598         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13599         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13600
13601         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
13602         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
13603         with pointer handling.
13604         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13605         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13606
13607         * config/sh/sh-protos.h (sh_promote_function_mode): New.
13608         * config/sh/sh.c (sh_promote_function_mode): New.
13609         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13610         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13611
13612         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
13613         * config/cris/cris.c (cris_promote_function_mode): ... here.
13614         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13615         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13616
13617         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
13618         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
13619         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13620         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13621
13622         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
13623         * config/arm/arm.c (arm_promote_function_mode): ... here, without
13624         complex type handling.
13625         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13626         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13627
13628         * config/pa/pa.c (pa_promote_function_mode): New.
13629         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13630         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13631
13632         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
13633         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13634         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
13635         * config/xtensa/xtensa.c: Likewise.
13636         * config/stormy16/stormy16.c: Likewise.
13637         * config/iq2000/iq2000.c: Likewise.
13638         * config/rs6000/rs6000.c: Likewise.
13639         * config/picochip/picochip.c: Likewise.
13640         * config/arc/arc.c: Likewise.
13641         * config/mcore/mcore.c: Likewise.
13642         * config/score/score.c: Likewise.
13643         * config/mips/mips.c: Likewise.
13644         * config/bfin/bfin.c: Likewise.
13645         * config/ia64/ia64.c: Likewise (disabled though).
13646
13647         * config/frv/frv.h: Remove pointless remark.
13648
13649         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
13650         TARGET_PROMOTE_FUNCTION_ARGS,
13651         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
13652         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
13653
13654 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13655
13656         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
13657         -floop-parallelize-all.
13658         * toplev.c (process_options): Rename flag_graphite_force_parallel to
13659         flag_loop_parallelize_all.
13660         * tree-ssa-loop.c (gate_graphite_transforms): Same.
13661         * graphite.c (graphite_transform_loops): Same.
13662         * common.opt: Same.
13663         * graphite-poly.c (apply_poly_transforms): Same.
13664
13665 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
13666
13667         PR tree-optimization/40914
13668         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
13669         if set, then check the delta field of the PMF record.
13670         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
13671         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
13672         call is stored in the delta.
13673
13674 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
13675
13676         * config/mips/mips.md (*clear_upper32_dext): New pattern.
13677
13678 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
13679
13680         * config/i386/bsd.h (ASM_BYTE): New define.
13681         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
13682         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
13683         .byte.  Use fputs or putc instead of fprintf where appropriate.
13684         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
13685         fputs or putc instead of fprintf where appropriate.
13686         * config/i386/i386elf.h: Ditto.
13687         * config/i386/sysv4.h: Ditto.
13688
13689         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
13690         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
13691         (*tls_global_dynamic_64): Ditto.
13692
13693 2009-07-31  Christian Bruel  <christian.bruel@st.com>
13694
13695         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
13696
13697 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13698
13699         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
13700         Remove dead code for MINUS.
13701
13702 2009-07-31  Anthony Green  <green@moxielogic.com>
13703
13704         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
13705         $r12 in prologue.
13706         (moxie_expand_epilogue): Ditto for epilogue.
13707         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
13708         incoming arguments.
13709         (moxie_function_arg): Ditto.
13710         (moxie_pass_by_reference): Ditto.
13711         (moxie_arg_partial_bytes): Ditto.
13712         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
13713         (FUNCTION_ARG_ADVANCE) Ditto.
13714         (REG_PARM_STACK_SPACE) Ditto.
13715         (FUNCTION_ARG_REGNO_P) Dito.
13716
13717         * config.gcc: Add moxie linux config support.
13718         * gcc/config/moxie/uclinux.h: New file.
13719
13720 2009-07-31  DJ Delorie  <dj@redhat.com>
13721
13722         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13723         (UNSPECV_SP_SWITCH_E): New.
13724         (sp_switch_1): Change to an unspec.
13725         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13726         replace $r15.
13727         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
13728         reference the new stack's address
13729
13730 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13731
13732         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
13733         graphite-clast-to-gimple.o, graphite-dependences.o,
13734         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13735         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
13736         (graphite-blocking.o,
13737         graphite-clast-to-gimple.o, graphite-dependences.o,
13738         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13739         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
13740         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
13741         * cfgloop.h (struct loop): Add can_be_parallel field.
13742         * common.opt (fgraphite-identity): Moved up.
13743         (fgraphite-force-parallel): New flag.
13744         * graphite.c: Rewrite.
13745         * graphite.h: Rewrite.
13746         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
13747         after Graphite.
13748         * toplev.c (graphite_out_file): New file descriptor.
13749         (graphite_in_file): New.
13750         (process_options): flag_graphite_force_parallel cannot be used without
13751         Graphite.
13752         * tree-ssa-loop.c: Include toplev.h.
13753         (gate_graphite_transforms): Enable flag_graphite for
13754         flag_graphite_force_parallel.
13755
13756 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13757
13758         * ChangeLog.graphite: New.
13759         * graphite-blocking.c: New.
13760         * graphite-clast-to-gimple.c: New.
13761         * graphite-clast-to-gimple.h: New.
13762         * graphite-dependences.c: New.
13763         * graphite-dependences.h: New.
13764         * graphite-interchange.c: New.
13765         * graphite-poly.c: New.
13766         * graphite-poly.h: New.
13767         * graphite-ppl.c: New.
13768         * graphite-ppl.h: New.
13769         * graphite-scop-detection.c: New.
13770         * graphite-scop-detection.h: New.
13771         * graphite-sese-to-poly.c: New.
13772         * graphite-sese-to-poly.h: New.
13773         * sese.c: New.
13774         * sese.h: New.
13775
13776 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13777
13778         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
13779         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
13780
13781 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13782
13783         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
13784         (scev_is_linear_expression): Return false if the evolution is not
13785         affine multivariate.
13786
13787 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13788
13789         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
13790         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
13791
13792 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13793
13794         * tree-data-ref.c (debug_data_references): New.
13795         (debug_data_reference): New.
13796         * tree-data-ref.h (debug_data_references): Declared.
13797         (debug_data_reference): Declared.
13798
13799 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13800
13801         * tree-data-ref.c (stmt_simple_memref_p: Removed.
13802         * tree-data-ref.h (scop_p): Removed.
13803         (struct data_reference): Remove field scop.
13804         (DR_SCOP): Removed.
13805         (stmt_simple_memref_p): Removed.
13806
13807 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13808
13809         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
13810         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
13811         basic block empty.
13812
13813 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13814
13815         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
13816
13817 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13818
13819         * doc/invoke.texi (-fgraphite-identity): Documented.
13820
13821 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13822
13823         * tree-scalar-evolution.c: Fix comment.
13824         (instantiate_scev_1): Return unknow from scev instantiation if the
13825         result is not above instantiate_below.
13826
13827 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13828
13829         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
13830         static anymore.  Instantiate the symbols that may have been introduced
13831         by chrec_apply.
13832         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
13833         Declared.
13834
13835 2009-07-30  DJ Delorie  <dj@redhat.com>
13836
13837         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
13838         .vliw directive to VLIW sections.
13839
13840 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13841
13842         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
13843         New variables.
13844         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
13845         (AUTOHEADER): New variable.
13846         ($(srcdir)/cstamp-h.in): Use it.
13847
13848 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
13849             Pat Haugen  <pthaugen@us.ibm.com>
13850             Revital Eres <ERES@il.ibm.com>
13851
13852         * config/rs6000/vector.md (VEC_F): Add VSX support.
13853         (VEC_A): Ditto.
13854         (VEC_N): Ditto.
13855         (mov<mode>): Ditto.
13856         (vector_load_<mode>): Ditto.
13857         (vector_store_<mode>): Ditto.
13858         (vector GPR move split): Ditto.
13859         (vec_reload_and_plus_<mptrsize>): Ditto.
13860         (vec_reload_and_reg_<mptrsize>): Ditto.
13861         (add<mode>3): Ditto.
13862         (sub<mode>3): Ditto.
13863         (mul<mode>3): Ditto.
13864         (neg<mode>2): Ditto.
13865         (abs<mode>2): Ditto.
13866         (smin<mode>3): Ditto.
13867         (smax<mode>3): Ditto.
13868         (vector_eq<mode>): Ditto.
13869         (vector_gt<mode>): Ditto.
13870         (vector_ge<mode>): Ditto.
13871         (vector_gtu<mode>): Ditto.
13872         (vector_select_<mode>_uns): Ditto.
13873         (vector_eq_<mode>_p): Ditto.
13874         (vector_gt_<mode>_p): Ditto.
13875         (vector_ge_<mode>_p): Ditto.
13876         (vector_gtu_<mode>_p): Ditto.
13877         (cr6_test_for_zero): Ditto.
13878         (cr6_test_for_zero_reverse): Ditto.
13879         (cr6_test_for_lt): Ditto.
13880         (cr6_test_for_lt_reverse): Ditto.
13881         (xor<mode>3): Ditto.
13882         (ior<mode>3): Ditto.
13883         (and<mode>3): Ditto.
13884         (one_cmpl<mode>2): Ditto.
13885         (nor<mode>2): Ditto.
13886         (andc<mode>2): Ditto.
13887         (float<VEC_int<mode>2): Ditto.
13888         (unsigned_float<VEC_int><mode>2): Ditto.
13889         (fix_trunc<mode><VEC_int>2): Ditto.
13890         (fixuns_trunc<mode><VEC_int>2): Ditto.
13891         (vec_init<mode>):
13892         (vec_set<mode>): Ditto.
13893         (vec_extract<mode>): Ditto.
13894         (vec_interleave_highv4sf): Ditto.
13895         (vec_interleave_lowv4sf): Ditto.
13896         (vec_realign_load_<mode>): Ditto.
13897         (vec_shl_<mode>): Ditto.
13898         (vec_shr_<mode>): Ditto.
13899         (div<mode>3): New patterns for VSX.
13900         (vec_interleave_highv2df): Ditto.
13901         (vec_interleave_lowv2df): Ditto.
13902         (vec_pack_trunc_v2df): Ditto.
13903         (vec_pack_sfix_trunc_v2df): Ditto.
13904         (vec_pack_ufix_trunc_v2df): Ditto.
13905         (vec_unpacks_hi_v4sf): Ditto.
13906         (vec_unpacks_lo_v4sf): Ditto.
13907         (vec_unpacks_float_hi_v4si): Ditto.
13908         (vec_unpacks_float_lo_v4si): Ditto.
13909         (vec_unpacku_float_hi_v4si): Ditto.
13910         (vec_unpacku_float_lo_v4si): Ditto.
13911         (movmisalign<mode>): Ditto.
13912         (vector_ceil<mode>2): New patterns for vectorizing math library.
13913         (vector_floor<mode>2): Ditto.
13914         (vector_btrunc<mode>2): Ditto.
13915         (vector_copysign<mode>3): Ditto.
13916
13917         * config/rs6000/predicates.md (easy_vector_constant_msb): New
13918         predicate for setting the high bit in each word, used for copysign.
13919
13920         * config/rs6000/ppc-asm.h (f19): Whitespace.
13921         (f32-f63): Define if VSX.
13922         (v0-v31): Define if Altivec.
13923         (vs0-vs63): Define if VSX.
13924
13925         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
13926
13927         * config/rs6000/power7.md: New file, provide tuning parameters for
13928         -mcpu=power7.
13929
13930         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
13931         (rs6000_cpu_cpp_builtins): Ditto.
13932         (altivec_overloaded_builtins): Ditto.
13933         (altivec_resolve_overloaded_builtin): Ditto.
13934
13935         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
13936         debug switch to disable vectorizing simple math builtin
13937         functions.
13938
13939         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13940         Vectorize simple math builtin functions.
13941         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13942         hook to vectorize math builtins.
13943         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
13944         (rs6000_builtin_conversion): Add VSX/power7 support.
13945         (rs6000_builtin_vec_perm): Ditto.
13946         (vsplits_constant): Add support for loading up a vector constant
13947         with just the high bit set in each part.
13948         (rs6000_expand_vector_init): Add VSX/power7 support.
13949         (rs6000_expand_vector_set): Ditto.
13950         (rs6000_expand_vector_extract): Ditto.
13951         (rs6000_emit_move): Ditto.
13952         (bdesc_3arg): Ditto.
13953         (bdesc_2arg): Ditto.
13954         (bdesc_1arg): Ditto.
13955         (rs6000_expand_ternop_builtin): Ditto.
13956         (altivec_expand_builtin): Ditto.
13957         (rs6000_expand_unop_builtin): Ditto.
13958         (rs6000_init_builtins): Ditto.
13959         (altivec_init_builtins): Ditto.
13960         (builtin_function_type): Ditto.
13961         (rs6000_common_init_builtins): Ditto.
13962         (rs6000_handle_altivec_attribute); Ditto.
13963         (rs6000_mangle_type): Ditto.
13964         (rs6000_vector_mode_supported_p): Ditto.
13965         (rs6000_mode_dependent_address): Altivec addresses with AND -16
13966         are mode dependent.
13967
13968         * config/rs6000/vsx.md: New file for VSX support.
13969
13970         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
13971         identifing values with just the most significant bit set.
13972         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
13973         vectorized builtins.
13974
13975         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
13976         (UNSPEC_VRFIM): Delete.
13977         (splitter for loading up vector with most significant bit): New
13978         splitter for vectorizing copysign.
13979         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
13980         vectorizing simple math functions.
13981         (altivec_vrfip): Add support for vectorizing simple math functions.
13982         (altivec_vrfim): Ditto.
13983         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
13984
13985         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
13986         (power7.md, vsx.md): Include for power7 support.
13987         (copysigndf3): Use VSX instructions if -mvsx.
13988         (negdf2_fpr): Ditto.
13989         (absdf2_fpr): Ditto.
13990         (nabsdf2_fpr): Ditto.
13991         (adddf3_fpr): Ditto.
13992         (subdf3_fpr): Ditto.
13993         (muldf3_fpr): Ditto.
13994         (divdf3_fpr): Ditto.
13995         (fix_truncdfdi2_fpr): Ditto.
13996         (cmpdf_internal1): Ditto.
13997         (fred, fred_fpr): Convert into expander/insn to add VSX support.
13998         (btruncdf2, btruncdf2_fpr): Ditto.
13999         (ceildf2, ceildf2_fpr): Ditto.
14000         (floordf2, floordf2_fpr): Ditto.
14001         (floatdidf2, floatdidf2_fpr): Ditto.
14002         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
14003         (fmsubdf4_fpr): Ditto.
14004         (fnmadddf4_fpr_1): Ditto.
14005         (fnmadddf4_fpr_2): Ditto.
14006         (fnmsubdf4_fpr_1): Ditto.
14007         (fnmsubdf4_fpr_2): Ditto.
14008         (fixuns_truncdfdi2): Add expander for VSX support.
14009         (fix_truncdfdi2): Ditto.
14010         (fix_truncdfsi2): Ditto.
14011         (ftruncdf2): Ditto.
14012         (btruncsf2): Whitespace.
14013         (movdf_hardfloat32): Add support for VSX registers.
14014         (movdf_softfloat32): Ditto.
14015         (movdf_hardfloat64): Ditto.
14016         (movdf_hardfloat64_mfpgpr): Ditto.
14017         (movdf_softfloat64): Ditto.
14018         (movti splitters): Add check for vector registers supporting
14019         TImode in the future.
14020         (bpermd): Add power7 bpermd instruction.
14021
14022         * config/rs6000/altivec.h (vec_div): Define if VSX.
14023         (vec_mul): Ditto.
14024         (vec_msub): Ditto.
14025         (vec_nmadd): Ditto.
14026         (vec_nearbyint): Ditto.
14027         (vec_rint): Ditto.
14028         (vec_sqrt): Ditto.
14029         (all predicates): Use the generic builtin function, and not the V4SF
14030         specific function so that the predicates will work with VSX's V2DF.
14031         (vec_all_*): Ditto.
14032         (vec_any_*): Ditto.
14033
14034         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
14035         Document new VSX functions and types.
14036
14037         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
14038         switches.
14039
14040         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
14041         "wa", and "j" constraints.  Modify "v" to talk about Altivec
14042         instead of just vector.
14043
14044 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
14045
14046         PR debug/26475
14047         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
14048         location for phi arguments.
14049         (rewrite_update_phi_arguments): Find locations for reaching defs.
14050         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
14051         Add location to add_phi_arg calls.
14052         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
14053         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
14054         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
14055         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
14056         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
14057         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
14058         * tree-phinodes.c (make_phi_node): Initialize location.
14059         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
14060         (add_phi_arg): Add location parameter.
14061         (remove_phi_arg_num): Move location when moving phi argument.
14062         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
14063         location.
14064         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
14065         slpeel_update_phi_nodes_for_guard1,
14066         slpeel_update_phi_nodes_for_guard2,
14067         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
14068         vect_loop_versioning): Set locations.
14069         * tree-parloops.c (create_phi_for_local_result,
14070         transform_to_exit_first_loop, create_parallel_loop): Add locations.
14071         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
14072         * tree-vect-loop.c (get_initial_def_for_induction,
14073         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
14074         locations.
14075         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
14076         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
14077         (gimple_phi_arg_set_location): New.  Set locus.
14078         (gimple_phi_arg_has_location): New.  Check for locus.
14079         (redirect_edge_var_map_location): New.  Return locus from var_map.
14080         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
14081         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
14082         combining PHI arguments.
14083         (cond_store_replacement): Set location.
14084         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
14085         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
14086         scop_add_exit_phis_edge): Add locations.
14087         * tree-cfgcleanup.c (remove_forwarder_block,
14088         remove_forwarder_block_with_phi): Add locations.
14089         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
14090         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
14091         locations.
14092         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
14093         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
14094         flush_pending_stmts): Add source location.
14095         * lambda-code.c (perfect_nestify): Maintain location stack with argument
14096         stack to preserve locations.
14097         * tree-vect-stmts.c (vectorizable_load): Add location.
14098         * tree-inline.c (copy_phis_for_bb): Copy locus.
14099         (setup_one_parameter): Add call locus to inlined parameter stmts.
14100         (initialize_inlined_parameters): Pass in call location as parameter
14101         assignment locus.
14102         (tree_function_versioning): Pass location to setup_one_parameter.
14103         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
14104         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
14105         copy and edge lists.
14106         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
14107         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
14108         locus parameter and override the stmt default if provided.
14109         (new_elim_graph, clear_elim_graph, delete_elim_graph,
14110         elim_graph_add_edge, elim_graph_remove_succ_edge,
14111         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
14112         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
14113         eliminate_phi):  Add locus info in elimination graph for each edge and
14114         value copy.
14115         (insert_backedge_copies): Copy locus if present.
14116         * tree-flow.h (struct _edge_var_map): Add locus field.
14117         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
14118         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
14119         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
14120         locations.
14121         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
14122
14123 2009-07-30  Martin Jambor  <mjambor@suse.cz>
14124
14125         PR tree-optimization/40570
14126         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
14127         use inlining loops.
14128
14129 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
14130
14131         * ssa-loop-manip.c: Include langhooks.h.
14132         (rewrite_phi_with_iv): New.
14133         (rewrite_all_phi_nodes_with_iv): New.
14134         (canonicalize_loop_ivs): Move here from tree-parloops.c.
14135         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
14136         * tree-parloops.c (loop_parallel_p): Move out all conditions
14137         except dependency check.
14138         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
14139         (gen_parallel_loop): Call canonicalize_loop_ivs without
14140         reduction_list argument.
14141         (build_new_reduction): New.
14142         (gather_scalar_reductions): New.
14143         (try_get_loop_niter): New.
14144         (try_create_reduction_list): New.
14145         (parallleize_loops): Change the parallel conditions check.
14146         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
14147         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
14148
14149 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14150
14151         * opt-functions.awk (opt_args): Allow argument to be enclosed in
14152         curly braces.
14153         * doc/options.texi (Option properties):  Mention new quoting syntax.
14154
14155 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14156
14157         * config/alpha/alpha.c (alpha_start_function):
14158         Handle VMS_DEBUG_MAIN_POINTER
14159         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
14160         * doc/invoke.texi: Document -mdebug-main switch.
14161
14162 2009-07-29  Richard Henderson  <rth@redhat.com>
14163
14164         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
14165         (cgraph_create_edge_including_clones): Likewise.
14166         * tree-inline.c (copy_bb): Operate on the correct edges
14167         when updating the callgraph.
14168
14169 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14170
14171         * config/alpha/vms-cc.c: Deleted.
14172         * config/alpha/vms-ld.c: Deleted.
14173         * config/alpha/t-vms64: Moved to config/vms
14174         * config/alpha/vms-crt0-64.c: Moved to config/vms
14175         * config/alpha/vms-crt0.c: Moved to config/vms
14176         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
14177         * config/alpha/vms-psxcrt0.c: Moved to config/vms
14178         * config/alpha/xm-vms.h: Moved to config/vms
14179         * config/alpha/x-vms: Moved to config/vms
14180         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
14181         config/vms/t-vms.
14182         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
14183         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
14184         (version): Set.
14185         * config/vms/t-vms64: Moved here from config/alpha
14186         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
14187         (argc,argv,envp): Enforce 32bit malloc'ing.
14188         * config/vms/vms-psxcrt0-64.c: Likewise.
14189         * config/vms/vms-crt0.c: Moved here from config/alpha.
14190         * config/vms/vms-psxcrt0.c: Likewise.
14191         * config/vms/vms-crtl-64.h: New file.
14192         * config/vms/vms-crtl.h: New file.
14193         * config/vms/vms.opt: New file.
14194         * config/vms/xm-vms64.h: New file.
14195         * config/vms/xm-vms.h: Moved here from config/alpha.
14196         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
14197         Set.
14198         * config/vms/x-vms: Moved here from config/alpha.
14199         (version, VMS_EXTRA_PARTS): Moved to t-vms.
14200         (vms-ld.o, vms-cc.o): Removed.
14201         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
14202
14203 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14204
14205         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
14206         correct stack (obvious VMS fix).
14207
14208 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14209
14210         * dwarf2out.c (output_file_names): Output VMS style file name, size,
14211         date, version info if VMS_DEBUGGING_INFO defined.
14212         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
14213         size, date calculating code moved here.
14214
14215 2009-07-29  Paul Brook  <paul@codesourcery.com>
14216
14217         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
14218         do_push/do_pop.
14219
14220 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
14221
14222         PR target/40577
14223         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
14224         to DImode when generating insq_le insn.
14225
14226 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14227
14228         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
14229         New macro set for VMS_DEBUGGGING_INFO.
14230         (AT_string_form): Use it.
14231
14232 2009-07-28  DJ Delorie  <dj@redhat.com>
14233
14234         * config/mep/mep.c (vtext_section): New.
14235         (vftext_section): New.
14236         (ftext_section): New.
14237         (mep_select_section): Add support for functions.
14238         (mep_unique_section): Likewise.
14239         (mep_asm_init_sections): Likewise.
14240         (mep_encode_section_info): Remove it from here.
14241
14242         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
14243
14244 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
14245
14246         * tree.h (TREE_DEPRECATED): Document it is used for types too.
14247         (TYPE_VECTOR_OPAQUE): Use default_def_flag
14248
14249 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14250
14251         * dwarf2out.c (output_file_names): Test new macro
14252         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
14253         (add_comp_dir_attribute): Likewise.
14254
14255 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
14256
14257         * config/i386/mingw-w64.h (LINK_SPEC): Add
14258         separating space between commands.
14259
14260 2009-07-28  Jan Hubicka  <jh@suse.cz>
14261
14262         PR tree-optimization/40759
14263         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
14264         for renaming.
14265
14266 2009-07-27  DJ Delorie  <dj@redhat.com>
14267
14268         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
14269         types are dword-aligned.
14270         (mep_expand_va_start): Likewise.
14271
14272 2009-07-27  Olivier Hainque  <hainque@adacore.com>
14273             Douglas B Rupp  <rupp@gnat.com>
14274
14275         * convert.c (convert_to_pointer): Don't assume the target
14276         pointer type is POINTER_SIZE long. Fetch its precision instead.
14277
14278 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
14279
14280         * system.h (fopen): Undefine if macro.
14281
14282 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
14283
14284         * dwarf2out.c (output_cfi_p): Removed.
14285         (output_cfis): New function.
14286         (output_fde): New function, split from output_call_frame_info.
14287         (output_call_frame_info): Use it.
14288         (dwarf2out_switch_text_section): Use output_cfis.
14289
14290 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14291
14292         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
14293         TARGET_BI_ARCH is specified without enabling SJLJ.
14294         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
14295         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
14296
14297 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
14298
14299         * arm.md (negdi2): Use DImode if forcing a value into a register.
14300
14301 2009-07-26  Ira Rosen  <irar@il.ibm.com>
14302
14303         PR tree-optimization/40801
14304         * tree-vect-stmts.c (vectorizable_call): Get previous copy
14305         of vector operand from the previous copy of vector statement.
14306         Pass the correct definition type value to
14307         vect_get_vec_def_for_stmt_copy().
14308
14309 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14310
14311         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
14312         const char ** conversion.
14313
14314 2009-07-25 David Daney <ddaney@caviumnetworks.com>
14315
14316         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
14317         fancy_abort() if !ENABLE_ASSERT_CHECKING.
14318         (gcc_unreachable): Invoke __builtin_unreachable() if
14319         !ENABLE_ASSERT_CHECKING.
14320
14321 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14322
14323         PR rtl-optimization/40445
14324         * emit-rtl.c (next_nonnote_insn_bb): New function.
14325         * rtl.h (next_nonnote_insn_bb): Declare new function.
14326         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
14327         with no successors that is the successor of the ENTRY_BLOCK.
14328         Continue from the top after removing an empty fallthrough block.
14329         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
14330         of next_nonnote_insn.
14331
14332 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14333
14334         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
14335
14336 2009-07-25  Martin Jambor  <mjambor@suse.cz>
14337
14338         * c-common.c (c_common_attribute_table): New element for noclone.
14339         (handle_noclone_attribute): New function. Forward-declare.
14340         * tree-inline.c (tree_versionable_function_p): Check for noclone
14341         attribute.
14342         * doc/extend.texi (Labels as Values): Document need for noclone.
14343         (Function Attributes): Document noclone attribute.
14344
14345 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
14346
14347         PR rtl-optimization/34999
14348         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
14349         and dw_fde_switched_cold_to_hot fields.
14350         (output_cfi_p): New function.
14351         (output_call_frame_info): If fde->dw_fde_switched_sections,
14352         output 2 FDEs instead of one with corrupted header.
14353         (dwarf2out_do_cfi_startproc): New function.
14354         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
14355         and fde->dw_fde_switched_cold_to_hot.
14356         (dwarf2out_switch_text_section): Compute
14357         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
14358         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
14359         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
14360         Otherwise, compute fde->dw_fde_switch_cfi.
14361
14362 2009-07-24  Cary Coutant  <ccoutant@google.com>
14363
14364         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
14365
14366 2009-07-24  Cary Coutant  <ccoutant@google.com>
14367
14368         * cfghooks.c (split_block): Copy discriminator to new block.
14369         * tree-cfg.c (assign_discriminator): Check location of last
14370         instruction in block as well as first.
14371
14372 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
14373
14374         * config/i386/linux.c: Use fputs or putc instead of fprintf
14375         where appropriate.
14376         * config/i386/gas.h: Ditto.
14377         * config/i386/x86-64.h: Ditto.
14378         * config/i386/att.h: Ditto.
14379
14380 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14381
14382         * expmed.c (emit_store_flag): Use a recursive call to optimize the
14383         xor case.
14384
14385 2009-07-24  Martin Jambor  <mjambor@suse.cz>
14386
14387         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
14388         (ipa_push_func_to_list_1): Declare.
14389         (ipa_push_func_to_list): New function.
14390
14391         * ipa-prop.c (ipa_push_func_to_list_1): New function.
14392         (ipa_init_func_list): Call ipa_push_func_to_list_1.
14393         (ipa_push_func_to_list): Removed.
14394         (ipa_pop_func_from_list): Clear node_enqueued flag.
14395
14396 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14397
14398         * config/s390/s390.c (override_options): Default
14399         max-unrolled-insns to 100 for z10 tuning.
14400
14401 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
14402
14403         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
14404         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
14405         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
14406         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
14407         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
14408         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
14409         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
14410
14411 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14412
14413         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
14414         use default set in mingw32.h header.
14415         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
14416         64-bit /mingw/include path.
14417         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
14418         path.
14419
14420 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
14421
14422         PR rtl-optimization/40209
14423         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
14424
14425 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14426
14427         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
14428         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
14429         with the rest of string where appropriate.  Use fputs or putc
14430         instead of fprintf where appropriate.
14431
14432 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14433             Pat Haugen  <pthaugen@us.ibm.com>
14434             Revital Eres <ERES@il.ibm.com>
14435
14436         * config/rs6000/vector.md: New file.  Move most of the vector
14437         expander support here from altivec.md to allow for the VSX vector
14438         unit in the future.  Add support for secondary_reload patterns.
14439         Rewrite the patterns for vector comparison, and vector comparison
14440         predicate instructions so that the RTL expresses the desired
14441         behavior, instead of using unspec.
14442
14443         * config/rs6000/constraints.md ("f" constraint): Use
14444         rs6000_constraints to hold the precalculated register class.
14445         ("d" constraint): Ditto.
14446         ("wd" constraint): New constraint for VSX.
14447         ("wf" constraint): Ditto.
14448         ("ws" constraint): Ditto.
14449         ("wa" constraint): Ditto.
14450         ("wZ" constraint): Ditto.
14451         ("j" constraint): Ditto.
14452
14453         * config/rs6000/predicates.md (vsx_register_operand): New
14454         predicate for VSX.
14455         (vfloat_operand): New predicate for vector.md.
14456         (vint_operand): Ditto.
14457         (vlogical_operand): Ditto.
14458         (easy_fp_constant): If VSX, 0.0 is an easy constant.
14459         (easy_vector_constant): Add VSX support.
14460         (altivec_indexed_or_indirect_operand): New predicate for
14461         recognizing Altivec style memory references with AND -16.
14462
14463         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
14464         for vector secondary reload support.
14465         (rs6000_vector_reg_class): Delete, replacing it with
14466         rs6000_constraints.
14467         (rs6000_vsx_reg_class): Ditto.
14468         (rs6000_constraints): New array to hold the register classes of
14469         each of the register constraints that can vary at runtime.
14470         (builtin_mode_to_type): New static array for builtin function type
14471         creation.
14472         (builtin_hash_table): New static hash table for builtin function
14473         type creation.
14474         (TARGET_SECONDARY_RELOAD): Define target hook.
14475         (TARGET_IRA_COVER_CLASSES): Ditto.
14476         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
14477         registers are 128 bits if VSX memory reference instructions are used.
14478         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
14479         unit is being used.
14480         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
14481         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
14482         Print several of the scheduling related parameters.
14483         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
14484         rs6000_constraints instead of rs6000_vector_reg_class.  Move
14485         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
14486         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
14487         Altivec.  Add VSX support.  Setup for secondary reload support on
14488         Altivec/VSX registers.
14489         (rs6000_override_options): Make power7 set the scheduling groups
14490         like the power5.  Add support for new debug switches to override
14491         the scheduling defaults.  Temporarily disable -mcpu=power7 from
14492         setting -mvsx.  Add support for debug switches -malways-hint,
14493         -msched-groups, and -malign-branch-targets.
14494         (rs6000_buitlin_conversion): Add support for returning unsigned
14495         vector conversion functions to fix regressions due to stricter
14496         type checking.
14497         (rs6000_builtin_mul_widen_even): Ditto.
14498         (rs6000_builtin_mul_widen_odd): Ditto.
14499         (rs6000_builtin_vec_perm): Ditto.
14500         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
14501         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
14502         to zero a register.
14503         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
14504         generated upstream.
14505         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
14506         VSX types for bit operations.  Changes to accomidate vector.md.
14507         (bdesc_2arg): Ditto.
14508         (bdesc_1arg): Ditto.
14509         (struct builtin_description_predicates): Rewrite predicate
14510         handling so that RTL describes the operation, instead of passing
14511         the instruction to be used as a string argument.
14512         (bdesc_altivec_preds): Ditto.
14513         (altivec_expand_predicate_builtin): Ditto.
14514         (altivec_expand_builtin): Ditto.
14515         (rs6000_expand_ternop_builtin): Use a switch instead of an if
14516         statement for vsldoi support.
14517         (altivec_expand_ld_builtin): Change to use new names from vector.md.
14518         (altivec_expand_st_builtin): Ditto.
14519         (paired_expand_builtin): Whitespace changes.
14520         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
14521         builtin_mode_to_type table for secondary reload.  Call
14522         builtin_function_type to build random builtin functions.
14523         (altivec_init_builtins): Change to use builtin_function_type to
14524         create builtin function types dynamically as we need them.
14525         (builtin_hash_function): New support for hashing the tree types
14526         for builtin function as we need it, rather than trying to build
14527         all of the trees that we need.  Add initial preliminary VSX support.
14528         (builtin_function_type): Ditto.
14529         (builtin_function_eq): Ditto.
14530         (builtin_hash_struct): Ditto.
14531         (rs6000_init_builtins): Ditto.
14532         (rs6000_common_init_builtins): Ditto.
14533         (altivec_init_builtins): Ditto.
14534         (rs6000_common_init_builtins): Ditto.
14535         (enum reload_reg_type): New enum for simplifing reg classes.
14536         (rs6000_reload_register_type): Simplify register classes into GPR,
14537         Vector, and other registers.  Altivec and VSX addresses in reload.
14538         (rs6000_secondary_reload_inner): Ditto.
14539         (rs6000_ira_cover_classes): New target hook, that returns the
14540         appropriate cover classes, based on -mvsx being used or not.
14541         (rs6000_secondary_reload_class): Add VSX support.
14542         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
14543         (get_vsel_insn): Ditto.
14544         (rs6000_emit_vector_compare): Rewrite vector conditional support
14545         so that where we can, we use RTL operators, instead of blindly use
14546         UNSPEC.
14547         (rs6000_emit_vector_select): Ditto.
14548         (rs6000_emit_vector_cond_expr): Ditto.
14549         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
14550         (create_TOC_reference): Add -mdebug=addr support.
14551         (emit_frame_save): VSX loads/stores need register indexed addressing.
14552
14553         * config/rs6000/rs6000.md: Include vector.md.
14554
14555         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
14556
14557         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14558         support for V2DI, V2DF in logical, permute, select operations.
14559
14560         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
14561         switch for vsx/power7.
14562         (-mvsx-scalar-memory): Ditto.
14563         (-mvsx-align-128): Ditto.
14564         (-mallow-movmisalign): Ditto.
14565         (-mallow-df-permute): Ditto.
14566         (-msched-groups): Ditto.
14567         (-malways-hint): Ditto.
14568         (-malign-branch-targets): Ditto.
14569
14570         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
14571         hook instead.
14572         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
14573         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
14574         (rs6000_vector_reg_class): Delete.
14575         (rs6000_vsx_reg_class): Ditto.
14576         (enum rs6000_reg_class_enum): New enum for the constraints that
14577         vary based on target switches.
14578         (rs6000_constraints): New array to hold the register class for all
14579         of the register constraints that vary based on the switches used.
14580         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
14581         (enum rs6000_builtins): Add unsigned varients for the builtin
14582         declarations returned by target hooks for expanding multiplies,
14583         select, and permute operations.  Add VSX builtins.
14584         (enum rs6000_builtin_type_index): Add entries for VSX.
14585         (V2DI_type_node): Ditto.
14586         (V2DF_type_node): Ditto.
14587         (unsigned_V2DI_type_node): Ditto.
14588         (bool_long_type_node): Ditto.
14589         (intDI_type_internal_node): Ditto.
14590         (uintDI_type_internal_node): Ditto.
14591         (double_type_internal_node): Ditto.
14592
14593         * config/rs6000/altivec.md (whole file): Move all expanders to
14594         vector.md from altivec.md.  Rename insn matching functions to be
14595         altivec_foo.
14596         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
14597         (altivec_vcmp*): Ditto.
14598         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
14599         (VM): New iterator for moves that includes the VSX types.
14600         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
14601         (altivec_vperm_<mode>_uns): New, for unsigned types.
14602         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
14603         (altivec_eq<mode>): Ditto.
14604         (altivec_gt<mode>): Ditto.
14605         (altivec_gtu<mode>): Ditto.
14606         (altivec_eqv4sf): Ditto.
14607         (altivec_gev4sf): Ditto.
14608         (altivec_gtv4sf): Ditto.
14609         (altivec_vcmpbfp_p): Ditto.
14610
14611 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
14612
14613         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
14614         unsigned HWI.
14615
14616 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14617
14618         PR target/40832
14619         * config/i386/i386.c (output_387_ffreep): Rewrite to use
14620         ASM_SHORT instead of .word.
14621         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
14622         instead of .word in asm template.
14623
14624 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
14625
14626         PR target/37488
14627         * ira-lives.c (bb_has_abnormal_call_pred): New function.
14628         (process_bb_node_lives): Use it.
14629
14630         * ira.c (setup_cover_and_important_classes): Don't setup
14631         ira_important_class_nums.  Add cover classes to the end of
14632         important classes.
14633         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
14634         New.
14635         (find_reg_class_closure): Use reorder_important_classes.
14636
14637         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
14638
14639         * config/i386/i386.c (i386_ira_cover_classes): New function.
14640         (TARGET_IRA_COVER_CLASSES): Redefine.
14641
14642         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
14643         importance of order of cover classes in the array.
14644
14645 2009-07-22  Diego Novillo  <dnovillo@google.com>
14646
14647         * tree-pass.h (TDF_EH): Define.
14648         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
14649         contains TDF_EH, print the EH region number holding GS.
14650         * tree-dump.c (dump_options): Add "eh".
14651         * doc/invoke.texi: Document it.
14652
14653 2009-07-22  Doug Kwan  <dougkwan@google.com>
14654
14655         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
14656
14657 2009-07-22  Michael Matz  <matz@suse.de>
14658
14659         PR tree-optimization/35229
14660         PR tree-optimization/39300
14661
14662         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
14663         (inhibit_phi_insertion): New function.
14664         (insert_into_preds_of_block): Call it for REFERENCEs.
14665         (init_pre): Initialize and finalize scalar evolutions.
14666         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
14667
14668 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
14669
14670         * config/i386/predicates.md (zero_extended_scalar_load_operand):
14671         Use CONST_VECTOR_NUNITS to determine number of elements.
14672
14673 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
14674
14675         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
14676         (U, W): Constraints are now deprecated and will be removed if we
14677         run out of letters.
14678         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
14679         the file.
14680         ("prefetch"): Add the stcmh instruction for prefetching.
14681         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
14682         changes.
14683         (s390_short_displacement): Return always true if compiling for
14684         machines not providing the long displacement facility.
14685         (s390_mem_constraint): Support the new constraint letter Z.
14686         (s390_check_qrst_address): New function.
14687
14688 2009-07-21  DJ Delorie  <dj@redhat.com>
14689
14690         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
14691         alone too.
14692
14693 2009-07-21  Jason Merrill  <jason@redhat.com>
14694
14695         * c-common.c (max_tinst_depth): Increase default to 1024.
14696
14697 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14698
14699         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
14700         (vec_unpacku_float_lo_v4si): Ditto.
14701
14702 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14703
14704         PR target/40811
14705         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
14706         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
14707         (builtin_description): Add __builtin_ia32_cvtudq2ps.
14708         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
14709
14710 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
14711
14712         PR tree-optimization/40813
14713         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
14714         it.
14715
14716 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
14717
14718         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
14719         with a NOP_EXPR if needed.
14720
14721 2009-07-21  Paul Brook <paul@codesourcery.com>
14722
14723         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
14724         Terminate debug dump with newline.
14725
14726 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14727
14728         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
14729         Cast "1" to unsigned HOST_WIDE_INT.
14730         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
14731         deposit length to the maximum length - lsb.  Extend length if
14732         HOST_BITS_PER_WIDE_INT is 32.
14733
14734 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
14735
14736         * cgraph.h (constant_pool_htab): New function.
14737         (constant_descriptor_tree): Move from varasm.c.
14738         * varasm.c (constant_pool_htab): New function.
14739         (constant_descriptor_tree): Move to cgraph.h.
14740
14741 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
14742
14743         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
14744
14745 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
14746
14747         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
14748         $(VARRAY_H).
14749
14750 2009-07-20  Xinliang David Li  <davidxl@google.com>
14751
14752         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
14753
14754 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14755
14756         * config/mips/mips.md (move_type): Add arith.
14757         (type): Handle arith.
14758         (zero_extendsidi2): Rename this into ...
14759         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
14760         (zero_extendsidi2): New expander.
14761         (*zero_extendsidi2_dext): New pattern.
14762
14763 2009-07-20  Nick Clifton  <nickc@redhat.com>
14764
14765         * config.gcc (mips64-*-*): Add definition of tm_defines in order
14766         to set MIPS_ABI_DEFAULT.
14767         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
14768
14769 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
14770
14771         * tree-object-size.c (addr_object_size): Handle unions with
14772         array in it as last field of structs in __bos (, 1) as __bos (, 0).
14773
14774         PR tree-optimization/40792
14775         * tree.c (build_function_type_skip_args): Remove bogus assert.
14776
14777 2009-07-20  Jan Hubicka  <jh@suse.cz>
14778             Martin Jambor  <mjambor@suse.cz>
14779
14780         * cgraph.h (combined_args_to_skip): New field.
14781         * cgraph.c (cgraph_create_virtual_clone): Properly handle
14782         combined_args_to_skip and args_to_skip.
14783         * tree-inline.c (update_clone_info): New function.
14784         (tree_function_versioning): Call update_clone_info.
14785         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
14786         functions.
14787         (cgraph_materialize_all_clones): More extensive dumping, working
14788         with combined_args_to_skip rather than args_to_skip.
14789
14790 2009-07-20  Ira Rosen  <irar@il.ibm.com>
14791
14792         * tree-vectorizer.h (vectorizable_condition): Add parameters.
14793         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
14794         (get_initial_def_for_reduction): Likewise.
14795         (vectorizable_reduction): Skip the check of first operand in case
14796         of COND_EXPR. Add check that it is outer loop vectorization if
14797         nested cycle was detected. Call vectorizable_condition() for
14798         COND_EXPR. If reduction epilogue cannot be created do not fail for
14799         nested cycles (if it is not double reduction). Assert that there
14800         is only one type in the loop in case of COND_EXPR. Call
14801         vectorizable_condition() to vectorize COND_EXPR.
14802         * tree-vect-stmts.c (vectorizable_condition): Update comment.
14803         Add parameters. Allow nested cycles if called from
14804         vectorizable_reduction(). Use reduction vector variable if provided.
14805         (vect_analyze_stmt): Call vectorizable_reduction() before
14806         vectorizable_condition().
14807         (vect_transform_stmt): Update call to vectorizable_condition().
14808
14809 2009-07-20  Christian Bruel  <christian.bruel@st.com>
14810
14811         * config/sh/sh.opt (-mfmovd): Resurrect and document.
14812         * doc/invoke.texi (-mfmovd): Likewise.
14813         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
14814
14815 2009-07-20  Jan Hubicka  <jh@suse.cz>
14816
14817         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
14818         when handling SSA name.
14819
14820 2009-07-19  Jan Hubicka  <jh@suse.cz>
14821
14822         PR tree-optimization/40676
14823         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
14824         virtual PHIs in empty BBs.
14825
14826 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14827
14828         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
14829         re-expanded the compound use gen_lowpart instead to convert to the
14830         desired mode.
14831
14832 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14833
14834         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
14835         OUTER_CONST arguments.
14836         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
14837         the new wider mode will be masked off.
14838         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
14839
14840 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14841
14842         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
14843         high-order bits are zero.
14844
14845 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14846
14847         * combine.c (simplify_shift_const_1): Split code to determine
14848         shift_mode into ...
14849         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
14850         new bits shifted in are identical to the old sign bit.
14851
14852 2009-07-18  Richard Guenther  <rguenther@suse.de>
14853
14854         PR c/40787
14855         * gimplify.c (gimplify_call_expr): Reject code using results from
14856         functions returning void.
14857
14858 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
14859
14860         * doc/md.texi: Document the new PowerPC "es" constraint.
14861         Document that "m" can include automodified addresses on this target,
14862         and explain how %U must be used.  Extend the "Q" and "Z" documentation
14863         to suggest "es" as well as "m".
14864         * config/rs6000/constraints.md (es): New memory constraint.
14865         (Q, Z): Update strings to match new documentation.
14866
14867 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
14868
14869         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
14870         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
14871         * config/rs6000/predicates.md (volatile_mem_operand): Use
14872         offsettable_nonstrict_memref_p.
14873         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
14874         (*floatunssidf2_internal): Likewise.
14875         (*fix_truncdfsi2_internal): Likewise.
14876         (*fix_trunctfsi2_internal): Likewise.
14877
14878 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
14879
14880         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
14881         atmega32u2 devices.
14882         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14883
14884 2009-07-17  Richard Guenther  <rguenther@suse.de>
14885
14886         PR c/40401
14887         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
14888         (pass_warn_unused_result): Likewise.
14889         (TODO_set_props): Remove.
14890         * omp-low.c (diagnose_omp_structured_block_errors): Change to
14891         run as a pass.
14892         (pass_diagnose_omp_blocks): Define.
14893         * c-decl.c (pop_file_scope): Do not finalize the CU here.
14894         (c_gimple_diagnostics_recursively): Remove.
14895         (finish_function): Do not call it.
14896         (c_write_global_declarations): Continue after errors.
14897         Finalize the CU here.
14898         * c-gimplify.c (c_genericize): Do not gimplify here.
14899         * c-common.c (c_warn_unused_result): Move ...
14900         * tree-cfg.c (do_warn_unused_result): ... here.
14901         (run_warn_unused_result): New function.
14902         (gate_warn_unused_result): New function.
14903         (pass_warn_unused_result): New pass.
14904         * c-common.h (c_warn_unused_result): Remove.
14905         * flags.h (flag_warn_unused_result): Declare.
14906         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
14907         * opts.c (flag_warn_unused_result): Initialize to false.
14908         * toplev.c (compile_file): Add comment.
14909         * omp-low.c (create_omp_child_function): Do not register
14910         the function with the frontend.
14911         (diagnose_omp_structured_block_errors): Prepare to be
14912         called as optimization pass.
14913         (gate_diagnose_omp_blocks): New function.
14914         (pass_diagnose_omp_blocks): New pass.
14915         * cgraph.h (cgraph_optimize): Remove.
14916         (cgraph_analyze_function): Likewise.
14917         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
14918         * cgraphunit.c (cgraph_lower_function): Lower nested functions
14919         before their parents here.
14920         (cgraph_finalize_function): Not here.
14921         (cgraph_analyze_function): Gimplify functions here.
14922         (cgraph_finalize_compilation_unit): Continue after errors.
14923         Optimize the callgraph from here.
14924         (cgraph_optimize): Make static.
14925         * langhooks.c (write_global_declarations): Finalize the CU.
14926         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
14927         (gimplify_function_tree): Assert we gimplify only once.
14928         Set PROP_gimple_any property.
14929         * tree-nested.c (gimplify_all_functions): New function.
14930         (lower_nested_functions): Gimplify all nested functions.
14931         * gimple.h (diagnose_omp_structured_block_errors): Remove.
14932         * passes.c (init_optimization_passes): Add pass_warn_unused_result
14933         and pass_diagnose_omp_blocks after gimplification.  Do not
14934         set TODO_set_props on all_lowering_passes.
14935         (execute_one_pass): Do not handle TODO_set_props.
14936         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
14937         (gimplify.o): Add tree-pass.h dependency.
14938         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
14939         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
14940         (unsave_r): Likewise.
14941         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
14942         temporary variable.
14943
14944 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
14945
14946         * doc/service.texi (Service): Restore previously removed link,
14947         which isn't broken after all.
14948
14949 2009-07-17  Richard Guenther  <rguenther@suse.de>
14950
14951         PR tree-optimization/40321
14952         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
14953         PHI nodes to the maximal set.
14954         (make_values_for_phi): Add PHI arguments to the maximal set.
14955         (execute_pre): Dump PHI_GEN and the maximal set.
14956
14957 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
14958
14959         PR c++/40780
14960         * gimplify.c (gimplify_conversion): Don't change non-conversions into
14961         VIEW_CONVERT_EXPR.
14962
14963 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
14964
14965         * doc/extend.texi (Nested Functions): Replace broken link with
14966         textual reference.
14967         * doc/service.texi (Service): Remove broken link.
14968
14969 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
14970
14971         PR bootstrap/40781
14972         * builtins.c (expand_builtin_memcmp): Use loc instead of
14973         EXPR_LOCATION (exp).
14974         (expand_builtin_strncmp): Likewise.
14975
14976 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
14977             Manuel López-Ibáñez  <manu@gcc.gnu.org>
14978
14979         PR 40435
14980         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
14981         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
14982         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
14983         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
14984         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
14985         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
14986         tree-inline.c, c-common.c, c-common.h, gimple.c,
14987         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
14988         convert.c: Add location argument to fold_{unary,binary,ternary},
14989         fold_build[123], build_call_expr, build_size_arg,
14990         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
14991         fold_build1_initializer, fold_build2_initializer,
14992         fold_build3_initializer, fold_build_call_array,
14993         fold_build_call_array_initializer, fold_single_bit_test,
14994         omit_one_operand, omit_two_operands, invert_truthvalue,
14995         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
14996         combine_comparisons, fold_builtin_*, fold_call_expr,
14997         build_range_check, maybe_fold_offset_to_address, round_up,
14998         round_down.
14999
15000 2009-07-16  Jason Merrill  <jason@redhat.com>
15001
15002         PR libstdc++/37907
15003         * c-common.c (c_common_reswords): Add __is_standard_layout
15004         and __is_trivial.
15005         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
15006         * doc/implement-cxx.texi: New.
15007         * doc/gcc.texi: Include it.
15008
15009 2009-07-16  DJ Delorie  <dj@redhat.com>
15010
15011         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
15012         compares that may be indirectly affected by previous instructions.
15013
15014 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15015
15016         * builtins.c (do_mpc_arg2): New.
15017         (fold_builtin_2): Fold builtin cpow.
15018         * real.h (HAVE_mpc_pow): New.
15019
15020 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
15021
15022         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
15023         comparison to skip unprofitable schedule
15024
15025 2009-07-16  Simon Baldwin  <simonb@google.com>
15026
15027         * gcc.c (option_map): New flag -no-canonical-prefixes.
15028         * (display_help): Print help text for new flag.
15029         * (process_command): Move options translation and language specifics
15030         and handle new flag early.  Use it to set a function pointer to a
15031         prefix builder.  Replace make_relative_prefix calls with calls to
15032         the function pointed to.  Ignore new flag in regular options handling.
15033         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
15034
15035 2009-07-15  DJ Delorie  <dj@redhat.com>
15036
15037         * config/mep/mep.md (sibcall_internal): Change register to avoid
15038         argument registers.
15039         (sibcall_value_internal): Likewise.
15040
15041 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15042
15043         PR rtl-optimization/40710
15044         * resource.c (mark_target_live_regs): Reset DF problem to LR.
15045
15046 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
15047
15048         * config/mips/mips.md (*extenddi_truncate<mode>,
15049         *extendsi_truncate<mode>): Change type attribute to move_type
15050         with shift_shift.  Split out code handling exts from here ...
15051         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
15052         pattern.
15053         (*extendhi_truncateqi): Change type attribute to move_type with
15054         shift_shift.  Split out code handling exts from here ...
15055         (*extendhi_truncateqi_exts): ... to this new pattern.
15056
15057 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
15058
15059         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
15060         instead of "and" with inverted sign bit mask value.  Use
15061         "nonimmediate_operand" for operand 1 and operand 2 predicate.
15062         Allocate registers only for operand 4 and operand 5.
15063
15064 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
15065
15066         PR middle-end/40747
15067         * fold-const.c (fold_cond_expr_with_comparison): When folding
15068         < and <= to MIN, make sure the MIN uses the same type as the
15069         comparison's operands.
15070
15071 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
15072
15073         * arm.md (ior_xor): New code iterator.
15074         (split for ior/xor with shift and zero-extend): New split pattern.
15075         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
15076
15077 2009-07-15  Richard Guenther  <rguenther@suse.de>
15078
15079         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
15080         offset member.
15081
15082 2009-07-15  Richard Guenther  <rguenther@suse.de>
15083
15084         PR middle-end/40753
15085         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
15086
15087 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15088
15089         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
15090         handle 2.6.30 kernel.
15091
15092 2009-07-15  DJ Delorie  <dj@redhat.com>
15093
15094         * config/mep/mep.md (sibcall_internal): Change register to allow
15095         for 24-bit addresses.
15096         (sibcall_value_internal): Likewise.
15097
15098 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15099
15100         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
15101         that are enabled/disabled by the flags introduced by a previous patch.
15102
15103 2009-07-14  DJ Delorie  <dj@redhat.com>
15104
15105         * config/mep/mep.md (sibcall_internal): Include non-toggling
15106         non-jmp case.
15107         (sibcall_value_internal): Likewise.
15108
15109 2009-07-14  Taras Glek  <tglek@mozilla.com>
15110             Rafael Espindola  <espindola@google.com>
15111
15112         * doc/sourcebuild.texi: Document install-plugin target.
15113         * configure.ac: Added install-plugin target to language makefiles.
15114         * configure: Regenerate.
15115         * Makefile.in (install-plugin): Install more headers,
15116         depend on lang.install-plugin.
15117
15118 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15119
15120         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
15121         translation.
15122
15123 2009-07-14  DJ Delorie  <dj@redhat.com>
15124
15125         * config/mep/mep.c (mep_vliw_jmp_match): New function.
15126         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
15127         * config/mep/mep.md (sibcall_internal): Change test from
15128         mep_vliw_mode_match to mep_vliw_jmp_match.
15129         (sibcall_value_internal): Likewise.
15130
15131 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
15132
15133         * config/i386/sse.md (copysign<mode>3): New expander.
15134         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
15135         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
15136         Use ix86_build_const_vector.
15137         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
15138         IX86_BUILTIN_CPYSGNPD.
15139         (builtin_description): Add __builtin_ia32_copysignps and
15140         __builtin_ia32_copysignpd.
15141         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
15142         and BUILT_IN_COPYSIGNF.
15143
15144 2009-07-13  Jason Merrill  <jason@redhat.com>
15145
15146         * builtins.c (can_trust_pointer_alignment): New fn.
15147         (get_pointer_alignment): Factor it out from here.
15148         * tree.h: Declare it.
15149
15150 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
15151
15152         * config/rs6000/predicates.md (offsettable_mem_operand): Test
15153         RTX_AUTOINC class.
15154
15155 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
15156
15157         PR debug/40705
15158         PR c++/403057
15159         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
15160
15161 2009-07-14  Richard Guenther  <rguenther@suse.de>
15162             Andrey Belevantsev <abel@ispras.ru>
15163
15164         PR middle-end/40745
15165         * cfgexpand.c (partition_stack_vars): Do not bother to update
15166         alias information when not optimizing.
15167
15168 2009-07-14  Richard Guenther  <rguenther@suse.de>
15169             Andrey Belevantsev <abel@ispras.ru>
15170
15171         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
15172         (pt_solution_set): Likewise.
15173         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
15174         * tree-ssa-structalias.c (pt_solution_set): New function.
15175         * final.c (rest_of_clean_state): Free SSA data structures.
15176         * print-rtl.c (print_decl_name): Remove.
15177         (print_mem_expr): Implement in terms of print_generic_expr.
15178         * alias.c (ao_ref_from_mem): New function.
15179         (rtx_refs_may_alias_p): Likewise.
15180         (true_dependence): Query alias-export info.
15181         (canon_true_dependence): Likewise.
15182         (write_dependence_p): Likewise.
15183         * tree-dfa.c (get_ref_base_and_extent): For void types leave
15184         size unknown.
15185         * emit-rtl.c (component_ref_for_mem_expr): Remove.
15186         (mem_expr_equal_p): Use operand_equal_p.
15187         (set_mem_attributes_minus_bitpos): Do not use
15188         component_ref_for_mem_expr.
15189         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
15190         (update_alias_info_with_stack_vars): Likewise.
15191         (partition_stack_vars): Call update_alias_info_with_stack_vars.
15192         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
15193         explicitly nor clear stmt operands.
15194         Free the decl-to-pointer map.
15195         * tree-optimize.c (execute_free_datastructures): Do not free
15196         SSA data structures here.
15197         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
15198         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
15199         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
15200         dependencies.
15201         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
15202
15203 2009-07-13  DJ Delorie  <dj@redhat.com>
15204
15205         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
15206         unrolling at the right iteration count.
15207
15208         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
15209         calculations.
15210
15211 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15212
15213         * haifa-sched.c (rank_for_schedule): Introduced flags to
15214         enable/disable individual scheduling heuristics.
15215         * common.opt: Introduced flags to enable/disable individual
15216         heuristics in the scheduler.
15217         * doc/invoke.texi: Introduced flags to enable/disable individual
15218         heuristics in the scheduler.
15219
15220 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
15221
15222         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
15223         config/i386/mingw-tls.c.
15224         * config/i386/mingw-tls.c: Removed.
15225
15226 2009-07-13  Ira Rosen  <irar@il.ibm.com>
15227
15228         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
15229         checks access only relevant statements.
15230         (vectorizable_reduction): Likewise.
15231
15232 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
15233
15234         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
15235         just for 32-bit case.
15236
15237 2009-07-12  Jan Hubicka  <jh@suse.cz>
15238
15239         PR tree-optimization/40585
15240         * except.c (expand_resx_expr): When there already is resume
15241         instruction, produce linked list.
15242         (build_post_landing_pads): Assert that resume is empty.
15243         (connect_post_landing_pads): Handle resume lists.
15244         (dump_eh_tree): Dump resume list.
15245
15246 2009-07-12  Ira Rosen  <irar@il.ibm.com>
15247
15248         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15249         with additional argument.
15250         * tree-vectorizer.h (enum vect_def_type): Add
15251         vect_double_reduction_def.
15252         (vect_is_simple_reduction): Add argument.
15253         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
15254         indentation.
15255         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
15256         vect_is_simple_reduction with additional argument.
15257         (vect_analyze_loop_operations): Handle exit phi nodes in case of
15258         double reduction.
15259         (reduction_code_for_scalar_code): Handle additional codes by
15260         returning ERROR_MARK for them. Fix comment and indentation.
15261         (vect_is_simple_reduction): Fix comment, add argument to specify
15262         double reduction. Detect double reduction.
15263         (get_initial_def_for_induction): Fix indentation.
15264         (get_initial_def_for_reduction): Fix comment and indentation.
15265         Handle double reduction. Create initial definitions that do not
15266         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
15267         (vect_create_epilog_for_reduction): Fix comment, add argument to
15268         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
15269         epilogue result extraction. Create double reduction phi node and
15270         replace relevant uses.
15271         (vectorizable_reduction): Call vect_is_simple_reduction with
15272         additional argument. Fix indentation. Update epilogue code treatment
15273         according to the changes in reduction_code_for_scalar_code. Check
15274         for double reduction. Call vect_create_epilog_for_reduction with
15275         additional argument.
15276         * tree-vect-stmts.c (process_use): Handle double reduction, update
15277         documentation.
15278         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
15279         (vect_get_vec_def_for_operand): Likewise.
15280
15281 2009-07-12  Danny Smith  <dansmister@gmail.com>
15282
15283         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
15284         dllexport if !TREE_PUBLIC.
15285         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
15286
15287 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
15288
15289         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
15290         (avr_extra_arch_macro) Remove declatation.
15291         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
15292         (avr_extra_arch_macro) Declare as static.
15293         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
15294
15295 2009-07-11  Jan Hubicka  <jh@suse.cz>
15296
15297         PR middle-end/48388
15298         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
15299
15300 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
15301
15302         PR debug/40713
15303         * dwarf2out.c (dw_fde_struct): Add in_std_section and
15304         cold_in_std_section bits.
15305         (dwarf2out_begin_prologue): Initialize them.
15306         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
15307         if already covered by text_section or cold_text_section range.
15308
15309         PR rtl-optimization/40667
15310         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
15311         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
15312         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
15313         * config/i386/i386.c (ix86_minimum_alignment): New function.
15314         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
15315         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
15316         * emit-rtl.c (gen_reg_rtx): Likewise.
15317         * function.c (assign_parms): Likewise.  If nominal_type needs
15318         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
15319         rather than passed_type's alignment.
15320
15321         PR target/40668
15322         * function.c (assign_parm_setup_stack): Adjust
15323         MEM_OFFSET (data->stack_parm) if promoted_mode is different
15324         from nominal_mode on big endian.
15325
15326 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
15327
15328         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
15329
15330 2009-07-10  DJ Delorie  <dj@redhat.com>
15331
15332         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
15333
15334 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
15335
15336         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
15337         attribute.
15338         (thumb2_cbnz): Likewise.
15339
15340 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
15341
15342         PR target/39079
15343         * config.gcc (supported_defaults): Add synci.
15344         (with_synci): Add validation.
15345         (all_defaults): Add synci.
15346         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
15347         ISA_HAS_SYNCI.
15348         (synci): Same.
15349         * config/mips/mips.opt (msynci): New option.
15350         * config/mips/mips.c (mips_override_options): Warn on use of
15351         -msynci for targets that do now support it.
15352         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15353         msynci.
15354         * gcc/doc/invoke.texi (-msynci): Document the new option.
15355         * doc/install.texi (--with-synci): Document the new option.
15356
15357 2009-07-10  Richard Guenther  <rguenther@suse.de>
15358
15359         PR tree-optimization/40496
15360         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
15361         the PHI result with a compatible type.
15362
15363 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15364
15365         PR 25509
15366         PR 40614
15367         * c.opt (Wunused-result): New.
15368         * doc/invoke.texi: Document it.
15369         * c-common.c (c_warn_unused_result): Use it.
15370
15371 2009-07-09  DJ Delorie  <dj@redhat.com>
15372
15373         * targhooks.c (default_target_can_inline_p): Rename from
15374         default_target_option_can_inline_p.
15375         * targhooks.h (default_target_can_inline_p): Likewise.
15376         * target-def.h (TARGET_CAN_INLINE_P): Rename from
15377         TARGET_OPTION_CAN_INLINE_P.
15378         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
15379         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
15380         (mep_target_can_inline_p): Rename from
15381         mep_target_option_can_inline_p.
15382
15383         PR target/40626
15384         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
15385         registers used to pass vectors.
15386
15387         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
15388
15389 2009-07-09  Tom Tromey  <tromey@redhat.com>
15390
15391         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
15392         * config/mmix/mmix.c: Include dwarf2.h.
15393         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
15394         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
15395         * config/sh/sh.c: Include dwarf2.h.
15396         * config/i386/i386.c: Include dwarf2.h.
15397         * Makefile.in (DWARF2_H): Remove 'elf'.
15398         * except.c: Include dwarf2.h.
15399         * unwind-dw2.c: Include dwarf2.h.
15400         * dwarf2out.c: Include dwarf2.h.
15401         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
15402         * unwind-dw2-fde.c: Include dwarf2.h.
15403         * dwarf2asm.c: Include dwarf2.h.
15404
15405 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15406
15407         * haifa-sched.c (insn_finishes_cycle_p): New static function.
15408         (max_issue): Use it.
15409         * sched-int.h (struct sched_info: insn_finishes_block_p): New
15410         scheduler hook.
15411         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
15412         (region_sched_info): Update.
15413         * sched-ebb.c (ebb_sched_info): Update.
15414         * modulo-sched.c (sms_sched_info): Update.
15415         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
15416
15417 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15418
15419         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
15420
15421 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
15422
15423         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
15424
15425 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
15426
15427         PR middle-end/40692
15428         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
15429         arg1 with arg01 if arg1 is already INTEGER_CST.
15430
15431 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15432
15433         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
15434         Transform (and (truncate)) into (truncate (and)).
15435
15436 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15437
15438         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
15439         creating LHS paradoxical subregs.  Fix surrounding returns to
15440         use NULL_RTX rather than 0.
15441
15442 2009-07-08  DJ Delorie  <dj@redhat.com>
15443
15444         * config/mep/mep.c (mep_option_can_inline_p): New.
15445         (TARGET_OPTION_CAN_INLINE_P): Define.
15446
15447 2009-07-08  Mark Wielaard  <mjw@redhat.com>
15448
15449         PR debug/40659
15450         * dwarf2out.c (add_data_member_location_attribute): When we have
15451         only a constant offset don't emit a new location description using
15452         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
15453         dwarf_version > 2.
15454
15455 2009-07-08  Richard Henderson  <rth@redhat.com>
15456
15457         PR target/38900
15458         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
15459         (enum reg_class): Add CLOBBERED_REGS.
15460         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
15461         * config/i386/i386.c (ix86_conditional_register_usage): Moved
15462         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
15463         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
15464         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
15465         force 64-bit sibcalls into R11.
15466         * config/i386/constraints.md (U): New constraint.
15467         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
15468         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
15469         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
15470
15471 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
15472
15473         * basic-block.h (dump_regset, debug_regset): Remove duplicate
15474         prototypes.
15475         * c-objc-common.h (c_initialize_diagnostics): Ditto.
15476         * ebitmap.h (dump_ebitmap): Ditto.
15477         * optabs.h (optab_libfunc): Ditto.
15478         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
15479         * tree-flow.h (vect_can_force_dr_alignment_p,
15480         get_vectype_for_scalar_type): Ditto.
15481         (vectorize_loops): Move prototype to ...
15482         * tree-vectorizer.h: ... here. Also, adjust comment.
15483         (vect_set_verbosity_level): Remove duplicate prototype.
15484         * tree-ssa-loop.c: Include tree-vectorizer.h.
15485         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
15486
15487 2009-07-08  Nick Clifton  <nickc@redhat.com>
15488
15489         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
15490         forward slash.
15491
15492 2009-07-08  DJ Delorie  <dj@redhat.com>
15493
15494         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
15495         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
15496         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
15497         written to.
15498         * config/mep/intrinsics.md: Regenerated.
15499         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
15500         registers when asm() or calls are detected.
15501
15502 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15503
15504         PR c++/31246
15505         * gimplify.c (gimplify_expr): Propagate no_warning flag when
15506         gimplifying.
15507         * gimple (gimple_build_call_from_tree): Likewise.
15508         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
15509         no_warning flag before warning.
15510
15511 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15512
15513         * tree.c (set_expr_locus): Remove.
15514         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
15515         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
15516         EXPR_LOCATION.
15517         * gimplify.c (internal_get_tmp_var): Likewise.
15518         (gimplify_call_expr): Likewise.
15519         (gimplify_one_sizepos): Likewise.
15520
15521 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
15522
15523         PR debug/40666
15524         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
15525         to variables for debugging purposes.
15526
15527 2009-06-23  Mark Loeser  <mark@halcy0n.com>
15528
15529         PR build/40010
15530         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
15531
15532 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15533
15534         * pretty-print.c (pp_base_format): Remove %J.
15535         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15536         gcc_cxxdiag_char_table): Likewise.
15537         (init_dynamic_diag_info): Likewise.
15538
15539 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15540
15541         * pretty-print.c (pp_base_format): Remove %H.
15542         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15543         gcc_cxxdiag_char_table): Likewise.
15544         (init_dynamic_diag_info): Likewise.
15545         * config/mep/mep.c (mep_select_section): Likewise.
15546
15547 2009-07-07  Duncan Sands  <baldrick@free.fr>
15548
15549         * final.c (pass_clean_state): Give the pass a name.
15550         * passes.c (pass_rest_of_compilation): Likewise.
15551         * tree-optimize.c (pass_all_optimizations): Likewise.
15552
15553 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15554
15555         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
15556         an extra 'decl' for error_at.
15557
15558 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
15559
15560         PR middle-end/40669
15561         * tree-tailcall.c (adjust_return_value_with_ops,
15562         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
15563         if it has complex or vector type.
15564
15565 2009-07-07  Olivier Hainque  <hainque@adacore.com>
15566
15567         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
15568         pthread symbols.
15569
15570 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
15571
15572         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
15573
15574 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15575
15576         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
15577         * c-decl.c: Likewise.
15578         * function.c: Likewise.
15579         * varasm.c: Likewise.
15580         * tree-ssa.c: Likewise.
15581         * c-common.c: Likewise.
15582         * tree-cfg.c: Likewise.
15583         * config/spu/spu.c: Likewise.
15584         * config/ia64/ia64.c: Likewise.
15585         * config/v850/v850.c: Likewise.
15586
15587 2009-07-06  DJ Delorie  <dj@redhat.com>
15588
15589         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
15590         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
15591         unspecified accesses to control registers.
15592         * config/mep/intrinsics.md: Regenerate.
15593         * config/mep/intrinsics.h: Regenerate.
15594         * config/mep/mep-intrin.h: Regenerate.
15595
15596 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15597
15598         * c-lex.c: Replace %H by an explicit location. Update all calls.
15599         * c-common.c: Likewise.
15600         * c-decl.c: Likewise.
15601         * c-typeck.c: Likewise.
15602         * fold-const.c: Likewise.
15603         * gimplify.c: Likewise.
15604         * stmt.c: Likewise.
15605         * tree-cfg.c: Likewise.
15606         * tree-ssa-loop-niter.c: Likewise.
15607         * tree-vrp.c: Likewise.
15608         * value-prof.c: Likewise.
15609
15610 2009-07-06  Diego Novillo  <dnovillo@google.com>
15611
15612         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
15613         if it has one.  Handle cases where VAR does not have an
15614         annotation or cfun is NULL.
15615
15616 2009-07-06  Diego Novillo  <dnovillo@google.com>
15617
15618         * tree.c: Include debug.h.
15619         (initialize_tree_contains_struct): New.
15620         (init_ttree): Call it.
15621         (tree_node_structure_for_code): Factor out of ...
15622         (tree_node_structure): ... here.
15623         * treestruct.def (TS_PHI_NODE): Remove.
15624         (TS_GIMPLE_STATEMENT): Remove.
15625
15626 2009-07-06  Diego Novillo  <dnovillo@google.com>
15627
15628         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
15629         (debug_tree_chain): Handle cycles.
15630
15631 2009-07-06  Nick Clifton  <nickc@redhat.com>
15632             DJ Delorie  <dj@redhat.com>
15633
15634         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15635         __FMOVD_ENABLED__ is defined.
15636         * config/sh/sh.h
15637         (TARGET_FMOVD): Provide a default definition.
15638         (MASK_FMOVD): Likewise.
15639         (TARGET_CPU_CPP_BUILTINS): Define
15640         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15641         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15642         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
15643         (split for DF load from memory into register): Also handle
15644         MEMs which consist of REG+DISP addressing.
15645         (split for DF store from register to memory): Likewise.
15646         (movsf_ie): Always use single fp_mode.
15647         * config/sh/sh.c (sh_override_options): Do not automatically
15648         enable TARGET_MOVD for the SH2A when supporting doubles - leave
15649         that to the -mfmovd command line switch.
15650         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
15651         (fldi_ok): Always allow.
15652         * config/sh/sh.opt (mfmovd): Remove this switch.
15653         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15654
15655 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
15656             Kaz Kojima  <kkojima@gcc.gnu.org>
15657
15658         PR rtl-optimization/30807
15659         * postreload.c (reload_combine): For every new use of REG_SUM,
15660         record the use of BASE.
15661
15662 2009-07-06  Jan Hubicka  <jh@suse.cz>
15663
15664         * params.def: Revert my accidental commit at 2009-06-30.
15665
15666 2009-07-04  Ian Lance Taylor  <iant@google.com>
15667
15668         PR target/40636
15669         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
15670         EXPORTED_CONST.
15671         (mingw_format_attribute_overrides): Likewise.
15672
15673 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
15674
15675         PR debug/40596
15676         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
15677         don't check cfa.reg.  Instead of cfa.indirect use
15678         fde && fde->drap_reg != INVALID_REGNUM test.
15679
15680 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15681
15682         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
15683
15684 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
15685
15686         PR target/40587
15687         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
15688
15689 2009-07-03  Richard Guenther  <rguenther@suse.de>
15690
15691         PR tree-optimization/40640
15692         * tree-switch-conversion.c (build_arrays): Perform arithmetic
15693         in original type.
15694
15695 2009-07-03  Jan Hubicka  <jh@suse.cz>
15696
15697         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
15698         for size, reduce amount of inlining.
15699
15700 2009-07-03  Richard Guenther  <rguenther@suse.de>
15701
15702         PR middle-end/34163
15703         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
15704         if t +- x is known to not overflow and the conversion widens the
15705         operation.
15706         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
15707
15708 2009-07-03  Jan Hubicka  <jh@suse.cz>
15709
15710         * ipa-pure-const.c (analyze): Update loop optimizer init.
15711         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
15712         try_remove_empty_loop, remove_empty_loops): Remove.
15713         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
15714         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
15715         to mark regular loops as neccesary.
15716         (degenerate_phi_p): New function.
15717         (propagate_necessity, remove_dead_phis): Use it.
15718         (forward_edge_to_pdom): Likewise.
15719         (eliminate_unnecessary_stmts): Take care to remove uses of results of
15720         virtual PHI nodes that became unreachable.
15721         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
15722         * tree-flow.h (remove_empty_loops): Remove.
15723         * passes.c (init_optimization_passes): Remove.
15724
15725 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
15726
15727         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
15728         can_create_pseudo_p.
15729         (*fix_trunc<mode>_i387_1): Ditto.
15730         (*floathi<mode>2_1): Ditto.
15731         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
15732         (*fistdi2_1): Ditto.
15733         (*fist<mode>2_1): Ditto.
15734         (frndintxf2_floor): Ditto.
15735         (*fist<mode>2_floor_1): Ditto.
15736         (frndintxf2_ceil): Ditto.
15737         (*fist<mode>2_ceil_1): Ditto.
15738         (frndintxf2_trunc): Ditto.
15739         (frndintxf2_mask_pm): Ditto.
15740         (fxam<mode>2_i387_with_temp): Ditto.
15741         * config/i386/sse.md (mulv16qi3): Ditto.
15742         (*sse2_mulv4si3): Ditto.
15743         (mulv2di3): Ditto.
15744         (sse4_2_pcmpestr): Ditto.
15745         (sse4_2_pcmpistr): Ditto.
15746
15747 2009-07-03  Jan Hubicka  <jh@suse.cz>
15748
15749         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
15750         (mark_stmt_necessary): Set it.
15751         (mark_operand_necessary): Set it.
15752         (mark_control_dependent_edges_necessary): Set it.
15753         (mark_virtual_phi_result_for_renaming): New function.
15754         (get_live_post_dom): New function.
15755         (forward_edge_to_pdom): New function.
15756         (remove_dead_stmt): Fix handling of control dependences.
15757         (tree_dce_init): Init new bitmap.
15758         (tree_dce_done): Free it.
15759
15760 2009-07-02  Richard Guenther  <rguenther@suse.de>
15761
15762         PR bootstrap/40617
15763         * tree-ssa-structalias.c (new_var_info): Initialize
15764         is_restrict_var.
15765
15766 2009-07-02  Jan Hubicka  <jh@suse.cz>
15767
15768         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
15769         local.
15770
15771 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
15772
15773         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
15774         instead of recomputing it.  Adjust calls.
15775         (emit_store_flag): Adjust recursive calls.
15776
15777 2009-07-02  Richard Guenther  <rguenther@suse.de>
15778
15779         * tree-ssa-live.c (remove_unused_locals): Do not remove
15780         heap variables.
15781         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
15782         of DECL_EXTERNAL for HEAP variables.
15783         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
15784         HEAP variables.  Do not adjust RESTRICT vars.
15785         (find_what_var_points_to): Nobody cares if something
15786         points to READONLY.
15787
15788 2009-07-02  Ben Elliston  <bje@au.ibm.com>
15789
15790         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
15791         pc_low and pc_high declarations to the top of the function.
15792
15793 2009-07-01  DJ Delorie  <dj@redhat.com>
15794
15795         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
15796         registers as fixed.
15797         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
15798         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
15799         unspecified accesses to control registers.
15800         * config/mep/intrinsics.md: Regenerate.
15801         * config/mep/intrinsics.h: Regenerate.
15802         * config/mep/mep-intrin.h: Regenerate.
15803
15804 2009-07-01  Anthony Green  <green@moxielogic.com>
15805
15806         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
15807         instruction when possible.
15808         (moxie_expand_prologue): Ditto.  Also, save an instruction and
15809         some complexity by popping off of $r12 instead of $sp.
15810         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
15811         operands.
15812
15813 2009-07-01  Richard Henderson  <rth@redhat.com>
15814
15815         PR bootstrap/40347
15816         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
15817         contained no insns, reposition note before last insn.
15818
15819 2009-07-01  Richard Henderson  <rth@redhat.com>
15820
15821         PR debug/40431
15822         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
15823         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
15824
15825 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
15826
15827         PR bootstrap/40558
15828         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
15829         darwin9 for printing reg addresses with %y.
15830
15831 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
15832
15833         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
15834         truncation from operands in binary operations.
15835
15836 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
15837
15838         Revert:
15839         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
15840         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
15841         subreg of op0 to the original op0.
15842
15843         * expmed.c (store_bit_field_1): Use a temporary as the destination
15844         instead of a paradoxical subreg when we need to truncate the result.
15845
15846 2009-07-01  DJ Delorie  <dj@redhat.com>
15847
15848         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
15849         names to VLIW variants.
15850         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
15851         * config/mep/intrinsics.md: Regenerate.
15852         * config/mep/intrinsics.h: Regenerate.
15853         * config/mep/mep-intrin.h: Regenerate.
15854
15855 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
15856
15857         PR debug/40462
15858         * jump.c (returnjump_p): Revert last patch.
15859         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
15860
15861 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15862
15863         PR target/40575
15864         * pa.md (casesi32p): Use jump table label to determine the offset
15865         of the jump table.
15866         (casesi64p): Likewise.
15867
15868         * pa.c (forward_branch_p): Return bool type.  Use instruction
15869         addresses when available.  Assert that INSN has a jump label.
15870         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
15871         have a jump label.
15872
15873 2009-07-01  Richard Guenther  <rguenther@suse.de>
15874
15875         PR tree-optimization/19831
15876         * tree-ssa-dce.c (propagate_necessity): Calls to functions
15877         that only act as barriers do not make any previous stores necessary.
15878         * tree-ssa-structalias.c (handle_lhs_call): Delay making
15879         HEAP variables global, do not add a constraint from nonlocal.
15880         (find_func_aliases): Handle escapes through return statements.
15881         (compute_points_to_sets): Make escaped HEAP variables global.
15882
15883 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
15884
15885         PR bootstrap/40597
15886         * expmed.c (emit_store_flag): Perform a conversion if necessary,
15887         after reducing a DImode cstore to SImode.
15888
15889 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
15890
15891         * expr.c (expand_expr_real_1): Reinstate fallthrough to
15892         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
15893
15894 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
15895
15896         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
15897         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
15898         to 0.
15899         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
15900         and umod_optab if TARGET_BSD_DIVMOD.
15901         * config/vax/lib1funcs.asm: New file.
15902         * config/vax/t-linux: New file.
15903         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
15904
15905 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
15906
15907         PR c++/40566
15908         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
15909         to type arguments that have void type.
15910
15911         PR debug/40573
15912         * dwarf2out.c (gen_formal_parameter_die): Call
15913         equate_decl_number_to_die if node is different from origin.
15914
15915 2009-06-30  Anthony Green  <green@moxielogic.com>
15916
15917         Clean up moxie port for --enable-build-with-cxx.
15918         * config/moxie/moxie.c (moxie_function_value): First two
15919         parameters are const_tree, not tree.
15920         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
15921         (REG_CLASS_NAMES): Ditto.
15922         (REGNO_REG_CLASS): Ditto.
15923         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
15924         (moxie_function_value): Fix constyness of arguments.
15925
15926 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15927
15928         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
15929         finalize_size_functions before further processing.
15930         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
15931         (variable_size): Call self_referential_size on size expressions
15932         that contain a PLACEHOLDER_EXPR.
15933         (size_functions): New static variable.
15934         (copy_self_referential_tree_r): New static function.
15935         (self_referential_size): Likewise.
15936         (finalize_size_functions): New global function.
15937         * tree.c: Include tree-inline.h.
15938         (push_without_duplicates): New static function.
15939         (find_placeholder_in_expr): New global function.
15940         (substitute_in_expr) <tcc_declaration>: Return the replacement object
15941         on equality.
15942         <tcc_expression>: Likewise.
15943         <tcc_vl_exp>: If the replacement object is a constant, try to inline
15944         the call in the expression.
15945         * tree.h (finalize_size_functions): Declare.
15946         (find_placeholder_in_expr): Likewise.
15947         (FIND_PLACEHOLDER_IN_EXPR): New macro.
15948         (substitute_placeholder_in_expr): Update comment.
15949         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
15950         is true.
15951         (copy_tree_body_r): Likewise.
15952         (copy_tree_body): New static function.
15953         (maybe_inline_call_in_expr): New global function.
15954         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
15955         (maybe_inline_call_in_expr): Declare.
15956         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
15957         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
15958         GIMPLE_H.
15959
15960 2009-06-30  Richard Guenther  <rguenther@suse.de>
15961
15962         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
15963         continue walking.
15964         (propagate_necessity): Do not mark reaching defs of stores
15965         as necessary.
15966
15967 2009-06-30  Jan Hubicka  <jh@suse.cz>
15968
15969         * cfgloopanal.c (check_irred): Move into ...
15970         (mark_irreducible_loops): ... here; return true if ireducible
15971         loops was found.
15972         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
15973         (analyze_function): Try to prove loop finiteness.
15974         * cfgloop.h (mark_irreducible_loops): Update prototype.
15975         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
15976
15977 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
15978
15979         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
15980
15981 2009-06-30  Ira Rosen  <irar@il.ibm.com>
15982
15983         PR tree-optimization/40542
15984         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
15985         types.
15986
15987 2009-06-30  Martin Jambor  <mjambor@suse.cz>
15988
15989         PR tree-optimization/40582
15990         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
15991         than useless_type_conversion_p.
15992         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
15993         proper place.
15994
15995 2009-06-30  Martin Jambor  <mjambor@suse.cz>
15996
15997         PR middle-end/40554
15998         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
15999
16000 2009-06-30  Richard Guenther  <rguenther@suse.de>
16001
16002         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
16003         use ao_ref references.
16004         (walk_aliased_vdefs): Likewise.
16005         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
16006         * tree-ssa-dce.c (struct ref_data): Remove.
16007         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
16008         (mark_aliased_reaching_defs_necessary): Adjust.
16009         (mark_all_reaching_defs_necessary_1): Likewise.
16010
16011 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
16012
16013         PR boostrap/40597
16014         * expmed.c (emit_cstore): New name of emit_store_flag_1.
16015         (emit_store_flag_1): Extract from emit_store_flag, adjust
16016         calls to (what now is) emit_cstore.
16017         (emit_store_flag): Call emit_store_flag_1 and also use it
16018         for what used to be recursive calls.
16019
16020 2009-06-30  Wei Guozhi  <carrot@google.com>
16021
16022         PR/40416
16023         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
16024         if the target bb post dominates from bb.
16025         * config/i386/i386.c (memory_address_length): Check existence of base
16026         register before using it.
16027
16028 2009-06-30  Nick Clifton  <nickc@redhat.com>
16029             DJ Delorie  <dj@redhat.com>
16030
16031         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16032         __FMOVD_ENABLED__ is defined.
16033         * config/sh/sh.h
16034         (TARGET_FMOVD): Provide a default definition.
16035         (MASK_FMOVD): Likewise.
16036         (TARGET_CPU_CPP_BUILTINS): Define
16037         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16038         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16039         two fmov instructions depending upon whether TARGET_FMOVD is
16040         enabled.
16041         (split for DF load from memory into register): Also handle
16042         MEMs which consist of REG+DISP addressing.
16043         (split for DF store from register to memory): Likewise.
16044         * config/sh/sh.opt (mfmovd): Remove this switch.
16045         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16046         * config/sh/sh.c (sh_override_options): Do not automatically
16047         enable TARGET_MOVD for the SH2A when supporting doubles - leave
16048         that to the -mfmovd command line switch.
16049
16050         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
16051         the SH4 and SH4A.
16052         (fldi_ok): Always allow.
16053         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
16054
16055 2009-06-29  DJ Delorie  <dj@redhat.com>
16056
16057         * doc/install.texi (mep-x-elf): Correct chip's full name.
16058
16059 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
16060
16061         * doc/extend.texi: Fix typo.
16062
16063 2009-06-29  Tom Tromey  <tromey@redhat.com>
16064
16065         * dwarf2.h: Remove.
16066         * Makefile.in (DWARF2_H): New variable.
16067         (except.o): Use it.
16068         (dwarf2out.o): Likewise.
16069         (dwarf2asm.o): Likewise.
16070         * config/i386/t-i386: Use DWARF2_H.
16071         * except.c: Include elf/dwarf2.h.
16072         * unwind-dw2.c: Include elf/dwarf2.h.
16073         * dwarf2out.c: Include elf/dwarf2.h.
16074         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
16075         <dtprel>: New field.
16076         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
16077         (size_of_loc_descr): Likewise.
16078         (output_loc_operands_raw): Likewise.
16079         (output_loc_operands): Handle new dtprel field.
16080         (loc_checksum): Update.
16081         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
16082         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
16083         * unwind-dw2-fde.c: Include elf/dwarf2.h.
16084         * dwarf2asm.c: Include elf/dwarf2.h.
16085         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
16086         * config/mmix/mmix.c: Include elf/dwarf2.h.
16087         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
16088         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
16089         * config/sh/sh.c: Include elf/dwarf2.h.
16090         * config/i386/i386.c: Include elf/dwarf2.h.
16091
16092 2009-06-29  DJ Delorie  <dj@redhat.com>
16093
16094         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
16095
16096         * doc/extend.texi: Add MeP attributes and pragmas.
16097         * doc/invoke.text: Add MeP Options.
16098         * doc/contrib.texi: Add MeP contribution.
16099         * doc/md.texi: Add MeP constraints.
16100         * doc/install.texi: Add MeP target.
16101
16102 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
16103
16104         * target.h (struct gcc_target): Add frame_pointer_required field.
16105         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
16106         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
16107         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
16108         hook.
16109         * reload1.c (update_eliminables): (Ditto.).
16110         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
16111         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
16112         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
16113
16114         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
16115
16116         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
16117         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16118         (arm_frame_pointer_required): New function.
16119
16120         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
16121         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16122         (avr_frame_pointer_required_p): Declare as static.
16123         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
16124
16125         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
16126         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16127         (bfin_frame_pointer_required): Make as static, change return type
16128         to bool.
16129         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
16130
16131         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
16132         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16133         (cris_frame_pointer_required): New function.
16134
16135         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
16136
16137         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
16138         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16139         (fr30_frame_pointer_required): New function.
16140
16141         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
16142         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16143         (frv_frame_pointer_required): Make as static, change return type
16144         to bool.
16145         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
16146
16147         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
16148         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16149         (ix86_frame_pointer_required): Make as static, change return type to
16150         bool.
16151         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
16152
16153         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
16154         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16155
16156         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
16157
16158         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
16159
16160         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
16161
16162         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
16163         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16164         (mips_frame_pointer_required): Make as static.
16165         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
16166
16167         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
16168         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16169         (mmix_frame_pointer_required): Mew function.
16170
16171         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
16172         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16173
16174         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
16175
16176         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
16177
16178         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
16179
16180         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
16181         (CAN_ELIMINATE): Redefine.
16182         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16183         (sparc_frame_pointer_required): New function.
16184         (sparc_can_eliminate): New function.
16185         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
16186
16187         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
16188         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16189
16190         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
16191         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16192         (xtensa_frame_pointer_required): Make as static, change return type
16193         to bool.
16194         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
16195         Remove.
16196
16197 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
16198
16199         * doc/plugins.texi: Document PLUGIN_START_UNIT.
16200         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
16201         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
16202         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
16203         (register_callback): Handle PLUGIN_START_UNIT.
16204         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
16205
16206 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
16207
16208         * tree.c (process_call_operands): Propagate TREE_READONLY from the
16209         operands.
16210         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
16211         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
16212
16213 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
16214
16215         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
16216         move cost.
16217
16218 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
16219
16220         * doc/extend.texi (Additional Floating Types): __float128 is also
16221         supported on i386 targets.
16222
16223 2009-06-29  Richard Guenther  <rguenther@suse.de>
16224
16225         PR middle-end/14187
16226         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16227         flag.
16228         (pt_solutions_same_restrict_base): Declare.
16229         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
16230         flag.
16231         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
16232         (make_constraint_from, make_copy_constraint): Move earlier.
16233         (make_constraint_from_heapvar): New function.
16234         (make_constraint_from_restrict): Likewise.
16235         (handle_lhs_call): Use it.
16236         (find_func_aliases): Use it to track conversions to restrict
16237         qualified pointers.
16238         (struct fieldoff): Add only_restrict_pointers flag.
16239         (push_fields_onto_fieldstack): Initialize it.
16240         (create_variable_info_for): Track global restrict qualified pointers.
16241         (intra_create_variable_infos): Use make_constraint_from_heapvar.
16242         Track restrict qualified pointer arguments.
16243         (set_uids_in_ptset): Use varinfo is_global_var flag.
16244         (find_what_var_points_to): Set the vars_contains_restrict flag.
16245         Always create the points-to solution for sets including restrict tags.
16246         (pt_solutions_same_restrict_base): New function.
16247         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
16248         qualified pointers use pt_solutions_same_restrict_base as
16249         additional source for disambiguation.
16250
16251 2009-06-29  Richard Guenther  <rguenther@suse.de>
16252
16253         PR middle-end/38212
16254         * alias.c (find_base_decl): Remove.
16255         (get_deref_alias_set_1): Remove restrict handling.
16256         * c-common.c (c_apply_type_quals_to_decl): Do not set
16257         DECL_POINTER_ALIAS_SET.
16258         * gimplify.c (find_single_pointer_decl_1): Remove.
16259         (find_single_pointer_decl): Likewise.
16260         (internal_get_tmp_var): Remove restrict handling.
16261         (gimple_regimplify_operands): Likewise.
16262         * omp-low.c (expand_omp_atomic_pipeline): Do not set
16263         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
16264         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
16265         * tree.c (restrict_base_for_decl): Remove.
16266         (init_ttree): Do not allocate it.
16267         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
16268         LABEL_DECL_UID for label decls.
16269         (copy_node_stat): Do not copy restrict information.
16270         (decl_restrict_base_lookup): Remove.
16271         (decl_restrict_base_insert): Likewise.
16272         (print_restrict_base_statistics): Likewise.
16273         (dump_tree_statistics): Do not call print_restrict_base_statistics.
16274         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
16275         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
16276         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
16277         (LABEL_DECL_UID): Adjust.
16278         (DECL_BASED_ON_RESTRICT_P): Remove.
16279         (DECL_GET_RESTRICT_BASE): Likewise.
16280         (SET_DECL_RESTRICT_BASE): Likewise.
16281         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
16282
16283         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
16284         instead of DECL_POINTER_ALIAS_SET.
16285         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
16286         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16287         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16288
16289 2009-06-29  Richard Guenther  <rguenther@suse.de>
16290
16291         PR tree-optimization/40579
16292         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
16293         the IL to simplify has constants that overflowed.
16294
16295 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
16296
16297         PR tree-optimization/40550
16298         * tree-vect-generic.c (expand_vector_operations_1): Compute in
16299         vector_compute_type only when the size of vector_compute_type is
16300         less than the size of type.
16301
16302 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
16303
16304         * fold-const.c (contains_label_1): Fix comments.
16305         (contains_label_p): Do not walk trees multiple time.
16306
16307 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16308
16309         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
16310         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
16311         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
16312         ix86_fp_comparison_operator.
16313         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
16314         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
16315         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
16316         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
16317         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
16318         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
16319         (related splits): Change predicate to ix86_fp_comparison_operator.
16320         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
16321         instead of ix86_fp_comparison_codes.
16322         (ix86_trivial_fp_comparison_operator,
16323         ix86_fp_comparison_operator): New.
16324         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
16325         (ix86_expand_compare): Eliminate last two parameters.
16326         (ix86_fp_jump_nontrivial_p): Kill.
16327         * config/i386/i386.c (put_condition_code): Eliminate call to
16328         ix86_fp_comparison_codes and subsequent assertion.
16329         (ix86_fp_comparison_codes): Eliminate.
16330         (ix86_fp_swap_condition): New.
16331         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
16332         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
16333         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
16334         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
16335         and ix86_fp_swap_condition.
16336         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
16337         Use ix86_fp_comparison_strategy.
16338         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
16339         (ix86_fp_jump_nontrivial_p): Eliminate.
16340         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
16341         call to ix86_expand_compare.
16342         (ix86_split_fp_branch, ix86_expand_setcc,
16343         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
16344         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
16345
16346 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16347
16348         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
16349         related to jump_clobbers.
16350         * config/arm/arm.md (conds): Remove jump_clob case.
16351         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
16352         splits): Change comparison_operator to arm_comparison_operator.
16353         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
16354         Eliminate.
16355
16356 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16357
16358         * dojump.c (do_compare_rtx_and_jump): Try swapping the
16359         condition for floating point modes.
16360         * expmed.c (emit_store_flag_1): Move here a bigger part
16361         of emit_store_flag.
16362         (emit_store_flag): Try swapping the condition for floating point
16363         modes.
16364         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
16365
16366 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16367
16368         * expr.c (expand_expr_real_1): Just use do_store_flag.
16369         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
16370         emit_store_flag_force.
16371         * expmed.c (emit_store_flag_force): Copy here trick
16372         previously in expand_expr_real_1.  Try reversing the comparison.
16373         (emit_store_flag_1): Work if target is NULL.
16374         (emit_store_flag): Work if target is NULL, using the result mode
16375         from the comparison.  Use split_comparison, restructure final part
16376         to simplify conditionals.
16377
16378 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16379
16380         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
16381         * dojump.c (do_jump): Change handling of floating-point
16382         ops to use just do_compare_and_jump.
16383         (split_comparison): New.
16384         (do_compare_rtx_and_jump): Add here logic coming previously
16385         in do_jump, using split_comparison.
16386
16387 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
16388
16389         PR target/40489
16390         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
16391
16392 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16393
16394         * tree-ssa-alias.c: Fix unintentional commit.
16395
16396 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16397
16398         * passes.c (execute_one_pass): Fix unintentional commit.
16399
16400 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16401
16402         * df-problems.c (df_set_seen, df_unset_seen): Delete.
16403         (df_rd_local_compute, df_md_local_compute): Inline them.
16404
16405         (df_md_scratch): New.
16406         (df_md_alloc, df_md_free): Allocate/free it.
16407         (df_md_local_compute): Only include live registers in init.
16408         (df_md_transfer_function): Prune the in-set computed by
16409         the confluence function, and the gen-set too.
16410
16411 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16412
16413         PR rtl-optimization/26854
16414         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
16415         * df-problems.c (df_rd_add_problem): Fix comment.
16416         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
16417         df_md_simulate_artificial_defs_at_top,
16418         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
16419         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
16420         df_md_transfer_function, df_md_init, df_md_confluence_0,
16421         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
16422         problem_MD, df_md_add_problem): New.
16423         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
16424         df_md_get_bb_info): New.
16425         (DF_LAST_PROBLEM_PLUS1): Adjust.
16426
16427         * Makefile.in (fwprop.o): Include domwalk.h.
16428         * fwprop.c: Include domwalk.h.
16429         (reg_defs, reg_defs_stack): New.
16430         (bitmap_only_bit_between): Remove.
16431         (process_defs): New.
16432         (process_uses): Use reg_defs and local_md instead of
16433         bitmap_only_bit_between and local_rd.
16434         (single_def_use_enter_block): New, from build_single_def_use_links.
16435         (single_def_use_leave_block): New.
16436         (build_single_def_use_links): Remove code moved to
16437         single_def_use_enter_block, invoke domwalk.
16438         (use_killed_between): Adjust comment.
16439
16440 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16441
16442         * bitmap.h (bitmap_ior_and_into): New.
16443         * bitmap.c (bitmap_ior_and_into): New.
16444
16445 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16446
16447         * domwalk.h (struct dom_walk_data): Remove all callbacks except
16448         before_dom_children_before_stmts and after_dom_children_after_stmts.
16449         Rename the two remaining callbacks to just before_dom_children and
16450         after_dom_children. Remove other GIMPLE statement walking bits.
16451         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
16452         * graphite.c: Do not include domwalk.h.
16453         * tree-into-ssa.c (interesting_blocks): New global.
16454         (struct mark_def_sites_global_data): Remove it and names_to_rename.
16455         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
16456         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
16457         now that they're not domwalk callbacks.
16458         (rewrite_initialize_block): Rename to...
16459         (rewrite_enter_block): ... this, place after called functions.  Test
16460         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
16461         (rewrite_finalize_block): Rename to...
16462         (rewrite_leave_block): ... this, place after called functions.
16463         (rewrite_update_init_block): Rename to...
16464         (rewrite_update_enter_block): ... this, place after called functions.
16465         Test interesting_blocks, call rewrite_update_stmt and
16466         rewrite_update_phi_arguments.
16467         (rewrite_update_fini_block): Rename to...
16468         (rewrite_leave_block): ... this, place after called functions.
16469         (rewrite_blocks): Remove last argument, simplify initialization of
16470         walk_data.
16471         (mark_def_sites_initialize_block): Rename to...
16472         (mark_def_sites_block): ... this, call mark_def_sites.
16473         (mark_def_sites_blocks): Remove argument, simplify initialization of
16474         walk_data.
16475         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
16476         (update_ssa): Likewise.
16477         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
16478         callback.
16479         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
16480         (dom_opt_initialize_block): Rename to...
16481         (dom_opt_enter_block): ... this, place after called functions.  Walk
16482         statements here, inline propagate_to_outgoing_edges.
16483         (dom_opt_finalize_block): Rename to...
16484         (dom_opt_leave_block): ... this, place after called functions.
16485         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
16486         domwalk callback.
16487         (dse_enter_block, dse_record_phi): New.
16488         (dse_record_phis): Delete.
16489         (dse_finalize_block): Rename to...
16490         (dse_leave_block): ... this.
16491         (tree_ssa_dse): Simplify initialization of walk_data.
16492         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
16493         Adjust initialization of walk_data.
16494         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
16495         * tree-ssa-loop-phiopt.c (get_non_trapping):
16496         Adjust initialization of walk_data.
16497         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
16498         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
16499         it's not a domwalk callback.
16500         (uncprop_initialize_block): Rename to...
16501         (dse_enter_block): ... this, call uncprop_into_successor_phis.
16502         (dse_finalize_block): Rename to...
16503         (dse_leave_block): ... this.
16504         (tree_ssa_uncprop): Simplify initialization of walk_data.
16505         * Makefile.in: Adjust dependencies.
16506
16507 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
16508
16509         * arm.md (casesi): Fix test for Thumb1.
16510         (thumb1_casesi_internal_pic): Likewise.
16511         (thumb1_casesi_dispatch): Likewise.
16512
16513 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
16514
16515         * config/arm/arm-cores.def: Added core cortex-m0.
16516         * config/arm/arm-tune.md: Regenerated.
16517         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
16518
16519 2009-06-26  DJ Delorie  <dj@redhat.com>
16520
16521         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
16522
16523         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
16524         the scheduler doesn't tag jump insns.
16525
16526 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
16527
16528         * c-decl.c (merge_decls): Re-indent.
16529
16530 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
16531
16532         PR c/39902
16533         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
16534         Special-case decimal float constants.
16535
16536 2009-06-26  Richard Henderson  <rth@redhat.com>
16537
16538         * function.h (struct function): Add cannot_be_copied_reason,
16539         and cannot_be_copied_set.
16540         * tree-inline.c (has_label_address_in_static_1): Rename from
16541         inline_forbidden_p_2; don't set inline_forbidden_reason here.
16542         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
16543         don't set inline_forbidden_reason.
16544         (copy_forbidden): New function, split out of inline_forbidden_p.
16545         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
16546         (inline_forbidden_p): Use copy_forbidden.
16547         (tree_versionable_function_p): Likewise.
16548         (inlinable_function_p): Merge into tree_inlinable_function_p.
16549         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
16550         * ipa-cp.c (ipcp_versionable_function_p): New function.
16551         (ipcp_cloning_candidate_p): Use it.
16552         (ipcp_node_modifiable_p): Likewise.
16553
16554 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
16555
16556         * builtins.c (expand_builtin_alloca): Handle builtin alloca
16557         that is marked not to be inlined. Remove flag_mudflap use.
16558         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
16559         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
16560
16561 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
16562
16563         PR bootstrap/40338
16564         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
16565         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
16566
16567 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
16568
16569         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
16570         shared libgcc.
16571         (__mingwthr_remove_key_dtor): Likewise.
16572
16573 2009-06-26  Richard Guenther  <rguenther@suse.de>
16574
16575         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
16576
16577 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
16578
16579         PR middle-end/40525
16580         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
16581         try the non-cond_exec path also.
16582
16583 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16584
16585         PR target/40468
16586         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
16587         (output_cbranch): Use new functions.
16588         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
16589         Likewise.
16590
16591 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16592             Pat Haugen  <pthaugen@us.ibm.com>
16593             Revital Eres <ERES@il.ibm.com>
16594
16595         * config/rs6000/rs6000.c (print_operand): Correct lossage message
16596         for %c error.  Add %x support to print VSX registers as a unified
16597         register set, instead of separate float and altivec registers.
16598         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
16599         %y case, and add support for VSX pre-modify addresses.
16600         (output_toc): Add assert for CONST containing an integer constant
16601         in the PLUS case.
16602         (rs6000_adjust_cost): Add POWER7 support.
16603         (insn_must_be_first_in_group): Ditto.
16604         (insn_must_be_last_in_group): Ditto.
16605         (rs6000_emit_popcount): Ditto.
16606         (rs6000_vector_mode_supported_p): Ditto.
16607
16608         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
16609         Change some of the functions called by macros to being called
16610         through a pointer, so debug functions can be inserted if
16611         -mdebug=addr or -mdebug=cost.
16612         (rs6000_preferred_reload_class_ptr): Ditto.
16613         (rs6000_secondary_reload_class_ptr): Ditto.
16614         (rs6000_secondary_memory_needed_ptr): Ditto.
16615         (rs6000_cannot_change_mode_class_ptr): Ditto.
16616         (rs6000_secondary_reload_inner): Ditto.
16617         (rs6000_legitimize_reload_address): Ditto.
16618         (rs6000_legitimize_reload_address_ptr): Ditto.
16619         (rs6000_mode_dependent_address): Ditto.
16620         (rs6000_mode_dependent_address_ptr): Ditto.
16621
16622         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
16623         function to return true if the mode allows reg + integer
16624         addresses.
16625         (virtual_stack_registers_memory_p): New function to return true if
16626         the address refers to a virtual stack register.
16627         (rs6000_legitimate_offset_address_p): Move code to say whether a
16628         mode supports reg+int addressing to reg_offset_addressing_ok_p and
16629         call it.
16630         (rs6000_legitimate_address_p): Add checks for modes that only can
16631         do reg+reg addressing.  Start adding VSX support.
16632         (rs6000_legitimize_reload_address): Ditto.
16633         (rs6000_legitimize_address): Ditto.
16634         (rs6000_debug_legitimate_address_p): New debug functions for
16635         -mdebug=addr and -mdebug=cost.
16636         (rs6000_debug_rtx_costs): Ditto.
16637         (rs6000_debug_address_costs): Ditto.
16638         (rs6000_debug_adjust_cost): Ditto.
16639         (rs6000_debug_legitimize_address): Ditto.
16640         (rs6000_legitimize_reload_address_ptr): Point to call normal
16641         function or debug function.  Make functions called via pointer
16642         static.
16643         (rs6000_mode_dependent_address_ptr): Ditto.
16644         (rs6000_secondary_reload_class_ptr): Ditto.
16645         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
16646         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
16647         into a friendlier error.
16648         (rs6000_init_builtins): Add initial VSX support.
16649         (rs6000_adjust_cost): Fix some spacing issues.
16650
16651         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
16652         (REG_CLASS_NAMES): Ditto.
16653         (REG_CLASS_CONTENTS): Ditto.
16654         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
16655         pointer, to add -mdebug=addr support.
16656         (CANNOT_CHANGE_MODE_CLASS): Ditto.
16657         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
16658         -mdebug=addr support.
16659         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
16660         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
16661         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
16662
16663         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
16664         16-bit values.
16665         (bswapsi*): Set attribute types for load/store.  Add combiner
16666         patterns to eliminate zero extend on 64-bit.
16667         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
16668         stdbrx if the hardware supports those instructions.
16669
16670 2009-06-25  Ian Lance Taylor  <iant@google.com>
16671
16672         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
16673         (Link Options): Document -static-libstdc++.
16674
16675 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16676
16677         PR target/38731
16678         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
16679         DATA_ALIGNMENT instead.
16680
16681 2009-06-25  Richard Guenther  <rguenther@suse.de>
16682
16683         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
16684         indirect references against the callused/escaped solutions.
16685         (call_may_clobber_ref_p_1): Likewise.
16686
16687 2009-06-25  Martin Jambor  <mjambor@suse.cz>
16688
16689         PR tree-optimization/40493
16690         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
16691         (enum unscalarized_data_handling): New type.
16692         (handle_unscalarized_data_in_subtree): Return what has been done.
16693         (load_assign_lhs_subreplacements): Handle left flushes differently.
16694         (sra_modify_assign): Use unscalarized_data_handling, simplified
16695         condition determining whether to remove the statement.
16696
16697 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
16698
16699         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
16700         excerpt - @ should be doubled for texinfo.
16701
16702 2009-06-24  Ian Lance Taylor  <iant@google.com>
16703
16704         * config/arc/arc.c: Include "df.h".
16705         (arc_attribute_table): Make static.  Move higher in file.
16706         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
16707         (output_shift): Initialize n later to avoid warning.
16708         * config/arm/arm.c (arm_attribute_table): Make static.  Move
16709         higher in file.
16710         * config/avr/avr.c (avr_attribute_table): Make static.  Move
16711         higher in file.
16712         (reg_class_tab): Change array type from int to enum reg_class.
16713         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
16714         LABEL_REF.
16715         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
16716         (lshrhi3_out): Likewise.
16717         (class_likely_spilled_p): Change return type to bool.
16718         (avr_rtx_costs): Use local code variable with enum type.
16719         * config/avr/avr.md (movmemhi): Use add_reg_note.
16720         (andhi3, andsi3): Don't use AS2 with "and".
16721         (iorhi3, iorsi3): Don't use AS2 with "or".
16722         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
16723         * config/crx/crx.c: Include "df.h".
16724         (crx_attribute_table): Make static.
16725         * config/m32r/m32r.c: Include "df.h".
16726         (m32r_attribute_table): Make static.  Move higher in file.
16727         (pop): Use add_reg_note.
16728         (block_move_call): Change 0 to LCT_NORMAL in function call.
16729         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
16730         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
16731         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
16732         declare, not just when TREE_CODE is defined.
16733         * config/m68hc11/m68hc11.c: Include "expr.h".
16734         (m68hc11_attribute_table): Make static.  Move higher in file.
16735         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
16736         function call.
16737         (m68hc11_register_indirect_p): Likewise.
16738         (m68hc11_function_arg_padding): Change return type to enum
16739         direction.
16740         (emit_move_after_reload): Use add_reg_note.
16741         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
16742         (m68hc11_split_logical): Likewise.
16743         (m68hc11_rtx_costs): Add local code_and outer_code variables with
16744         enum type.
16745         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
16746         to VOIDmode in function call.
16747         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
16748         tree is defined.
16749         (m68hc11_split_logical): Update declaration.
16750         (m68hc11_function_arg_padding): Update declaration.
16751         * config/mcore/mcore.c (regno_reg_class): Change form array of int
16752         to array of enum reg_class.
16753         (mcore_attribute_table): Make static.  Move higher in file.
16754         (mcore_rtx_costs): Add cast to enum type.
16755         * config/mcore/mcore.h (regno_reg_class): Update declaration.
16756         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
16757         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
16758         in file.
16759         * config/sh/predicates.md (trapping_target_operand): Rename and to
16760         and_expr.
16761         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
16762         higher in file.
16763         * config/spu/spu.c (spu_attribute_table): Make static.  Move
16764         higher in file.
16765         * config/v850/v850.c (v850_attribute_table): Make static.  Move
16766         higher in file.
16767         (v850_rtx_costs): Use local code with enum type.
16768         (expand_epilogue): Add cast.
16769         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
16770
16771 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
16772
16773         PR target/40515
16774         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
16775         -m2a-single-only and -m2a-nofpu.
16776         * config/sh/sh.opt: Document m2a generates FPU code.
16777
16778 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
16779
16780         * defaults.h (CAN_ELIMINATE): Provide default.
16781         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
16782         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
16783         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
16784         * config/spu/spu.h (CAN_ELIMINATE): Delete.
16785         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
16786         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
16787         * config/cris/cris.h (CAN_ELIMINATE): Delete.
16788         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
16789         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
16790         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
16791
16792 2009-06-24  DJ Delorie  <dj@redhat.com>
16793
16794         * mep-ext-cop.cpu: Fix copyright notice.
16795         * mep-default: Fix copyright notice.
16796         * mep-core: Fix copyright notice.
16797         * mep: Fix copyright notice.
16798         * mep-ivc2: Fix copyright notice.
16799         * mep-c5: Fix copyright notice.
16800
16801 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
16802
16803         * doc/contrib.texi (Contributors):
16804
16805 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16806
16807         PR middle-end/40501
16808         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
16809         src and dst operands if necessary.
16810
16811 2009-06-23  DJ Delorie  <dj@redhat.com>
16812
16813         Add MeP port.
16814         * config.gcc: Add mep support.
16815         * recog.c: Resurrect validate_replace_rtx_subexp().
16816         * recog.h: Likewise.
16817         * config/mep/: Add new port:
16818         * config/mep/constraints.md: New file.
16819         * config/mep/default.h: New file.
16820         * config/mep/intrinsics.h: New file.
16821         * config/mep/intrinsics.md: New file.
16822         * config/mep/ivc2-template.h: New file.
16823         * config/mep/mep-c5.cpu: New file.
16824         * config/mep/mep-core.cpu: New file.
16825         * config/mep/mep-default.cpu: New file.
16826         * config/mep/mep-ext-cop.cpu: New file.
16827         * config/mep/mep-intrin.h: New file.
16828         * config/mep/mep-ivc2.cpu: New file.
16829         * config/mep/mep-lib1.asm: New file.
16830         * config/mep/mep-lib2.c: New file.
16831         * config/mep/mep-pragma.c: New file.
16832         * config/mep/mep-protos.h: New file.
16833         * config/mep/mep-tramp.c: New file.
16834         * config/mep/mep.c: New file.
16835         * config/mep/mep.cpu: New file.
16836         * config/mep/mep.h: New file.
16837         * config/mep/mep.md: New file.
16838         * config/mep/mep.opt: New file.
16839         * config/mep/predicates.md: New file.
16840         * config/mep/t-mep: New file.
16841
16842 2009-06-23  Ian Lance Taylor  <iant@google.com>
16843
16844         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
16845         from loose_warn into c_loose_warn and from strict_warn into
16846         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
16847         --enable-build-with-cxx.  Set and substitute
16848         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
16849         * Makefile.in (CXXFLAGS): New variable.
16850         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
16851         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
16852         the default is the same as $(STRICT_WARN).
16853         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
16854         (CXX): New variable.
16855         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
16856         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
16857         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
16858         (HOST_LIBS): New variable.
16859         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
16860         (ALL_CXXFLAGS): New variable.
16861         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
16862         * doc/install.texi (Configuration): Document
16863         --enable-build-with-cxx, --with-stage1-ldflags,
16864         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
16865         * configure: Rebuild.
16866
16867 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16868
16869         * config/arm/arm.c (arm_override_options): Fix braces and formatting
16870         from previous commit.
16871
16872 2009-06-23  Ian Lance Taylor  <iant@google.com>
16873
16874         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
16875
16876 2009-06-23  Ian Lance Taylor  <iant@google.com>
16877
16878         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
16879         with ATTRIBUTE_UNUSED.
16880
16881 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16882             Pat Haugen  <pthaugen@us.ibm.com>
16883             Revital Eres  <eres@il.ibm.com>
16884
16885         * config.in (HAVE_AS_POPCNTD): Add default definition.
16886         (HAVE_AS_LWSYNC): Ditto.
16887
16888         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
16889         release number.
16890         (gcc_cv_as_powerpc_cmpb): Ditto.
16891         (gcc_cv_as_powerpc_dfp): Ditto.
16892         (gcc_cv_as_powerpc_vsx): Ditto.
16893         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
16894         supporting the popcntd/lwsync instructions.
16895         (gcc_cv_as_powerpc_lwsync): Ditto.
16896         * configure: Regenerate.
16897
16898         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
16899         -mcpu=native and -mcpu=power7.
16900         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
16901
16902         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
16903         a variable instead of a mask to reduce the number of mask bits.
16904         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
16905         (-mbit-word): Ditto.
16906         (-mregnames): Ditto.
16907         * config/rs6000/rs6000.opt (-mupdate): Ditto.
16908         (-mfused-madd): Ditto.
16909
16910         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
16911         2.06 instructions.
16912         (-mvsx): New switch for VSX instructions.
16913         (-misel): Move from a variable to a mask to allow it to be set by
16914         -mcpu=.
16915
16916         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
16917         function declaration to an array declaration.
16918         (rs6000_hard_regno_nregs): New external array declaration.
16919
16920         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
16921         files included by rs6000.md.
16922
16923         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16924         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
16925
16926         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
16927         a target mask.
16928         (rs6000_debug_reg): New -mdebug= variables.
16929         (rs6000_debug_addr): Ditto.
16930         (rs6000_debug_cost): Ditto.
16931         (rs6000_pmode): New variable to hold Pmode.
16932         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
16933         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
16934         calculated at compiler start.
16935         (rs6000_hard_regno_nregs): Change function to an array which holds
16936         HARD_REGNO_NREGS calculated at compiler start.
16937         (rs6000_explicit_options): Delete isel field.
16938         (rs6000_vector_unit): New array to hold which vector unit
16939         supports arithmetic options for a given type.
16940         (rs6000_vector_mem): New array to hold which vector unit supports
16941         memory reference operations for a given type.
16942         (rs6000_vector_align): New array to given the alignment of each
16943         vector type.
16944         (power7_cost): New basic costs for power7.
16945         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
16946         (rs6000_hard_regno_nregs_internal): New function, moved from
16947         HARD_REGNO_NREGS, to calculate the number of registers each hard
16948         register takes for each type.
16949         (rs6000_debug_reg_print): New function for -mdebug=reg support.
16950         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
16951         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
16952         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
16953         unit information here so it is calculated once at compiler startup
16954         time.
16955         (rs6000_override_options): Make -misel a target mask.  Add more
16956         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
16957         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
16958         -mdebug=cost.
16959         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
16960         (rs6000_handle_option): Move -misel from variable to target mask.
16961         (rs6000_builtin_mask_for_load): Add VSX support.
16962         (rs6000_conditional_register_usage): Ditto.
16963         (USE_ALTIVEC_FOR_ARG_P): Ditto.
16964         (function_arg_boundary): Ditto.
16965         (rs6000_expand_builtin): Ditto.
16966         (def_builtin): Make abort message a little friendlier.
16967         (rs6000_emit_int_cmove): Add support for 64-bit isel.
16968
16969         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
16970         assembler support the popcntd instruction instead of a vsx
16971         instruction to enable power7 support.
16972         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
16973         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
16974         option to the assembler if -mcpu=native.
16975         (ASM_CPU_NATIVE_SPEC): Ditto.
16976         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
16977         ISA 2.06 features.
16978         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
16979         the lwsync instruction.
16980         (enum processor_type): Add PROCESSOR_POWER7.
16981         (rs6000_debug_reg): New -mdebug= options.
16982         (rs6000_debug_addr): Ditto.
16983         (rs6000_debug_cost): Ditto.
16984         (rs6000_isel): Delete.
16985         (enum rs6000_vector): New enum to say what vector unit we have.
16986         (VECTOR_UNIT_*): New macros to say which vector unit has
16987         arithmetic operations for a given type.
16988         (VECTOR_MEM_*): New macros to say which vector unit has memory
16989         operations for a given type.
16990         (TARGET_LDBRX): Whether the machine supports the ldbrx
16991         instruction.
16992         (TARGET_ISEL): Delete, -misel moved to be a mask.
16993         (TARGET_ISEL64): New macro for 64-bit isel support.
16994         (UNITS_PER_VSX_WORD): New macro.
16995         (POINTER_SIZE): Move to be an external variable, rather than
16996         calculating whether we are generating 32 ot 64-bit code.
16997         (Pmode): Ditto.
16998         (STACK_BOUNDARY): Add VSX support.
16999         (LOCAL_ALIGNMENT): Ditto.
17000         (SLOW_UNALIGNED_ACCESS): Ditto.
17001         (VSX_REGNO_P): New macro for VSX support.
17002         (VFLOAT_REGNO_P): Ditto.
17003         (VINT_REGNO_P): Ditto.
17004         (VLOGICAL_REGNO_P): Ditto.
17005         (VSX_VECTOR_MODE): Ditto.
17006         (VSX_SCALAR_MODE): Ditto.
17007         (VSX_MODE): Ditto.
17008         (VSX_MOVE_MODE): Ditto.
17009         (VSX_REG_CLASS_P): Ditto.
17010         (HARD_REGNO_NREGS): Instead of calling a function, use an array
17011         lookup.
17012         (UNITS_PER_SIMD_WORD): Add VSX support.
17013         (MODES_TIEABLE_P): Ditto.
17014         (STARTING_FRAME_OFFSET): Ditto.
17015         (STACK_DYNAMIC_OFFSET): Ditto.
17016         (EPILOGUE_USES): Ditto.
17017         (REGNO_REG_CLASS): Move to array lookup.
17018         (CLASS_MAX_NREGS): Ditto.
17019         (rs6000_vector_reg_class): Add declaration.
17020         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
17021         overlap with the floating point and Altivec registers.
17022
17023         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
17024
17025         * config/rs6000/driver-rs6000.c (asm_names): New static array to
17026         give the appropriate asm switches if -mcpu=native.
17027         (host_detect_local_cpu): Add support for "asm".
17028         (host_detect_local_cpu): Follow GNU code guidelines for name.
17029
17030         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
17031         -mbit-word to a variable instead of being a target mask.
17032
17033         * config/rs6000/sync.md (lwsync): If the assembler supports it,
17034         emit the lwsync instruction instead of emitting the instruction as
17035         an integer constant.
17036
17037         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
17038         fixuns_trundfsi2, move expander into rs6000.md.
17039
17040         * config/rs6000/rs6000.md (cpu): Add power7.
17041         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
17042         (logical predicate patterns): Change the single instruction
17043         primitives that set CR0 to be fast_compare instead of compare.
17044         (norsi*): Ditto.
17045         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
17046         (popcntddi2): Ditto.
17047         (popcount<mode>): Ditto.
17048         (floating multiply/add insns): Name the floating point
17049         multiply/add insns.
17050         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
17051         (isel_unsigned_<mode>): Ditto.
17052         (fixuns_trundfsi2): Move expander here from spe.md.
17053         (smindi3): Define if we have -misel on 64-bit systems.
17054         (smaxdi3): Ditto.
17055         (umindi3): Ditto.
17056         (umaxdi3): Ditto.
17057
17058 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
17059
17060         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
17061         extra_objs.
17062         * config/avr/avr.c (avr_current_device): New variable.
17063         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
17064         (avr_arch, mcu_type_s): Move to avr.h.
17065         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
17066         default_data_section_start fields.
17067         (avr_arch): Moved from avr.c.
17068         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
17069         library_name fields.
17070         (avr_current_device, avr_mcu_types, avr_arch_types,
17071         avr_device_to_arch, avr_device_to_data_start,
17072         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
17073         (EXTRA_SPEC_FUNCTIONS): Define.
17074         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
17075         options mapping. Use device_to_arch and device_to_data_start insted.
17076         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
17077         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
17078         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
17079         * config/avr/driver-avr.c: New file.
17080         * config/avr/avr-devices.c: New file.
17081
17082 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
17083
17084         * var-tracking.c (unshare_variable): Force initialized to
17085         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
17086         (set_variable_part): Likewise.
17087         (struct variable_union_info): Remove pos_src field.
17088         (vui_vec, vui_allocated): New variables.
17089         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
17090         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
17091         == 1 use a simpler sorting algorithm.  Compute pos field right
17092         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
17093         Avoid quadratic comparison if !flag_var_tracking_uninit.
17094         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
17095         unshare_variable unconditionally.
17096         (dataflow_set_different_2): Removed.
17097         (dataflow_set_different): Don't traverse second hash table.
17098         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
17099         unconditionally to var_reg_set or var_mem_set.
17100         (emit_notes_in_bb): Likewise.
17101         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
17102         unshare_variable.
17103         (emit_note_insn_var_location): Don't set initialized to
17104         VAR_INIT_STATUS_INITIALIZED early.
17105         (vt_finalize): Free vui_vec if needed, clear vui_vec and
17106         vui_allocated.
17107         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
17108
17109         * tree-object-size.c (addr_object_size): Instead of checking
17110         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
17111         are no FIELD_DECLs following it.
17112
17113 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17114
17115         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
17116         order to match bswaps with signed source operands.
17117
17118 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17119
17120         * sdbout.c (sdbout_one_type): Fix braces in switch.
17121
17122 2009-06-23  Richard Guenther  <rguenther@suse.de>
17123
17124         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
17125         member.
17126         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
17127         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
17128         var_callused, callused_tree, var_storedanything, storedanything_tree,
17129         var_integer, integer_tree): Remove global variables.
17130         (new_var_info): Do not pass new id, append the new var to the
17131         global variable vector.
17132         (do_ds_constraint): Use is_global_var member of the variable-info.
17133         (new_scalar_tmp_constraint_exp): Adjust.
17134         (create_function_info_for): Likewise.
17135         (create_variable_info_for): Likewise.
17136         (find_what_var_points_to): Remove dead code.
17137         (init_base_vars): Simplify.
17138         (compute_points_to_sets): Adjust.
17139
17140 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17141
17142         * combine.c (try_combine): Dump information about the insns we're
17143         combining.
17144
17145 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17146
17147         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
17148         check when calling force_to_mode on TRUNCATE's operand.
17149
17150 2009-06-22  Ian Lance Taylor  <iant@google.com>
17151
17152         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
17153
17154 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17155
17156         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
17157
17158 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17159
17160         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
17161         override library linkage flags such as -static-libgcc or
17162         -shared-libgcc.
17163
17164 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17165
17166         * config/m68k/m68k-devices.def: Add line for MCF5221x.
17167
17168 2009-06-22  Ian Lance Taylor  <iant@google.com>
17169
17170         * config/linux.opt: Put mglibc ahead of muclibc.
17171
17172         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
17173         for duplicate decls.
17174
17175 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17176
17177         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
17178
17179 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17180
17181         PR objc/28050
17182         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
17183         instead of NULL if a parser error occurs.
17184
17185 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17186
17187         * dwarf2out.c (dwarf2_debug_hooks): Initialize
17188         non-DWARF2_DEBUGGING_INFO version.
17189
17190 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
17191
17192         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
17193         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
17194
17195         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
17196         (LIBGCC2_TF_CEXT): Define.
17197         (TF_SIZE): Define.
17198
17199 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17200
17201         PR target/40463
17202         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
17203
17204 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17205
17206         * config/arm/arm.c (arm_override_options): Disable
17207         -mcaller-super-interworking and -mcallee-super-interworking.
17208         * doc/invoke.texi (ARM Options): Document this.
17209
17210 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17211
17212         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
17213         * config/arm/constraints.md (j): New constraint for movw operands.
17214         (N): Remove thumb2 meaning.
17215         * config/arm/arm.md (*arm_movw): Delete.
17216         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
17217         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
17218         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
17219
17220 2009-06-22  Martin Jambor  <mjambor@suse.cz>
17221
17222         PR tree-optimization/40492
17223         * tree-sra.c (sra_modify_assign): Pass zero offsets to
17224         build_ref_for_offset.
17225
17226 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
17227
17228         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
17229         JUMP_TABLE_DATA_P predicates where applicable.
17230         * auto-inc-dec.c: Ditto.
17231         * builtins.c: Ditto.
17232         * caller-save.c: Ditto.
17233         * calls.c: Ditto.
17234         * cfgcleanup.c: Ditto.
17235         * cfglayout.c: Ditto.
17236         * cfgrtl.c: Ditto.
17237         * combine.c: Ditto.
17238         * combine-stack-adj.c: Ditto.
17239         * cse.c: Ditto.
17240         * cselib.c: Ditto.
17241         * dbxout.c: Ditto.
17242         * df-scan.c: Ditto.
17243         * dse.c: Ditto.
17244         * dwarf2asm.c: Ditto.
17245         * dwarf2out.c: Ditto.
17246         * emit-rtl.c: Ditto.
17247         * except.c: Ditto.
17248         * explow.c: Ditto.
17249         * expmed.c: Ditto.
17250         * expr.c: Ditto.
17251         * final.c: Ditto.
17252         * function.c: Ditto.
17253         * fwprop.c: Ditto.
17254         * gcse.c: Ditto.
17255         * genpreds.c: Ditto.
17256         * genrecog.c: Ditto.
17257         * ifcvt.c: Ditto.
17258         * ira-costs.c: Ditto.
17259         * ira-lives.c: Ditto.
17260         * jump.c: Ditto.
17261         * loop-iv.c: Ditto.
17262         * lower-subreg.c: Ditto.
17263         * modulo-sched.c: Ditto.
17264         * optabs.c: Ditto.
17265         * postreload.c: Ditto.
17266         * print-rtl.c: Ditto.
17267         * recog.c: Ditto.
17268         * reginfo.c: Ditto.
17269         * regmove.c: Ditto.
17270         * reload1.c: Ditto.
17271         * reload.c: Ditto.
17272         * reorg.c: Ditto.
17273         * rtlanal.c: Ditto.
17274         * rtl.c: Ditto.
17275         * sched-vis.c: Ditto.
17276         * sdbout.c: Ditto.
17277         * sel-sched-ir.c: Ditto.
17278         * simplify-rtx.c: Ditto.
17279         * targhooks.c: Ditto.
17280         * var-tracking.c: Ditto.
17281         * vmsdbgout.c: Ditto.
17282
17283 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17284
17285         * Makefile.in (install-plugin): Always use DESTDIR.
17286
17287 2009-06-22  Olivier Hainque  <hainque@adacore.com>
17288
17289         * config/pa/pa.c (output_call): Don't optimize post call jumps
17290         into return address adjustments if the call may throw.
17291
17292 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
17293
17294         * arm.c (thumb1_output_casesi): New function.
17295         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
17296         optimizing for size or PIC.
17297         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
17298         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
17299         (casesi): Handle Thumb-1 when optimizing for size or PIC.
17300         (thumb1_casesi_internal_pic): New expand rule.
17301         (thumb1_casesi_dispatch): New pattern.
17302         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
17303         thumb-1 mode.
17304         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
17305         in the text seciton when PIC or optimizing for size.
17306         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17307         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
17308         preservation properties of code.
17309         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
17310         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
17311         (__gnu_thumb1_case_si): New function.
17312         * t-arm (LIB1ASMSRC): Define here.
17313         (LIB1ASMFUNCS): Add some common functions.
17314         * t-arm-elf (LIB1ASMSRC): Delete.
17315         (LIB1ASMFUNCS): Append to existing set.
17316         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17317         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17318         * t-symbian (LIB1ASMFUNCS): Likewise.
17319         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17320         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17321
17322 2009-06-21  Richard Guenther  <rguenther@suse.de>
17323
17324         PR tree-optimization/38729
17325         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
17326         to loops with a single exit if -fno-expensive-optimizations.
17327
17328 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
17329
17330         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
17331         (dataflow_set): Change vars type from htab_t to shared_hash.
17332         (shared_hash_pool, empty_shared_hash): New variables.
17333         (vars_clear): Removed.
17334         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
17335         shared_hash_find_slot_unshare, shared_hash_find_slot,
17336         shared_hash_find_slot_noinsert, shared_hash_find): New
17337         static inlines.
17338         (shared_hash_unshare, shared_hash_destroy): New functions.
17339         (unshare_variable): Unshare set->vars if shared, use
17340         shared_hash_htab.
17341         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
17342         (get_init_value, find_src_set_src, dump_dataflow_set,
17343         clobber_variable_part, emit_notes_for_differences): Use
17344         shared_hash_htab.
17345         (dataflow_set_init): Remove second argument, set vars to
17346         empty_shared_hash instead of creating a new htab.
17347         (dataflow_set_clear): Call shared_hash_destroy and set vars
17348         to empty_shared_hash instead of calling vars_clear.
17349         (dataflow_set_copy): Don't call vars_copy, instead just share
17350         the src htab with dst.
17351         (variable_union): Use shared_hash_*, use initially NO_INSERT
17352         lookup if set->vars is shared.  Don't keep slot cleared before
17353         calling unshare_variable.  Unshare set->vars if needed.
17354         Even ->refcount == 1 vars must be unshared if set->vars is shared
17355         and var needs to be modified.
17356         (variable_canonicalize): New function.
17357         (dataflow_set_union): If dst->vars is empty, just share src->vars
17358         with dst->vars and traverse with variable_canonicalize to canonicalize
17359         and unshare what is needed.
17360         (dataflow_set_different): If old_set and new_set use the same shared
17361         htab, they aren't different.  If number of htab elements is different,
17362         htabs are different.  Use shared_hash_*.
17363         (dataflow_set_destroy): Call shared_hash_destroy instead of
17364         htab_delete.
17365         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
17366         second argument to dataflow_set_init.
17367         (vt_initialize): Likewise.  Initialize shared_hash_pool and
17368         empty_shared_hash, move bb in/out initialization afterwards.
17369         Use variable_htab_free instead of NULL as changed_variables del hook.
17370         (variable_was_changed): Change type of second argument to pointer to
17371         dataflow_set.  When inserting var into changed_variables, bump
17372         refcount.  Unshare set->vars if set is shared htab and slot needs to
17373         be cleared.
17374         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
17375         lookup if set->vars is shared.  Unshare set->vars if needed.
17376         Even ->refcount == 1 vars must be unshared if set->vars is shared
17377         and var needs to be modified.  Adjust variable_was_changed caller.
17378         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
17379         vars must be unshared if set->vars is shared and var needs to be
17380         modified.  Adjust variable_was_changed caller.
17381         (emit_note_insn_var_location): Don't pool_free var.
17382         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
17383         instead of 1.
17384         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
17385         free_alloc_pool on shared_hash_pool.
17386
17387 2009-06-20  Anthony Green  <green@moxielogic.com>
17388
17389         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
17390         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
17391
17392 2009-06-20  Richard Guenther  <rguenther@suse.de>
17393
17394         * tree-ssa-structalias.c (find_func_aliases): For memset use
17395         a constraint from NULL if we memset to zero.
17396         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
17397         we explicitly handle that do not read from memory.
17398         (call_may_clobber_ref_p_1): Properly handle builtins that may
17399         set errno.
17400
17401 2009-06-20  Richard Guenther  <rguenther@suse.de>
17402
17403         PR tree-optimization/40495
17404         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
17405         (new_scalar_tmp_constraint_exp): New function.
17406         (process_constraint): Do not create temporary decls.
17407         (process_all_all_constraints): Likewise.
17408         (handle_const_call): Likewise.
17409         (create_function_info_for): Do not set decl.
17410
17411 2009-06-19  Ian Lance Taylor  <iant@google.com>
17412
17413         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
17414         (rs6000_attribute_table): Make static; move before use.
17415
17416 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
17417
17418         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
17419         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
17420         Propagate the TREE_READONLY flag without overwriting it.
17421         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
17422         Propagate the TREE_READONLY flag onto the result.
17423         (process_call_operands): Move around.  Use correct constant value.
17424
17425 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17426
17427         PR target/40482
17428         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
17429         * config/arm/arm.md: Likewise.
17430
17431 2009-06-19  Ian Lance Taylor  <iant@google.com>
17432
17433         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
17434         to GIMPLE_ERROR_MARK.
17435
17436         * c-typeck.c (build_conditional_expr): Add op1_original_type and
17437         op2_original_type parameters.  Warn about using different enum types.
17438         * c-parser.c (c_parser_conditional_expression): Pass original
17439         types to build_conditional_expr.
17440         * c-tree.h (build_conditional_expr): Update declaration.
17441
17442 2009-06-19  Ian Lance Taylor  <iant@google.com>
17443
17444         * config/i386/i386.c (ix86_function_specific_save): Test that
17445         fields match values, rather than testing the values are in a
17446         certain range.
17447
17448 2009-06-19  Richard Guenther  <rguenther@suse.de>
17449
17450         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17451         ADDR_EXPR pointers.
17452         (ptr_derefs_may_alias_p): Likewise.
17453         (ptr_deref_may_alias_ref_p_1): New function.
17454         (ptr_deref_may_alias_ref_p): Likewise.
17455         (ref_maybe_used_by_call_p_1): Handle builtins that are not
17456         covered by looking at the ESCAPED solution.
17457         (call_may_clobber_ref_p_1): Likewise.
17458         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17459         Handle NULL_TREE offset.  Do not produce redundant constraints.
17460         (process_all_all_constraints): New helper function.
17461         (do_structure_copy): Use it.
17462         (handle_lhs_call): Likewise.
17463         (find_func_aliases): Handle some builtins with pointer arguments
17464         and/or return values explicitly.
17465
17466 2009-06-19  Ian Lance Taylor  <iant@google.com>
17467
17468         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
17469
17470 2009-06-19  Ian Lance Taylor  <iant@google.com>
17471
17472         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
17473
17474 2009-06-19  Ian Lance Taylor  <iant@google.com>
17475
17476         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
17477         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
17478         version.
17479
17480         * c-decl.c (finish_decl): If -Wc++-compat, warn about
17481         uninitialized const.
17482
17483 2009-06-19  Ian Lance Taylor  <iant@google.com>
17484
17485         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
17486         all uses.
17487
17488         * c-decl.c (in_struct, struct_types): Remove.
17489         (struct c_binding): Add in_struct field.
17490         (c_binding_ptr): Define type, along with VEC.
17491         (struct c_struct_parse_info): Define.
17492         (struct_parse_info): New static variable.
17493         (bind): Initialize in_struct field.
17494         (start_struct): Remove enclosing_in_struct and
17495         enclosing_struct_types parameters.  Add
17496         enclosing_struct_parse_info parameter.  Change all callers.  Set
17497         struct_parse_info rather than in_struct and struct_types.
17498         (grokfield): If -Wc++-compat and there is a symbol binding for the
17499         field name, set the in_struct flag and push it on the
17500         struct_parse_info->fields vector.
17501         (warn_cxx_compat_finish_struct): New static function.
17502         (finish_struct): Remove enclosing_in_struct and
17503         enclosing_struct_types parameters.  Add
17504         enclosing_struct_parse_info parameter.  Change all callers.  Don't
17505         set C_TYPE_DEFINED_IN_STRUCT here.  Call
17506         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
17507         parameter.  Only push on struct_types if warn_cxx_compat.
17508         (finish_enum): Only push on struct_types if warn_cxx_compat.
17509         (declspecs_add_type): Add loc parameter.  Change all callers.
17510         Change all error calls to error_at.  Pass loc, not input_location,
17511         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
17512         defined in a struct.  If -Wc++-compat and parsing a struct, record
17513         that a typedef name was used.
17514         * c-parser.c (c_parser_declspecs): Get location to pass to
17515         declspecs_add_type.
17516         (c_parser_struct_or_union_specifier): Update calls to start_struct
17517         and finish_struct.
17518         * c-tree.h (struct c_struct_parse_info): Declare.
17519         (finish_struct, start_struct): Update declarations.
17520         (declspecs_add_type): Update declaration.
17521
17522 2009-06-19  Ian Lance Taylor  <iant@google.com>
17523
17524         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
17525         variable with an anonymous type.
17526
17527 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17528
17529         * see.c: Remove for real.
17530
17531 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17532
17533         * optabs.h (enum optab_index): Add new OTI_significand.
17534         (significand_optab): Define corresponding macro.
17535         * optabs.c (init_optabs): Initialize significand_optab.
17536         * genopinit.c (optabs): Implement significand_optab using
17537         significand?f2 patterns.
17538         * builtins.c (expand_builtin_mathfn): Handle
17539         BUILT_IN_SIGNIFICAND{,F,L}.
17540         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
17541         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
17542
17543         * config/i386/i386.md (significandxf2, significand<mode>2): New
17544         expanders to implement significandf, significand and significandl
17545         built-ins as inline x87 intrinsics.
17546
17547 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
17548
17549         * config/avr/avr.c (avr_override_options): Remove setting value of
17550         PARAM_INLINE_CALL_COST.
17551
17552 2009-06-18  Richard Henderson  <rth@redhat.com>
17553
17554         PR 40488
17555         * tree-pass.h (TDF_ASMNAME): New.
17556         * tree-dump.c (dump_options): Add asmname.
17557         * doc/invoke.texi: Document it.
17558
17559         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
17560         (dump_decl_name): ...here.
17561         (dump_function_name): New flags arg; mind TDF_ASMNAME.
17562         (dump_generic_node): Update dump_function_name calls.
17563         (print_call_name): New flags arg; update all dump calls.
17564         * diagnostic.h (print_call_name): Update.
17565         * gimple-pretty-print.c (dump_gimple_call): Update.
17566
17567 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17568
17569         PR target/40470
17570         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
17571
17572 2009-06-18  Diego Novillo  <dnovillo@google.com>
17573
17574         * doc/plugins.texi: Document plugin_is_GPL_compatible.
17575         * plugin.c (str_license): Declare.
17576         (try_init_one_plugin): Assert that the symbol
17577         'plugin_is_GPL_compatible' exists.
17578
17579 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
17580
17581         * see.c: Remove.
17582         * Makefile.in (OBJS-common): Remove see.o.
17583         (see.o): Remove.
17584         * common.opt (fsee): Mark as preserved for backward compatibility.
17585         * opts.c (common_handle_option): Add OPT_fsee to the backward
17586         compatibility section.
17587         * passes.c (init_optimization_passes, pass_see): Remove pass.
17588         * timevar.def (TV_SEE): Remove.
17589         * tree-pass.h (pass_see): Remove declaration.
17590         * doc/invoke.texi (-fsee): Remove documentation.
17591
17592 2009-06-18  Martin Jambor  <mjambor@suse.cz>
17593
17594         * tree-sra.c: Include statistics.h
17595         (sra_stats): New variable.
17596         (sra_initialize): Clear sra_stats.
17597         (create_access_replacement): Increment sra_stats.replacements.
17598         (get_access_replacement): Do not return twice.
17599         (analyze_all_variable_accesses): Increment statistics counter by the
17600         number of scalarized aggregates.
17601         (generate_subtree_copies): Increment sra_stats.subtree_copies.
17602         (sra_modify_expr): Increment sra_stats.exprs.
17603         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
17604         (sra_modify_assign): Increment sra_stats.exprs,
17605         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
17606         (perform_intra_sra): Update statistics counters.
17607         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
17608
17609 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17610
17611         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
17612         (arm_scalar_mode_supported_p): New function.
17613
17614 2009-06-18  Paul Brook  <paul@codesourcery.com>
17615             Sandra Loosemore  <sandra@codesourcery.com>
17616
17617         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
17618         (__extendhfsf2, __truncsfhf2): Define.
17619         * config/arm/fp16.c: New file.
17620         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
17621         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
17622
17623 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17624
17625         * doc/extend.texi (Half-Precision): New section.
17626         * doc/invoke.texi (Option Summary): List -mfp16-format.
17627         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
17628         * config/arm/arm.opt (mfp16-format=): New.
17629         * config/arm/arm.c: Include intl.h.
17630         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
17631         (TARGET_INVALID_RETURN_TYPE): Redefine.
17632         (TARGET_PROMOTED_TYPE): Redefine.
17633         (TARGET_CONVERT_TO_TYPE): Redefine.
17634         (arm_fp16_format): Define.
17635         (all_fpus): Add entry for neon-fp16.
17636         (fp_model_for_fpu): Likewise.
17637         (struct fp16_format): Declare.
17638         (all_fp16_formats): Define.
17639         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
17640         functions.
17641         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
17642         and no ldrh.
17643         (arm_legitimate_index_p): Treat HFmode like HImode.
17644         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
17645         (coproc_secondary_reload_class): Special-case HFmode.
17646         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
17647         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
17648         (arm_init_fp16_builtins): New.
17649         (arm_init_builtins): Call it.
17650         (arm_invalid_parameter_type): New.
17651         (arm_invalid_return_type): New.
17652         (arm_promoted_type): New.
17653         (arm_convert_to_type).
17654         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
17655         format.
17656         (arm_emit_fp16_const): New function.
17657         (arm_mangle_type): Mangle __fp16 as "Dh".
17658         * config/arm/arm.h (TARGET_VFPD32): Make it know about
17659         FPUTYPE_NEON_FP16.
17660         (TARGET_NEON_FP16): New.
17661         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
17662         (enum fputype): Add FPUTYPE_NEON_FP16.
17663         (enum arm_fp16_format_type): Declare.
17664         (arm_fp16_format): Declare.
17665         (LARGEST_EXPONENT_IS_NORMAL): Define.
17666         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
17667         * config/arm/arm-modes.def (HFmode): Define.
17668         * config/arm/vfp.md (*movhf_vfp): New.
17669         (extendhfsf2): New.
17670         (truncsfhf2): New.
17671         * config/arm/arm.md (fpu): Add neon_fp16.
17672         (floatsihf2, floatdihf2): New.
17673         (fix_trunchfsi2, fix_trunchfdi2): New.
17674         (truncdfhf2): New.
17675         (extendhfdf2): New.
17676         (movhf): New.
17677         (*arm32_movhf): New.
17678         (*thumb1_movhf): New.
17679         (consttable_2): Add check for HFmode constants.
17680         (consttable_4): Handle HFmode constants.
17681
17682 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
17683
17684         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
17685
17686 2009-06-17  Olivier Hainque  <hainque@adacore.com>
17687
17688         * collect2.c (main): Use CONST_CAST2 to perform char ** to
17689         const char ** conversion in AIX specific section.
17690
17691 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
17692
17693         * config/i386/i386.c (ix86_special_builtin_type): Remove
17694         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
17695         (bdesc_special_args): Updated.
17696         (ix86_init_mmx_sse_builtins): Likewise.
17697         (ix86_expand_special_args_builtin): Likewise.
17698
17699 2009-06-17  Richard Henderson  <rth@redhat.com>
17700
17701         * tree-pretty-print.c (maybe_dump_asm_name): New.
17702         (dump_decl_name): Use it.
17703         (PRINT_FUNCTION_NAME): Merge into...
17704         (dump_function_name): ... here.  Use maybe_dump_asm_name.
17705
17706 2009-06-17  Cary Coutant  <ccoutant@google.com>
17707
17708         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
17709         Change caller.
17710         * debug.c (struct gcc_debug_hooks): Change placeholder for
17711         source_line hook.
17712         (debug_nothing_int_charstar_int): Replaced by...
17713         (debug_nothing_int_charstar_int_bool): ...this.
17714         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
17715         source_line prototype.
17716         (debug_nothing_int_charstar_int): Replaced by...
17717         (debug_nothing_int_charstar_int_bool): ...this.
17718         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
17719         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
17720         Output is_stmt operand when necessary.
17721         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
17722         (notice_source_line): Add is_stmt parameter.
17723         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
17724         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
17725         Change callers.
17726         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
17727         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
17728
17729 2009-06-17  Ian Lance Taylor  <iant@google.com>
17730
17731         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
17732         Change all uses.
17733         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
17734         call uses.
17735
17736 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
17737
17738         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
17739         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
17740         tree_strip_sign_nop_conversions and
17741         tree_ssa_strip_useless_type_conversions rather than stripping
17742         the operations here.
17743         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
17744         Declare them.
17745         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
17746         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
17747         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
17748         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
17749         functions.
17750
17751 2009-06-17  Michael Eager  <eager@eagercon.com>
17752
17753         * config/rs6000/constraints.md (register_constraint "d"): New.
17754         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
17755         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17756         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
17757         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
17758         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17759         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
17760         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
17761         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
17762         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
17763         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
17764         __fctiwz): Same.
17765         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
17766         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
17767         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
17768         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
17769         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
17770         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
17771         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
17772         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
17773         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
17774         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
17775         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
17776         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
17777         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
17778         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
17779
17780 2009-06-16  Ian Lance Taylor  <iant@google.com>
17781
17782         * profile.c (total_num_never_executed): Don't define.
17783         (compute_branch_probabilities): Don't count or print
17784         num_never_executed.
17785         (init_branch_prob): Don't set total_num_never_executed.
17786         (end_branch_prob): Don't print total_num_never_executed.
17787
17788 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
17789
17790         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
17791
17792 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
17793
17794         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
17795         (nabstd2_fpr): Same.
17796
17797 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
17798
17799         * expr.c (expand_assignment): Change complex type check.
17800
17801 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
17802
17803         * doc/plugins.texi (Building GCC plugins): Added new section.
17804
17805 2009-06-17  Ian Lance Taylor  <iant@google.com>
17806
17807         * c-pch.c (get_ident): Don't set size of templ array.
17808         (pch_init): Don't set size of partial_pch array.
17809
17810         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
17811         string constant to intialize an array whose size is the length of
17812         the string.
17813
17814 2009-06-17  Richard Guenther  <rguenther@suse.de>
17815
17816         PR tree-optimization/40389
17817         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
17818         to addressable types.
17819         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
17820
17821 2009-06-17  Richard Guenther  <rguenther@suse.de>
17822
17823         PR middle-end/40460
17824         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
17825         if there is no evolution of left in the loop bail out.
17826         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
17827         chrec_fold_multiply.
17828
17829 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
17830             Janis Johnson  <janis187@us.ibm.com>
17831
17832         PR target/39254
17833         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
17834         for the symbol ref of a constant that is the source of a move
17835         - nor for any other not-obvious-label-ref constants.
17836
17837 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
17838
17839         * plugin.c (position_pass): Skip newly inserted pass during list
17840         traversal to avoid repeated insertion.
17841
17842 2009-06-16  Ian Lance Taylor  <iant@google.com>
17843
17844         * vec.h (VEC_stack_alloc): Define different version if
17845         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
17846         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
17847         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
17848         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17849
17850 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
17851
17852         * config.gcc (extra_headers): Add ia32intrin.h for x86.
17853
17854         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
17855         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
17856         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
17857         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
17858         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
17859         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17860         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17861         (bdesc_special_args): Add __builtin_ia32_rdtsc and
17862         __builtin_ia32_rdtscp.
17863         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
17864         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
17865         and __builtin_ia32_rorhi.
17866         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
17867         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17868         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17869         (ix86_expand_args_builtin): Likewise.
17870         (ix86_expand_special_args_builtin): Likewise.
17871
17872         * config/i386/i386.md (UNSPECV_RDTSCP): New.
17873         (UNSPECV_RDTSC): Likewise.
17874         (UNSPECV_RDPMC): Likewise.
17875         (*bsr): Renamed to ...
17876         (bsr): This
17877         (*bsr_rex64): Renamed to ...
17878         (bsr_rex64): This.
17879         (rdpmc): New.
17880         (*rdpmc): Likewise.
17881         (*rdpmc_rex64): Likewise.
17882         (rdtsc): Likewise.
17883         (*rdtsc): Likewise.
17884         (*rdtsc_rex64): Likewise.
17885         (rdtscp): Likewise.
17886         (*rdtscp): Likewise.
17887         (*rdtscp_rex64): Likewise.
17888
17889         * config/i386/ia32intrin.h: New.
17890
17891         * config/i386/x86intrin.h: Include <ia32intrin.h>.
17892
17893 2009-06-16  Ian Lance Taylor  <iant@google.com>
17894
17895         * ira-build.c (copy_info_to_removed_store_destinations):
17896         Initialize parent_a.
17897
17898 2009-06-16  Ian Lance Taylor  <iant@google.com>
17899
17900         * c-decl.c (grokdeclarator): Change size_varies to bool.
17901
17902 2009-06-16  Ian Lance Taylor  <iant@google.com>
17903
17904         * sel-sched.c: Make forward declarations of move_op_hooks and
17905         fur_hooks explicitly extern.
17906
17907 2009-06-16  Ian Lance Taylor  <iant@google.com>
17908
17909         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
17910         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
17911
17912 2009-06-16  Ian Lance Taylor  <iant@google.com>
17913
17914         * resource.c (mark_referenced_resources): Change
17915         include_delayed_effects parameter to bool.  Change all callers.
17916         (mark_end_of_function_resources): Likewise.
17917         * reorg.c (insn_references_resource_p): Likewise.
17918         (insn_sets_resource_p): Likewise.
17919         * resource.h (mark_referenced_resources): Update declaration.
17920         (mark_end_of_function_resources): Update declaration.
17921
17922 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
17923
17924         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
17925
17926 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
17927
17928         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
17929         GCC can bootstrap on AIX with GNU Binutils 2.20.
17930
17931 2009-06-16  Ian Lance Taylor  <iant@google.com>
17932
17933         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
17934
17935 2009-06-16  Ian Lance Taylor  <iant@google.com>
17936
17937         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
17938         inline, not extern inline.
17939         (exact_log2): Likewise.
17940         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
17941         test CLZ_HWI.
17942         (exact_log2): Likewise, but don't test CTZ_HWI.
17943
17944 2009-06-16  Ian Lance Taylor  <iant@google.com>
17945
17946         * bitmap.c (bitmap_clear): Don't declare as inline.
17947         * gimple.c (gimplify_assign): Likewise.
17948         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17949         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
17950         (sched_scan_info): Remove duplicate definition.
17951
17952 2009-06-16  Ian Lance Taylor  <iant@google.com>
17953
17954         * c-common.c (skip_evaluation): Don't define.
17955         (c_inhibit_evaluation_warnings): Define global variable.
17956         (overflow_warning): Check c_inhibit_evaluation_warnings rather
17957         than skip_evaluation.
17958         (convert_and_check, warn_for_div_by_zero): Likewise.
17959         * c-common.h (skip_evaluation): Don't declare.
17960         (c_inhibit_evaluation_warnings): Declare.
17961         * c-parser.c (c_parser_typeof_specifier): Set
17962         c_inhibit_evaluation_warnings rather than skip_evaluation.
17963         (c_parser_conditional_expression): Likewise.
17964         (c_parser_binary_expression): Likewise.
17965         (c_parser_sizeof_expression): Likewise.
17966         (c_parser_alignof_expression): Likewise.
17967         * c-typeck.c (build_indirect_ref): Check
17968         c_inhibit_evaluation_warnings rather than skip_evaluation.
17969         (build_conditional_expr, build_binary_op): Likewise.
17970
17971 2009-06-16  Richard Guenther  <rguenther@suse.de>
17972
17973         * tree-ssa-alias.c (is_escape_site): Remove.
17974         * tree-ssa-alias.h (enum escape_type): Remove.
17975         (is_escape_site): Likewise.
17976         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
17977         via casts and asms without deferring to is_escape_site.
17978
17979 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
17980
17981         PR middle-end/40446
17982         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
17983         use gen_lowpart if op0 has complex mode.
17984
17985 2009-06-16  Richard Guenther  <rguenther@suse.de>
17986
17987         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
17988         variables add them to ESCAPED.
17989         (find_func_aliases): Do not make all indirectly stored values escaped.
17990
17991 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
17992
17993         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
17994         make_decl_one_only.
17995
17996 2009-06-16  Martin Jambor  <mjambor@suse.cz>
17997
17998         PR tree-optimization/40432
17999         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
18000         check whether we need to force gimple register operand.
18001
18002 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18003
18004         PR tree-optimization/40413
18005         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
18006         build_ref_for_offset.
18007         (propagate_subacesses_accross_link): Fix a typo in a comment.
18008
18009 2009-06-16  Ira Rosen  <irar@il.ibm.com>
18010
18011         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
18012         with additional parameter.
18013         * tree-vectorizer.h (enum vect_def_type): Add new value
18014         vect_nested_cycle.
18015         (enum vect_relevant): Add comments.
18016         (vect_is_simple_reduction): Add new argument.
18017         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
18018         Detect nested cycles.
18019         (vect_is_simple_reduction): Update documentation, add an argument to
18020         distinguish inner-loop reduction from nested cycle, detect nested
18021         cycles, fix printings and indentation, don't swap operands in case
18022         of nested cycle.
18023         (get_initial_def_for_reduction): Handle subtraction.
18024         (vect_create_epilog_for_reduction): Add new argument to specify
18025         reduction variable.
18026         (vect_finalize_reduction): Handle subtraction, fix comments.
18027         (vectorizable_reduction): Handle nested cycles. In case of nested
18028         cycle keep track of the reduction variable position. Call
18029         vect_is_simple_reduction with additional parameter. Use original
18030         statement code in reduction epilogue for nested cycle. Call
18031         vect_create_epilog_for_reduction with additional parameter.
18032         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
18033         inner-loop vectorization.
18034         (vect_recog_widen_sum_pattern): Likewise.
18035         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
18036         and reductions.
18037         (vect_mark_stmts_to_be_vectorized): Likewise.
18038         (vect_get_vec_def_for_operand): Handle nested cycles.
18039
18040 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18041
18042         * doc/invoke.texi (Debugging Options): Fix option index entries
18043         for -fdump-statistics, -frandom-seed add entries for
18044         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
18045         (FRV Options): Fix entries for -mTLS, -mtls.
18046         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
18047         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
18048         (M68hc1x Options): Fix @itemx for -mnominmax.
18049         (MCore Options): Fix entry for -mno-lsim.
18050         (MMIX Options): Fix entry for -mabi=mmixware.
18051         (PDP-11 Options): Fix entry for -mbcopy-builtin.
18052
18053 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
18054
18055         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
18056         Mention the plugin mode of gengtype.
18057         * doc/gty.texi (Source Files Containing Type Information): Likewise.
18058         * gengtype.c: Updated copyright.
18059         (plugin_files, nb_plugin_files) Added new static variables.
18060         (measure_input_list) Care about plugin_files.
18061         (write_rtx_next): Added early return in plugin mode.
18062         (create_file): Updated copyright year in generated file. Added
18063         asserts.
18064         (oprintf): Added early return if NULL outf.
18065         (get_output_file_with_visibility): Care of plugin_files.
18066         (get_output_file_name): May return null.
18067         (write_local): Added early return.
18068         (put_mangled_filename): Ditto.
18069         (finish_root_table): Added check for base_files.
18070         (write_roots): Care about null when plugins.
18071         (main): Added plugin mode.
18072
18073 2009-06-15  Ian Lance Taylor  <iant@google.com>
18074
18075         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
18076         * gcov.c (read_count_file): Add braces around variables declared
18077         before label.
18078
18079         * c.opt (Wjump-misses-init): New warning.
18080         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
18081         -Wall and -Wc++-compat if not already set.
18082         (c_common_post_options): Clear warn_jump_misses_init if it was not
18083         set.
18084         * c-decl.c (struct c_binding): Change type field to a union with
18085         new label field.  Make it the first field in the struct.  Update
18086         references to type to use u.type instead.
18087         (struct c_spot_bindings): Define.
18088         (struct c_goto_bindings): Define.
18089         (c_goto_bindings_p): Define, along with VECs.
18090         (struct c_label_vars): Define.
18091         (struct c_scope): Add has_label_bindings field.
18092         (bind_label, set_spot_bindings): New static functions.
18093         (decl_jump_unsafe, update_spot_bindings): New static functions.
18094         (update_label_decls): New static function.
18095         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
18096         Update binding u.label field to shadowed field.
18097         (c_binding_start_stmt_expr): New function.
18098         (c_binding_end_stmt_expr): New function.
18099         (pushdecl): Don't call c_begin_vm_scope.
18100         (make_label): Add defining and p_label_vars parameters.  Change
18101         all callers.
18102         (lookup_label): Correct test for whether a label has not yet been
18103         defined.  Call bind_label rather than bind.
18104         (warn_about_goto): New static function.
18105         (lookup_label_for_goto): New function.
18106         (declare_label): Call bind_label rather than bind.
18107         (check_earlier_gotos): New static function.
18108         (define_label): Don't give errors about jumping into statement
18109         expressions or scopes of variably modified types.  Call
18110         set_spot_bindings and check_earlier_gotos.  Call bind_label
18111         instead of bind.  Don't set label_context_stack_se or
18112         label_context_stack_vm.
18113         (c_get_switch_bindings): New function.
18114         (c_release_switch_bindings): New function.
18115         (c_check_switch_jump_warnings): New function.
18116         (start_function): Don't set label_context_stack_se or
18117         label_context_stack_vm.
18118         (finish_function): Likewise.
18119         * c-typeck.c (label_context_stack_se): Don't define.
18120         (label_context_stack_vm): Don't define.
18121         (c_finish_goto_label): Call lookup_label_for_goto rather than
18122         lookup_label.  Don't give errors about jumping into a statement
18123         expression or the scope of a variably modified type.  Don't set
18124         label_context_stack_se or label_context_stack_vm.
18125         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
18126         fields.  Add bindings field.
18127         (c_start_case): Don't set deleted fields.  Set bindings field.
18128         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
18129         or blocked_vm.  Call c_check_switch_jump_warnings.
18130         (c_finish_case): Don't test blocked_stmt_expr field.  Call
18131         c_release_switch_bindings.
18132         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
18133         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18134         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
18135         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
18136         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18137         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
18138         (c_begin_vm_scope, c_end_vm_scope): Don't define.
18139         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
18140         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
18141         (C_DECL_UNJUMPABLE_VM): Don't define.
18142         (C_DECL_UNDEFINABLE_VM): Don't define.
18143         (struct c_label_list): Don't define.
18144         (struct c_label_context_se): Don't define.
18145         (struct c_label_context_vm): Don't define.
18146         (struct c_spot_bindings): Declare.
18147         (c_bindings_start_stmt_expr): Declare.
18148         (c_bindings_end_stmt_expr): Declare.
18149         (lookup_label_for_goto): Declare.
18150         (c_get_switch_bindings, c_release_switch_bindings): Declare.
18151         (c_check_switch_jump_warnings): Declare.
18152         (label_context_stack_se, label_context_stack_vm): Don't declare.
18153         (c_finish_goto_label): Update declaration.
18154         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
18155         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
18156         (Warning Options): Document -Wjump-misses-init.
18157
18158 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
18159
18160         * tree-object-size.c (addr_object_size): Fix a pasto in the last
18161         change.
18162
18163 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18164
18165         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
18166
18167 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18168
18169         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
18170
18171 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18172
18173         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
18174
18175 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18176
18177         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
18178         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18179         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
18180         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
18181         * dwarf2asm.c (dw2_force_const_mem): Update call to
18182         make_decl_one_only.
18183         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
18184         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
18185         * langhooks.c (lhd_comdat_group): Remove.
18186         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
18187         * tree.h (DECL_COMDAT_GROUP): New.
18188         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
18189         (tree_decl_with_vis): Add comdat_group. Remove one_only.
18190         (make_decl_one_only): Change signature.
18191         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
18192         make_decl_one_only.
18193         (make_decl_one_only): Change signature.
18194         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
18195
18196 2009-06-15  Richard Guenther  <rguenther@suse.de>
18197
18198         PR middle-end/40439
18199         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
18200
18201 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18202
18203         * tree-ssa-math-opts.c: Remove extra divide.
18204
18205 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18206
18207         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
18208
18209 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18210
18211         * passes.c: Add bswap pass.
18212         * tree-pass.h: Add pass_optimize_bswap declaration.
18213         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
18214         Include rtl.h, expr.h and optabs.h for optab_handler check.
18215         (struct symbolic_number, pass_optimize_bswap): New definition.
18216         (do_shift_rotate, verify_symbolic_number_p): New functions.
18217         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
18218         (gate_optimize_bswap): New function.
18219         * tree.c (widest_int_cst_value): New function.
18220         * tree.h (widest_int_cst_value): Prototype added.
18221
18222 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
18223
18224         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
18225         REG_EQUAL/REG_EQUIV notes.
18226
18227 2009-06-14  Richard Guenther  <rguenther@suse.de>
18228
18229         PR middle-end/40389
18230         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
18231         has its address taken if NRV was applied and it is addressable.
18232         * tree-ssa-structalias.c (get_constraint_for_address_of): New
18233         function split out from ...
18234         (get_constraint_for_1): ... here.
18235         (handle_rhs_call): Use it to mark the return slot escaped if
18236         it is addressable and NRV was applied.
18237
18238 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18239
18240         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
18241         Change first argument type to location_t.
18242         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
18243         Do not set input_location.
18244         Use loc instead of input_location throughout.
18245
18246 2009-06-13  Richard Guenther  <rguenther@suse.de>
18247
18248         PR tree-optimization/40421
18249         * tree-predcom.c (should_unroll_loop_p): Remove.
18250         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
18251
18252 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18253
18254         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18255         Add location argument.
18256
18257 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18258
18259         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
18260         build_decl.
18261         * config/s390/s390.c (s390_build_builtin_va_list): Same.
18262         (s390_gimplify_va_arg): Pass location to create_artificial_label.
18263         * config/spu/spu-protos.h: Add location to
18264         spu_resolve_overloaded_builtin.
18265         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
18266         spu_build_builtin_va_list.
18267         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
18268         argument.  Pass location to build_function_call_vec.
18269         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
18270         build_decl.
18271         (emit_fpu_switch): Same.
18272         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
18273         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
18274         to build_decl and create_artificial_label.
18275         (xtensa_gimplify_va_arg_expr): Same.
18276         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
18277         (xstormy16_gimplify_va_arg_expr): Same.
18278         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
18279         * config/arm/arm.c (arm_build_builtin_va_list): Same.
18280         * config/mips/mips.c (mips_build_builtin_va_list): Same.
18281         (mips16_build_function_stub): Same.
18282         (mips16_build_call_stub): Same.
18283
18284 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
18285
18286         PR target/40327
18287         * arm/constraints.md (Pa, Pb): New constraints.
18288         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
18289         split pattern to deal with them.
18290
18291 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
18292
18293         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
18294         fix index entry for -Xpreprocessor.
18295
18296 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18297
18298         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18299         Add location argument to build_decl call.
18300         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
18301         (rs6000_init_builtins): Same.
18302         (spe_init_builtins): Same.
18303         (rs6000_gimplify_va_arg): Add location argument to
18304         create_artificial_label call.
18305
18306 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
18307
18308         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
18309         * combine-stack-adj.c (pass_stack_adjustments): Use it.
18310         * Makefile.in: Fix GGC dependency for gcse.o.
18311
18312 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18313
18314         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
18315         * gimple-pretty-print.c (dump_gimple_stmt): Same.
18316         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
18317         created.
18318         * c-parser.c (c_parser_binary_expression): Use current column while
18319         building binary operations.
18320         * common.opt (fshow-column): Enable by default.
18321         * tree-vrp.c (check_array_ref): Use warning_at.
18322         (check_array_bounds): Use location from call back if expr has no
18323         location.
18324         * tree.h: Add location argument to maybe_fold_*.
18325         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
18326         (maybe_fold_offset_to_array_ref): Add location argument and use it.
18327         (maybe_fold_offset_to_component_ref): Same.
18328         (maybe_fold_offset_to_reference): Same.
18329         (maybe_fold_offset_to_address): Same.
18330         (maybe_fold_stmt_indirect): Same.
18331         (maybe_fold_stmt_addition): Same.
18332         (fold_stmt_r): Pass location to maybe_fold_*.
18333         (fold_gimple_assign): Same.
18334         * c-tree.h: Add location argument to finish_decl,
18335         default_function_array_conversion, store_init_value.
18336         * c-decl.c (define_label): Use error_at.
18337         (c_make_fname_decl): Pass location to finish_decl.
18338         (finish_decl): New location argument.
18339         (build_compound_literal): Pass location to store_init_value.
18340         (grokdeclarator): Pass location to finish_decl.
18341         (grokfield): Same.
18342         * c-typeck.c (array_to_pointer_conversion): New location argument.
18343         (function_to_pointer_conversion): Same.
18344         (default_function_array_conversion): Same.
18345         (parser_build_unary_op): Pass location to overflow_warning.
18346         (parser_build_binary_op): Same.  Use warning_at.
18347         (build_unary_op): Pass location to array_to_pointer_conversion.
18348         (build_c_cast): Pass location to digest_init.
18349         (build_modify_expr): New location argument.
18350         (convert_for_assignment): Same.
18351         (store_init_value): Same.
18352         (digest_init): Same.
18353         (output_init_element): Pass location to digest_init and
18354         array_to_pointer_conversion.
18355         (c_finish_return): Pass location to convert_for_assignment.
18356         * gimplify.c (gimplify_conversion): Pass location to
18357         maybe_fold_offset_to_address.
18358         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
18359         to maybe_fold_stmt_addition.
18360         * c-omp.c (c_finish_omp_atomic): Pass new location to
18361         build_modify_expr.
18362         (c_finish_omp_for): Same.
18363         * c-common.c (overflow_warning): New argument.
18364         * c-common.h: New argument to build_modify_expr, overflow_warning.
18365         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
18366         finish_decl.
18367         (c_parser_initializer): Pass location to
18368         default_function_array_conversion.
18369         (c_parser_initelt): Same.
18370         (c_parser_initval): Same.
18371         (c_parser_asm_operands): Same.
18372         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
18373         (c_parser_conditional_expression): Same.
18374         (c_parser_binary_expression): Add location info to stack.  Use it.
18375         (c_parser_unary_expression): Pass location to
18376         default_function_array_conversion, parser_build_unary_op,
18377         build_indirect_ref, c_parser_postfix_expression_after_primary.
18378         (c_parser_postfix_expression_after_primary): New location argument.
18379         Use it.
18380         (c_parser_expression_conv): Pass location to
18381         default_function_array_conversion.
18382         (c_parser_expr_list): Same.
18383         (c_parser_omp_atomic): Same.
18384         (c_parser_omp_for_loop): Same.
18385         * c-tree.h (struct c_declarator): Add comment to id_loc.
18386         (build_array_declarator): New argument.
18387         * c-decl.c (build_array_declarator): Add location argument.
18388         (grokdeclarator): Set id_loc for cdk_array.
18389         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
18390         build_array_declarator.
18391         * tree.c (build_omp_clause): Add location argument.
18392         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
18393         (OMP_CLAUSE_LOCATION): New macro.
18394         (struct tree_omp_clause): Add location field.
18395         (build_omp_clause): Add argument.
18396         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
18397         build_omp_clause.
18398         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
18399         (cp_parser_omp_clause_collapse): Same.
18400         (cp_parser_omp_clause_default): Same.
18401         (cp_parser_omp_clause_if): Same.
18402         (cp_parser_omp_clause_nowait): Same.
18403         (cp_parser_omp_clause_num_threads): Same.
18404         (cp_parser_omp_clause_ordered): Same.
18405         (cp_parser_omp_clause_schedule): Same.
18406         (cp_parser_omp_clause_untied): Same.
18407         (cp_parser_omp_for_loop): Same.
18408         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18409         * c-tree.h (c_start_case): Add location argument.
18410         (c_process_expr_stmt): Same.
18411         (c_finish_goto_*): Same.
18412         * tree-parloops.c (initialize_reductions): Pass location to
18413         build_omp_clause.
18414         (create_parallel_loop): Same.
18415         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
18416         (gfc_trans_omp_reduction_list): Same.
18417         (gfc_trans_omp_clauses): Same.
18418         (gfc_trans_omp_do): Same.
18419         * c-typeck.c (c_finish_goto_label): Same.
18420         (c_finish_goto_ptr): New location argument.
18421         (c_start_case): Same.
18422         (emit_side_effect_warnings): Same.
18423         (c_process_expr_stmt): Same.
18424         (c_finish_stmt_expr): Same.
18425         (c_finish_omp_clauses): Use error_at instead of error.
18426         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
18427         build_omp_clause.
18428         * c-omp.c (c_split_parallel_clauses): New location argument.
18429         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
18430         to build_omp_clause.
18431         (convert_local_reference_stmt): Same.
18432         (convert_gimple_call): Same.
18433         * c-common.h (c_split_parallel_clauses): New argument.
18434         * c-parser.c (c_parser_statement_after_labels): Pass location to
18435         c_finish_goto_label.
18436         (c_parser_switch_statement): Pass location to c_start_case.
18437         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
18438         and c_process_expr_stmt.
18439         (c_parser_omp_variable_list): Add location argument.
18440         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
18441         (c_parser_omp_clause_default): Same.
18442         (c_parser_omp_clause_if): Same.
18443         (c_parser_omp_clause_num_threads): Same.
18444         (-c_parser_omp_clause_ordered): Same.
18445         (c_parser_omp_clause_reduction): Pass location to
18446         c_parser_omp_variable_list.
18447         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
18448         (c_parser_omp_clause_untied): Same.
18449         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
18450         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18451
18452         * c-tree.h (check_for_loop_decls, undeclared_variable,
18453         build_component_ref, build_array_ref, build_external_ref,
18454         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
18455         build_conditional_expr, build_compound_expr, c_cast_expr,
18456         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
18457         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
18458         argument.
18459         * c-semantics.c (build_stmt): Same.
18460         (build_case_label): Same.
18461         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
18462         (undeclared_variable): New argument.
18463         (make_label): Same.
18464         (lookup_label): Pass location on down.
18465         (define_label): Same.
18466         (finish_decl): Same.
18467         (build_compound_literal): Same.
18468         (finish_struct): Same.
18469         (finish_function): Do not set location here.
18470         (check_for_loop_decls): New argument.
18471         * tree.c (save_expr): Set location.
18472         (build_empty_stmt): New argument.
18473         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
18474         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
18475         * builtins.c (gimplify_va_arg_expr): Use locations.
18476         (expand_builtin_sync_operation): Same.
18477         * c-typeck.c (build_component_ref): New argument.
18478         (build_array_ref): Same.
18479         (build_external_ref): Same.
18480         (c_expr_sizeof_expr): Same.
18481         (c_expr_sizeof_type): Same.
18482         (parser_build_unary_op): Same.
18483         (build_conditional_expr): Same.
18484         (build_compound_expr): Pass location on down.
18485         (build_compound_expr): New argument.
18486         (build_c_cast): Same.
18487         (c_cast_expr): Same.
18488         (build_asm_expr): Same.
18489         (c_finish_return): Same.
18490         (c_process_expr_stmt): Pass location on down.
18491         (c_finish_stmt_expr): New argument.
18492         (push_clenaup): Same.
18493         (c_finish_omp_parallel): Same.
18494         (c_finish_omp_task): Same.
18495         * gimplify.c (gimplify_call_expr): Pass location on down.
18496         * c-omp.c (c_finish_omp_master): New argument.
18497         (c_finish_omp_critical): Same.
18498         (c_finish_omp_ordered): Same.
18499         (c_finish_omp_barrier): Same.
18500         (-c_finish_omp_taskwait): Same.
18501         (c_finish_omp_atomic): Same.
18502         (c_finish_omp_flush): Same.
18503         * tree-inline.c (copy_tree_body_r): Pass location on down.
18504         (inline_forbidden_p): Remove use of input_location.
18505         * c-gimplify.c (c_build_bind_expr): New argument.
18506         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
18507         (c_sizeof_or_alignof_type): New argument.
18508         (c_alignof_expr): Same.
18509         (build_va_arg): Same.
18510         (c_add_case_label): Same.
18511         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
18512         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
18513         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
18514         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
18515         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
18516         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
18517         New argument.
18518         * stub-objc.c (objc_build_selector_expr): Same.
18519         (objc_build_throw_stmt): Same.
18520         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
18521         (c_parser_initelt): Same.
18522         (c_parser_compound_statement): Same.
18523         (c_parser_compound_statement_nostart): Same.
18524         (c_parser_label): Same.
18525         (c_parser_statement_after_labels): Same.
18526         (c_parser_if_body): Same.
18527         (c_parser_else_body): Same.
18528         (c_parser_if_statement): Same.
18529         (c_parser_switch_statement): Same.
18530         (c_parser_while_statement): Same.
18531         (c_parser_do_statement): Same.
18532         (c_parser_for_statement): Same.
18533         (c_parser_asm_statement): Same.
18534         (c_parser_conditional_expression): Same.
18535         (c_parser_binary_expression): Same.
18536         (c_parser_cast_expression): Same.
18537         (c_parser_unary_expression): Same.
18538         (c_parser_sizeof_expression): Same.
18539         (c_parser_alignof_expression): Same.
18540         (c_parser_postfix_expression): Same.
18541         (c_parser_expression): Same.
18542         (c_parser_objc_receiver): Same.
18543         (c_parser_omp_variable_list): Same.
18544         (c_parser_omp_structured_block): Same.
18545         (c_parser_omp_atomic): New argument.
18546         (c_parser_omp_barrier): Same.
18547         (c_parser_omp_critical): Same.
18548         (c_parser_omp_flush): Pass location on down.
18549         (c_parser_omp_for_loop): New argument.
18550         (c_parser_omp_for): Same.
18551         (c_parser_omp_master): Same.
18552         (c_parser_omp_ordered): Same.
18553         (c_parser_omp_sections_scope): Same.
18554         (c_parser_omp_sections): Same.
18555         (c_parser_omp_parallel): Same.
18556         (c_parser_omp_single): Same.
18557         (c_parser_omp_task): Same.
18558         (c_parser_omp_taskwait): Pass location on down.
18559         (c_parser_omp_construct): Same.
18560         (c_parser_omp_threadprivate): Same.
18561         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
18562         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
18563         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
18564         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
18565         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
18566         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
18567         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
18568         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
18569         config/i386/i386.c, stmt.c:
18570         Add location argument to the following function definitions and/or
18571         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
18572         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
18573         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
18574         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
18575         do_case, c_finish_bc_stmt, build_compound_literal,
18576         build_function_call.
18577         * c-decl.c (build_compound_literal): Add location argument.
18578         Make all diagnostic calls use location.
18579         (start_struct): Same.
18580         (finish_struct): Same.
18581         (start_enum): Same.
18582         (build_enumerator): Same.
18583         (start_function): Same.
18584         (grokdeclarator): Make all diagnostic calls use location.
18585         (store_parm_decls_oldstyle): Same.
18586         * c-typeck.c (build_function_call): Add location argument.
18587         Make all diagnostic calls use location.
18588         (do_case): Same.
18589         (c_finish_bc_stmt): Same.
18590         * tree-nested.c (get_trampoline_type): Add argument.
18591         Pass location to build_decl.
18592         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
18593         * rtl.h (RTL_LOCATION): New.
18594         * c-common.c (c_add_case_label): Add location argument.
18595         Make all diagnostic calls use location.
18596         * c-common.h: Add location argument to make_fname_decl, do_case,
18597         c_add_case_label, build_function_call, resolve_overloaded_builtin.
18598         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
18599         Set it appropriately for every case.  Pass enum_loc to start_enum
18600         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
18601         parser_xref_tag.
18602         (c_parser_struct_or_union_specifier): Save location.  Use it for
18603         start_struct, finish_struct, and parser_xref_tag.
18604
18605 2009-06-12  Ian Lance Taylor  <iant@google.com>
18606
18607         * fold-const.c (fold_unary): Rename local variable and to and_expr.
18608
18609         * c-opts.c (c_common_handle_option): For -Wc++-compat set
18610         cpp_opts->warn_cxx_operator_names.
18611
18612 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18613
18614         PR tree-opt/38865
18615         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
18616         is returns NULL and OP is a VCE, look through the VCE.
18617
18618 2009-06-12  Ian Lance Taylor  <iant@google.com>
18619
18620         PR bootstrap/40430
18621         * collect2.c (main): Use CONST_CAST2 in code inside #if
18622         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
18623
18624 2009-06-12  Joey Ye  <joey.ye@intel.com>
18625
18626         PR middle-end/39146
18627         * cfgexpand.c (get_decl_align_unit): Update
18628         max_used_stack_slot_alignment with align instead of
18629         stack_alignment_needed.
18630
18631         * function.c (assign_stack_local_1): Update
18632         max_used_stack_slot_alignment with alignment_in_bits instead
18633         of stack_alignment_needed.
18634         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
18635         here.
18636
18637 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
18638
18639         * dwarf2out.c (last_var_location_insn): New variable.
18640         (dwarf2out_end_epilogue): Clear last_var_location_insn.
18641         (dwarf2out_var_location): Don't record anything after last real
18642         insn.  Only change labels if there were any real instructions
18643         in between last note and this one, or if changed sections.
18644
18645 2009-06-11  Richard Henderson  <rth@redhat.com>
18646
18647         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
18648         note when storing the frame pointer in a register.
18649         (FRP): Don't redefine to nothing for epilogue.
18650         (alpha_expand_epilogue): Mark register and sp restores.
18651         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
18652
18653         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
18654         when gen_lowpart is needed.
18655
18656 2009-06-11  Richard Henderson  <rth@redhat.com>
18657
18658         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
18659
18660         * dwarf2out.c (need_data_align_sf_opcode): New.
18661         (div_data_align): Move earlier.
18662         (def_cfa_1, reg_save): Use it.
18663
18664 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
18665
18666         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
18667         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
18668         (ix86_handle_option): Handle OPT_mcrc32.
18669         (ix86_target_string): Add -mcrc32.
18670         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
18671
18672         * config/i386/i386.h (TARGET_CRC32): New.
18673
18674         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
18675         (sse4_2_crc32di): Likewise.
18676
18677         * config/i386/i386.opt (mcrc32): New.
18678
18679         * doc/invoke.texi: Document -mcrc32.
18680
18681 2009-06-11  Richard Henderson  <rth@redhat.com>
18682
18683         * common.opt (gdwarf-): Accept a version number.
18684         * doc/invoke.texi (gdwarf-): Update docs.
18685         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
18686         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
18687         version level, and record it.
18688
18689         * dwarf2.h (DW_CIE_VERSION): Remove.
18690         * dwarf2out.c (DWARF_VERSION): Remove.
18691         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
18692         (output_call_frame_info): Use CIE version 3 for dwarf3,
18693         or if the return register column is out of range for version 1.
18694         (dwarf_stack_op_name): Add all dwarf3 values.
18695         (DEBUG_PUBTYPES_SECTION): New.
18696         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
18697         encoding change for dwarf3.
18698         (output_die) [dw_val_class_die_ref]: Likewise.
18699         (output_compilation_unit_header): Emit correct version for dwarf3.
18700         (output_line_info): Likewise.
18701         (output_pubnames): Update for DWARF_VERSION removal.
18702         (output_aranges): Likewise.
18703         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
18704         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
18705         (dwarf2out_finish): Likewise.
18706
18707 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18708
18709         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
18710         in r148403.
18711
18712 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18713
18714         PR c/39252
18715         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
18716         * builtins.c (expand_builtin_unreachable): New function.
18717         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
18718         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
18719         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
18720         successors.
18721         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
18722         searching for missing barriers.
18723
18724 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18725
18726         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
18727         when -fprofile-generate* was passed.
18728         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
18729
18730 2009-06-11  Anthony Green  <green@moxielogic.com>
18731
18732         * config/moxie/moxie.md: Define length attribute for all instructions.
18733         (rCC): Define.
18734         (*b<cond:code>): Support limited branch ranges for new PC-relative
18735         branch instructions.
18736         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
18737
18738 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
18739
18740         * config/i386/i386.c (min_insn_size): Use get_attr_length
18741         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
18742         For __asm return 0.
18743
18744         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
18745         instead of emit_insn_before.
18746
18747 2009-06-10  Ian Lance Taylor  <iant@google.com>
18748
18749         PR bootstrap/40408
18750         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
18751         GIMPLE_SWITCH.
18752
18753 2009-06-10  Revital Eres  <eres@il.ibm.com>
18754
18755         * passes.c (init_optimization_passes): Reschedule
18756         predictive-commoning pass before complete unroll pass.
18757
18758 2009-06-10  Martin Jambor  <mjambor@suse.cz>
18759
18760         * cgraph.c (cgraph_node_can_be_local_p): New function.
18761         (cgraph_make_node_local): New function.
18762         * cgraph.h (cgraph_node_can_be_local_p): Declare.
18763         (cgraph_make_node_local): Declare.
18764
18765 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
18766
18767         * tree.h (tree_base): Add packed_flag and user_align fields.
18768         Decrease size of spare field.
18769         (TYPE_USER_ALIGN): Use user_align from tree_base.
18770         (DECL_USER_ALIGN): Likewise.
18771         (TYPE_PACKED): Use packed_flag from tree_base.
18772         (DECL_PACKED): Likewise.
18773         (tree_type): Delete packed_flag and user_align fields.  Widen
18774         precision field.  Widen mode field and shuffle fields to align
18775         mode on an 8-bit boundary.
18776         (tree_decl_common): Delete decl_flag_1 and user_align fields.
18777         Renumber decl_flag_* fields.  Fix comments.  Widen
18778         decl_common_unused field.
18779         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
18780         (DECL_EXTERNAL): Likewise.
18781         (DECL_BIT_FIELD): Likewise.
18782         (DECL_NONADDRESSABLE_P): Likewise.
18783         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
18784         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
18785
18786 2009-06-10  Ian Lance Taylor  <iant@google.com>
18787
18788         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
18789         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
18790         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
18791         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
18792         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
18793         DEF_VEC_ALLOC_FUNC_P.
18794         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
18795         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
18796         DEF_VEC_ALLOC_FUNC_O.
18797         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
18798         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
18799         DEF_VEC_ALLOC_FUNC_I.
18800         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
18801         (vec_stack_p_reserve_exact_1): Declare.
18802         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
18803         (vec_stack_free): Declare.
18804         (VEC_stack_alloc): Define.
18805         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
18806         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
18807         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
18808         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
18809         for void_p.
18810         (stack_vecs): New static variable.
18811         (vec_stack_p_reserve_exact_1): New function.
18812         (vec_stack_o_reserve_1): New static function.
18813         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
18814         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
18815         (vec_stack_free): New function.
18816         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
18817         (VEC_df_ref_stack_alloc): Define.
18818         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
18819         DEF_VEC_ALLOC_P_STACK.
18820         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
18821         (struct df_collection_rec): Change _vec fields to VEC.  Remove
18822         _use fields.
18823         (df_free_collection_rec): Adjust for new fields.
18824         (df_insn_rescan): Use new df_collection_rec fields.
18825         (df_notes_rescan, df_canonize_collection_rec): Likewise.
18826         (df_ref_create_structure, df_ref_record): Likewise.
18827         (df_get_conditional_uses, df_get_call_refs): Likewise.
18828         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
18829         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
18830         (df_record_exit_block_uses, df_bb_verify): Likewise.
18831         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
18832         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
18833         Remove count parameter.  Change return type to void.  Change all
18834         callers.
18835         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
18836         Remove count parameter.  Change return type to void.  Change all
18837         callers.
18838         (df_install_refs): Change old_vec parameter to VEC.  Remove count
18839         parameter.  Change all callers.
18840         (df_install_mws): Change old_vec parameter to VEC.  Remove count
18841         parameter.  Change all callers.
18842         (df_refs_verify): Change new_rec parameter to VEC.  Change call
18843         callers.
18844         (df_mws_verify): Likewise.
18845
18846 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
18847
18848         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
18849
18850 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
18851
18852         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
18853
18854 2009-06-10  Anthony Green  <green@moxielogic.com>
18855
18856         * config/moxie/crti.asm: New file.
18857         * config/moxie/crtn.asm: New file.
18858         * config/moxie/moxie.c: New file.
18859         * config/moxie/moxie.h: New file.
18860         * config/moxie/sfp-machine.h: New file.
18861         * config/moxie/moxie-protos.h: New file.
18862         * config/moxie/t-moxie: Created.
18863         * config/moxie/t-moxie-softfp: Created.
18864         * config/moxie/moxie.md: Created.
18865         * config/moxie/constraints.md: Created.
18866         * config.gcc: Add moxie support.
18867         * doc/md.texi (Machine Constraints): Add moxie constraints.
18868         * doc/contrib.texi (Contributors): Mention moxie port.
18869         * doc/install.texi (Specific): Mention the moxie port.
18870
18871 2009-06-09  Ian Lance Taylor  <iant@google.com>
18872
18873         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
18874         compiling with C++.
18875         * optabs.c (optab_table): Only use designated initializers if
18876         HAVE_DESIGNATED_INITIALIZERS is defined.
18877         (convert_optab_table): Likewise.
18878         (init_optabs): Always call init_insn_codes if
18879         HAVE_DESIGNATED_INITIALIZERS is not defined.
18880
18881 2009-06-09  Ian Lance Taylor  <iant@google.com>
18882
18883         * targhooks.c (default_builtin_vectorized_function): Change fn
18884         parameter to unsigned int.
18885         (default_builtin_vectorized_conversion): Change code parameter to
18886         unsigned int.
18887         (default_builtin_reciprocal): Change fn parameter to unsigned int.
18888         * targhooks.h: Update declarations.
18889         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
18890         parameter to unsigned int.
18891
18892         * c-typeck.c (comptypes_check_enum_int): New static function.
18893         (comptypes_internal): Add enum_and_int_p parameter.  Change all
18894         callers.
18895         (comp_target_types): Add location parameter.  Change all callers.
18896         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
18897         Change all callers.
18898         (function_types_compatible_p, type_lists_compatible_p): Likewise.
18899         (build_conditional_expr): Add colon_loc parameter.  Change all
18900         callers.
18901         (convert_for_assignment): Add location parameter.  Change all callers.
18902         * c-parser.c (c_parser_conditional_expression): Pass location of
18903         colon to build_conditional_expr.
18904         * c-tree.h (build_conditional_expr): Update declaration.
18905
18906 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
18907
18908         * graphite.c: Revert previous patch.
18909
18910 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
18911
18912         PR bootstrap/40103
18913         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
18914
18915 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
18916
18917         * tree-ssa-loop-prefetch.c
18918         (loop_prefetch_arrays): Fixed a portability problem in printf format
18919         string.
18920
18921 2009-06-09  Martin Jambor  <mjambor@suse.cz>
18922
18923         PR tree-optimization/40351
18924         * tree-sra.c (propagate_subacesses_accross_link): Check that a
18925         refrence to a potential artifical subaccess can be constructed.
18926
18927 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18928
18929         * config/sh/sh-protos.h (sh_optimization_options): Declare.
18930         (sh_override_options): Likewise.
18931         * config/sh/sh.c: Include params.h.
18932         (sh_optimization_options): New.
18933         (sh_override_options): Likewise.
18934         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
18935         (OVERRIDE_OPTIONS): Use sh_override_options.
18936
18937 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
18938
18939         * dwarf2out.c (emit_cfa_remember): New variable.
18940         (add_fde_cfi): If emit_cfa_remember, recurse to add
18941         DW_CFA_remember_state first.
18942         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
18943         instead just set emit_cfa_remember.
18944
18945 2009-06-08  Jan Hubicka  <jh@suse.cz>
18946
18947         PR debug/40126
18948         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
18949
18950 2009-06-08  Jan Hubicka  <jh@suse.cz>
18951
18952         PR middle-end/39834
18953         * cgraphunit.c (save_inline_function_body): Do not copy transform
18954         hooks for saved inline bodies.
18955         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
18956         for given function.
18957
18958 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
18959
18960         * jump.c (returnjump_p): Handle delayed branches.  Add missing
18961         function comment.
18962
18963 2009-06-08  Jan Hubicka  <jh@suse.cz>
18964
18965         PR middle-end/40102
18966         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
18967         original node might've been modified.
18968         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
18969
18970 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
18971
18972         * tree-object-size.c (addr_object_size): Add OSI argument.
18973         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
18974         (compute_builtin_object_size, expr_object_size): Adjust callers.
18975         (plus_stmt_object_size): Call addr_object_size instead of
18976         compute_builtin_object_size.
18977
18978 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
18979             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
18980
18981         * tree-ssa-loop-prefetch.c
18982         (gather_memory_references): Introduced a counter for the number of
18983         memory references.
18984         (anything_to_prefetch_p): Introduced a counter for the number of
18985         prefetches.
18986         (is_loop_prefetching_profitable): New function with a cost model
18987         for prefetching.
18988         (loop_prefetch_arrays): Use the new cost model to determine if
18989         prefetching is profitable.
18990         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
18991         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18992         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
18993         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18994         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
18995         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
18996
18997 2009-06-08  Michael Matz  <matz@suse.de>
18998
18999         PR debug/40012
19000         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
19001         partitions use the same.
19002         (expand_one_var): Deal with DECL_RTL sometimes begin set also
19003         for basevars of SSA_NAMEs.
19004         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
19005         to not expand them twice.
19006         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
19007         multiple places.
19008
19009 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
19010
19011         * common.opt (fcompare-debug=, fcompare-debug-second): New.
19012         (fdump-final-insns=, gtoggle): New.
19013         * doc/invoke.texi: Document them.
19014         * final.c (rest_of_clean_state): Dump final insn stream.
19015         * gcc.c (invoke_as): Hook in -fcompare-debug.
19016         (static_spec_functions): Add compare-debug-dump-opt,
19017         compare-debug-self-opt and compare-debug-auxbase-opt.
19018         (compare_debug, compare_debug_second, compare_debug_opt): New.
19019         (switches_debug_check, n_switches_debug_check): New.
19020         (debug_auxbase_opt, debug_check_temp_file): New.
19021         (process_command): Handle -fno-compare-debug, -fcompare-debug and
19022         -fcompare-debug=*.
19023         (do_self_spec): Handle arguments after switches.
19024         (do_spec_1): Add .gk extension to temp file basenames for compare.
19025         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
19026         (cc1_options): Use it instead of normal auxbase computation for
19027         the second compare-debug compilation.
19028         (compare_files): New.
19029         (main): Set up and implement compare debug mode.
19030         (compare_debug_dump_opt_spec_function): New.
19031         (compare_debug_self_opt_spec_function): New.
19032         (compare_debug_auxbase_opt_spec_function): New.
19033         * toplev.c (process_options): Handle flag_gtoggle,
19034         flag_dump_final_insns.
19035         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
19036         during -fcompare-debug-second compilation.
19037
19038 2009-06-07  Ian Lance Taylor  <iant@google.com>
19039
19040         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
19041         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
19042
19043         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
19044         with no default node.  Change warning with %H to warning_at.
19045         Don't clear warn_switch around case checking.
19046         * doc/invoke.texi (Warning Options): Clarify distinction between
19047         -Wswitch and -Wswitch-enum.
19048
19049 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19050
19051         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
19052
19053 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19054
19055         * gbl-ctors.h: Add header guard.
19056
19057 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19058
19059         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
19060         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
19061         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
19062         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
19063         prototypes for removed functions.
19064         (expressions_equal_p): Move to ...
19065         * tree-ssa-sccvn.h: ... here and ...
19066         * matrix-reorg.c: ... adjust includes.
19067
19068 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19069
19070         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
19071
19072 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19073
19074         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
19075         (finish_function): Remove erroneous whitespace.
19076
19077 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19078
19079         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
19080         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
19081
19082 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19083
19084         * errors.c (internal_error): Commentary typo fix.
19085         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
19086         * tree-ssa-pre.c: Ditto.
19087
19088 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19089
19090         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
19091         them is supposed to hold actual statements.
19092
19093 2009-06-06  Ian Lance Taylor  <iant@google.com>
19094
19095         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
19096         empty statements can now have attributes.
19097
19098 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
19099
19100         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
19101         * config/mips/mips.md: Ditto.
19102
19103 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19104
19105         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
19106         _RELOCATABLE.
19107         (__eabi_uconvert): Likewise.
19108
19109 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19110
19111         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
19112         CFI_* definitions with IN_GCC.
19113
19114 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
19115
19116         * xcoffout.h (xcoffout_source_line): Update prototype.
19117
19118 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19119
19120         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
19121         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
19122
19123 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19124
19125         PR middle-end/40340
19126         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
19127         inlined_function_outer_scope_p blocks for artificial inlines
19128         even at -g0/-g1.
19129         * tree.c (tree_nonartificial_location): Rewrite using
19130         block_nonartificial_location.
19131
19132 2009-06-05  Revital Eres  <eres@il.ibm.com>
19133             Leehod Baruch  <leehod@il.ibm.com>
19134
19135         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
19136         (expand_expr_real_1): Remove comment.
19137         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19138         Vectorize misaligned access when the target supports it.
19139         (vect_supportable_dr_alignment): Check for unaligned access support.
19140         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
19141         and remove asset.
19142
19143 2009-06-05  Julian Brown  <julian@codesourcery.com>
19144
19145         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
19146         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
19147
19148 2009-06-05  Richard Guenther  <rguenther@suse.de>
19149
19150         PR bootstrap/40350
19151         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
19152         as possibly unused.
19153
19154 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19155
19156         * config/s390/s390.c (global_not_special_regno_p): New static inline.
19157         (save_gprs): Don't tell unwinder when a global register is saved.
19158         (s390_emit_epilogue): Emit needed epilogue unwind info.
19159
19160 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19161
19162         * dwarf2out.c (deferred_asm_name): New.
19163         (add_name_and_src_coords_attributes): Defer creation of
19164         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
19165         computed yet.
19166         (move_linkage_attr): New.
19167         (dwarf2out_finish): Revisit deferrals and emit attributes at the
19168         right place.
19169
19170 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19171
19172         * tree-nested.c (finalize_nesting_tree_1): Declare the
19173         frame_decl in the binding tree.
19174
19175 2009-06-04  Cary Coutant  <ccoutant@google.com>
19176
19177         * basic-block.h (struct basic_block_def): Add discriminator field.
19178         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
19179         callers.
19180         * debug.c (do_nothing_debug_hooks): Add additional entry.
19181         (debug_nothing_int_charstar_int): New function.
19182         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
19183         (debug_nothing_int_charstar_int): New declaration.
19184         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
19185         discriminator value in .loc directive.
19186         * final.c (last_discriminator): New variable.
19187         (discriminator): New variable.
19188         (final_start_function): Initialize above variables, pass current
19189         discriminator to debug hook.
19190         (notice_source_line): Check for discriminator change.
19191         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
19192         * sdbout.c (sdbout_source_line): New parameter.
19193         * tree-cfg.c (struct locus_discrim_map): New structure type.
19194         (discriminator_per_locus): New hash table.
19195         (build_gimple_cfg): Allocate and free discriminator hash table.
19196         (make_edges): Call assign_discriminator.
19197         (locus_map_hash): New function.
19198         (locus_map_eq): New function.
19199         (next_discriminator_for_locus): New function.
19200         (same_line_p): New function.
19201         (assign_discriminator): New function.
19202         (make_cond_expr_edges): Call assign_discriminator.
19203         (make_gimple_switch_edges): Likewise.
19204         (first_non_label_stmt): New function.
19205         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
19206         all callers.
19207         * xcoffout.c (xcoffout_source_line): Add new parameter.
19208
19209         * configure.ac (gcc_cv_as_discriminator): New configury check for
19210         gas support for discriminator.
19211         * configure: Regenerate.
19212         * config.in: Regenerate.
19213
19214 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19215
19216         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
19217         val after checking for integers.
19218
19219 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
19220
19221         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
19222         X64_REGPARM_MAX.
19223         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
19224         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
19225         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
19226         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
19227         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
19228         X64_SSE_REGPARM_MAX.
19229         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
19230         X64_SSE_REGPARM_MAX.
19231
19232 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19233
19234         * gcc.c (report_times_to_file): New.
19235         (execute): Implement it.
19236         (process_command): Support -time=.
19237         * doc/invoke.texi: Document it.
19238
19239 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19240
19241         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
19242         that have value exprs.
19243
19244 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19245
19246         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
19247         declarations for constants until...
19248         (dw2_output_indirect_constant_1): ... this point.
19249
19250 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
19251
19252         PR target/10242
19253         * arm.md (arm_addsi3): Don't try to split an add with an
19254         eliminable register until after reload has completed.
19255
19256 2009-06-03  Ian Lance Taylor  <iant@google.com>
19257
19258         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
19259         * genattrtab.c (write_length_unit_log): Likewise.
19260         * genchecksum.c (dosum): Likewise.
19261         * gengtype.c (write_rtx_next): Likewise.
19262         (finish_root_table, write_roots): Likewise.
19263         * gimple.c (gimple_ops_offset_): Likewise.
19264         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
19265         * config/arc/arc.c (arc_attribute_table): Likewise.
19266         * config/arm/arm.c (arm_attribute_table): Likewise.
19267         * config/avr/avr.c (avr_attribute_table): Likewise.
19268         * config/crx/crx.c (crx_attribute_table): Likewise.
19269         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
19270         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
19271         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
19272         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
19273         * config/sh/sh.c (sh_attribute_table): Likewise.
19274         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
19275         * config/spu/spu.c (spu_attribute_table): Likewise.
19276         * config/v850/v850.c (v850_attribute_table): Likewise.
19277
19278         * config/alpha/alpha.c (vms_attribute_table): Make static.
19279         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
19280         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
19281         * config/mips/mips.c (mips_attribute_table): Likewise.
19282
19283         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
19284         $(SYSTEM_H).
19285         (cc1-checksum.o): Likewise.
19286
19287 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
19288
19289         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
19290
19291 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
19292
19293         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
19294         insn if it is changing sp.  Use gen_add3_insn instead of
19295         conditionally gen_addsi3 and gen_adddi3.
19296         (offset_below_red_zone_p): New static inline function.
19297         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
19298         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
19299         * config/rs6000/ppc-asm.h: Include auto-host.h.
19300         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
19301         CFI_RESTORE): Define.
19302         * config/rs6000/crtresxgpr.asm: Add unwind info.
19303         * config/rs6000/crtresxfpr.asm: Likewise.
19304         * config/rs6000/crtresgpr.asm: Likewise.
19305         * config/rs6000/crtresfpr.asm: Likewise.
19306         * config/rs6000/crtsavgpr.asm: Likewise.
19307         * config/rs6000/crtsavfpr.asm: Likewise.
19308
19309         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
19310         argument of DWARF2_FRAME_REG_OUT macros.
19311
19312 2009-06-03  Julian Brown  <julian@codesourcery.com>
19313
19314         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
19315         words or less (including TImode) in core registers.
19316
19317 2009-06-03  Richard Guenther  <rguenther@suse.de>
19318
19319         PR middle-end/40328
19320         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
19321
19322 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
19323
19324         * statistics.c (statistics_counter_event): Do not record event
19325         in pass dump if its number == -1.
19326         (curr_statistics_hash): Add assert that we never get passes
19327         with static number == -1.
19328
19329 2009-06-03  Richard Guenther  <rguenther@suse.de>
19330             Andrey Belevantsev  <abel@ispras.ru>
19331
19332         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
19333         non-BLKmode arrays addressable.
19334
19335 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
19336
19337         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
19338         * config/m68k/m68k.h: ... here.
19339
19340 2009-06-03  Martin Jambor  <mjambor@suse.cz>
19341
19342         PR tree-optimization/40323
19343         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
19344         assignment.
19345
19346 2009-06-03  Richard Guenther  <rguenther@suse.de>
19347
19348         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19349         consistently.
19350
19351 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
19352
19353         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
19354         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
19355         JUMP_TABLE_DATA_P where applicable.
19356         * config/sh/sh.c: Ditto.
19357         * config/sh/sh.h: Ditto.
19358         * config/sh/sh.md: Ditto.
19359         * config/sh/symbian.c: Ditto.
19360
19361 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
19362
19363         * config/i386/driver-i386.c (describe_cache): Optimize
19364         concatenation of strings.  Use snprintf instead of sprintf.
19365         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
19366         target when not compiling with GCC.
19367
19368 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
19369
19370         * config/sh/sh.c: Revert last change.
19371         (sh_expand_epilogue): Emit a blockage insn before the frame
19372         pointer adjustment unconditionally.
19373
19374 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19375
19376         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
19377         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
19378         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
19379         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
19380         to COLLECT_GCC_OPTIONS.
19381
19382 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19383
19384         * collect2.c (target_system_root): New variable.
19385         (main): Handle --sysroot=.
19386         (ignore_library): Strip the sysroot from the library path.
19387
19388 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19389
19390         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
19391         (collect2.o): Depend on collect2-aix.h.
19392         (collect2-aix.o): New rule.
19393         * collect2-aix.h: New file.
19394         * collect2-aix.c: Likewise.
19395         * collect2.c: Include collect2-aix.h.  Don't undefine
19396         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
19397         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
19398         Use TARGET_AIX_VERSION instead of _AIX51.
19399         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
19400         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
19401         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
19402         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
19403         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
19404
19405 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19406
19407         * collect2.c (ignore_library): Avoid premature post-increment
19408         and null deference.
19409
19410 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19411
19412         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
19413         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
19414         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
19415         CROSS_DIRECTORY_STRUCTURE too.
19416         (LINK_LIBG_SPEC): Likewise.
19417         (LIB_SPEC): Add %R to sysroot paths.
19418         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
19419         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
19420         * config/rs6000/aix51.h: As for aix43.h.
19421         * config/rs6000/aix52.h: Likewise.
19422         * config/rs6000/aix53.h: Likewise.
19423         * config/rs6000/aix61.h: Likewise.
19424         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
19425         to the beginning of sysroot paths.
19426
19427 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19428
19429         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
19430         INSN_LISTs that are out of the REG_NOTE range.
19431
19432 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19433
19434         * loop-unroll.c (struct iv_to_split): Add pointer to next.
19435         (struct var_to_expand): Likewise.
19436         (struct opt_info): Add head and tail for linked lists of the above.
19437         (analyze_insn_to_expand_var): Initialize next.
19438         (analyze_iv_to_split_insn): Likewise.
19439         (analyze_insns_in_loop): Create linked lists.
19440         (allocate_basic_variable): Simplify for use without hash table.
19441         (insert_var_expansion_initialization): Likewise, make it type-safer.
19442         (combine_var_copies_in_loop_exit): Likewise.
19443         (apply_opt_in_copies): Walk lists rather than hash tables.
19444         (release_var_copies): Simplified and inlined by hand into...
19445         (free_opt_info): ... this function.
19446
19447 2009-06-02  Richard Guenther  <rguenther@suse.de>
19448
19449         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19450         for field decls.
19451
19452 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19453
19454         * cfgexpand.c (gimple_expand_cfg): Discard the source location
19455         only for builtins that are not overridden.
19456
19457 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19458
19459         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
19460         label string.
19461
19462 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19463
19464         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
19465
19466 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19467
19468         * combine.c (move_deaths): Compare LUIDs within the same BB only.
19469
19470 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19471
19472         * common.opt (fdump-unnumbered-links): New.
19473         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
19474         * print-rtl.c (flag_dump_unnumbered_links): New.
19475         (print_rtx): Test it.
19476
19477 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
19478
19479         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
19480         push/pop multiple to 8-byte alignment.
19481
19482 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
19483
19484         * config/i386/i386.c (queued_cfa_restores): New static variable.
19485         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
19486         functions.
19487         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
19488         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
19489         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
19490         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
19491         note unconditionally.
19492         (ix86_emit_restore_regs_using_mov): Likewise.
19493         (ix86_emit_restore_sse_regs_using_mov): Likewise.
19494         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
19495         it through to ix86_emit_restore_reg_using_pop.
19496         (ix86_emit_leave): Add RED_OFFSET argument.  Call
19497         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
19498         instead of adding REG_CFA_OFFSET note unconditionally.
19499         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
19500         the above functions.  Call ix86_add_queued_cfa_restore_notes when
19501         needed.
19502
19503         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
19504         force output of the label even for dwarf2out_do_cfi_asm.
19505         (add_fde_cfi): If -g2 and above and cfi might change CFA,
19506         force creation of CFI label and chain DW_CFA_set_loc jumping to it
19507         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
19508         caller.
19509         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
19510         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
19511         dwarf2out_cfi_label callers.
19512         * tree.h (dwarf2out_cfi_label): Adjust prototype.
19513         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
19514         Adjust dwarf2out_cfi_label callers.
19515         * config/vax/vax.c (vax_output_function_prologue): Likewise.
19516
19517         * config/i386/i386.h (struct machine_cfa_state,
19518         struct machine_function): Guard with ifndef USED_FOR_TARGET
19519         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
19520
19521         PR other/40024
19522         * emutls.c (__emutls_get_address): Change arr->size to mean number
19523         of allocated arr->data entries instead of # of slots + 1.
19524
19525         PR middle-end/40316
19526         * recog.c (peep2_reinit_state): New function.
19527         (peephole2_init_state): Use it at the end of a basic block and also
19528         when seeing a RTX_FRAME_RELATED_P insn.
19529
19530 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
19531
19532         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
19533         fixuns_truncrfdi2): New.
19534         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
19535         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
19536         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
19537         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
19538         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
19539         *recip_approx): Remove.
19540         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
19541         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
19542         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
19543         move to div.md.
19544         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
19545         setf_exp_rf): New.
19546
19547 2009-06-01  Ian Lance Taylor  <iant@google.com>
19548
19549         * attribs.c (register_attribute): Use CONST_CAST.
19550         * collect2.c (main): Use CONST_CAST2.
19551         (scan_prog_file): Likewise.
19552         * gcc.c (process_command, main): Likewise.
19553         * toplev.c (toplev_main): Likewise.
19554
19555         * c-typeck.c (handle_warn_cast_qual): New static function,
19556         partially broken out of build_c_cast.
19557         (build_c_cast): Call handle_warn_cast_qual.
19558         * doc/invoke.texi (Warning Options): Document new effect of
19559         -Wcast-qual.
19560
19561 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
19562
19563         * diagnostic.c (diagnostic_build_prefix): Always print columns.
19564         (diagnostic_report_current_module): Print columns.
19565         * common.opt (flag_show_column): Enable by default.
19566
19567 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
19568
19569         * alias.c (find_base_term): Check for NULL term before returning.
19570
19571 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19572
19573         Revert due to PR40320:
19574         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19575         * calls.c (emit_library_call_value_1): Don't force_operand for move
19576         and push insns.
19577
19578 2009-06-01  Olivier Hainque  <hainque@adacore.com>
19579             Eric Botcazou  <ebotcazou@adacore.com>
19580
19581         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
19582         to be processed as a bitfield for constructor output purposes.
19583         * output.h (initializer_constant_valid_for_bitfield_p): Declare
19584         new function.
19585         * varasm.c (oc_local_state): New type, output_constructor
19586         local state to support communication with helpers.
19587         (oc_outer_state): New type, output_constructor outer state of
19588         relevance in recursive calls.
19589         (output_constructor_array_range): New output_constructor helper,
19590         extracted code for an array range element.
19591         (output_constructor_regular_field): New output_constructor helper,
19592         extracted code for an element that is not a bitfield.
19593         (output_constructor_bitfield): New output_constructor helper,
19594         extracted code for a bitfield element.  Accept an OUTER state
19595         argument for recursive processing.  Recurse on record or array
19596         CONSTRUCTOR values, possibly past noop conversions.
19597         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
19598         VALUE is a valid constant-valued expression for use in a static
19599         bit-field initializer.
19600         (output_constructor): Rework to use helpers.  Accept and honor an
19601         OUTER state argument for recursive calls.  Return total size.  Be
19602         prepared for nested constructors initializing bitfields.
19603         (output_constant): Feed OUTER in calls to output_constructor.
19604
19605 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19606
19607         * calls.c (emit_library_call_value_1): Don't force_operand for move
19608         and push insns.
19609
19610 2009-06-01  Nick Clifton  <nickc@redhat.com>
19611
19612         * doc/invoke.texi (IA-64 Options): Fix typo.
19613
19614 2009-06-01  Ira Rosen  <irar@il.ibm.com>
19615
19616         PR tree-optimization/39129
19617         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
19618         printed message.
19619         (vect_do_peeling_for_loop_bound): Use
19620         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19621         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19622         (vect_loop_versioning): Likewise.
19623         (vect_create_cond_for_alias_checks): Fix indentation.
19624         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
19625         macros.
19626         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
19627         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
19628         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
19629         "control flow in loop".
19630         (vect_estimate_min_profitable_iters): Use
19631         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19632         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19633         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19634         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
19635         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
19636         statement belongs to a group of strided accesses with the exact code
19637         check.
19638         (vectorizable_load): Likewise.
19639         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
19640         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19641
19642 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
19643
19644         * config/freebsd-stdint.h: New file.
19645         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
19646         Add freebsd-stdint.h to tm_file.
19647
19648 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
19649
19650         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
19651         (thumb2_extendhidi2): Likewise.
19652
19653 2009-05-31  Ian Lance Taylor  <iant@google.com>
19654
19655         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
19656
19657 2009-05-31  Ian Lance Taylor  <iant@google.com>
19658
19659         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
19660         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
19661         (ipa-reference.o): Depend upon gt-ipa-reference.h.
19662
19663 2009-05-31  Jason Merrill  <jason@redhat.com>
19664
19665         * tree-pretty-print.c (print_call_name): Take the callee, not the
19666         call itself.  Make non-static.  Use dump_function_name for functions.
19667         (dump_generic_node): Adjust.
19668         * diagnostic.h: Declare print_call_name.
19669         * gimple-pretty-print.c (dump_gimple_call): Use it.
19670
19671 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19672
19673         * config/sh/sh.md (ashldi3_std): New define_expand.
19674         (ashldi3): Use it.
19675
19676 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19677
19678         PR target/40313
19679         * config/sh/sh.c: Include debug.h.
19680         (sh_expand_epilogue): Emit a blockage insn before the frame
19681         pointer adjustment also when dwarf2out_do_frame returns true.
19682
19683 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
19684
19685         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
19686         (thumb2_extendqidi2): New pattern.
19687
19688 2009-05-31  Ira Rosen  <irar@il.ibm.com>
19689
19690         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19691         mark phis for renaming.
19692         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
19693         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
19694         Call mark_sym_for_renaming.
19695         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
19696         * tree-vect-loop.c (vect_transform_loop): Remove
19697         vect_memsyms_to_rename initialization and a call to
19698         mark_set_for_renaming.
19699
19700 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
19701
19702         PR middle-end/40304
19703         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
19704         frame related even if !set_cfa && style < 0.
19705
19706 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
19707
19708         * config/i386/mingw-tls.c: New file.
19709         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
19710         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
19711         defining _WIN32 but not __CYGWIN__.
19712
19713 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19714
19715         * configure.ac: Add MPC support.
19716
19717         * config.in, configure: Regenerate.
19718
19719 2009-05-29  Richard Henderson  <rth@redhat.com>
19720
19721         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
19722         NOTE_INSN_BASIC_BLOCK.
19723         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
19724         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
19725         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
19726         to be deleted.
19727         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
19728         add in_use field.
19729         (add_cfi): Disable check redefining cfa away from drap.
19730         (lookup_cfa_1): Add remember argument; handle remember/restore.
19731         (lookup_cfa): Pass remember argument.
19732         (cfa_remember): New.
19733         (compute_barrier_args_size_1): Remove sibcall check.
19734         (dwarf2out_frame_debug_def_cfa): New.
19735         (dwarf2out_frame_debug_adjust_cfa): New.
19736         (dwarf2out_frame_debug_cfa_offset): New.
19737         (dwarf2out_frame_debug_cfa_register): New.
19738         (dwarf2out_frame_debug_cfa_restore): New.
19739         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
19740         (dwarf2out_begin_epilogue): New.
19741         (dwarf2out_frame_debug_restore_state): New.
19742         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
19743         DW_CFA_restore_state.
19744         (output_cfi_directive): Likewise.
19745         (convert_cfa_to_fb_loc_list): Likewise.
19746         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
19747         * dwarf2out.h: Update.
19748         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
19749         (copy_insn_1): Early out for null.
19750         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
19751         and dwarf2out_frame_debug_restore_state.
19752         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
19753         (prologue_insn_hash, epilogue_insn_hash): New.
19754         (free_after_compilation): Adjust freeing accordingly.
19755         (record_insns): Create hash table if needed; push insns into
19756         hash instead of array.
19757         (maybe_copy_epilogue_insn): New.
19758         (contains): Search hash table instead of array.
19759         (sibcall_epilogue_contains): Remove.
19760         (thread_prologue_and_epilogue_insns): Split eh_return insns
19761         and mark them as epilogues.
19762         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
19763         scanning in terms of basic blocks.
19764         * insn-notes.def (CFA_RESTORE_STATE): New.
19765         * jump.c (returnjump_p_1): Accept EH_RETURN.
19766         (eh_returnjump_p_1, eh_returnjump_p): New.
19767         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
19768         CFA_REGISTER, CFA_RESTORE): New.
19769         * rtl.def (EH_RETURN): New.
19770         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
19771
19772         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
19773         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
19774
19775         * config/i386/i386.c (gen_push): Update cfa state.
19776         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
19777         add a CFA_ADJUST_CFA note.
19778         (ix86_dwarf_handle_frame_unspec): Remove.
19779         (ix86_expand_prologue): Update cfa state.
19780         (ix86_emit_restore_reg_using_pop): New.
19781         (ix86_emit_restore_regs_using_pop): New.
19782         (ix86_emit_leave): New.
19783         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
19784         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
19785         * config/i386/i386.h (struct machine_cfa_state): New.
19786         (ix86_cfa_state): New.
19787         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
19788         (eh_return_internal): Merge from eh_return_<mode>,
19789         use eh_return rtx, split w/ epilogue.
19790
19791 2009-05-29  Ian Lance Taylor  <iant@google.com>
19792
19793         * builtins.c (validate_gimple_arglist): Don't use va_arg with
19794         enum type.
19795         * calls.c (emit_library_call_value_1): Likewise.
19796
19797         * c-typeck.c (c_build_va_arg): New function.
19798         * c-tree.h (c_build_va_arg): Declare.
19799         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
19800         instead of build_va_arg.
19801
19802 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19803
19804         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
19805         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
19806         (ptr_difference_cost): Use affine combinations to compute it.
19807         (difference_cost): Likewise.
19808         (get_computation_cost_at): Compute more accurate cost for addresses
19809         if the ratio is a multiplier allowed in addresses.
19810         For non-addresses, consider that an additional offset or symbol is
19811         added only once.
19812
19813 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
19814
19815         * config/i386/i386.c (ix86_decompose_address): Avoid useless
19816         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
19817
19818         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
19819         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
19820         (prefix_rex): For UNIT_MMX don't imply the prefix by default
19821         if MODE_DI.
19822         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
19823         to 1 for TYPE_SSE{IADD1,CVT1}.
19824         (prefix_vex_imm8): Removed.
19825         (length_vex): Only pass 1 as second argument to
19826         ix86_attr_length_vex_default if prefix_extra is 0.
19827         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
19828         (length): For prefix vex computation use length_immediate
19829         attribute instead of prefix_vex_imm8.
19830         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
19831         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
19832         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
19833         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
19834         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
19835         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
19836         a space in between the operands.
19837         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
19838         if one operand is 0xff and the other one si, di, bp or sp.
19839         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
19840         other one si, di, bp or sp.
19841         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
19842         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
19843         type and mode attributes.
19844         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
19845         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
19846         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
19847         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
19848         prefix_data16 attribute iff MODE_DF.
19849         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
19850         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
19851         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
19852         constm128_operand in length_immediate computation.
19853         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
19854         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
19855         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
19856         length_immediate attribute to 1.
19857         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
19858         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
19859         for certain alternatives.
19860         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
19861         prefix_data16 attribute if MODE_V1DF.
19862         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
19863         length_immediate to 1.
19864         (set_got_rex64, set_rip_rex64): Remove length attribute, set
19865         length_address to 4, set mode attribute to MODE_DI.
19866         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
19867         (fxam<mode>2_i387): Set length attribute to 4.
19868         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
19869         *prefetch_3dnow_rex): Override length_address attribute.
19870         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
19871         attributes.
19872         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
19873         (constm128_operand): Removed.
19874         * config/i386/i386.c (memory_address_length): For
19875         disp && !index && !base in 64-bit mode account for SIB byte if
19876         print_operand_address can't optimize disp32 into disp32(%rip)
19877         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
19878         for fs: or gs: segment.
19879         (ix86_attr_length_immediate_default): When checking if shortform
19880         is possible, truncate immediate to the length of the non-shortened
19881         immediate.
19882         (ix86_attr_length_address_default): Ignore MEM_P operands
19883         with X constraint.
19884         (ix86_attr_length_vex_default): Only check for DImode on
19885         GENERAL_REG_P operands.
19886         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
19887         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
19888         (sse_cvttps2pi): Clear prefix_rep attribute.
19889         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
19890         attribute.
19891         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
19892         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
19893         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
19894         iff operand 2 is const_int_operand.
19895         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
19896         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
19897         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
19898         instead of vex.
19899         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
19900         prefix_data16.
19901         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
19902         prefix_data16 attribute for movlpd and movhpd instructions.
19903         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
19904         length_immediate for shufpd instruction.
19905         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
19906         (avx_cmpp<avxmodesuffixf2c><mode>3,
19907         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
19908         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
19909         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
19910         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
19911         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
19912         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
19913         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
19914         prefix_data16 attribute for the first alternative to 1.
19915         (*avx_loadlps): Override length_immediate for the first alternative.
19916         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
19917         attributes for second alternative.
19918         (*vec_concatv2sf_sse4_1): Override length_immediate and
19919         prefix_data16 attributes for second alternative.
19920         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
19921         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
19922         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
19923         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
19924         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
19925         prefix_data16 and length_immediate to 1.
19926         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
19927         to 1.
19928         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
19929         prefix_extra attribute for variants that don't have 0f prefix alone.
19930         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
19931         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
19932         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
19933         *sse4_1_pextrd): Set length_immediate to 1.
19934         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
19935         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
19936         to 1.
19937         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
19938         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
19939         length_immediate to 1 for second alternative.
19940         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
19941         prefix_extra and length_immediate attributes for the first
19942         alternative.
19943         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
19944         first alternative.
19945         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
19946         to 1 for the first and third alternative.
19947         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
19948         alternative.
19949         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
19950         attribute.
19951         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
19952         attribute to 0.
19953         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
19954         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
19955         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
19956         *avx_psign<mode>3): Set prefix_extra attribute to 1.
19957         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
19958         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
19959         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
19960         ssse3_psign<mode>3): Override prefix_rex attribute.
19961         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
19962         (ssse3_palignrti): Override length_immediate to 1.
19963         (ssse3_palignrdi): Override length_immediate to 1, override
19964         prefix_rex attribute.
19965         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
19966         (sse4a_extrqi): Override length_immediate to 2.
19967         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
19968         (sse4a_insertq): Override prefix_data16 to 0.
19969         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
19970         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
19971         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
19972         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
19973         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
19974         and length_immediate to 1.
19975         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
19976         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
19977         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
19978         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
19979         and length_immediate to 1.
19980         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
19981         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
19982         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
19983         avx_ptest256): Override prefix_extra to 1.
19984         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
19985         Override prefix_data16 and length_immediate to 1.
19986         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
19987         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
19988         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
19989         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
19990         prefix_data16 to 0 and prefix_extra to 2.
19991         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
19992         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
19993         attribute.
19994         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
19995         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
19996         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
19997         and prefix_extra to 2.
19998         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
19999         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
20000         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
20001         avx_vpermilvar<mode>3,
20002         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
20003         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
20004         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
20005         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
20006         Override prefix_extra to 1.
20007         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
20008         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
20009         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
20010         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
20011         prefix_extra and length_immediate to 1.
20012         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
20013         modrm to 0.
20014         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
20015         to 1 for the first alternative.
20016         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
20017         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
20018         cases.
20019         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
20020         *movv2sf_internal_avx, *movv2sf_internal): Override
20021         prefix_rep attribute for certain alternatives.
20022         (*mov<mode>_internal): Override prefix_rep or prefix_data16
20023         attributes for certain alternatives.
20024         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
20025         attributes for certain alternatives.
20026         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
20027         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
20028         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
20029         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
20030         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
20031         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
20032         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
20033         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
20034         length_immediate to 1 if operand 2 is const_int_operand.
20035         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
20036         *vec_extractv2si_1): Set length_immediate attribute to 1.
20037         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
20038         using old 3DNOW insn rather than SSE/3DNOW_A.
20039         (mmx_emms, mmx_femms): Clear modrm attribute.
20040
20041 2009-05-29  Martin Jambor  <mjambor@suse.cz>
20042
20043         * tree-sra.c:  New implementation of SRA.
20044
20045         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
20046         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
20047         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
20048         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
20049         (SRA_MAX_STRUCTURE_COUNT): Removed.
20050         (SRA_FIELD_STRUCTURE_RATIO): Removed.
20051         * doc/invoke.texi (sra-max-structure-size): Removed.
20052         (sra-field-structure-ratio): Removed.
20053
20054 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20055
20056         PR middle-end/40291
20057         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
20058         before expansion.
20059
20060 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
20061
20062         PR rtl-optimization/40101
20063         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
20064         seqno.  Adjust comment.
20065         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
20066         inserting bookkeeping before a jump, the jump is not scheduled.
20067         When no positive seqno found, provide a value.  Add comment.
20068
20069 2009-05-29  Richard Guenther  <rguenther@suse.de>
20070
20071         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
20072         short-cutting on the first component.
20073
20074 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20075
20076         PR middle-end/39958
20077         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
20078         for trees other than decls/types.
20079
20080 2009-05-29  Richard Guenther  <rguenther@suse.de>
20081
20082         * tree-ssa-operands.c (get_expr_operands): Do not handle
20083         INDIRECT_REFs in the handled-component case.  Remove
20084         unused get_ref_base_and_extent case.
20085         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
20086         tree_low_cst and host_integerp where possible.
20087         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
20088         codes for equivalence.
20089         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
20090
20091 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
20092
20093         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
20094         to tmake_file for i[34567]86-*-cygwin*.
20095
20096 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20097
20098         PR target/40017
20099         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
20100         (altivec_categorize_keyword, init_vector_keywords,
20101         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
20102         similar to bool.
20103
20104 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
20105
20106         * tree.c (handle_dll_attribute): Check if node is
20107         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
20108
20109 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
20110
20111         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
20112         component.
20113         (thumb2_zero_extendqidi2): Likewise.
20114
20115 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20116
20117         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
20118         instead of gen_movrt.
20119         * config/sh/sh.md (movrt): Remove.
20120
20121 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
20122
20123         * doc/invoke.texi (IA-64 Options):
20124         Add -msdata, -mfused-madd, -mno-inline-float-divide,
20125         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
20126         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
20127         -msched-prefer-non-control-spec-insns,
20128         -msched-stop-bits-after-every-cycle,
20129         -msched-count-spec-in-critical-path,
20130         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
20131         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
20132         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
20133         and -msched-spec-verbose.
20134
20135 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
20136
20137         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
20138         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
20139         error if used.
20140         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
20141
20142 2009-05-28  Richard Guenther  <rguenther@suse.de>
20143
20144         * tree-ssa-alias.c (ao_ref_init): New function.
20145         (ao_ref_base): Likewise.
20146         (ao_ref_base_alias_set): Likewise.
20147         (ao_ref_alias_set): Likewise.
20148         (refs_may_alias_p_1): Change signature.
20149         (refs_may_alias_p): Adjust.
20150         (refs_anti_dependent_p): Likewise.
20151         (refs_output_dependent_p): Likewise.
20152         (call_may_clobber_ref_p_1): Change signature.
20153         (call_may_clobber_ref_p): Adjust.
20154         (stmt_may_clobber_ref_p_1): New function split out from ...
20155         (stmt_may_clobber_ref_p): ... here.
20156         (maybe_skip_until): Adjust signature.
20157         (get_continuation_for_phi): Likewise.
20158         (walk_non_aliased_vuses): Likewise.
20159         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
20160         (ao_ref_init): Declare.
20161         (ao_ref_base): Likewise.
20162         (ao_ref_alias_set): Likewise.
20163         (stmt_may_clobber_ref_p_1): Likewise.
20164         (walk_non_aliased_vuses): Adjust.
20165         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
20166         (get_ref_from_reference_ops): remove.
20167         (vn_reference_lookup_2): Adjust signature.
20168         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
20169         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
20170         (vn_reference_lookup): Adjust.
20171         (vn_reference_insert): Likewise.
20172         (vn_reference_insert_pieces): Adjust signature.
20173         (visit_reference_op_call): Adjust.
20174         * tree-ssa-pre.c (get_expr_type): Simplify.
20175         (phi_translate_1): Adjust.
20176         (compute_avail): Likewise.
20177         (translate_vuse_through_block): Do not re-build trees.
20178         (value_dies_in_block_x): Likewise.
20179         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
20180         fields.
20181         (vn_reference_lookup_pieces): Adjust declaration.
20182         (vn_reference_insert_pieces): Likewise.
20183
20184 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
20185
20186         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
20187         with checking disabled.
20188
20189 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
20190
20191         PR target/37216
20192
20193         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
20194         macro definition for support of three-operand format aligned
20195         .comm directive in assembler on cygwin/pe/mingw target OS.
20196         * configure:  Regenerate.
20197         * config.h:  Regenerate.
20198
20199         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
20200         aligned form of .comm directive if -mpe-aligned-commons is in effect.
20201         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
20202
20203         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
20204         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
20205
20206 2009-05-28  Ira Rosen  <irar@il.ibm.com>
20207
20208         PR tree-optimization/40254
20209         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
20210         in analysis of basic blocks.
20211
20212 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
20213
20214         PR middle-end/33699
20215         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
20216         * target-def.h (TARGET_CONST_ANCHOR): New macro.
20217         (TARGET_INITIALIZER): Use it.
20218         * cse.c (CHEAPER): Move it up to the other macros.
20219         (insert): Rename this ...
20220         (insert_with_costs): ... to this.  Add cost parameters.  Update
20221         function comment.
20222         (insert): New function.  Call insert_with_costs.
20223         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
20224         find_reg_offset_for_const, try_const_anchors): New functions.
20225         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
20226         when using a const-anchor.  Call insert_const_anchors.
20227         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
20228         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
20229
20230 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20231
20232         * tree-inline.c (remap_decls): Enable nonlocalized variables
20233         when not optimizing.
20234
20235 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20236
20237         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
20238         Simplify other tests involving optimize.
20239
20240 2009-05-27  Tom Tromey  <tromey@redhat.com>
20241
20242         * unwind-dw2.c (_Unwind_DebugHook): New function.
20243         (uw_install_context): Call _Unwind_DebugHook.
20244
20245 2009-05-27  Tom Tromey  <tromey@redhat.com>
20246
20247         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
20248
20249 2009-05-27  Ian Lance Taylor  <iant@google.com>
20250
20251         * Makefile.in (LINKER, LINKER_FLAGS): Define.
20252         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
20253         (ALL_LINKERFLAGS): Define.
20254         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
20255         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20256         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
20257         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20258         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
20259         $(LINKER_FOR_BUILD).
20260         (build/gcov-iov$(build_exeext)): Likewise.
20261
20262 2009-05-27  Julian Brown  <julian@codesourcery.com>
20263
20264         * gcse.c (target.h): Include.
20265         (can_assign_to_reg_without_clobbers_p): Check that the target allows
20266         copy of argument to a pseudo register.
20267
20268 2009-05-27  Diego Novillo  <dnovillo@google.com>
20269
20270         * tree-ssa-live.c (dump_scope_block): Document arguments.
20271         (dump_scope_blocks): Document.
20272         (debug_scope_blocks): New.
20273         * tree-flow.h (debug_scope_blocks): Declare.
20274
20275 2009-05-21  Denis Chertykov  <denisc@overta.ru>
20276
20277         * doc/contrib.texi (Contributors): Add myself to the list.
20278
20279 2009-05-27  Olivier Hainque  <hainque@adacore.com>
20280
20281         * expr.c (target_align): New function.  Alignment the TARGET of an
20282         assignment may be assume to have.
20283         (highest_pow2_factor_for_target): Use it instead of relying on
20284         immediate tree attributes of TARGET, not necessarily honored when
20285         intermediate bitfields are involved.
20286
20287 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
20288
20289         PR target/40266
20290         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20291         AVX, SSE4, AES, PCLMUL and POPCNT.
20292
20293 2009-05-27  Diego Novillo  <dnovillo@google.com>
20294
20295         * tree-pretty-print.c (dump_location): New.
20296         (dump_generic_node): Call it.
20297         Factor code to handle BLOCK nodes ...
20298         (dump_block_node): ... here.
20299
20300 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
20301
20302         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
20303         with it.
20304         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
20305         included.
20306         * gcc-plugin.h: Include config.h and system.h.
20307         (IN_GCC): Define if not defined.
20308
20309 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
20310
20311         PR middle-end/40249
20312         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
20313         with -fno-inline.
20314
20315 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
20316
20317         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
20318         applicable.
20319         * config/m32r/m32r.h: Ditto.
20320         * config/m32r/m32r.md: Ditto.
20321         * config/m32r/predicates.md: Ditto.
20322
20323 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
20324
20325         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
20326
20327 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
20328
20329         * doc/plugins.texi
20330         (Loading plugins): typo.
20331         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
20332         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20333         (Interacting with the GCC Garbage Collector): Added new section.
20334         (Giving information about a plugin): Added new section for
20335         PLUGIN_INFO.
20336         * ggc.h (ggc_register_root_tab): Added declaration.
20337         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
20338         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
20339         (register_callback): Improved comment in declaration.
20340         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
20341         (extra_root_vec) Added static variable for dynamic roots registration.
20342         (ggc_register_root_tab) Added new routine.
20343         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
20344         PLUGIN_GGC_MARKING event.
20345         * ggc-zone.c: Include plugin.h.
20346         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20347         * ggc-page.c: Include plugin.h.
20348         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20349         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
20350         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
20351         (register_callback): check lack of callbacks for
20352         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
20353         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
20354         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
20355         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20356         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
20357         dependency on plugin.h.
20358         (plugin.o): Added dependency on ggc.h...
20359
20360 2009-05-26  Richard Guenther  <rguenther@suse.de>
20361
20362         PR middle-end/40248
20363         Revert
20364         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
20365         with mismatched comparison modes.
20366
20367         * expr.c (expand_expr_real_1): Expand the operand of a
20368         VIEW_CONVERT_EXPR in its natural mode.
20369
20370 2009-05-26  Ian Lance Taylor  <iant@google.com>
20371
20372         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
20373         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
20374         (ALL_COMPILERFLAGS): Define.
20375         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
20376         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20377         (collect2$(exeext), collect2.o): Likewise.
20378         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
20379         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
20380         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
20381         (libbackend.o, intl.o, cppdefault.o): Likewise.
20382         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20383         (build/%.o): Use $(COMPILER_FOR_BUILD).
20384         (build/gen%$(build_exeext)): Likewise.
20385         (build/gcov-iov$(build_exeext)): LIkewise.
20386         * config/t-darwin (darwin.o): Use $(COMPILER).
20387         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
20388         * config/t-sol2 (sol2-c.o): Likewise.
20389         (sol2.o): Likewise.
20390         * config/t-vxworks (vxworks.o): Likewise.
20391         * config/x-darwin (host-darwin.o): Likewise.
20392         * config/x-hpux (host-hpux.o): Likewise.
20393         * config/x-linux (host-linux.o): Likewise.
20394         * config/x-solaris (host-solaris.o): Likewise.
20395         * config/alpha/x-alpha (driver-alpha.o): Likewise.
20396         * config/arm/t-arm (arm-c.o): Likewise.
20397         * config/arm/t-pe (pe.o): Likewise.
20398         * config/arm/t-wince-pe (pe.o): Likewise.
20399         * config/i386/t-cygming (winnt.o): Likewise.
20400         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
20401         * config/i386/t-cygwin (cygwin1.o): Likewise.
20402         (cygwin2.o): Likewise.
20403         * config/i386/t-i386 (i386-c.o): Likewise.
20404         * config/i386/t-interix (winnt.o): Likewise.
20405         * config/i386/t-netware (netware.o): Likewise.
20406         * config/i386/t-nwld (nwld.o): Likewise.
20407         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
20408         * config/i386/x-i386 (driver-i386.o): Likewise.
20409         * config/i386/x-cygwin (host-cygwin.o): Likewise.
20410         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
20411         * config/ia64/t-ia64 (ia64-c.o): Likewise.
20412         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
20413         * config/mips/x-native (driver-native.o): Likewise.
20414         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
20415         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
20416         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
20417         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
20418         * config/score/t-score-elf (score7.o): Likewise.
20419         (score3.o): Likewise.
20420         * config/sh/t-sh (sh-c.o): Likewise.
20421         * config/sh/t-symbian (sh-c.o): Likewise.
20422         (symbian.o): Likewise.
20423         * config/spu/t-spu-elf (spu-c.o): Likewise.
20424         * config/v850/t-v850 (v850-c.o): Likewise.
20425         * config/v850/t-v850e (v850-c.o): Likewise.
20426
20427 2009-05-26  Richard Guenther  <rguenther@suse.de>
20428
20429         PR tree-optimization/40122
20430         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
20431         VECTOR_CSTs if possible.
20432         (fold_gimple_assign): Likewise.
20433
20434 2009-05-26  Richard Guenther  <rguenther@suse.de>
20435
20436         PR middle-end/40252
20437         * fold-const.c (fold_binary): Use the correct types for building
20438         rotates.
20439
20440 2009-05-26  Richard Guenther  <rguenther@suse.de>
20441
20442         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
20443         redundant calls to merge_alias_info.
20444         (bump_vector_ptr): Likewise.
20445         * tree-ssa-copy.c (merge_alias_info): Remove.
20446         (replace_exp_1): Remove call to merge_alias_info.
20447         (propagate_tree_value): Likewise.
20448         (fini_copy_prop): Propagate points-to info.
20449         * tree-flow.h (merge_alias_info): Remove.
20450
20451 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20452
20453         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
20454
20455 2009-05-25  Jan Hubicka  <jh@suse.cz>
20456
20457         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20458         * cgraph.h (struct inline_summary): New filed self_wize,
20459         size_inlining_benefit, self_time and time_inlining_benefit.
20460         (struct cgraph_global_info): Replace insns by time ans size fields.
20461         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
20462         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
20463         (ipcp_update_callgraph): Do not touch function bodies.
20464         * ipa-inline.c: Include except.h
20465         (MAX_TIME): New constant.
20466         (overall_insns): Remove.
20467         (leaf_node_p): New.
20468         (overall_size, max_benefit): New static variables.
20469         (cgraph_estimate_time_after_inlining): New function.
20470         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
20471         (cgraph_clone_inlined_nodes): Update size.
20472         (cgraph_mark_inline_edge): Update size.
20473         (cgraph_estimate_growth): Use size info.
20474         (cgraph_check_inline_limits): Check size.
20475         (cgraph_default_inline_p): Likewise.
20476         (cgraph_edge_badness): Compute badness based on benefit and size cost.
20477         (cgraph_decide_recursive_inlining): Check size.
20478         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
20479         and times.
20480         (cgraph_decide_inlining): Likewise.
20481         (cgraph_decide_inlining_incrementally): Likewise; honor
20482         PARAM_EARLY_INLINING_INSNS.
20483         (likely_eliminated_by_inlining_p): New predicate.
20484         (estimate_function_body_sizes): New function.
20485         (compute_inline_parameters): Use it.
20486         * except.c (must_not_throw_labels): New function.
20487         * except.h (must_not_throw_labels): Declare.
20488         * tree-inline.c (init_inline_once): Kill inlining_weigths
20489         * tree-ssa-structalias.c: Avoid uninitialized warning.
20490         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
20491         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
20492         (PARAM_INLINE_CALL_COST): Remove.
20493         (PARAM_EARLY_INLINING_INSNS): New.
20494
20495 2009-05-25  Richard Guenther  <rguenther@suse.de>
20496
20497         PR tree-optimization/36327
20498         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
20499         callback for reference translation or lookup at the point of may-defs.
20500         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
20501         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
20502         for union COMPONENT_REFs.
20503         (vn_reference_lookup_3): New callback.  Lookup from memset
20504         and CONSTRUCTOR assignment, translate through struct copies.
20505         (vn_reference_lookup_pieces): Make sure to not free the
20506         passed operands array.  Adjust walk_non_aliased_vuses call.
20507         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
20508         make sure we do not leak memory.
20509
20510 2009-05-25  Richard Guenther  <rguenther@suse.de>
20511
20512         * tree-ssa-alias.h (dump_points_to_solution): Declare.
20513         * tree-inline.c (expand_call_inline): Reset the escaped and
20514         callused solutions.
20515         * tree-ssa-structalias.c (pass_build_ealias): New.
20516         * tree-pass.h (pass_build_ealias): Declare.
20517         * passes.c (init_optimization_passes): Add PTA during
20518         early optimizations.
20519         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
20520         and CALLUSED solutions.
20521         (dump_points_to_solution): New function, split out from ...
20522         (dump_points_to_info_for): ... here.
20523         * tree-parloops.c (parallelize_loops): Reset the escaped and
20524         callused solutions.
20525
20526 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20527
20528         PR bootstrap/40027
20529         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
20530         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
20531
20532 2009-05-25  Ira Rosen  <irar@il.ibm.com>
20533
20534         PR tree-optimization/40238
20535         * tree-vect-stmts.c (vect_init_vector): Insert initialization
20536         statements after basic block's labels.
20537         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
20538         to free the allocated memory.
20539
20540 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20541
20542         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
20543         return address with a USE.
20544
20545 2009-05-24  Richard Guenther  <rguenther@suse.de>
20546
20547         PR middle-end/40233
20548         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
20549         array type from the main variant of the inner type.
20550
20551 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20552
20553         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
20554         definition to bool (from int) to un-break build.
20555         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
20556
20557 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
20558
20559         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
20560         discard_stmt_changes): Delete.
20561         * tree-ssa-operands.c (scb_stack): Delete.
20562         (init_ssa_operands): Do not initialize it.
20563         (fini_ssa_operands): Do not free it.
20564         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
20565
20566         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
20567         update_stmt, remove the others.  Fix comments.
20568         * tree-dfa.c (optimize_stack_restore): Likewise.
20569         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
20570         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
20571         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
20572         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
20573         Likewise.
20574         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
20575         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
20576         (dom_opt_finalize_block): Likewise, adjusting access to
20577         stmts_to_rescan.
20578         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
20579         (stmts_to_rescan): Change item type to gimple.
20580         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
20581
20582 2009-05-24  Ira Rosen  <irar@il.ibm.com>
20583
20584         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
20585         * tree-pass.h (pass_slp_vectorize): New pass.
20586         * params.h (SLP_MAX_INSNS_IN_BB): Define.
20587         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
20588         * tree-vectorizer.c (timevar.h): Include.
20589         (user_vect_verbosity_level): Declare.
20590         (vect_location): Fix comment.
20591         (vect_set_verbosity_level): Update user_vect_verbosity_level
20592         instead of vect_verbosity_level.
20593         (vect_set_dump_settings): Add an argument. Ignore user defined
20594         verbosity if dump flags require higher level of verbosity. Print to
20595         stderr only for loop vectorization.
20596         (vectorize_loops): Update call to vect_set_dump_settings.
20597         (execute_vect_slp): New function.
20598         (gate_vect_slp): Likewise.
20599         (struct gimple_opt_pass pass_slp_vectorize): New.
20600         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
20601         access its members.
20602         (vec_info_for_bb): New function.
20603         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
20604         (VECTORIZATION_ENABLED): New macro.
20605         (SLP_ENABLED, SLP_DISABLED): Likewise.
20606         (vect_is_simple_use): Add bb_vec_info argument.
20607         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
20608         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
20609         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
20610         vect_schedule_slp, vect_analyze_slp): Likewise.
20611         (vect_analyze_stmt): Add slp_tree argument.
20612         (find_bb_location): Declare.
20613         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20614         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
20615         (vect_analyze_loop_operations, vect_analyze_loop,
20616         get_initial_def_for_induction, vect_create_epilog_for_reduction,
20617         vect_finalize_reduction, vectorizable_reduction,
20618         vectorizable_live_operation, vect_transform_loop): Likewise.
20619         * tree-data-ref.c (dr_analyze_innermost): Update comment,
20620         skip evolution analysis if analyzing a basic block.
20621         (dr_analyze_indices): Likewise.
20622         (initialize_data_dependence_relation): Skip the test whether the
20623         object is invariant for basic blocks.
20624         (compute_all_dependences): Skip dependence analysis for data
20625         references in basic blocks.
20626         (find_data_references_in_stmt): Don't fail in case of invariant
20627         access in basic block.
20628         (find_data_references_in_bb): New function.
20629         (find_data_references_in_loop): Move code to
20630         find_data_references_in_bb and add a call to it.
20631         (compute_data_dependences_for_bb): New function.
20632         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
20633         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
20634         that STEP is 0.
20635         (vect_analyze_data_ref_dependence): Check for interleaving in case of
20636         unknown dependence in basic block and fail in case of dependence in
20637         basic block.
20638         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
20639         dependence instances from either loop or basic block vectorization
20640         info.
20641         (vect_compute_data_ref_alignment): Check if it is loop vectorization
20642         before calling nested_in_vect_loop_p.
20643         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
20644         dependence instances from either loop or basic block vectorization
20645         info.
20646         (vect_verify_datarefs_alignment): Likewise.
20647         (vect_enhance_data_refs_alignment): Adjust function calls.
20648         (vect_analyze_data_refs_alignment): Likewise.
20649         (vect_analyze_group_access): Fix printing. Skip different checks if
20650         DR_STEP is 0. Keep strided stores either in loop or basic block
20651         vectorization data structure. Fix indentation.
20652         (vect_analyze_data_ref_access): Fix comments, allow zero step in
20653         basic blocks.
20654         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
20655         dependence instances from either loop or basic block vectorization
20656         info.
20657         (vect_analyze_data_refs): Update comment. Call
20658         compute_data_dependences_for_bb to analyze basic blocks.
20659         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
20660         case of loop vectorization. In case of basic block vectorization use
20661         data-ref itself as a base.
20662         (vect_create_data_ref_ptr): In case of basic block vectorization:
20663         don't advance the pointer, add new statements before the current
20664         statement.  Adjust function calls.
20665         (vect_supportable_dr_alignment): Support only aligned accesses in
20666         basic block vectorization.
20667         * common.opt (ftree-slp-vectorize): New flag.
20668         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
20669         (vect_pattern_recog_1): Likewise.
20670         * tree-vect-stmts.c (process_use): Likewise.
20671         (vect_init_vector): Add new statements in the beginning of the basic
20672         block in case of basic block SLP.
20673         (vect_get_vec_def_for_operand): Adjust function calls.
20674         (vect_finish_stmt_generation): Likewise.
20675         (vectorizable_call): Add assert that it is loop vectorization, adjust
20676         function calls.
20677         (vectorizable_conversion, vectorizable_assignment): Likewise.
20678         (vectorizable_operation): In case of basic block SLP, take
20679         vectorization factor from statement's type and skip the relevance
20680         check. Adjust function calls.
20681         (vectorizable_type_demotion): Add assert that it is loop
20682         vectorization, adjust function calls.
20683         (vectorizable_type_promotion): Likewise.
20684         (vectorizable_store): Check for outer loop only in case of loop
20685         vectorization. Adjust function calls. For basic blocks, skip the
20686         relevance check and don't advance pointers.
20687         (vectorizable_load): Likewise.
20688         (vectorizable_condition): Add assert that it is loop vectorization,
20689         adjust function calls.
20690         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
20691         that it is not reduction, get vector type, call only supported
20692         functions, skip loop specific parts.
20693         (vect_transform_stmt): Check for outer loop only in case of loop
20694         vectorization.
20695         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
20696         (vect_is_simple_use): Fix comment, add new argument, fix conditions
20697         for external definition.
20698         * passes.c (pass_slp_vectorize): New pass.
20699         * tree-vect-slp.c (find_bb_location): New function.
20700         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
20701         check for patterns only in loops.
20702         (vect_build_slp_tree): Add argument, adjust function calls, fail in
20703         case of multiple types in basic block SLP.
20704         (vect_mark_slp_stmts_relevant): New function.
20705         (vect_supported_load_permutation_p): Fix comment.
20706         (vect_analyze_slp_instance): Add argument. In case of basic block
20707         SLP, take vectorization factor from statement's type, check that
20708         unrolling factor is 1. Adjust function call. Save SLP instance in
20709         either loop or basic block vectorization structure. Return FALSE,
20710         if SLP failed.
20711         (vect_analyze_slp): Add argument. Get strided stores groups from
20712         either loop or basic block vectorization structure. Return FALSE
20713         if basic block SLP failed.
20714         (new_bb_vec_info): New function.
20715         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
20716         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
20717         (vect_schedule_slp): Add argument. Get SLP instances from either
20718         loop or basic block vectorization structure. Set vectorization factor
20719         to be 1 for basic block SLP.
20720         (vect_slp_transform_bb): New function.
20721         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
20722
20723 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
20724
20725         * final.c (shorten_branches): Do not align labels for jump tables.
20726         (final_scan_insn): Use JUMP_TABLE_DATA_P.
20727
20728 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20729
20730         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
20731         Remove outdated reference to flow.c and fix nits.
20732         * doc/gccint.texi: Tweak RTL description.
20733         * doc/rtl.texi: Likewise.
20734
20735 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
20736
20737         * config/avr/avr.c: Change my email address.
20738         * config/avr/avr.h: Likewise.
20739         * config/avr/avr.md: Likewise.
20740         * config/avr/avr-protos.h: Likewise.
20741         * config/avr/libgcc.S: Likewise.
20742
20743 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
20744
20745         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
20746         (spu_split_load, spu_split_store): Change return type to int.
20747         (spu_split_convert): Declare.
20748         * config/spu/predicates.md (spu_mem_operand): Remove.
20749         (spu_mov_operand): Update.
20750         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
20751         * config/spu/spu.c (regno_aligned_for_load): Remove.
20752         (reg_aligned_for_addr, spu_expand_load): Define.
20753         (spu_expand_extv): Reimplement and handle MEM.
20754         (spu_expand_insv): Handle MEM.
20755         (spu_sched_reorder): Handle insn's with length 0.
20756         (spu_legitimate_address_p): Reimplement.
20757         (store_with_one_insn_p): Return TRUE for any mode with size
20758         larger than 16 bytes.
20759         (address_needs_split): Define.
20760         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
20761         operands.
20762         (spu_convert_move): Define.
20763         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
20764         (spu_split_store): Change all MEM's to TImode.
20765         (spu_init_expanders): Preallocate registers that correspond to
20766         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
20767         mark_reg_pointer.
20768         (spu_split_convert): Define.
20769         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
20770         (_move<mode>, _movdi, _movti): Update predicate and condition.
20771         (load, store): Change to define_split.
20772         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
20773         extend<mode>ti2.
20774         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
20775         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
20776         define_insn_and_split of lshr<mode>3.
20777         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
20778         (<v>ashr<mode>3_imm): Define.
20779         (extv, extzv, insv): Allow MEM operands.
20780         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
20781         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
20782         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
20783         (_spu_convert2): Change to define_insn_and_split and remove the
20784         corresponding define_peephole2.
20785         (stack_protect_set, stack_protect_test, stack_protect_test_si):
20786         Change predicates to memory_operand.
20787
20788 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20789
20790         * config/arm/thumb2.md: Add 16-bit multiply instructions.
20791
20792 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20793
20794         PR tree-optimization/40219
20795         * tree.c (iterative_hash_expr): Make sure the builtin function is
20796         a normal builtin function and not a front end or back end builtin
20797         before indexing into the built_in_decls array.
20798
20799 2009-05-22  Richard Guenther  <rguenther@suse.de>
20800
20801         PR middle-end/38964
20802         * alias.c (write_dependence_p): Do not use TBAA for answering
20803         anti-dependence or output-dependence.
20804         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
20805         (emit_pointer_definition): Remove.
20806         (emit_alias_warning): Likewise.
20807         (find_what_var_points_to): Remove TBAA pruning code.
20808         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
20809         violations.
20810         (compute_points_to_sets): Remove code computing the set of
20811         dereferenced pointers.
20812         * tree-data-ref.c (dr_may_alias_p): Properly use the split
20813         oracle for querying anti and output dependencies.
20814         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
20815         if TBAA may be applied.
20816         (refs_anti_dependent_p): New function.
20817         (refs_output_dependent_p): Likewise.
20818         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
20819         (refs_output_dependent_p): Likewise.
20820         * doc/tree-ssa.texi (Memory model): New section.
20821         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20822         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20823         * cfgexpand.c (expand_gimple_basic_block): Do not handle
20824         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
20825         * expr.c (expand_expr_real_1): Likewise.
20826         * gimple-low.c (lower_stmt): Likewise.
20827         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
20828         (dump_gimple_cdt): Remove.
20829         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20830         (gimple_size): Likewise.
20831         (walk_gimple_op): Likewise.
20832         (is_gimple_stmt): Likewise.
20833         (walk_stmt_load_store_addr_ops): Likewise.
20834         (gimple_build_cdt): Remove.
20835         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20836         * gimple.h (gimple_cdt_new_type): Remove.
20837         (gimple_cdt_new_type_ptr): Likewise.
20838         (gimple_cdt_set_new_type): Likewise.
20839         (gimple_cdt_location): Likewise.
20840         (gimple_cdt_location_ptr): Likewise.
20841         (gimple_cdt_set_location): Likewise.
20842         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20843         * tree-cfg.c (remove_useless_stmts_1): Do not handle
20844         GIMPLE_CHANGE_DYNAMIC_TYPE.
20845         (verify_types_in_gimple_stmt): Likewise.
20846         * tree-inline.c (estimate_num_insns): Likewise.
20847         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
20848         (copy_decl_to_var): Likewise.
20849         (copy_result_decl_to_var): Likewise.
20850         * tree-pretty-print.c (dump_generic_node): Do not handle
20851         CHANGE_DYNAMIC_TYPE_EXPR.
20852         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20853         * tree-ssa-operands.c (get_expr_operands): Likewise.
20854         * tree-ssa-structalias.c (struct variable_info): Remove
20855         no_tbaa_pruning member.
20856         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
20857         (unify_nodes): Do not copy it.
20858         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20859         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
20860         (set_uids_in_ptset): Do not check it.
20861         (find_what_var_points_to): Likewise.
20862         (compute_tbaa_pruning): Remove.
20863         (compute_points_to_sets): Do not call it.
20864         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20865         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20866         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
20867         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
20868         (DECL_NO_TBAA_P): Likewise.
20869         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
20870         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
20871         (expand_omp_atomic_pipeline): Do not set it.
20872         * print-tree.c (print_node): Do not dump it.
20873         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
20874         redundant check.
20875
20876 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
20877
20878         PR target/39856
20879         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
20880         for clobber.
20881
20882 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20883
20884         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
20885         non-external.
20886
20887 2009-05-22  Ben Elliston  <bje@au.ibm.com>
20888
20889         * Makefile.in (bversion.h, s-bversion): New targets.
20890         (TOPLEV_H): Add bversion.h.
20891         * toplev.h: Include "bversion.h".
20892         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
20893         the __format__ attribute only if compiling with the same version
20894         of GCC as the sources (the "build version").
20895
20896 2009-05-22  Ben Elliston  <bje@au.ibm.com>
20897
20898         * c-format.c (handle_format_attribute): Fix comment typo.
20899
20900 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
20901
20902         PR target/37846
20903         * config/ia64/ia64.opt (mfused-madd): New.
20904         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
20905         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
20906         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
20907         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
20908         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
20909         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
20910         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
20911         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
20912         instruction if !TARGET_FUSED_MADD.
20913         (fpma, fpms): Remove colon from name.
20914
20915 2009-05-22  Richard Guenther  <rguenther@suse.de>
20916
20917         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
20918         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
20919         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20920         TARGET_MEM_REF.
20921         (create_expression_by_pieces): Only convert if necessary.
20922         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
20923         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
20924
20925 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
20926
20927         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
20928         regular pattern from a template and rename it ...
20929         (*extzv_truncsi_exts): ... to this.
20930
20931 2009-05-21  Richard Guenther  <rguenther@suse.de>
20932
20933         * cgraph.h (struct cgraph_node): Remove inline_decl member.
20934         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
20935         (cgraph_default_inline_p): Likewise.
20936         (cgraph_decide_inlining_incrementally): Likewise.
20937
20938 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20939             Uros Bizjak  <ubizjak@gmail.com>
20940
20941         * config/i386/cpuid.h (bit_MOVBE): New.
20942
20943         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
20944
20945         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
20946         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
20947         (ix86_handle_option): Handle OPT_mmovbe.
20948         (ix86_target_string): Add -mmovbe.
20949         (pta_flags): Add PTA_MOVBE.
20950         (processor_alias_table): Add PTA_MOVBE to "atom".
20951         (override_options): Handle PTA_MOVBE.
20952
20953         * config/i386/i386.h (TARGET_MOVBE): New.
20954
20955         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
20956         (*bswapsi_movbe): New.
20957         (*bswapdi_movbe): Likewise.
20958         (bswapdi2): Renamed to ...
20959         (*bswapdi_1): This.
20960         (bswapdi2): New expander.
20961
20962         * config/i386/i386.opt (mmovbe): New.
20963
20964         * doc/invoke.texi: Document -mmovbe.
20965
20966 2009-05-21  Taras Glek  <tglek@mozilla.com>
20967
20968         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
20969         * gcc-plugin.h (plugin_init): Updated signature.
20970         * gcc-plugin.h (plugin_name_args): Moved to this header.
20971         * doc/plugins.texi (plugin_init): Updated documention to reflect
20972         API change.
20973         * doc/plugins.texi (plugin_name_args): Added to documention.
20974
20975 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
20976
20977         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
20978         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
20979
20980 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
20981
20982         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
20983         JUMP_TABLE_DATA_P predicates where applicable.
20984         * config/i386/predicates.md: Ditto.
20985         * config/i386/sse.md: Ditto.
20986
20987 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
20988
20989         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
20990         operand2 -128 override length_immediate attribute to 1.
20991         * config/i386/predicates.md (constm128_operand): New predicate.
20992
20993         * config/i386/i386.c (memory_address_length): Handle %r12
20994         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
20995         also check REGNO.
20996         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
20997         mode look through optional ZERO_EXTEND and SUBREG.
20998         * config/i386/i386.md (R12_REG): New define_constant.
20999         (prefix_data16): For sse unit set also for MODE_TI insns.
21000         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
21001         insns set if operand 1 is ext_QIreg_operand.
21002         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
21003         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
21004         immediate.
21005         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
21006         mode from MODE_DI to MODE_SI.
21007         (movdi_1_rex64): Override modrm and length_immediate attributes
21008         only for movabs (TYPE_IMOV, alternative 2).
21009         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
21010         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21011         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21012         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21013         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
21014         prefix_rex attribute if DImode.
21015         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
21016         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
21017         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
21018         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
21019         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
21020         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
21021         Likewise.  For TYPE_IMOV clear length_immediate attribute.
21022         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
21023         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
21024         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
21025         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
21026         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
21027         or one operand TYPE_ISHIFT.
21028         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
21029         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
21030         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
21031         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
21032         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
21033         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
21034         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
21035         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
21036         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
21037         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
21038         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
21039         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
21040         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
21041         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
21042         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
21043         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
21044         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
21045         set mode attribute, don't override length attribute.
21046         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
21047         to 1.
21048         (return_internal_long): Set length attribute to 2 instead of 1.
21049         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
21050         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
21051         prefix_rex attribute.
21052         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
21053         New predicates.
21054         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
21055
21056 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21057
21058         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
21059
21060 2009-05-20  Ian Lance Taylor  <iant@google.com>
21061
21062         * tree.c (build_tree_list_vec_stat): New function.
21063         (ctor_to_vec): New function.
21064         (build_nt_call_vec): New function.
21065         (build_call_array): Change args to be a const pointer.
21066         (build_call_vec): New function.
21067         * tree.h (build_nt_call_vec): Declare.
21068         (build_tree_list_vec_stat): Declare.
21069         (build_tree_list_vec): Define.
21070         (build_call_array): Update declaration.
21071         (build_call_vec): Declare.
21072         (ctor_to_vec): Declare.
21073         * c-common.c (tree_vector_cache): New static variable.
21074         (make_tree_vector): New function.
21075         (release_tree_vector): New function.
21076         (make_tree_vector_single): New function.
21077         (make_tree_vector_copy): New function.
21078         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
21079         (make_tree_vector_single, make_tree_vector_copy): Declare.
21080         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
21081         (c_parser_expr_list): Don't manage cache here, instead call
21082         make_tree_vector.
21083         (c_parser_release_expr_list): Remove static function.
21084         (c_parser_vec_to_tree_list): Remove static function.
21085         (c_parser_attributes): Call build_tree_list_vec instead of
21086         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
21087         c_parser_release_expr_list.
21088         (c_parser_postfix_expression_after_primary): Likewise.
21089         (c_parser_objc_keywordexpr): Likewise.
21090
21091 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
21092
21093         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
21094         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
21095         TARGET_CONVERT_TO_TYPE.
21096         * hooks.c (hook_tree_const_tree_null): Define.
21097         * hooks.h (hook_tree_const_tree_null): Declare.
21098         * target.h (struct gcc_target):  Add invalid_parameter_type,
21099         invalid_return_type, promoted_type, and convert_to_type fields.
21100         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
21101         (TARGET_INVALID_RETURN_TYPE): Define.
21102         (TARGET_PROMOTED_TYPE): Define.
21103         (TARGET_CONVERT_TO_TYPE): Define.
21104         (TARGET_INITIALIZER): Update for new fields.
21105         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
21106         (grokparms): Check targetm.invalid_parameter_type.
21107         * c-typeck.c (default_conversion): Check targetm.promoted_type.
21108         * c-convert.c (convert): Check targetm.convert_to_type.
21109
21110 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
21111
21112         * config/mips/mips.md (*extenddi_truncate<mode>,
21113         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
21114         defintions.
21115         (*extendhi_truncateqi): New define_insn_and_sptit.
21116
21117 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
21118
21119         PR middle-end/40204
21120         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
21121         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
21122
21123 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21124
21125         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
21126         the operand of VIEW_CONVERT_EXPR.
21127
21128 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
21129
21130         * config/i386/driver-i386.c (host_detect_local_cpu): Check
21131         extended family and model for Intel processors.  Support Intel Atom.
21132
21133 2009-05-20  Olivier Hainque  <hainque@adacore.com>
21134
21135         * gstab.h (stab_code_type): Define, to be used instead of the
21136         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
21137         notice.
21138         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
21139         occurrences by stab_code_type.
21140         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
21141
21142 2009-05-20  Martin Jambor  <mjambor@suse.cz>
21143
21144         * tree-flow.h (insert_edge_copies_seq): Undeclare.
21145         (sra_insert_before): Likewise.
21146         (sra_insert_after): Likewise.
21147         (sra_init_cache): Likewise.
21148         (sra_type_can_be_decomposed_p): Likewise.
21149         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
21150         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
21151         (sra_insert_before): Likewise.
21152         (sra_insert_after): Likewise.
21153         (sra_init_cache): Likewise.
21154         (insert_edge_copies_seq): Made static and moved upwards.
21155
21156         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
21157         case.
21158
21159         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
21160
21161         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
21162         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
21163         simple copies.
21164
21165 2009-05-20  Richard Guenther  <rguenther@suse.de>
21166
21167         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21168         with mismatched comparison modes.
21169
21170 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21171
21172         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
21173         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
21174         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
21175         with shifts for Thumb2.
21176         (orsi_notsi): New for orn.
21177         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
21178         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
21179         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
21180         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
21181         Don't invert remainder for IOR.
21182
21183 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
21184
21185         PR tree-optimization/40087
21186         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
21187         number_of_iterations_ne): Rename never_infinite argument.
21188         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
21189         number_of_iterations_le): Handle pointer-type ivs when
21190         exit_must_be_taken is false.
21191         (number_of_iterations_cond):  Do not always assume that
21192         exit_must_be_taken if the control variable is a pointer.
21193
21194 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21195
21196         * c-typeck.c (build_binary_op): Allow % on integal vectors.
21197         * doc/extend.texi (Vector Extension): Document that % is allowed too.
21198
21199 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
21200
21201         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
21202         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
21203
21204 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21205
21206         PR c/40172
21207         * c.opt (Wlogical-op): Disabled by default.
21208         * c-opt (c_common_post_options): Do not enable Wlogical-op with
21209         Wextra.
21210         * doc/invoke.texi (Wlogical-op): Likewise.
21211
21212 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21213
21214         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
21215         into CASE_CONVERT.
21216         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
21217         Propagate the type of the first operand.
21218         <ASSERT_EXPR>: Simplify.
21219         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
21220         Rewrite using the RHS code as discriminant.
21221         <NOP_EXPR>: Turn into CASE_CONVERT.
21222         <PLUS_EXPR>: Propagate the type of the first operand.
21223
21224 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
21225
21226         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
21227         (ia64_dconst_0_375): New.
21228         * config/ia64/ia64.c (ia64_override_options): Remove
21229         -minline-sqrt-min-latency warning.
21230         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
21231         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
21232         * config/ia64/ia64.md (*sqrt_approx): Remove.
21233         (sqrtsf2): Remove #if 0.
21234         (sqrtsf2_internal_thr): Rewrite and move to div.md.
21235         (sqrtdf): Remove assert.
21236         (sqrtdf2_internal_thr): Rewrite and move to div.md.
21237         (sqrtxf2): Remove #if 0.
21238         (sqrtxf2_internal_thr): Rewrite and move to div.md.
21239         * div.md (sqrt_approx_rf): New.
21240         (sqrtsf2_internal_thr): New implementation.
21241         (sqrtsf2_internal_lat): New.
21242         (sqrtdf2_internal_thr: New implementation.
21243         (sqrtxf2_internal): New implementation.
21244
21245 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21246             Hans-Peter Nilsson  <hp@axis.com>
21247
21248         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
21249         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
21250         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
21251         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
21252         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
21253         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
21254         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
21255         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
21256         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
21257         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
21258         * c-common.c: ...from here.
21259
21260 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21261
21262         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
21263
21264 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21265
21266         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
21267
21268 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21269
21270         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
21271         assignments with memcpy calls.
21272         (add_fdes): Likewise.
21273         (binary_search_unencoded_fdes): Likewise.
21274         (linear_search_fdes): Eliminate type puns.
21275
21276 2009-05-19  Richard Guenther  <rguenther@suse.de>
21277
21278         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
21279         not falsely claim to have propagated into all uses.
21280
21281 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21282
21283         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
21284         version to v3.0.
21285
21286 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21287
21288         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
21289         * config/sh/sh.c (sh_legitimate_address_p): Make static.
21290         (TARGET_LEGITIMATE_ADDRESS_P): New.
21291         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21292         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21293
21294 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
21295
21296         PR debug/40109
21297         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
21298         child of the containing namespace's DIE.
21299
21300 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
21301
21302         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
21303         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
21304         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
21305         extend patterns.
21306
21307 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
21308
21309         PR target/39942
21310         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
21311         gen_align with gen_pad.
21312         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
21313         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
21314
21315         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
21316         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
21317
21318         * config/i386/i386.md (align): Renamed to ...
21319         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
21320         ASM_OUTPUT_MAX_SKIP_PAD.
21321
21322 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
21323
21324         * config.gcc: Fix variable syntax.
21325
21326         PR target/39531
21327         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
21328         before calling exact_log2.
21329         (output_iorsi3): Likewise.
21330         (output_xorsi3): Likewise.
21331
21332 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21333
21334         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
21335         for the none zero constant operand except for EQ and NE
21336         comprisons even when the first operand is R0.
21337
21338 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
21339
21340         * config/s390/2064.md: Remove trailing whitespaces.
21341         * config/s390/2084.md: Likewise.
21342         * config/s390/constraints.md: Likewise.
21343         * config/s390/fixdfdi.h: Likewise.
21344         * config/s390/libgcc-glibc.ver: Likewise.
21345         * config/s390/s390-modes.def: Likewise.
21346         * config/s390/s390-protos.h: Likewise.
21347         * config/s390/s390.c: Likewise.
21348         * config/s390/s390.h: Likewise.
21349         * config/s390/s390.md: Likewise.
21350         * config/s390/tpf-unwind.h: Likewise.
21351
21352 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21353
21354         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
21355
21356 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21357
21358         M68K TLS support.
21359         * configure.ac (m68k-*-*): Check if binutils support TLS.
21360         * configure: Regenerate.
21361         * config/m68k/predicates.md (symbolic_operand): Extend comment.
21362         * config/m68k/constraints.md (Cu): New constraint.
21363         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
21364         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
21365         (movsi): Handle TLS symbols.
21366         (addsi3_5200): Handle XTLS symbols, indent.
21367         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
21368         (m68k_tls_reference_p): Declare.
21369         (m68k_legitimize_address): Declare.
21370         (m68k_unwrap_symbol): Declare.
21371         * config/m68k/m68k.opt (mxtls): New option.
21372         * config/m68k/m68k.c (ggc.h): Include.
21373         (m68k_output_dwarf_dtprel): Implement hook.
21374         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
21375         (m68k_expand_prologue): Load GOT pointer when function needs it.
21376         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
21377         (m68k_legitimate_constant_address_p): Same.
21378         (m68k_decompose_address): Handle TLS references.
21379         (m68k_get_gp): New static function.
21380         (enum m68k_reloc): New contants.
21381         (TLS_RELOC_P): New macro.
21382         (m68k_wrap_symbol): New static function.
21383         (m68k_unwrap_symbol): New function.
21384         (m68k_final_prescan_insn_1): New static function.
21385         (m68k_final_prescan_insn): New function.
21386         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
21387         functions.
21388         (legitimize_pic_address): Handle TLS references..
21389         (m68k_tls_get_addr, m68k_get_tls_get_addr)
21390         (m68k_libcall_value_in_a0_p)
21391         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
21392         (m68k_call_m68k_read_tp): Helper variables and functions for ...
21393         (m68k_legitimize_tls_address): Handle TLS references.
21394         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
21395         New functions.
21396         (m68k_legitimize_address): Handle TLS symbols.
21397         (m68k_get_reloc_decoration): New static function.
21398         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
21399         UNSPEC_RELOC32.
21400         (m68k_output_dwarf_dtprel): Implement hook.
21401         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
21402         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
21403         m68k_call_* routines.
21404         (sched_attr_op_type): Handle TLS symbols.
21405         (gt-m68k.h): Include.
21406         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
21407         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
21408
21409 2009-05-18  Martin Jambor  <mjambor@suse.cz>
21410
21411         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
21412         (visit_store_addr_for_mod_analysis): New function.
21413         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
21414         (determine_cst_member_ptr): Use gimple_assign_single_p.
21415         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
21416         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
21417         operands.  Don't check number of operands of a NOP_EXPR.
21418
21419 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
21420
21421         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
21422
21423 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21424
21425         PR c/40172
21426         * c-common.c (warn_logical_operator): Don't warn if one of
21427         expression isn't always true or false.
21428
21429 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
21430
21431         * config/i386/biarch32.h: New file.
21432         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
21433
21434 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
21435
21436         * config/mips/mips.md (*zero_extend<mode>_trunchi,
21437         *zero_extend<mode>_truncqi): Merge these into ...
21438         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
21439         Name the pattern following this as *zero_extendhi_truncqi.
21440
21441 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
21442
21443         PR middle-end/39301
21444         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
21445         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
21446         (output_info): Make field HOST_WIDEST_INT.
21447         (print_statistics): Use HOST_WIDEST_INT_PRINT.
21448         (dump_bitmat_statistics): Same.
21449
21450 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21451
21452         * config.gcc (use_gcc_stdint):  Set to wrap.
21453         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
21454         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
21455         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21456         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21457         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21458         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21459         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21460         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
21461
21462 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
21463
21464         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
21465         tune_64.
21466         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
21467         Move definitions earlier.
21468         (OPT_ARCH64, OPT_ARCH32): Define.
21469         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
21470         and tune_64.
21471
21472 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21473
21474         PR target/40153
21475         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
21476         implies.
21477
21478 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21479
21480         * arm.md (movdi2): Copy non-reg values to DImode registers.
21481
21482 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
21483
21484         PR target/39942
21485         * final.c (label_to_max_skip): New function.
21486         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
21487         CODE_LABEL_NUMBER <= max_labelno.
21488         * output.h (label_to_max_skip): New prototype.
21489         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
21490         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
21491         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
21492         Handle CODE_LABELs with >= 16 byte alignment or with
21493         max_skip == (1 << align) - 1.
21494         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
21495         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
21496
21497         PR target/39942
21498         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
21499         .p2align 3 if MAX_SKIP is smaller than 7.
21500         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21501
21502 2009-05-15  Ian Lance Taylor  <iant@google.com>
21503
21504         * alias.c (struct alias_set_entry_d): Rename from struct
21505         alias_set_entry.  Change all uses.
21506         * except.c (struct call_site_record_d): Rename from struct
21507         call_site_record.  Change all uses.
21508         * except.h (struct eh_region_d): Rename from struct eh_region.
21509         Change all uses.
21510         * gcse.c (struct hash_table_d): Rename from struct hash_table.
21511         Change all uses.
21512         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
21513         ivtype_map_elt.  Change all uses.
21514         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
21515         Change all uses.
21516         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
21517         * graphite.h (struct name_tree_d): Rename from struct name_tree.
21518         Change all uses.
21519         (struct sese_d): Rename from struct sese.  Change all uses.
21520         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
21521         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
21522         * optabs.h (struct optab_d): Rename from struct optab.  Change all
21523         uses.
21524         (struct convert_optab_d): Rename from struct convert_optab.
21525         Change all uses.
21526         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
21527         ipa_opt_pass.  Change all uses.
21528         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
21529         all uses.
21530
21531         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
21532         defined as a typedef.
21533         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
21534         defined as a tag.
21535
21536 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21537
21538         PR 16302
21539         * fold-const.c (make_range,build_range_check,merge_ranges): Move
21540         declaration to...
21541         (merge_ranges): Returns bool.
21542         * tree.h (make_range): .. to here.
21543         (build_range_check): Likewise.
21544         (merge_ranges): Likewise. Renamed from merge_ranges.
21545         * c-typeck.c (parser_build_binary_op): Update calls to
21546         warn_logical_operator.
21547         * c-common.c (warn_logical_operator): Add new warning.
21548         * c-common.h (warn_logical_operator): Update declaration.
21549
21550 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21551
21552         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
21553
21554 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21555
21556         * doc/install.texi: Document MPC requirements, flags etc.
21557
21558         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
21559         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
21560         Evaluate constant arguments.
21561         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
21562         (fold_builtin_1): Likewise, also evaluate constant arguments.
21563         Remove superfluous break.
21564         (do_mpc_ckconv): New.
21565         * real.h: Include mpc.h.
21566         * toplev.c (print_version): Output MPC version info if available.
21567
21568 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21569
21570         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
21571
21572 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21573
21574         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
21575         only once.
21576
21577 2009-05-15  Jan Hubicka  <jh@suse.cz>
21578
21579         * doc/invoke.texi (max-early-inliner-iterations): New flag.
21580         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
21581         (try_inline): Fix return value.
21582         (cgraph_decide_inlining_incrementally): Honor new value.
21583         (cgraph_early_inlining): Handle indirect inlining.
21584         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
21585
21586 2009-05-15  Jan Hubicka  <jh@suse.cz>
21587
21588         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
21589         * cgraphunit.c (cgraph_finalize_function): Set it.
21590         (cgraph_expand_function): Use it.
21591
21592 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21593
21594         * real.c (encode_ieee_half): Define.
21595         (decode_ieee_half): Define.
21596         (ieee_half_format): Define.
21597         (arm_half_format): Define.
21598         * real.h (ieee_half_format): Declare.
21599         (arm_half_format): Declare.
21600
21601 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21602
21603         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
21604         swapped, and reversed optabs exist before trying to use them.
21605
21606 2009-05-15  Paul Brook  <paul@codesourcery.com>
21607             Sandra Loosemore  <sandra@codesourcery.com>
21608
21609         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
21610         loads.  Allow PRE_DEC.
21611         (output_move_neon): Handle PRE_DEC.
21612         (arm_print_operand): Add 'A' for neon structure loads.
21613         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
21614         * config/arm/neon.md (neon_mov): Update comment.
21615         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
21616         calls.
21617         (Um): New constraint.
21618
21619 2009-05-15  Jan Hubicka  <jh@suse.cz>
21620
21621         Revert the following patch until testsuite fallout is fixed:
21622         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21623         * cgraph.h (struct inline_summary): New filed self_wize,
21624         size_inlining_benefit, self_time and time_inlining_benefit.
21625         (struct cgraph_global_info): Replace insns by time ans size fields.
21626         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21627         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21628         (ipcp_update_callgraph): Do not touch function bodies.
21629         * ipa-inline.c: Include except.h
21630         (MAX_TIME): New constant.
21631         (overall_insns): Remove
21632         (overall_size, max_benefit): New static variables.
21633         (cgraph_estimate_time_after_inlining): New function.
21634         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21635         (cgraph_clone_inlined_nodes): Update size.
21636         (cgraph_mark_inline_edge): Update size.
21637         (cgraph_estimate_growth): Use size info.
21638         (cgraph_check_inline_limits): Check size.
21639         (cgraph_default_inline_p): Likewise.
21640         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21641         (cgraph_decide_recursive_inlining): Check size.
21642         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21643         and times.
21644         (cgraph_decide_inlining): Likewise.
21645         (cgraph_decide_inlining_incrementally): Likewise; honor
21646         PARAM_EARLY_INLINING_INSNS.
21647         (likely_eliminated_by_inlining_p): New predicate.
21648         (estimate_function_body_sizes): New function.
21649         (compute_inline_parameters): Use it.
21650         * except.c (must_not_throw_labels): New function.
21651         * except.h (must_not_throw_labels): Declare.
21652         * tree-inline.c (init_inline_once): Kill inlining_weigths
21653         * tree-ssa-structalias.c: Avoid uninitialized warning.
21654         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21655         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21656         (PARAM_INLINE_CALL_COST): Remove.
21657         (PARAM_EARLY_INLINING_INSNS): New.
21658
21659 2009-05-15  Richard Guenther  <rguenther@suse.de>
21660
21661         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
21662         not TODO_update_ssa.
21663
21664 2009-05-15  Richard Guenther  <rguenther@suse.de>
21665
21666         PR tree-optimization/39999
21667         * gimple.h (gimple_expr_type): Use the expression type looking
21668         through useless conversions.
21669         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
21670         (vn_nary_op_insert_stmt): Likewise.
21671         (simplify_binary_expression): Likewise.
21672
21673 2009-05-15  Richard Guenther  <rguenther@suse.de>
21674
21675         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21676         New options, enabled by default.
21677         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21678         Document.
21679         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
21680         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
21681         * tree-ssa-structalias.c (gate_tree_pta): New function.
21682         (pass_build_alias): Use it.
21683
21684 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
21685
21686         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
21687         recurse on an invariant address if a conversion from a pointer
21688         type to a wider integer type is involved.
21689
21690 2009-05-15  Jan Hubicka  <jh@suse.cz>
21691
21692         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21693         * cgraph.h (struct inline_summary): New filed self_wize,
21694         size_inlining_benefit, self_time and time_inlining_benefit.
21695         (struct cgraph_global_info): Replace insns by time ans size fields.
21696         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21697         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21698         (ipcp_update_callgraph): Do not touch function bodies.
21699         * ipa-inline.c: Include except.h
21700         (MAX_TIME): New constant.
21701         (overall_insns): Remove
21702         (overall_size, max_benefit): New static variables.
21703         (cgraph_estimate_time_after_inlining): New function.
21704         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21705         (cgraph_clone_inlined_nodes): Update size.
21706         (cgraph_mark_inline_edge): Update size.
21707         (cgraph_estimate_growth): Use size info.
21708         (cgraph_check_inline_limits): Check size.
21709         (cgraph_default_inline_p): Likewise.
21710         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21711         (cgraph_decide_recursive_inlining): Check size.
21712         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21713         and times.
21714         (cgraph_decide_inlining): Likewise.
21715         (cgraph_decide_inlining_incrementally): Likewise; honor
21716         PARAM_EARLY_INLINING_INSNS.
21717         (likely_eliminated_by_inlining_p): New predicate.
21718         (estimate_function_body_sizes): New function.
21719         (compute_inline_parameters): Use it.
21720         * except.c (must_not_throw_labels): New function.
21721         * except.h (must_not_throw_labels): Declare.
21722         * tree-inline.c (init_inline_once): Kill inlining_weigths
21723         * tree-ssa-structalias.c: Avoid uninitialized warning.
21724         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21725         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21726         (PARAM_INLINE_CALL_COST): Remove.
21727         (PARAM_EARLY_INLINING_INSNS): New.
21728         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
21729         (inline-call-cost): Remove.
21730         (early-inlining-insns): New.
21731
21732 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
21733
21734         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
21735         for bounds.
21736         (print_int_cst_bounds_in_octal_p): Likewise.
21737         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
21738         with subtypes.
21739         * dwarf2out.c (base_type_die): Likewise.
21740         (is_subrange_type): Delete.
21741         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
21742         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
21743         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
21744         if the destination type is boolean.
21745         (build_range_check): Do not special-case subtypes.
21746         (fold_sign_changed_comparison): Likewise.
21747         (fold_unary): Likewise.
21748         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
21749         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
21750         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
21751         * tree.c (subrange_type_for_debug_p): New predicate based on the
21752         former is_subrange_type.
21753         * tree.h (subrange_type_for_debug_p): Declare.
21754         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
21755         (convert_affine_scev): Remove call to above function.
21756         (chrec_convert_aggressive): Likewise.
21757         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
21758         false for conversions involving subtypes.
21759         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
21760         (vrp_val_min): Likewise.
21761         (needs_overflow_infinity): Likewise.
21762         (extract_range_from_unary_expr): Likewise.
21763
21764 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
21765
21766         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21767         * config/frv/frv.c: Likewise.
21768         * config/s390/s390.c: Likewise.
21769         * config/sparc/sparc.h: Likewise.
21770         * config/i386/i386.h: Likewise.
21771         * config/i386/i386.c: Likewise.
21772         * config/crx/crx.c: Likewise.
21773         * config/m68hc11/m68hc11.h: Likewise.
21774         * config/iq2000/iq2000.c: Likewise.
21775         * config/mn10300/mn10300.h: Likewise.
21776         * config/mn10300/mn10300.c: Likewise.
21777         * config/m68k/m68k.c: Likewise.
21778         * config/rs6000/rs6000.c: Likewise.
21779         * config/rs6000/xcoff.h: Likewise.
21780         * config/rs6000/linux64.h: Likewise.
21781         * config/rs6000/sysv4.h: Likewise.
21782         * config/score/score3.c: Likewise.
21783         * config/score/score7.c: Likewise.
21784         * config/score/score.c: Likewise.
21785         * config/arm/arm.md: Likewise.
21786         * config/mips/mips.c: Likewise.
21787         * config/mips/mips.md: Likewise.
21788         * config/bfin/bfin.h: Likewise.
21789         * config/pa/pa.c: Likewise.
21790         * config/pa/constraints.md: Likewise.
21791
21792         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
21793         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
21794         * config/pdp11/pdp11.h: Use memory_address_p instead.
21795
21796 2009-05-14  Ian Lance Taylor  <iant@google.com>
21797
21798         * passes.c (finish_optimization_passes): Change i to int.
21799         * plugin.c (plugins_active_p): Change event to int.
21800         (dump_active_plugins): Likewise.
21801         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
21802         Add cast.
21803         * tree.c (tree_range_check_failed): Change c to unsigned int.
21804         (omp_clause_range_check_failed): Likewise.
21805         (build_common_builtin_nodes): Change mode to int.  Add cast.
21806         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
21807         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
21808
21809         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
21810         ++ or -- with a variable of enum type.
21811
21812 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21813
21814         PR driver/40144
21815         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
21816
21817 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21818
21819         * store-motion.c: Do not include params.h
21820         * Makefile.in: Fix dependencies for various files.
21821
21822 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21823
21824         * auto-inc-dec.c: Fix pass description, remove apparent
21825         accidental duplication.
21826
21827 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21828
21829         PR middle-end/40147
21830         * ipa-utils.h (memory_identifier_string): Moved to ...
21831         * tree.h (memory_identifier_string): Here.  Add GTY(()).
21832
21833 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
21834
21835         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
21836         in the former documentation of...
21837         (GO_IF_LEGITIMATE_ADDRESS): ... this.
21838         * ira-conflicts.c (get_dup_num): Use address_operand.
21839         * targhooks.c (default_legitimate_address_p): New.
21840         * targhooks.h (default_legitimate_address_p): New.
21841         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
21842         Call hook.
21843         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
21844         * target.h (struct target): Add legitimate_address_p.
21845         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
21846         (TARGET_INITIALIZER): Include it.
21847
21848         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21849         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
21850         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
21851         (TARGET_LEGITIMATE_ADDRESS_P): New.
21852
21853         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21854         (REG_OK_STRICT_P): Delete.
21855         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
21856         (frv_legitimate_address_p_1): ... this.
21857         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
21858         (frv_legitimate_address_p_1): ... the renamed old
21859         frv_legitimate_address_p.
21860         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
21861         (TARGET_LEGITIMATE_ADDRESS_P): New.
21862
21863         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21864         * config/s390/s390-protos.h (legitimate_address_p): Remove.
21865         * config/s390/s390.c (legitimate_address_p): Rename to...
21866         (s390_legitimate_address_p): ... this, make static.
21867         (legitimize_address): Adjust call.
21868         (TARGET_LEGITIMATE_ADDRESS_P): New.
21869         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
21870
21871         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21872         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
21873         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
21874         (TARGET_LEGITIMATE_ADDRESS_P): New.
21875
21876         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21877         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
21878         * config/spu/spu.c (spu_legitimate_address): Rename to...
21879         (spu_legitimate_address_p): ... this, make static.
21880         (TARGET_LEGITIMATE_ADDRESS_P): New.
21881
21882         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21883         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
21884         * config/sparc/sparc.c (legitimate_address_p): Rename to...
21885         (sparc_legitimate_address_p): ... this, make static and return bool.
21886         (legitimize_address): Adjust call.
21887         (TARGET_LEGITIMATE_ADDRESS_P): New.
21888
21889         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21890         * config/i386/i386-protos.h (legitimate_address_p): Remove.
21891         * config/i386/i386.c (legitimate_address_p): Rename to...
21892         (ix86_legitimate_address_p): ... this, make static.
21893         (constant_address_p): Move after it, adjust call.
21894         (TARGET_LEGITIMATE_ADDRESS_P): New.
21895
21896         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21897         * config/avr/avr-protos.h (legitimate_address_p): Remove.
21898         * config/avr/avr.c (legitimate_address_p): Rename to...
21899         (avr_legitimate_address_p): ... this, make static.
21900         (legitimize_address): Adjust call.
21901         (TARGET_LEGITIMATE_ADDRESS_P): New.
21902
21903         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21904         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
21905         * config/crx/crx.c (crx_legitimate_address_p): Make static.
21906         (TARGET_LEGITIMATE_ADDRESS_P): New.
21907
21908         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21909         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
21910         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
21911         (TARGET_LEGITIMATE_ADDRESS_P): New.
21912
21913         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21914         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
21915         Remove.
21916         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
21917         Make static.
21918         (TARGET_LEGITIMATE_ADDRESS_P): New.
21919
21920         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21921         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
21922         Remove.
21923         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
21924         Rename to...
21925         (m68hc11_legitimate_address_p): ... this, make static.
21926         (go_if_legitimate_address_internal): Rename to...
21927         (m68hc11_legitimate_address_p_1): ... this.
21928         (legitimize_address): Adjust call.
21929         (TARGET_LEGITIMATE_ADDRESS_P): New.
21930
21931         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21932         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
21933         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
21934         (TARGET_LEGITIMATE_ADDRESS_P): New.
21935
21936         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21937         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
21938         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
21939         (mn10300_legitimate_address_p): ... this, make static.
21940         (TARGET_LEGITIMATE_ADDRESS_P): New.
21941
21942         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21943         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
21944         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
21945         (TARGET_LEGITIMATE_ADDRESS_P): New.
21946
21947         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21948         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
21949         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
21950         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21951         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
21952         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
21953         (rs6000_legitimate_address_p): ... this, make static.
21954         (TARGET_LEGITIMATE_ADDRESS_P): New.
21955         (REG_MODE_OK_FOR_BASE_P): Delete.
21956         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
21957
21958         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21959         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
21960         Delete.
21961         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
21962         static, adjust types.
21963         (TARGET_LEGITIMATE_ADDRESS_P): New.
21964
21965         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21966         * config/score/score.c (score_address_p): Rename to...
21967         (score_legitimate_address_p): ... this.
21968         (TARGET_LEGITIMATE_ADDRESS_P): New.
21969         * config/score/score3.c (score3_address_p): Rename to...
21970         (score3_legitimate_address_p): ... this.
21971         * config/score/score7.c (score7_address_p): Rename to...
21972         (score7_legitimate_address_p): ... this.
21973
21974         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
21975         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
21976         GO_IF_LEGITIMATE_ADDRESS): Delete.
21977         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
21978         thumb2_legitimate_address_p): Delete.
21979         (arm_legitimate_address_p): Rename to...
21980         (arm_legitimate_address_outer_p): ... this.
21981         * config/arm/constraints.md ("Uq"): Adjust call.
21982         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
21983         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
21984         to...
21985         (arm_legitimate_address_outer_p): ... this.
21986         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
21987         static.
21988         (TARGET_LEGITIMATE_ADDRESS_P): New.
21989
21990         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21991         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
21992         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
21993         (TARGET_LEGITIMATE_ADDRESS_P): New.
21994
21995         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21996         * config/vax/vax-protos.h (legitimate_address_p): Remove.
21997         * config/vax/vax.c (legitimate_address_p): Rename to...
21998         (vax_legitimate_address_p): ... this, make static.
21999         (TARGET_LEGITIMATE_ADDRESS_P): New.
22000
22001         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22002         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
22003         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
22004         (TARGET_LEGITIMATE_ADDRESS_P): New.
22005
22006         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22007         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
22008         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
22009         (mmix_legitimate_address_p): ... this, make static.
22010         (TARGET_LEGITIMATE_ADDRESS_P): New.
22011
22012         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22013         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
22014         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
22015         (TARGET_LEGITIMATE_ADDRESS_P): New.
22016
22017 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22018
22019         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
22020         of MODE_COMPLEX_INT.
22021
22022 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22023
22024         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
22025         LCT_NORMAL in function call.
22026         * mips-tdump.c (print_file_desc): Add cast to enum type.
22027         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
22028         (mark_stabs): Add casts to enum types.
22029         (parse_stabs_common): Add casts to enum types.
22030
22031 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22032
22033         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
22034         Check for invalid values of LETTER.
22035
22036 2009-05-13  Taras Glek  <tglek@mozilla.com>
22037
22038         * attribs.c (register_attribute): moved out attribute registration
22039         into register_attribute.
22040         * doc/plugins.texi: Documented register_attribute and
22041         PLUGIN_ATTRIBUTES.
22042         * gcc-plugin.h: Added forward decl for register_attribute.
22043         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
22044         * plugin.c (register_callback, invoke_plugin_callbacks): Added
22045         PLUGIN_ATTRIBUTES boilerplate.
22046
22047 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
22048
22049         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
22050         values even in sentinel and empty entries.
22051         (ms_printf_flag_specs):  Likewise.
22052         (ms_scanf_flag_specs):  Likewise.
22053         (ms_strftime_flag_specs):  Likewise.
22054         (ms_print_char_table):  Likewise.
22055         (ms_scan_char_table):  Likewise.
22056         (ms_time_char_table):  Likewise.
22057
22058 2009-05-13  Doug Kwan  <dougkwan@google.com>
22059
22060         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
22061
22062 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22063
22064         * config/mips/mips.md (store): Add attributes for QI and HI.
22065         Update comment.
22066         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
22067         (truncdi<mode>2): ... this new pattern.
22068
22069 2009-05-13  Brad Hards  <bradh@kde.org>
22070
22071         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
22072
22073 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
22074             Ben Elliston <bje@au.ibm.com>
22075
22076         PR middle-end/40035
22077         * dse.c (check_mem_read_rtx): Guard against width == -1.
22078
22079 2009-05-13  Michael Matz  <matz@suse.de>
22080
22081         PR middle-end/39976
22082         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
22083         (trivially_conflicts_p): New function.
22084         (insert_backedge_copies): Use it.
22085
22086 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
22087
22088         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
22089         (handle_stdc_pragma): Use new enum constant names.
22090         (handle_pragma_float_const_decimal64): Ditto.
22091
22092 2009-05-13  Ian Lance Taylor  <iant@google.com>
22093
22094         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
22095         tree.def.
22096
22097 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
22098
22099         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
22100         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
22101         multilibs.
22102         * config/m68k/m68k.h (FL_UCLINUX): Define.
22103
22104 2009-05-13  Jan Hubicka  <jh@suse.cz>
22105
22106         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
22107
22108 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22109
22110         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
22111         unless -fschedule-insns is specified.
22112
22113 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22114
22115         PR target/39561
22116         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
22117         TARGET_EXPAND_CBRANCHDI4.
22118         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
22119         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
22120         (cmpeqdi): Fix comment.
22121
22122 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22123
22124         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
22125         (sh_legitimate_address_p): Likewise.
22126         * config/sh/sh.c (sh_legitimate_index_p): New.
22127         (sh_legitimate_address_p): Likewise.
22128         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
22129         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
22130         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
22131         (MAYBE_BASE_REGISTER_RTX_P): New macro.
22132         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
22133         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
22134         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
22135         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
22136         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
22137
22138 2009-05-12  Jan Hubicka  <jh@suse.cz>
22139
22140         * tree-inline.c (estimate_operator_cost): Add operands;
22141         when division happens by constant, it is cheap.
22142         (estimate_num_insns): Loads and stores are not having cost of 0;
22143         EH magic stuff is cheap; when computing runtime cost of switch,
22144         use log2 base of amount of its cases; builtin_expect has cost of 0;
22145         compute cost for moving return value of call.
22146         (init_inline_once): Initialize time_based flags.
22147         * tree-inline.h (eni_weights_d): Add time_based flag.
22148
22149 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22150
22151         * df-core.c: Update head documentation.
22152
22153 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22154
22155         PR bootstrap/40118
22156         * rs6000.c (rs6000_generate_compare): Use op1b instead of
22157         shadowing exisiting variable op1.
22158
22159 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
22160
22161         PR target/37179
22162         * config/i386/driver-i386.c (processor_signatures): New enum.
22163         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
22164         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
22165         processor signature to detect geode processor.
22166
22167 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22168
22169         Revert:
22170
22171         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22172
22173         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22174         causes spurious differences between trunk and cond-optab branch.
22175
22176 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22177
22178         * dojump.c (compare_from_rtx): Delete.
22179         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
22180         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
22181         if the comparison does not satisfy the predicate; test predicates for
22182         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
22183         further if one existing pattern fails.
22184         * expr.h (compare_from_rtx): Delete.
22185         (prepare_operand): Declare it.
22186         * optabs.c: Change "lib call" to "libcall" throughout.
22187         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
22188         HAVE_conditional_trap, emit_cmp_insn): Delete.
22189         (can_compare_p): Delete cmp_optab case.
22190         (prepare_float_lib_cmp): Return an rtx and a machine mode.
22191         Accept other parameters by value.
22192         (prepare_operand): Make non-static.
22193         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
22194         other parameters by value.  Try to widen operands here based on
22195         an optab_methods argument and looking at cbranch_optab.
22196         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
22197         loop.  Use cbranch_optab directly.
22198         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
22199         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
22200         assertion.
22201         (emit_conditional_move, emit_conditional_add): Inline what's needed
22202         of compare_from_rtx, using new prepare_cmp_insn for the rest.
22203         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
22204         with COMPARE.  Move cmov_optab and cstore_optab above
22205         with cbranch_optab, move cmp_optab down with ucmp_optab,
22206         remove tst_otpab.  Do not initialize trap_rtx.
22207         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
22208         for trap code.  Do not check HAVE_conditional_trap.  Use
22209         prepare_cmp_insn.  Accept no predicate for operand 3.
22210         * optabs.h (OTI_cmp): Mark as used only for libcalls.
22211         (OTI_ctrap, ctrap_optab): New.
22212         (tst_optab): Delete.
22213         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
22214         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
22215         with lookup of ctrap_optab.
22216         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
22217         Delete.
22218         (ctrap_optab): New.
22219
22220         * combine.c (combine_simplify_rtx, simplify_set): Do not
22221         special case comparing against zero for cc0 machines.
22222         * simplify-rtx.c (simplify_binary_operation_1): Never remove
22223         COMPARE on cc0 machines.
22224         (simplify_relational_operation): Return a new expression when
22225         a COMPARE could be removed.
22226         * final.c (final_scan_insn): Compare cc_status values
22227         against LHS of a (compare FOO (const_int 0)) cc0 source.
22228         Also check if cc_status.value is the full compare.
22229
22230         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
22231         (cstoreMM4): Document.
22232         (conditional_trap): Document ctrapMM4 instead.
22233         (sync_compare_and_swapMM): Refer to cbranchcc4.
22234         (Dependent Patterns): Eliminate obsolete information referring to
22235         the old jump optimization phase.
22236         (Canonicalization): Include cbranchcc4 case, omit canonicalization
22237         of compares with 0 on cc0 machines.
22238         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
22239         avoiding references to cc0.  Remove text about storing operands
22240         in cmpMM.
22241         * doc/tm.texi (Condition Codes): Include blurb on different
22242         condition code representations, separate into subsections for
22243         CC0, MODE_CC and conditional execution.
22244
22245         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
22246         alpha_emit_setcc): Accept operands and a machine mode.
22247         * config/alpha/alpha.c (alpha_emit_conditional_branch):
22248         Get code/op0/op1 from operands, use machine mode argument
22249         instead of alpha_compare.fp_p.  Emit the branch here.
22250         (alpha_emit_setcc): Likewise, and return boolean.
22251         (alpha_emit_conditional_move): Likewise.  Assert that
22252         cmp_op_mode == cmp_mode, and simplify accordingly.
22253         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
22254         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
22255         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
22256         Delete.
22257         (stack probe test): Use cbranchdi4.
22258         * config/alpha/predicates.md (alpha_cbranch_operator): New.
22259
22260         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
22261         * config/arc/arc.h (movsicc, movsfcc): Use it.
22262         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
22263         (cbranchsi4, cstoresi4): New.
22264         (cmpsi, bCC and sCC expanders): Remove.
22265
22266         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
22267         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
22268         * config/arm/predicates.md (arm_comparison_operator): Only include
22269         floating-point operators if there is a hardware floating-point unit.
22270         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
22271         deferring to cbranch_cc and cstore_cc respectively.
22272         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
22273         cbranch_cc, cstore_cc): New.
22274         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
22275         arm_compare_op1.
22276         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
22277
22278         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
22279         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
22280         as an argument.
22281         (adjust_insn_length): Adjust calls.
22282         (avr_reorg): Handle (compare (foo) (const_int 0)).
22283         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
22284         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
22285         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
22286         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
22287         (bCC): Remove.
22288         (cbranchqi4, cbranchhi4, cbranchsi4): New.
22289         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
22290
22291         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
22292         (cbranchsi4, cstorebi4, cstoresi4): New.
22293         (movbisi): This insn is duplicate, split it to zero_extend.
22294         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
22295         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
22296         (bfin_optimize_loop): Use cbranch expander.
22297         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
22298         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
22299         (bfin_bimode_comparison_operator): ... this.
22300         (bfin_direct_comparison_operator): New.
22301
22302         * config/cris/cris.c (cris_normal_notice_update_cc): Look
22303         inside (compare FOO (const_int 0)).
22304         (cris_rtx_costs): Handle ZERO_EXTRACT.
22305         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
22306         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
22307         (*tstdi_v32): Delete.
22308         (*cmpdi_non_v32): Add M alternative for operand 1.
22309         (cmpsi, cmp<mode>): Make private.
22310         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
22311         with COMPARE.
22312         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
22313
22314         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
22315         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
22316         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
22317         (cc_reg_operand): New.
22318         (any_cond): Delete.
22319         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
22320         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
22321         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
22322         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
22323         crx_expand_scond): Delete.
22324
22325         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
22326         (cbranchsi4): New.
22327         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
22328         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
22329
22330         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
22331         cstoresi4, cstoresf4, cstoredf4): New.
22332         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
22333         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22334         Receive the entire operands array.
22335         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
22336         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
22337         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22338         Get test/op0/op1 from the operands array.
22339         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
22340
22341         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
22342         (h8300_expand_store): New.
22343         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
22344         (const_int 0)).
22345         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
22346         (h8300_expand_store): New.
22347         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
22348         or do not try to produce (set (cc0) REG).
22349         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
22350         change a compare into a move to a scratch register.  Disable some
22351         peepholes when comparing with zero.
22352         (tstsi, tsthi, tstsi, cmpqi): Make private.
22353         (cmphi): Delete.
22354         (bCC, sCC): Delete.
22355         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
22356         cstoresi4): New.
22357
22358         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
22359         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
22360         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
22361         (ix86_emit_i387_log1p): Use cbranchxf2.
22362         (ix86_expand_setcc): Return void.
22363         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
22364         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
22365         cmp<MODEF>, cmpcc): Remove.
22366         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
22367         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
22368         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
22369         (sCC and bCC expanders): Remove.
22370         (stack_protect_test): Use cbranchcc4.
22371
22372         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
22373         Delete.
22374         (ia64_expand_compare): Accept three rtx by reference and return void.
22375         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
22376         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
22377         from *expr.  Update *expr with the BImode comparison to do.
22378         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
22379         cmptf, bCC, sCC, conditional_trap): Delete.
22380         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
22381         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
22382         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
22383         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
22384         * config/ia64/predicates.md (ia64_cbranch_operator): New.
22385
22386         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
22387         type of last argument.
22388         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
22389         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
22390         use machine mode argument instead of branch_type.  Remove dead
22391         code for floating-point comparisons.
22392         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
22393         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
22394         Remove.
22395         (cbranchsi4, cstoresi4): New.
22396         * config/iq2000/predicates.md (reg_or_const_operand): New.
22397
22398         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
22399         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
22400         (b<code>_op): Rewrite to...
22401         (bcc_op): ... this, using match_operator.
22402         (s<code>_op): Rewrite to...
22403         (scc_op): ... this, using match_operator.
22404         (s<code>_24_op): Rewrite to...
22405         (scc_op_24): ... this, using match_operator.
22406         (s<code>_<mode>): Rewrite to...
22407         (cstore<mode>4): ... this, using match_operator.
22408         (s<code>_<mode>_24): Rewrite to...
22409         (cstore<mode>4_24): ... this, using match_operator.
22410         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
22411         m32c_unpend_compare, m32c_expand_scc): Delete.
22412         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
22413         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
22414         (m32c_expand_movcc): Change NE to EQ if necessary.
22415         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
22416
22417         * config/m32r/m32r-protos.h (gen_cond_store): New.
22418         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
22419         (gen_cond_store): New, from sCC patterns.
22420         (m32r_expand_block_move): Use cbranchsi4.
22421         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
22422         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
22423         (cbranchsi4, cstoresi4): New.
22424
22425         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
22426         Delete.
22427         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
22428         (m68hc11_notice_update_cc): Look into a compare with 0.
22429         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
22430         Delete.
22431         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
22432         cmphi, cmpqi, bCC): Delete.
22433         (cbranchsi4, cbranchhi4, cbranchqi4): New.
22434         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
22435         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
22436         sets with COMPARE.
22437
22438         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
22439         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
22440         * config/m68k/constraints.md (H): New.
22441         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
22442         the define_insn below.
22443         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
22444         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
22445         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
22446         patterns): Wrap RHS with COMPARE.
22447         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
22448         (*cmpdi_internal): Name this pattern.
22449         (cmpdi): Change to define_insn.
22450         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
22451         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
22452         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
22453         predicate.
22454         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
22455         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
22456         (conditional_trap): Change to...
22457         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
22458         (*conditional_trap): Use the ordered_comparison_operator and
22459         const1_operand predicates.
22460         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
22461         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
22462         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
22463         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
22464
22465         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
22466         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
22467         (mcore_gen_compare): New.
22468         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
22469         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
22470         (mcore_gen_compare): ... this.
22471         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
22472         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
22473         (stack probe pattern): Use cbranchsi4.
22474
22475         * config/mips/predicates.md (mips_cstore_operator): New.
22476         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
22477         * config/mips/mips.md (any_cond): Delete.
22478         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
22479         always succeed.
22480         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
22481         fixuns_truncsfdi2): Use cbranch patterns.
22482         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
22483         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
22484         Adjust call to mips_expand_conditional_branch.
22485         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
22486         cstore<GPR:mode>4.
22487         * config/mips/mips-protos.h (mips_expand_conditional_branch,
22488         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
22489         * config/mips/mips.c (cmp_operands): Delete.
22490         (mips_emit_compare): Get comparison operands from *op0/*op1.
22491         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
22492         that it succeeds.  Use op0/op1 instead of cmp_operands.
22493         (mips_expand_conditional_branch, mips_expand_conditional_move,
22494         mips_expand_conditional_trap): Likewise.
22495         (mips_block_move_loop): Use cbranch patterns.
22496         * config/mips/mips.h (cmp_operands): Delete.
22497
22498         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
22499         (mmix_gen_compare_reg): Just return a register in the right CC mode.
22500         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
22501         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
22502         (*cmpcc_folded): Rename to...
22503         (*cmpdi_folded): this.
22504         (*cmpcc): Rename to...
22505         (*cmps): ... this.
22506         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
22507         (bCC): Remove.
22508         (cbranchdi4): New.
22509         (cbranchdf4): New.  Handle invalid comparisons here.
22510         * config/mmix/predicates.md (float_comparison_operator): New.
22511
22512         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
22513         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
22514         * config/mn10300/mn10300.md (tst): Delete.
22515         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
22516         Name these patterns and wrap RHS in a compare.
22517         (*cmpsi): Make this pattern private.  Include tst.
22518         (*cmpsf): Make this pattern private.
22519         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
22520         (compare with zero peepholes): Likewise.
22521         (bCC): Remove.
22522         (cbranchsi4, cbranchsf4): New.
22523         (casesi): Use cbranchsi4.
22524
22525         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
22526         hppa_branch_type): Delete.
22527         (return_addr_rtx): Use cbranchsi4.
22528         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
22529         Emit CCFPmode comparison here.
22530         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
22531         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
22532         hppa_branch_type): Delete.
22533         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
22534         (movsicc, movdicc): Remove references to hppa_compare_op0,
22535         hppa_compare_op1 and compare_from_rtx.
22536         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
22537         (casesi): Use cbranchsi4.
22538
22539         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
22540         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
22541         * config/pdp11/pdp11.md (register_or_const0_operand): New.
22542         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
22543         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
22544         (bCC): Delete.
22545         (cbranchdf4, cbranchhi4, cbranchqi4): New.
22546         (*branch, *branch_inverted): New.
22547
22548         * config/picochip/picochip.md (cbranchhi4): Use
22549         ordered_comparison_operator.
22550         (cmphi, bCC): Remove.
22551
22552         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
22553         (trap_comparison_operator): Delete.
22554         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
22555         rs6000_emit_cbranch): Accept mode and operands.
22556         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
22557         rs6000_compare_fp_p): Delete.
22558         (rs6000_generate_compare): Accept mode and comparison.  Extract code
22559         and op0/op1 from there.  Replace references to rs6000_compare_op0
22560         and rs6000_compare_op1.
22561         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
22562         extract result from passed operands.
22563         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
22564         extract loc from passed operands.
22565         (rs6000_emit_cmove): Likewise.
22566         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
22567         rs6000_compare_fp_p): Delete.
22568         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
22569         (cbranch<GPR>4, cbranch<FP>4): New.
22570         (cstore<mode>4): New.  Consolidate here all choices about when to use
22571         portable or specialized sCC sequences.
22572         (stack_protect_test): Use cbranchsi4.
22573         (conditional_trap): Replace with ctrap<GPR>4.
22574         (conditional trap insn): Replace trap_comparison_operator with
22575         ordered_comparison_operator.
22576
22577         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
22578         (s390_emit_prologue): Use ctrap.
22579         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
22580         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
22581         New predicates replacing...
22582         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
22583         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
22584         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
22585         (add<mode>cc): Do not use s390_compare_op0/op1.
22586         (s<code>): Change to...
22587         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
22588         (seq): Change to...
22589         (cstorecc4): ... this.  Handle EQ or NE equally.
22590         (*sne): Un-privatize for use in cstorecc4.
22591         (b<code>): Change to...
22592         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
22593         (conditional_trap): Replace with...
22594         (ctrap<GPR>4, ctrap<FP>4): ... these.
22595         (stack_protect): Use cbranchcc4.
22596
22597         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
22598         * config/score/score-protos.h (score_gen_cmp): Delete.
22599         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
22600         (score_block_move-loop): Use cbranchsi4.
22601         * config/score/score.md (cbranchsi4): New.
22602         (cmpsi, bCC): Delete.
22603         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
22604         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22605         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
22606         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22607         * config/score/score3.h (score3_gen_cmp): Delete.
22608         * config/score/score7.h (score7_gen_cmp): Delete.
22609
22610         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
22611         (sh_emit_scc_to_t): ... this.  Return void.
22612         (from_compare): Rename to...
22613         (sh_emit_compare_and_branch): ... this.
22614         (sh_emit_compare_and_set): New.
22615         (sh_expand_t_scc): Accept operands.
22616         * config/sh/predicates.md (sh_float_comparison_operator): New.
22617         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
22618         (prepare_scc_operands): Rename to...
22619         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
22620         arguments.
22621         (sh_emit_cheap_store_flag): New.
22622         (sh_emit_set_t_insn): New.
22623         (from_compare): Rename to...
22624         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
22625         handling of TARGET_SH2E floating point to avoid recursive call.
22626         Generate branch here.
22627         (sh_emit_compare_and_set): New.
22628         (sh_expand_t_scc): Get op0/op1 from arguments.
22629         (sh_emit_cheap_store_flag): New.
22630         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
22631         cases.
22632         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
22633         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
22634         (movsicc, movdicc): Do nothing when it recreated operands from
22635         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
22636         prepare_scc_operands (now sh_emit_scc_to_t).
22637         (udivdi3): Use cstoresi4.
22638         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
22639         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
22640         (cbranchint4_media, cbranchfp4_media): New.
22641         (casesi): Use cbranchdi4.
22642         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
22643         Delete.
22644         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
22645         (movnegt): Remove second operand.
22646         (cbranchsf4, cbranchdf4): New.
22647         (stack_protect): Use cbranchdi4/cbranchsi4.
22648
22649         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
22650         (gen_compare_reg): Accept comparison, extract part of it to...
22651         (gen_compare_reg_1): ... this.
22652         (gen_compare_operator): Delete.
22653         (gen_v9_scc): Accept separate destination, comparison code and arms.
22654         Do not use sparc_compare_op0/sparc_compare_op1.
22655         (emit_scc_insn, emit_conditional_branch_insn): New.
22656         (emit_v9_brxx): Make static.  Remove useless assertion.
22657         (sparc_emit_float_lib_cmp): Return RTL instead of calling
22658         emit_cmp_insn.
22659         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
22660         * config/sparc/sparc-protos.h (gen_compare_reg,
22661         sparc_emit_float_lib_cmp): Adjust prototype.
22662         (emit_scc_insn, emit_conditional_branch_insn): New.
22663         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
22664         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
22665         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
22666         iterators to the top.
22667         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
22668         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
22669         snedi_special_trunc): Delete.
22670         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
22671         and snedi_special_trunc.
22672         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
22673         cbranchdi4, cbranch<F:mode>4): New.
22674         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
22675         here.  Use gen_compare_reg instead of gen_compare_operator.
22676         (conditional_trap): Replace with...
22677         (ctrapsi4, ctrapdi4): ... this.
22678         (stack_protect_test): Use cbranchcc4.
22679
22680         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
22681         argument to rtx.
22682         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
22683         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
22684         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
22685         from operands[0] or operands[3] depending on is_set.
22686         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
22687         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
22688         cmpdf, bCC), sCC: Remove.
22689         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
22690         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
22691         cstoredf4): New.
22692         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
22693         spu_emit_branch_or_set.
22694
22695         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
22696         Add two arguments.
22697         * config/stormy16/stormy16.h (xstormy16_compare_op0,
22698         xstormy16_compare_op1): Delete.
22699         * config/stormy16/stormy16.c (xstormy16_compare_op0,
22700         xstormy16_compare_op1): Delete.
22701         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
22702         Adjust calls.
22703         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
22704         (cmphi, cmpsi, bCC): Remove.
22705
22706         * config/v850/v850.md (tstsi, cmpsi): Fold into...
22707         (*cmpsi): ... this one.
22708         (cbranchsi4, cstoresi4): New.
22709         (bCC expanders): Delete.
22710         (sCC insns): Fold into...
22711         (*setcc): ... this one.
22712         (casesi): Do not use gen_cmpsi and gen_bgtu.
22713         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
22714         (movsicc): Simplify.
22715         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
22716
22717         * config/vax/vax-protos.h (cond_name): New.
22718         (vax_output_conditional_branch): Remove.
22719         * config/vax/vax.c (cond_name): New.
22720         (vax_output_conditional_branch): Remove.
22721         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
22722         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
22723         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
22724         (bit<VAXint>): Wrap source with (compare).
22725         (b<code> and following unnamed pattern): Rename to *branch and
22726         *branch_reversed.  Change macroization to match_operator.
22727         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
22728
22729         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
22730         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
22731         Change last argument to machine_mode.
22732         (xtensa_expand_scc): Add machine_mode argument.
22733         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
22734         (gen_conditional_move, xtensa_expand_conditional_branch,
22735         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
22736         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
22737         Adjust operand numbers.
22738         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
22739         Delete.
22740         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
22741         (cmpsi, cmpsf, b<code>, s<code>): Delete.
22742         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
22743
22744 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22745
22746         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22747         causes spurious differences between trunk and cond-optab branch.
22748
22749 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22750
22751         PR target/37137
22752         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
22753
22754 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22755
22756         * tree.c (iterative_hash_pointer): Delete.
22757         (iterative_hash_expr): Short-circuit handling of NULL pointer.
22758         Hash UIDs and versions of SSA names.  Don't special-case built-in
22759         function declarations.
22760
22761 2009-05-11  Ian Lance Taylor  <iant@google.com>
22762
22763         PR bootstrap/40103
22764         * graphite.c: Force -Wc++-compat to only be a warning before
22765         #including "cloog/cloog.h".
22766
22767 2009-05-11  Martin Jambor  <mjambor@suse.cz>
22768
22769         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
22770
22771 2009-05-11  Jan Hubicka  <jh@suse.cz>
22772
22773         * tree-ssa-loop-ivcanon.c: Include target.h
22774         (struct loop_size): new structure.
22775         (constant_after_peeling): New predicate.
22776         (tree_estimate_loop_size): New function.
22777         (estimated_unrolled_size): Rewrite for new estimates.
22778         (try_unroll_loop_completely): Use new estimates.
22779         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
22780
22781 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22782
22783         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
22784         libcpp interface change.
22785         (spu_macro_to_expand): Likewise.
22786
22787 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
22788
22789         PR tree-optimization/40026
22790         * gimplify.c (gimplify_init_constructor): Change initial conditional
22791         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
22792         optimize_compound_literals_in_ctor.
22793
22794 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
22795
22796         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
22797         New devices.
22798         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
22799
22800 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
22801
22802         * tree-vect-data-refs.c (vect_analyze_group_access): Use
22803         HOST_WIDE_INT for gap.
22804
22805 2009-05-11  Ira Rosen  <irar@il.ibm.com>
22806
22807         PR tree-optimization/40074
22808         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
22809         account in group size and step comparison.
22810
22811 2009-05-11  Richard Guenther  <rguenther@suse.de>
22812
22813         * passes.c (init_optimization_passes): Strip now incorrect comment.
22814         (execute_function_todo): Do not set PROP_alias.
22815         * tree-pass.h (PROP_alias): Remove.
22816         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
22817         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
22818         * tree-nrv.c (pass_return_slot): Likewise.
22819         * tree-object-size.c (pass_object_sizes): Likewise.
22820         * tree-ssa-dom.c (pass_dominator): Likewise.
22821         (pass_phi_only_cprop): Likewise.
22822         * tree-ssa-dse.c (pass_dse): Likewise.
22823         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
22824         (pass_cselim): Likewise.
22825         * tree-ssa-pre.c (pass_pre): Likewise.
22826         (pass_fre): Likewise.
22827         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22828         * tree-ssa-sink.c (pass_sink_code): Likewise.
22829         * tree-stdarg.c (pass_stdarg): Likewise.
22830         * tree-tailcall.c (pass_tail_calls): Likewise.
22831         * tree-vrp.c (pass_vrp): Likewise.
22832
22833 2009-05-10  Ian Lance Taylor  <iant@google.com>
22834
22835         * basic-block.h (enum profile_status): Break out of struct
22836         control_flow_graph.
22837         * cgraph.h (struct inline_summary): Break out of struct
22838         cgraph_local_info.
22839         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
22840         of struct cgraph_order_sort.
22841         * combine.c (enum undo_kind): New enum, broken out of struct undo.
22842         * cse.c (struct branch_path): Break out of struct
22843         cse_basic_block_data.
22844         * except.h (enum eh_region_type): Break out of struct eh_region.
22845         * gcc.c (enum add_del): Break out of struct modify_target.
22846         * genrecog.c (enum decision_type): Break out of struct decision_test.
22847         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
22848         ggc_pch_data.
22849         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
22850         * regmove.c (enum match_use): New enum, broken out of struct match.
22851         * sched-int.h (enum post_call_group): New enum, broken out of
22852         struct deps.
22853         (struct deps_reg): Break out of struct deps.
22854         * target.h (struct asm_int_op): Break out of struct gcc_target.
22855         * tree-eh.c (struct goto_queue_node): Break out of struct
22856         leh_tf_state.
22857         * tree-inline.h (enum copy_body_cge_which): Break out of
22858         copy_body_data.
22859         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
22860
22861         * c-decl.c (in_struct, struct_types): New static variables.
22862         (pushtag): Add loc parameter.  Change all callers.
22863         (lookup_tag): Add ploc parameter.  Change all callers.
22864         (check_compound_literal_type): New function.
22865         (parser_xref_tag): Add loc parameter.  Change all callers.  If
22866         -Wc++-compat, warn about struct/union/enum types defined within a
22867         struct or union.
22868         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
22869         and loc parameters.  Change all callers.  Change error calls to
22870         error_at, using loc.  For a redefinition, if the location of the
22871         original definition is known, report it.  Set in_struct and
22872         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
22873         (finish_struct): Add new parameters enclosing_in_struct and
22874         enclosing_struct_types.  Change all callers.  Set
22875         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
22876         in the struct.  If in a struct, add this struct to struct_types.
22877         (start_enum): Add loc parameter.  Change all callers.  Use
22878         error_at for errors, using loc.  For a redefinition, if the
22879         location of the original definition is known, report it.  If in a
22880         struct, add this enum type to struct_types.  If -Wc++-compat warn
22881         if in sizeof, typeof, or alignof.
22882         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
22883         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
22884         (c_parser_enum_specifier): Get enum location for start_enum.
22885         (c_parser_struct_or_union_specifier): Get struct location for
22886         start_struct.  Save in_struct and struct_types status between
22887         start_struct and finish_struct.
22888         (c_parser_cast_expression): Get location of cast.
22889         (c_parser_alignof_expression): Get location of type.
22890         (c_parser_postfix_expression): Likewise.
22891         (c_parser_postfix_expression_after_paren_type): Add type_loc
22892         parameter.  Change all callers.  Call check_compound_literal_type.
22893         Use type_loc for error about variable size type.
22894         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
22895         of an enum constant from an enum type defined in a struct or union.
22896         (c_cast_expr): Add loc parameter.  Change all callers.  If
22897         -Wc++-compat, warn about defining a type in a cast.
22898         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
22899         (start_enum, start_struct, finish_struct): Update declarations.
22900         (parser_xref_tag, c_cast_expr): Update declarations.
22901         (check_compound_literal_type): Declare.
22902
22903 2009-05-11  Ben Elliston  <bje@au.ibm.com>
22904
22905         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
22906         for recent libcpp interface change.
22907         (rs6000_macro_to_expand): Likewise.
22908
22909 2009-05-10  Michael Matz  <matz@suse.de>
22910
22911         PR target/40031
22912         * config/arm/arm.c (require_pic_register): Emit on entry edge,
22913         not at entry of function.
22914
22915 2009-05-10  Richard Guenther  <rguenther@suse.de>
22916
22917         PR tree-optimization/40081
22918         Revert
22919         * tree-sra.c (instantiate_element): Instantiate scalar replacements
22920         using the main variant of the element type.  Do not fiddle with
22921         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
22922
22923         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
22924         structs with volatile fields.
22925
22926 2009-05-10  Jan Hubicka  <jh@suse.cz>
22927
22928         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
22929         (estimate_move_cost): Assert that it does not get called for
22930         VOID_TYPE_P.
22931         (estimate_num_insns): Skip VOID types in argument handling.
22932         (optimize_inline_calls): Delete unreachable blocks and verify that
22933         callgraph is valid.
22934
22935 2009-05-10  Jan Hubicka  <jh@suse.cz>
22936
22937         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
22938         * cgraph.c (cgraph_mark_address_taken_node): New function.
22939         (dump_cgraph_node): Dump new flag.
22940         * cgraph.h (struct cgraph_node): Add address_taken.
22941         (cgraph_mark_address_taken_node): New function.
22942         * ipa.c (cgraph_postorder): Prioritize functions with address taken
22943         since new direct calls can be born.
22944
22945 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
22946
22947         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
22948         tok->val.node.node.
22949
22950 2009-05-10  Jan Hubicka  <jh@suse.cz>
22951
22952         PR middle-end/40084
22953         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
22954         argument; rewrite.
22955         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
22956         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
22957         * tree-inline.c (copy_bb): Set frequency correctly.
22958         (fold_marked_statements): Update call to
22959         cgraph_update_edges_for_call_stmt.
22960
22961 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
22962
22963         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
22964         identifiers in diagnostics.
22965         * config/arm/arm.c (arm_handle_fndecl_attribute,
22966         arm_handle_isr_attribute): Likewise.
22967         * config/avr/avr.c (avr_handle_progmem_attribute,
22968         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
22969         * config/bfin/bfin.c (handle_int_attribute,
22970         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
22971         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
22972         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
22973         Likewise.
22974         * config/darwin.c (darwin_handle_kext_attribute,
22975         darwin_handle_weak_import_attribute): Likewise.
22976         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
22977         h8300_handle_eightbit_data_attribute,
22978         h8300_handle_tiny_data_attribute): Likewise.
22979         * config/i386/i386.c (ix86_handle_cconv_attribute,
22980         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
22981         * config/i386/winnt.c (ix86_handle_shared_attribute,
22982         ix86_handle_selectany_attribute): Likewise.
22983         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
22984         * config/m32c/m32c.c (function_vector_handler): Likewise.
22985         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
22986         m68hc11_handle_fntype_attribute): Likewise.
22987         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
22988         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
22989         * config/mips/mips.c (mips_insert_attributes,
22990         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
22991         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
22992         rs6000_handle_struct_attribute): Likewise.
22993         * config/sh/sh.c (sh_insert_attributes,
22994         sh_handle_resbank_handler_attribute,
22995         sh_handle_interrupt_handler_attribute,
22996         sh2a_handle_function_vector_handler_attribute,
22997         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
22998         Likewise.
22999         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
23000         * config/spu/spu.c (spu_handle_fndecl_attribute,
23001         spu_handle_vector_attribute): Likewise.
23002         * config/stormy16/stormy16.c
23003         (xstormy16_handle_interrupt_attribute): Likewise.
23004         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
23005         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
23006
23007 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23008
23009         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
23010         (pp_translate_identifiers): New.
23011         (pp_identifier): Only conditionally translate identifier to locale
23012         character set.
23013         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
23014         (pp_base_tree_identifier): Only conditionally translate identifier
23015         to locale character set.
23016         * c-pretty-print.c (M_): Define.
23017         (pp_c_type_specifier, pp_c_primary_expression): Mark English
23018         fragments for conditional translation with M_.
23019         * tree-pretty-print.c (maybe_init_pretty_print): Disable
23020         identifier translation.
23021
23022 2009-05-10  Richard Guenther  <rguenther@suse.de>
23023
23024         PR tree-optimization/40081
23025         * tree-sra.c (instantiate_element): Instantiate scalar replacements
23026         using the main variant of the element type.  Do not fiddle with
23027         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23028
23029 2009-05-09  Jan Hubicka  <jh@suse.cz>
23030
23031         PR middle-end/40080
23032         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
23033         indirect calls; verify cgraph afterwards.
23034
23035 2009-05-09  Jan Hubicka  <jh@suse.cz>
23036
23037         PR bootstrap/40082
23038         * ipa.c (update_inlined_to_pointer): New function.
23039         (cgraph_remove_unreachable_nodes): Use it.
23040
23041 2009-05-09  Jan Hubicka  <jh@suse.cz>
23042
23043         * tree-eh.c (struct leh_state): Remove prev_try.
23044         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
23045         not track prev_try.
23046         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
23047         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
23048         remove_eh_handler_and_replace, foreach_reachable_handler,
23049         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
23050         * except.h (struct eh_region): Remove eh_region_u_cleanup.
23051         (gen_eh_region_cleanup): Update prototype.
23052
23053 2009-05-09  Jan Hubicka  <jh@suse.cz>
23054
23055         PR middle-end/40043
23056         * except.c (copy_eh_region): Always set prev_try.
23057         (redirect_eh_edge_to_label): Find outer try.
23058         (foreach_reachable_handler): When looking for prev try
23059         handle case where previous try is not going to be taken.
23060
23061 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
23062
23063         PR tree-optimization/40049
23064         * tree-vect-stmts.c (vectorizable_operation): If the machine has
23065         only vector/vector shifts, convert the type of the constant to the
23066         appropriate type to avoid building incorrect trees, which
23067         eventually have problems with garbage collection.
23068
23069 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23070
23071         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
23072         -1 for complex floating-point types if honoring signed zeros.
23073
23074 2009-05-08  Jan Hubicka  <jh@suse.cz>
23075
23076         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
23077         argument; handle correctly when profile is absent.
23078         (build_cgraph_edges): Update.
23079         (rebuild_cgraph_edges): Update.
23080         * cgraph.c: Do not include varray.h.
23081         (cgraph_set_call_stmt_including_clones): New function.
23082         (cgraph_create_edge_including_clones): Likewise
23083         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
23084         (cgraph_update_edges_for_call_stmt): Handle clones.
23085         (cgraph_remove_node): Handle clone tree.
23086         (cgraph_remove_node_and_inline_clones): New function.
23087         (dump_cgraph_node): Dump clone tree.
23088         (cgraph_clone_node): Handle clone tree.
23089         (clone_function_name): Bring here from tree-inline.c.
23090         (cgraph_create_virtual_clone): New function.
23091         * cgraph.h (ipa_replace_map): Move here from ipa.h.
23092         (cgraph_clone_info): New function.
23093         (strut cgraph_node): Add clone_info and new clone tree pointers.
23094         (cgraph_remove_node_and_inline_clones,
23095         cgraph_set_call_stmt_including_clones,
23096         cgraph_create_edge_including_clones,
23097         cgraph_create_virtual_clone): Declare.
23098         (cgraph_function_versioning): Use VEC argument.
23099         (compute_call_stmt_bb_frequency): Update prototype.
23100         (cgraph_materialize_all_clones): New function.
23101         * ipa-cp.c (ipcp_update_cloned_node): Remove.
23102         (ipcp_create_replace_map): Update to VECtors.
23103         (ipcp_update_callgraph): Use virtual clones.
23104         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
23105         (ipcp_update_profiling): Do not update local profiling.
23106         (ipcp_insert_stage): Use VECtors and virtual clones.
23107         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
23108         (clone_of_p): New function.
23109         (cgraph_preserve_function_body_p): Use clone tree.
23110         (cgraph_optimize): Materialize clones.
23111         (cgraph_function_versioning): Update for VECtors.
23112         (save_inline_function_body): Use clone tree.
23113         (cgraph_materialize_clone): New function.
23114         (cgraph_materialize_all_clones): Likewise.
23115         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
23116         * ipa.c: Include gimple.h.
23117         (cgraph_remove_unreachable_nodes): Use clone tree.
23118         * ipa-prop.c (ipa_note_param_call): Update call to
23119         compute_call_stmt_bb_frequencycall.
23120         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
23121         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
23122         (copy_bb): Handle updating of clone tree; add new edge when new call
23123         appears.
23124         (expand_call_inline): Be strict about every call having edge.
23125         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
23126         (delete_unreachable_blocks_update_callgraph): New function.
23127         (tree_function_versioning): Use VECtors; always remove unreachable
23128         blocks and fold conditionals.
23129         * tree-inline.h: Do not include varray.h.
23130         (tree_function_versioning): Remove.
23131         * Makefile.in (GTFILES): Remove tree-inline.c
23132         * passes.c (do_per_function): Do only functions having body.
23133         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
23134         tree.
23135
23136 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23137             Andrew Morrow  <acm@google.com>
23138
23139         PR c/36892
23140         * c-common.c (c_common_attribute_table): Permit deprecated
23141         attribute to take an optional argument.
23142         (handle_deprecated_attribute): If the optional argument to
23143         __attribute__((deprecated)) is not a string ignore the attribute
23144         and emit a warning.
23145
23146         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
23147         * c-typeck.c (build_component_ref): Likewise.
23148         (build_external_ref): Likewise.
23149
23150         * toplev.c (warn_deprecated_use): Add an attribute argument.
23151         Emit the message associated with __attribute__((deprecated)).
23152
23153         * toplev.h (warn_deprecated_use): Updated.
23154
23155         * doc/extend.texi: Document new optional parameter to
23156         __attribute__((deprecated))
23157
23158 2009-05-08  Michael Eager <eager@eagercon.com>
23159
23160         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
23161         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
23162
23163 2009-05-08  Richard Guenther  <rguenther@suse.de>
23164
23165         PR tree-optimization/40062
23166         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
23167         Avoid exponential behavior.
23168
23169 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23170
23171         PR rtl-optimization/33928
23172         PR 26854
23173         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
23174         process_uses, build_single_def_use_links): New.
23175         (update_df): Update use_def_ref.
23176         (forward_propagate_into): Use get_def_for_use instead of use-def
23177         chains.
23178         (fwprop_init): Call build_single_def_use_links and let it initialize
23179         dataflow.
23180         (fwprop_done): Free use_def_ref.
23181         (fwprop_addr): Eliminate duplicate call to df_set_flags.
23182         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
23183         df_rd_simulate_one_insn): New.
23184         (df_rd_bb_local_compute_process_def): Update head comment.
23185         (df_chain_create_bb): Use the new RD simulation functions.
23186         * df.h (df_rd_simulate_artificial_defs_at_top,
23187         df_rd_simulate_one_insn): New.
23188         * opts.c (decode_options): Enable fwprop at -O1.
23189         * doc/invoke.texi (-fforward-propagate): Document this.
23190
23191 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23192
23193         PR c/24581
23194         * c-typeck.c (build_binary_op): Handle arithmetic between one real
23195         and one complex operand specially.
23196         * tree-complex.c (some_nonzerop): Do not identify a real value as
23197         zero if flag_signed_zeros.
23198
23199 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23200
23201         PR rtl-optimization/33928
23202         * loop-invariant.c (record_use): Fix && vs. || mishap.
23203
23204 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23205
23206         PR rtl-optimization/33928
23207         * loop-invariant.c (struct use): Add addr_use_p.
23208         (struct def): Add n_addr_uses.
23209         (struct invariant): Add cheap_address.
23210         (create_new_invariant): Set cheap_address.
23211         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
23212         (record_uses): Pass df_ref to record_use.
23213         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
23214         used only as such.
23215
23216 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23217
23218         * config/sh/sh.c: Do not include c-pragma.h.
23219
23220 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23221
23222         * config/spu/spu.c: Remove include of c-common.h.
23223
23224 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
23225
23226         PR c/39037
23227         * c-common.h (mark_valid_location_for_stdc_pragma,
23228         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
23229         clear_float_const_decimal64, float_const_decimal64_p): New.
23230         * c.opt (Wunsuffixed-float-constants): New.
23231         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
23232         unsuffixed float constant, handle new warning.
23233         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
23234         * c-decl.c (c_scope): New flag float_const_decimal64.
23235         (set_float_const_decimal64, clear_float_const_decimal64,
23236         float_const_decimal64_p): New.
23237         (push_scope): Set new flag.
23238         * c-parser.c (c_parser_translation_unit): Mark when it's valid
23239         to use STDC pragmas.
23240         (c_parser_external_declaration): Ditto.
23241         (c_parser_compound_statement_nostart): Ditto.
23242         * c-pragma.c (valid_location_for_stdc_pragma,
23243         mark_valid_location_for_stdc_pragma,
23244         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
23245         handle_pragma_float_const_decimal64): New.
23246         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
23247         * cp/semantics.c (valid_location_for_stdc_pragma_p,
23248         set_float_const_decimal64, clear_float_const_decimal64,
23249         float_const_decimal64_p): New dummy functions.
23250         * doc/extend.texi (Decimal Float): Remove statement that the
23251         pragma, and suffix for double constants, are not supported.
23252         * doc/invoke.texi (Warning Options): List new option.
23253         (-Wunsuffixed-float-constants): New.
23254
23255 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
23256
23257         * config/i386/i386.c: Do not include c-common.h.
23258
23259 2009-05-07  Mark Heffernan  <meheff@google.com>
23260
23261         * doc/invoke.texi (Debugging Options): Document change of debugging
23262         dump location.
23263         * opts.c (decode_options): Make dump_base_name relative to
23264         aux_base_name directory.
23265
23266 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
23267
23268         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
23269         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
23270
23271 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
23272
23273         * Makefile.in (install-plugin): Simplify a bit.
23274
23275 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
23276
23277         * Makefile.in (OBJS-common): Add regcprop.o.
23278         (regcprop.o): New.
23279         * timevar.def (TV_CPROP_REGISTERS): New.
23280         * regrename.c (regrename_optimize): Return 0.
23281         (rest_of_handle_regrename): Delete.
23282         (pass_rename_registers): Point to regrename_optimize.
23283         (struct value_data_entry, struct value_data,
23284         kill_value_one_regno, kill_value_regno, kill_value,
23285         set_value_regno, init_value_data, kill_clobbered_value,
23286         kill_set_value, kill_autoinc_value, copy_value,
23287         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
23288         replace_oldest_value_reg, replace_oldest_value_addr,
23289         replace_oldest_value_mem, copyprop_hardreg_forward_1,
23290         debug_value_data, validate_value_data): Move...
23291         * regcprop.c: ... here.
23292         (rest_of_handle_cprop): Delete.
23293         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
23294
23295 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
23296
23297         PR middle-end/40057
23298         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
23299         GEN_INT for 1 << bitnum.
23300         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
23301         build_int_cst_type.
23302
23303 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
23304
23305         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
23306         Remove wrong description of "nand" operation.
23307
23308 2009-05-06  Richard Guenther  <rguenther@suse.de>
23309             Adam Nemet  <anemet@caviumnetworks.com>
23310
23311         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
23312         comment.  Add that if LHS is not a gimple register, then RHS1 has
23313         to be a single object (GIMPLE_SINGLE_RHS).
23314
23315 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
23316
23317         * expr.c (get_def_for_expr): Move it up in the file.
23318         (store_field): When expanding a bit-field store, look at the
23319         defining gimple stmt for the masking conversion.
23320
23321 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
23322
23323         PR middle-end/39986
23324         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
23325         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
23326         32-bit memcpy into long.
23327
23328 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
23329
23330         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
23331         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
23332         new_reg_loc_descr.
23333         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
23334         instead of appending DW_OP_deref*.
23335
23336 2009-05-06  Michael Matz  <matz@suse.de>
23337
23338         PR middle-end/40021
23339         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
23340         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
23341
23342 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
23343
23344         * Makefile.in (install-plugin): Fix srcdir handling.
23345
23346 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
23347
23348         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
23349         when processing for not_regs_needed bitmap.
23350         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
23351         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
23352         handling it for rhs.
23353
23354 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23355
23356         * config/i386/i386.md (unnamed inc/dec peephole): Use
23357         optimize_insn_for_size_p instead of optimize_size.
23358         * config/i386/predicates.md (incdec_operand): Likewise.
23359         (aligned_operand): Likewise.
23360         * config/i386/sse.md (divv8sf3): Likewise.
23361         (sqrtv8sf2): Likewise.
23362
23363 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23364
23365         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
23366
23367         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
23368
23369 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23370
23371         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
23372         ssemodesuffixf2c with avxmodesuffixf2c.
23373
23374 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
23375
23376         PR c/40032
23377         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
23378
23379 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
23380
23381         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
23382         (struct tree_base): Adjust spacing for 8 bit boundaries.
23383         (struct tree_decl_common): Add decl_by_reference_flag bit.
23384         (DECL_BY_REFERENCE): Adjust.
23385         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
23386         print DECL_BY_REFERENCE bit.
23387         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
23388         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
23389         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
23390         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
23391         unconditionally.
23392
23393         PR middle-end/39666
23394         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
23395         range of the type, but default label is missing, add it with one
23396         of the existing labels instead of adding a new label for it.
23397
23398 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
23399
23400         * dwarf.h: Remove.
23401
23402 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
23403
23404         * Makefile.in (enable_plugin, plugin_includedir): New.
23405         (install): Depend on install-plugin.
23406         (PLUGIN_HEADERS): New.
23407         (install-plugin): New.
23408         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
23409
23410 2009-05-05  Richard Guenther  <rguenther@suse.de>
23411
23412         PR tree-optimization/40022
23413         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
23414         the only vuse.
23415         (phivn_valid_p): Fix tuplification error, simplify.
23416         (phiprop_insert_phi): Add dumps.
23417         (propagate_with_phi): Simplify.
23418
23419 2009-05-05  Richard Guenther  <rguenther@suse.de>
23420
23421         PR middle-end/40023
23422         * builtins.c (gimplify_va_arg_expr): Properly build the address.
23423
23424 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
23425
23426         * tree.h (strip_float_extensions): Remove duplicate declaration.
23427         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
23428         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
23429         block_ultimate_origin): Rearrange the declarations line to match the
23430         comment that indicates the .c file which the functions are defined.
23431         (dwarf2out_*, set_decl_rtl): Add comment.
23432         (get_base_address): Adjust comment.
23433         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
23434         declarations line and add comment.
23435         (is_builtin_name): Add blank after function name, for clarity.
23436
23437 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23438
23439         * attribs.c (decl_attributes): Use %qE for identifiers in
23440         diagnostics.
23441         * cgraphunit.c (verify_cgraph_node): Translate function names to
23442         locale character set in diagnostics.
23443         * coverage.c (get_coverage_counts): Use %qE for identifiers in
23444         diagnostics.
23445         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
23446         Document that functions are named in UTF-8.
23447         * expr.c (expand_expr_real_1): Translate function names to locale
23448         character set in diagnostics.
23449         * gimplify.c (omp_notice_variable, omp_is_private,
23450         gimplify_scan_omp_clauses): Use %qE for identifiers in
23451         diagnostics.
23452         * langhooks.c (lhd_print_error_function): Translate function names
23453         to locale character set.
23454         * langhooks.h (decl_printable_name): Document that return value is
23455         in internal character set.
23456         * stmt.c: Include pretty-print.h
23457         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
23458         diagnostics.
23459         (resolve_operand_name_1): Translate named operand name to locale
23460         character set.
23461         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
23462         diagnostics.
23463         * toplev.c (announce_function): Translate function names to locale
23464         character set.
23465         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
23466         (default_tree_printer): Use pp_identifier or translate identifiers
23467         to locale character set.  Mark "<anonymous>" for translation.
23468         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
23469         for identifiers in diagnostics.
23470         * tree.c (handle_dll_attribute): Use %qE for identifiers in
23471         diagnostics.
23472         * varasm.c (output_constructor): Use %qE for identifiers in
23473         diagnostics.
23474
23475 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
23476
23477         * configure.ac: use ` ` instead of $()
23478         * configure: Regenerate.
23479
23480 2009-05-05  Ben Elliston  <bje@au.ibm.com>
23481
23482         * config/pa/linux-atomic.c: Eliminate conditional include of
23483         errno.h on non-LP64 systems to simplify build requirements.
23484
23485 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23486
23487         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
23488         diagnostics.
23489         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
23490         and pass value to identifier_to_locale.
23491         (warn_variable_length_array): Make name a tree.
23492         (grokdeclarator): Separate diagnostic texts for named and unnamed
23493         declarators.  Use %qE for named declarators.
23494         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
23495         diagnostics.
23496         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
23497         identifiers in diagnostics.
23498         * c-typeck.c (push_member_name, start_init): Pass identifiers to
23499         identifier_to_locale.  Mark "anonymous" strings for translation.
23500
23501 2009-05-04  Michael Eager <eager@eagercon.com>
23502
23503         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
23504         address for DImode/DFmode only if double-precision FP regs.
23505
23506 2009-05-04  Michael Eager <eager@eagercon.com>
23507
23508         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
23509         TARGET_SINGLE_FLOAT check.
23510
23511 2009-05-04  Michael Eager <eager@eagercon.com>
23512
23513         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
23514
23515 2009-05-04  Michael Eager <eager@eagercon.com>
23516
23517         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
23518         * config/rs6000/t-xilinx: New
23519
23520 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
23521
23522         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
23523         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
23524         * gcc/explow.c (memory_address): Use target hook.
23525         * gcc/targhooks.c (default_legitimize_address): New.
23526         * gcc/targhooks.h (default_legitimize_address): New.
23527         * gcc/target.h (legitimize_address): New.
23528         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
23529         (TARGET_INITIALIZER): Include it.
23530         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
23531
23532         * config/bfin/bfin-protos.h (legitimize_address): Remove.
23533         * config/bfin/bfin.c (legitimize_address): Remove.
23534         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
23535         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
23536         Remove.
23537         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
23538         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
23539
23540         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
23541         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
23542         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
23543         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
23544         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
23545         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
23546         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
23547         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
23548         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
23549         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
23550         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
23551         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
23552         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
23553         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
23554         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
23555         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
23556         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
23557         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
23558         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
23559         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
23560         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
23561         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
23562         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
23563
23564         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
23565         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
23566         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
23567         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
23568         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
23569         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
23570         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
23571         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
23572         (thumb_legitimize_address): Delete.
23573         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
23574         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
23575         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
23576         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
23577         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
23578         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
23579         Delete.
23580         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
23581         Delete.
23582
23583         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
23584         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
23585         * config/m32r/m32r.c (m32r_legitimize_address): New.
23586         * config/m68k/m68k.c (m68k_legitimize_address): New.
23587         * config/score/score.c (score_legitimize_address): Standardize.
23588         * config/score/score3.c (score3_legitimize_address): Standardize.
23589         * config/score/score3.h (score3_legitimize_address): Adjust.
23590         * config/score/score7.c (score7_legitimize_address): Standardize.
23591         * config/score/score7.h (score7_legitimize_address): Adjust.
23592         * config/sh/sh.c (sh_legitimize_address): New.
23593         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
23594
23595         * gcc/config/s390/s390.c (legitimize_address): Rename to...
23596         (s390_legitimize_address): ... this.
23597         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
23598         (sparc_legitimize_address): ... this.
23599         * gcc/config/i386/i386.c (legitimize_address): Rename to...
23600         (ix86_legitimize_address): ... this.
23601         * gcc/config/avr/avr.c (legitimize_address): Rename to...
23602         (avr_legitimize_address): ... this.
23603         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
23604         (mn10300_legitimize_address): ... this.
23605         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
23606         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
23607         (alpha_expand_mov): Adjust call.
23608
23609         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
23610         * config/spu/spu.c (spu_legitimize_address): Likewise.
23611         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
23612         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
23613
23614 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23615
23616         * intl.c (locale_encoding, locale_utf8): New.
23617         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
23618         * intl.h (locale_encoding, locale_utf8): Declare.
23619         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
23620         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
23621         New.
23622         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
23623         argument.
23624         (pp_tree_identifier): Define to call pp_base_tree_identifier.
23625         (pp_base_tree_identifier): Declare as function.
23626         (identifier_to_locale): Declare.
23627         * Makefile.in (pretty-print.o): Update dependencies.
23628         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
23629
23630 2009-05-04  Richard Guenther  <rguenther@suse.de>
23631
23632         PR middle-end/40015
23633         * builtins.c (fold_builtin_memory_op): Do not decay to element
23634         type if the size matches the whole array.
23635
23636 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23637
23638         * expmed.c (synth_mult): When trying out a shift, pass the result
23639         of a signed shift.
23640
23641 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23642
23643         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
23644         (shiftsub1_cost): New.
23645         (init_expmed): Compute shiftsub1_cost.
23646         (synth_mult): Optimize multiplications by constants of the form
23647         -(2^^m-1) for some constant positive integer m.
23648
23649 2009-05-03  Richard Guenther  <rguenther@suse.de>
23650
23651         PR c/39983
23652         * c-typeck.c (array_to_pointer_conversion): Do not built
23653         ADDR_EXPRs of arrays of pointer-to-element type.
23654         * c-gimplify.c (c_gimplify_expr): Revert change fixing
23655         up wrong ADDR_EXPRs after-the-fact.
23656         * c-common.c (strict_aliasing_warning): Strip pointer
23657         conversions for obtaining the original type.
23658         * builtins.c (fold_builtin_memset): Handle array types.
23659         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
23660         and array types
23661
23662 2009-05-03  Richard Guenther  <rguenther@suse.de>
23663
23664         PR middle-end/23329
23665         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
23666         Do not lose casts from array types with unknown extent to array
23667         types with known extent.
23668         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
23669         alias set compatibility.
23670
23671 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23672
23673         * flags.h (extra_warnings): Delete.
23674         * toplev.c (process_options): Handle Wuninitialized here.
23675         * opts.c (extra_warnings): Delete.
23676         (set_Wextra): Delete.
23677         (common_handle_option): -Wextra can be handled automatically.
23678         * c-opts.c (c_common_handle_option): Delete obsolete code.
23679         (c_common_post_options): Simplify comment.
23680         * common.opt (W): Add Var.
23681         (Wextra): Add Var.
23682         (Wuninitialized): Initialize to -1.
23683
23684 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
23685             Richard Guenther  <rguenther@suse.de>
23686
23687         * expr.c (get_def_for_expr): New function.
23688         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
23689         SSA rather than trees.
23690         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
23691         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
23692
23693 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
23694
23695         * c-common.c (reswords): Add _Imaginary.
23696         * c-common.c (enum rid): Add RID_IMAGINARY.
23697
23698 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
23699
23700         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
23701         Patch by Richard Guenther.
23702
23703 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
23704
23705         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
23706         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
23707         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
23708         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
23709         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
23710         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
23711         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
23712         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
23713         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
23714         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
23715         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
23716         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
23717         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
23718         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
23719         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
23720         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
23721         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
23722         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
23723
23724 2009-05-02  Richard Guenther  <rguenther@suse.de>
23725
23726         PR tree-optimization/39940
23727         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
23728         doing so.
23729
23730 2009-05-02  Richard Guenther  <rguenther@suse.de>
23731
23732         PR middle-end/40001
23733         * tree-ssa.c (execute_update_addresses_taken): Properly check
23734         if we can mark a variable DECL_GIMPLE_REG_P.
23735         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
23736         back to the end of the function.
23737         (is_gimple_reg_type): Remove complex type special casing.
23738         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
23739         if not optimizing.
23740
23741 2009-05-02  Ben Elliston  <bje@au.ibm.com>
23742
23743         * doc/collect2.texi (Collect2): Document search path behaviour
23744         when configured with --with-ld.
23745
23746 2009-05-02  Jan Hubicka  <jh@suse.cz>
23747
23748         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
23749         parameter; update callers.
23750         (coalesce_cost_edge): EH edges are costier because they needs
23751         splitting even if not critical and even more costier when there are
23752         multiple EH predecestors.
23753
23754 2009-05-02  Jan Hubicka  <jh@suse.cz>
23755
23756         * except.c (remove_eh_handler_and_replace): Handle updating after
23757         removing TRY blocks.
23758
23759 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
23760
23761         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
23762
23763 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
23764
23765         * varasm.c: Do not include c-pragma.h.
23766         * attribs.c: Do not incude c-common.h.
23767
23768 2009-05-01  Michael Matz  <matz@suse.de>
23769
23770         * calls.c (initialize_argument_information): Handle SSA names like
23771         decls with a non MEM_P DECL_RTL.
23772
23773 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23774
23775         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
23776         * ipa-utils.c: Likewise.
23777         * ipa-type-escape.c: Likewise.
23778         * cgraphunit.c Do not include c-common.h.
23779         * ipa-pure-const.c: Likewise.
23780         * tree-if-conv.c: Likewise.
23781         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
23782         * ipa-struct-reorg.c: Likewise.
23783         * tree-nomudflap.c: Likewise.
23784         * tree-ssa-structalias.c: Likewise.
23785
23786 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23787
23788         * store-motion.c: Many cleanups to make this pass a first-class
23789         citizen instead of an appendix to gcse load motion.  Add TODO list
23790         to make this pass faster/cleaner/better.
23791
23792         (struct ls_expr): Post gcse.c-split cleanups.
23793         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
23794         "stores" field to "avail_stores".
23795         (pre_ldst_mems): Rename to store_motion_mems.
23796         (pre_ldst_table): Rename to store_motion_mems_table.
23797         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
23798         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
23799         (ldst_entry): Rename to st_expr_entry, update users.
23800         (free_ldst_entry): Rename to free_st_expr_entry, update users.
23801         (free_ldst_mems): Rename to free_store_motion_mems, update users.
23802         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
23803         update caller.
23804         (first_ls_expr): Rename to first_st_expr, update users.
23805         (next_ls_expr): Rename to next_st_expr, update users.
23806         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
23807         fields properly for store motion instead of names inherited from load
23808         motion in gcse.c.
23809         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
23810         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
23811         are done with it.
23812
23813         (ae_kill): Rename to st_kill, update users.
23814         (ae_gen): Rename to st_avloc, update users.
23815         (transp): Rename to st_transp, update users.
23816         (pre_insert_map): Rename to st_insert_map, update users.
23817         (pre_delete_map): Rename to st_delete_map, update users.
23818         (insert_store, build_store_vectors, free_store_memory,
23819         one_store_motion_pass): Update for abovementioned changes.
23820
23821         (gcse_subst_count, gcse_create_count): Remove.
23822         (one_store_motion_pass): New statistics counters "n_stores_deleted"
23823         and "n_stores_created", local variables.
23824
23825         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
23826         use for_each_rtx.
23827
23828         (regvec, compute_store_table_current_insn): Remove.
23829         (reg_set_info, reg_clear_last_set): Remove.
23830         (compute_store_table): Use DF caches instead of local dataflow
23831         solvers.
23832
23833 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
23834
23835         * c-objc-common.c (c_tree_printer): Print identifiers with
23836         pp_identifier, not pp_string.  Mark "({anonymous})" for
23837         translation.
23838         * c-pretty-print.c (pp_c_ws_string): New.
23839         (pp_c_cv_qualifier, pp_c_type_specifier,
23840         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
23841         pp_c_storage_class_specifier, pp_c_function_specifier,
23842         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
23843         pp_c_primary_expression, pp_c_postfix_expression,
23844         pp_c_unary_expression, pp_c_shift_expression,
23845         pp_c_relational_expression, pp_c_equality_expression,
23846         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
23847         use pp_string and pp_c_ws_string in place of pp_identifier and
23848         pp_c_identifier for non-identifiers.  Mark English strings for
23849         translation.
23850         * c-pretty-print.h (pp_c_ws_string): Declare.
23851
23852 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
23853             Roland McGrath <roland@redhat.com>
23854
23855         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
23856         (ENABLE_LD_BUILDID): New configuration option.
23857         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
23858         (LINK_BUILDID_SPEC): New macro.
23859         (init_spec): If defined, prepend it between LINK_EH_SPEC and
23860         link_spec.
23861         * doc/install.texi: Document --enable-linker-build-id option.
23862         * configure: Rebuild.
23863         * config.in: Rebuild.
23864
23865 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
23866
23867         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
23868         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
23869         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
23870         MIPS_GP_SAVE_AREA_SIZE.
23871         * config/mips/mips.c (struct mips_frame_info): Update comment
23872         before arg_pointer_offset and hard_frame_pointer_offset.
23873         (mips_compute_frame_info): Update diagram before function: to
23874         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
23875         indicate the position of frame_pointer_rtx with -fstack-protector and
23876         to show args_size.  Don't allocate cprestore area for leaf functions
23877         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
23878         cprestore_size.
23879         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
23880
23881 2009-04-30  Michael Matz  <matz@suse.de>
23882
23883         PR tree-optimization/39955
23884         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
23885
23886 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
23887
23888         * ira.c (setup_cover_and_important_classes):  Use safe macro
23889         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
23890         directly.
23891         * genpreds.c (write_tm_preds_h):  Output suitable definition of
23892         REG_CLASS_FOR_CONSTRAINT.
23893
23894 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
23895
23896         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
23897         instead of an int.
23898         * bitmap.c (bitmap_descriptor): Likewise.
23899         * ggc-common.c (loc_descriptor): Likewise.
23900         * varray.c (varray_descriptor): Likewise.
23901         * vec.c (vec_descriptor): Likewise.
23902
23903 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
23904
23905         * Makefile.in (dce.o): Add $(EXCEPT_H).
23906         * dce.c: Include except.h and delete redundant vector definitions.
23907         (deletable_insn_p): Return false for non-call insns that can throw
23908         if DF is running.
23909
23910 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
23911
23912         * gcse.c (ae_gen): Remove.
23913         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
23914         and make non-static function to make it available in store-motion.c.
23915         Update call sites with search-and-replace.
23916         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
23917         extract_mentioned_regs, extract_mentioned_regs_helper,
23918         find_moveable_store, compute_store_table, load_kills_store, find_loads,
23919         store_killed_in_insn, store_killed_after, store_killed_before,
23920         build_store_vectors, insert_insn_start_basic_block, insert-store,
23921         remove_reachable_equiv_notes, replace_store_insn, delete_store,
23922         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
23923         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
23924         * store-motion.c: ...new file.  Also copy data structures from gcse.c
23925         and clean up to remove parts not used by store motion.
23926         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
23927         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
23928
23929 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23930
23931         PR target/38571
23932         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
23933         when optimizing for size.
23934
23935 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
23936
23937         * gcse.c (gcse_constant_p): Fix typo in last change.
23938
23939 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
23940
23941         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
23942
23943 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23944
23945         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
23946
23947 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
23948
23949         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
23950         CONST_HIGH_PART result.
23951
23952 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
23953
23954         * config/avr/avr.c (initial_elimination_offset): Rename to
23955         avr_initial_elimination_offset.
23956         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
23957         change return type to bool.
23958         (avr_can_eliminate): New function.
23959         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
23960         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
23961         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
23962         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
23963         avr_initial_elimination_offset.
23964         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
23965         (avr_initial_elimination_offset): Define.
23966
23967 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
23968             Steven Bosscher  <steven@gcc.gnu.org>
23969
23970         PR rtl-optimization/39938
23971         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
23972         * cfgrtl.c: Include insn-attr.h.
23973         (rest_of_pass_free_cfg): New function.
23974         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
23975         * resource.c (init_resource_info): Remove call to df_analyze.
23976
23977 2009-04-29  Richard Guenther  <rguenther@suse.de>
23978
23979         PR target/39943
23980         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
23981         allow conversion to signed integers.
23982
23983 2009-04-29  Richard Guenther  <rguenther@suse.de>
23984
23985         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
23986         shifts of floating point vectors if the shift amount is
23987         a constant multiple of the element size.
23988
23989 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
23990             Michael Matz  <matz@suse.de>
23991
23992         PR middle-end/39927
23993         PR bootstrap/39929
23994         * tree-outof-ssa.c (emit_partition_copy): New function.
23995         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23996         insert_part_to_rtx_on_edge): Perform the partition base var
23997         copy using emit_partition_copy.
23998         (insert_value_copy_on_edge): Convert constants to the right mode.
23999         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
24000         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
24001
24002 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24003
24004         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
24005         scan backwards to try to find a constant to initialize it.
24006
24007         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
24008         insn before the loop_end instruction, don't look past labels.
24009
24010 2009-04-29  Richard Guenther  <rguenther@suse.de>
24011
24012         PR middle-end/39937
24013         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
24014         loose type conversions.
24015         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
24016         stmts only if there are no uses of its definition.
24017
24018 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24019
24020         * config/bfin/bfin.h (splitting_loops): Declare.
24021         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
24022         Reorder bit definitions to be ascending.
24023         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
24024         * config/bfin/bfin.c (splitting_loops): New variable.
24025         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
24026         (struct loop_info): Remove members INIT and LOOP_INIT.
24027         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
24028         the LSETUP sequence.  Allow LC to be loaded from any register, but
24029         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
24030         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
24031         set to 1.
24032         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
24033         of reload_completed.
24034
24035         From Jie Zhang:
24036         * config/bfin/bfin.md (movsi_insn): Refine constraints.
24037
24038 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
24039
24040         * Makefile.in (PLUGIN_VERSION_H): New.
24041         (OBJS-common): Remove plugin-version.o.
24042         (plugin.o): Depend on (PLUGIN_VERSION_H).
24043         (plugin-version.o): Remove.
24044         * configure: Regenerate
24045         * configure.ac: Create plugin-version.h.
24046         * gcc-plugin.h (plugin_gcc_version): Remove.
24047         (plugin_default_version_check): Change signature.
24048         * plugin-version.c: Remove.
24049         * plugin.c: Include plugin-version.h.
24050         (str_plugin_gcc_version_name): Remove.
24051         (try_init_one_plugin): Pass gcc version to plugin_init.
24052         (plugin_default_version_check): Both gcc and plugin versions are now
24053         arguments.
24054
24055 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24056
24057         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
24058         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
24059         Remove special case testing for last insn of inner loops. Don't fail
24060         if the loop ends with a jump, emit an extra nop instead.
24061
24062         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
24063         DREGS rather than comparing directly.  Remove code that tries to
24064         account for latencies.
24065
24066 2009-04-29  Richard Guenther  <rguenther@suse.de>
24067
24068         PR tree-optimization/39941
24069         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
24070         eliminating an indirect call.
24071
24072 2009-04-29  Richard Guenther  <rguenther@suse.de>
24073
24074         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
24075         parameter.  Allow invariants as base if !require_lvalue.
24076         (verify_gimple_assign_single): Adjust.
24077
24078 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24079
24080         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
24081         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
24082         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
24083         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
24084         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
24085         a VEC_SELECT.
24086         * config/bfin/bfin.c (bfin_expand_builtin,
24087         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
24088
24089 2009-04-28  Richard Guenther  <rguenther@suse.de>
24090
24091         * tree-vect-loop.c (get_initial_def_for_induction): Use
24092         correct types for pointer increment.
24093
24094 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24095
24096         * toplev.c (print_version): Update GMP version string calculation.
24097
24098 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24099
24100         PR rtl-optimization/39938
24101         * resource.c (init_resource_info): Add call to df_analyze.
24102
24103 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24104
24105         * config/alpha/alpha.md (usegp): Cast the result of
24106         alpha_find_lo_sum_using_gp to enum attr_usegp.
24107         * config/alpha/alpha.c (override_options): Remove end-of-structure
24108         marker element from cpu_table.  Use array size of cpu_table to handle
24109         -mcpu and -mtune options.
24110         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
24111
24112 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
24113
24114         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
24115         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
24116         tune_32 and tune_64.
24117         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
24118         support on PowerPC.
24119         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
24120         * config/rs6000/option-defaults.h: ... here.  New file.
24121         (OPT_64, OPT_32): Define.
24122         (MASK_64BIT): Define to 0 if not already defined.
24123         (OPT_ARCH64, OPT_ARCH32): Define.
24124         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
24125         and tune_64.
24126
24127 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24128
24129         * config/arm/arm.c (arm_override_options): Emit error on using
24130         fpa with AAPCS.
24131
24132 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24133
24134         PR rtl-optimization/39914
24135         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24136         registers for allocnos created from user-defined variables only
24137         when not optimizing.
24138
24139 2009-04-28  Richard Guenther  <rguenther@suse.de>
24140
24141         PR middle-end/39937
24142         * fold-const.c (fold_binary): Use distribute_real_division only
24143         on float types.
24144
24145 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
24146
24147         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
24148         add hpux-stdint.h to tm_file.
24149         (hppa[12]*-*-hpux11*): Ditto.
24150         (ia64*-*-hpux*): Ditto.
24151         * config/hpux-stdint.h: New.
24152         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
24153         __STDC_EXT__ for all compiles.
24154         * config/pa/pa-hpux.h: Ditto.
24155         * config/pa/pa-hpux10.h: Ditto.
24156         * config/pa/pa-hpux11.h: Ditto.
24157
24158 2009-04-28  Catherine Moore  <clm@codesourcery.com>
24159
24160         * debug.h (set_name): Add comment.
24161
24162 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
24163
24164         PR target/39929
24165         * config/darwin.c (machopic_gen_offset): Check
24166         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
24167         * config/arm/arm.c (require_pic_register): Likewise.
24168
24169 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
24170
24171         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
24172         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
24173         m32c_promote_prototypes): Delete.
24174
24175 2009-04-28  Michael Matz  <matz@suse.de>
24176
24177         PR middle-end/39922
24178         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
24179         constants.
24180
24181 2009-04-28  Richard Guenther  <rguenther@suse.de>
24182
24183         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
24184
24185 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24186
24187         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
24188         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
24189         * config/arm/arm-tune.md: Regenerate.
24190
24191 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
24192
24193         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
24194         block if there are complex incoming edges.
24195         (sel_merge_blocks): Remove useless assert.
24196         (sel_redirect_edge_and_branch): Check that edge was redirected.
24197         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
24198         (sel_find_rgns): Delete declaration.
24199         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
24200         the region when it is not a preheader.
24201
24202 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24203
24204         PR c/39323
24205         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
24206
24207 2009-04-28  Richard Guenther  <rguenther@suse.de>
24208
24209         * tree.h (SSA_NAME_VALUE): Remove.
24210         (struct tree_ssa_name): Remove value_handle member.
24211         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
24212         array for jump threading.
24213         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
24214         SSA_NAME_VALUEs.
24215         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
24216         * tree-flow.h (threadedge_initialize_values): Declare.
24217         (threadedge_finalize_values): Likewise.
24218         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
24219         (SSA_NAME_VALUE): Define.
24220         (threadedge_initialize_values): New function.
24221         (threadedge_finalize_values): Likewise.
24222         * tree-ssa-dom.c (ssa_name_values): New global variable.
24223         (SSA_NAME_VALUE): Define.
24224         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
24225
24226 2009-04-28  Ira Rosen  <irar@il.ibm.com>
24227
24228         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
24229         Use REPORT_VECTORIZED_LOCATIONS instead
24230         REPORT_VECTORIZED_LOOPS.
24231         * tree-vectorizer.c (vect_verbosity_level): Make static.
24232         (vect_loop_location): Rename to vect_location.
24233         (vect_set_verbosity_level): Update comment.
24234         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
24235         and vect_location.
24236         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
24237         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
24238         instead REPORT_UNVECTORIZED_LOOPS.
24239         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
24240         and vect_loop_def to vect_external_def and vect_internal_def.
24241         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
24242         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
24243         REPORT_UNVECTORIZED_LOCATIONS.
24244         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
24245         and vect_used_in_loop and to vect_unused_in_scope and
24246         vect_used_in_scope.
24247         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
24248         (vect_verbosity_level): Remove declaration.
24249         (vect_analyze_operations): Likewise.
24250         (vect_analyze_stmt): Declare.
24251         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
24252         REPORT_UNVECTORIZED_LOCATIONS.
24253         (vect_get_loop_niters): Fix indentation.
24254         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
24255         (vect_analyze_loop_operations): New function.
24256         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
24257         vect_analyze_operations.
24258         (vect_is_simple_reduction): Use new names.
24259         (vectorizable_live_operation, vect_transform_loop): Likewise.
24260         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
24261         to specify whether the data references can be a part of interleaving
24262         chain.
24263         (vect_analyze_data_ref_dependence): Use new names.
24264         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
24265         (vect_create_addr_base_for_vector_ref): Remove redundant code.
24266         * tree-vect-patterns.c (widened_name_p): Use new names.
24267         (vect_recog_dot_prod_pattern): Likewise.
24268         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
24269         (process_use, vect_mark_stmts_to_be_vectorized,
24270         vect_model_simple_cost, vect_model_store_cost,
24271         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
24272         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
24273         vectorizable_operation, vectorizable_type_demotion,
24274         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
24275         vectorizable_condition): Likewise.
24276         (vect_analyze_operations): Split into vect_analyze_loop_operations
24277         and ...
24278         (vect_analyze_stmt): ... new function.
24279         (new_stmt_vec_info): Use new names.
24280         (vect_is_simple_use): Use new names and fix comment.
24281         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
24282         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
24283
24284 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24285
24286         PR target/39911
24287         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
24288         and integer modes for x87 operands.  Do not ICE for unsupported size,
24289         generate error instead.  Generate error for unsupported operand types.
24290         ['z']: Do not handle HImode memory operands specially.  Warning
24291         for floating-point operands.  Fallthru to 'Z' for unsupported operand
24292         types.  Do not ICE for unsupported size, generate error instead.
24293         (output_387_binary_op): Use %Z to output operands.
24294         (output_fp_compare): Ditto.
24295         (output_387_reg_move): Ditto.
24296
24297 2009-04-28  Ben Elliston  <bje@au.ibm.com>
24298
24299         PR c++/35652
24300         Revert:
24301
24302         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24303
24304         * builtins.c (c_strlen): Do not warn here.
24305         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24306         * c-common.c (pointer_int_sum): Take an explicit location.
24307         Warn about offsets out of bounds.
24308         * c-common.h (pointer_int_sum): Adjust declaration.
24309
24310 2009-04-27  Ian Lance Taylor  <iant@google.com>
24311
24312         * collect2.c (is_ctor_dtor): Change type of ret field in struct
24313         names to symkind.
24314         * dce.c (run_fast_df_dce): Change type of old_flags to int.
24315         * df-core.c (df_set_flags): Change return type to int.  Change
24316         type of old_flags to int.
24317         (df_clear_flags): Likewise.
24318         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
24319         (df_get_conditional_uses): Likewise.
24320         * df.h (df_set_flags, df_clear_flags): Update declarations.
24321         * dwarf2out.c (struct indirect_string_node): Change type of form
24322         field to enum dwarf_form.
24323         (AT_string_form): Change return type to enum dwarf_form.
24324         * fixed-value.c (fixed_compare): Add cast to enum type.
24325         * fwprop.c (update_df): Change 0 to VOIDmode.
24326         * gensupport.c: Change 0 to UNKNOWN.
24327         * gimple.h (gimple_cond_code): Add cast to enum type.
24328         * haifa-sched.c (reemit_notes): Add cast to enum type.
24329         * hooks.c (hook_int_void_no_regs): Remove function.
24330         * hooks.h (hook_int_void_no_regs): Remove declaration.
24331         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
24332         * predict.c (combine_predictions_for_insn): Add casts to enum type.
24333         * real.c (real_arithmetic): Add cast to enum type.
24334         (real_compare): Likewise.
24335         * target.h (struct gcc_target): Change return type of
24336         branch_target_register_class to enum reg_class.
24337         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
24338         default_branch_target_register_class.
24339         * targhooks.c (default_branch_target_register_class): New function.
24340         * targhooks.h (default_branch_target_register_class): Declare.
24341         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
24342         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
24343         cast to int.
24344         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
24345         ERROR_MARK.
24346         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
24347         vect_uninitialized_def.  Change 0 to ERROR_MARK.
24348         * tree-vect-stmts.c (supportable_widening_operation): Don't
24349         initialize icode1 and icode2.
24350         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
24351         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
24352         and to STD_C89.
24353         (cmn_err_flag_specs): Change 0 to STD_C89.
24354         (cmn_err_char_table): Likewise.
24355         * config/arm/arm.c (get_arm_condition_code): Change type of code
24356         to enum arm_cond_code.
24357         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
24358         (IWMMXT_BUILTIN2): Likewise.
24359         (neon_builtin_type_bits): Don't define typedef.
24360         (neon_builtin_datum): Change type of bits field to int.
24361         (arm_expand_neon_args): Add cast to enum type.
24362         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
24363         TLS_MODEL_NONE.
24364         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
24365         casts to enum type.
24366         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
24367         MIPS_FP_COND_f.
24368         * config/mips/mips.md (jal_macro): Return enum constant.
24369         (single_insn): Likewise.
24370         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
24371         CODE_FOR_nothing.
24372         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24373         casts to enum type.
24374         * config/s390/s390.c (s390_tune_flags): Change type to int.
24375         (s390_arch_flags): Likewise.
24376         (s390_handle_arch_option): Change flags field of struct pta to int.
24377         * config/s390/s390.h (s390_tune_flags): Update declaration.
24378         (s390_arch_flags): Likewise.
24379         * config/sh/sh.c (prepare_move_operands): Compare
24380         tls_symbolic_operand result with enum constant.
24381         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
24382         (sh_expand_prologue): Add cast to enum type.
24383         (sh_expand_epilogue): Likewise.
24384         (tls_symbolic_operand): Change return type to enum tls_model.
24385         (fpscr_set_from_mem): Add cast to enum type.
24386         (legitimize_pic_address): Compare tls_symbolic_operand result with
24387         enum constant.
24388         (sh_target_reg_class): Change return type to enum reg_class.
24389         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
24390         PROCESSOR_xxx.
24391         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
24392         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
24393         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
24394         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
24395         (delayed_branch, tls_call_delay): Likewise.
24396         (eligible_for_sibcall_delay): Likewise.
24397         (eligible_for_return_delay): Likewise.
24398         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
24399         (spu_expand_builtin_1): Likewise.
24400
24401         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
24402         for all types of conversions.
24403         (output_init_element): Issue -Wc++-compat warning if needed when
24404         initializing a bitfield with enum type.
24405         * c-parser.c (c_parser_expression): Set original_type to
24406         original_type of right hand operand of comma operator.
24407
24408 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24409
24410         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
24411         grammar nits.
24412         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
24413         * doc/cpp.texi (Standard Predefined Macros)
24414         (Implementation-defined behavior): Likewise.
24415         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
24416         * doc/gimple.texi (GIMPLE Exception Handling)
24417         (@code{GIMPLE_ASSIGN}): Likewise.
24418         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
24419         * doc/invoke.texi (Warning Options, Optimize Options)
24420         (AVR Options, Darwin Options): Likewise.
24421         (Optimize Options): Reformulate -fwhole-program description.
24422         * doc/loop.texi (Lambda): Likewise.
24423         * doc/md.texi (Output Template, Define Constraints)
24424         (Standard Names, Insn Splitting): Likewise.
24425         * doc/options.texi (Option properties): Likewise.
24426         * doc/passes.texi (Tree-SSA passes): Likewise.
24427         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
24428         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
24429         (File Names and DBX): Likewise.
24430         * doc/trouble.texi (Incompatibilities): Likewise.
24431
24432 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24433
24434         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
24435         instruction is correct.
24436
24437 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24438
24439         Allow non-constant arguments to conversion intrinsics.
24440         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
24441         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
24442         * spu.c (print_operand): Handle 'v' and 'w'.
24443         (exp2_immediate_p, spu_gen_exp2): Define.
24444         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
24445         spu_convtf_1): Update parameter descriptions.
24446         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
24447         * constraints.md ('v', 'w'): New.
24448         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
24449         Remove.
24450         (i2f, I2F): New define_mode_attr.
24451         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
24452         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
24453         fixuns_truncv4sfv4si2):  Update to use mode attribute.
24454         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
24455         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
24456         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
24457         patterns for combine.
24458
24459 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
24460
24461         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
24462         (cprop, hoist, pre, store_motion): New debug counters.
24463         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
24464         is not an RTL pass anymore.
24465         (pass_profiling): Remove extern decl for pass removed in 2005.
24466         (pass_gcse, pass_jump_bypass): Remove.
24467         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
24468         to 0 for clean state.
24469         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
24470         * cse.c (gate_handle_cse_after_global_opts,
24471         rest_of_handle_cse_after_global_opts): New functions.
24472         (pass_cse_after_global_opts): New pass, does local CSE.
24473         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
24474         (TV_CPROP): New timevar.
24475         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
24476         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
24477         (gcse_main, recompute_all_luids): Remove.
24478         (compute_hash_table_work): Call max_reg_num instead of reading
24479         max_gcse_regno.
24480         (cprop_jump): Don't set run_jump_opt_after_gcse.
24481         (constprop_register): Always allow to alter jumps.
24482         (cprop_insn): Likewise.
24483         (do_local_cprop): Likewise.
24484         (local_cprop_pass): Likewise.  Return non-zero if something changed.
24485         (cprop): Remove function, fold interesting bits into one_cprop_pass.
24486         (find_implicit_sets): Add note about missed optimization opportunity.
24487         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
24488         pass_rtl_cprop execute function.
24489         Don't bother tracking the pass number, each pass gets its own dumpfile
24490         now anyway.
24491         Always allow to alter jumpsand bypass jumps.
24492         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
24493         will just find no suitable set.
24494         (pre_edge_insert): Fix dumping, this function is for PRE only.
24495         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
24496         pass_rtl_pre execute function.
24497         (hoist_code): Return non-zero if something changed.  Keep track of
24498         substitutions and insertions for statistics gathering similar to PRE.
24499         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
24500         called from the pass_rtl_hoist execute function.  Show pass statistics.
24501         (compute_store_table): Use max_reg_num directly instead of using the
24502         formerly global max_gcse_regno.
24503         (build_store_vectors): Likewise.
24504         (replace_store_insn): Fix dumping.
24505         (store_motion): Rename to ...
24506         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
24507         pass, called from the pass_rtl_store_motion execute function.  Keep
24508         track of substitutions and insertions for statistics gathering similar
24509         to PRE.
24510         (bypass_jumps): Remove, fold interesting bits into ...
24511         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
24512         from the pass_rtl_cprop execute function.
24513         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
24514         pass_jump_bypass): Remove.
24515         (gate_handle_gcse, rest_of_handle_gcse): Remove.
24516         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
24517         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
24518         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
24519         (gate_rtl_store_motion, execute_rtl_store_motion,
24520         pass_rtl_store_motion): New.
24521         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
24522         make it clear that -fcse-skip-blocks is a no-op for backward compat.
24523         * passes.c (init_optimization_passes): Remove pass_gcse and
24524         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
24525         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
24526         instead of pass_jump_bypass.
24527
24528 2009-04-27  Richard Guenther  <rguenther@suse.de>
24529
24530         PR middle-end/39928
24531         * gimplify.c (gimplify_expr): If we are required to create
24532         a temporary make sure it ends up as register.
24533
24534 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
24535
24536         PR target/39903
24537         * config/i386/i386.c (construct_container): Don't call
24538         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
24539         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
24540
24541 2009-04-27  Michael Matz  <matz@suse.de>
24542
24543         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
24544         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
24545         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
24546         (dump_replaceable_exprs): Take a bitmap.
24547         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
24548         array.
24549         (expand_gimple_basic_block): Likewise.
24550         * tree-ssa-ter.c (struct temp_expr_table_d): Make
24551         replaceable_expressions member a bitmap.
24552         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
24553         (mark_replaceable): Likewise.
24554         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
24555         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
24556
24557 2009-04-27  Richard Guenther  <rguenther@suse.de>
24558
24559         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
24560         (verify_stmts): Dispatch to gimple/type verification code.
24561         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
24562         issue with call argument types.
24563
24564 2009-04-27  Michael Matz  <matz@suse.de>
24565
24566         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
24567         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
24568         to above.
24569
24570 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24571             Eric Botcazou  <ebotcazou@adacore.com>
24572
24573         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
24574         a label's basic block.
24575         (mark_target_live_regs): Tidy and rework obsolete comments.
24576         Change back DF problem to LIVE.  If a label starts a basic block,
24577         assume that all registers that used to be live then still are.
24578         (init_resource_info): If a label starts a basic block, set its
24579         BLOCK_FOR_INSN accordingly.
24580         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
24581
24582 2009-04-27  Richard Guenther  <rguenther@suse.de>
24583
24584         * tree-flow-inline.h (function_ann): Remove.
24585         (get_function_ann): Likewise.
24586         * tree-dfa.c (create_function_ann): Remove.
24587         * tree-flow.h (struct static_var_ann_d): Remove.
24588         (struct function_ann_d): Likewise.
24589         (union tree_ann_d): Remove fdecl member.
24590         (function_ann_t): Remove.
24591         (function_ann, get_function_ann, create_function_ann): Remove
24592         declarations.
24593
24594 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
24595
24596         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
24597
24598 2009-04-27  Jan Hubicka  <jh@suse.cz>
24599
24600         * ipa-pure-const.c (struct funct_state_d): New fields
24601         state_previously_known, looping_previously_known; remove
24602         state_set_in_source.
24603         (analyze_function): Use new fields.
24604         (propagate): Avoid assumption that state_set_in_source imply
24605         nonlooping.
24606
24607         * tree-ssa-loop-niter.c (finite_loop_p): New function.
24608         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
24609         * cfgloop.h (finite_loop_p): Declare.
24610
24611 2009-04-26  Michael Matz  <matz@suse.de>
24612
24613         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
24614
24615 2009-04-26  Michael Matz  <matz@suse.de>
24616
24617         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
24618         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
24619         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
24620         pass_mark_used_blocks): Remove.
24621         * tree-optimize.c (pass_free_datastructures,
24622         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
24623         * passes.c (init_optimization_passes): Don't call
24624         pass_mark_used_blocks, remove dead code.
24625
24626 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
24627
24628         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
24629         * tree-ssa-live.h (register_ssa_partition): Likewise.
24630
24631 2009-04-26  Michael Matz  <matz@suse.de>
24632
24633         Expand from SSA.
24634         * builtins.c (fold_builtin_next_arg): Handle SSA names.
24635         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
24636         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
24637         SSA names.
24638         (compare_pairs): Swap cost comparison.
24639         (coalesce_ssa_name): Don't use change_partition_var.
24640         * tree-nrv.c (struct nrv_data): Add modified member.
24641         (finalize_nrv_r): Set it.
24642         (tree_nrv): Use it to update statements.
24643         (pass_nrv): Require PROP_ssa.
24644         * tree-mudflap.c (mf_decl_cache_locals,
24645         mf_build_check_statement_for): Use make_rename_temp.
24646         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
24647         * alias.c (find_base_decl): Handle SSA names.
24648         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
24649         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
24650         * rtl.h (set_reg_attrs_for_parm): Declare.
24651         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
24652         to "optimized", remove unused locals at finish.
24653         (execute_free_datastructures): Make global, call
24654         delete_tree_cfg_annotations.
24655         (execute_free_cfg_annotations): Don't call
24656         delete_tree_cfg_annotations.
24657
24658         * ssaexpand.h: New file.
24659         * expr.c (toplevel): Include ssaexpand.h.
24660         (expand_assignment): Handle SSA names the same as register variables.
24661         (expand_expr_real_1): Expand SSA names.
24662         * cfgexpand.c (toplevel): Include ssaexpand.h.
24663         (SA): New global variable.
24664         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
24665         (SSAVAR): New macro.
24666         (set_rtl): New helper function.
24667         (add_stack_var): Deal with SSA names, use set_rtl.
24668         (expand_one_stack_var_at): Likewise.
24669         (expand_one_stack_var): Deal with SSA names.
24670         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
24671         before unique numbers.
24672         (expand_stack_vars): Use set_rtl.
24673         (expand_one_var): Accept SSA names, add asserts for them, feed them
24674         to above subroutines.
24675         (expand_used_vars): Expand all partitions (without default defs),
24676         then only the local decls (ignoring those expanded already).
24677         (expand_gimple_cond): Remove edges when jumpif() expands an
24678         unconditional jump.
24679         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
24680         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
24681         SSA name.
24682         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
24683         members of SA; deal with PARM_DECL partitions here; expand
24684         all PHI nodes, free tree datastructures and SA.  Commit instructions
24685         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
24686         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
24687         info and statements at start, collect garbage at finish.
24688         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
24689         (VAR_ANN_PARTITION) Remove.
24690         (change_partition_var): Don't declare.
24691         (partition_to_var): Always return SSA names.
24692         (var_to_partition): Only accept SSA names.
24693         (register_ssa_partition): Only check argument.
24694         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
24695         member.
24696         (delete_var_map): Don't free it.
24697         (var_union): Only accept SSA names, simplify.
24698         (partition_view_init): Mark only useful SSA names as used.
24699         (partition_view_fini): Only deal with SSA names.
24700         (change_partition_var): Remove.
24701         (dump_var_map): Use ssa_name instead of partition_to_var member.
24702         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
24703         basic blocks.
24704         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
24705         (struct _elim_graph): New member const_dests; nodes member vector of
24706         ints.
24707         (set_location_for_edge): New static helper.
24708         (create_temp): Remove.
24709         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
24710         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
24711         (new_elim_graph): Allocate const_dests member.
24712         (clean_elim_graph): Truncate const_dests member.
24713         (delete_elim_graph): Free const_dests member.
24714         (elim_graph_size): Adapt to new type of nodes member.
24715         (elim_graph_add_node): Likewise.
24716         (eliminate_name): Likewise.
24717         (eliminate_build): Don't take basic block argument, deal only with
24718         partition numbers, not variables.
24719         (get_temp_reg): New static helper.
24720         (elim_create): Use it, deal with RTL temporaries instead of trees.
24721         (eliminate_phi): Adjust all calls to new signature.
24722         (assign_vars, replace_use_variable, replace_def_variable): Remove.
24723         (rewrite_trees): Only do checking.
24724         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
24725         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
24726         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
24727         contains_tree_r, MAX_STMTS_IN_LATCH,
24728         process_single_block_loop_latch, analyze_edges_for_bb,
24729         perform_edge_inserts): Remove.
24730         (expand_phi_nodes): New global function.
24731         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
24732         functions, initialize new parameter, remember partitions having a
24733         default def.
24734         (finish_out_of_ssa): New global function.
24735         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
24736         don't reset in_ssa_p here, don't disable TER when mudflap.
24737         (pass_del_ssa): Remove.
24738         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
24739         partition members.
24740         (execute_free_datastructures): Declare.
24741         * Makefile.in (SSAEXPAND_H): New variable.
24742         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
24743         * basic-block.h (commit_one_edge_insertion): Declare.
24744         * passes.c (init_optimization_passes): Move pass_nrv and
24745         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
24746         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
24747         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
24748         (redirect_branch_edge): Deal with super block when expanding, split
24749         out jump patching itself into ...
24750         (patch_jump_insn): ... here, new static helper.
24751
24752 2009-04-26  Michael Matz  <matz@suse.de>
24753
24754         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
24755         beyond num_ssa_names.
24756         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
24757         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
24758
24759 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24760
24761         PR inline-asm/39543
24762         * fwprop.c (forward_propagate_asm): New function.
24763         (forward_propagate_and_simplify): Propagate also into __asm, if it
24764         doesn't increase the number of referenced registers.
24765
24766         PR c/39889
24767         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
24768
24769 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24770
24771         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
24772         note_nonlocal_vla_type for nonlocal VLAs.
24773         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
24774         contains_remapped_vars, remap_vla_decls): New functions.
24775         (convert_nonlocal_reference_stmt): If not optimizing, call
24776         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
24777         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
24778         if it wasn't found in var_map.
24779         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
24780         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
24781         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
24782         declare_vars.
24783         * gimplify.c (nonlocal_vlas): New variable.
24784         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
24785         referenced VLAs.
24786         (gimplify_body): Create and destroy nonlocal_vlas.
24787
24788         * dwarf2out.c (loc_descr_plus_const): New function.
24789         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
24790         mem_loc_descriptor, loc_descriptor_from_tree_1,
24791         descr_info_loc, gen_variable_die): Use it.
24792
24793         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
24794         !TREE_STATIC VAR_DECLs.
24795         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
24796         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
24797         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
24798         DECL_BY_REFERENCE is valid.
24799         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
24800         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
24801         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
24802         Copy DECL_BY_REFERENCE.
24803         (struct nesting_copy_body_data): New type.
24804         (nesting_copy_decl): New function.
24805         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
24806         if they have variable length.
24807
24808 2009-04-26  Michael Matz  <matz@suse.de>
24809
24810         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
24811         mark new temporaries for renaming.
24812
24813 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24814
24815         PR c/39581
24816         * c-decl.c (global_bindings_p): Return negative value.
24817         (c_variable_size): New.  Based on variable_size from
24818         stor-layout.c.
24819         (grokdeclarator): Call c_variable_size not variable_size.
24820
24821 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
24822
24823         * config/i386/i386.c (print_operand) ['z']: Fix typo.
24824
24825 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
24826
24827         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
24828         Redefine it to just use mingw/include.
24829         (ASM_SPEC): Rules for -m32 and -m64.
24830         (LINK_SPEC): Use Likewise.
24831         (SPEC_32): New define.
24832         (SPEC_64): Likewise.
24833         (SUB_LINK_SPEC): Likewise.
24834         (MULTILIB_DEFAULTS): New define.
24835         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
24836         Add multilib options.
24837         (MULTILIB_DIRNAMES): Likewise.
24838         (MULTILIB_OSDIRNAMES): Likewise.
24839         (LIBGCC): Likewise.
24840         (INSTALL_LIBGCC): Likewise.
24841
24842 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24843
24844         PR c/39556
24845         * c-tree.h (enum c_inline_static_type): New.
24846         (record_inline_static): Declare.
24847         * c-decl.c (struct c_inline_static, c_inline_statics,
24848         record_inline_static, check_inline_statics): New.
24849         (pop_file_scope): Call check_inline_statics.
24850         (start_decl): Call record_inline_static instead of pedwarning
24851         directly for static in inline function.
24852         * c-typeck.c (build_external_ref): Call record_inline_static
24853         instead of pedwarning directly for static referenced in inline
24854         function.
24855
24856 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
24857
24858         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
24859         not new but only being rescanned.
24860         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
24861         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
24862         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
24863         record_set_info, compute_set, grealloc): Remove.
24864         (recompute_all_luids): New function.
24865         (gcse_main): Don't compute sets, and don't do related memory
24866         allocations/free-ing.  If something changed before the end of the
24867         pass, update LUIDs using recompute_all_luids.
24868         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
24869         (free_gcse_mem): Don't free it either.
24870         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
24871         Use the df insn LUIDs.
24872         (load_killed_in_block): Likewise.
24873         (compute_hash_table_work): Don't compute reg_set_in_block.
24874         (compute_transp): Use DF_REG_DEF_CHAINs.
24875         (local_cprop_pass): Don't use compute_sets and related functions.
24876         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
24877         Use get_max_uid() instead of max_cuid.
24878         (insert_insn_end_basic_block, pre_insert_copy_insn,
24879         update_ld_motion_stores): Don't try to
24880         keep reg_set tables up to date.
24881         (pre_insert_copies): Use df insn LUIDs.
24882         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
24883         (reg_set_info): Don't use extra bitmap argument.
24884         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
24885         information to compute regs_set_in_block.
24886         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
24887         (bypass_jumps): Don't use compute_sets and friends.
24888
24889 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24890
24891         PR testsuite/39710
24892         * opts.c (undocumented_msg): Do not leave blank even with
24893         ENABLE_CHECKING.
24894
24895 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24896
24897         * c-decl.c (build_enumerator): Allow values folding to integer
24898         constants but not integer constant expressions with a pedwarn if
24899         pedantic.
24900
24901 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24902
24903         PR c/39582
24904         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
24905         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
24906         type is an integer constant.
24907
24908 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
24909
24910         PR target/39897
24911         * config/i386/i386.c (print_operand) ['z']: Revert handling of
24912         HImode operands.
24913
24914 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24915
24916         PR c/39564
24917         * c-decl.c (grokdeclarator): Diagnose declarations of functions
24918         with variably modified return type and no storage class
24919         specifiers, except for the case of nested functions.  Distinguish
24920         extern declarations of functions with variably modified return
24921         types from those of objects with variably modified types.
24922
24923 2009-04-25  Jan Hubicka  <jh@suse.cz>
24924
24925         * tree.c (list_equal_p): New function.
24926         * tree.h (list_equal_p): Declare.
24927         * coretypes.h (edge_def, edge, const_edge, basic_block_def
24928         basic_block_def, basic_block, const_basic_block): New.
24929         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
24930         (redirect_eh_edge): New function.
24931         (make_eh_edge_update_phi): EH edges are not abnormal.
24932         * except.c: Include tree-flow.h.
24933         (list_match): New function.
24934         (eh_region_replaceable_by_p): New function.
24935         (replace_region): New function.
24936         (hash_type_list): New function.
24937         (hash_eh_region): New function.
24938         (eh_regions_equal_p): New function.
24939         (merge_peers): New function.
24940         (remove_unreachable_regions): Verify EH tree when checking;
24941         merge peers.
24942         (copy_eh_region_1): New function.
24943         (copy_eh_region): New function.
24944         (push_reachable_handler): New function.
24945         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
24946         regions without label but with live RESX.
24947         * except.h (redirect_eh_edge_to_label): New.
24948         * tree-flow.h (redirect_eh_edge): New.
24949         * coretypes.h (edge_def, edge, const_edge, basic_block_def
24950         basic_block_def, basic_block, const_basic_block): Remove.
24951         * Makefile.in (except.o): Add dependency on tree-flow.h
24952         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
24953         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
24954         Remove.
24955
24956 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
24957
24958         PR bootstrap/39645
24959         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
24960         on the destination of memcpy.
24961
24962 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
24963
24964         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
24965         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
24966         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
24967
24968 2009-04-25  Jan Hubicka  <jh@suse.cz>
24969
24970         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
24971         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
24972         to be reached by different label than left.
24973         (update_eh_edges): Update comment; remove edge_to_remove if possible
24974         and return true if suceeded.
24975         (cleanup_empty_eh): Accept sharing map; handle shared regions.
24976         (cleanup_eh): Compute sharing map.
24977         * except.c (remove_eh_handler_and_replace): Add argument if we should
24978         update regions.
24979         (remove_unreachable_regions): Update for label sharing.
24980         (label_to_region_map): Likewise.
24981         (get_next_region_sharing_label): New function.
24982         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
24983         prev_try pointers.
24984         (remove_eh_handler): Update.
24985         (remove_eh_region_and_replace_by_outer_of): New function.
24986         * except.h (struct eh_region): Add next_region_sharing_label.
24987         (remove_eh_region_and_replace_by_outer_of,
24988         get_next_region_sharing_label): Declare.
24989         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
24990
24991 2009-04-25  Jan Hubicka  <jh@suse.cz>
24992
24993         * tree-cfg.c (split_critical_edges): Split also edges where we can't
24994         insert code even if they are not critical.
24995
24996 2009-04-25  Jan Hubicka  <jh@suse.cz>
24997
24998         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
24999         (gimple_can_remove_branch_p): EH edges won't remove branch by
25000         redirection.
25001         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
25002         updating of non-abnormal EH edges.
25003         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25004         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
25005         (split_critical_edges): Split also edges where emitting code on them
25006         will lead to splitting later.
25007
25008 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
25009             H.J. Lu  <hongjiu.lu@intel.com>
25010
25011         PR target/39590
25012         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
25013         the configured assembler supports fildq and fistpq mnemonics.
25014         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
25015         * configure: Regenerated.
25016         * config.in: Ditto.
25017
25018         * config/i386/i386.c (print_operand): Handle 'Z'.
25019         ['z']: Remove handling of special fild/fist suffixes.
25020         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
25021         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
25022         suffix of fild insn.
25023         (*floatsi<mode>2_vector_mixed): Ditto.
25024         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
25025         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
25026         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
25027         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
25028         * config/i386/gas.h (GAS_MNEMONICS): Remove.
25029
25030 2009-04-25  Ben Elliston  <bje@au.ibm.com>
25031
25032         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
25033         the source of a set operation.
25034
25035 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
25036
25037         * target.h (struct gcc_target): Add case_values_threshold field.
25038         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
25039         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
25040         * targhooks.c (default_case_values_threshold): New function.
25041         * targhooks.h (default_case_values_threshold): Declare function.
25042         * stmt.c (expand_case): Use case_values_threshold target hook.
25043         * expr.h (case_values_threshold): Remove declartation.
25044         * expr.c (case_values_threshold): Remove function.
25045         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
25046
25047         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
25048         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25049         (avr_case_values_threshold): Declare as static.
25050         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
25051
25052         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
25053         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25054         (mn10300_case_values_threshold): New function.
25055
25056 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25057
25058         * ira.c (setup_cover_and_important_classes): Add enum cast.
25059
25060 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
25061
25062         * genpreds.c (write_enum_constraint_num): Output definition of
25063         CONSTRAINT_NUM_DEFINED_P macro.
25064         * ira.c (setup_cover_and_important_classes): Use
25065         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
25066
25067 2009-04-24  DJ Delorie  <dj@redhat.com>
25068
25069         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
25070         __SH2A_SINGLE_ONLY__ also.
25071
25072 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
25073
25074         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
25075         (movdf_internal): Ditto.
25076         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
25077         SFmode and DFmode constants.
25078         (ia64_print_operand): Add 'G' format for printing
25079         floating point constants.
25080
25081 2009-04-24  Richard Guenther  <rguenther@suse.de>
25082
25083         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
25084         from unsigned additions.
25085
25086 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
25087
25088         * c-typeck.c (set_init_index): Allow array designators that are
25089         not integer constant expressions with a pedwarn if pedantic.
25090
25091 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25092
25093         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
25094         zero if no overlap in nonzero bits between the operands.
25095
25096 2009-04-24  Ian Lance Taylor  <iant@google.com>
25097
25098         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
25099         (record_dead_and_set_regs): Likewise.
25100         * df.h (struct df_mw_hardreg): Change flags field to int.
25101         (struct df_base_ref): Likewise.
25102         (struct df): Change changeable_flags field to int.
25103         * df-scan.c (df_defs_record): Change clobber_flags to int.
25104         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
25105         constants rather than #define macros.
25106         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
25107         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
25108         (enum dwarf_calling_convention): Likewise.
25109         (enum dwarf_line_number_x_ops): Likewise.
25110         (enum dwarf_call_frame_info): Likewise.
25111         (enum dwarf_source_language): Likewise.
25112         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
25113         (add_calling_convention_attribute): Likewise.
25114         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
25115         (combine_comparisons): Change compcode to int.  Add cast to enum type.
25116         * genrecog.c (maybe_both_true_2): Change c to int.
25117         (write_switch): Likewise.  Add cast to enum type.
25118         * gimplify.c (gimplify_omp_for): Handle return values from
25119         gimplify_expr using MIN rather than bitwise or.
25120         (gimplify_expr): Add cast to enum type.
25121         * ipa-prop.c (update_jump_functions_after_inlining): Change
25122         IPA_BOTTOM to IPA_JF_UNKNOWN.
25123         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
25124         Add casts to enum type.
25125         (setup_cover_and_important_classes): Change cl to int.  Add casts
25126         to enum type.
25127         (setup_class_translate): Change cl and mode to int.
25128         (ira_init_once): Change mode to int.
25129         (free_register_move_costs): Likewise.
25130         (setup_prohibited_mode_move_regs): Add casts to enum type.
25131         * langhooks.c (add_builtin_function_common): Rework assertion that
25132         value fits bitfield.
25133         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
25134         * omega.c (omega_do_elimination): Avoid math on enum types.
25135         * optabs.c (expand_vec_shift_expr): Remove casts to int.
25136         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
25137         int local to handle integral_argment value.
25138         * regmove.c (try_auto_increment): Change PUT_MODE to
25139         PUT_REG_NOTE_KIND.
25140         * reload.c (push_secondary_reload): Add casts to enum type.
25141         (secondary_reload_class, find_valid_class): Likewise.
25142         * reload1.c (emit_input_reload_insns): Likewise.
25143         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
25144         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
25145         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
25146         constant.
25147         * tree.c (build_common_builtin_nodes): Add casts to enum type.
25148         * tree-complex.c (complex_lattice_t): Typedef to int rather than
25149         enum type.
25150         (expand_complex_libcall): Add casts to enum type.
25151         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
25152         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
25153         with ERROR_MARK, not NUM_TREE_CODES.
25154         (vect_create_epilog_for_reduction): Likewise.
25155         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
25156         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
25157         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
25158         enum machine_mode.
25159         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
25160         vect_unused_in_loop.  Change 0 to loop_vect.
25161         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
25162         * var-tracking.c (get_init_value): Change return type to enum
25163         var_init_status.
25164         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
25165         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
25166         arm_fp_model.
25167         (arm_override_options): Add casts to enum type.
25168         (arm_emit_tls_decoration): Likewise.
25169         * config/i386/i386.c (ix86_function_specific_restore): Add casts
25170         to enum type.
25171         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
25172         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
25173         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
25174         enum type.
25175         * config/s390/s390.c (code_for_builtin_64): Change to array of
25176         enum insn_code.
25177         (code_for_builtin_31): Likewise.
25178         (s390_expand_builtin): Change code_for_builtin to enum insn_code
25179         const *.
25180         * config/sparc/sparc.c (sparc_override_options): Change value
25181         field in struct code_model to enum cmodel.  In initializer change
25182         0 to NULL and add cast to enum type.
25183
25184         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
25185         Change all callers.  Issue a -Wc++-compat warning using
25186         lhs_origtype if necessary.
25187         (convert_for_assignment): Issue -Wc++-compat warnings about
25188         invalid conversions to enum type on assignment.
25189         * c-common.h (build_modify_expr): Update declaration.
25190
25191 2009-04-24  Nick Clifton  <nickc@redhat.com>
25192
25193         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
25194         (function_arg_advance): Likewise.
25195         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
25196         5th alternative.
25197
25198 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25199
25200         * config/s390/constraints.md ('I', 'J'): Fix condition.
25201
25202 2009-04-24  Diego Novillo  <dnovillo@google.com>
25203
25204         * gengtype-parse.c (parse_error): Add newline after message.
25205
25206 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25207
25208         * config/i386/sse.md (avxmodesuffixs): Removed.
25209         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
25210         (*avx_pinsr<ssevecsize>): This.
25211
25212 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25213
25214         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
25215         follow chains of regs with a single definition, and allow expressions
25216         that are function_invariant_p.
25217         (simple_rhs_p): Allow expressions that are function_invariant_p.
25218
25219 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
25220
25221         PR middle-end/39867
25222         * fold-const.c (fold_cond_expr_with_comparison): When folding
25223         > and >= to MAX, make sure the MAX uses the same type as the
25224         comparison's operands.
25225
25226 2009-04-24  Nick Clifton  <nickc@redhat.com>
25227
25228         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
25229         addressing for DImode accesses.
25230         (frv_print_operand_address): Handle PLUS case.
25231         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
25232
25233 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
25234
25235         PR rtl-optimization/39794
25236         * alias.c (canon_true_dependence): Add x_addr argument.
25237         * rtl.h (canon_true_dependence): Adjust prototype.
25238         * cse.c (check_dependence): Adjust canon_true_dependence callers.
25239         * cselib.c (cselib_invalidate_mem): Likewise.
25240         * gcse.c (compute_transp): Likewise.
25241         * dse.c (scan_reads_nospill): Likewise.
25242         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
25243         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
25244         canon_base_addr of the group, plus optional offset.
25245         (struct group_info): Rename canon_base_mem to
25246         canon_base_addr.
25247         (get_group_info): Set canon_base_addr to canon_rtx of base, not
25248         canon_rtx of base_mem.
25249
25250 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
25251
25252         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
25253         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
25254
25255 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25256
25257         * config/spu/spu-builtins.h: Delete file.
25258
25259         * config/spu/spu.h (enum spu_builtin_type): Move here from
25260         spu-builtins.h.
25261         (struct spu_builtin_description): Likewise.  Add GTY marker.
25262         Do not use enum spu_function_code or enum insn_code.
25263         (spu_builtins): Add extern declaration.
25264
25265         * config/spu/spu.c: Do not include "spu-builtins.h".
25266         (enum spu_function_code, enum spu_builtin_type_index,
25267         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
25268         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
25269         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
25270         unsigned_V2DI_type_node): Move here from spu-builtins.h.
25271         (spu_builtin_types): Make static.  Add GTY marker.
25272         (spu_builtins): Add extern declaration with GTY marker.
25273         Include "gt-spu.h".
25274
25275         * config/spu/spu-c.c: Do not include "spu-builtins.h".
25276         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
25277         Check programmatically whether all parameters are scalar.
25278
25279         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
25280
25281 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
25282
25283         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
25284         assignment from the constructor either if the target is volatile.
25285
25286 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
25287
25288         * config/arm/arm.md (insv): Do not share operands[0].
25289
25290 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
25291
25292         * config/vxlib-tls.c (active_tls_threads): Delete.
25293         (delete_hook_installed): New.
25294         (tls_delete_hook): Don't delete the delete hook.
25295         (tls_destructor): Delete it here.
25296         (__gthread_set_specific): Adjust installing the delete hook.
25297         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
25298         __gthread_leave_tsd_dtor_context.
25299
25300 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
25301
25302         * c-format.c (gcc_tdiag_char_table): Add support for %E.
25303
25304 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
25305
25306         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
25307         enum type.
25308         (alpha_rtx_costs): Ditto.
25309         (emit_unlikely_jump): Use add_reg_note.
25310         (emit_frame_store_1): Ditto.
25311         (alpha_expand_prologue): Ditto.
25312         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25313         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
25314
25315 2009-04-23  Nick Clifton  <nickc@redhat.com>
25316
25317         * config/v850/v850.md (epilogue): Remove suppressed code.
25318         (return): Rename to return_simple and remove test of frame size.
25319         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
25320         to gen_return_simple.
25321
25322 2009-04-22  Jing Yu  <jingyu@google.com>
25323
25324         PR testsuite/39781
25325         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
25326
25327 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25328
25329         PR C/31499
25330         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
25331         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
25332         value is a VECTOR_CST, the element type is the element type of the
25333         vector.
25334
25335 2009-04-22  DJ Delorie  <dj@redhat.com>
25336
25337         * config/m32c/m32c.h: Update GTY annotations to new syntax.
25338
25339 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
25340
25341         * alias.c (find_base_term): Move around LO_SUM case, so that
25342         CONST falls through into PLUS/MINUS handling.
25343
25344         PR c/39855
25345         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
25346         into 0, use omit_one_operand.
25347
25348 2009-04-23  Ben Elliston  <bje@au.ibm.com>
25349
25350         * config/rs6000/linux-unwind.h (get_regs): Remove type
25351         puns. Change the type of `pc' to an array of unsigned ints and
25352         update all users.  Constify frame24.
25353
25354 2009-04-22  DJ Delorie  <dj@redhat.com>
25355
25356         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
25357         declarations before code.
25358         (current_function_special_page_vector): Likewise.
25359         (m32c_expand_insv): Silence a warning.
25360
25361 2009-04-21  Taras Glek  <tglek@mozilla.com>
25362
25363         * alias.c: Update GTY annotations to new syntax.
25364         * basic-block.h: Likewise.
25365         * bitmap.h: Likewise.
25366         * c-common.h: Likewise.
25367         * c-decl.c: Likewise.
25368         * c-parser.c: Likewise.
25369         * c-pragma.c: Likewise.
25370         * c-tree.h: Likewise.
25371         * cfgloop.h: Likewise.
25372         * cgraph.h: Likewise.
25373         * config/alpha/alpha.c: Likewise.
25374         * config/arm/arm.h: Likewise.
25375         * config/avr/avr.h: Likewise.
25376         * config/bfin/bfin.c: Likewise.
25377         * config/cris/cris.c: Likewise.
25378         * config/darwin.c: Likewise.
25379         * config/frv/frv.c: Likewise.
25380         * config/i386/i386.c: Likewise.
25381         * config/i386/i386.h: Likewise.
25382         * config/i386/winnt.c: Likewise.
25383         * config/ia64/ia64.h: Likewise.
25384         * config/iq2000/iq2000.c: Likewise.
25385         * config/mips/mips.c: Likewise.
25386         * config/mmix/mmix.h: Likewise.
25387         * config/pa/pa.c: Likewise.
25388         * config/pa/pa.h: Likewise.
25389         * config/rs6000/rs6000.c: Likewise.
25390         * config/s390/s390.c: Likewise.
25391         * config/sparc/sparc.c: Likewise.
25392         * config/xtensa/xtensa.c: Likewise.
25393         * cselib.h: Likewise.
25394         * dbxout.c: Likewise.
25395         * dwarf2out.c: Likewise.
25396         * except.c: Likewise.
25397         * except.h: Likewise.
25398         * fixed-value.h: Likewise.
25399         * function.c: Likewise.
25400         * function.h: Likewise.
25401         * gimple.h: Likewise.
25402         * integrate.c: Likewise.
25403         * optabs.c: Likewise.
25404         * output.h: Likewise.
25405         * real.h: Likewise.
25406         * rtl.h: Likewise.
25407         * stringpool.c: Likewise.
25408         * tree-data-ref.c: Likewise.
25409         * tree-flow.h: Likewise.
25410         * tree-scalar-evolution.c: Likewise.
25411         * tree-ssa-address.c: Likewise.
25412         * tree-ssa-alias.h: Likewise.
25413         * tree-ssa-operands.h: Likewise.
25414         * tree.c: Likewise.
25415         * tree.h: Likewise.
25416         * varasm.c: Likewise.
25417         * varray.h: Likewise.
25418         * vec.h: Likewise.
25419         * coretypes.h: Do not define GTY macro if it is already defined.
25420         * doc/gty.texi: Update GTY documentation to new syntax.
25421         * gengtype-lex.l: Enforce attribute-like syntax for GTY
25422         annotations on structs.
25423         * gengtype-parse.c: Likewise.
25424
25425 2009-04-22  Mark Heffernan  <meheff@google.com>
25426
25427         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
25428
25429 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25430
25431         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
25432         where appropriate.
25433
25434 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25435
25436         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
25437         the same as a PLUS without a shift.  Increase the cost of a
25438         CONST_INT in MULT.
25439
25440 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25441
25442         * Makefile.in: Update dependencies.
25443         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
25444         * errors.h: Remove bogus comment about compatibility.
25445         (warning): Update declaration.
25446         * genautomata.c: Update all calls to warning.
25447         * gimple.c: Do not include errors.h. Include toplev.h.
25448         * tree-ssa-structalias.c: Do not include errors.h.
25449         * omega.c: Likewise.
25450         * tree-ssa-reassoc.c: Likewise.
25451         * config/spu/spu-c.c: Likewise.
25452         * config/spu/t-spu-elf: Update dependencies.
25453
25454 2009-04-22  Richard Guenther  <rguenther@suse.de>
25455
25456         PR tree-optimization/39824
25457         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
25458         make sure the types are compatible.
25459
25460 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25461
25462         PR c++/14875
25463         * c-common.c (c_parse_error): Take a token_flags parameter.
25464         Use token_type for the token type instead.
25465         Pass token_flags to cpp_type2name.
25466         * c-common.h (c_parse_error): Update declaration.
25467         * c-parser.c (c_parser_error): Pass 0 as token flags.
25468
25469 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
25470
25471         PR rtl-optimization/39580
25472         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
25473
25474 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25475
25476         * function.c (expand_function_end): Do not emit a jump to the "naked"
25477         return label for fall-through returns.
25478         * except.c (sjlj_emit_function_exit): Always place the call to the
25479         unregister function at the location installed by expand_function_end.
25480
25481 2009-04-22  Richard Guenther  <rguenther@suse.de>
25482
25483         PR tree-optimization/39845
25484         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
25485         (gen_inbound_check): Likewise.
25486
25487 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
25488
25489         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
25490         padding for PPC.
25491         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
25492         * config/vxlib.c (__gthread_once): Add race guard for PPC.
25493
25494 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25495
25496         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
25497         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
25498         shift counts to avoid out-of-bounds array accesses.
25499
25500 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25501
25502         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
25503         (Pmode): Move above.
25504
25505 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
25506
25507         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
25508         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
25509         GET_CODE macro.  Use IN_RANGE macro where appropriate.
25510         * config/alpha/alpha.h: Ditto.
25511         * config/alpha/alpha.md: Ditto.
25512         * config/alpha/constraints.md: Ditto.
25513         * config/alpha/predicates.md: Ditto.
25514
25515 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25516
25517         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
25518         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25519         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25520         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25521         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25522         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25523         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25524         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25525         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25526         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25527         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25528         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25529         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25530         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25531         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25532         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25533         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25534         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25535         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25536         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25537         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25538         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25539         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25540         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25541         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25542         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25543         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25544
25545 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25546
25547         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
25548         references from comments.
25549         * cfgbuild.c (count_basic_blocks): Delete.
25550         (find_basic_blocks_1): Delete.
25551         (find_basic_blocks): Delete.
25552         * except.c (finish_eh_generation): Make static.  Move comment from
25553         except.h here.  Remove find_basic_blocks references from comments.
25554         * except.h (finish_eh_generation): Delete.
25555         * basic-block.h (find_basic_blocks): Delete.
25556         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
25557
25558 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
25559
25560         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
25561         (sdbout_parms):  Likewise.
25562
25563 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
25564
25565         * config/sh/sh.c (prepare_cbranch_operands): Use
25566         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
25567         (expand_cbranchdi4): Likewise.
25568         (from_compare): Add cast to enum type.
25569         (expand_cbranchsi4): Use add_reg_note.
25570         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
25571         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
25572         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
25573         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25574         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
25575         instead of CODE_FOR_nothing.
25576         (cbranchdi4): Likewise.  Fix the order of arguments for
25577         gen_rtx_fmt_ee.
25578         (push_fpscr): Use add_reg_note.
25579         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
25580         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
25581
25582 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
25583
25584         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
25585         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25586         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25587         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
25588         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
25589         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
25590         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
25591         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
25592         config/alpha/x-vms, config/arc/t-arc,
25593         config/arm/README-interworking, config/arm/arm-c.c,
25594         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
25595         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
25596         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
25597         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
25598         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
25599         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
25600         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
25601         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
25602         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
25603         config/cris/t-elfmulti, config/crx/t-crx,
25604         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
25605         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
25606         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
25607         config/h8300/t-h8300, config/i386/athlon.md,
25608         config/i386/darwin-libgcc.10.4.ver,
25609         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
25610         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
25611         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
25612         config/i386/t-linux64, config/i386/t-nwld,
25613         config/i386/t-rtems-i386, config/i386/t-sol2-10,
25614         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
25615         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
25616         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
25617         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
25618         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
25619         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
25620         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
25621         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
25622         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
25623         config/m68k/t-uclinux, config/mcore/t-mcore,
25624         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
25625         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
25626         config/mips/crtn.asm, config/mips/irix-crti.asm,
25627         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
25628         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
25629         config/mips/mips-fixed.md, config/mips/sb1.md,
25630         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
25631         config/mips/t-iris6, config/mips/t-isa3264,
25632         config/mips/t-libgcc-mips16, config/mips/t-linux64,
25633         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
25634         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
25635         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
25636         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
25637         config/mn10300/t-linux, config/mn10300/t-mn10300,
25638         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
25639         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
25640         config/picochip/libgccExtras/clzsi2.asm,
25641         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
25642         config/rs6000/darwin-libgcc.10.4.ver,
25643         config/rs6000/darwin-libgcc.10.5.ver,
25644         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
25645         config/rs6000/t-aix43, config/rs6000/t-aix52,
25646         config/rs6000/t-darwin, config/rs6000/t-fprules,
25647         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
25648         config/rs6000/t-lynx, config/rs6000/t-netbsd,
25649         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
25650         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
25651         config/rs6000/t-rtems, config/rs6000/t-spe,
25652         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
25653         config/score/t-score-elf, config/sh/divcost-analysis,
25654         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
25655         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
25656         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
25657         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
25658         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
25659         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
25660         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
25661         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
25662         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
25663         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
25664         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
25665         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
25666         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
25667         limitx.h, version.c, xcoff.h: Add copyright and license notices.
25668         * config/h8300/genmova.sh: Include copyright and license notices
25669         in generated output.
25670         * config/h8300/mova.md: Regenerate.
25671         * doc/install.texi2html: Include word "Copyright" in copyright
25672         notice and use name "Free Software Foundation, Inc.".
25673         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25674         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25675         ChangeLog-2007, ChangeLog-2008: Correct dates.
25676
25677 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25678
25679         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
25680         NE_EXPR operations as well.
25681         * c-parser.c (c_parser_condition): Do not set location information on
25682         the condition.
25683         (c_parser_conditional_expression): Likewise.
25684         (c_parser_binary_expression): Set location information on operators.
25685         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
25686         TRUTH_NOT_EXPR has been folded.
25687         * fold-const.c (fold_truth_not_expr): Copy location information from
25688         the incoming expression to the outgoing one.
25689         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
25690         recursive calls on the LHS of the operator but pass that of the
25691         operator to recursive calls on the RHS of the operator.  Set it
25692         on the COND_EXPR.
25693         (shortcut_cond_expr): Set the locus of the operator on the second
25694         COND_EXPR and that of the expression on the first in degenerate cases.
25695         Pass the locus of the expression to calls to shortcut_cond_r.
25696         Set the locus of the 'then' block on the associated jump, if any.
25697         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
25698         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
25699         expression to call to gimplify_boolean_expr.
25700
25701 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
25702
25703         * config.gcc: Add additional configuration for
25704         i686-w64-mingw* and x86_64-w64-mingw* triplet.
25705         * config/i386/mingw-w64.h: New mingw-w64 specific header.
25706         (CPP_SPEC): Redefine for allowing -municode option.
25707         (STARTFILE_SPEC): Likewise.
25708         * config/i386/t-mingw-w64: New.
25709         * config/i386/mingw-w64.opt: New.
25710         (municode): Add new target option.
25711         * doc/invoke.texi (municode): Add documentation for new option.
25712
25713 2009-04-21  Ian Lance Taylor  <iant@google.com>
25714
25715         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25716         Correct test for number of arguments.
25717         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25718
25719 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
25720
25721         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
25722         argument of emit_library_call.
25723
25724 2009-04-21  Richard Guenther  <rguenther@suse.de>
25725
25726         PR middle-end/39829
25727         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
25728         inside VIEW_CONVERT_EXPRs.
25729
25730 2009-04-21  Martin Jambor  <mjambor@suse.cz>
25731
25732         * tree-switch-conversion.c (build_constructors): Split a long line.
25733         (constructor_contains_same_values_p): New function.
25734         (build_one_array): Create assigns of constants if possible, do not
25735         call mark_sym_for_renaming, call update_stmt.
25736         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
25737         make_rename_temp.  Do not call mark_symbols_for_renaming, call
25738         update_stmt.
25739         (gen_def_assigns): Do not call mark_symbols_for_renaming or
25740         find_new_referenced_vars, call update_stmt.
25741         (gen_inbound_check): Use create_tmp_var and create ssa names manually
25742         instead of calling make_rename_temp.  Do not call
25743         find_new_referenced_vars or mark_symbols_for_renaming, call
25744         update_stmt.
25745
25746 2009-04-21  Richard Guenther  <rguenther@suse.de>
25747
25748         PR tree-optimization/39827
25749         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
25750         (tree_ssa_phiprop): Pass the correct array size.
25751
25752 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
25753
25754         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
25755
25756 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25757
25758         PR 16202
25759         * c-typeck.c (lvalue_p): Move declaration ...
25760         * c-common.h (lvalue_p): ... to here.
25761         * c-common.c (candidate_equal_p): New.
25762         (add_tlist): Use it.
25763         (merge_tlist): Use it.
25764         (warn_for_collisions_1): Likewise.
25765         (warning_candidate_p): Accept more candidates.
25766         (verify_tree): A warning candidate can be an expression. Use
25767         candidate_equal_p.
25768
25769 2009-04-21  Ben Elliston  <bje@au.ibm.com>
25770
25771         PR target/5267
25772         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
25773         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
25774         options.  Remove -mcall-solaris documentation.
25775
25776 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25777
25778         PR c++/13358
25779         * doc/invoke.texi (-Wlong-long): Update description.
25780         * c-lex (interpret_integer): Only warn if there was no previous
25781         overflow and -Wlong-long is enabled.
25782         * c-decl.c (declspecs_add_type): Drop redundant flags.
25783         * c.opt (Wlong-long): Init to -1.
25784         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
25785         and front-end warn_long_long. Wlong-long only depends on other
25786         flags if it is uninitialized.
25787         * c-parser.c (disable_extension_diagnostics): warn_long_long is
25788         the same for CPP and FE.
25789         (restore_extension_diagnostics): Likewise.
25790
25791 2009-04-20  Ian Lance Taylor  <iant@google.com>
25792
25793         Fix enum conversions which are invalid in C++:
25794         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
25795         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
25796         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
25797         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
25798         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
25799         (dbxout_parms): Likewise.
25800         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
25801         (df_clear_flags): Likewise.
25802         * df-problems.c (df_rd_bb_local_compute_process_def): Change
25803         top_flag parameter to int.
25804         (df_chain_create_bb_process_use): Likewise.
25805         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
25806         Remove cast.
25807         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
25808         (df_ref_create_structure, df_def_record_1): Likewise.
25809         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
25810         (df_notes_rescan): Change 0 to VOIDmode in function call.
25811         (df_get_call_refs, df_insn_refs_collect): Likewise.
25812         (df_bb_regs_collect): Likewise.
25813         (df_entry_block_defs_collect): Likewise.
25814         (df_exit_block_uses_collect): Likewise.
25815         * df.h: Update declarations.
25816         * double-int.c (double_int_divmod): Add cast to enum type.
25817         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
25818         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
25819         (based_loc_descr): Likewise.
25820         (loc_descriptor_from_tree_1): Change first_op and second_op to
25821         enum dwarf_location_atom.  Add cast to enum type.
25822         * expmed.c (init_expmed): Change 0 to SET in function call.
25823         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
25824         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
25825         (do_store_flag): Likewise.
25826         * fixed-value.h (struct fixed_value): Change mode to enum
25827         machine_mode.
25828         * function.c (assign_parms): Change 0 to VOIDmode in function call.
25829         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
25830         function call.
25831         (insert_insn_decl, insert_decl, insert_state): Likewise.
25832         (automata_list_finish): Likewise.
25833         * genrecog.c (process_define_predicate): Add cast to enum type.
25834         * gensupport.c (init_predicate_table): Add cast to enum type.
25835         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
25836         function call.
25837         (gimple_build_call_1, gimple_build_label): Likewise.
25838         (gimple_build_goto, gimple_build_asm_1): Likewise.
25839         (gimple_build_switch_1, gimple_build_cdt): Likewise.
25840         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
25841         (enum fallback): Rename from enum fallback_t.
25842         (fallback_t): Typedef as int.
25843         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
25844         GSI_SAME_STMT in function call.
25845         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
25846         enum type.
25847         (setup_reg_class_relations): Likewise.
25848         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
25849         (setup_prohibited_class_mode_regs): Add cast to enum type.
25850         (setup_prohibited_mode_move_regs): Likewise.
25851         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
25852         (record_address_regs): Change i to enum reg_class.
25853         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
25854         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
25855         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
25856         (GET_MODE_2XWIDER_MODE): Likewise.
25857         (GET_CLASS_NARROWEST_MODE): Likewise.
25858         * omp-low.c (expand_omp_for): Add cast to enum type.
25859         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
25860         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
25861         * postreload.c (reload_cse_simplify_operands): Change rclass local
25862         to enum reg_class.
25863         * predict.c (combine_predictions_for_insn): Change best_predictor
25864         and predictor to enum br_predictor.
25865         (combine_predictions_for_bb): Likewise.
25866         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
25867         use SET_PREDICT_EXPR_OUTCOME.
25868         * real.c (real_arithmetic): Change icode to code in function call.
25869         * reginfo.c (init_move_cost): Add casts to enum type.
25870         (init_reg_sets_1, init_fake_stack_mems): Likewise.
25871         * regmove.c (regclass_compatible_p): Change class0 and class1 to
25872         enum reg_class.
25873         * reload.c (find_valid_class): Add casts to enum type.
25874         (push_reload): Change 0 to NO_REGS in function call.
25875         (find_reloads): Change this_alternative to array of enum
25876         reg_class.  Remove some now-unnecessary casts.
25877         (make_memloc): Change 0 to VOIDmode in function call.
25878         * reload1.c (reload): Change 0 to VOIDmode in function call.
25879         (eliminate_regs_1, elimination_effects): Likewise.
25880         (eliminate_regs_in_insn): Likewise.
25881         (emit_input_reload_insns): Add cast to enum type.
25882         (delete_output_reload): Change 0 to VOIDmode in function call.
25883         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
25884         to enum type in function call.
25885         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
25886         (SET_PREDICT_EXPR_OUTCOME): Define.
25887         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
25888         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
25889         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
25890         (dump_function): Likewise.
25891         * tree-dump.h: Update declarations.
25892         * tree-pass.h: Update declarations.
25893         * varasm.c (assemble_integer): Change mclass to enum mode_class.
25894         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
25895         enum type.
25896         (arm_rtx_costs_1): Correct parenthesization.
25897         (arm_rtx_costs): Add casts to enum type.
25898         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
25899         (vfp_emit_fstmd): Use add_rg_note.
25900         (emit_multi_reg_push, emit_sfm): Likewise.
25901         (thumb_set_frame_pointer): Likewise.
25902         (arm_expand_prologue): Likewise.
25903         (arm_regno_class): Change return type to enum reg_class.
25904         (thumb1_expand_prologue): Use add_reg_note.
25905         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
25906         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
25907         in function call.
25908         * config/arm/gentune.sh: Add cast to enum type.
25909         * config/arm/arm-tune.md: Rebuild.
25910         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
25911         (ix86_split_fp_branch, predict_jump): Likewise.
25912         (ix86_expand_multi_arg_builtin): Change sub_code from enum
25913         insn_code to enum rtx_code.
25914         (ix86_builtin_vectorized_function): Add cast to enum type.
25915         * config/i386/i386.md (truncdfsf2): Change slot to enum
25916         ix86_stack_slot.
25917         (truncxf<mode>2, isinf<mode>2): Likewise.
25918         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
25919         enum type.
25920         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
25921         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
25922         (insert_bundle_state): Change 1 to INSERT in function call.
25923         (ia64_add_bundle_selector_before): Likewise.
25924         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
25925         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
25926         (restore_stack_nonlocal): Likewise.
25927         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
25928         function call.
25929         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
25930         function call.
25931         (mips_rtx_costs): Likewise.
25932         (mips_override_options): Add casts to enum type.
25933         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
25934         in function call.
25935         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
25936         (store_reg, set_reg_plus_d): Likewise.
25937         (hppa_expand_prologue, hppa_profile_hook): Likewise.
25938         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25939         cast to enum type.
25940         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
25941         function call.
25942         (emit_unlikely_jump): Use add_reg_note.
25943         (rs6000_emit_allocate_stack): Likewise.
25944         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
25945         (output_toc): Change 1 to INSERT in function call.
25946         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
25947         (rs6000_initialize_trampoline): Likewise.
25948         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
25949         function call.
25950         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
25951         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
25952         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
25953         (save_gprs): Use add_reg_note.
25954         (s390_emit_prologue): Likewise.
25955         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25956         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
25957         (sparc_fold_builtin): Add cast to enum type.
25958         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
25959         enum insn_code.
25960         (spu_expand_prologue): Use add_reg_note.
25961         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
25962
25963 2009-04-20  Ian Lance Taylor  <iant@google.com>
25964
25965         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
25966         (c_parser_postfix_expression_after_primary): Get VEC for list of
25967         arguments.  Get original types of arguments.  Call
25968         build_function_call_vec.
25969         (cached_expr_list_1, cached_expr_list_2): New static variables.
25970         (c_parser_expr_list): Change return type to VEC *.  Add
25971         p_orig_types parameter.  Change all callers.
25972         (c_parser_release_expr): New static function.
25973         (c_parser_vec_to_tree_list): New static function.
25974         * c-typeck.c (build_function_call): Rewrite to build a VEC and
25975         call build_function_call_vec.
25976         (build_function_call_vec): New function, based on old
25977         build_function_call.
25978         (convert_arguments): Remove nargs and argarray parameters.  Change
25979         values to a VEC.  Add origtypes parameter.
25980         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
25981         (convert_for_assignment): Add origtype parameter.  Change all
25982         callers.  If warn_cxx_compat, check for conversion to an enum
25983         type when calling a function.
25984         (store_init_value): Add origtype parameter.  Change all callers.
25985         (digest_init): Likewise.
25986         (struct init_node): Add origtype field.
25987         (add_pending_init): Add origtype parameter.  Change all callers.
25988         (output_init_element): Likewise.
25989         (output_pending_init_elements): Pass origtype from init_node to
25990         output_init_element.
25991         (process_init_element): Pass origtype from c_expr to
25992         output_init_element.
25993         (c_finish_return): Add origtype parameter.  Change all callers.
25994         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
25995         caller.
25996         (sync_resolve_params): Likewise.
25997         (sync_resolve_return): Change params to first_param.  Change caller.
25998         (resolve_overloaded_builtins): Change params to VEC *.  Change
25999         callers.  Save first parameter around call to build_function_call_vec.
26000         * c-decl.c (finish_decl): Add origtype parameter.  Change all
26001         callers.  Call build_function_call_vec rather than
26002         build_function_call for cleanup.
26003         * c-tree.h: Update declarations.
26004         * c-common.h: Update declarations.
26005         * stub-objc.c (objc_rewrite_function_call): Change parameter from
26006         params to first_param.
26007         * target.h (struct gcc_target): Change resolve_overloaded_builtin
26008         params parameter from tree to void *.
26009         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26010         Change arglist parameter to have type void *, and to be a pointer
26011         to a VEC.
26012         * config/rs6000/rs6000-protos.h
26013         (altivec_resolve_overloaded_builtin): Update declaration.
26014         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
26015         fnargs parameter to have type void *, and to be a pointer to a
26016         VEC.  Call build_function_call_vec instead of
26017         build_function_call.
26018         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
26019
26020 2009-04-20  Joey Ye  <joey.ye@intel.com>
26021             Xuepeng Guo  <xuepeng.guo@intel.com>
26022             H.J. Lu  <hongjiu.lu@intel.com>
26023
26024         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
26025
26026         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
26027         (IX86_LEA_PRIORITY): Likewise.
26028         (distance_non_agu_define): New function.
26029         (distance_agu_use): Likewise.
26030         (ix86_lea_for_add_ok): Likewise.
26031         (ix86_dep_by_shift_count): Likewise.
26032
26033         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
26034         should split for LEA.
26035
26036         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
26037         function.
26038         (ix86_dep_by_shift_count): Likewise.
26039
26040 2009-04-20  Richard Guenther  <rguenther@suse.de>
26041
26042         * expr.c (handled_component_p): Move ...
26043         * tree.h (handled_component_p): ... here.
26044         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
26045         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
26046         and REALPART_EXPR to be in one group.
26047
26048 2009-04-20  Richard Guenther  <rguenther@suse.de>
26049
26050         * basic-block.h (get_all_dominated_blocks): Declare.
26051         * dominance.c (get_all_dominated_blocks): New function.
26052         * tree-cfg.c (get_all_dominated_blocks): Remove.
26053         (remove_edge_and_dominated_blocks): Adjust.
26054         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
26055         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
26056         instead of recursing.
26057
26058 2009-04-20  Doug Kwan  <dougkwan@google.com>
26059
26060         * cgraph.h (cgraph_node_ptr): New type for vector functions.
26061         (struct cgraph_node_set_def): New type.
26062         (cgraph_node_set) New type. Also declare vector functions.
26063         (struct cgraph_node_set_element_def): New type.
26064         (cgraph_node_set_element): Ditto.
26065         (cgraph_node_set_iterator): New iterator type.
26066         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
26067         cgraph_node_set_remove, dump_cgraph_node_set,
26068         debug_cgraph_node_set): New prototypes.
26069         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
26070         cgraph_node_set_size): New inlines.
26071         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
26072         including cgraph.h.
26073         (struct ipa_opt_pass): Add struct cgraph_node_set_def
26074         argument to function 'write_summary'.
26075         * ipa.c: Include ggc.h.
26076         (hash_cgraph_node_set_element,
26077         eq_cgraph_node_set_element, cgraph_node_set_new,
26078         cgraph_node_set_add, cgraph_node_set_remove,
26079         cgraph_node_set_find, dump_cgraph_node_set,
26080         debug_cgraph_node_set): New functions.
26081         * Makefile.in (ipa.o): Add dependency on GGC_H.
26082
26083 2009-04-20  Ira Rosen  <irar@il.ibm.com>
26084
26085         PR tree-optimization/39675
26086         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
26087         check of the return code of vect_schedule_slp. Check that
26088         stmt_vec_info still exists for the statement, before checking its
26089         vectorization type.
26090
26091 2009-04-20  Michael Matz  <matz@suse.de>
26092
26093         * Makefile.in (generated_files): Take out $(simple_generated_c).
26094
26095 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
26096
26097         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
26098         (UINTPTR_TYPE):  Likewise.
26099
26100 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26101
26102         PR c/37481
26103         * c-typeck.c (digest_init): Check for initializing an array with a
26104         string literal.
26105
26106 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26107
26108         PR c/19771
26109         * c-semantics.c (pop_stmt_list): Propagate
26110         STATEMENT_LIST_HAS_LABEL to parent statement list.
26111
26112 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
26113
26114         * config/mips/mips.h (mips_tune_attr): New macro.
26115         * config/mips/mips.md (cpu): Use it.
26116
26117 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26118
26119         PR c/38243
26120         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
26121         declaring a tag.
26122
26123 2009-04-19  Diego Novillo  <dnovillo@google.com>
26124
26125         * toplev.c (compile_file): Move call to coverage_finish ...
26126         * cgraphunit.c (ipa_passes): ... here.
26127         Call cgraph_process_new_functions.
26128         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
26129         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
26130
26131 2009-04-19  Jan Hubicka  <jh@suse.cz>
26132
26133         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
26134         cfun.
26135         (dump_cgraph_node): Dump can throw external flag.
26136         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
26137
26138 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26139
26140         PR c/32061
26141         PR c++/36954
26142         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
26143         * common.opt (Wlogical-op): Move from here...
26144         * c.opt (Wlogical-op): ... to here.
26145         * c-typeck.c (parser_build_binary_op): Update call to
26146         warn_logical_operator.
26147         * c-opts.c (c_common_post_options): Enable warn_logical_op with
26148         extra_warnings.
26149         * c-common.c (warn_logical_op): Update.
26150         * c-common.h (warn_logical_op): Update declaration.
26151
26152 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26153
26154         * tree.c (protected_set_expr_location): Fix formatting.
26155
26156 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26157
26158         PR c/27676
26159         * c-typeck.c (readonly_warning): new.
26160         (build_unary_op, build_modify_expr): Use readonly_warning for
26161         storing into something readonly but not const-qualified.
26162
26163 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26164
26165         PR c/22367
26166         * c-typeck.c (build_unary_op): Check for taking address of
26167         expression of type void.
26168
26169 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26170
26171         PR c/35210
26172         * c-typeck.c (build_function_call): Check for calling a function
26173         with qualified void return types.  Call require_complete_type when
26174         generating a trap.
26175
26176 2009-04-18  Jan Hubicka  <jh@suse.cz>
26177
26178         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
26179         Set nothrow flag.
26180         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
26181         can_throw_external flag.
26182         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
26183         * ipa-pure-const.c (ignore_edge): New function.
26184         (propagate): Compute order for NOTHROW computation; set NOTHROWs
26185         only over can_throw_external edges.
26186         (local_pure_const): Add nothrow flag.
26187         * ipa-utils.c (searchc): Add ignore_edge callback.
26188         (ipa_utils_reduced_inorder): Add ignore_edge callback.
26189         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
26190         (set_nothrow_function_flags): Update cgraph.
26191         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
26192
26193 2009-04-18  Richard Guenther  <rguenther@suse.de>
26194
26195         PR middle-end/39804
26196         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
26197         (fold_stmt): ... this and ...
26198         (fold_stmt_inplace): ... this.
26199         (fold_stmt_1): Fold references in calls and asms.
26200         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
26201
26202 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26203
26204         * tree-vrp.c (ssa_name_nonzero_p): Remove.
26205         * tree.h: Remove the prototype for ssa_name_nonzero_p.
26206
26207 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26208
26209         * tree.c (function_args_count): Remove.
26210         * tree.h: Remove the prototype for function_args_count.
26211
26212 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26213
26214         * tree-iterator.c (expr_only): Remove.
26215         * tree.h: Remove the prototype for expr_only.
26216
26217 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26218
26219         * reginfo.c (cannot_change_mode_set_regs): Remove.
26220         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
26221
26222 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
26223
26224         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
26225         whether operands 0 and 1 overlaps.
26226
26227 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26228
26229         PR middle-end/36902
26230         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
26231         pointer. Use warning_at instead of warning.
26232         (search_for_addr_array): Likewise.
26233         (check_array_bounds): Likewise.
26234         (check_all_array_refs): Check that the incoming edge is not in the
26235         list of edges to be removed.
26236         (check_all_array_refs): Avoid the temporal pointer.
26237         (vrp_visit_cond_stmt): Fix typo.
26238         (simplify_switch_using_ranges): Handle the case where the switch
26239         index is an integer constant.
26240
26241 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
26242
26243         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
26244
26245 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26246
26247         * doc/extend.texi, doc/invoke.texi: Fix typos.
26248
26249 2009-04-17  Cary Coutant  <ccoutant@google.com>
26250
26251         * tree-flow-inline.h (get_lineno): Fix inverted test.
26252
26253 2009-04-17  Diego Novillo  <dnovillo@google.com>
26254
26255         * tree-ssa-pre.c (create_expression_by_pieces): Remove
26256         assertion for AVAIL_OUT.
26257
26258 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
26259
26260         PR target/38627
26261         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
26262         * config/sh/linux-atomic.asm: Likewise.
26263
26264 2009-04-17  Diego Novillo  <dnovillo@google.com>
26265
26266         * except.c (debug_eh_tree): New.
26267         (struct eh_region, struct eh_status): Move ...
26268         * except.h: ... here.
26269         (add_type_for_runtime): Declare extern.
26270         (lookup_type_for_runtime): Likewise.
26271         (debug_eh_tree): Declare.
26272         * Makefile.in (GTFILES): List except.h before except.c
26273
26274 2009-04-17  Diego Novillo  <dnovillo@google.com>
26275
26276         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
26277         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
26278         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
26279         (find_vars_r): ... here.
26280         * tree-flow.h (find_referenced_vars_in): Declare.
26281         * tree-ssa-pre.c (create_expression_by_pieces): Assert
26282         that AVAIL_OUT exists for BLOCK.
26283         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
26284         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
26285         (tree-parloops.o): Likewise.
26286
26287 2009-04-17  Simon Baldwin  <simonb@google.com>
26288
26289         * toplev.c (default_tree_printer): Add handling for %E format.
26290
26291 2009-04-17  Diego Novillo  <dnovillo@google.com>
26292
26293         * tree-pretty-print.c (dump_generic_node): Add break after
26294         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
26295         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
26296         FUNCTION_TYPE together.  Call print_struct_decl when printing
26297         structures and TDF_SLIM is not given.
26298         (print_struct_decl): Fix logic for detecting recursion.
26299
26300 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26301
26302         PR 31567
26303         * gcc.c (create_at_file): New.
26304         (compile_input_file_p): New.
26305         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
26306         * main.c (main): Update call to toplev_main.
26307         * toplev.c (toplev_main): Change signature. Call expandargv.
26308         * toplev.h (toplev_main): Change signature.
26309
26310 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26311
26312         * dwarf2out.c (field_byte_offset): Use the type size as the field size
26313         if the latter is not constant.
26314
26315 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
26316
26317         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
26318
26319 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26320
26321         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
26322         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
26323
26324 2009-04-17  Richard Guenther  <rguenther@suse.de>
26325
26326         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26327         Handle component references view-converting an invariant address.
26328
26329 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
26330
26331         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
26332         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
26333         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
26334         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
26335         Use @deftypevr rather than @deftypevar.
26336
26337 2009-04-17  Richard Guenther  <rguenther@suse.de>
26338
26339         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
26340         (get_prop_source_stmt): Likewise.
26341         (can_propagate_from): Likewise.
26342
26343 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
26344
26345         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
26346         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
26347         (--with-multilib-list): Add default value.
26348         * configure: Regenerate.
26349         * Makefile.in (TM_ENDIAN_CONFIG): Define.
26350         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
26351         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
26352         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
26353         Don't add default cpu to multilib list unnecessarily, but do enable
26354         the relevant compiler option..
26355         Add support for --with-multilib-list=<blank> and
26356         --with-multilib-list=!<somelib> to supress unwanted multilibs.
26357         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
26358         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
26359         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
26360         TM_MULTILIB_CONFIG.
26361         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
26362         (MULTILIB_OSDIRNAMES): New variable.
26363         * config/sh/t-1e: Delete file.
26364         * config/sh/t-mlib-sh1: Delete file.
26365         * config/sh/t-mlib-sh2: Delete file.
26366         * config/sh/t-mlib-sh2a: Delete file.
26367         * config/sh/t-mlib-sh2a-nofpu: Delete file.
26368         * config/sh/t-mlib-sh2a-single: Delete file.
26369         * config/sh/t-mlib-sh2a-single-only: Delete file.
26370         * config/sh/t-mlib-sh2e: Delete file.
26371         * config/sh/t-mlib-sh3e: Delete file.
26372         * config/sh/t-mlib-sh4: Delete file.
26373         * config/sh/t-mlib-sh4-nofpu: Delete file.
26374         * config/sh/t-mlib-sh4-single: Delete file.
26375         * config/sh/t-mlib-sh4-single-only: Delete file.
26376         * config/sh/t-mlib-sh4a: Delete file.
26377         * config/sh/t-mlib-sh4a-nofpu: Delete file.
26378         * config/sh/t-mlib-sh4a-single: Delete file.
26379         * config/sh/t-mlib-sh4a-single-only: Delete file.
26380         * config/sh/t-mlib-sh4al: Delete file.
26381         * config/sh/t-mlib-sh5-32media: Delete file.
26382         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
26383         * config/sh/t-mlib-sh5-64media: Delete file.
26384         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
26385         * config/sh/t-mlib-sh5-compact: Delete file.
26386         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
26387         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
26388         * doc/install.texi (Options specification): Add
26389         --with-multilib-list and --with-endian.
26390
26391 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26392
26393         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
26394         REVISION_c.
26395         (OBJS-common): Add plugin-version.o.
26396         (plugin-version.o): New.
26397         * gcc-plugin.h (plugin_gcc_version): New.
26398         (plugin_default_version_check): New.
26399         (plugin_init_func, plugin_init): Add version argument.
26400         * plugin-version.c: New.
26401         * plugin.c (str_plugin_gcc_version_name): New.
26402         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
26403         pass it to the init function.
26404         (plugin_default_version_check): New.
26405
26406 2009-04-17  Richard Guenther  <rguenther@suse.de>
26407
26408         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
26409         for decl-vs-decl disambiguation.
26410
26411 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
26412
26413         * config/s390/s390.h (s390_tune_attr): New macro definition.
26414         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
26415
26416 2009-04-17  Richard Guenther  <rguenther@suse.de>
26417
26418         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
26419         (fold_stmt_r): Likewise.
26420         (maybe_fold_reference): New function.
26421         (fold_gimple_assign): Handle cases fold_stmt_r did.
26422         (fold_stmt): Do not use fold_stmt_r.
26423         (fold_stmt_inplace): Likewise.
26424
26425 2009-04-17  Richard Guenther  <rguenther@suse.de>
26426
26427         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
26428         (record_equivalences_from_stmt): Remove useless checks and
26429         simplifications.
26430         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
26431         the type is already suitable.
26432
26433 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
26434
26435         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
26436
26437 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
26438
26439         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
26440         (CMPtype): Define as __gcc_CMPtype.
26441
26442 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
26443
26444         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
26445         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
26446
26447 2009-04-17  Richard Guenther  <rguenther@suse.de>
26448
26449         PR tree-optimization/39746
26450         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
26451         special-casing for builtins and static variable use/def.
26452         (call_may_clobber_ref_p_1): Likewise.
26453
26454 2009-04-16  Ian Lance Taylor  <iant@google.com>
26455
26456         * df.h: Include "timevar.h".
26457         (struct df_problem): Change tv_id field to timevar_id_t.
26458         * tree-pass.h: Include "timevar.h".
26459         (struct opt_pass): Change tv_id field to timevar_id_t.
26460         * timevar.h (timevar_id_t): Define TV_NONE.
26461         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
26462         TV_NONE rather than tv_id != 0.
26463         (execute_one_pass): Likewise.
26464         * Makefile.in (DF_H): Add $(TIMEVAR_H).
26465         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
26466         dependencies to $(TREE_PASS_H).
26467         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
26468         to TV_NONE.
26469         (pass_branch_target_load_optimize2): Likewise.
26470         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
26471         (pass_outof_cfg_layout_mode): Likewise.
26472         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
26473         (pass_rebuild_cgraph_edges): Likewise.
26474         (pass_remove_cgraph_callee_edges): Likewise.
26475         * df-core.c (pass_df_initialize_opt): Likewise.
26476         (pass_df_initialize_no_opt): Likewise.
26477         (pass_df_finish): Likewise.
26478         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
26479         * except.c (pass_set_nothrow_function_flags): Likewise.
26480         (pass_convert_to_eh_region_ranges): Likewise.
26481         * final.c (pass_compute_alignments): Likewise.
26482         * function.c (pass_instantiate_virtual_regs): Likewise.
26483         (pass_init_function): Likewise.
26484         (pass_leaf_regs): Likewise.
26485         (pass_match_asm_constraints): Likewise.
26486         * gimple-low.c (pass_lower_cf): Likewise.
26487         (pass_mark_used_blocks): Likewise.
26488         * init-regs.c (pass_initialize_regs): Likewise.
26489         * integrate.c (pass_initial_value_sets): Likewise.
26490         * ira.c (pass_ira): Likewise.
26491         * jump.c (pass_cleanup_barriers): Likewise.
26492         * omp-low.c (pass_expand_omp): Likewise.
26493         (pass_lower_omp): Likewise.
26494         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
26495         * recog.c (pass_split_all_insns): Likewise.
26496         (pass_split_after_reload): Likewise.
26497         (pass_split_before_regstack): Likewise.
26498         (pass_split_before_sched2): Likewise.
26499         (pass_split_for_shorten_branches): Likewise.
26500         * reginfo.c (pass_reginfo_init): Likewise.
26501         (pass_subregs_of_mode_init): Likewise.
26502         (pass_subregs_of_mode_finish): Likewise.
26503         * passes.c (pass_postreload): Likewise.
26504         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
26505         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
26506         (pass_warn_function_return): Likewise.
26507         (pass_warn_function_noreturn): Likewise.
26508         * tree-complex.c (pass_lower_complex): Likewise.
26509         (pass_lower_complex_O0): Likewise.
26510         * tree-if-conv.c (pass_if_conversion): Likewise.
26511         * tree-into-ssa.c (pass_build_ssa): Likewise.
26512         * tree-mudflap.c (pass_mudflap_1): Likewise.
26513         (pass_mudflap_2): Likewise.
26514         * tree-nomudflap.c (pass_mudflap_1): Likewise.
26515         (pass_mudflap_2): Likewise.
26516         * tree-nrv.c (pass_return_slot): Likewise.
26517         * tree-object-size.c (pass_object_sizes): Likewise.
26518         * tree-optimize.c (pass_all_optimizations): Likewise.
26519         (pass_early_local_passes): Likewise.
26520         (pass_all_early_optimizations): Likewise.
26521         (pass_cleanup_cfg): Likewise.
26522         (pass_cleanup_cfg_post_optimizing): Likewise.
26523         (pass_free_datastructures): Likewise.
26524         (pass_free_cfg_annotations): Likewise.
26525         (pass_fixup_cfg): Likewise.
26526         (pass_init_datastructures): Likewise.
26527         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
26528         (pass_late_warn_uninitialized): Likewise.
26529         (pass_update_address_taken): Likewise.
26530         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
26531         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
26532         (pass_cse_sincos): Likewise.
26533         (pass_convert_to_rsqrt): Likewise.
26534         * tree-ssa-structalias.c (pass_build_alias): Likewise.
26535         * tree-stdarg.c (pass_stdarg): Likewise.
26536         * tree-tailcall.c (pass_tail_recursion): Likewise.
26537         (pass_tail_calls): Likewise.
26538         * tree-vect-generic.c (pass_lower_vector): Likewise.
26539         (pass_lower_vector_ssa): Likewise.
26540         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
26541
26542 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
26543
26544         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
26545         XLR entry.
26546         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
26547         Handle -march=xlr.
26548         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
26549         logical and signext.
26550
26551 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
26552
26553         PR target/39767
26554         * config/sh/predicates.md (arith_operand): Check if the operand
26555         of TRUNCATE is a REG.
26556
26557 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26558
26559         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
26560         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
26561
26562 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26563
26564         * tree-iterator.c (tsi_split_statement_list_after,
26565         tsi_split_statement_list_before): Remove.
26566         * tree-iterator.h: Remove the prototypes for
26567         tsi_split_statement_list_after and tsi_split_statement_list_before.
26568
26569 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26570
26571         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
26572         * tree-ssa-propagate.h: Remove the prototype for
26573         stmt_makes_single_load.
26574
26575 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26576
26577         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
26578         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
26579
26580 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26581
26582         * tree-iterator.c (EXPR_LAST_BODY): Remove.
26583
26584 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26585
26586         * except.c (eh_region_outer_p): Remove.
26587         * except.h: Remove the prototype for eh_region_outer_p.
26588
26589 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26590
26591         * function.c (current_function_assembler_name): Remove.
26592         * function.h: Remove the prototype for
26593         current_function_assembler_name.
26594
26595 2009-04-16  Ian Lance Taylor  <iant@google.com>
26596
26597         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
26598         (add_reg_note): Call alloc_reg_note.
26599         * rtl.h (alloc_reg_note): Declare.
26600         * combine.c (try_combine): Use alloc_reg_note.
26601         (recog_for_combine, move_deaths): Likewise.
26602         (distribute_notes): Use alloc_reg_note and add_reg_note.
26603         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
26604         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
26605         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
26606
26607 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
26608
26609         PR rtl-optimization/39762
26610         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
26611         ira_may_move_out_cost): Add comments about way of their usage.
26612         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
26613
26614         * ira-conflicts.c (process_regs_for_copy): Use function
26615         ira_get_register_move_cost instead of global
26616         ira_register_move_cost.
26617
26618         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
26619         color_pass, move_spill_restore, update_curr_costs): Ditto.
26620
26621         * ira-lives.c (process_single_reg_class_operands): Ditto.
26622
26623         * ira-emit.c (emit_move_list): Ditto.
26624
26625         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
26626         (record_reg_classes): Ditto.  Use functions
26627         ira_get_register_move_cost and ira_get_may_move_cost instead of
26628         global vars ira_register_move_cost, ira_may_move_out_cost and
26629         ira_may_move_in_cost.
26630         (record_address_regs): Don't call ira_init_register_move_cost.
26631         Use function ira_get_may_move_cost instead of global
26632         ira_may_move_in_cost.
26633         (process_bb_node_for_hard_reg_moves): Use function
26634         ira_get_register_move_cost instead of global ira_register_move_cost.
26635         (ira_costs): Don't call ira_init_register_move_cost.
26636
26637 2009-04-16  Richard Guenther  <rguenther@suse.de>
26638
26639         * tree-cfg.c (verify_gimple_assign_binary):
26640         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
26641         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
26642         (create_general_new_stmt): Note that this function is broken.
26643
26644 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26645
26646         * common.opt (fhelp): Add Var(help_flag).
26647         * gcc-plugin.h (plugin_info): Add help.
26648         * plugin.c (plugin_name_args): Add help.
26649         (register_plugin_info): Set plugin->help.
26650         (print_help_one_plugin): New.
26651         (print_plugins_help): New.
26652         * plugin.h (print_plugins_help): New.
26653         * toplev.c (toplev_main): Call print_plugins_help if needed.
26654
26655 2009-04-16  Richard Guenther  <rguenther@suse.de>
26656
26657         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
26658         (gimple_ior_addresses_taken_1): New function.
26659         (gimple_ior_addresses_taken): Likewise.
26660         * gimple.h (struct gimple_statement_with_ops_base): Remove
26661         addresses_taken member.
26662         (gimple_ior_addresses_taken): Declare.
26663         (gimple_addresses_taken, gimple_addresses_taken_ptr,
26664         gimple_set_addresses_taken): Remove.
26665         * ipa-reference.c (mark_address): New function.
26666         (scan_stmt_for_static_refs): Use it for marking addresses taken.
26667         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
26668         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
26669         (gimple_add_to_addresses_taken): Remove.
26670         (get_tmr_operands): Call mark_address_taken.
26671         (get_asm_expr_operands): Likewise.
26672         (get_expr_operands): Likewise.
26673         (build_ssa_operands): Do not clear the addresses_taken bitmap.
26674         (free_stmt_operands): Do not free it.
26675         * tree-ssa.c (delete_tree_ssa): Likewise.
26676         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
26677
26678 2009-04-16  Richard Guenther  <rguenther@suse.de>
26679
26680         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
26681         (walk_stmt_load_store_ops): Likewise.
26682         * gimple.c (get_base_loadstore): New function.
26683         (walk_stmt_load_store_addr_ops): Likewise.
26684         (walk_stmt_load_store_ops): Likewise.
26685         * ipa-pure-const.c (check_op): Simplify.
26686         (check_load, check_store): New functions.
26687         (check_stmt): Use walk_stmt_load_store_ops.
26688         * ipa-reference.c (mark_load): Adjust signature.
26689         (mark_store): Likewise.
26690         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
26691
26692 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26693
26694         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
26695         (plugin_info): New.
26696         * opts.c (common_handle_option): Don't call print_version.
26697         * plugin.c (plugin_name_args): Add version.
26698         (register_plugin_info): New.
26699         (register_callback): Handle PLUGIN_INFO.
26700         (try_init_one_plugin): New.
26701         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
26702         if failed to init.
26703         (finalize_one_plugin): New.
26704         (finalize_plugins): New.
26705         (print_one_plugin): New.
26706         (print_plugins_versions): New.
26707         * plugin.h (print_plugins_versions): New.
26708         (finalize_plugins): New.
26709         * toplev.c (compile_file): Don't call initialize_plugins.
26710         (print_version): Call print_plugins_versions.
26711         (toplev_main): Call initialize_plugins. Print version if needed.
26712         Call finalize_plugins.
26713
26714 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26715
26716         * common.opt (fversion): New.
26717         * gcc.c (print_version): New.
26718         (process_command): Don't print the version. Just set print_version.
26719         (main): Print version. Call subprocesses if print_version and
26720         verbose_flag are set.
26721         * opts.c (common_handle_option): Handle OPT_fversion.
26722
26723 2009-04-16  Richard Guenther  <rguenther@suse.de>
26724             Ira Rosen  <irar@il.ibm.com>
26725
26726         PR tree-optimization/39698
26727         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
26728         type of the reduction variable.  Only generate the def if
26729         it is needed.
26730
26731         * omp-low.c (expand_omp_for_generic): When converting to a pointer
26732         make sure to first convert to an integer of the same precision.
26733         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
26734         the type of the evolution correctly in computing the new
26735         induction variable base.
26736
26737 2009-04-16  Richard Guenther  <rguenther@suse.de>
26738
26739         PR middle-end/39625
26740         * tree-cfg.c (make_blocks): Split statements with to-be
26741         abnormal SSA names on the lhs.
26742
26743 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
26744
26745         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
26746         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
26747         * c-typeck.c (really_start_incremental_init): Likewise.
26748         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
26749         (TARGET_INITIALIZER): Remove it.
26750         * target.h (struct target): Remove vector_opaque_p.
26751         * tree.c (build_opaque_vector_type): New.
26752         * tree.h (TYPE_VECTOR_OPAQUE): New.
26753         (build_opaque_vector_type): Declare.
26754         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
26755         * config/rs6000/rs6000.c (build_opaque_vector_type,
26756         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
26757         (rs6000_init_builtins): Use build_opaque_vector_type for
26758         opaque_V4SI_type_node.
26759
26760 2009-04-15  Catherine Moore  <clm@codesourcery.com>
26761
26762         * debug.h (set_name):  Declare.
26763         * dwarf2out.c (dwarf2out_set_name): Declare.
26764         (dwarf2_debug_hooks): Add set_name.
26765         (find_AT_string): New.
26766         (add_AT_string): Call find_AT_string.
26767         (dwarf2out_set_name): New.
26768         * cp/decl.c (grokdeclarator): Call set_name.
26769         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
26770         * debug.c (do_nothing_debug_hooks):  Likewise.
26771         * dbxout.c (dbx_debug_hooks): Likewise.
26772         * sdbout.c (sdb_debug_hooks): Likewise.
26773
26774 2009-04-15  Michael Eager  <eager@eagercon.com>
26775
26776         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
26777         reg for single-precision FPU.
26778         * config/rs6000/rs6000.md (movsi_internal1): Only for
26779         !TARGET_SINGLE_FPU.
26780         (movsi_internal1_single): New. Add pattern to move SI values to/from
26781         single-precision FP regs.
26782
26783 2009-04-15  Richard Guenther  <rguenther@suse.de>
26784
26785         * omp-low.c (lower_rec_input_clauses): Build correct address
26786         expressions.
26787         (expand_omp_for_generic): Fix multiplication type.
26788         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
26789         (generate_memset_zero): Fix types.
26790         * tree-profile.c (prepare_instrumented_value): Correctly
26791         widen a pointer.
26792
26793 2009-04-15  Ian Lance Taylor  <iant@google.com>
26794
26795         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
26796         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
26797         for -Wall and for -Wc++-compat.
26798         (c_common_post_options): For C++, set warn_enum_compare if not
26799         already set.
26800         * c-tree.h (struct c_expr): Add field original_type.
26801         (build_external_ref): Update declaration.
26802         * c-parser.c (c_parser_braced_init): Set original_type.
26803         (c_parser_initelt): Likewise.
26804         (c_parser_expr_no_commas): Likewise.
26805         (c_parser_conditional_expression): Likewise.
26806         (c_parser_cast_expression): Likewise.
26807         (c_parser_unary_expression): Likewise.  Pull setting of
26808         original_code to top of function.
26809         (c_parser_sizeof_expression): Set original_type.
26810         (c_parser_alignof_expression): Likewise.
26811         (c_parser_postfix_expression): Likewise.  Pull setting of
26812         original_code to top of function.
26813         (c_parser_postfix_expression_after_paren_type): Set original_type.
26814         (c_parser_postfix_expression_after_primary): Likewise.
26815         (c_parser_expression): Likewise.
26816         * c-typeck.c (build_external_ref): Add type parameter.  Change all
26817         callers.
26818         (c_expr_sizeof_expr): Set original_type field.
26819         (parser_build_unary_op): Likewise.
26820         (parser_build_binary_op): Likewise.  Optionally warn about
26821         comparisons of enums of different types.
26822         (digest_init): Set original_type field.
26823         (really_start_incremental_init): Likewise.
26824         (push_init_level, pop_init_level): Likewise.
26825         * doc/invoke.texi (Warning Options): -Wenum-compare now
26826         supported in C.
26827
26828 2009-04-15  Richard Guenther  <rguenther@suse.de>
26829
26830         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
26831         out a necessary conversion.
26832         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
26833         names we didn't value number.
26834         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
26835
26836 2009-04-15  Richard Guenther  <rguenther@suse.de>
26837
26838         PR tree-optimization/39764
26839         * tree-ssa-ccp.c (get_value): Canonicalize value with
26840         canonicalize_float_value.
26841
26842 2009-04-15  Jan Hubicka  <jh@suse.cz>
26843
26844         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
26845         Wrong version of patch.
26846
26847 2009-04-15  Jan Hubicka  <jh@suse.cz>
26848
26849         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
26850
26851 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
26852
26853         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
26854         our distinct integral and vector types.
26855
26856 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
26857
26858         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
26859         * init.c (build_vtbl_address): Remove call to assemble_external.
26860
26861 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
26862
26863         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
26864         output for other floating point modes.
26865
26866 2009-04-14  Diego Novillo  <dnovillo@google.com>
26867
26868         * diagnostic.c (diagnostic_report_diagnostic): Do not
26869         warn about loaded plugins for DK_ERROR and DK_WARNING.
26870         * c-decl.c (declspecs_add_type): Move call to
26871         invoke_plugin_callbacks ...
26872         * c-parser.c (c_parser_declspecs): ... here.
26873         * plugin.c (dump_active_plugins): Tidy output.
26874
26875 2009-04-14  Diego Novillo  <dnovillo@google.com>
26876             Le-Chun Wu  <lcwu@google.com>
26877
26878         * configure.ac: Add --enable-plugin support.
26879         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
26880         * Makefile.in (PLUGIN_H): Define.
26881         Export ENABLE_PLUGIN and GMPINC to site.exp.
26882         Add PLUGINLIBS to link command.
26883         Add/modify dependencies for plugin.o and files including plugin.h.
26884         (plugin.o): New.
26885         * config.in: Regenerate.
26886
26887         * opts.c (common_handle_option): Handle OPT_fplugin_ and
26888         OPT_fplugin_arg_.
26889
26890 2009-04-14  Le-Chun Wu  <lcwu@google.com>
26891
26892         * tree-pass.h (register_one_dump_file): Add a prototype for
26893         register_one_dump_file.
26894         * toplev.c (compile_file): Call initialize_plugins.
26895         (do_compile): Call invoke_plugin_callbacks.
26896         (toplev_main): Call invoke_plugin_callbacks.
26897         * common.opt: Add -fplugin= and -fplugin-arg-.
26898         * gcc-plugin.h: New public header file for plugins to include.
26899         * plugin.c: New source file.
26900         * plugin.h: New internal header file.
26901         * passes.c (register_one_dump_file): Make it external.
26902
26903         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
26904
26905 2009-04-14  Diego Novillo  <dnovillo@google.com>
26906
26907         * doc/plugins.texi: New.
26908         * doc/gccint.texi: Add reference to Plugins chapter.
26909         * doc/invoke.texi: Document -fplugin and -fplugin-arg
26910         * diagnostic.c (diagnostic_report_diagnostic): Warn about
26911         loaded plugins, if any.
26912         * timevar.def (TV_PLUGIN_INIT): Define.
26913         (TV_PLUGIN_RUN): Define.
26914         * plugin.c: Include timevar.h
26915         (plugins_active_p): New.
26916         (dump_active_plugins): New.
26917         (debug_active_plugins): New.
26918
26919 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
26920
26921         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
26922         library paths.
26923         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
26924
26925 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
26926
26927         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
26928         the same as a minus without a shift.
26929
26930 2009-04-14  Nick Clifton  <nickc@redhat.com>
26931
26932         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
26933         comparisons with small integers will always produce a short
26934         branch.
26935
26936 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
26937
26938         Merge:
26939         2008-12-19  Diego Novillo  <dnovillo@google.com>
26940
26941         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
26942
26943 2009-04-14  Richard Guenther  <rguenther@suse.de>
26944
26945         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
26946         verification.
26947         (verify_gimple_assign_binary): Likewise.  Handle shifts and
26948         rotates correctly.
26949         (verify_gimple_phi): Print the mismatched argument position.
26950         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26951         Fix types.
26952         (vect_update_init_of_dr): Likewise.
26953         * matrix-reorg.c (transform_access_sites): Do what the
26954         comment suggests.
26955         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
26956
26957 2009-04-13  Michael Eager  <eager@eagercon.com>
26958
26959         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
26960         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
26961         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
26962         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
26963         remove duplicate config
26964
26965 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
26966
26967         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
26968         file_name:line_number type locator of the call site.
26969
26970 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
26971
26972         * genautomata.c: Put blank after comma.
26973         (automaton_decls): New.
26974         (struct unit_usage): Add comments to member next.
26975         (store_alt_unit_usage): Keep the list ordered.
26976         (unit_present_on_list_p, equal_alternatives_p): New.
26977         (check_regexp_units_distribution): Check units distribution
26978         correctness correctly.
26979         (main): Don't write automata if error is found.  Return correct
26980         exit code.
26981
26982         * config/m68k/cf.md (cfv4_ds): Remove.
26983         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
26984         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
26985
26986         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
26987         power4-load-ext, power4-store, power4-store-update,
26988         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
26989         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
26990         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
26991         power4-sqrt, power4-isync): Modify reservation to make correct
26992         unit distribution to automata.
26993
26994         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
26995         power5-store-update, power5-two, power5-three, power5-lmul,
26996         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
26997
26998 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
26999
27000         * except.c (pass_set_nothrow_function_flags): Set name and add
27001         TODO_dump_func.
27002         (set_nothrow_function_flags): Mention in the dump file when
27003         changing a function to nothrow.
27004
27005 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
27006
27007         PR/39066
27008         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
27009         instead of unsigned long.
27010
27011 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27012
27013         * config/arm/arm.c (return_used_this_function): Remove.
27014         (arm_output_function_prologue): Remove use of
27015         return_used_this_function.
27016         (output_return_instruction): Replace use of
27017         return_used_this_function
27018         by cfun->machine->return_used_this_function.
27019         (arm_output_epilogue): Likewise.
27020         (arm_output_function_epilogue): Likewise.
27021         (thumb_unexpanded_epilogue): Likewise.
27022         * config/arm/arm.h (struct machine_function):
27023         New member return_used_this_function.
27024
27025 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
27026
27027         * doc/install.texi: Correct description of default directory for
27028         --with-gxx-include-dir.
27029
27030 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
27031
27032         * fold-const.c (build_range_check): Properly deal with enumeral and
27033         boolean base types.
27034
27035 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27036
27037         * doc/invoke.texi (max_gcse_passes): Remove documentation.
27038         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
27039         * params.h (MAX_GCSE_PASSES): Remove.
27040         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
27041         in sequence.  Remove ability to run multiple passes.
27042         (bypass_jumps): Report run as third CPROP pass.
27043
27044 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
27045
27046         PR middle-end/39651
27047         * except.c (can_throw_external): Look at each insn in a SEQUENCE
27048         when deciding whether the whole SEQUENCE can throw.
27049
27050 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
27051
27052         PR target/39740
27053         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
27054         offseted label references.
27055
27056 2009-04-11  Jan Hubicka  <jh@suse.cz>
27057
27058         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
27059
27060 2009-04-11  Richard Guenther  <rguenther@suse.de>
27061
27062         PR middle-end/39732
27063         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
27064         return variables as TREE_ADDRESSABLE.
27065
27066 2009-04-11  Richard Guenther  <rguenther@suse.de>
27067
27068         PR tree-optimization/39713
27069         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
27070         reference trees have SSA_NAME operands.
27071
27072 2009-04-11  Richard Guenther  <rguenther@suse.de>
27073
27074         PR c/39712
27075         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
27076         address expressions.
27077
27078 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
27079
27080         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
27081         match changes in Cygwin 1.7
27082         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
27083         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
27084
27085 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27086
27087         PR tree-optimization/39701
27088         * doc/invoke.texi (Optimization Options): Document change in
27089         meaning and initialization of -fdelete-null-pointer-checks.
27090
27091 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27092
27093         PR middle-end/39701
27094         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
27095
27096         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
27097         here.
27098
27099         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
27100
27101 2009-04-10  Chao-ying Fu  <fu@mips.com>
27102
27103         * doc/tm.texi (Instruction Output): Document
27104         TARGET_ASM_FINAL_POSTSCAN_INSN.
27105         * target.h (final_postscan_insn): New field in asm_out.
27106         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27107         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
27108         * final.c (final_scan_insn): Call
27109         targetm.asm_out.final_postscan_insn after outputting
27110         an asm macro and a normal instruction.
27111
27112         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
27113         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
27114         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
27115         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
27116         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27117
27118 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27119
27120         PR middle-end/39701
27121         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
27122         variables as non-NULL even with -fdelete-null-pointer-checks.
27123
27124 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27125
27126         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
27127
27128 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
27129
27130         PR target/39678
27131         * config/i386/i386.c (classify_argument): Handle SCmode with
27132         (bit_offset % 64) != 0.
27133
27134 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
27135
27136         * doc/invoke.texi (Optimize Options): Add cross-reference to
27137         -Q --help=optimizers examples.
27138
27139 2009-04-10  Ben Elliston  <bje@au.ibm.com>
27140
27141         PR target/36800
27142         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
27143         regalign for the reg == fpr and TDmode case.
27144
27145 2009-04-09  David Ayers  <ayers@fsfe.org>
27146
27147         PR objc/29200
27148         * objc/objc-act.c (warn_with_method): Remove helper function.
27149         (check_duplicates): Call warning and inform directly.
27150         (really_start_method): Likewise.
27151
27152 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27153
27154         * expmed.c (expand_divmod): Always use a comparison for a division
27155         by a large unsigned integer.
27156
27157         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
27158         for things others than variables or functions as nonzero.
27159
27160 2009-04-09  Nick Clifton  <nickc@redhat.com>
27161
27162         * unwind-compat.c: Change copyright header to refer to version
27163         3 of the GNU General Public License with version 3.1 of the
27164         GCC Runtime Library Exception and to point readers at the
27165         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
27166         * config/alpha/crtfastmath.c: Likewise.
27167         * config/alpha/linux-unwind.h: Likewise.
27168         * config/alpha/qrnnd.asm: Likewise.
27169         * config/alpha/vms-crt0-64.c: Likewise.
27170         * config/alpha/vms-crt0.c: Likewise.
27171         * config/alpha/vms-dwarf2.asm: Likewise.
27172         * config/alpha/vms-dwarf2eh.asm: Likewise.
27173         * config/alpha/vms-psxcrt0-64.c: Likewise.
27174         * config/alpha/vms-psxcrt0.c: Likewise.
27175         * config/alpha/vms_tramp.asm: Likewise.
27176         * config/arc/initfini.c: Likewise.
27177         * config/arc/lib1funcs.asm: Likewise.
27178         * config/arm/bpabi-v6m.S: Likewise.
27179         * config/arm/bpabi.S: Likewise.
27180         * config/arm/bpabi.c: Likewise.
27181         * config/arm/crti.asm: Likewise.
27182         * config/arm/crtn.asm: Likewise.
27183         * config/arm/ieee754-df.S: Likewise.
27184         * config/arm/ieee754-sf.S: Likewise.
27185         * config/arm/lib1funcs.asm: Likewise.
27186         * config/arm/libunwind.S: Likewise.
27187         * config/arm/linux-atomic.c: Likewise.
27188         * config/arm/mmintrin.h: Likewise.
27189         * config/arm/pr-support.c: Likewise.
27190         * config/arm/unaligned-funcs.c: Likewise.
27191         * config/arm/unwind-arm.c: Likewise.
27192         * config/arm/unwind-arm.h: Likewise.
27193         * config/avr/libgcc.S: Likewise.
27194         * config/bfin/crti.s: Likewise.
27195         * config/bfin/crtlibid.s: Likewise.
27196         * config/bfin/crtn.s: Likewise.
27197         * config/bfin/lib1funcs.asm: Likewise.
27198         * config/bfin/linux-unwind.h: Likewise.
27199         * config/cris/arit.c: Likewise.
27200         * config/cris/cris_abi_symbol.c: Likewise.
27201         * config/darwin-64.c: Likewise.
27202         * config/darwin-crt2.c: Likewise.
27203         * config/darwin-crt3.c: Likewise.
27204         * config/darwin.h: Likewise.
27205         * config/dbxelf.h: Likewise.
27206         * config/dfp-bit.c: Likewise.
27207         * config/dfp-bit.h: Likewise.
27208         * config/elfos.h: Likewise.
27209         * config/fixed-bit.c: Likewise.
27210         * config/fixed-bit.h: Likewise.
27211         * config/fp-bit.c: Likewise.
27212         * config/fp-bit.h: Likewise.
27213         * config/fr30/crti.asm: Likewise.
27214         * config/fr30/crtn.asm: Likewise.
27215         * config/fr30/lib1funcs.asm: Likewise.
27216         * config/freebsd-spec.h: Likewise.
27217         * config/frv/cmovd.c: Likewise.
27218         * config/frv/cmovh.c: Likewise.
27219         * config/frv/cmovw.c: Likewise.
27220         * config/frv/frvbegin.c: Likewise.
27221         * config/frv/frvend.c: Likewise.
27222         * config/frv/lib1funcs.asm: Likewise.
27223         * config/glibc-stdint.h: Likewise.
27224         * config/h8300/clzhi2.c: Likewise.
27225         * config/h8300/crti.asm: Likewise.
27226         * config/h8300/crtn.asm: Likewise.
27227         * config/h8300/ctzhi2.c: Likewise.
27228         * config/h8300/fixunssfsi.c: Likewise.
27229         * config/h8300/lib1funcs.asm: Likewise.
27230         * config/h8300/parityhi2.c: Likewise.
27231         * config/h8300/popcounthi2.c: Likewise.
27232         * config/i386/ammintrin.h: Likewise.
27233         * config/i386/att.h: Likewise.
27234         * config/i386/avxintrin.h: Likewise.
27235         * config/i386/biarch64.h: Likewise.
27236         * config/i386/bmmintrin.h: Likewise.
27237         * config/i386/cpuid.h: Likewise.
27238         * config/i386/cross-stdarg.h: Likewise.
27239         * config/i386/crtfastmath.c: Likewise.
27240         * config/i386/crtprec.c: Likewise.
27241         * config/i386/cygming-crtbegin.c: Likewise.
27242         * config/i386/cygming-crtend.c: Likewise.
27243         * config/i386/cygwin.asm: Likewise.
27244         * config/i386/emmintrin.h: Likewise.
27245         * config/i386/gmm_malloc.h: Likewise.
27246         * config/i386/gthr-win32.c: Likewise.
27247         * config/i386/i386.h: Likewise.
27248         * config/i386/immintrin.h: Likewise.
27249         * config/i386/linux-unwind.h: Likewise.
27250         * config/i386/linux64.h: Likewise.
27251         * config/i386/mm3dnow.h: Likewise.
27252         * config/i386/mmintrin-common.h: Likewise.
27253         * config/i386/mmintrin.h: Likewise.
27254         * config/i386/nmmintrin.h: Likewise.
27255         * config/i386/pmm_malloc.h: Likewise.
27256         * config/i386/pmmintrin.h: Likewise.
27257         * config/i386/smmintrin.h: Likewise.
27258         * config/i386/sol2-c1.asm: Likewise.
27259         * config/i386/sol2-ci.asm: Likewise.
27260         * config/i386/sol2-cn.asm: Likewise.
27261         * config/i386/sol2-gc1.asm: Likewise.
27262         * config/i386/tmmintrin.h: Likewise.
27263         * config/i386/unix.h: Likewise.
27264         * config/i386/w32-unwind.h: Likewise.
27265         * config/i386/wmmintrin.h: Likewise.
27266         * config/i386/x86-64.h: Likewise.
27267         * config/i386/x86intrin.h: Likewise.
27268         * config/i386/xmmintrin.h: Likewise.
27269         * config/ia64/crtbegin.asm: Likewise.
27270         * config/ia64/crtend.asm: Likewise.
27271         * config/ia64/crtfastmath.c: Likewise.
27272         * config/ia64/crti.asm: Likewise.
27273         * config/ia64/crtn.asm: Likewise.
27274         * config/ia64/fde-glibc.c: Likewise.
27275         * config/ia64/lib1funcs.asm: Likewise.
27276         * config/ia64/linux-unwind.h: Likewise.
27277         * config/ia64/quadlib.c: Likewise.
27278         * config/ia64/unwind-ia64.c: Likewise.
27279         * config/linux.h: Likewise.
27280         * config/m32c/m32c-lib1.S: Likewise.
27281         * config/m32c/m32c-lib2-trapv.c: Likewise.
27282         * config/m32c/m32c-lib2.c: Likewise.
27283         * config/m32r/initfini.c: Likewise.
27284         * config/m68hc11/larith.asm: Likewise.
27285         * config/m68hc11/m68hc11-crt0.S: Likewise.
27286         * config/m68k/cf.md: Likewise.
27287         * config/m68k/crti.s: Likewise.
27288         * config/m68k/crtn.s: Likewise.
27289         * config/m68k/lb1sf68.asm: Likewise.
27290         * config/m68k/linux-unwind.h: Likewise.
27291         * config/mcore/crti.asm: Likewise.
27292         * config/mcore/crtn.asm: Likewise.
27293         * config/mcore/lib1.asm: Likewise.
27294         * config/mips/linux-unwind.h: Likewise.
27295         * config/mips/loongson.h: Likewise.
27296         * config/mips/mips16.S: Likewise.
27297         * config/mmix/crti.asm: Likewise.
27298         * config/mmix/crtn.asm: Likewise.
27299         * config/pa/fptr.c: Likewise.
27300         * config/pa/hpux-unwind.h: Likewise.
27301         * config/pa/lib2funcs.asm: Likewise.
27302         * config/pa/linux-atomic.c: Likewise.
27303         * config/pa/linux-unwind.h: Likewise.
27304         * config/pa/milli64.S: Likewise.
27305         * config/pa/quadlib.c: Likewise.
27306         * config/pa/stublib.c: Likewise.
27307         * config/picochip/libgccExtras/adddi3.asm: Likewise.
27308         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
27309         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
27310         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
27311         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
27312         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
27313         * config/picochip/libgccExtras/divmod15.asm: Likewise.
27314         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
27315         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
27316         * config/picochip/libgccExtras/longjmp.asm: Likewise.
27317         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
27318         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
27319         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
27320         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
27321         * config/picochip/libgccExtras/setjmp.asm: Likewise.
27322         * config/picochip/libgccExtras/subdi3.asm: Likewise.
27323         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
27324         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
27325         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
27326         * config/rs6000/750cl.h: Likewise.
27327         * config/rs6000/altivec.h: Likewise.
27328         * config/rs6000/biarch64.h: Likewise.
27329         * config/rs6000/crtresfpr.asm: Likewise.
27330         * config/rs6000/crtresgpr.asm: Likewise.
27331         * config/rs6000/crtresxfpr.asm: Likewise.
27332         * config/rs6000/crtresxgpr.asm: Likewise.
27333         * config/rs6000/crtsavfpr.asm: Likewise.
27334         * config/rs6000/crtsavgpr.asm: Likewise.
27335         * config/rs6000/darwin-asm.h: Likewise.
27336         * config/rs6000/darwin-fallback.c: Likewise.
27337         * config/rs6000/darwin-fpsave.asm: Likewise.
27338         * config/rs6000/darwin-ldouble.c: Likewise.
27339         * config/rs6000/darwin-tramp.asm: Likewise.
27340         * config/rs6000/darwin-unwind.h: Likewise.
27341         * config/rs6000/darwin-vecsave.asm: Likewise.
27342         * config/rs6000/darwin-world.asm: Likewise.
27343         * config/rs6000/e500crtres32gpr.asm: Likewise.
27344         * config/rs6000/e500crtres64gpr.asm: Likewise.
27345         * config/rs6000/e500crtres64gprctr.asm: Likewise.
27346         * config/rs6000/e500crtrest32gpr.asm: Likewise.
27347         * config/rs6000/e500crtrest64gpr.asm: Likewise.
27348         * config/rs6000/e500crtresx32gpr.asm: Likewise.
27349         * config/rs6000/e500crtresx64gpr.asm: Likewise.
27350         * config/rs6000/e500crtsav32gpr.asm: Likewise.
27351         * config/rs6000/e500crtsav64gpr.asm: Likewise.
27352         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
27353         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
27354         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
27355         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
27356         * config/rs6000/eabi-ci.asm: Likewise.
27357         * config/rs6000/eabi-cn.asm: Likewise.
27358         * config/rs6000/eabi.asm: Likewise.
27359         * config/rs6000/linux-unwind.h: Likewise.
27360         * config/rs6000/linux64.h: Likewise.
27361         * config/rs6000/paired.h: Likewise.
27362         * config/rs6000/paired.md: Likewise.
27363         * config/rs6000/ppc64-fp.c: Likewise.
27364         * config/rs6000/ppu_intrinsics.h: Likewise.
27365         * config/rs6000/rs6000.h: Likewise.
27366         * config/rs6000/si2vmx.h: Likewise.
27367         * config/rs6000/sol-ci.asm: Likewise.
27368         * config/rs6000/sol-cn.asm: Likewise.
27369         * config/rs6000/spe.h: Likewise.
27370         * config/rs6000/spu2vmx.h: Likewise.
27371         * config/rs6000/sysv4.h: Likewise.
27372         * config/rs6000/tramp.asm: Likewise.
27373         * config/rs6000/vec_types.h: Likewise.
27374         * config/s390/linux-unwind.h: Likewise.
27375         * config/s390/tpf-unwind.h: Likewise.
27376         * config/score/crti.asm: Likewise.
27377         * config/score/crtn.asm: Likewise.
27378         * config/sh/crt1.asm: Likewise.
27379         * config/sh/crti.asm: Likewise.
27380         * config/sh/crtn.asm: Likewise.
27381         * config/sh/divtab-sh4-300.c: Likewise.
27382         * config/sh/divtab-sh4.c: Likewise.
27383         * config/sh/divtab.c: Likewise.
27384         * config/sh/lib1funcs-4-300.asm: Likewise.
27385         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
27386         * config/sh/lib1funcs.asm: Likewise.
27387         * config/sh/lib1funcs.h: Likewise.
27388         * config/sh/linux-atomic.asm: Likewise.
27389         * config/sh/linux-unwind.h: Likewise.
27390         * config/sh/shmedia.h: Likewise.
27391         * config/sh/sshmedia.h: Likewise.
27392         * config/sh/ushmedia.h: Likewise.
27393         * config/sparc/crtfastmath.c: Likewise.
27394         * config/sparc/linux-unwind.h: Likewise.
27395         * config/sparc/sol2-c1.asm: Likewise.
27396         * config/sparc/sol2-ci.asm: Likewise.
27397         * config/sparc/sol2-cn.asm: Likewise.
27398         * config/spu/divmodti4.c: Likewise.
27399         * config/spu/divv2df3.c: Likewise.
27400         * config/spu/float_disf.c: Likewise.
27401         * config/spu/float_unsdidf.c: Likewise.
27402         * config/spu/float_unsdisf.c: Likewise.
27403         * config/spu/float_unssidf.c: Likewise.
27404         * config/spu/mfc_multi_tag_release.c: Likewise.
27405         * config/spu/mfc_multi_tag_reserve.c: Likewise.
27406         * config/spu/mfc_tag_release.c: Likewise.
27407         * config/spu/mfc_tag_reserve.c: Likewise.
27408         * config/spu/mfc_tag_table.c: Likewise.
27409         * config/spu/multi3.c: Likewise.
27410         * config/spu/spu_internals.h: Likewise.
27411         * config/spu/spu_intrinsics.h: Likewise.
27412         * config/spu/spu_mfcio.h: Likewise.
27413         * config/spu/vec_types.h: Likewise.
27414         * config/spu/vmx2spu.h: Likewise.
27415         * config/stormy16/stormy16-lib2.c: Likewise.
27416         * config/svr4.h: Likewise.
27417         * config/sync.c: Likewise.
27418         * config/v850/lib1funcs.asm: Likewise.
27419         * config/vxlib-tls.c: Likewise.
27420         * config/vxlib.c: Likewise.
27421         * config/vxworks-dummy.h: Likewise.
27422         * config/xtensa/crti.asm: Likewise.
27423         * config/xtensa/crtn.asm: Likewise.
27424         * config/xtensa/ieee754-df.S: Likewise.
27425         * config/xtensa/ieee754-sf.S: Likewise.
27426         * config/xtensa/lib1funcs.asm: Likewise.
27427         * config/xtensa/lib2funcs.S: Likewise.
27428         * config/xtensa/linux-unwind.h: Likewise.
27429         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
27430         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
27431         * coretypes.h: Likewise.
27432         * crtstuff.c: Likewise.
27433         * defaults.h: Likewise.
27434         * dwarf2.h: Likewise.
27435         * emutls.c: Likewise.
27436         * gbl-ctors.h: Likewise.
27437         * gcov-io.h: Likewise.
27438         * ginclude/float.h: Likewise.
27439         * ginclude/iso646.h: Likewise.
27440         * ginclude/stdarg.h: Likewise.
27441         * ginclude/stdbool.h: Likewise.
27442         * ginclude/stddef.h: Likewise.
27443         * ginclude/stdfix.h: Likewise.
27444         * ginclude/stdint-gcc.h: Likewise.
27445         * ginclude/tgmath.h: Likewise.
27446         * gthr-aix.h: Likewise.
27447         * gthr-dce.h: Likewise.
27448         * gthr-gnat.c: Likewise.
27449         * gthr-gnat.h: Likewise.
27450         * gthr-lynx.h: Likewise.
27451         * gthr-mipssde.h: Likewise.
27452         * gthr-nks.h: Likewise.
27453         * gthr-posix.c: Likewise.
27454         * gthr-posix.h: Likewise.
27455         * gthr-posix95.h: Likewise.
27456         * gthr-rtems.h: Likewise.
27457         * gthr-single.h: Likewise.
27458         * gthr-solaris.h: Likewise.
27459         * gthr-tpf.h: Likewise.
27460         * gthr-vxworks.h: Likewise.
27461         * gthr-win32.h: Likewise.
27462         * gthr.h: Likewise.
27463         * libgcc2.c: Likewise.
27464         * libgcc2.h: Likewise.
27465         * libgcov.c: Likewise.
27466         * tsystem.h: Likewise.
27467         * typeclass.h: Likewise.
27468         * unwind-c.c: Likewise.
27469         * unwind-compat.h: Likewise.
27470         * unwind-dw2-fde-compat.c: Likewise.
27471         * unwind-dw2-fde-darwin.c: Likewise.
27472         * unwind-dw2-fde-glibc.c: Likewise.
27473         * unwind-dw2-fde.c: Likewise.
27474         * unwind-dw2-fde.h: Likewise.
27475         * unwind-dw2.c: Likewise.
27476         * unwind-dw2.h: Likewise.
27477         * unwind-generic.h: Likewise.
27478         * unwind-pe.h: Likewise.
27479         * unwind-sjlj.c: Likewise.
27480         * unwind.inc: Likewise.
27481         * config/arm/neon-gen.ml: Change generated copyright header to
27482         refer to version 3 of the GNU General Public License with
27483         version 3.1 of the GCC Runtime Library Exception and to point
27484         readers at the COPYING3 and COPYING3.RUNTIME files and the
27485         FSF's license web page.
27486         * config/arm/arm_neon.h: Regenerate.
27487
27488 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
27489
27490         * config/cris/cris.md: Change copyright header to refer to version
27491         3 of the GNU General Public License.
27492         * doc/install.texi2html: Change copyright header to refer to version
27493         3 of the GNU General Public License and to point readers at the
27494         COPYING3 file and the FSF's license web page.
27495         * config/vax/linux.h: Likewise.
27496
27497 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27498
27499         * config/i386/i386.md (cmpcc): New.
27500         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
27501         (sync_compare_and_swap_cc*): Delete.
27502
27503         * config/s390/s390.c (s390_compare_emitted): Remove.
27504         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
27505         s390_compare_emitted used to be handled.  Assert that modes match.
27506         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
27507         refer to sync_compare_and_swap_ccsi.
27508         * config/s390/s390.h (s390_compare_emitted): Remove.
27509         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
27510         instead of s390_compare_emitted.
27511         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
27512         instead of s390_compare_emitted.
27513         * config/s390/s390.md (cmpcc): New.
27514         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
27515         CC_REGNUM, do not pretend it's set.
27516         (sync_compare_and_swap_cc*): Delete.
27517         * config/s390/predicates.md (cc_reg_operand): New.
27518
27519         * expr.c (sync_compare_and_swap_cc): Delete.
27520         * optabs.h (sync_compare_and_swap_cc): Delete.
27521         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
27522         is being used with can_compare_p.
27523         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
27524         (find_cc_set): New.
27525         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
27526         look for a MODE_CC set instead.  Use emit_store_flag.
27527         (expand_compare_and_swap_loop): Likewise, with some additional
27528         complication to avoid a force_reg when useless.  Use
27529         emit_cmp_and_jump_insns.
27530         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
27531         * doc/md.texi (sync_compare_and_swap_cc): Merge with
27532         sync_compare_and_swap documentation.
27533
27534 2009-04-09  Jan Hubicka  <jh@suse.cz>
27535
27536         * except.c (find_prev_try): Break out from ....
27537         (duplicate_eh_regions): ... here; properly update prev_try pointers
27538         when duplication part of tree.
27539         (dump_eh_tree): Improve dumping.
27540         (verify_eh_region): New.
27541         (verify_eh_tree): Use it.
27542
27543 2009-04-06  Richard Guenther  <rguenther@suse.de>
27544
27545         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
27546         &ARRAY addresses by adjusting their types and prepending
27547         a conversion.
27548         * tree-cfg.c (verify_gimple_assign_single): Verify that
27549         addresses are correct.
27550
27551 2009-04-09  Richard Guenther  <rguenther@suse.de>
27552
27553         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
27554         indices into an array reference if possible.
27555         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
27556         Fold POINTER_PLUS_EXPR statements with invariant address.
27557
27558 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
27559
27560         PR target/39634
27561         * config.gcc (powerpc64-*-linux*): Always build biarch.
27562
27563 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
27564
27565         PR c/39613
27566         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
27567         it and pedwarn if this results in an INTEGER_CST.
27568
27569 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27570
27571         * doc/install.texi: Update minimum GMP version.  Remove obsolete
27572         text in MPFR section.
27573
27574 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
27575
27576         * dwarf2out.c (class_scope_p): New static inline.
27577         (class_or_namespace_scope_p): Use it.
27578         (gen_variable_die): Use DW_TAG_member tag for static data member
27579         declarations instead of DW_TAG_variable.
27580
27581         PR middle-end/39573
27582         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
27583         variables.
27584
27585 2009-04-08  Richard Guenther  <rguenther@suse.de>
27586
27587         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
27588         valueize random data.
27589
27590 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
27591
27592         * config.gcc (aix tm_file):  Add aix-stdint.h.
27593         (aix tm clause use_gcc_stdint):  Set to wrap.
27594         * config/rs6000/aix-stdint.h:  New file.
27595
27596 2009-04-08  Richard Guenther  <rguenther@suse.de>
27597
27598         PR middle-end/36291
27599         * tree-dfa.c (add_referenced_var): Do not recurse into
27600         global initializers.
27601         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
27602         exposed variables.
27603         (fold_const_aggregate_ref): Likewise.
27604
27605 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27606
27607         * recog.c (ordered_comparison_operator): New.
27608         * gensupport.c (std_preds): Add it.
27609         * doc/md.texi (Machine-Independent Predicates): Document it.
27610
27611 2009-04-08  Jan Hubicka  <jh@suse.cz>
27612
27613         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
27614         * function.h (rtl_eh): Remove exception_handler_label_map.
27615         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
27616         remove_exception_handler_label, for_each_eh_label_1): Remove.
27617         (rtl_remove_unreachable_regions): Remove.
27618         (convert_from_eh_region_ranges): Do not remove unreachable regions.
27619         (find_exception_handler_labels): Don't build the hashtable.
27620         (maybe_remove_eh_handler): Remove.
27621         (for_each_eh_label): Rewrite to walk the tree.
27622         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
27623         * except.h (maybe_remove_eh_handler): Remove.
27624         * passes.c (init_optimization_passes): Schedule second EH cleanup
27625         before out-of-ssa.
27626         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
27627         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
27628
27629 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27630
27631         * genoutput.c (validate_optab_operands): New.
27632         (gen_insn, gen_expand): Call it.
27633
27634         * genflags.c (gen_insn): Detect misused iterators.
27635         (main): Pass line_no to gen_insn, exit with status 1 on error.
27636
27637         * genextract.c (line_no): Make global.
27638         (VEC_safe_set_locstr): Change assertion to error message.
27639         (main): Exit with status 1 on error.
27640
27641 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
27642
27643         PR c/39614
27644         PR c/39673
27645         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27646         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27647         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
27648         * c-convert.c (convert): Do not call fold on results of conversion
27649         functions when the result is a C_MAYBE_CONST_EXPR.
27650         * c-parser.c (c_parser_postfix_expression): Do not fold condition
27651         of __builtin_choose_expr.
27652         * c-typeck.c (remove_c_maybe_const_expr): New.
27653         (build_unary_op, build_conditional_expr, build_compound_expr,
27654         build_binary_op, c_objc_common_truthvalue_conversion): Call
27655         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
27656         integer operands.
27657
27658 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
27659
27660         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
27661         CODE to produce a new one. Add a prototype to use fold_convert_const
27662
27663 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
27664
27665         PR bootstrap/39660
27666         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
27667         mix declarations and code.
27668
27669 2009-04-08  Ben Elliston  <bje@au.ibm.com>
27670
27671         * gcc.c: Replace `CC' with `GCC' throughout.
27672
27673 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
27674
27675         * doc/invoke.texi: Document Atom support.
27676
27677 2009-04-07  Jason Merrill  <jason@redhat.com>
27678
27679         PR c++/25185
27680         * c-common.h, c-common.c: Add flag_pretty_templates.
27681         * c-opts.c (c_common_handle_option): Set it.
27682         * c.opt: Add -fno-pretty-templates.
27683         * doc/invoke.texi (C++ Dialect Options): Likewise.
27684
27685 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
27686
27687         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
27688         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
27689         (ia64_expand_builtin): Likewise.
27690
27691 2009-04-07  Martin Jambor  <mjambor@suse.cz>
27692
27693         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
27694         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
27695         ADDR_EXPRS are include too.
27696
27697 2009-04-07  Richard Guenther  <rguenther@suse.de>
27698
27699         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
27700         decls are only used if passes as parameters or if they are
27701         local statics and the call is not to a builtin.
27702         (call_may_clobber_ref_p_1): Likewise.
27703
27704 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27705
27706         * expr.c (do_store_flag): Remove last argument.  Simplify code
27707         to avoid duplication of tests already done by can_compare_p.
27708         (expand_expr_real_1): Adjust caller.
27709
27710 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27711
27712         * optabs.c (can_compare_p): Test the predicate of a
27713         cbranch and cstore pattern.
27714
27715 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27716
27717         * expr.c (convert_move): Use emit_store_flag instead of
27718         "emulating" it.
27719
27720 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27721
27722         * config/i386/i386.c (ix86_compare_emitted): Remove.
27723         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
27724         ix86_compare_op0 like ix86_compare_emitted used to be handled.
27725         * config/i386/i386.h (ix86_compare_emitted): Remove.
27726         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
27727         instead of ix86_compare_emitted.
27728         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
27729
27730 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
27731
27732         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
27733         Add t-sysroot-suffix to tmake_file.
27734         * config/print-sysroot-suffix.sh: New file.
27735         * config/t-sysroot-suffix: New file.
27736
27737 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27738
27739         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
27740         as the latter produces a warning when the target does not support
27741         infinity.
27742
27743 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27744
27745         * dfp.c: Replace type punning assignments with memcpy throughout.
27746         * Makefile.in (dfp.o-warn): Remove.
27747
27748 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
27749
27750         PR target/39634
27751         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
27752         Include soft-fp/t-softfp after rs6000/t-linux64.
27753
27754 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
27755
27756         * stor-layout.c (set_sizetype): Use the full precision of their
27757         machine mode for bitsize types.
27758
27759 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27760
27761         * config/i386/i386.md: Revert 2 accidental checkins.
27762
27763 2009-04-06  Joey Ye  <joey.ye@intel.com>
27764             Xuepeng Guo  <xuepeng.guo@intel.com>
27765             H.J. Lu  <hongjiu.lu@intel.com>
27766
27767         Atom pipeline model, tuning and insn selection.
27768         * config.gcc (atom): Add atom config options and target.
27769
27770         * config/i386/atom.md: New.
27771
27772         * config/i386/i386.c (atom_cost): New cost.
27773         (m_ATOM): New macro flag.
27774         (initial_ix86_tune_features): Set m_ATOM.
27775         (x86_accumulate_outgoing_args): Likewise.
27776         (x86_arch_always_fancy_math_387): Likewise.
27777         (processor_target): Add Atom cost.
27778         (cpu_names): Add Atom cpu name.
27779         (override_options): Set Atom ISA.
27780         (ix86_issue_rate): New case PROCESSOR_ATOM.
27781         (ix86_adjust_cost): Likewise.
27782
27783         * config/i386/i386.h (TARGET_ATOM): New target macro.
27784         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
27785         (TARGET_OPT_AGU): New target option.
27786         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
27787         (processor_type): Add PROCESSOR_ATOM.
27788
27789         * config/i386/i386.md (cpu): Add new value "atom".
27790         (use_carry, movu): New attr.
27791         (atom.md): Include atom.md.
27792         (adddi3_carry_rex64): Set attr "use_carry".
27793         (addqi3_carry): Likewise.
27794         (addhi3_carry): Likewise.
27795         (addsi3_carry): Likewise.
27796         (*addsi3_carry_zext): Likewise.
27797         (subdi3_carry_rex64): Likewise.
27798         (subqi3_carry): Likewise.
27799         (subhi3_carry): Likewise.
27800         (subsi3_carry): Likewise.
27801         (x86_movdicc_0_m1_rex64): Likewise.
27802         (*x86_movdicc_0_m1_se): Likewise.
27803         (x86_movsicc_0_m1): Likewise.
27804         (*x86_movsicc_0_m1_se): Likewise.
27805         (*adddi_1_rex64): Emit add insn as much as possible.
27806         (*addsi_1): Likewise.
27807         (return_internal): Set atom_unit.
27808         (return_internal_long): Likewise.
27809         (return_pop_internal): Likewise.
27810         (*rcpsf2_sse): Set atom_sse_attr attr.
27811         (*qrt<mode>2_sse): Likewise.
27812         (*prefetch_sse): Likewise.
27813
27814         * config/i386/i386-c.c (ix86_target_macros_internal): New case
27815         PROCESSOR_ATOM.
27816         (ix86_target_macros_internal): Likewise.
27817
27818         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
27819         (*prefetch_sse_rex): Likewise.
27820         (sse_rcpv4sf2): Likewise.
27821         (sse_vmrcpv4sf2): Likewise.
27822         (sse_sqrtv4sf2): Likewise.
27823         (<sse>_vmsqrt<mode>2): Likewise.
27824         (sse_ldmxcsr): Likewise.
27825         (sse_stmxcsr): Likewise.
27826         (*sse_sfence): Likewise.
27827         (sse2_clflush): Likewise.
27828         (*sse2_mfence): Likewise.
27829         (*sse2_lfence): Likewise.
27830         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
27831         (<sse>_movup<ssemodesuffixf2c>): Likewise.
27832         (avx_movdqu<avxmodesuffix>): Likewise.
27833         (avx_lddqu<avxmodesuffix>): Likewise.
27834         (sse2_movntv2di): Change attr "type" to "ssemov".
27835         (sse2_movntsi): Likewise.
27836         (rsqrtv8sf2): Change attr "type" to "sseadd".
27837         (sse3_addsubv2df3): Set attr "atom_unit".
27838         (sse3_h<plusminus_insn>v4sf3): Likewise.
27839         (*sse2_pmaddwd): Likewise.
27840         (*vec_extractv2di_1_rex64): Likewise.
27841         (*vec_extractv2di_1_avx): Likewise.
27842         (sse2_psadbw): Likewise.
27843         (ssse3_phaddwv8hi3): Likewise.
27844         (ssse3_phaddwv4hi3): Likewise.
27845         (ssse3_phadddv4si3): Likewise.
27846         (ssse3_phadddv2si3): Likewise.
27847         (ssse3_phaddswv8hi3): Likewise.
27848         (ssse3_phaddswv4hi3): Likewise.
27849         (ssse3_phsubwv8hi3): Likewise.
27850         (ssse3_phsubwv4hi3): Likewise.
27851         (ssse3_phsubdv4si3): Likewise.
27852         (ssse3_phsubdv2si3): Likewise.
27853         (ssse3_phsubswv8hi3): Likewise.
27854         (ssse3_phsubswv4hi3): Likewise.
27855         (ssse3_pmaddubsw128): Likewise.
27856         (sse3_pmaddubsw: Likewise.
27857         (ssse3_palignrti): Likewise.
27858         (ssse3_palignrdi): Likewise.
27859
27860 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
27861
27862         * doc/install.texi (Specific): Fix two cross-references to MinGW.
27863
27864 2009-04-06  Richard Guenther  <rguenther@suse.de>
27865
27866         PR tree-optimization/28868
27867         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
27868         of which PHI results we inserted.
27869         (insert_into_preds_of_block): Record inserted PHIs.
27870         (eliminate): Eliminate redundant PHI nodes.
27871         (init_pre): Init inserted_phi_names.
27872
27873 2009-04-06  Richard Guenther  <rguenther@suse.de>
27874
27875         PR tree-optimization/39643
27876         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
27877         IMAGPART_EXPRs of complex constants.
27878         (execute_fold_all_builtins): If we folded a call queue
27879         TODO_update_address_taken.
27880
27881 2009-04-06  Jan Hubicka  <jh@suse.cz>
27882
27883         PR middle-end/39659
27884         * except.c (remove_unreachable_regions): Propagate may_contain_throw
27885         flag.
27886
27887 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
27888
27889         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
27890         delay slot.
27891         (ic_invalidate_array): Likewise.
27892
27893 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
27894
27895         * calls.c (emit_library_call_value_1): Fix a problem with parameter
27896         alignment for library calls.
27897
27898 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
27899
27900         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
27901         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
27902         * config/i386/mingw-stdint.h:  New file.
27903
27904 2009-04-05  Richard Guenther  <rguenther@suse.de>
27905
27906         PR tree-optimization/39648
27907         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
27908         our &A vs. &A[0] IL deficiencies.
27909
27910 2009-04-04  Jan Hubicka  <jh@suse.cz>
27911
27912         * except.c (sjlj_find_directly_reachable_regions): Be ready for
27913         removed toplevel regions.
27914         (sjlj_mark_call_sites): Likewise.
27915
27916 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
27917
27918         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
27919         (cygwin tm clause use_gcc_stdint):  Set to wrap.
27920         * config/i386/cygwin-stdint.h:  New file.
27921
27922 2009-04-04  Richard Guenther  <rguenther@suse.de>
27923
27924         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
27925         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
27926         single-argument PHIs if we are in loop-closed SSA form.
27927         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
27928         for the pre-condition.
27929         (slpeel_tree_peel_loop_to_edge): Likewise.
27930         (vect_build_loop_niters): Take an optional sequence to append stmts.
27931         (vect_generate_tmps_on_preheader): Likewise.
27932         (vect_do_peeling_for_loop_bound): Take extra guards for the
27933         pre-condition.
27934         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
27935         the cost model check.
27936         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
27937         guards if we are going to peel.  Do not apply versioning in that case.
27938         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
27939         (vect_do_peeling_for_loop_bound): Likewise.
27940         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
27941         loop bound only record extra pre-conditions, do not apply loop
27942         versioning.
27943
27944 2009-04-04  Richard Guenther  <rguenther@suse.de>
27945
27946         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
27947         renaming code.
27948
27949 2009-04-04  Jan Hubicka  <jh@suse.cz>
27950
27951         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27952         last_basic_block for size of bb->index indexed array.
27953         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
27954         compute_out, link_btr_uses, build_btr_def_use_webs,
27955         build_btr_def_use_webs, migrate_btr_defs): Likewise.
27956
27957 2009-04-04  Jan Hubicka  <jh@suse.cz>
27958
27959         * except.c (remove_eh_handler_and_replace): Break out from ...
27960         (remove_eh_handler): ... here.
27961         (bring_to_root): New function.
27962         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
27963         handled ones, bring others to root of tree.
27964
27965 2009-04-04  Jan Hubicka  <jh@suse.cz>
27966
27967         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
27968         (all_phis_safe_to_merge): New function.
27969         (update_info): New structure.
27970         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
27971         (cleanup_empty_eh): Update SSA if possible.
27972
27973 2009-04-04  Richard Guenther  <rguenther@suse.de>
27974
27975         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
27976         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
27977         (append_vuse): Likewise.
27978
27979 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
27980
27981         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
27982         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
27983         instead of REG_UNSAVED for DW_CFA_undefined.
27984         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
27985         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
27986         outermost frame.
27987
27988 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
27989
27990         PR target/39501
27991         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
27992
27993 2009-04-04  Richard Guenther  <rguenther@suse.de>
27994
27995         PR tree-optimization/8781
27996         PR tree-optimization/37892
27997         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
27998         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
27999         (valueize_refs): Call it for *& valueizations.
28000         (shared_reference_ops_from_ref): Rename to ...
28001         (valueize_shared_reference_ops_from_ref): ... this and valueize.
28002         (shared_reference_ops_from_call): Rename to ...
28003         (valueize_shared_reference_ops_from_call): ... this and valueize.
28004         (vn_reference_lookup): Update.
28005         (visit_reference_op_call): Likewise.
28006         * tree-ssa-pre.c (phi_translate_1): Fold *&.
28007         (eliminate): Value-replace the call address in call statements.
28008
28009 2009-04-04  Richard Guenther  <rguenther@suse.de>
28010
28011         PR tree-optimization/39636
28012         * tree-ssa-forwprop.c
28013         (forward_propagate_addr_into_variable_array_index): Check for
28014         GIMPLE_ASSIGN before accessing the rhs code.
28015
28016 2009-04-03  Jason Merrill  <jason@redhat.com>
28017
28018         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
28019
28020 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
28021
28022         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
28023         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
28024         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
28025         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
28026         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
28027         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
28028         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
28029         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
28030         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
28031         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
28032         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
28033         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
28034         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
28035         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
28036         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
28037         Use fr_reg_or_fp01_operand instead of fr_register_operand
28038
28039         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
28040         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
28041         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
28042
28043 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
28044
28045         PR rtl-optimization/39607
28046         PR rtl-optimization/39631
28047
28048         Revert:
28049
28050         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
28051         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
28052         instead of DF_LR_OUT.
28053         * ira-lives.c (process_bb_node_lives): Ditto.
28054         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
28055         instead of DF_LR_{OUT,IN}.
28056         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
28057         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
28058
28059 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
28060
28061         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
28062         (execute_lower_omp): Always run but take the short way out if -fopenmp
28063         is not given.
28064         (gate_lower_omp): Remove, forcing the pass manager to always run the
28065         pass and always set PROP_gimple_lomp.
28066         (pass_lower_omp): Remove gate function.
28067         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
28068         PROP_trees.  Instead, require it.
28069         * ipa-cp.c (pass_ipa_cp): Likewise.
28070         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
28071         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
28072         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
28073         and PROP_gimple_leh.
28074
28075 2009-04-03  Richard Guenther  <rguenther@suse.de>
28076
28077         PR middle-end/13146
28078         PR tree-optimization/23940
28079         PR tree-optimization/33237
28080         PR middle-end/33974
28081         PR middle-end/34093
28082         PR tree-optimization/36201
28083         PR tree-optimization/36230
28084         PR tree-optimization/38049
28085         PR tree-optimization/38207
28086         PR tree-optimization/38230
28087         PR tree-optimization/38301
28088         PR tree-optimization/38585
28089         PR middle-end/38895
28090         PR tree-optimization/38985
28091         PR tree-optimization/39299
28092         * tree-ssa-structalias.h: Remove.
28093         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
28094         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
28095         (struct vuse_element_d): Remove.
28096         (struct vuse_vec_d): Likewise.
28097         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
28098         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
28099         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
28100         VUSE_ELEMENT_VAR): Likewise.
28101         (struct voptype_d): Likewise.
28102         (NUM_VOP_FREE_BUCKETS): Likewise.
28103         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
28104         (struct stmt_operands_d): Remove.
28105         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
28106         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
28107         VDEF_NUM, VDEF_VECT): Likewise.
28108         (copy_virtual_operands): Remove.
28109         (operand_build_cmp): Likewise.
28110         (create_ssa_artificial_load_stmt): Likewise.
28111         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
28112         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
28113         vuse_index and mayuse_index members.  Pack and move done and iter_type
28114         members to the front.
28115         (SSA_OP_VMAYUSE): Remove.
28116         (SSA_OP_VIRTUAL_USES): Adjust.
28117         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
28118         (unlink_stmt_vdef): Declare.
28119         (add_to_addressable_set): Remove.
28120         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
28121         (vrp_visit_stmt): Likewise.
28122         * doc/tree-ssa.texi (Alias analysis): Update.
28123         * doc/invoke.texi (max-aliased-vops): Remove docs.
28124         (avg-aliased-vops): Likewise.
28125         * tree-into-ssa.c (syms_to_rename): Remove.
28126         (need_to_update_vops_p): Likewise.
28127         (need_to_initialize_update_ssa_p): Rename to ...
28128         (update_ssa_initialized_fn): ... this.  Track function we are
28129         initialized for.
28130         (symbol_marked_for_renaming): Simplify.
28131         (add_new_name_mapping): Do not set need_to_update_vops_p.
28132         (dump_currdefs): Use SYMS_TO_RENAME.
28133         (rewrite_update_stmt): Always walk all uses/defs.
28134         (dump_update_ssa): Adjust.
28135         (init_update_ssa): Take function argument.  Track what we are
28136         initialized for.
28137         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
28138         (create_new_def_for): Initialize for cfun, assert we are initialized
28139         for cfun.
28140         (mark_sym_for_renaming): Simplify.
28141         (mark_set_for_renaming): Do not initialize update-ssa.
28142         (need_ssa_update_p): Simplify.  Take function argument.
28143         (name_mappings_registered_p): Assert we ask for the correct function.
28144         (name_registered_for_update_p): Likewise.
28145         (ssa_names_to_replace): Likewise.
28146         (release_ssa_name_after_update_ssa): Likewise.
28147         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
28148         (dump_decl_set): Do not print a newline.
28149         (debug_decl_set): Do it here.
28150         (dump_update_ssa): And here.
28151         * tree-ssa-loop-im.c (move_computations): Adjust.
28152         (movement_possibility): Likewise.
28153         (determine_max_movement): Likewise.
28154         (gather_mem_refs_stmt): Likewise.
28155         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
28156         or NAME_MEMORY_TAG.
28157         * tree-complex.c (update_all_vops): Remove.
28158         (expand_complex_move): Adjust.
28159         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
28160         Simplify test for memory referencing statement.  Exclude
28161         non-invariant ADDR_EXPRs.
28162         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
28163         * tree-loop-distribution.c (generate_memset_zero): Adjust.
28164         (rdg_flag_uses): Likewise.
28165         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
28166         related code.
28167         (tree_optimize_tail_calls_1): Also split the
28168         edge from the entry block if we have degenerate PHI nodes in
28169         the first basic block.
28170         * tree.c (init_ttree): Remove memory-tag related code.
28171         (tree_code_size): Likewise.
28172         (tree_node_structure): Likewise.
28173         (build7_stat): Re-write to be build6_stat.
28174         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
28175         (SSA_VAR_P): Adjust.
28176         (struct tree_memory_tag): Remove.
28177         (struct tree_memory_partition_tag): Likewise.
28178         (union tree_node): Adjust.
28179         (build7): Re-write to be build6.
28180         * tree-pass.h (pass_reset_cc_flags): Remove.
28181         (TODO_update_address_taken): New flag.
28182         (pass_simple_dse): Remove.
28183         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
28184         * params.h (MAX_ALIASED_VOPS): Remove.
28185         (AVG_ALIASED_VOPS): Likewise.
28186         * omp-low.c (expand_omp_taskreg): Update SSA form.
28187         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
28188         aliases the lhs in a copy stmt.
28189         * tree-ssa-dse.c (struct address_walk_data): Remove.
28190         (memory_ssa_name_same): Likewise.
28191         (memory_address_same): Likewise.
28192         (get_kill_of_stmt_lhs): Likewise.
28193         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
28194         unused stores.  Look through PHI nodes into post-dominated regions.
28195         (dse_optimize_stmt): Simplify.  Properly remove stores.
28196         (tree_ssa_dse): Compute dominators.
28197         (execute_simple_dse): Remove.
28198         (pass_simple_dse): Likewise.
28199         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
28200         gimple_loaded_syms and gimple_stored_syms computation.
28201         * toplev.c (dump_memory_report): Dump alias and pta stats.
28202         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
28203         (vn_reference_eq): Likewise.
28204         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
28205         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
28206         valueize_vuses): Remove.
28207         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
28208         (get_def_ref_stmt_vuse): ... this.
28209         (vn_reference_lookup_2): New function.
28210         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
28211         walking equivalent vuses.  Simplify.
28212         (vn_reference_lookup): Likewise.
28213         (vn_reference_insert): Likewise.
28214         (vn_reference_insert_pieces): Likewise.
28215         (visit_reference_op_call): Simplify.
28216         (visit_reference_op_load): Likewise.
28217         (visit_reference_op_store): Likewise.
28218         (init_scc_vn): Remove shared_lookup_vuses initialization.
28219         (free_scc_vn): Remove shared_lookup_vuses freeing.
28220         (sort_vuses, sort_vuses_heap): Remove.
28221         (get_ref_from_reference_ops): Export.
28222         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
28223         vector with single vuse pointer.
28224         (vn_reference_lookup_pieces, vn_reference_lookup,
28225         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
28226         (shared_vuses_from_stmt): Remove.
28227         (get_ref_from_reference_ops): Declare.
28228         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
28229         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
28230         memory-tag related code.
28231         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
28232         (likely_value): Add comment, skip static-chain of call statements.
28233         (surely_varying_stmt_p): Adjust.
28234         (gimplify_and_update_call_from_tree): Likewise.
28235         (execute_fold_all_builtins): Do not rebuild alias info.
28236         (gimplify_and_update_call_from_tree): Properly update VOPs.
28237         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
28238         (copy_ref_info): Remove memory-tag related code.
28239         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
28240         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
28241         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
28242         computation.
28243         * tree-ssa-dom.c (gimple_p): Remove typedef.
28244         (eliminate_redundant_computations): Adjust.
28245         (record_equivalences_from_stmt): Likewise.
28246         (avail_expr_hash): Likewise.
28247         (avail_expr_eq): Likewise.
28248         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
28249         (stmt_makes_single_load): Likewise.
28250         (stmt_makes_single_store): Likewise.
28251         * tree-ssa-alias.c: Rewrite completely.
28252         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
28253         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
28254         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
28255         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
28256         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
28257         Remove public functions.
28258         (pass_reset_cc_flags): Remove.
28259         (pass_build_alias): Move ...
28260         * tree-ssa-structalias.c (pass_build_alias): ... here.
28261         * tree-ssa-alias.c (may_be_aliased): Move ...
28262         * tree-flow-inline.h (may_be_aliased): ... here.
28263         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
28264         count_uses_and_derefs): Move ...
28265         * gimple.c: ... here.
28266         * gimple.h (count_uses_and_derefs): Declare.
28267         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
28268         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
28269         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
28270         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
28271         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
28272         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
28273         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
28274         New functions.
28275         * tree-dfa.c (refs_may_alias_p): Move ...
28276         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
28277         * tree-ssa-alias.h: New file.
28278         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
28279         (statement_sink_location): Likewise.
28280         * opts.c (decode_options): Do not adjust max-aliased-vops or
28281         avg-aliased-vops values.
28282         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
28283         (TV_CALL_CLOBBER): Likewise.
28284         (TV_FLOW_SENSITIVE): Likewise.
28285         (TV_FLOW_INSENSITIVE): Likewise.
28286         (TV_MEMORY_PARTITIONING): Likewise.
28287         (TV_ALIAS_STMT_WALK): New timevar.
28288         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
28289         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
28290         (get_address_description): Remove memory-tag related code.
28291         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
28292         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
28293         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
28294         and immediate uses in statements.  Document.
28295         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
28296         (dump_symbols): Remove.
28297         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
28298         * alias.c (get_deref_alias_set): New function split out from ...
28299         (get_alias_set): ... here.
28300         * alias.h (get_deref_alias_set): Declare.
28301         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
28302         type parameter.  Remove restrict pointer handling.  Create a
28303         ref-all pointer in case type-based alias sets do not conflict.
28304         (vect_analyze_data_refs): Remove SMT related code.
28305         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
28306         (vectorizable_load): Likewise.
28307         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
28308         (DR_SYMBOL_TAG, DR_VOPS): Remove.
28309         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
28310         Ignore vops and SMTs.
28311         (dr_analyze_alias): Likewise..
28312         (free_data_ref): Likewise.
28313         (create_data_ref): Likewise.
28314         (analyze_all_data_dependences): Likewise.
28315         (get_references_in_stmt): Adjust.
28316         * tree-flow-inline.h (gimple_aliases_computed_p,
28317         gimple_addressable_vars, gimple_call_clobbered_vars,
28318         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
28319         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
28320         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
28321         gimple_mem_ref_stats): Remove.
28322         (gimple_vop): New function.
28323         (op_iter_next_use): Remove vuses and mayuses cases.
28324         (op_iter_next_def): Remove vdefs case.
28325         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
28326         (clear_and_done_ssa_iter): Do not set removed fields.
28327         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
28328         Assert we are not iterating over vuses or vdefs if not also
28329         iterating over uses or defs.
28330         (op_iter_init_use): Likewise.
28331         (op_iter_init_def): Likewise.
28332         (op_iter_next_vdef): Remove.
28333         (op_iter_next_mustdef): Likewise.
28334         (op_iter_init_vdef): Likewise.
28335         (compare_ssa_operands_equal): Likewise.
28336         (link_use_stmts_after): Handle vuse operand.
28337         (is_call_used): Use is_call_clobbered.
28338         (is_call_clobbered): Global variables are always call clobbered,
28339         query the call-clobbers bitmap.
28340         (mark_call_clobbered): Ignore global variables.
28341         (clear_call_clobbered): Likewise.
28342         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
28343         virtual operands sanity check.
28344         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
28345         Remove.
28346         (TARGET_MEM_REF): Remove TMR_TAG operand.
28347         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
28348         Remove call-clobber related code.
28349         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
28350         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
28351         partitions or escape reason.
28352         (get_single_def_stmt, get_single_def_stmt_from_phi,
28353         get_single_def_stmt_with_phi): Remove.
28354         (dump_referenced_vars): Tidy.
28355         (get_ref_base_and_extent): Allow bare decls.
28356         (collect_dfa_stats): Adjust.
28357         * graphite.c (rename_variables_in_stmt): Adjust.
28358         (graphite_copy_stmts_from_block): Likewise.
28359         (translate_clast): Likewise.
28360         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
28361         (EXPR_DIES): New.
28362         (translate_vuse_through_block): Use the oracle.
28363         (phi_translate_1): Adjust.
28364         (value_dies_in_block_x): Use the oracle.  Cache the outcome
28365         in EXPR_DIES.
28366         (valid_in_sets): Check if the VUSE for
28367         a REFERENCE is available.
28368         (eliminate): Do not remove stmts during elimination,
28369         instead queue and remove them afterwards.
28370         (do_pre): Do not rebuild alias info.
28371         (pass_pre): Run TODO_rebuild_alias before PRE.
28372         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
28373         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
28374         (mark_all_v_defs_stmt): Remove.
28375         (mark_all_v_defs_seq): Adjust.
28376         (sra_replace): Likewise.
28377         (scalarize_use): Likewise.
28378         (scalarize_copy): Likewise.
28379         (scalarize_init): Likewise.
28380         (scalarize_ldst): Likewise.
28381         (todoflags): Remove.
28382         (tree_sra): Do not rebuild alias info.
28383         (tree_sra_early): Adjust.
28384         (pass_sra): Run TODO_update_address_taken before SRA.
28385         * tree-predcom.c (set_alias_info): Remove.
28386         (prepare_initializers_chain): Do not call it.
28387         (mark_virtual_ops_for_renaming): Adjust.
28388         (mark_virtual_ops_for_renaming_list): Remove.
28389         (initialize_root_vars): Adjust.
28390         (initialize_root_vars_lm): Likewise.
28391         (prepare_initializers_chain): Likewise.
28392         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
28393         (may_propagate_copy_into_stmt): Likewise.
28394         (merge_alias_info): Do nothing for now.
28395         (propagate_tree_value_into_stmt): Adjust.
28396         (stmt_may_generate_copy): Likewise.
28397         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
28398         not mark symbols for renaming.
28399         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
28400         with the same statement, make sure to update the new pointed-to one.
28401         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
28402         call statements, do not mark symbols for renaming.
28403         (mark_operand_necessary): Dump something.
28404         (ref_may_be_aliased): New function.
28405         (mark_aliased_reaching_defs_necessary_1): New helper function.
28406         (mark_aliased_reaching_defs_necessary): Likewise.
28407         (mark_all_reaching_defs_necessary_1): Likewise.
28408         (mark_all_reaching_defs_necessary): Likewise.
28409         (propagate_necessity): Do not process virtual PHIs.  For
28410         non-aliased loads mark all reaching definitions as necessary.
28411         For aliased loads and stores mark the immediate dominating
28412         aliased clobbers as necessary.
28413         (visited): New global static.
28414         (perform_tree_ssa_dce): Free visited bitmap after propagating
28415         necessity.
28416         (remove_dead_phis): Perform simple dead virtual PHI removal.
28417         (remove_dead_stmt): Properly unlink virtual operands when
28418         removing stores.
28419         (eliminate_unnecessary_stmts): Schedule PHI removal after
28420         stmt removal.
28421         * tree-ssa-ter.c (is_replaceable_p): Adjust.
28422         (process_replaceable): Likewise.
28423         (find_replaceable_in_bb): Likewise.
28424         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
28425         based on the single gimple vop.
28426         (verify_flow_insensitive_alias_info): Remove.
28427         (verify_flow_sensitive_alias_info): Likewise.
28428         (verify_call_clobbering): Likewise.
28429         (verify_memory_partitions): Likewise.
28430         (verify_alias_info): Likewise.
28431         (verify_ssa): Adjust..
28432         (execute_update_addresses_taken): Export.  Update SSA
28433         manually.  Optimize only when optimizing.  Use a local bitmap.
28434         (pass_update_address_taken): Remove TODO_update_ssa, add
28435         TODO_dump_func.
28436         (pass_update_address_taken): Just use TODO_update_address_taken.
28437         (init_tree_ssa): Do not initialize addressable_vars.
28438         (verify_ssa): Verify new VUSE / VDEF properties.
28439         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
28440         Do not call verify_alias_info.
28441         (delete_tree_ssa): Clear the VUSE, VDEF operands.
28442         Do not free the loaded and stored syms bitmaps.  Reset the escaped
28443         and callused solutions.  Do not free addressable_vars.
28444         Remove memory-tag related code.
28445         (warn_uninitialized_var): Aliases are always available.
28446         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
28447         * lambda-code.c (can_put_in_inner_loop): Adjust.
28448         (can_put_after_inner_loop): Likewise.
28449         (perfect_nestify): Likewise.
28450         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
28451         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
28452         (vectorizable_conversion): Do not mark symbols for renaming.
28453         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
28454         (expand_call_inline): Unlink the calls virtual operands before
28455         replacing it.
28456         (tree_function_versioning): Do not call update_ssa if we are not
28457         updating clones.  Simplify.
28458         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
28459         (propagate_with_phi): Likewise..
28460         * tree-outof-ssa.c (create_temp): Remove memory tag and call
28461         clobber code.  Assert we are not aliased or global.
28462         * tree-flow.h: Include tree-ssa-alias.h
28463         (enum escape_type): Remove.
28464         (struct mem_sym_stats_d): Likewise.
28465         (struct mem_ref_stats_d): Likewise.
28466         (struct gimple_df): Add vop member.  Remove global_var,
28467         call_clobbered_vars, call_used_vars, addressable_vars,
28468         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
28469         escaped and callused members.
28470         (struct ptr_info_def): Remove all members, add points-to solution
28471         member pt.
28472         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
28473         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
28474         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
28475         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
28476         (tree-ssa-alias.o): Likewise.
28477         (toplev.o): Add tree-ssa-alias.h
28478         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
28479         * gimple.c (gimple_set_bb): Fix off-by-one error.
28480         (is_gimple_reg): Do not handle memory tags.
28481         (gimple_copy): Also copy virtual operands.
28482         Delay updating the statement.  Do not reset loaded and stored syms.
28483         (gimple_set_stored_syms): Remove.
28484         (gimple_set_loaded_syms): Likewise.
28485         (gimple_call_copy_skip_args): Copy the virtual operands
28486         and mark the new statement modified.
28487         * tree-ssa-structalias.c (may_alias_p): Remove.
28488         (set_uids_in_ptset): Take the alias set to prune with as
28489         parameter.  Fold in the alias test of may_alias_p.
28490         (compute_points_to_sets): Compute whether a ptr is dereferenced
28491         in a local sbitmap.
28492         (process_constraint): Deal with &ANYTHING on the lhs, reject all
28493         other ADDRESSOF constraints on the lhs.
28494         (get_constraint_for_component_ref): Assert that we don't get
28495         ADDRESSOF constraints from the base of the reference.
28496         Properly generate UNKNOWN_OFFSET for DEREF if needed.
28497         (struct variable_info): Remove collapsed_to member.
28498         (get_varinfo_fc): Remove.
28499         (new_var_info): Do not set collapsed_to.
28500         (dump_constraint): Do not follow cycles.
28501         (dump_constraint_graph): Likewise.
28502         (build_pred_graph): Likewise.
28503         (build_succ_graph): Likewise.
28504         (rewrite_constraints): Likewise.
28505         (do_simple_structure_copy): Remove.
28506         (do_rhs_deref_structure_copy): Remove.
28507         (do_lhs_deref_structure_copy): Remove.
28508         (collapse_rest_of_var): Remove.
28509         (do_structure_copy): Re-implement.
28510         (pta_stats): New global variable.
28511         (dump_pta_stats): New function.
28512         (struct constraint_expr): Make offset signed.
28513         (UNKNOWN_OFFSET): Define special value.
28514         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
28515         (solution_set_expand): New helper function split out from ...
28516         (do_sd_constraint): ... here.
28517         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
28518         (do_ds_constraint): Likewise.
28519         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
28520         and CALLUSED = *CALLUSED.
28521         (set_union_with_increment): Make inc argument signed.
28522         (type_safe): Remove.
28523         (get_constraint_for_ptr_offset): Handle unknown and negative
28524         constant offsets.
28525         (first_vi_for_offset): Handle offsets before start.  Bail
28526         out early for offsets beyond the variable extent.
28527         (first_or_preceding_vi_for_offset): New function.
28528         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
28529         Together with ESCAPED = *ESCAPED this properly computes reachability.
28530         (find_what_var_points_to): New function.
28531         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
28532         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
28533         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
28534         pt_solutions_intersect): New functions.
28535         (compute_call_used_vars): Remove.
28536         (compute_may_aliases): New main entry into PTA computation.
28537         * gimple.h (gimple_p): New typedef.
28538         (struct gimple_statement_base): Remove references_memory_p.
28539         (struct gimple_statement_with_memory_ops_base): Remove
28540         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
28541         members.
28542         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
28543         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
28544         gimple_set_references_memory): Remove.
28545         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
28546         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
28547         New functions.
28548         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
28549         (verify_expr): Allow RESULT_DECL.
28550         (gimple_duplicate_bb): Do not copy virtual operands.
28551         (gimple_duplicate_sese_region): Adjust.
28552         (gimple_duplicate_sese_tail): Likewise.
28553         (mark_virtual_ops_in_region): Remove.
28554         (move_sese_region_to_fn): Do not call it.
28555         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
28556         and pass_simple_dse.
28557         (execute_function_todo): Handle TODO_update_address_taken,
28558         call execute_update_addresses_taken for TODO_rebuild_alias.
28559         (execute_todo): Adjust.
28560         (execute_one_pass): Init dump files early.
28561         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
28562         call-clobbered.
28563         (create_general_new_stmt): Clear vops.
28564         * tree-ssa-reassoc.c (get_rank): Adjust.
28565         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
28566         symbols for renaming.
28567         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
28568         (PARAM_AVG_ALIASED_VOPS): Likewise.
28569         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
28570         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
28571         * tree-ssa-operands.c: Simplify for new virtual operand representation.
28572         (operand_build_cmp, copy_virtual_operands,
28573         create_ssa_artificial_load_stmt, add_to_addressable_set,
28574         gimple_add_to_addresses_taken): Remove public functions.
28575         (unlink_stmt_vdef): New function.
28576
28577 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28578
28579         * config.gcc (powerpc-*-linux*): Merge variants.
28580
28581 2009-04-02  Chao-ying Fu  <fu@mips.com>
28582             James Grosbach  <james.grosbach@microchip.com>
28583
28584         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
28585         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
28586         cop0_sp_offset.
28587         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
28588         keep_interrupts_masked_p, use_debug_exception_return_p.
28589         (mips_attribute_table): Add interrupt, use_shadow_register_set,
28590         keep_interrupts_masked, use_debug_exception_return.
28591         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
28592         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
28593         New functions.
28594         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
28595         (mips_print_operand): Process COP0 registers to print $0 .. $31
28596         correctly for GAS to process.
28597         (mips_interrupt_extra_call_saved_reg_p): New function.
28598         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
28599         extra registers.
28600         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
28601         (mips_compute_frame_info): Add supports for interrupt context that
28602         includes doubleword accumulators and COP0 registers.
28603         (mips_for_each_saved_acc): New function.
28604         (mips_for_each_saved_gpr_and_fpr): Change the function name from
28605         mips_for_each_saved_reg.
28606         (mips_save_reg): Save accumulators.
28607         (mips_kernel_reg_p): A new for_each_rtx callback.
28608         (mips_expand_prologue): Support interrupt handlers.
28609         (mips_restore_reg): Restore accumulators.
28610         (mips_expand_epilogue): Support interrupt handlers.
28611         (mips_can_use_return_insn): Return false for interrupt handlers.
28612         (mips_epilogue_uses): New function.
28613         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
28614         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
28615         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
28616         cop0_move): New instructions.
28617         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
28618         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
28619         defines.
28620         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
28621         New defines.
28622         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
28623         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
28624         interrupt handlers, we use K0 as the temporary register.
28625         (EPILOGUE_USES): Change to a function call.
28626         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
28627         handlers, we use K0 as the temporary register.
28628
28629         * doc/extend.texi (Function Attributes): Document interrupt,
28630         use_shadow_register_set, keep_interrupts_masked,
28631         use_debug_exception_return for MIPS attributes.
28632
28633 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28634
28635         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
28636         Remove a number of t-files from tmake_file.
28637         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
28638         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
28639         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
28640         target_prototype, not TARGET_PROTOTYPE.
28641         (LINK_OS_GNU_SPEC): Define.
28642         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
28643         and darwin-ldoubdle.c.
28644
28645 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28646
28647         PR driver/39293
28648         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
28649         (cpp_options): Ditto.
28650         (default_compilers): Ditto.
28651         (display_help): Ditto.
28652         (process_command): Ditto.
28653         (do_spec_1): Ditto.
28654         (set_input): Use lbasename instead of duplicate code.
28655         (save_temps_prefix): New static for -save-temps=obj.
28656         (save_temps_length): Ditto.
28657
28658         * doc/invoke.texi (-save-temps=obj): Document new variant to
28659         -save-temps switch.
28660
28661 2009-04-02  Jeff Law  <law@redhat.com>
28662
28663         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
28664         variable.
28665
28666 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28667
28668         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
28669         * configure: Regenerated.
28670
28671 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28672
28673         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
28674         share the argument list.
28675
28676 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28677
28678         Merge
28679
28680         2009-02-12  Diego Novillo  <dnovillo@google.com>
28681
28682         * varpool.c (debug_varpool): New.
28683         * cgraph.h (debug_varpool): Declare.
28684
28685 2009-04-02  Jan Hubicka  <jh@suse.cz>
28686
28687         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
28688         pass.
28689
28690 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28691
28692         * config/i386/i386.c (ix86_abi): Move initialization to ...
28693         (override_options): Here.
28694
28695 2009-04-02  Christian Bruel  <christian.bruel@st.com>
28696
28697         * config/sh/sh.c (sh_dwarf_register_span): New function.
28698         (TARGET_DWARF_REGISTER_SPAN): Define.
28699         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
28700
28701 2009-04-02  Ira Rosen  <irar@il.ibm.com>
28702
28703         PR tree-optimization/39595
28704         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
28705         interleaved loads group is not  greater than the SLP group size.
28706
28707 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28708
28709         * builtins.c (is_builtin_name): New.
28710         (called_as_built_in): Use is_builtin_name.
28711         * tree.h (is_builtin_name): New.
28712         * varasm.c (incorporeal_function_p): Use is_builtin_name
28713
28714 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
28715
28716         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
28717
28718 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
28719
28720         PR c++/26693
28721         * c-decl.c (clone_underlying_type): Move this ...
28722         * c-common.c (set_underlying_type): ... here.
28723         Also, make sure the function properly sets TYPE_STUB_DECL() on
28724         the newly created typedef variant type.
28725         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
28726         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
28727         points.
28728
28729 2009-04-02  Richard Guenther  <rguenther@suse.de>
28730
28731         PR tree-optimization/37221
28732         * tree-flow.h (degenerate_phi_result): Declare.
28733         * tree-ssa-dom.c (degenerate_phi_result): Export.
28734         * tree-scalar-evolution.c (analyze_initial_condition): If
28735         the initial condition is defined by a degenerate PHI node
28736         use the degenerate value.
28737
28738 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
28739
28740         PR rtl-optimization/39588
28741         * combine.c (merge_outer_ops): Do not set the constant when this
28742         is not necessary.
28743         (simplify_shift_const_1): Do not modify it either in this case.
28744
28745 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28746
28747         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
28748         tuning is deprecated if -mtune value is set to an Itanium1 variant.
28749
28750 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
28751
28752         PR c/29027
28753         * c-lex.c (interpret_float): Default (no suffix) is double.
28754
28755 2009-04-1  Xinliang David Li  <davidxl@google.com>
28756
28757         * config/i386/i386.c (legitimate_constant_p): Recognize
28758         all one vector constant.
28759
28760 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28761
28762         * config/vax/vax.c: Add #includes to silence warnings.
28763         Change #include order to silence two warnings.
28764
28765 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28766
28767         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
28768         (ASM_SPEC): Pass -k to the assembler for PIC code.
28769
28770 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28771
28772         * config.gcc: Add vax-*-linux* to the switch.
28773         * config/vax/linux.h: New file. (TARGET_VERSION,
28774         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
28775
28776 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28777
28778         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
28779         Use predicate macros instead of GET_CODE() == foo.
28780         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
28781         ashlsi3, rotrsi3, <unnamed>): Likewise.
28782
28783 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28784
28785         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
28786         jbbccihi, jbbccisi): Remova trailing whitespace.
28787         * config/vax/constraints.md: Likewise.
28788         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
28789         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
28790         * config/vax/predicates.md: Likewise.
28791         * config/vax/vax.c (print_operand_address, vax_output_int_move,
28792         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
28793         * config/vax/vax.h: Likewise.
28794         * config/vax/vax.md (nonlocal_goto): Likewise.
28795
28796 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28797
28798         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
28799         (indirectable_address_p, adjacent_operands_p): Add spaces around
28800         braces.
28801         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
28802
28803 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28804
28805         * config/vax/vax.c (legitimate_constant_address_p,
28806         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
28807         index_term_p, reg_plus_index_p, legitimate_address_p,
28808         vax_mode_dependent_address_p): Update comments to match functions
28809         modified by the recent int->bool conversion.
28810
28811 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28812
28813         * config/vax/builtins.md: Update copyright message.
28814         * config/vax/constraints.md: Likewise.
28815         * config/vax/netbsd-elf.h: Likewise.
28816         * config/vax/predicates.md: Likewise.
28817         * config/vax/vax-protos.h: Likewise.
28818         * config/vax/vax.c: Likewise.
28819         * config/vax/vax.h: Likewise.
28820         * config/vax/vax.md: Likewise.
28821         * config/vax/vax.opt: Likewise.
28822
28823 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28824
28825         * config/vax/builtins.md (ffssi2, ffssi2_internal,
28826         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
28827         * config/vax/constraints.md (B, R): Likewise.
28828         * config/vax/predicates.md (external_memory_operand,
28829         nonimmediate_addsub_di_operand): Likewise.
28830         * config/vax/vax.c (vax_output_int_add): Likewise.
28831         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
28832         untyped_call): Likewise.
28833
28834 2009-04-01  Matt Thomas  <matt@3am-software.com>
28835
28836         * config/vax/predicates.md: New file.
28837         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
28838         external_const_operand, nonsymbolic_operand, external_memory_operand,
28839         indirect_memory_operand, indexed_memory_operand,
28840         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
28841         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
28842         predicate.
28843         * config/vax/constraints.md: New file.
28844         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
28845         New constraint.
28846         * config/vax/builtins.md: New file.
28847         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
28848         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
28849         jbbccisi): Define.
28850         * config/vax/vax.opt (mqmath): Add option.
28851         * config/vax/vax.md (isfx): Extend with DI.
28852         (VAXintQH, VAXintQHSD): Define.
28853         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
28854         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
28855         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
28856         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
28857         (movdi): Update constraints and use vax_output_int_move().
28858         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
28859         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
28860         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
28861         nonlocal_goto): New.
28862         (mov<mode>): Extend accepted operand types.
28863         (subdi3_old): Rename from subdi3, change update constraints and use
28864         a new implementation.
28865         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
28866         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
28867         MOVE_RATIO, CLEAR_RATIO): Define.
28868         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
28869         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
28870         (PRINT_OPERAND): Redefine using a function instead of inlined code.
28871         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
28872         (split_quadword_operands): Make static and really allow variable
28873         splitting.
28874         (print_operand_address): Update for PIC generation.
28875         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
28876         indexable_address_p, fixup_mathdi_operand,
28877         vax_expand_addsub_di_operands, adjacent_operands_p): New.
28878         (vax_float_literal, legitimate_constant_p,
28879         indirectable_constant_address_p, index_term_p,
28880         reg_plus_index_p): Return bool instead of int.
28881         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
28882         where needed.
28883         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
28884         generation.
28885         (vax_output_conditional_branch): Indent.
28886         (legitimate_constant_address_p, indirectable_constant_address_p,
28887         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
28888         vax_mode_dependent_address_p): Return bool instead of int, update for
28889         PIC generation.
28890         * config/vax/vax-protos.h (legitimate_constant_address_p,
28891         legitimate_constant_p, legitimate_address_p,
28892         vax_mode_dependent_address_p): Change declaration to bool.
28893         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
28894         vax_expand_addsub_di_operands, vax_output_int_subtract,
28895         vax_output_movmemsi): Declare.
28896         (split_quadword_operands, vax_float_literal): Delete declaration.
28897         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
28898         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
28899         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
28900         ASM_OUTPUT_DWARF_PCREL): Define.
28901         (ASM_SPEC): Change definition to allow PIC generation.
28902
28903 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
28904
28905         * doc/sourcebuild.texi: Update front-end requirements.
28906
28907 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28908
28909         PR target/39226
28910         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
28911         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
28912         (booldi3_internal3): Use boolean_or_operator instead of
28913         boolean_operator.
28914
28915 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
28916
28917         PR c/39605
28918         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
28919         declarator whose size is not an integer constant expression but
28920         folds to an integer constant, then treat it as a constant
28921         subsequently.
28922
28923 2009-04-01  Richard Guenther  <rguenther@suse.de>
28924
28925         * fold-const.c (fold_plusminus_mult_expr): Do not fold
28926         i * 4 + 2 to (i * 2 + 1) * 2.
28927
28928 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28929
28930         PR c/37772
28931         * c-parser.c (c_parser_asm_statement): Skip until close paren and
28932         return if c_parser_asm_string_literal returned NULL.
28933
28934 2009-04-01  Nick Clifton  <nickc@redhat.com>
28935
28936         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
28937         already defined.
28938         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
28939         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
28940         other typedefs to avoid conflicts with libgcc2.c.  Define labels
28941         to gain 16-bit bit-manipulation functions from libgcc2.c and then
28942         include it.
28943         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
28944         to gain 16-bit trapping arithmetic functions from libgcc2.c and
28945         then include it.
28946
28947 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
28948
28949         * varasm.c (default_function_rodata_section): Declare DOT as
28950         const char*.
28951
28952 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
28953             Andrey Galkin  <agalkin@hypercom.com>
28954
28955         PR/39492
28956         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
28957         Make object_name unique for each process.
28958
28959 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28960
28961         PR other/39591
28962         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
28963         addressable variables in the parallel that could go out of scope while
28964         running queued tasks.
28965
28966 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
28967
28968         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
28969         (CASE_VALUES_THRESHOLD): Redefine.
28970         * config/avr/avr.c (avr_override_options): Remove initialization of
28971         avr_case_values_threshold variable.
28972         (avr_case_values_threshold): Remove variable. Add new function.
28973         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
28974         * config/avr/avr.opt (mno-tablejump): Remove option.
28975         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
28976
28977 2009-04-01  DJ Delorie  <dj@redhat.com>
28978
28979         * varasm.c (default_function_rodata_section): Don't assume
28980         anything about where the first '.' in the section name is.
28981
28982 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
28983
28984         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
28985         rs6000_emit_stack_tie.
28986
28987 2009-03-31  Ian Lance Taylor  <iant@google.com>
28988
28989         * tree-eh.c (tree_remove_unreachable_handlers): Compare
28990         gimple_code with GIMPLE_RESX, not RESX.
28991
28992 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
28993
28994         * c-common.c (c_get_ident): New.
28995         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
28996
28997 2009-04-01  Ben Elliston  <bje@au.ibm.com>
28998
28999         * config/rs6000/sysv4.opt (msdata): Improve option description.
29000
29001 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
29002
29003         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
29004         (divdf3_internal_lat): Remove.
29005         (divxf3_internal_lat): Remove.
29006         (divxf3_internal_thr): Remove.
29007         (divxf): Use divxf3_internal.
29008         * config/ia64/div.md (divsf3_internal_lat): New.
29009         (divdf3_internal_lat): New.
29010         (divxf3_internal): New.
29011
29012 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29013
29014         PR c/448
29015         * Makefile.in (USE_GCC_STDINT): Define.
29016         (stmp-int-hdrs): Install stdint.h if applicable.
29017         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
29018         if known.
29019         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
29020         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
29021         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29022         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29023         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29024         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29025         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29026         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29027         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29028         (c_common_nodes_and_builtins): Initialize
29029         underlying_wchar_type_node.  Do not initialize
29030         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
29031         nodes for new types.
29032         (c_stddef_cpp_builtins): Define macros for new types.
29033         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
29034         Remove.
29035         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
29036         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
29037         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
29038         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
29039         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
29040         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
29041         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
29042         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
29043         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
29044         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
29045         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
29046         int16_type_node, int32_type_node, int64_type_node,
29047         uint8_type_node, uint16_type_node, c_uint32_type_node,
29048         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
29049         int_least32_type_node, int_least64_type_node,
29050         uint_least8_type_node, uint_least16_type_node,
29051         uint_least32_type_node, uint_least64_type_node,
29052         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
29053         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
29054         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
29055         uintptr_type_node): Define.
29056         * c-cppbuiltin.c (builtin_define_constants,
29057         builtin_define_type_minmax): New.
29058         (builtin_define_stdint_macros): Define more macros.
29059         (c_cpp_builtins): Define more limit macros.
29060         (type_suffix): New.
29061         (builtin_define_type_max): Define in terms of
29062         builtin_define_type_minmax.  Remove is_long parameter.  All
29063         callers changed.
29064         * config.gcc (use_gcc_stdint): Define.
29065         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
29066         Add newlib-stdint.h for generic targets.
29067         * config/glibc-stdint.h, config/newlib-stdint.h,
29068         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
29069         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
29070         * config/score/score.h (UINTPTR_TYPE): Define.
29071         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
29072         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
29073         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29074         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29075         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29076         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29077         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29078         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29079         * config/spu/spu.h (STDINT_LONG32): Define.
29080         * configure.ac (use_gcc_stdint): Substitute.
29081         * configure: Regenerate.
29082         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
29083         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
29084         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
29085         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
29086         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
29087         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
29088         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
29089         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
29090         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
29091         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
29092         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
29093         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
29094         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
29095         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
29096         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
29097         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
29098         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
29099         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
29100         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
29101         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
29102         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
29103         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
29104         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29105         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29106         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29107         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29108         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29109         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29110         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
29111
29112 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
29113
29114         * loop-iv.c (suitable_set_for_replacement): Renamed from
29115         simplify_using_assignment; changed to return bool and to accept new
29116         args DEST and SRC.  Return true iff we find a source/destination pair
29117         that can be used to make a replacement, and fill SRC and DEST if so.
29118         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
29119         changed.
29120         (simplify_using_initial_values): Deal with altered regs here and track
29121         more precisely the effect they have on the validity of our expression.
29122
29123         * loop-iv.c (simplify_using_condition): A condition of the form
29124         (EQ REG CONST) can be used to simply make a substitution.
29125         (simplify_using_initial_values): Keep track of conditions we have seen
29126         and keep using them to simplify new expressions, while applying the
29127         same substitutions to them as to the expression.
29128
29129         * simplify-rtx.c (simplify_relational_operation_1): Simplify
29130         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
29131         GEU/LTU reversed.
29132
29133         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
29134         changed.  Use this when trying to improve the upper bound.
29135         Generate the comparison by using simplify_gen_relational.
29136
29137         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
29138
29139         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
29140         functions.
29141         (simplify_using_assignment, simplify_using_initial_values): Call
29142         replace_in_expr to make replacements.  Call replace_single_def_regs
29143         once on the initial version of the expression.
29144
29145 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29146
29147         PR target/27237
29148         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
29149
29150 2009-03-31  Richard Guenther  <rguenther@suse.de>
29151
29152         PR middle-end/31029
29153         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
29154         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
29155
29156 2009-03-31  Richard Guenther  <rguenther@suse.de>
29157
29158         * tree.h (div_if_zero_remainder): Declare.
29159         * fold-const.c (div_if_zero_remainder): Export.
29160         * tree-ssa-forwprop.c
29161         (forward_propagate_addr_into_variable_array_index): Handle
29162         constant array index addition outside of the variable index.
29163
29164 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29165
29166         PR target/39592
29167         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
29168         define_splits, floatunssi<mode>2): Require x87 conversions from
29169         DImode to be permitted.
29170
29171 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29172
29173         PR preprocessor/15638
29174         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
29175
29176 2009-03-31  Richard Guenther  <rguenther@suse.de>
29177
29178         PR middle-end/23401
29179         PR middle-end/27810
29180         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
29181         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
29182         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
29183         a separate statement.
29184         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
29185         (lookup_tmp_var): Likewise.
29186         (is_gimple_formal_tmp_or_call_rhs): Remove.
29187         (is_gimple_reg_or_call_rhs): Rename to ...
29188         (is_gimple_reg_rhs_or_call): ... this.
29189         (is_gimple_mem_or_call_rhs): Rename to ...
29190         (is_gimple_mem_rhs_or_call): ... this.
29191         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
29192         DECL_GIMPLE_REG_P only if is_formal is true.
29193         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
29194         for non-proper post-modify expression gimplification.
29195         (gimplify_self_mod_expr): For post-modify expressions gimplify
29196         the lvalue to a minimal lvalue.
29197         (rhs_predicate_for): Remove formal temp case.
29198         (gimplify_modify_expr_rhs): Likewise.
29199         (gimplify_addr_expr): Use is_gimple_reg.
29200         (gimplify_expr): Remove formal temp cases.
29201         (gimple_regimplify_operands): Likewise.
29202         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
29203         and FILTER_EXPR like constants.
29204         * gimple.c (walk_gimple_op): Fix val_only initialization, use
29205         is_gimple_reg.
29206         (is_gimple_formal_tmp_rhs): Remove.
29207         (is_gimple_reg_rhs): Remove special casing.
29208         (is_gimple_mem_rhs): Fix.
29209         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
29210         (is_gimple_formal_tmp_var): Remove.
29211         (is_gimple_formal_tmp_reg): Likewise.
29212         (is_gimple_min_lval): Allow invariant component ref parts.
29213         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
29214         is_gimple_formal_tmp_reg): Remove declarations.
29215         * tree-cfg.c (verify_expr): Verify that variables with address
29216         taken do not have DECL_GIMPLE_REG_P set.
29217         * tree-mudflap.c (mf_build_check_statement_for): Use
29218         force_gimple_operand instead of gimplify_expr.
29219
29220 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
29221
29222         * modulo-sched.c (sms_schedule_by_order): Pass the actual
29223         schedulable rows to compute_split_row.
29224
29225 2009-03-31  Ben Elliston  <bje@au.ibm.com>
29226
29227         PR target/31635
29228         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
29229         OPT_mvrsave.
29230
29231 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29232
29233         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
29234         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
29235         * configure: Regenerate.
29236         * config.in: Regenerate.
29237         * config/rs6000/rs6000.opt (mtls-markers): Add.
29238         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
29239         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
29240         (tls_ld_aix, tls_ld_sysv): Likewise.
29241         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
29242         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
29243
29244 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29245
29246         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
29247
29248 2009-03-30  Jan Hubicka  <jh@suse.cz>
29249
29250         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
29251         out of RESX.
29252         (tree_remove_unreachable_handlers): Cleanup EH predecestor
29253         detection and label handling.
29254
29255 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29256
29257         * ira-int.h (ira_allocno): Rename left_conflicts_num to
29258         left_conflicts_size.
29259         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
29260         ALLOCNO_LEFT_CONFLICTS_SIZE.
29261
29262         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
29263         remove_allocno_from_bucket_and_push,
29264         allocno_spill_priority_compare, push_allocnos_to_stack,
29265         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29266         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
29267         (setup_allocno_left_conflicts_num): Ditto.  Rename to
29268         setup_allocno_left_conflicts_size.
29269         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29270         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
29271         setup_allocno_left_conflicts_size instead of
29272         setup_allocno_left_conflicts_num.
29273
29274         * ira-build.c (ira_create_allocno): Use
29275         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
29276         ALLOCNO_LEFT_CONFLICTS_NUM.
29277
29278 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29279
29280         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29281         instead of DF_LR_OUT.
29282
29283         * ira-lives.c (process_bb_node_lives): Ditto.
29284
29285         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29286         instead of DF_LR_{OUT,IN}.
29287
29288         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29289
29290         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29291
29292 2009-03-30  Jan Hubicka  <jh@suse.cz>
29293
29294         * except.c (label_to_region_map): Fix thinko.
29295
29296 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
29297
29298         PR middle-end/38237
29299         * tree.h (tree_find_value): New declaration.
29300         * tree.c (tree_find_value): New function.
29301         * varasm.c (assemble_external): Avoid duplicate entries on lists.
29302
29303 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
29304
29305         PR debug/39563
29306         * c-decl.c (struct c_binding): Add locus field.
29307         (bind): Add locus argument, set locus field from it.
29308         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
29309         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
29310         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
29311         implicitly_declare, undeclared_variable, lookup_label,
29312         declare_label, c_make_fname_decl, c_builtin_function,
29313         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
29314         bind callers.
29315
29316 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29317
29318         PR target/38781
29319         * config/i386/i386.c (classify_argument): Check total size of
29320         structure.
29321
29322 2009-03-30  Martin Jambor  <mjambor@suse.cz>
29323
29324         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
29325         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
29326         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
29327         respectively.
29328
29329         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
29330         seen_variable_array_ref while also traversing a union.
29331
29332         * tree-inline.c (optimize_inline_calls): Do not call
29333         cgraph_node_remove_callees.
29334         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
29335         (pass_remove_cgraph_callee_edges): New variable.
29336         * passes.c (init_optimization_passes): Add
29337         pass_remove_cgraph_callee_edges after early inlining and before all
29338         late intraprocedural passes.
29339
29340         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
29341
29342 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29343
29344         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
29345         Fix typos in names.
29346
29347 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29348
29349         * combine.c (simplify_comparison): Use have_insn_for.
29350         * dojump.c (do_jump): Likewise.
29351
29352 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29353
29354         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
29355         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
29356         sparc_compare_op0 like sparc_compare_emitted used to be handled.
29357         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
29358         instead of sparc_compare_emitted.
29359         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
29360         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
29361         instead of sparc_compare_emitted.
29362
29363 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29364
29365         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
29366         enter/exit cfglayout mode.
29367         (pass_partition_block): Require it.
29368         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
29369         (combine_instructions): Track basic blocks instead of labels.
29370         (update_cfg_for_uncondjump): New.
29371         (try_combine): Use it.  Update jumps after rescanning.
29372         (pass_combine): Require PROP_cfglayout.
29373         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
29374
29375 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29376
29377         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
29378         Provide/destroy PROP_cfglayout respectively.
29379         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
29380         * tree-pass.h (PROP_cfglayout): New.
29381
29382 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29383
29384         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
29385         fold_convert_const_fixed_from_fixed,
29386         fold_convert_const_fixed_from_int,
29387         fold_convert_const_fixed_from_real, fold_negate_const): Do not
29388         set TREE_CONSTANT_OVERFLOW.
29389         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
29390         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
29391
29392 2009-03-30  Ira Rosen  <irar@il.ibm.com>
29393
29394         * tree-vect-loop-manip.c: New file.
29395         * tree-vectorizer.c: Update documentation and included files.
29396         (vect_loop_location): Make extern.
29397         (rename_use_op): Move to tree-vect-loop-manip.c
29398         (rename_variables_in_bb, rename_variables_in_loop,
29399         slpeel_update_phis_for_duplicate_loop,
29400         slpeel_update_phi_nodes_for_guard1,
29401         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
29402         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
29403         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
29404         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
29405         find_loop_location): Likewise.
29406         (new_stmt_vec_info): Move to tree-vect-stmts.c.
29407         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
29408         get_vectype_for_scalar_type, vect_is_simple_use,
29409         supportable_widening_operation, supportable_narrowing_operation):
29410         Likewise.
29411         (bb_in_loop_p): Move to tree-vect-loop.c.
29412         (new_loop_vec_info, destroy_loop_vec_info,
29413         reduction_code_for_scalar_code, report_vect_op,
29414         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
29415         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
29416         (vect_supportable_dr_alignment): Likewise.
29417         * tree-vectorizer.h (tree-data-ref.h): Include.
29418         (vect_loop_location): Declare.
29419         Reorganize function declarations according to the new file structure.
29420         * tree-vect-loop.c: New file.
29421         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
29422         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
29423         * tree-vect-data-refs.c: New file.
29424         * tree-vect-patterns.c (timevar.h): Don't include.
29425         * tree-vect-stmts.c: New file.
29426         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
29427         tree-vect-slp.c, tree-vect-loop.c.
29428         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
29429         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
29430         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
29431         (tree-vect-analyze.o): Remove.
29432         (tree-vect-transform.o): Likewise.
29433         (tree-vect-data-refs.o): Add rule.
29434         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
29435         tree-vect-slp.o): Likewise.
29436         (tree-vect-patterns.o): Remove redundant dependencies.
29437         (tree-vectorizer.o): Likewise.
29438         * tree-vect-slp.c: New file.
29439
29440 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29441
29442         * optc-gen.awk: Warn if an option flag has multiple different
29443         help strings.
29444
29445 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
29446
29447         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
29448         -floop-block): Document dependences on PPL, CLooG and Graphite.
29449
29450 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29451
29452         PR rtl-optimization/323
29453         * c-common.c (c_fully_fold, convert_and_check,
29454         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
29455         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
29456         * c-common.def (EXCESS_PRECISION_EXPR): New.
29457         * c-cppbuiltin.c (builtin_define_float_constants): Define
29458         constants with enough digits for long double.
29459         * c-lex.c (interpret_float): Interpret constant with excess
29460         precision where appropriate.
29461         * c-opts.c (c_common_post_options): Set
29462         flag_excess_precision_cmdline.  Give an error for
29463         -fexcess-precision=standard for C++ for processors where the
29464         option is significant.
29465         * c-parser.c (c_parser_conditional_expression): Handle excess
29466         precision in condition.
29467         * c-typeck.c (convert_arguments): Handle arguments with excess
29468         precision.
29469         (build_unary_op): Move excess precision outside operation.
29470         (build_conditional_expr): Likewise.
29471         (build_compound_expr): Likewise.
29472         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
29473         (build_modify_expr): Handle excess precision in RHS.
29474         (convert_for_assignment): Handle excess precision in converted
29475         value.
29476         (digest_init, output_init_element, process_init_element): Handle
29477         excess precision in initializer.
29478         (c_finish_return): Handle excess precision in return value.
29479         (build_binary_op): Handle excess precision in operands and add
29480         excess precision as needed for operation.
29481         * common.opt (-fexcess-precision=): New option.
29482         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
29483         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
29484         For standard excess precision, output explicit conversion to and
29485         truncation from XFmode.
29486         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
29487         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
29488         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
29489         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
29490         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
29491         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
29492         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
29493         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
29494         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
29495         define_splits, sqrt<mode>2): Disable where appropriate for
29496         standard excess precision.
29497         * convert.c (convert_to_real): Do not shorten arithmetic to type
29498         for which excess precision would be used.
29499         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
29500         * doc/invoke.texi (-fexcess-precision=): Document option.
29501         (-mfpmath=): Correct index entry.
29502         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
29503         flag_excess_precision): New.
29504         * langhooks.c (lhd_post_options): Set
29505         flag_excess_precision_cmdline.
29506         * opts.c (common_handle_option): Handle -fexcess-precision=.
29507         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
29508         init_excess_precision): New.
29509         (lang_dependent_init_target): Call init_excess_precision.
29510         * tree.c (excess_precision_type): New.
29511         * tree.h (excess_precision_type): Declare.
29512
29513 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29514
29515         PR c/35235
29516         * c-typeck.c (build_component_ref): Do not copy qualifiers from
29517         non-lvalue to component.
29518
29519 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29520
29521         PR preprocessor/34695
29522         * Makefile.in (c-opts.o): Depend on c-tree.h.
29523         * c-common.c: Move down include of diagnostic.h.
29524         (done_lexing, c_cpp_error): New.
29525         * c-common.h (done_lexing): Declare.
29526         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
29527         (parse_in).
29528         * c-opts.c: Include c-tree.h.
29529         (c_common_init_options): Set preprocessor error callback.
29530         (c_common_handle_option): Do not set preprocessor
29531         inhibit_warnings, warnings_are_errors, warn_system_headers,
29532         pedantic_errors or inhibit_warnings flags.
29533         (c_common_post_options): Do not check cpp_errors (parse_in).
29534         (c_common_finish): Do not output dependencies if there were
29535         errors.  Do not check return value of cpp_finish.
29536         * c-ppoutput.c (pp_file_change): Set input_location.
29537         * c-tree.h (c_cpp_error): Declare.
29538         * diagnostic.c (diagnostic_set_info_translated): Also initialize
29539         override_column.
29540         (diagnostic_build_prefix): Check override_column.
29541         * diagnostic.h (diagnostic_info): Add override_column field.
29542         (diagnostic_override_column): Define.
29543
29544 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
29545
29546         * c-common.c (c_expand_expr, c_staticp): Remove.
29547         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
29548         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
29549         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
29550         * c-gimplify.c (gimplify_compound_literal_expr,
29551         optimize_compound_literals_in_ctor): Remove.
29552         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
29553         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
29554         * c-semantics.c (emit_local_var): Remove.
29555
29556         * langhooks-def.h (lhd_expand_expr): Remove.
29557         * langhooks.c (lhd_expand_expr): Remove.
29558         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
29559
29560         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
29561         handling from c-semantics.c; don't call into langhook.
29562         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
29563         * gimplify.c (gimplify_compound_literal_expr,
29564         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
29565         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
29566         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
29567         as was done in c-gimplify.c.
29568         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
29569         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
29570         Move from c-common.h.
29571         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
29572
29573         * tree.c (staticp): Do not call langhook.
29574         * langhooks.c (lhd_staticp): Delete.
29575         * langhooks-def.h (lhd_staticp): Delete prototype.
29576         (LANG_HOOKS_STATICP): Delete.
29577         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
29578
29579         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
29580         instead of DECL_STMTs.
29581
29582 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29583
29584         PR c/456
29585         PR c/5675
29586         PR c/19976
29587         PR c/29116
29588         PR c/31871
29589         PR c/35198
29590         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
29591         void_type_node.
29592         (fold_call_expr): Return a NOP_EXPR from folding rather than the
29593         contained expression.
29594         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
29595         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
29596         conditional expressions for C.
29597         (decl_constant_value_for_optimization): Move from
29598         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
29599         whether optimizing and that the expression is a VAR_DECL not of
29600         array type instead of doing such checks in the caller.  Do not
29601         check pedantic.  Call gcc_unreachable for C++.
29602         * c-common.def (C_MAYBE_CONST_EXPR): New.
29603         * c-common.h (c_fully_fold, c_save_expr,
29604         decl_constant_value_for_optimization): New prototypes.
29605         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
29606         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
29607         EXPR_INT_CONST_OPERANDS): Define.
29608         * c-convert.c (convert): Strip nops from expression.
29609         * c-decl.c (groktypename): Take extra parameters expr and
29610         expr_const_operands.  Update call to grokdeclarator.
29611         (start_decl): Update call to grokdeclarator.  Add statement for
29612         expressions used in type of decl.
29613         (grokparm): Update call to grokdeclarator.
29614         (push_parm_decl): Update call to grokdeclarator.
29615         (build_compound_literal): Add parameter non_const and build a
29616         C_MAYBE_COSNT_EXPR if applicable.
29617         (grokdeclarator): Take extra parameters expr and
29618         expr_const_operands.  Track expressions used in declaration
29619         specifiers and declarators.  Fold array sizes and track whether
29620         they are constant expressions and whether they are integer
29621         constant expressions.
29622         (parser_xref_tag): Set expr and expr_const_operands fields in
29623         return value.
29624         (grokfield): Update call to grokdeclarator.
29625         (start_function): Update call to grokdeclarator.
29626         (build_null_declspecs): Set expr and expr_const_operands fields in
29627         return value.
29628         (declspecs_add_type): Handle expressions in typeof specifiers.
29629         * c-parser.c (c_parser_declspecs): Set expr and
29630         expr_const_operands fields for declaration specifiers.
29631         (c_parser_enum_specifier): Likewise.
29632         (c_parser_struct_or_union_specifier): Likewise.
29633         (c_parser_typeof_specifier): Likewise.  Update call to
29634         groktypename.  Fold expression as needed.  Return expressions with
29635         type instead of adding statements.
29636         (c_parser_attributes): Update calls to c_parser_expr_list.
29637         (c_parser_statement_after_labels): Fold expression before passing
29638         to objc_build_throw_stmt.
29639         (c_parser_condition): Fold expression.
29640         (c_parser_asm_operands): Fold expression.
29641         (c_parser_conditional_expression): Use c_save_expr.  Update call
29642         to build_conditional_expr.
29643         (c_parser_alignof_expression): Update call to groktypename.
29644         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
29645         original_code.  Fold expression argument of va_arg.  Create
29646         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
29647         argument to va_arg.  Update calls to groktypename.  Fold array
29648         index for offsetof.  Verify that first argument to
29649         __builtin_choose_expr has integer type.
29650         (c_parser_postfix_expression_after_paren_type): Update calls to
29651         groktypename and build_compound_literal.  Handle expressions with
29652         side effects in type name.
29653         (c_parser_postfix_expression_after_primary): Update call to
29654         c_parser_expr_list.  Set original_code for calls to
29655         __builtin_constant_p.
29656         (c_parser_expr_list): Take extra parameter fold_p.  Fold
29657         expressions if requested.
29658         (c_parser_objc_type_name): Update call to groktypename.
29659         (c_parser_objc_synchronized_statement): Fold expression.
29660         (c_parser_objc_receiver): Fold expression.
29661         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
29662         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
29663         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
29664         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
29665         (struct c_typespec): Add elements expr and expr_const_operands.
29666         (struct c_declspecs): Add elements expr and expr_const_operands.
29667         (groktypename, build_conditional_expr, build_compound_literal):
29668         Update prototypes.
29669         (in_late_binary_op): Declare.
29670         * c-typeck.c (note_integer_operands): New function.
29671         (in_late_binary_op): New variable.
29672         (decl_constant_value_for_broken_optimization): Move to c-common.c
29673         and rename to decl_constant_value_for_optimization.
29674         (default_function_array_conversion): Do not strip nops.
29675         (default_conversion): Do not call
29676         decl_constant_value_for_broken_optimization.
29677         (build_array_ref): Do not fold result.
29678         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
29679         result when operand is a VLA.
29680         (c_expr_sizeof_type): Update call to groktypename.  Handle
29681         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
29682         result when operand names a VLA type.
29683         (build_function_call): Update call to build_compound_literal.
29684         Only fold result for calls to __builtin_* functions.  Strip
29685         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
29686         the function designator.
29687         (convert_arguments): Fold arguments.  Update call to
29688         convert_for_assignment.
29689         (build_unary_op): Handle increment and decrement of
29690         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
29691         decrement earlier.  Fold operand of increment and decrement.
29692         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
29693         built for integer operand.  Wrap returns that are INTEGER_CSTs
29694         without being integer constant expressions or that have integer
29695         constant operands without being INTEGER_CSTs.
29696         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
29697         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
29698         result is an integer constant expression or can be used in
29699         unevaluated parts of one and avoid folding and wrap as
29700         appropriate.  Fold operands before possibly doing -Wsign-compare
29701         warnings.
29702         (build_compound_expr): Wrap result for C99 if operands can be used
29703         in integer constant expressions.
29704         (build_c_cast): Update call to digest_init.  Do not ignore
29705         overflow from casting floating-point constants to integers.  Wrap
29706         results that could be confused with integer constant expressions,
29707         null pointer constants or floating-point constants.
29708         (c_cast_expr): Update call to groktypename.  Handle expressions
29709         included in type name.
29710         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
29711         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
29712         Update calls to convert_for_assignment.
29713         (convert_for_assignment): Take new parameter
29714         null_pointer_constant.  Do not strip nops or call
29715         decl_constant_value_for_broken_optimization.  Set
29716         in_late_binary_op for conversions to boolean.
29717         (store_init_value): Update call to digest_init.
29718         (digest_init): Take new parameter null_pointer_constant.  Do not
29719         call decl_constant_value_for_broken_optimization.  pedwarn for
29720         initializers not constant expressions.  Update calls to
29721         convert_for_assignment.
29722         (constructor_nonconst): New.
29723         (struct constructor_stack): Add nonconst element.
29724         (really_start_incremental_init, push_init_level, pop_init_level):
29725         Handle constructor_nonconst and nonconst element.
29726         (set_init_index): Call constant_expression_warning for array
29727         designators.
29728         (output_init_element): Fold value.  Set constructor_nonconst as
29729         applicable.  pedwarn for initializers not constant expressions.
29730         Update call to digest_init.  Call constant_expression_warning
29731         where constant initializers are required.
29732         (process_init_element): Use c_save_expr.
29733         (c_finish_goto_ptr): Fold expression.
29734         (c_finish_return): Fold return value.  Update call to
29735         convert_for_assignment.
29736         (c_start_case): Fold switch expression.
29737         (c_process_expr_stmt): Fold expression.
29738         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
29739         ensure statement expression is not evaluated in constant expression.
29740         (build_binary_op): Track whether results are integer constant
29741         expressions or may occur in such, disable folding and wrap results
29742         as applicable.  Fold operands for -Wsign-compare warnings unless
29743         in_late_binary_op.
29744         (c_objc_common_truthvalue_conversion): Handle results folded to
29745         integer constants that are not integer constant expressions.
29746         * doc/extend.texi: Document when typeof operands are evaluated,
29747         that condition of __builtin_choose_expr is an integer constant
29748         expression, and more about use of __builtin_constant_p in
29749         initializers.
29750
29751 2009-03-29  Richard Guenther  <rguenther@suse.de>
29752
29753         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
29754         propagate addresses of array references.
29755
29756 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29757
29758         * regmove.c (perhaps_ends_bb_p): Remove.
29759         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
29760         from INSN and check that the main loop stays within that basic block.
29761         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
29762         (regmove_forward_pass): Split out from regmove_optimize.  Use
29763         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
29764         (regmove_backward_pass): Split out from regmove_optimize.  Use
29765         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
29766         (regmove_optimize): Simplify.
29767
29768 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29769
29770         PR target/39545
29771         * config/i386/i386.c (classify_argument): Ignore flexible array
29772         member in struct and warn ABI change.
29773
29774 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29775
29776         * config/i386/i386-protos.h (ix86_agi_dependent): New.
29777
29778         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
29779         (ix86_adjust_cost): Updated.
29780
29781 2009-03-29  Jan Hubicka  <jh@suse.cz>
29782
29783         PR middle-end/28850
29784         * tree-pass.h (pass_cleanup_eh): New function.
29785         (remove_unreachable_regions): Break code handling RTL
29786         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
29787         that can not be reached by runtime.
29788         (can_be_reached_by_runtime): New function.
29789         (label_to_region_map): New function.
29790         (num_eh_regions): New function.
29791         (rtl_remove_unreachable_regions): New function.
29792         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
29793         (remove_eh_region): New function.
29794         * except.h: Include sbitmap and vecprim.
29795         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
29796         num_eh_regions): Declare.
29797         * passes.c (init_optimization_passes): Schedule cleanup_eh.
29798         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
29799         * tree-eh.c (tree_remove_unreachable_handlers): New function.
29800         (tree_empty_eh_handler_p): New function.
29801         (cleanup_empty_eh): New function.
29802         (cleanup_eh): New function.
29803         (pass_cleanup_eh): New function.
29804
29805 2009-03-29  Jan Hubicka  <jh@suse.cz>
29806
29807         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
29808         for removed regions.
29809
29810 2009-03-29  Jan Hubicka  <jh@suse.cz>
29811
29812         * except.c (dump_eh_tree): Dump all datastructures.
29813
29814 2009-03-29  Jan Hubicka  <jh@suse.cz>
29815
29816         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
29817         (duplicate_eh_regions_1): Likewise.
29818         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
29819         vector; call EH verification.
29820         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
29821         Be ready for region being removed.
29822
29823 2009-03-29  Jan Hubicka  <jh@suse.cz>
29824
29825         * bitmap.c (bitmap_last_set_bit): New function.
29826         * bitmap.h (bitmap_last_set_bit): Declare.
29827
29828 2009-03-29  David Ayers  <ayers@fsfe.org>
29829
29830         PR objc/27377
29831         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
29832         by calling objc_compare_types and surpress warnings about
29833         incompatible C pointers that are compatible ObjC pointers.
29834
29835 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
29836
29837         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
29838         call initialize_inline_failed.
29839         (initialize_inline_failed): Move it from here ...
29840         * cgraph.c (initialize_inline_failed): ... to here.
29841         (cgraph_create_edge): Call initialize_inline_failed rather than
29842         setting inline_failed directly.
29843
29844 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29845
29846         PR target/32542
29847         * sysv4.opt (msdata): Improve comment.
29848         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
29849         * sysv4.h (SVR4_ASM_SPEC): Likewise.
29850
29851 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29852
29853         PR target/30451
29854         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
29855         load and store attributes.
29856
29857 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29858
29859         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
29860         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
29861         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
29862         * doc/extend.texi (X86 Built-in Functions): Add index entries for
29863         __builtin_infq and __builtin_huge_valq.
29864
29865 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
29866
29867         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
29868         atmega8m1 devices.
29869         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29870         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
29871
29872 2009-03-28  Xinliang David Li  <davidxl@google.com>
29873
29874         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
29875         (do_dbg_cnt): New function.
29876
29877 2009-03-28  Jan Hubicka  <jh@suse.cz>
29878
29879         Merge from pretty-ipa:
29880
29881         2009-03-27  Jan Hubicka  <jh@suse.cz>
29882
29883         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29884         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
29885         * passes.c (function_called_by_processed_nodes_p): New.
29886         * ipa-pure-const.c (check_call): Fix handling of operands.
29887         (analyze_function): Dump debug output for skipped bodies.
29888         (local_pure_const): Use function_called_by_processed_nodes_p.
29889         * dwarf2out.c (reference_to_unused): Use output.
29890         * passes.c (do_per_function_toporder): Likewise.
29891
29892         2008-11-12  Jan Hubicka  <jh@suse.cz>
29893
29894         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
29895         * ipa-pure-const.c (funct_state_d): Add can throw field; make
29896         state_set_in_source enum
29897         (check_decl): Ignore memory tags; do not set fake looping flags;
29898         dump diagnostics.
29899         (check_operand, check_tree, check_rhs_var, check_lhs_var,
29900         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
29901         (check_call, analyze_function): Rewrite.
29902         (check_stmt): New.
29903         (add_new_function): Update call of analyze_function.
29904         (generate_summary): Add call of analyze_function.
29905         (propagate): Propagate can_throw; handle state_set_in_source correctly.
29906         (local_pure_const): New function.
29907         (pass_local_pure_const): New pass.
29908         * ipa-inline.c (inline_transform): Set after_inlining.
29909         * tree-eh.c (stmt_can_throw_external): New.
29910         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
29911         work with aliasing built.
29912         * tree-flow.h (stmt_can_throw_external): New.
29913         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
29914         and local pure/const pass in early and late optimization queue.
29915
29916 2009-03-28  Martin Jambor  <mjambor@suse.cz>
29917
29918         * fold-const.c (get_pointer_modulus_and_residue): New parameter
29919         allow_func_align.
29920         (fold_binary): Allow function decl aligment consideration is the
29921         second argument is integer constant one.
29922         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
29923         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
29924         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
29925
29926 2009-03-28  Jan Hubicka  <jh@suse.cz>
29927
29928         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
29929         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
29930         * function.h (rtl_data): Add nothrow flag.
29931         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
29932         set DECL_NOTHROW for AVAILABLE functions.
29933
29934 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
29935
29936         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
29937         following vector keyword has expansion starting with pixel or bool
29938         keyword, expand vector to __vector and pixel or bool to __pixel or
29939         __bool.
29940
29941         PR c++/39554
29942         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
29943         warn_if_disallowed_function_p): Removed.
29944         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
29945         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
29946         warning_if_disallowed_function_p.
29947         * flags.h (warn_if_disallowed_function_p,
29948         warn_disallowed_functions): Removed.
29949         * common.opt (Wdisallowed-function-list=): Removed.
29950         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
29951
29952 2009-03-28  Richard Guenther  <rguenther@suse.de>
29953
29954         PR tree-optimization/38723
29955         * tree-ssa-pre.c (compute_avail): Add all default definitions to
29956         the entry block.
29957
29958 2009-03-28  Jan Hubicka  <jh@suse.cz>
29959
29960         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
29961         test introduced by my previous patch.
29962
29963 2009-03-28  Richard Guenther  <rguenther@suse.de>
29964
29965         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
29966         the PHIs value undefined.
29967
29968 2009-03-28  Jan Hubicka  <jh@suse.cz>
29969
29970         * tree-pass.h (pass_fixup_cfg): New pass.
29971         * ipa-inline.c (inline_transform): Set
29972         always_inline_functions_inlined/after_inlining.
29973         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
29974         (pass_fixup_cfg): New pass.
29975         * passes.c (init_optimization_passes): Add fixup_cfg.
29976
29977 2009-03-28  Richard Guenther  <rguenther@suse.de>
29978
29979         PR tree-optimization/38458
29980         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
29981         argument use the arguments copy-of value.
29982
29983 2009-03-28  Richard Guenther  <rguenther@suse.de>
29984
29985         PR tree-optimization/38180
29986         * tree-ssa-ccp.c (get_default_value): Simplify.
29987         (likely_value): Likewise.
29988         (surely_varying_stmt_p): Properly handle VOP case.
29989         (ccp_initialize): Likewise.
29990         (ccp_fold): Handle propagating through *&.
29991         (fold_const_aggregate_ref): Also handle decls.
29992
29993 2009-03-28  Jan Hubicka  <jh@suse.cz>
29994
29995         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29996         * cgraph.h (cgraph_node): Likewise.
29997         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
29998         (cgraph_reset_node): Use process flag.
29999         (cgraph_mark_functions_to_output): Likewise.
30000         (cgraph_expand_function): Likewise.
30001         (cgraph_expand_all_functions): Likewise.
30002         (cgraph_output_in_order): Likewise.
30003         * dwarf2out.c (reference_to_unused): Likewise.
30004         * passes.c do_per_function_toporder): Likewise.
30005
30006 2009-03-28  Jan Hubicka  <jh@suse.cz>
30007
30008         Bring from lto-branch:
30009
30010         2008-09-03  Doug Kwan  <dougkwan@google.com>
30011
30012         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
30013         enums instead of reason strings.
30014         * cgraph.c (cgraph_create_edge): Same.
30015         (cgraph_inline_failed_string): New function.
30016         * cgraph.h (cgraph_inline_failed_t): New enum type.
30017         (cgraph_inline_failed_string): New prototype.
30018         (struct cgraph_edge): Change type of INLINED_FAILED from constant
30019         char pointer to cgraph_inline_failed_t.
30020         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
30021         (cgraph_default_inline_p): Ditto.
30022         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
30023         to cgraph_inline_failed_t pointer.
30024         * cif-code.def: New file.
30025         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
30026         reason string.
30027         (cgraph_check_inline_limits): Change type of REASON to pointer to
30028         cgraph_inline_failed_t.  Replace reason strings with enums.
30029         (cgraph_default_inline_p): Ditto.
30030         (cgraph_recursive_inlining_p): Ditto.
30031         (update_caller_keys): Change type of FAILED_REASON to
30032         cgraph_inline_failed_t.
30033         (cgraph_set_inline_failed): Change type of REASON to pointer to
30034         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
30035         convert enums to strings for text output.
30036         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
30037         to be of type cgraph_inline_failed_t.  Replace reason strings with
30038         enums.  Call cgraph_inline_failed_string to covert enums
30039         to strings for text output.
30040         (cgraph_decide_inlining): Replace reason strings with enums.
30041         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
30042         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
30043         for text output.
30044         * tree-inline.c (expand_call_inline): Change type of REASON
30045         to cgraph_inline_failed_t.  Replace reason strings with enums.
30046         Call cgraph_inline_failed_string for text output.
30047         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
30048         (cgraph.o): Ditto.
30049
30050 2009-03-28  Jan Hubicka  <jh@suse.cz>
30051
30052         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
30053         cgraph_clone_node): Remove master clone handling.
30054         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30055         * cgraph.h (master_clone): Remove.
30056         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30057         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
30058         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
30059
30060 2009-03-28  Jan Hubicka  <jh@suse.cz>
30061
30062         * cgraph.c (cgraph_function_body_availability): Functions declared
30063         inline are always safe to assume that it is not going to be replaced.
30064
30065 2009-03-28  Richard Guenther  <rguenther@suse.de>
30066
30067         PR tree-optimization/38513
30068         * tree-ssa-pre.c (eliminate): Remove redundant stores.
30069         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
30070         EXC_PTR_EXPR and FILTER_EXPR.
30071         (get_ref_from_reference_ops): Likewise.
30072
30073 2009-03-28  Richard Guenther  <rguenther@suse.de>
30074
30075         PR tree-optimization/38968
30076         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
30077         Use FLOOR_MOD_EXPR to compute misalignment.
30078
30079 2009-03-28  Richard Guenther  <rguenther@suse.de>
30080
30081         PR tree-optimization/37795
30082         * tree.h (combine_comparisons): Declare.
30083         * fold-const.c (combine_comparisons): Export.
30084         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
30085         comparisons.
30086         (ifcombine_iforif): Use combine_comparisons.
30087
30088 2009-03-28  Jan Hubicka  <jh@suse.cz>
30089
30090         * tree-eh.c (inlinable_call_p): New function.
30091         (make_eh_edges): Use it.
30092         (verify_eh_edges): Use it.
30093         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
30094         * except.c (reachable_next_level): Add inlinable_function argument
30095         (sjlj_find_directly_reachable_regions): Update.
30096         (add_reachable_handler): Do not set saw_any_handlers.
30097         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
30098         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30099         Add new inlinable call parameter.
30100         (can_throw_internal, can_throw_external): Update.
30101         * except.h (can_throw_internal_1, can_throw_external_1,
30102         foreach_reachable_handler): Update declaration.
30103
30104 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
30105
30106         * config/arm/t-arm-coff, config/h8300/coff.h,
30107         config/i386/i386-aout.h, config/i386/i386-coff.h,
30108         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
30109         config/pdp11/2bsd.h, config/rs6000/aix41.h,
30110         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
30111         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
30112         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
30113         sys-types.h: Remove.
30114         * Makefile.in: Remove protoize and fixproto support and references
30115         in comments.
30116         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
30117         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
30118         Remove.
30119         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
30120         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
30121         unprotoize$(exeext).
30122         (rest.encap): Don't depend on $(STMP_FIXPROTO)
30123         (.PHONY): Don't depend on proto.
30124         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
30125         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
30126         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
30127         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
30128         build/gen-protos.o, build/scan.o, xsys-protos.h,
30129         build/fix-header$(build_exeext), build/fix-header.o,
30130         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
30131         stmp-install-fixproto): Remove.
30132         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
30133         SYSCALLS.c or fixproto files.
30134         (install-common): Don't install protoize.
30135         (install-headers-tar, install-headers-cpio, install-headers-cp):
30136         Don't depend on $(STMP_FIXPROTO).
30137         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
30138         install fixproto files or write out fixproto settings.
30139         (uninstall): Don't uninstall protoize.
30140         * config.gcc (use_fixproto): Remove.
30141         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
30142         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
30143         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
30144         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
30145         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
30146         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
30147         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
30148         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
30149         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
30150         * config/t-vxworks (STMP_FIXPROTO): Remove.
30151         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
30152         STMP_FIXPROTO): Remove.
30153         * config.in, configure: Regenerate.
30154         * crtstuff.c (gid_t, uid_t): Don't undefine.
30155         * doc/install.texi: Change m68k-coff to m68k-elf in example.
30156         (arm-*-coff, arm-*-aout: Remove target entries.
30157         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
30158         Remove mention of AIX 4.1.
30159         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
30160         * doc/invoke.texi (Running Protoize): Remove.
30161         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
30162         (Protoize Caveats): Remove.
30163         * tsystem.h: Update comments on headers assumed to exist.
30164
30165 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30166
30167         * genautomata.c: Add a new year to the copyright.  Add a new
30168         reference.
30169         (struct insn_reserv_decl): Add comments for member bypass_list.
30170         (find_bypass): Remove.
30171         (insert_bypass): New.
30172         (process_decls): Use insert_bypass.
30173         (output_internal_insn_latency_func): Output all bypasses with the
30174         same input insn in one switch case.
30175
30176         * rtl.def (define_bypass): Describe bypass choice.
30177         * doc/md.texi (define_bypass): Ditto.
30178
30179 2009-03-27  Richard Guenther  <rguenther@suse.de>
30180
30181         * gimplify.c (mark_addressable): Export.
30182         * tree-flow.h (mark_addressable): Declare.
30183         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
30184         * tree-ssa.c (verify_phi_args): Verify that address taken
30185         variables have TREE_ADDRESSABLE set.
30186
30187 2009-03-27  Richard Guenther  <rguenther@suse.de>
30188
30189         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
30190         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
30191         Do not mark decls TREE_ADDRESSABLE.
30192         (build_fold_addr_expr): Adjust.
30193         (fold_addr_expr): Remove.
30194         (fold_unary): Use build_fold_addr_expr.
30195         (fold_comparison): Likewise.
30196         (split_address_to_core_and_offset): Likewise.
30197         * coverage.c (tree_coverage_counter_addr): Mark the array decl
30198         TREE_ADDRESSABLE.
30199         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
30200         (gimplify_modify_expr_to_memcpy): Mark source and destination
30201         addressable.
30202         * omp-low.c (create_omp_child_function): Mark the object decl
30203         TREE_ADDRESSABLE.
30204         (lower_rec_input_clauses): Mark the var we take the address of
30205         TREE_ADDRESSABLE.
30206         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
30207
30208 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30209
30210         PR middle-end/39315
30211         * cfgexpand.c (expand_one_stack_var_at): Change alignment
30212         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
30213
30214 2009-03-27  Richard Guenther  <rguenther@suse.de>
30215
30216         PR tree-optimization/39120
30217         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
30218         constraints.
30219         (handle_lhs_call): Process return constraints.  Add escape
30220         constraints if necessary.
30221         (handle_const_call): Fill out return constraints.  Make nested
30222         case more precise.  Avoid consttmp if possible.
30223         (handle_pure_call): Fill out return constraints.  Avoid
30224         callused if possible.
30225         (find_func_aliases): Simplify call handling.
30226
30227 2009-03-27  Richard Guenther  <rguenther@suse.de>
30228
30229         PR tree-optimization/39120
30230         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
30231         as a representative.
30232         (solve_graph): Do propagate CALLUSED.
30233         (handle_pure_call): Use a scalar constraint from CALLUSED for
30234         the return value.
30235         (find_what_p_points_to): CALLUSED shall not appear in poins-to
30236         solutions.
30237
30238 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30239
30240         PR c/39323
30241         * c-common.c (handle_aligned_attribute): Properly check alignment
30242         overflow.  Use (1U << i) instead of (1 << i).
30243
30244         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
30245
30246         * expr.h (get_mem_align_offset): Updated.
30247
30248         * tree.h (tree_decl_common): Change align to "unsigned int" and
30249         move it before pointer_alias_set.
30250
30251 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30252             Jakub Jelinek  <jakub@redhat.com>
30253
30254         PR target/38034
30255         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
30256         gr_register_operand with gr_reg_or_0_operand.
30257         (cmpxchg_rel_di): Likewise.
30258         (sync_lock_test_and_set<mode>): Likewise.
30259
30260 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30261
30262         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
30263         (true_regnum): Likewise.
30264
30265         * rtlanal.c (subreg_info): Moved to ...
30266         * rtl.h (subreg_info): Here.  New.
30267         (subreg_get_info): New.
30268
30269         * rtlanal.c (subreg_get_info): Make it extern.
30270
30271 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30272
30273         PR target/39472
30274         * config/i386/i386.c (ix86_abi): New.
30275         (override_options): Handle -mabi=.
30276         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
30277         (ix86_call_abi_override): Likewise.
30278         (init_cumulative_args): Likewise.
30279         (function_arg_advance): Likewise.
30280         (function_arg_64): Likewise.
30281         (function_arg): Likewise.
30282         (ix86_pass_by_reference): Likewise.
30283         (ix86_function_value_regno_p): Likewise.
30284         (ix86_build_builtin_va_list_abi): Likewise.
30285         (setup_incoming_varargs_64): Likewise.
30286         (is_va_list_char_pointer): Likewise.
30287         (ix86_init_machine_status): Likewise.
30288         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
30289         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
30290         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
30291         (ix86_function_abi): Make it static and return enum calling_abi.
30292         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
30293         with ix86_abi.
30294         (ix86_fn_abi_va_list): Updated.
30295
30296         * config/i386/i386.h (ix86_abi): New.
30297         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
30298         (CONDITIONAL_REGISTER_USAGE): Likewise.
30299         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
30300         (machine_function): Likewise.
30301
30302         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
30303         with ix86_abi.
30304         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
30305         (STACK_BOUNDARY): Likewise.
30306         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
30307
30308         * config/i386/i386.opt (mabi=): New.
30309
30310         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
30311         return enum calling_abi.
30312         (ix86_function_type_abi): Likewise.
30313         (ix86_function_abi): Removed.
30314
30315         * doc/invoke.texi: Document -mabi= option for x86.
30316
30317 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30318
30319         * builtins.c (real_dconstp): Delete.
30320         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
30321
30322 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
30323             Jakub Jelinek  <jakub@redhat.com>
30324
30325         PR debug/37959
30326         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
30327         (gen_subprogram_die): When a function is explicit, generate the
30328         DW_AT_explicit attribute.
30329         * langhooks.h (struct lang_hooks_for_decls): Add
30330         function_decl_explicit_p langhook.
30331         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
30332         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
30333
30334 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
30335
30336         * builtins.c (fold_builtin_memory_op): Optimize memmove
30337         into memcpy if we can prove source and destination don't overlap.
30338
30339         * tree-inline.c: Include gt-tree-inline.h.
30340         (clone_fn_id_num): New variable.
30341         (clone_function_name): New function.
30342         (tree_function_versioning): Use it.
30343         * Makefile.in (GTFILES): Add tree-inline.c.
30344
30345 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
30346
30347         * BASE-VER: Change to 4.5.0.
30348
30349 2009-03-27  Xinliang David Li  <davidxl@google.com>
30350
30351         PR tree-optimization/39557
30352         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
30353
30354 2009-03-27  Xinliang David Li  <davidxl@google.com>
30355
30356         PR tree-optimization/39548
30357         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
30358         candidate check.
30359
30360 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30361
30362         * c-common.c (pointer_int_sum): Use %wd on return from
30363         tree_low_cst.
30364
30365 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30366
30367         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
30368         on return from tree_low_cst.
30369
30370 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30371
30372         PR c++/36799
30373         * ginclude/stdarg.h (va_copy): Define also for
30374         __GXX_EXPERIMENTAL_CXX0X__.
30375
30376 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
30377
30378         PR c++/35652
30379         * builtins.h (c_strlen): Do not warn here.
30380         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
30381         * c-common.c (pointer_int_sum): Take an explicit location.
30382         Warn about offsets out of bounds.
30383         * c-common.h (pointer_int_sum): Adjust declaration.
30384
30385 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30386
30387         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
30388         markup glitch.
30389
30390 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
30391
30392         PR c++/39554
30393         * opts.c (warn_if_disallowed_function_p): Don't assume
30394         get_callee_fndecl must return non-NULL.
30395
30396 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
30397
30398         PR rtl-optimization/39522
30399         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
30400         when reg_reloaded_valid is set.
30401
30402 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30403
30404         * config/spu/divv2df3.c: New file.
30405         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
30406         (DPBIT_FUNCS): Filter out _div_df.
30407
30408 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
30409
30410         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
30411         a jump insn, count that jump in the distance to the loop start.
30412
30413 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30414
30415         PR target/39523
30416         * config/sh/sh.c (calc_live_regs): Fix condition for global
30417         registers except PIC_OFFSET_TABLE_REGNUM.
30418
30419 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
30420
30421         PR/39518
30422         * doc/invoke.texi (-mconsole): New.
30423         (-mcygwin): New.
30424         (-mno-cygwin): New.
30425         (-mdll): New.
30426         (-mnop-fun-dllimport): New.
30427         (-mthread): New.
30428         (-mwin32): New.
30429         (-mwindows): New.
30430         (sub section "i386 and x86-64 Windows Options"): New.
30431
30432 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
30433
30434         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
30435         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
30436
30437 2009-03-25  Richard Guenther  <rguenther@suse.de>
30438
30439         PR middle-end/39497
30440         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
30441         of -Wno-error.
30442
30443 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
30444
30445         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
30446         neither of haifa/selective schedulers are working.
30447
30448 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30449
30450         * doc/invoke.texi (Debugging Options): Fix description of
30451         -fno-merge-debug-strings.
30452
30453 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
30454
30455         * config/cris/libgcc.ver: New version-script.
30456         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
30457
30458         * configure.ac <GAS features, nop mnemonic>: Add pattern
30459         crisv32-*-* for "nop".
30460         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
30461         * configure: Regenerate.
30462
30463 2009-03-24  Ira Rosen  <irar@il.ibm.com>
30464
30465         PR tree-optimization/39529
30466         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
30467         mark_sym_for_renaming for the tag copied to the new vector
30468         pointer.
30469
30470 2009-03-24  Arthur Loiret  <aloiret@debian.org>
30471
30472         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
30473         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
30474         EXTRA_SPEC_FUNCTIONS.
30475         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
30476         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
30477         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
30478         -march and -mtune options.
30479
30480 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
30481
30482         * config/m68k/t-rtems: Add m5329 multilib.
30483
30484 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
30485             Jakub Jelinek  <jakub@redhat.com>
30486
30487         PR debug/39524
30488         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
30489         nodes.
30490
30491 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30492
30493         PR c/39495
30494         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
30495         instead of c_parser_expression_conv, if original_code isn't one of the
30496         4 allowed comparison codes, fail.
30497
30498 2009-03-23  Richard Guenther  <rguenther@suse.de>
30499
30500         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
30501         * tree.h (struct tree_type): Likewise.
30502         * reload.h (struct insn_chain): Likewise.
30503         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
30504         * function.h (struct function): Likewise.
30505         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
30506
30507 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30508
30509         PR tree-optimization/39516
30510         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
30511
30512 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
30513
30514         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
30515         should be set true if BITS_PER_WORD of target is bigger than 32
30516
30517 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
30518
30519         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
30520         Translate -B-options to -rpath-link.  Correct existing
30521         rpath-link and conditionalize on !nostdlib.
30522
30523 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30524
30525         * doc/extend.texi (Function Attributes, Variable Attributes):
30526         Fix typos.
30527         * doc/invoke.texi (Debugging Options, Optimize Options)
30528         (i386 and x86-64 Options, MCore Options): Likewise.
30529
30530 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
30531
30532         PR debug/37890
30533         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
30534         it for block local namespace aliases.
30535         (gen_decl_die): Pass context_die to gen_namespace_die.
30536
30537 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30538
30539         PR c/39495
30540         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
30541         minimum or maximum value.
30542
30543 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
30544
30545         * reginfo.c (globalize_reg): Recompute derived reg sets.
30546
30547 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
30548
30549         PR target/39063
30550         * libgcc2.c (mprotect): Do not use signed arguments for
30551         VirtualProtect, use DWORD arguments.  Also fix the 'may
30552         be used uninitialized' warning for the np variable.
30553
30554 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30555
30556         PR target/39496
30557         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
30558         functions using regparm calling conventions when not optimizing.
30559         (ix86_function_sseregparm): Similarly for sseregparm calling
30560         conventions.
30561
30562 2009-03-19  Li Feng  <nemokingdom@gmail.com>
30563
30564         PR middle-end/39500
30565         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
30566         dependence if the first conflict is after niter iterations.
30567
30568 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
30569
30570         PR middle-end/38609
30571         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
30572         functions with dynamic stack-pointer adjustments.
30573
30574 2009-03-19  Ben Elliston  <bje@au.ibm.com>
30575
30576         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
30577         option; change to -msdata=data.
30578
30579 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30580
30581         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
30582         and -fopenmp.
30583
30584 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30585
30586         PR target/35180
30587         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
30588
30589 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
30590
30591         * doc/invoke.texi (Code Gen Options): Expand discussion of
30592         -fno-common.
30593
30594 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
30595
30596         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
30597         * matrix-reorg.c (struct matrix_info): Likewise.
30598         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
30599         * rtl.h (struct mem_attrs): Likewise.
30600         * df.h (struct df): Likewise.
30601         * tree-data-ref.h (struct data_dependence_relation): Likewise.
30602         * ira-int.h (struct ira_allocno): Likewise.
30603         * df-scan.c (struct df_collection_rec): Likewise.
30604         * ira.c (struct equivalence): Likewise.
30605         * function.c (struct temp_slot): Likewise.
30606         * cfgloop.h (struct loop): Likewise.
30607
30608         PR debug/39485
30609         * function.c (use_register_for_decl): When not optimizing, disregard
30610         register keyword for variables with types containing methods.
30611
30612 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
30613
30614         PR middle-end/39447
30615         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
30616         (is_simple_operand): Call contains_component_ref_p before calling data
30617         reference analysis that would fail on COMPONENT_REFs.
30618
30619         * tree-vrp.c (search_for_addr_array): Fix formatting.
30620
30621 2009-03-18  Richard Guenther  <rguenther@suse.de>
30622
30623         * tree-vect-transform.c (vect_loop_versioning): Fold the
30624         generated comparisons.
30625         * tree-vectorizer.c (set_prologue_iterations): Likewise.
30626         (slpeel_tree_peel_loop_to_edge): Likewise.
30627
30628 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30629
30630         PR middle-end/37805
30631         * opts.c (print_specific_help): In addition to `undocumented',
30632         accept `separate' and `joined' flags if passed alone.  Describe
30633         output by the first matched one of those.
30634         (common_handle_option): Skip over empty strings.
30635         * gcc.c (display_help): Fix help string for `--help='.
30636         * doc/invoke.texi (Option Summary, Overall Options): With
30637         `--help=', classes and qualifiers can both be repeated, but
30638         only the latter can be negated.  One should not pass only
30639         negated qualifiers.  Fix markup and examples.
30640
30641         Revert
30642         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
30643         PR middle-end/37805
30644         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
30645         and -fhelp=separate.
30646
30647 2009-03-17  Jing Yu  <jingyu@google.com>
30648
30649         PR middle-end/39378
30650         * function.h (struct rtl_data): Move is_thunk from here...
30651         (struct function): ...to here.
30652         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
30653         * varasm.c (assemble_start_function): Change is_thunk from crtl to
30654         cfun.
30655         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
30656         cfun.
30657         (alpha_does_function_need_gp, alpha_start_function): Likewise.
30658         (alpha_output_function_end_prologue): Likewise.
30659         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
30660         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
30661         (rs6000_output_function_epilogue): Likewise.
30662         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
30663
30664 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
30665
30666         PR target/39482
30667         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
30668         from different units in a single alternative.
30669         (*truncdfsf_i387): Ditto.
30670         (*truncxfsf2_mixed): Ditto.
30671         (*truncxfdf2_mixed): Ditto.
30672
30673 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
30674
30675         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
30676         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
30677
30678         PR debug/39474
30679         * tree-ssa-live.c (remove_unused_locals): Don't remove local
30680         unused non-artificial variables when not optimizing.
30681
30682         PR debug/39471
30683         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
30684         DW_TAG_imported_module even if decl is IMPORTED_DECL with
30685         NAMESPACE_DECL in its DECL_INITIAL.
30686
30687         PR middle-end/39443
30688         * optabs.c (set_user_assembler_libfunc): New function.
30689         * expr.h (set_user_assembler_libfunc): New prototype.
30690         * c-common.c: Include libfuncs.h.
30691         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
30692         for memcmp, memset, memcpy, memmove and abort.
30693         * Makefile.in (c-common.o): Depend on libfuncs.h.
30694
30695         PR debug/39412
30696         * dwarf2out.c (gen_inlined_enumeration_type_die,
30697         gen_inlined_structure_type_die, gen_inlined_union_type_die,
30698         gen_tagged_type_instantiation_die): Removed.
30699         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
30700         do nothing.
30701
30702 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
30703
30704         PR testsuite/38526
30705         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
30706         its use.
30707         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
30708         (check-parallel-%): Ditto.
30709         (check-consistency): Ditto.
30710
30711 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
30712
30713         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
30714         local variable rhs by NULL_TREE.
30715
30716 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30717
30718         PR target/39477
30719         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
30720
30721 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30722
30723         PR target/39476
30724         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
30725
30726 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30727
30728         PR target/39473
30729         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
30730         for ms->sysv ABI calls only in 64bit mode.
30731
30732         * config/i386/i386.md (untyped_call): Support 32bit.
30733
30734 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30735
30736         * doc/extend.texi: Replace x86_65 with x86_64.
30737
30738 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
30739
30740         PR tree-optimization/39455
30741         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
30742         mismatches for POINTER_TYPE_P (type).
30743         (number_of_iterations_le): Likewise.
30744
30745 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30746
30747         * config/picochip/picochip.c: Removed profiling support.
30748         * config/picochip/picochip.md: Removed profiling instruction.
30749         * config/picochip/picochip.h: Removed profiling builtin.
30750
30751 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
30752
30753         * doc/install.texi (--with-host-libstdcxx): Document.
30754
30755 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
30756
30757         PR target/34299
30758         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
30759         generate a warning if the function name does not begin with
30760         "__vector" and the function has either the 'signal' or 'interrupt'
30761         attribute, from here to ...
30762         (avr_declare_function_name): ...here. New function.
30763         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
30764         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
30765
30766 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
30767
30768         PR bootstrap/39454
30769         * cse.c (fold_rtx): Don't modify original const_arg1 when
30770         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
30771         separate variable instead.
30772         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
30773         from out of range shift counts.
30774         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
30775
30776 2009-03-13  Catherine Moore  <clm@codesourcery.com>
30777
30778         * config/i386/x-mingw32 (host-mingw32.o): Replace
30779         diagnostic.h with $(DIAGNOSTIC_H).
30780
30781 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
30782
30783         PR target/39431
30784         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
30785         predicate.
30786         * config/i386/sync.md (sync_compare_and_swap<mode>,
30787         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
30788         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
30789         into a register.
30790         (sync_double_compare_and_swapdi_pic,
30791         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
30792         cmpxchg8b_pic_memory_operand instead of just memory_operand.
30793
30794 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30795
30796         PR target/39445
30797         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
30798
30799 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30800
30801         PR target/39327
30802         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
30803         (avx_addsubv4df3): Likewise.
30804         (*avx_addsubv4sf3): Likewise.
30805         (sse3_addsubv4sf3): Likewise.
30806
30807 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30808
30809         PR target/38824
30810         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
30811
30812 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
30813
30814         PR debug/39432
30815         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
30816         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
30817         registers for allocnos created from user-defined variables.
30818
30819 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30820
30821         PR target/39181
30822         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
30823         of non-integer mode as well.
30824
30825 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
30826
30827         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
30828         for functions for which the parameter types are unknown.
30829
30830 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
30831
30832         PR target/39137
30833         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
30834         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
30835         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
30836         * config/i386/i386.c (ix86_local_alignment): For
30837         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
30838         long long variables on the stack to avoid dynamic realignment.
30839         Allow the first argument to be a decl rather than type.
30840         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
30841
30842 2009-03-11  Nick Clifton  <nickc@redhat.com>
30843
30844         PR target/5362
30845         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
30846         options.
30847         Add description to mno-lsim option.
30848         * config/mcore/mcore.h: Remove comment about deprecated m4align
30849         option.
30850         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
30851         * doc/invoke.texi: Add description of mno-lsim and
30852         mstack-increment options.
30853
30854         * config/fr30/fr30.opt: Document the -mno-lsim option.
30855         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
30856         and -mno-lsim options.
30857
30858 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30859
30860         * fold-const.c (fold_comparison): Only call fold_inf_compare
30861         if the mode supports infinities.
30862
30863 2009-03-11  Jason Merrill  <jason@redhat.com>
30864
30865         PR debug/39086
30866         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
30867         end already did.  Notice GIMPLE_CALL modifications of the result.
30868         Don't copy debug information from an ignored decl or a decl from
30869         another function.
30870
30871 2009-03-10  Richard Guenther  <rguenther@suse.de>
30872             Nathan Froyd  <froydnj@codesourcery.com>
30873
30874         PR middle-end/37850
30875         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
30876         (__divMODE3): Likewise.
30877
30878 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
30879
30880         PR tree-optimization/39394
30881         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
30882         DECL_SIZE_UNIT of variable length FIELD_DECLs.
30883
30884 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30885
30886         * recog.c (verfiy_changes): Disallow renaming of hard regs in
30887         inline asms for register asm ("") declarations.
30888
30889 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
30890
30891         * fold-const.c (fold_unary): Fix comment.
30892
30893 2009-03-07  Jan Hubicka  <jh@suse.cz>
30894
30895         PR target/39361
30896         * tree-inline.c (setup_one_parameter): Do replacement of const
30897         argument by constant in SSA form.
30898
30899 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30900
30901         PR middle-end/38028
30902         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
30903         determine alignment passed to assign_stack_local.
30904         (assign_parms_unsplit_complex): Likewise.
30905         * except.c (sjlj_build_landing_pads): Likewise.
30906
30907 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
30908
30909         PR middle-end/39360
30910         * tree-flow.h (add_referenced_var): Return bool instead of void.
30911         * tree-dfa.c (add_referenced_var): Return result of
30912         referenced_var_check_and_insert call.
30913         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
30914         of referenced_var_check_and_insert.
30915
30916         PR debug/39372
30917         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
30918         (gen_variable_die): Emit DW_AT_location on abstract static variable's
30919         DIE, don't emit it if abstract origin already has it.
30920         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
30921         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
30922
30923 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30924
30925         * genpreds.c (needs_variable): Fix parentheses at variable name
30926         detection.
30927         (write_tm_constrs_h): Indent generated code.
30928
30929 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30930
30931         * doc/extend.texi (Function Attributes): Add documentation
30932         for isr attributes.
30933
30934 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
30935
30936         PR debug/39387
30937         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
30938         take locus from its DECL_SOURCE_LOCATION instead of input_location.
30939
30940 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
30941
30942         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
30943         the loop as bad.
30944
30945 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
30946
30947         PR debug/39379
30948         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
30949         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
30950
30951 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
30952
30953         * config/i386/i386.md (R8_REG, R9_REG): New constants.
30954         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
30955         constants instead of magic numbers.
30956         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
30957         (QI_REG_P): Ditto.
30958         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
30959         (x86_64_ms_abi_int_parameter_registers): Ditto.
30960         (x86_64_int_return_registers): Ditto.
30961         (ix86_maybe_switch_abi): Ditto.
30962         (ix86_expand_call): Ditto for clobbered_registers array.
30963         (ix86_hard_regno_mode_ok): Ditto.
30964         (x86_extended_QIreg_mentioned_p): Ditto.
30965
30966 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
30967
30968         PR tree-optimization/39349
30969         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
30970
30971         * combine.c (gen_lowpart_for_combine): Use omode when generating
30972         clobber.
30973
30974 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
30975
30976         PR rtl-optimization/39235
30977         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
30978
30979 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
30980
30981         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
30982
30983 2009-03-04  Richard Guenther  <rguenther@suse.de>
30984
30985         PR tree-optimization/39362
30986         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
30987         that occur in abnormal PHIs should be varying.
30988
30989 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
30990
30991         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
30992         Extend comments.
30993         (simple_iv):  Take loop as an argument instead of statement.
30994         * tree-scalar-evolution.h (simple_iv): Declaration changed.
30995         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
30996         to simple_iv.
30997         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
30998         Ditto.
30999         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
31000         * matrix-reorg.c (analyze_transpose): Ditto.
31001         * tree-data-ref.c (dr_analyze_innermost): Ditto.
31002         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
31003         * tree-predcom.c (ref_at_iteration): Ditto.
31004         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
31005
31006 2009-03-04  Richard Guenther  <rguenther@suse.de>
31007
31008         PR tree-optimization/39358
31009         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
31010         escaped_id and callused_id.
31011         (solve_graph): Likewise.
31012
31013 2009-03-04  Richard Guenther  <rguenther@suse.de>
31014
31015         PR tree-optimization/39339
31016         * tree-sra.c (try_instantiate_multiple_fields): Make it
31017         no longer ICE on the above.
31018
31019 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
31020
31021         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
31022         that fits within Pmode.
31023
31024 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31025
31026         PR middle-end/10109
31027         * tm.texi (LIBCALL_VALUE): Update description.
31028
31029 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31030
31031         PR middle-end/34443
31032         * doc/extend.texi (section): Update description.
31033
31034 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31035
31036         PR middle-end/39345
31037         * tree-inline.c (remapped_type): New.
31038         (can_be_nonlocal): Call remapped_type instead of remap_type.
31039
31040 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31041
31042         PR fortran/39354
31043         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
31044         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
31045
31046 2009-03-03  Richard Guenther  <rguenther@suse.de>
31047
31048         PR middle-end/39272
31049         * tree.c (tree_nonartificial_location): New function.
31050         * tree.h (tree_nonartificial_location): Declare.
31051         * builtins.c (expand_builtin_memory_chk): Provide location
31052         of the call location for artificial function pieces.
31053         (maybe_emit_chk_warning): Likewise.
31054         (maybe_emit_sprintf_chk_warning): Likewise.
31055         (maybe_emit_free_warning): Likewise.
31056         * expr.c (expand_expr_real_1): Likewise.
31057
31058 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31059
31060         PR tree-optimization/39343
31061         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
31062         COMPONENT_REF t has ARRAY_TYPE.
31063
31064 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
31065
31066         PR middle-end/39335
31067         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
31068         when the type precision of the induction variable should be
31069         larger than the type precision of nit.
31070         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
31071         * graphite.c (graphite_loop_normal_form): Same.
31072         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
31073
31074 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31075
31076         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
31077         (*call_1_rex64_ms_sysv): Use named constants instead of magic
31078         numbers to describe clobbered registers.
31079         (*call_value_0_rex64_ms_sysv): Ditto.
31080         * config/i386/mmx.md (mmx_emms): Ditto.
31081         (mmx_femms): Ditto.
31082
31083 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
31084
31085         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
31086         of ABI_64.
31087
31088 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31089
31090         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
31091         (spu_section_type_flags): New function.
31092
31093 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31094
31095         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
31096         reg_class_contents of FLOAT_REGS into a temporary.
31097
31098 2009-03-02  Richard Guenther  <rguenther@suse.de>
31099             Ira Rosen  <irar@il.ibm.com>
31100
31101         PR tree-optimization/39318
31102         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
31103         information to the vectorized statement.
31104
31105 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
31106
31107         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
31108         variable.  Use defined names instead of magic constants for REX SSE
31109         registers.
31110
31111 2009-03-01  Richard Guenther  <rguenther@suse.de>
31112
31113         PR tree-optimization/39331
31114         * omp-low.c (lower_send_shared_vars): Do not receive new
31115         values for the reference of DECL_BY_REFERENCE parms or results.
31116
31117 2009-03-01  Jan Hubicka  <jh@suse.cz>
31118
31119         PR debug/39267
31120         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
31121         BLOCK_NONLOCALIZED_VAR): New macros.
31122         (tree_block): Add nonlocalized_vars.
31123         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
31124         gen_decl_die): Add origin argument.  Allow generation of die with
31125         origin at hand only.
31126         (gen_member_die, gen_type_die_with_usage, force_decl_die,
31127         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
31128         of gen_*.
31129         (gen_block_die): Fix checking for unused blocks.
31130         (process_scope_var): Break out from .... ; work with origins only.
31131         (decls_for_scope) ... here; process nonlocalized list.
31132         (dwarf2out_ignore_block): Look for nonlocalized vars.
31133         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
31134         vars.
31135         (dump_scope_block): Dump them.
31136         * tree-inline.c (remap_decls): Handle nonlocalized vars.
31137         (remap_block): Likewise.
31138         (can_be_nonlocal): New predicate.
31139         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
31140
31141 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31142
31143         * configure: Regenerate.
31144
31145 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31146
31147         * optc-gen.awk: No need to duplicate option flags twice.
31148         Reuse help texts for duplicate options which do not have any.
31149
31150         * gcc.c (display_help): Document --version.
31151
31152         * gcc.c (main): If print_help_list and verbose_flag, ensure
31153         driver output comes before subprocess output.
31154
31155         * optc-gen.awk: Assign all remaining fields to help string,
31156         space-separated, for multi-line help in *.opt.
31157
31158         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
31159         -Wno-pedantic-ms-format is for MinGW targets only.
31160
31161         * doc/options.texi (Option file format): Fix bad indentation,
31162         restoring dropped sentence.
31163
31164 2009-02-28  Jan Hubicka  <jh@suse.cz>
31165
31166         * tree-inline.c (tree_function_versioning): Output debug info.
31167
31168 2009-02-28  Jan Hubicka  <jh@suse.cz>
31169
31170         PR debug/39267
31171         * tree-inline.c (setup_one_parameter): Do not copy propagate
31172         arguments when not optimizing.
31173
31174 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31175
31176         PR target/39327
31177         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31178         (avx_addsubv4df3): Likewise.
31179         (*avx_addsubv4sf3): Likewise.
31180         (sse3_addsubv4sf3): Likewise.
31181         (*avx_addsubv2df3): Likewise.
31182         (sse3_addsubv2df3): Likewise.
31183         (avx_unpckhps256): Correct item selectors.
31184         (avx_unpcklps256): Likewise.
31185         (avx_unpckhpd256): Likewise.
31186         (avx_unpcklpd256): Likewise.
31187
31188 2009-02-28  Jan Hubicka  <jh@suse.cz>
31189
31190         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
31191         static vars.
31192         (copy_arguments_for_versioning): If var is declared don't declare it.
31193         (tree_function_versioning): First setup substitutions and then copy
31194         args.
31195
31196 2009-02-27  Jan Hubicka  <jh@suse.cz>
31197
31198         PR debug/39267
31199         * cgraph.h (varpool_output_debug_info): Remove.
31200         * cgraphunit.c (varpool_output_debug_info): Remove.
31201         * dwarf2out.c (deferred_locations_struct): New struct
31202         (deferred_locations): New type.
31203         (deferred_locations_list): New static var.
31204         (deffer_location): New function.
31205         (gen_variable_die): Use it.
31206         (decls_for_scope): Output info on local static vars.
31207         (dwarf2out_finish): Process deferred locations.
31208         * varpool.c (varpool_output_debug_info): Remove.
31209
31210 2009-02-27  Jan Hubicka  <jh@suse.cz>
31211
31212         PR debug/39267
31213         * tree.h (TREE_PROTECTED): Fix comment.
31214         (BLOCK_HANDLER_BLOCK): Remove.
31215         (struct tree_block): Remove handler_block add body_block.
31216         (inlined_function_outer_scope_p): New.
31217         (is_body_block): Remove.
31218         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
31219         * dwarf2out.c (is_inlined_entry_point): Remove.
31220         (add_high_low_attributes): Use inlined_function_outer_scope_p.
31221         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
31222         code.
31223         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
31224         * gimplify.c (gimplify_expr): Gimplify body blocks.
31225         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
31226         block with multiple subblocks.
31227         (dump_scope_block): Prettier output; dump more flags and info.
31228         (dump_scope_blocks): New.
31229         (remove_unused_locals): Use dump_scope_blocks.
31230         * tree-flow.h (dump_scope_blocks): Declare.
31231         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
31232         * stmt.c (is_body_block): Remove.
31233         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
31234         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
31235
31236 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
31237
31238         PR middle-end/39308
31239         * graphite.c (graphite_loop_normal_form): Do not call
31240         number_of_iterations_exit from a gcc_assert.
31241
31242 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31243
31244         * config/s390/s390.c (s390_swap_cmp): Look for conditional
31245         jumps if COND is NULL.
31246         (find_cond_jump): New function.
31247         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
31248         * config/s390/s390.md: Remove z10_cobra attribute value.
31249
31250 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
31251
31252         * config/alpha/alpha.h (alpha_expand_mov): Return false if
31253         force_const_mem returns NULL_RTX.
31254
31255 2009-02-26  Jan Hubicka  <jh@suse.cz>
31256
31257         PR debug/39267
31258         * cgraph.h (varpool_output_debug_info): Remove.
31259         * cgraphunit.c (varpool_output_debug_info): Remove.
31260         * dwarf2out.c (deferred_locations_struct): New struct
31261         (deferred_locations): New type.
31262         (deferred_locations_list): New static var.
31263         (deffer_location): New function.
31264         (gen_variable_die): Use it.
31265         (decls_for_scope): Output info on local static vars.
31266         (dwarf2out_finish): Process deferred locations.
31267         * varpool.c (varpool_output_debug_info): Remove.
31268
31269 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31270
31271         PR rtl-optimization/39241
31272         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
31273         to subreg_offset_representable_p.
31274
31275 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31276
31277         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
31278         execute function prototype.  Get f and nregs from max_reg_num
31279         and get_insns.  Remove the first backward pass as it's dead,
31280         guard the forward pass by flag_expensive_optimizations.
31281         (rest_of_handle_regmove): Delete.
31282         (pass_regmove): Replace it with regmove_optimize.
31283
31284 2009-02-25  Martin Jambor  <mjambor@suse.cz>
31285
31286         PR tree-optimization/39259
31287         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
31288         calls_alloca function flags.
31289         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
31290         calls are detected.
31291
31292 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31293
31294         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
31295         flags_set_1_rtx, flags_set_1_set): Delete.
31296         (regmove_optimize): Do not call mark_flags_life_zones.
31297
31298 2009-02-24  Julian Brown  <julian@codesourcery.com>
31299
31300         PR target/35965
31301         * config/arm/arm.c (require_pic_register): Only set
31302         cfun->machine->pic_reg once per function.
31303
31304 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
31305
31306         * doc/invoke.texi (Link Options): Document an easier way to pass
31307         options that take arguments to the GNU linker using -Xlinker and -Wl.
31308
31309 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
31310
31311         PR target/33785
31312         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
31313
31314 2009-02-24  Richard Guenther  <rguenther@suse.de>
31315
31316         PR debug/39285
31317         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
31318
31319 2009-02-24  Richard Guenther  <rguenther@suse.de>
31320             Zdenek Dvorak  <ook@ucw.cz>
31321
31322         PR tree-optimization/39233
31323         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
31324         from converting them to a generic type.
31325
31326 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
31327
31328         PR tree-optimization/39260
31329         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
31330         contains a condition with a real type.
31331         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
31332
31333 2009-02-23  Jason Merrill  <jason@redhat.com>
31334
31335         PR c++/38880
31336         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
31337         narrowing_initializer_constant_valid_p.
31338         (narrowing_initializer_constant_valid_p): Don't return
31339         null_pointer_node for adding a pointer to itself.
31340
31341 2009-02-23  Jan Hubicka  <jh@suse.cz>
31342
31343         PR c/12245
31344         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
31345         resizing.
31346
31347 2009-02-23  Jan Hubicka  <jh@suse.cz>
31348
31349         PR tree-optimization/37709
31350         * tree.c (block_ultimate_origin): Move here from dwarf2out.
31351         * tree.h (block_ultimate_origin): Declare.
31352         * dwarf2out.c (block_ultimate_origin): Move to tree.c
31353         * tree-ssa-live.c (remove_unused_scope_block_p):
31354         Eliminate blocks containig no instructions nor live variables nor
31355         nested blocks.
31356         (dump_scope_block): New function.
31357         (remove_unused_locals): Enable removal of dead blocks by default;
31358         enable dumping at TDF_DETAILS.
31359
31360 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31361
31362         * config/i386/i386.c (classify_argument): Don't allow COImode
31363         and OImode.
31364         (function_arg_advance_32): Don't allow OImode.
31365         (function_arg_32): Likewise.
31366         (function_value_32): Likewise.
31367         (return_in_memory_32): Likewise.
31368         (function_arg_64): Remove OImode comment.
31369
31370 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31371
31372         PR target/39261
31373         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
31374         ix86_expand_vector_set for V4DImode in 64bit mode only.
31375         (ix86_expand_vector_init_one_var): Likewise.
31376
31377 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
31378
31379         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
31380
31381 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31382
31383         PR bootstrap/39257
31384         * loop-iv.c: Revert last change.
31385         * emit-rtl.c: Likewise.
31386
31387 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31388
31389         PR target/39256
31390         * config/i386/i386.c (type_natural_mode): Remove an extra
31391         space in the warning message.
31392         (function_value_32): Handle 32-byte vector modes.
31393         (return_in_memory_32): Likewise.
31394
31395 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31396
31397         * loop-iv.c (truncate_value): New function.
31398         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
31399         of lowpart_subreg.
31400         (lowpart_subreg): Move to...
31401         * emit-rtl.c: ...here.
31402
31403 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
31404
31405         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
31406         accidental and undocumented change at revision 140860.
31407
31408 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
31409
31410         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
31411         take gimple_seq * arguments.
31412         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
31413         types_compatible_p langhook.
31414
31415 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
31416             Joseph Myers  <joseph@codesourcery.com>
31417
31418         * config/arm/arm.c (arm_builtin_va_list): New function.
31419         (arm_expand_builtin_va_start): Likewise.
31420         (arm_gimplify_va_arg_expr): Likewise.
31421         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
31422         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
31423         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
31424         (va_list_type): New variable.
31425         (arm_mangle_type): Mangle va_list_type appropriately.
31426
31427 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31428
31429         PR middle-end/39157
31430         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
31431         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
31432         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
31433         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
31434         parameter to 1000 for -O1 by default.
31435         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
31436         parameter.
31437         * loop-invariant.c: Include params.h.
31438         (move_loop_invariants): Don't call move_single_loop_invariants on
31439         very large loops.
31440
31441 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
31442
31443         * calls.c (emit_library_call_value_1): Use slot_offset instead of
31444         offset when calculating bounds for indexing stack_usage_map.  Fixes
31445         a buffer overflow with certain target setups.
31446
31447 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31448
31449         PR target/39240
31450         * calls.c (expand_call): Clear try_tail_call if caller and callee
31451         disagree in promotion of function return value.
31452
31453 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
31454
31455         PR target/39175
31456         * c-common.c (c_determine_visibility): If visibility changed and
31457         DECL_RTL has been already set, call make_decl_rtl to update symbol
31458         flags.
31459
31460 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
31461
31462         PR c++/39188
31463         * varasm.c (assemble_variable): Don't check DECL_NAME when
31464         globalizing a variable.
31465
31466 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
31467
31468         PR c/38483
31469         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
31470         expression before any __builtin_trap call.
31471         * c-typeck.c (build_function_call): Convert and check function
31472         arguments before generating a call to a trap.  Evaluate the
31473         function arguments before the trap.
31474
31475 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
31476
31477         PR target/39228
31478         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
31479         (UNSPEC_FXAM_MEM): New unspec.
31480         (fxam<mode>2_i387_with_temp): New insn and split pattern.
31481         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
31482         memory using fxam<mode>2_i387_with_temp to remove excess precision.
31483
31484 2009-02-19  Richard Guenther  <rguenther@suse.de>
31485
31486         PR tree-optimization/39207
31487         PR tree-optimization/39074
31488         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
31489         storedanything_tree): New.
31490         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
31491         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
31492         (build_succ_graph): Add edges from STOREDANYTHING to all
31493         non-direct nodes.
31494         (init_base_vars): Initialize STOREDANYTHING.
31495         (compute_points_to_sets): Free substitution info after
31496         building the succ graph.
31497         (ipa_pta_execute): Likewise.
31498
31499         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
31500         field.
31501         (do_ds_constraint): Do not add to special var or non-pointer
31502         field solutions.
31503         (type_could_have_pointers): Split out from ...
31504         (could_have_pointers): ... here.  For arrays use the element type.
31505         (create_variable_info_for): Initialize may_have_pointers.
31506         (new_var_info): Likewise.
31507         (handle_lhs_call): Make the HEAP variable unknown-sized.
31508         (intra_create_variable_infos): Use a type with pointers for
31509         PARM_NOALIAS, make it unknown-sized.
31510
31511 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
31512
31513         PR target/39224
31514         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
31515
31516 2009-02-18  Jason Merrill  <jason@redhat.com>
31517
31518         PR target/39179
31519         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
31520         value if DECL_EXTERNAL.
31521         * tree-sra.c (sra_walk_gimple_assign): Likewise.
31522         * target.h (gcc_target::binds_local_p): Clarify "module".
31523         * tree.h (TREE_PUBLIC): Clarify "module".
31524
31525 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
31526
31527         PR target/38891
31528         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
31529         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
31530
31531 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
31532
31533         PR target/39082
31534         * c.opt (Wabi): Support C and ObjC.
31535         (Wpsabi): New.
31536
31537         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
31538
31539         * config/i386/i386.c (classify_argument): Warn once about the ABI
31540         change when passing union with long double.
31541
31542         * doc/invoke.texi: Update -Wabi for warning psABI changes.
31543
31544 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
31545
31546         PR c/35447
31547         * c-parser.c (c_parser_compound_statement): Always enter and leave
31548         a scope.
31549
31550 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31551
31552         PR target/34587
31553         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
31554
31555 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
31556
31557         PR tree-optimization/36922
31558         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
31559         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
31560         Likewise.
31561
31562 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31563
31564         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
31565         to 0 for EABI64.
31566
31567 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31568
31569         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
31570
31571 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31572
31573         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
31574         tree sharing.
31575
31576 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
31577             Richard Sandiford  <rdsandiford@googlemail.com>
31578
31579         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
31580         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
31581         (loongson_biadd): ...this.
31582
31583 2009-02-17  Richard Guenther  <rguenther@suse.de>
31584
31585         PR tree-optimization/39202
31586         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
31587         a var make sure to follow existing collapses.
31588
31589 2009-02-17  Richard Guenther  <rguenther@suse.de>
31590
31591         PR middle-end/39214
31592         * langhooks.c (lhd_print_error_function): Check for NULL block.
31593
31594 2009-02-17  Richard Guenther  <rguenther@suse.de>
31595
31596         PR tree-optimization/39204
31597         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
31598         of the PHI arg.
31599
31600 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
31601
31602         * config/soft-fp/double.h: Update from glibc CVS.
31603
31604 2009-02-17  Richard Guenther  <rguenther@suse.de>
31605
31606         PR tree-optimization/39207
31607         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
31608         strict-aliasing warnings for pointers pointing to NULL.
31609
31610 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
31611
31612         PR c/35446
31613         * c-parser.c (c_parser_braced_init): Call pop_init_level when
31614         skipping until next close brace.
31615
31616 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
31617
31618         PR target/37049
31619         * config/i386/i386.c (ix86_expand_push): Set memory alignment
31620         to function argument boundary.
31621
31622 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
31623
31624         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
31625         in the lea_add. Reload eventually constraints it properly.
31626         * config/picochip/constraints.md: Remove the target constraint
31627         "b", since it is not needed anymore.
31628
31629 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
31630
31631         * gthr-dce.h: Uglify function parameter and local variable names.
31632         * gthr-gnat.h: Likewise.
31633         * gthr-mipssde.h: Likewise.
31634         * gthr-nks.h: Likewise.
31635         * gthr-posix95.h: Likewise.
31636         * gthr-posix.h: Likewise.
31637         * gthr-rtems.h: Likewise.
31638         * gthr-single.h: Likewise.
31639         * gthr-solaris.h: Likewise.
31640         * gthr-tpf.h: Likewise.
31641         * gthr-vxworks.h: Likewise.
31642         * gthr-win32.h: Likewise.
31643
31644 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
31645
31646         PR target/39196
31647         * config/i386/i386.md: Restrict the new peephole2 to move
31648         between MMX/SSE registers.
31649
31650 2009-02-15  Richard Guenther  <rguenther@suse.de>
31651
31652         Revert
31653         2009-02-13  Richard Guenther  <rguenther@suse.de>
31654
31655         * configure.ac: Enable LFS.
31656         * configure: Re-generate.
31657         * config.in: Likewise.
31658
31659 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31660
31661         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
31662         spu_srqwbyte, spu_srqwbytebc): Define.
31663         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
31664         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
31665         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
31666         "shrqby_<mode>"): New insn-and-split patterns.
31667         * config/spu/spu.c (expand_builtin_args): Determine and return
31668         number of operands using spu_builtin_description data.
31669         (spu_expand_builtin_1): Use it.
31670
31671 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
31672
31673         PR target/38056
31674         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
31675         TARGET_CONST_GP.
31676
31677 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31678
31679         PR target/39149
31680         * config/i386/i386.c (override_options): Correct warning
31681         messages for -malign-loops, -malign-jumps and -malign-functions.
31682
31683 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31684
31685         PR target/39152
31686         * config/i386/i386.md: Restrict the new peephole2 to move
31687         between the general purpose registers.
31688
31689 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31690
31691         PR target/39162
31692         * config/i386/i386.c (type_natural_mode): Add a new argument.
31693         Return the original mode and warn ABI change if vector size is 32byte.
31694         (function_arg_advance): Updated.
31695         (function_arg): Likewise.
31696         (ix86_function_value): Likewise.
31697         (ix86_return_in_memory): Likewise.
31698         (ix86_sol10_return_in_memory): Likewise.
31699         (ix86_gimplify_va_arg): Likewise.
31700         (function_arg_32): Don't warn ABX ABI change here.
31701         (function_arg_64): Likewise.
31702
31703 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
31704
31705         * loop-iv.c (implies_p): In the final case, test that operands 0
31706         of the two comparisons match.
31707
31708         * config/bfin/bfin.c (find_prev_insn_start): New function.
31709         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
31710         (find_next_insn_start): Move.
31711
31712 2009-02-13  Richard Guenther  <rguenther@suse.de>
31713
31714         * configure.ac: Enable LFS.
31715         * configure: Re-generate.
31716         * config.in: Likewise.
31717
31718 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
31719
31720         PR c/35444
31721         * c-parser.c (c_parser_parms_list_declarator): Discard pending
31722         sizes on syntax error after some arguments have been parsed.
31723
31724 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31725
31726         * doc/invoke.texi (-fira): Remove.
31727
31728 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31729
31730         * caller-save.c: Replace regclass.c with reginfo.c in comments.
31731         * recog.c: Likewise.
31732         * rtl.h: Likewise.
31733
31734 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
31735
31736         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
31737         (umul_ppmm): Likewise.
31738         (count_leading_zeros): Likewise.
31739         (count_trailing_zeros): Likewise.
31740         (UMUL_TIME): Likewise.
31741
31742 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31743
31744         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
31745         soft-fp/t-softfp to tmake_file.
31746
31747         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
31748         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
31749         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
31750         IA64_BUILTIN_INFQ]: New.
31751         (ia64_init_builtins): Initialize __builtin_infq,
31752         __builtin_fabsq and __builtin_copysignq if not HPUX.
31753         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
31754         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
31755
31756         * config/ia64/lib1funcs.asm (__divtf3): Define only if
31757         SHARED is defined.
31758         (__fixtfti): Likewise.
31759         (__fixunstfti): Likewise.
31760         (__floattitf): Likewise.
31761
31762         * config/ia64/libgcc-glibc.ver: New.
31763         * config/ia64/t-fprules-softfp: Likewise.
31764         * config/ia64/sfp-machine.h: Likewise.
31765
31766         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
31767         (LIBGCC2_TF_CEXT): Likewise.
31768         (TF_SIZE): Likewise.
31769         (TARGET_INIT_LIBFUNCS): Likewise.
31770
31771         * config/ia64/t-glibc (SHLINB_MAPFILES):
31772         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
31773
31774 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31775
31776         * config/i386/i386.c (construct_container): Rewrite processing
31777         BLKmode with X86_64_SSE_CLASS.
31778
31779 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
31780
31781         PR target/39152
31782         * config/i386/i386.md: Replace simplify_replace_rtx with
31783         replace_rtx in the new peephole2.
31784
31785 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
31786
31787         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
31788         loop unrolling do not happen at -O2.
31789
31790 2009-02-12  Michael Matz  <matz@suse.de>
31791
31792         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
31793
31794 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31795
31796         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
31797         for -g3.
31798
31799 2009-02-12  Ben Elliston  <bje@au.ibm.com>
31800
31801         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
31802         patterns when updating the back chain.  Missed in the 2009-02-10
31803         change.
31804
31805 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
31806
31807         * doc/extend.texi (Decimal Floating Types): Update identifier of
31808         draft TR and list of missing support.
31809
31810 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
31811
31812         PR middle-end/39154
31813         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
31814         bit to variable length decl's flags, add it also to its
31815         pointer replacement variable.
31816
31817 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
31818             Jakub Jelinek  <jakub@redhat.com>
31819
31820         PR target/39118
31821         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
31822         (memory_blockage): New expander.
31823         (*memory_blockage): New insn pattern.
31824         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
31825         instead of general blockage at the end of function prologue when
31826         frame pointer is used to access red zone area.  Do not emit blockage
31827         when profiling, it is emitted in generic code.
31828         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
31829         function epilogue when frame pointer is used to access red zone area.
31830
31831 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
31832
31833         PR target/38824
31834         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
31835         by arithmetic with memory operands.
31836         * config/i386/predicates.md (commutative_operator): New.
31837
31838 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
31839
31840         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
31841         bulleted lists.
31842
31843 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
31844
31845         * alias.h (record_alias_subset): Declare.
31846         * alias.c (record_alias_subset): Make global.
31847
31848 2009-02-10  Nick Clifton  <nickc@redhat.com>
31849
31850         * tree-parloops.c: Change license to GPLv3.
31851         * ipa-struct-reorg.c: Change license to GPLv3.
31852         * ipa-struct-reorg.h: Change license to GPLv3.
31853
31854 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
31855
31856         PR c/39084
31857         * c-decl.c (start_struct): Return NULL on error.
31858
31859 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
31860
31861         PR middle-end/39124
31862         * cfgloopmanip.c (remove_path): Call remove_bbs after
31863         cancel_loop_tree, not before it.
31864
31865         PR target/39139
31866         * function.h (struct function): Add has_local_explicit_reg_vars bit.
31867         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
31868         VAR_DECLs were seen.
31869         * tree-ssa-live.c (remove_unused_locals): Recompute
31870         cfun->has_local_explicit_reg_vars.
31871         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
31872         copies or clearings if cfun->has_local_explicit_reg_vars.
31873
31874 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
31875
31876         PR target/39118
31877         * config/i386/i386.c (expand_prologue): Emit blockage at the end
31878         of function prologue when frame pointer is used to access
31879         red zone area.
31880
31881 2009-02-10  Richard Guenther  <rguenther@suse.de>
31882
31883         PR middle-end/39127
31884         * gimplify.c (gimple_regimplify_operands): Always look if
31885         we need to create a temporary.
31886
31887 2009-02-10  Richard Guenther  <rguenther@suse.de>
31888
31889         PR tree-optimization/39132
31890         * tree-loop-distribution.c (todo): New global var.
31891         (generate_memset_zero): Trigger TODO_rebuild_alias.
31892         (tree_loop_distribution): Return todo.
31893
31894 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
31895
31896         PR target/39119
31897         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
31898         (x86_64_reg_class_name): Removed.
31899         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
31900         first one isn't X86_64_SSE_CLASS or any other ones aren't
31901         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
31902         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
31903         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
31904         and 3 X86_64_SSEUP_CLASS.
31905         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
31906         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
31907
31908 2009-02-10  Ben Elliston  <bje@au.ibm.com>
31909
31910         * config/rs6000/rs6000.md (allocate_stack): Always use an update
31911         form instruction to update the stack back chain word, even if the
31912         user has disabled the generation of update instructions.
31913         (movdi_<mode>_update_stack): New.
31914         (movsi_update_stack): Likewise.
31915         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
31916         always use an update form instruction to update the stack back
31917         chain word.
31918
31919 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
31920
31921         PR middle-end/38953
31922         * graphite.c (if_region_set_false_region): After moving a region in
31923         the false branch of a condition, remove the empty dummy basic block.
31924         (gloog): Remove wrong fix for PR38953.
31925
31926 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31927
31928         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
31929         generation due to implicit sign extension.
31930
31931 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
31932
31933         PR middle-end/38981
31934         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
31935         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
31936
31937 2009-02-09  Richard Guenther  <rguenther@suse.de>
31938
31939         PR middle-end/35202
31940         * convert.c (convert_to_real): Disable (float)fn((double)x)
31941         to fnf(x) conversion if errno differences may occur and
31942         -fmath-errno is set.
31943
31944 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
31945
31946         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
31947         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
31948         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
31949
31950 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
31951
31952         PR c/35434
31953         * c-common.c (handle_alias_attribute): Disallow attribute for
31954         anything not a FUNCTION_DECL or VAR_DECL.
31955
31956 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
31957
31958         PR c/39035
31959         * real.c (do_compare): Special-case compare of zero against
31960         decimal float value.
31961
31962 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
31963
31964         PR c/36432
31965         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
31966         as indicating flexible array members unless the field itself is
31967         being declarared as the incomplete array.
31968
31969 2009-02-06  Jan Hubicka  <jh@suse.cz>
31970
31971         PR tree-optimization/38844
31972         * ipa-inline.c (try_inline): Stop inlining recursion when edge
31973         is already inlined.
31974
31975 2009-02-06  Richard Guenther  <rguenther@suse.de>
31976
31977         PR middle-end/38977
31978         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
31979         fork because we may expand it as __gcov_fork.
31980
31981 2009-02-06  Nick Clifton  <nickc@redhat.com>
31982
31983         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
31984
31985 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
31986
31987         PR tree-optimization/35659
31988         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
31989         vn_phi_eq): Shortcut if hashcode does not match.
31990         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
31991         NULL operands.
31992         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
31993         and avoid iterative_hash_expr.
31994         (FOR_EACH_VALUE_ID_IN_SET): New.
31995         (value_id_compare): Remove.
31996         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
31997         sort expressions by value id.
31998
31999 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
32000
32001         PR target/38991
32002         * config/sh/predicates.md (general_movsrc_operand): Don't check
32003         the subreg of system registers here.
32004
32005 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
32006
32007         PR c++/39106
32008         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
32009         on the copied decl.
32010
32011 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
32012
32013         PR rtl-optimization/39110
32014         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
32015         addresses, not aligned ones.
32016
32017 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
32018             Richard Guenther  <rguenther@suse.de>
32019
32020         PR tree-optimization/39100
32021         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
32022         comment says and add edges.
32023
32024 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
32025
32026         PR c/35435
32027         * c-common.c (handle_tls_model_attribute): Ignore attribute for
32028         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
32029
32030 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
32031
32032         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
32033         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
32034         register_bb_in_sese, new_sese, free_sese): Moved.
32035         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
32036         outermost_loop_in_scop, build_scop_iteration_domain,
32037         expand_scalar_variables_ssa_name, get_vdef_before_scop,
32038         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
32039         Use loop_in_sese_p instead of loop_in_scop_p.
32040         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
32041         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
32042         (scopdet_basic_block_info): Fix bug in scop detection.
32043         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
32044         eq_loop_to_cloog_loop): Remove.
32045         (nb_loops_around_loop_in_scop, nb_loop
32046         ref_nb_loops): Moved here...
32047         * graphite.h (ref_nb_loops): ... from here.
32048         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
32049         (loop_domain_dim, loop_iteration_vector_dim): Remove.
32050         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
32051
32052 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
32053             Hans-Peter Nilsson  <hp@axis.com>
32054
32055         PR rtl-optimization/37889
32056         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
32057         Move offset handling from PLUS to before the switch.  Use new
32058         arguments when considering SYMBOL_REFs too.
32059         (rtx_addr_can_trap_p): Pass dummy offset and size.
32060         (enum may_trap_p_flags): Remove.
32061         (may_trap_p_1): Pass size from MEM_SIZE.
32062
32063         PR rtl-optimization/38921
32064         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
32065         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
32066         * rtlanal.c (may_trap_after_code_motion_p): Delete.
32067         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
32068
32069 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
32070
32071         AVX Programming Reference (January, 2009)
32072         * config/i386/sse.md (*vpclmulqdq): New.
32073
32074 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
32075
32076         PR tree-optimization/38977
32077         PR gcov-profile/38292
32078         * calls.c (special_function_p): Disregard __builtin_ prefix.
32079
32080 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
32081
32082         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
32083         non-indexable addresses even before reload.
32084
32085 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32086
32087         PR c/29129
32088         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
32089         as having variable size.  Do not give an error for unnamed
32090         parameters with [*] declarators.  Give a warning for type names
32091         with [*] declarators and mark them as variable size.
32092         * c-parser.c (c_parser_sizeof_expression): Do not give an error
32093         for sizeof applied to [*] type names.
32094
32095 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32096
32097         PR C++/36607
32098         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
32099
32100 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32101
32102         * gcc.c (process_command): Update copyright notice dates.
32103         * gcov.c (print_version): Likewise.
32104         * gcov-dump.c (print_version): Likewise.
32105         * mips-tfile.c (main): Likewise.
32106         * mips-tdump.c (main): Likewise.
32107
32108 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32109
32110         PR c/35433
32111         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
32112         for composite type involving a zero-length array type.
32113
32114 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32115
32116         PR target/35318
32117         * function.c (match_asm_constraints_1): Skip over
32118         initial optional % in the constraint.
32119
32120         PR inline-asm/39059
32121         * c-parser.c (c_parser_postfix_expression): If fixed point is not
32122         supported, don't accept FIXED_CSTs.
32123         * c-decl.c (finish_declspecs): Error if fixed point is not supported
32124         and _Sat is used without _Fract/_Accum.  Set specs->type to
32125         integer_type_node for cts_fract/cts_accum if fixed point is not
32126         supported.
32127
32128 2009-02-02  Catherine Moore  <clm@codesourcery.com>
32129
32130         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
32131
32132 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32133
32134         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
32135         (ABI_HAS_64BIT_SYMBOLS): Use it.
32136         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
32137
32138 2009-02-02  Paul Brook  <paul@codesourcery.com>
32139
32140         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
32141
32142 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
32143
32144         PR inline-asm/39058
32145         * recog.h (asm_operand_ok): Add constraints argument.
32146         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
32147         recurse on matching constraint.
32148         (check_asm_operands): Pass constraints as 3rd argument to
32149         asm_operand_ok.  Don't look up matching constraint here.
32150         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
32151         to asm_operand_ok.
32152
32153 2009-02-02  Ben Elliston  <bje@au.ibm.com>
32154
32155         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
32156         TARGET_NARROW_VOLATILE_BITFIELD macro names.
32157
32158 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32159
32160         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
32161         information.  Remove some obsolete information.  Reorganize.
32162
32163         * config/pa/fptr.c: Revert license to GPL 2.
32164         * config/pa/milli64.S: Likewise.
32165
32166 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32167
32168         PR target/38904
32169         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
32170         LIBRARY name in, instead of hard-coding it.
32171         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
32172         extra target make frag to tmake_files according to EH model.
32173         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
32174         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
32175         frags that define makefile variable EH_MODEL appropriately.
32176         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
32177         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
32178         to "-sjlj" according to type of EH configured.
32179         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32180         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
32181         to "_sjlj" according to type of EH configured.
32182         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32183         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
32184         (SHLIB_LINK):  Add missing semicolon to if-else construct.
32185         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32186         string value of "pe_dll" command-line option.
32187         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
32188         (SHLIB_SONAME):  Use it when overriding t-cygming default.
32189         (SHLIB_IMPLIB):  Override t-cygming default.
32190         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32191         string value of "pe_dll" command-line option.
32192
32193 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32194
32195         PR target/38952
32196         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
32197         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
32198
32199 2009-01-31  Richard Guenther  <rguenther@suse.de>
32200
32201         PR tree-optimization/38937
32202         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
32203         computing the transitive closure.
32204
32205 2009-01-30  Richard Guenther  <rguenther@suse.de>
32206
32207         PR tree-optimization/39041
32208         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
32209         Propagate variable indices only if the types match for this stmt.
32210
32211 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
32212
32213         PR target/39013
32214         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
32215         inline but never defined.
32216
32217 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
32218
32219         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
32220         (*insv_h_di_reg_extimm): New insn.
32221         (*insv_l<mode>_reg_extimm): New insn.
32222
32223 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32224
32225         * config/picochip/picochip.c (flag_conserve_stack): set
32226         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
32227         fconserve-stack. Reduce call-overhead used by inliner.
32228
32229 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32230
32231         PR/38157
32232         * common.opt (flag_conserve_stack): Initialised to zero.
32233
32234 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
32235
32236         PR/39002
32237         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
32238         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
32239         method.
32240
32241 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
32242
32243         * ira-color.c (allocno_reload_assign): Update comments.
32244         * regmove.c (regmove_optimize): Likewise.
32245
32246         * ra.h: Removed.
32247
32248 2009-01-29  Robert Millan  <rmh@aybabtu.com>
32249
32250         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
32251         * config/i386/kopensolaris-gnu.h: New file.  Undefine
32252         `MD_UNWIND_SUPPORT'.
32253         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
32254
32255 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
32256
32257         PR tree-optimization/39007
32258         * tree-loop-distribution.c (generate_builtin): Use
32259         recompute_dominator to compute the immediate dominator of the
32260         basic block just after the loop.
32261
32262 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32263
32264         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
32265         (ASM_OUTPUT_DWARF_PCREL): Define.
32266
32267 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
32268
32269         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
32270         * doc/passes.texi: Remove entries about regclass, local-alloc, and
32271         global.  Modify entries about regmove and IRA.
32272
32273         * ra-conflict.c: Remove the file.
32274
32275         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
32276
32277         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
32278         (pass_regclass_init): Rename to pass_reginfo_init.
32279
32280         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
32281
32282         * toplev.h (flag_ira): Remove.
32283
32284         * caller-save.c (setup_save_areas): Remove flag_ira.
32285
32286         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
32287
32288         * global.c: Remove the file.
32289
32290         * opts.c (decode_options): Remove flag_ira.
32291
32292         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
32293
32294         * regmove.c: Modify file description.
32295         (find_use_as_address, try_auto_increment): Define them only if
32296         AUTO_INC_DEC is defined.
32297         (replacement_quality, replace_in_call_usage, fixup_match_1,
32298         stable_and_no_regs_but_for_p): Remove.
32299         (reg_set_in_bb): Make it static.
32300         (regmove_optimize): Remove flag_ira and code which worked for
32301         !flag_ira.
32302
32303         * local-alloc.c: Remove the file.
32304
32305         * common.opt (fira): Remove.
32306
32307         * ira.c: Include except.h.
32308         (eliminable_regset): Move from global.c.
32309         (mark_elimination): Ditto.  Remove flag_ira.
32310         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
32311         equiv_mem_modified, validate_equiv_mem_from_store,
32312         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
32313         contains_replace_regs, memref_referenced_p, memref_used_between_p,
32314         no_equiv, recorded_label_ref): Move from local-alloc.c.
32315         (update_equiv_regs): Ditto.  Make it static.
32316         (print_insn_chain, print_insn_chains): Move it from global.c.
32317         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
32318         (build_insn_chain): Ditto.  Make it static.
32319         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
32320         Rename to init_live_subregs.
32321         (gate_ira): Remove flag_ira.
32322
32323         * regclass.c: Rename reginfo.c.  Change file description.
32324         (FORBIDDEN_INC_DEC_CLASSES): Remove.
32325         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
32326         (init_reg_sets_1): Remove code for evaluation of
32327         reg_class_superclasses and losing_caller_save_reg_set.
32328         (init_regs): Remove init_reg_autoinc.
32329         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
32330         ok_for_base_p_nonstrict): Remove.
32331         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
32332         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
32333         corresponding entries.
32334         (dump_regclass, record_operand_costs, scan_one_insn,
32335         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
32336         record_address_regs, auto_inc_dec_reg_p): Remove.
32337         (gt-regclass.h): Rename to gt-reginfo.h.
32338
32339         * rtl.h (dump_global_regs, retry_global_alloc,
32340         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
32341
32342         * Makefile.in (RA_H): Remove.
32343         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
32344         Rename regclass.o to reginfo.o.
32345         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
32346         gt-reginfo.h.
32347         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
32348         (GTFILES): Rename regclass.c to reginfo.c.
32349
32350         * passes.c (init_optimization_passes): Remove pass_local_alloc and
32351         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
32352
32353         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32354         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
32355         Remove flag_ira.
32356         (finish_spills): Ditto.  Remove code for !flag_ira.
32357
32358 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
32359
32360         PR middle-end/35854
32361         * doc/invoke.texi (rtl debug options): Complete rewrite.
32362         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
32363         to auto_inc_dec".
32364         * mode-switching.c (pass_mode_switching): Rename pass from
32365         "mode-sw" to "mode_sw".
32366         * except.c (pass_convert_to_eh_ranges): Rename pass from
32367         "eh-ranges" to "eh_ranges".
32368         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
32369         to "subreg1".
32370
32371
32372 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
32373             Alexander Monakov  <amonakov@ispras.ru>
32374
32375         PR middle-end/38857
32376         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
32377         register.
32378         (move_exprs_to_boundary): Change return type and pass through
32379         should_move from move_op.  Relax assert.  Update usage ...
32380         (schedule_expr_on_boundary): ... here.  Use should_move instead of
32381         cant_move.
32382         (move_op_orig_expr_found): Indicate that insn was disconnected from
32383         stream.
32384         (code_motion_process_successors): Do not call after_merge_succs
32385         callback if original expression was not found when traversing any of
32386         the branches.
32387         (code_motion_path_driver): Change return type.  Update prototype.
32388         (move_op): Update comment.  Add a new parameter (should_move).  Update
32389         prototype.  Set *should_move based on indication provided by
32390         move_op_orig_expr_found.
32391
32392 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
32393
32394         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
32395         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
32396         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
32397         * config/rs6000/rs6000.c (rs6000_override_options): Default
32398         avoid-indexed-addresses on for Power6, off for everything else.
32399         (avoiding_indexed_address_p): New function.
32400         (rs6000_legitimize_address): Use it.
32401         (rs6000_legitimate_address): Likewise.
32402         * config/rs6000/rs6000.md (movXX_updateX): Likewise
32403
32404 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
32405
32406         PR tree-optimization/38997
32407         * tree-loop-distribution.c (generate_memset_zero): Use
32408         POINTER_PLUS_EXPR for a pointer addition.
32409
32410 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
32411
32412         * config/s390/s390.md (bswap<mode>2): New pattern added.
32413
32414 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32415
32416         * config/s390/s390.md (*tls_load_31): Added type attribute.
32417
32418 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32419
32420         * config/s390/s390.md: Fix a few comments.
32421
32422 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32423
32424         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
32425         (*tm<mode>_full): Fixed z10prop attribute.
32426         (*tst<mode>_extimm): Fixed z10prop attribute.
32427         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
32428         (*tstqiCCT_cconly): Fixed z10prop attribute.
32429         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
32430         (*movsi_larl): Fixed z10prop attribute.
32431         (*movsi_zarch): Fixed z10prop attribute.
32432         (*movsi_eas): Fixed z10prop attribute.
32433         (*movhi): Fixed z10prop attribute.
32434         (*movqi): Fixed z10prop attribute.
32435         (*movstrictqi): Fixed z10prop attribute.
32436         (*mov<mode>): Fixed z10prop attribute.
32437         (*movcc): Fixed z10prop attribute.
32438         (*sethighpartdi_64): Fixed z10prop attribute.
32439         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
32440         (*negdi2_sign_cc): Fixed z10prop attribute.
32441         (*negdi2_sign): Fixed z10prop attribute.
32442         (*absdi2_sign_cc): Fixed z10prop attribute.
32443         (*absdi2_sign): Fixed z10prop attribute.
32444         (*negabsdi2_sign_cc): Fixed z10prop attribute.
32445         (*negabsdi2_sign): Fixed z10prop attribute.
32446         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
32447         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
32448         (doloop_si64): Fixed z10prop attribute.
32449         (doloop_si31): Fixed z10prop attribute.
32450         (doloop_long): Fixed z10prop attribute.
32451         (indirect_jump): Fixed z10prop attribute.
32452         (nop): Fixed z10prop attribute.
32453         (main_base_64): Fixed z10prop attribute.
32454         (reload_base_64): Fixed z10prop attribute.
32455
32456 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32457
32458         PR rtl-optimization/38740
32459         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
32460         if !optimize.
32461         * config/mips/mips.c (mips_reorg): Likewise.
32462
32463 2009-01-28  Richard Guenther  <rguenther@suse.de>
32464
32465         PR tree-optimization/38926
32466         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
32467         with the correct value id to a value.
32468         (do_regular_insertion): Use the value number of edoubleprime
32469         for the value number of the expr.
32470
32471         Revert
32472         2008-08-21  Richard Guenther  <rguenther@suse.de>
32473
32474         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
32475         a PHI ask VN if it is already available.
32476         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
32477         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
32478
32479 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32480
32481         PR middle-end/38934
32482         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
32483         set to varying whenever max has TREE_OVERFLOW set, similarly
32484         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
32485
32486 2009-01-28  Richard Guenther  <rguenther@suse.de>
32487
32488         PR middle-end/38908
32489         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
32490         uninitialized aggregate uses in call arguments.
32491
32492 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
32493
32494         PR tree-optimization/38984
32495         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
32496         the nothing_id variable if -fno-delete-null-pointer-checks.
32497
32498 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
32499
32500         PR target/38988
32501         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
32502         (set_got_offset_rex64): Ditto.
32503
32504 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
32505
32506         PR target/38941
32507         * doc/extend.texi: Improve local variable with asm reg.
32508
32509 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
32510
32511         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
32512         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
32513         was not supplied then set warn_packed_bitfield_compat to the
32514         default value of 1.
32515         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
32516         against 1.
32517
32518 2009-01-27  Richard Guenther  <rguenther@suse.de>
32519
32520         PR tree-optimization/38503
32521         * cfgexpand.c (expand_gimple_basic_block): Ignore
32522         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
32523         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
32524         variables that cannot have TBAA applied.
32525         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
32526         statements.
32527
32528 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
32529
32530         PR middle-end/38969
32531         * calls.c (initialize_argument_information): Do not wrap complex
32532         arguments in SAVE_EXPR.
32533
32534 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
32535
32536         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
32537         (INSTALL_LIBGCC): Revert typo commit.
32538
32539 2009-01-26  Richard Guenther  <rguenther@suse.de>
32540
32541         PR tree-optimization/38745
32542         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
32543         from special handling.
32544
32545 2009-01-26  Richard Guenther  <rguenther@suse.de>
32546
32547         PR tree-optimization/38745
32548         * tree-ssa.c (execute_update_addresses_taken): Do not include
32549         variables that cannot possibly be a register in not_reg_needs.
32550         Do not clear TREE_ADDRESSABLE on vars that may not become
32551         registers.
32552         * tree-ssa.c (update_alias_info_1): Include those in the set
32553         of addressable vars.
32554
32555 2009-01-26  Richard Guenther  <rguenther@suse.de>
32556
32557         PR middle-end/38851
32558         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
32559         * tree-ssa-dse.c: Include langhooks.h
32560         (execute_simple_dse): Remove stores with zero size.
32561
32562 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
32563
32564         PR c/38957
32565         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
32566         as PLUS_EXPR.
32567
32568 2009-01-24  Julian Brown  <julian@codesourcery.com>
32569
32570         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
32571         config/arm/linux-atomic.c.
32572         * config/arm/linux-atomic.c: New.
32573
32574 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
32575
32576         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
32577         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
32578         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
32579
32580 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
32581
32582         PR c/38938
32583         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
32584         properly.
32585
32586 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
32587
32588         PR tree-optimization/38953
32589         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
32590         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
32591         (gloog): Split the exit of the scop when the scop exit is a loop exit.
32592         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
32593         changed the CFG.
32594
32595 2009-01-24  Paul Brook  <paul@codesourcery.com>
32596
32597         * config/arm/neon.md (neon_type): Move to arm.md.
32598         (neon_mov<VSTRUCT>): Add neon_type attribute.
32599         * config/arm/arm.md (neon_type): Move to here.
32600         (conds): Add "unconditioal" and use as default for NEON insns.
32601
32602 2009-01-24  Ben Elliston  <bje@au.ibm.com>
32603
32604         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
32605         void *' warning from -Wc++-compat.
32606         * Makefile.in (dominance.o-warn): Remove.
32607
32608 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
32609
32610         PR tree-optimization/38932
32611         * fold-const.c (fold_unary_ignore_overflow): New.
32612         * tree.h (fold_unary_ignore_overflow): Declare.
32613         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
32614         * tree-ssa-sccvn.c (visit_reference_op_load,
32615         simplify_unary_expression): Likewise.
32616
32617 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
32618
32619         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
32620         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
32621         regardless of their type.
32622         * c-common.c (handle_packed_attribute): Don't ignore packed on
32623         bitfields.
32624         * c.opt (Wpacked-bitfield-compat): New warning option.
32625         * stor-layout.c (place_field): Warn if offset of a field changed.
32626         * doc/extend.texi (packed): Mention the ABI change.
32627         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
32628         (Warning Options): Add it to the list.
32629
32630 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
32631
32632         * c-opts.c (c_common_post_options): Fix a typo in comments.
32633
32634 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
32635
32636         PR middle-end/38615
32637         * gimplify.c (gimplify_init_constructor): Fix promotion of const
32638         variables to static.
32639         * doc/invoke.texi (-fmerge-all-constants): Update description.
32640
32641 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
32642
32643         PR target/38931
32644         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
32645         (*movdi_1_rex64): Use type "mmx" for alternative 5.
32646
32647 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
32648
32649         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
32650         a word boundary.
32651         (LOCAL_ALIGNMENT): Similarly.
32652
32653 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32654             Joseph Myers  <joseph@codesourcery.com>
32655
32656         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
32657         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
32658         * config/arm/arm-tune.md: Regenerate.
32659         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
32660         -march=iwmmxt2.
32661
32662 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32663
32664         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
32665         version number to five.
32666
32667 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
32668
32669         PR c++/38930
32670         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
32671         * c-common.c (set_underlying_type): Likewise.
32672         (is_typedef_decl ): Likewise
32673         * tree.h: Likewise
32674         (set_underlying_type): Likewise.
32675         (is_typedef_type): Likewise.
32676
32677 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32678
32679         PR middle-end/38587
32680         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
32681         crossing setjmps.
32682
32683 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
32684
32685         PR bootstrap/37660
32686         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
32687         (LIBGCC_SPEC):  Don't define.
32688         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
32689
32690 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
32691
32692         PR rtl-optimization/38879
32693         * alias.c (base_alias_check): Unaligned access via AND address can
32694         alias all surrounding object types except those with sizes equal
32695         or wider than the size of unaligned access.
32696
32697 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
32698
32699         PR c++/26693
32700         * c-decl.c (clone_underlying_type): Move this ...
32701         * c-common.c (set_underlying_type): ... here.
32702         Also, make sure the function properly sets TYPE_STUB_DECL() on
32703         the newly created typedef variant type.
32704         (is_typedef_decl ): New entry point.
32705         * tree.h: Added a new member member_types_needing_access_check to
32706         struct tree_decl_non_common.
32707         (set_underlying_type): New entry point.
32708         (is_typedef_type): Likewise.
32709
32710 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
32711
32712         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
32713         Check whether two instructions have memory references that
32714         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
32715         are helper functions for traversing.
32716         * alias.h (insn_alias_sets_confilict_p): New prototypes.
32717         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
32718         not to draw dependency edge for instructions with non-conflicting
32719         alias sets.
32720
32721 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
32722
32723         PR other/38758
32724         * longlong.h: Update copyright years.  Use soft-fp license notice.
32725         Sync __clz_tab declaration with glibc.
32726
32727 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
32728
32729         PR target/30687
32730         * doc/extend.texi (syscall_linkage): New.
32731         (version_id): Modify.
32732
32733 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32734             Richard Guenther  <rguenther@suse.de>
32735
32736         PR tree-optimization/38747
32737         PR tree-optimization/38748
32738         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
32739         conversion if the base address is an indirect reference and the
32740         aliasing sets could cause issues.
32741
32742 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32743
32744         * common.opt (fgraphite, fgraphite-identity): Add comment for
32745         explaining why these options are not documented.
32746
32747 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32748
32749         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
32750         gimple_call_lhs is NULL.
32751
32752 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32753
32754         PR target/38868
32755         * emit-rtl.c (adjust_address_1): Make sure memref is never
32756         overwritten.
32757
32758 2009-01-20  Ben Elliston  <bje@au.ibm.com>
32759
32760         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32761         const qualifier from arg parameter. Remove unnecessary cast to char *.
32762         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32763         const qualifier from arg 2.
32764
32765 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32766
32767         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
32768
32769 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
32770
32771         PR c/38869
32772         * rtl.h (reinit_regs): New prototype.
32773         * regclass.c: Include ira.h.
32774         (reinit_regs): New.
32775         * Makefile.in (regclass.o): Add ira.h.
32776         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
32777
32778 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32779
32780         PR target/38736
32781         * c-common.c (handle_aligned_attribute): Use
32782         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
32783         default alignment value.
32784
32785         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
32786
32787         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
32788         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
32789
32790         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
32791         __BIGGEST_ALIGNMENT__.
32792
32793         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
32794
32795 2009-01-18  Richard Guenther  <rguenther@suse.de>
32796
32797         PR tree-optimization/38819
32798         * tree-flow.h (operation_could_trap_helper_p): Declare.
32799         * tree-eh.c (operation_could_trap_helper_p): Export.
32800         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
32801         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
32802         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
32803         are about to insert a possibly trapping instruction and fail
32804         in this case.
32805
32806 2009-01-18  Andreas Schwab  <schwab@suse.de>
32807
32808         * doc/install.texi (Configuration): Remove obsolete paragraph
32809         about use of --with-gnu-ld with --with-gnu-as.
32810
32811 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
32812
32813         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
32814         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
32815         Follow spelling conventions.
32816
32817 2009-01-18  Ben Elliston  <bje@au.ibm.com>
32818
32819         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
32820         C++ warning about implicit conversion from void * to struct
32821         bitmap_head_def *.
32822         (bitmap_obstack_free): Likewise for bitmap_element *.
32823         * Makefile.in (bitmap.o-warn): Remove.
32824
32825 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32826
32827         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
32828
32829 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
32830             Tobias Grosser  <tobi.grosser@amd.com>
32831
32832         * graphite.c (graphite_trans_scop_block): Do not block single
32833         nested loops.
32834
32835 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
32836
32837         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
32838         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
32839         test with assertion.
32840
32841 2009-01-16  Richard Guenther  <rguenther@suse.de>
32842
32843         PR tree-optimization/38835
32844         PR middle-end/36227
32845         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
32846         and INT + PTR -> (INT)(PTR p+ INT) folding.
32847         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
32848
32849 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
32850
32851         PR target/38554
32852         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
32853         the subreg from a lowpart subreg if it is also casting the value.
32854
32855 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
32856             Tobias Grosser  <tobi.grosser@amd.com>
32857
32858         * graphite.c (compare_prefix_loops): New.
32859         (build_scop_canonical_schedules): Rewritten.
32860         (graphite_transform_loops): Move build_scop_canonical_schedules
32861         after build_scop_iteration_domain.
32862
32863 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
32864             Tobias Grosser  <tobi.grosser@amd.com>
32865
32866         * graphite.c (add_conditions_to_domain): Add the loops to
32867         the dimension of the iteration domain.  Do copy the domain
32868         only when it exists.
32869         (build_scop_conditions_1): Do not call add_conditions_to_domain.
32870         (add_conditions_to_constraints): New.
32871         (can_generate_code_stmt, can_generate_code): Removed.
32872         (gloog): Do not call can_generate_code.
32873         (graphite_transform_loops): Call add_conditions_to_constraints
32874         after building the iteration domain.
32875
32876 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
32877
32878         PR tree-optimization/38789
32879         * tree-ssa-threadedge.c
32880         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
32881         __builtin_constant_p.
32882
32883 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
32884
32885         * dce.c (delete_unmarked_insns): Reversed the order that insns are
32886         examined before deleting them.
32887
32888 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
32889
32890         * function.c (aggregate_value_p): Correctly extract the function
32891         type from CALL_EXPR_FN lookup.
32892
32893 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
32894
32895         * config/picochip/picochip.c (picochip_override_options): Revert
32896         CFI asm flag disable commited previously.
32897
32898 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
32899             Tobias Grosser  <tobi.grosser@amd.com>
32900             Jan Sjodin  <jan.sjodin@amd.com>
32901
32902         * graphite.c (scan_tree_for_params): On substractions negate
32903         all the coefficients of the term.
32904         (clast_to_gcc_expression_red): New.  Handle reduction expressions
32905         of more than two operands.
32906         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
32907         (get_vdef_before_scop): Handle also the case of default definitions.
32908
32909 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
32910
32911         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
32912         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
32913         Also use them when walking CALL_INSN_FUNCTION_USAGE.
32914
32915 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
32916             Joey Ye  <joey.ye@intel.com>
32917
32918         PR middle-end/37843
32919         * cfgexpand.c (expand_stack_alignment): Don't update stack
32920         boundary nor check incoming stack boundary here.
32921         (gimple_expand_cfg): Update stack boundary and check incoming
32922         stack boundary here.
32923
32924 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
32925
32926         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
32927
32928 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
32929
32930         PR rtl-optimization/38245
32931         * calls.c (expand_call): Add stack arguments to
32932         CALL_INSN_FUNCTION_USAGE even for pure calls (when
32933         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
32934         in regs and partially in memory or BLKmode arguments.
32935         (emit_library_call_value_1): Add stack arguments to
32936         CALL_INSN_FUNCTION_USAGE even for pure calls (when
32937         ACCUMULATE_OUTGOING_ARGS).
32938         * dce.c: Include tm_p.h.
32939         (find_call_stack_args): New function.
32940         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
32941         argument.
32942         (mark_insn): Call find_call_stack_args for CALL_Ps.
32943         (prescan_insns_for_dce): Walk insns backwards in bb rather than
32944         forwards.  Allocate and free arg_stores bitmap if needed, pass it
32945         down to deletable_insn_p, don't mark stores set in arg_stores
32946         bitmap, clear the bitmap at the beginning of each bb.
32947         * Makefile.in (dce.o): Depend on $(TM_P_H).
32948
32949 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
32950
32951         PR target/22599
32952         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
32953         to make sure the insn is a conditional test (bug 22599).  Reformat a
32954         few long lines.
32955
32956 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
32957
32958         PR middle-end/38431
32959         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
32960         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
32961         (gloog): Do not call cleanup_tree_cfg.
32962         (graphite_transform_loops): Call cleanup_tree_cfg after all
32963         scops have been code generated.
32964
32965 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
32966         * doc/gty.texi (Invoking the garbage collector): Added new node
32967         and section documenting ggc_collect.
32968
32969 2009-01-14  Richard Guenther  <rguenther@suse.de>
32970
32971         PR tree-optimization/38826
32972         PR middle-end/38477
32973         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
32974         initialization notes only if we actually emitted a warning.
32975         (intra_create_variable_infos): Add constraints for a result decl
32976         that is passed by hidden reference.
32977         (build_pred_graph): Mark all related variables non-direct on
32978         address-taking.
32979
32980 2009-01-14  Nick Clifton  <nickc@redhat.com>
32981
32982         * ira-conflicts.c: Include addresses.h for the definition of
32983         base_reg_class.
32984         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
32985         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
32986
32987 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
32988
32989         PR target/38811
32990         * Makefile.in (ira-lives.o): Add except.h.
32991
32992         * ira-lives.c: Include except.h.
32993         (process_bb_node_lives): Process can_throw_internal.
32994
32995 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
32996
32997         PR rtl-optimization/38774
32998         * combine.c (simplify_set): When undoing cc_use change, don't do
32999         PUT_CODE on the newly created comparison, but instead put back the
33000         old comparison.
33001
33002 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
33003
33004         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
33005         values.  Remove duplicate arm8 entry.
33006
33007 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33008
33009         PR tree-optimization/38786
33010         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
33011         the SSA_NAME case of expand_scalar_variables_expr.
33012         Set the type of an expression to the type of its assign statement.
33013         (expand_scalar_variables_expr): Also gather the scalar computation
33014         used to index the memory access.  Do not pass loop_p.
33015         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
33016         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
33017         the gimple_stmt_iterator where it inserts new code.
33018         Do not pass loop_p.
33019         (copy_bb_and_scalar_dependences): Do not pass loop_p.
33020         (translate_clast): Update call to copy_bb_and_scalar_dependences.
33021
33022 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33023
33024         * graphite.h (debug_value): Removed.
33025         * graphite.c (debug_value): Removed.
33026
33027 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33028
33029         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
33030         ldrd/strd with two 32-bit instructions.
33031
33032 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33033
33034         * config/arm/arm.c (struct processors): Pass for speed down into
33035         cost helper functions.
33036         (const_ok_for_op): Handle COMPARE and inequality nodes.
33037         (arm_rtx_costs_1): Rewrite.
33038         (arm_size_rtx_costs): Update prototype.
33039         (arm_rtx_costs): Pass speed down to helper functions.
33040         (arm_slowmul_rtx_costs): Rework cost calculations.
33041         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
33042         (arm_9e_rtx_costs): Likewise.
33043
33044 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
33045
33046         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
33047         relocations of local symbols wider than UNITS_PER_WORD are not valid.
33048         (alpha_legitimize_address): Do not split local symbols wider than
33049         UNITS_PER_WORD into HIGH/LO_SUM parts.
33050
33051 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
33052
33053         PR bootstrap/38580
33054         * gcc.c (process_command): Replace call to execvp with calls
33055         to pex_one and exit.
33056
33057 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
33058
33059         PR target/29141
33060         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
33061         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
33062         variant for devices with 3-byte PC.
33063         (__tablejump_elpm__): New.
33064
33065 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33066
33067         PR c/32041
33068         * c-parser.c (c_parser_postfix_expression): Allow `->' in
33069         offsetof member-designator, handle it as `[0].'.
33070
33071 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33072
33073         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
33074         function when not using named sections on targets with named sections
33075         if branch distance is less than 262132.
33076
33077 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
33078
33079         * combine.c (combine_instructions):  Recompute
33080         optimize_this_for_speed_p  for each BB in the main combine loop.
33081
33082 2009-01-12  Tomas Bily  <tbily@suse.cz>
33083
33084         PR middlend/38385
33085         * tree-loop-distribution.c (prop_phis): New function.
33086         (generate_builtin): Call prop_phis.
33087
33088 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33089
33090         PR tree-optimization/38807
33091         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
33092         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
33093
33094 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
33095
33096         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
33097         subreg of op0 to the original op0.
33098
33099 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
33100
33101         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
33102
33103 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
33104
33105         PR debug/7055
33106         * mips-tfile.c (parse_def): Fix parsing of def strings
33107         starting with digits.
33108
33109 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
33110
33111         PR target/38695
33112         * config/arm/arm.c (arm_is_long_call_p): Don't call
33113         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
33114
33115 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
33116
33117         * regrename.c (regrename_optimize): Fix dumping.
33118         (find_oldest_value_reg): Preserve REG_POINTER.
33119         (copy_hardreg_forward_1): Likewise.
33120
33121 2009-01-09  Diego Novillo  <dnovillo@google.com>
33122
33123         * gimple.h (struct gimple_statement_base) <uid>: Document
33124         the restrictions on its use.
33125         (gimple_uid): Tidy.
33126         (gimple_set_uid): Tidy.
33127
33128 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33129
33130         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
33131         zero guard even if align_bytes != 0 and count is smaller than
33132         size_needed.
33133
33134 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
33135
33136         PR rtl-optimization/38495
33137         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
33138         (add_range_and_copies_from_move_list): Print all added ranges.
33139         Add ranges to memory optimized destination.
33140
33141 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33142
33143         PR target/38686
33144         PR target/38708
33145         * config/i386/i386.c (override_options): Reject
33146         -mstringop-strategy=rep_8byte with -m32.
33147         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
33148         to 1.  Do count comparison against epilogue_size_needed at compile
33149         time even when count_exp was constant forced into register.  For
33150         size_needed don't jump to epilogue, instead just avoid aligning
33151         and invoke the body algorithm.  If need_zero_guard, add zero guard
33152         even if count is non-zero, but smaller than size_needed + number of
33153         bytes that could be stored for alignment.
33154         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
33155         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
33156         but smaller than size_needed + number of bytes that could be stored
33157         for alignment.  Compare size_needed with epilogue_size_needed instead
33158         of desired_align - align, don't adjust size_needed, pass
33159         epilogue_size_needed to the epilogue expanders.
33160
33161         PR c/35742
33162         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
33163
33164 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33165
33166         * pa.c (last_address): Change to unsigned.
33167         (update_total_code_bytes): Change argument to unsigned.  Don't
33168         check if insn addresses are set.
33169         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
33170         addresses are not set.
33171         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
33172
33173 2009-01-09  Nick Clifton  <nickc@redhat.com>
33174
33175         * config/sh/symbian.c: Replace uses of DECL_INLINE with
33176         DECL_DECLARED_INLINE_P.
33177
33178 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33179
33180         PR middle-end/38347
33181         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
33182         GET_MODE (op0) in operand_subword_force calls.
33183
33184         PR middle-end/38771
33185         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
33186         fold_convert arg0 operands to TREE_TYPE (op0) first.
33187
33188 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
33189
33190         * params.def (ira-max-conflict-table-size): Decrease default value
33191         to 1000.
33192
33193 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
33194
33195         PR tree-optimization/37031
33196         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
33197         on parameter_set.
33198         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
33199         allocate it using gc instead of heap, use VEC_quick_push instead of
33200         VEC_safe_push.
33201         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
33202         instead of heap, use VEC_quick_push instead of VEC_safe_push.
33203         * tree-data-ref.h (struct access_matrix): Change matrix to gc
33204         allocated vector from heap allocated.
33205         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
33206         * tree-loop-linear.c (linear_transform_loops): Allocate nest
33207         vector only after perfect_loop_nest_depth call.
33208
33209 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
33210             Jan Sjodin  <jan.sjodin@amd.com>
33211
33212         PR tree-optimization/38559
33213         * graphite.c (debug_value, copy_constraint,
33214         swap_constraint_variables, scale_constraint_variable, ): New.
33215         (get_lower_bound, get_upper_bound): Removed.
33216         (graphite_trans_bb_strip_mine): Clean up this code that works
33217         only for constant number of iterations.  Fully copy upper and
33218         lower bound constraints, not only the constant part of them.
33219         * graphite.h (debug_value): Declared.
33220
33221 2009-01-08  Ira Rosen  <irar@il.ibm.com>
33222
33223         PR tree-optimization/37194
33224         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
33225         Don't add the cost of cost model guard in prologue to scalar
33226         outside cost in case of known number of iterations.
33227
33228 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
33229             Alan Modra  <amodra@bigpond.net.au>
33230
33231         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
33232         non-word-aligned REG+CONST addressing.
33233
33234 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33235
33236         PR target/38706
33237         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
33238         free_after_compilation when outputting a thunk.
33239         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
33240         Do not call free_after_compilation here.
33241
33242 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33243
33244         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
33245         (ix86_valid_target_attribute_inner_p): Ditto.
33246
33247 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
33248
33249         PR tree-optimization/38492
33250         PR tree-optimization/38498
33251         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
33252         * tree-chrec.h (scev_is_linear_expression): Declared.
33253         * graphite.c (graphite_cannot_represent_loop_niter): New.
33254         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
33255         (graphite_loop_normal_form): Use gcc_assert.
33256         (scan_tree_for_params): Use CASE_CONVERT.
33257         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
33258         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
33259         Use gcc_assert.  Discard scops that contain unhandled cases.
33260         (build_scop_conditions): Return a boolean status for unhandled cases.
33261         (strip_mine_profitable_p): Print the loop number, not its depth.
33262         (is_interchange_valid): Pass the depth of the loop nest, don't
33263         recompute it wrongly.
33264         (graphite_trans_bb_block): Same.
33265         (graphite_trans_bb_block): Print tentative of loop blocking.
33266         (graphite_trans_scop_block): Do not print that the loop has been
33267         blocked.
33268         (graphite_transform_loops): Do not handle scops that contain condition
33269         scalar phi nodes.
33270
33271 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
33272
33273         AVX Programming Reference (December, 2008)
33274         * config/i386/avxintrin.h (_mm256_stream_si256): New.
33275         (_mm256_stream_pd): Likewise.
33276         (_mm256_stream_ps): Likewise.
33277
33278         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
33279         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
33280         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
33281         (bdesc_special_args): Add __builtin_ia32_movntdq256,
33282         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
33283         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
33284         (ix86_expand_special_args_builtin): Likewise.
33285
33286         * config/i386/sse.md (AVXMODEDI): New.
33287         (avx_movnt<mode>): Likewise.
33288         (avx_movnt<mode>): Likewise.
33289         (<sse>_movnt<mode>): Remove AVX support.
33290         (sse2_movntv2di): Likewise.
33291
33292 2009-01-07  Richard Guenther  <rguenther@suse.de>
33293
33294         PR middle-end/38751
33295         * fold-const.c (extract_muldiv): Remove obsolete comment.
33296         (fold_plusminus_mult_expr): Undo MINUS_EXPR
33297         to PLUS_EXPR canonicalization for the canonicalization.
33298
33299 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
33300
33301         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
33302         hosted cross-compilers generating less efficient code.
33303
33304 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33305
33306         * function.h (rtl_data): Add a dbr_scheduled_p field.
33307         * reorg.c (dbr_schedule): Set it.
33308         (gate_handle_delay_slots): Check it.
33309         * config/mips/mips.c (mips_base_delayed_branch): Delete.
33310         (mips_reorg): Check flag_delayed_branch instead of
33311         mips_base_delayed_branch.
33312         (mips_override_options): Don't set mips_base_delayed_branch
33313         or flag_delayed_branch.
33314
33315 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33316
33317         PR rtl-optimization/38426.
33318         * ira.c (ira): Set current_function_is_leaf earlier.
33319
33320 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
33321
33322         PR rtl-optimization/38722
33323         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
33324         too early, only set a flag and modify after last possible
33325         undo_all point.
33326
33327 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
33328
33329         PR c/34252
33330         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
33331         * real.c (decimal_single_format): Correct values of emin and emax.
33332         (decimal_double_format): Ditto.
33333         (decimal_quad_format): Ditto.
33334         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
33335         computation of DECnn_MIN and DECnn_MAX for corrected values of
33336         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
33337         __DECnn_MIN__, and adjust its computation for the corrected value
33338         of emin.
33339
33340 2009-01-06  Jan Hubicka  <jh@suse.cz>
33341
33342         PR target/38744
33343         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
33344
33345 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
33346
33347         * doc/contrib.texi (Contributors): Slightly adjust the end note.
33348         Add Robert Clark to the list of testers.
33349
33350 2009-01-06  Jan Hubicka  <jh@suse.cz>
33351             Kai Tietz  <kai.tietz@onevision.com>
33352
33353         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
33354         * config/i386/i386.c (ix86_expand_call): Add clobbers.
33355
33356 2009-01-06  Jan Hubicka  <jh@suse.cz>
33357             Kai Tietz  <kai.tietz@onevision.com>
33358
33359         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
33360         for w64 ABI.
33361         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
33362         (ix86_nsaved_regs): Count only general purpose regs.
33363         (ix86_nsaved_sseregs): New.
33364         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
33365         to 16 for w64; compute padding and size of sse reg save area.
33366         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
33367         general purpose regs.
33368         (ix86_emit_save_sse_regs_using_mov): New.
33369         (ix86_expand_prologue): Save SSE regs if needed.
33370         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
33371         (ix86_emit_restore_sse_regs_using_mov): New.
33372         (ix86_expand_epilogue): Save SSE regs if needed.
33373
33374 2009-01-06  Jan Hubicka  <jh@suse.cz>
33375             Kai Tietz  <kai.tietz@onevision.com>
33376
33377         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
33378         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
33379         functions when accumulate outgoing args is off.
33380
33381 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33382
33383         PR bootstrap/38742
33384         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
33385         before using pseudos_have_intersected_live_ranges_p.
33386
33387         * ira-int.h (ira_assert): Always define.
33388
33389 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33390
33391         AVX Programming Reference (December, 2008)
33392         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
33393         (_mm256_permute2_pd): Likewise.
33394         (_mm_permute2_ps): Likewise.
33395         (_mm256_permute2_ps): Likewise.
33396         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
33397         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
33398
33399         * config/i386/i386.c (ix86_builtins): Remove
33400         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
33401         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
33402         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
33403         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
33404         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
33405         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
33406         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
33407         __builtin_ia32_vpermil2ps256.
33408         (ix86_init_mmx_sse_builtins): Updated.
33409         (ix86_expand_args_builtin): Likewise.
33410
33411 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33412
33413         * pa.c (output_call): Relocate non-jump insns in the delay slot of
33414         long absolute calls when generating PA 2.0 code.
33415
33416 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
33417
33418         PR rtl-optimization/38583
33419         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
33420
33421         * params.def (ira-max-conflict-table-size): New.
33422
33423         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
33424
33425         * ira.h (ira_conflicts_p): New external definition.
33426
33427         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
33428         table.  Report this.  Return result of building.
33429         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
33430         building conflict table.
33431
33432         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
33433         (ira_color): Use ira_conflicts_p.
33434
33435         * global.c: Include ira.h.
33436         (pseudo_for_reload_consideration_p, build_insn_chain): Use
33437         ira_conflicts_p.
33438
33439         * Makefile.in (global.o): Add ira.h.
33440
33441         * ira-build.c (mark_all_loops_for_removal,
33442         propagate_some_info_from_allocno): New.
33443         (remove_unnecessary_allocnos): Call
33444         propagate_some_info_from_allocno.
33445         (remove_low_level_allocnos): New.
33446         (remove_unnecessary_regions): Add parameter.  Call
33447         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
33448         parameter to remove_unnecessary_regions.
33449         (ira_build): Remove all regions but root if the conflict table was
33450         not built.  Update conflict hard regs for allocnos crossing calls.
33451
33452         * ira.c (ira_conflicts_p): New global.
33453         (ira): Define and use ira_conflicts_p.
33454
33455         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33456         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
33457         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
33458
33459 2009-01-06  Ben Elliston  <bje@au.ibm.com>
33460
33461         * gengtype-lex.l (YY_NO_INPUT): Define.
33462
33463 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33464
33465         PR c/34911
33466         * c-common.c (handle_vector_size_attribute): Also reject
33467         BOOLEAN_TYPE types.
33468
33469 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
33470
33471         PR tree-optimization/38492
33472         * graphite.c (rename_map_elt, debug_rename_elt,
33473         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
33474         rename_map_elt_info, eq_rename_map_elts,
33475         get_new_name_from_old_name, bb_in_sese_p): Moved around.
33476         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
33477         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
33478         (sese_build_livein_liveouts): New.
33479         (new_sese, free_sese): New.
33480         (new_scop): Call new_sese.
33481         (free_scop): Call free_sese.
33482         (rename_variables_from_edge, rename_phis_end_scop): Removed.
33483         (register_old_new_names): Renamed register_old_and_new_names.
33484         (register_scop_liveout_renames, add_loop_exit_phis,
33485         insert_loop_close_phis, struct igp,
33486         default_liveout_before_guard, add_guard_exit_phis,
33487         insert_guard_phis, copy_renames): New.
33488         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
33489         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
33490         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
33491         (scop_adjust_phis_for_liveouts): New.
33492         (gloog): Call scop_adjust_phis_for_liveouts.
33493
33494         * graphite.h (struct sese): Documented.  Added fields liveout,
33495         num_ver and livein.
33496         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
33497         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
33498         (struct scop): Added field liveout_renames.
33499         (SCOP_LIVEOUT_RENAMES): New.
33500
33501 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33502
33503         PR tree-optimization/38510
33504         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
33505         (translate_clast): Call recompute_all_dominators before
33506         graphite_verify.
33507         (gloog): Call recompute_all_dominators before graphite_verify.
33508
33509 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33510             Jan Sjodin  <jan.sjodin@amd.com>
33511
33512         PR tree-optimization/38500
33513         * graphite.c (create_sese_edges): Call fix_loop_structure after
33514         splitting blocks.
33515
33516 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
33517
33518         * config.gcc: Add m32r*-*-rtems*.
33519         * config/m32r/rtems.h: New file.
33520
33521 2009-01-05  Ben Elliston  <bje@au.ibm.com>
33522
33523         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
33524         (.po.pox): Likewise.
33525         (po/gcc.pot): Likewise.
33526
33527 2009-01-04  David S. Miller  <davem@davemloft.net>
33528
33529         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
33530         (STARTING_FRAME_OFFSET): Always set to zero.
33531
33532 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33533
33534         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
33535         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
33536         fixed-point types, and vectors of the same.
33537
33538 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33539
33540         * config/mips/sync.md (*mb_barrier): Rename to...
33541         (*memory_barrier): ...this.
33542
33543 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
33544
33545         * doc/extend.texi (Function Attributes): Move @cindex after @item
33546         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
33547         and put in alphabetical order. Fix 'target' name and put in order.
33548         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
33549         typos.
33550
33551 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
33552
33553         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
33554         (memory_barrier): Expand as unspec instead of unspec_volatile.
33555         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33556         (*memory_barrier): Define as unspec instead of unspec_volatile.
33557         Use (match_dup 0) as input operand.
33558
33559         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
33560         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
33561         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
33562         scratch register.  Remove operand 1.
33563         (*stbar): Define as unspec instead of unspec_volatile.
33564         Use (match_dup 0) as input operand, remove (const_int 8).
33565         (*membar): Define as unspec instead of unspec_volatile.
33566         Use (match_dup 0) as input operand, remove input operand 2.
33567
33568         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
33569         (memory_barrier): Expand as unspec instead of unspec_volatile.
33570         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33571         (*memory_barrier): Define as unspec instead of unspec_volatile.
33572         Use (match_dup 0) as input operand.
33573
33574         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
33575         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33576         Set volatile flag on operand 0.
33577         (*memory_barrier): New insn pattern.
33578
33579         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
33580         insn operands.
33581         (*memory_barrier): Use (match_dup 0) as input operand.
33582
33583         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
33584         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33585         Set volatile flag on operand 0.
33586         (*mb_internal): New insn pattern.
33587
33588         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
33589
33590 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33591
33592         PR middle-end/38586
33593         * function.c (struct temp_slot): Move to the section of the file
33594         that deals with temp slots.  Remove field 'address'.
33595         (temp_slot_address_table): New hash table of address -> temp slot.
33596         (struct temp_slot_address_entry): New struct, items for the table.
33597         (temp_slot_address_compute_hash, temp_slot_address_hash,
33598         temp_slot_address_eq, insert_temp_slot_address): Support functions
33599         for the new table.
33600         (find_temp_slot_from_address): Rewrite to use the new hash table.
33601         (remove_unused_temp_slot_addresses): Remove addresses of temp
33602         slots that have been made available.
33603         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
33604         worker function for remove_unused_temp_slot_addresses.
33605         (assign_stack_temp_for_type): Don't clear the temp slot address list.
33606         Add the temp slot address to the address -> temp slot map.
33607         (update_temp_slot_address): Update via insert_temp_slot_address.
33608         (free_temp_slots): Call remove_unused_temp_slot_addresses.
33609         (pop_temp_slots): Likewise.
33610         (init_temp_slots): Allocate the address -> temp slot map, or empty
33611         the map if it is already allocated.
33612         (prepare_function_start): Initialize temp slot processing.
33613
33614 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33615
33616         PR middle-end/38584
33617         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
33618         Calculate the size of all stack vars assuming no packing of stack
33619         vars will happen, replacing a quadratic algorithm with a linear one.
33620
33621 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33622
33623         PR target/38707
33624         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
33625         can't be used.
33626
33627 2009-01-03  Diego Novillo  <dnovillo@google.com>
33628
33629         * doc/contrib.texi: Update contributions.
33630
33631 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33632
33633         PR c++/38705
33634         * builtins.c (fold_builtin_memory_op): Give up if either operand
33635         is volatile.  Set srctype or desttype to non-qualified version
33636         of the other type.
33637
33638         PR c/38700
33639         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
33640         and FUNCTION_DECLs.
33641
33642 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
33643
33644         PR rtl-optimization/35805
33645         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
33646         problem if fast dce is able to remove any instructions.
33647         * dce.c (dce_process_block): Fix dump message.
33648
33649 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
33650
33651         PR 33649
33652         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
33653
33654 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
33655
33656         PR middle-end/38690
33657         * tree-flow.h (op_code_prio, op_prio): New prototypes.
33658         * tree-pretty-print.c (op_code_prio): New function.
33659         (op_prio): No longer static.  Use op_code_prio.
33660         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
33661         Use op_prio and op_code_prio to determine if () should be
33662         printed around operand(s) or not.
33663
33664         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
33665         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
33666         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
33667         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
33668         pp_character instead of pp_string for single letter printing.
33669
33670 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33671
33672         * doc/extend.texi: Fix '#pragma GCC option' typo.
33673
33674 2009-01-02  Richard Guenther  <rguenther@suse.de>
33675
33676         * doc/install.texi (--enable-checking): Mention different
33677         default for stage1.
33678         (--enable-stage1-checking): Document.
33679
33680 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
33681
33682         PR middle-end/30142
33683         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
33684         case to be an error.
33685
33686 2009-01-02  Ben Elliston  <bje@au.ibm.com>
33687
33688         * config/fp-bit.h (pack_d): Constify argument.
33689         * config/fp-bit.c (makenan): Constify return type. Remove casts.
33690         (isnan): Constify argument.
33691         (isinf): Likewise.
33692         (iszero): Likewise.
33693         (pack_d): Likewise.
33694         (_fpadd_parts): Constify return type.
33695         (_fpmul_parts): Likewise.
33696         (_fpdiv_parts): Likewise.
33697
33698 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
33699
33700         PR c/36489
33701         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
33702         warn about overwriting initializer with side-effects or
33703         -Woverride-init if !IMPLICIT.
33704         (output_init_element): Likewise.  Pass IMPLICIT down to
33705         add_pending_init.
33706         (process_init_element): Add IMPLICIT argument.  Pass it down
33707         to output_init_element.
33708         (push_init_element, pop_init_level, set_designator): Adjust
33709         process_init_element callers.
33710         (set_nonincremental_init, set_nonincremental_init_from_string):
33711         Adjust add_pending_init callers.
33712         (output_pending_init_elements): Adjust output_init_element callers.
33713         * c-tree.h (process_init_element): Adjust prototype.
33714         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
33715         process_init_element callers.
33716
33717 \f
33718 Copyright (C) 2009 Free Software Foundation, Inc.
33719
33720 Copying and distribution of this file, with or without modification,
33721 are permitted in any medium without royalty provided the copyright
33722 notice and this notice are preserved.