OSDN Git Service

2009-12-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-12-02  Richard Guenther  <rguenther@suse.de>
2
3         * fold-const.c (div_if_zero_remainder): Honor that sizetypes
4         are sign-extending.  Simplify.
5
6 2009-12-02  Richard Henderson  <rth@redhat.com>
7
8         PR tree-opt/42215
9         * tree-loop-distribution.c (build_size_arg_loc): Tidy.
10         (generate_memset_zero): Convert to sizetype properly.  Tidy.
11
12 2009-12-02  Richard Guenther  <rguenther@suse.de>
13
14         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
15         Do not pretend we have value exprs.
16
17 2009-12-02  Richard Guenther  <rguenther@suse.de>
18
19         PR middle-end/41491
20         * fold-const.c (try_move_mult_to_index): Do not leak
21         domain types into the IL.
22
23 2009-12-02  Richard Guenther  <rguenther@suse.de>
24
25         PR middle-end/42088
26         * tree.c (free_lang_data): Disable if not using LTO.
27
28 2009-12-02  Richard Guenther  <rguenther@suse.de>
29
30         PR middle-end/42229
31         * cfgloopmanip.c (remove_path): Avoid cancelling loops
32         twice.
33
34 2009-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35
36         PR middle-end/42224
37         * tree.h (int_or_pointer_precision): Remove.
38         * tree.c (int_or_pointer_precision): Remove.
39         (integer_pow2p): Use TYPE_PRECISION instead.
40         (tree_log2): Likewise.
41         (tree_floor_log2): Likewise.
42         (signed_or_unsigned_type_for): Likewise.
43         * fold-const.c (fit_double_type): Likewise.
44         * varasm.c (initializer_constant_valid_p): Likewise.
45
46 2009-12-02  Ira Rosen  <irar@il.ibm.com>
47
48         * doc/invoke.texi (-fdump-tree-slp): Document.
49         (-ftree-vectorizer-verbose): Update.
50         (-ftree-slp-vectorize): Document.
51
52 2009-12-02  Nick Clifton  <nickc@redhat.com>
53
54         * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
55         no fixed registers are available for interrupt handlers.  Do not
56         fix normal registers.
57         (MUST_SAVE_ACC_REGISTER): New macro.
58         (rx_get_stack_layout): Create a stack frame for fast interrupt
59         handlers, if necessary.  Push extra registers if needed in order
60         to save the accumulator.
61         (rx_expand_prologue): Create a stack frame for fast interrupt
62         handlers, if necessary.
63         (rx_expand_builtin_mvfc): Handle the case where there is no
64         target.
65
66 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
67
68         * config/i386/abmintrin.h (__lzcnt16): New.
69         (__lzcnt): New.
70         (__lzcnt64): New.
71         * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
72         * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
73         (bdesc_special_args): Add __builtin_clzs.
74         (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
75
76 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
77
78         * config/i386/abmintrin.h (_mm_popcnt_u32): New.
79         (_mm_popcnt_u64): New.
80
81 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
82
83         * config/i386/abmintrin.h: New.
84         * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
85         * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
86
87 2009-12-01  Uros Bizjak  <ubizjak@gmail.com>
88
89         * config/i386/i386.md (SWI124): Rename from CRC32MODE.
90         (crc32modesuffix): Remove.
91         (crc32modeconstraint): Ditto.
92         (sse4_2_crc32<mode>): Update for renamed mode iterator.  Use
93         imodesuffix instead of crc32modesuffix and <r>m instead of
94         crc32modeconstraint.
95
96 2009-12-01  Jakub Jelinek  <jakub@redhat.com>
97
98         PR c++/42234
99         * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
100         contains no statements.
101
102 2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
103             Joern Rennecke  <amylaar@spamcop.net>
104
105         * cgraphunit.c (plugin.h): Include.
106         (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
107         PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
108         * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
109         (enum plugin_event): Define by including plugin.def.
110         Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
111         (plugin_event_name): Change type to const char **.
112         (get_event_last, get_named_event_id, unregister_callback): Declare.
113         (register_callback): Change type of event argument to int.
114         (highlev-plugin-common.h): New file.
115         * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
116         $(HASHTAB_H)
117         (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
118         (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
119         (s-header-vars): New rule.
120         (install-plugin): Depend on s-header-vars.  Install b-header-vars.
121         * params.c (get_num_compiler_params): New function.
122         * params.h (get_num_compiler_params): Declare.
123         * passes.c (plugin.h): Include.
124         (make_pass_instance): Invoke PLUGIN_NEW_PASS.
125         (do_per_function_toporder, pass_init_dump_file): No longer static.
126         (pass_fini_dump_file): Likewise.
127         (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
128         PLUGIN_PASS_EXECUTION.
129         (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
130         PLUGIN_EARLY_GIMPLE_PASSES_END.
131         * plugin.c (plugin_event_name_init): New array, defined by
132         including plugin.def.
133         (FMT_FOR_PLUGIN_EVENT): Update.
134         (plugin_event_name): Change type to const char ** and initialize
135         to plugin_event_name_init.
136         (event_tab, event_last, event_horizon): New variable.
137         (get_event_last): New function.
138         (plugin_callbacks_init): New array.
139         (plugin_callbacks: Change type to struct callback_info **.
140         Initialize to plugin_callbacks_init.
141         (htab_event_eq, get_named_event_id, unregister_callback): New function.
142         (invoke_plugin_va_callbacks): Likewise.
143         (register_callback): Change type of event argument to int.
144         Handle new events.  Allow dynamic events.
145         (invoke_plugin_callbacks): Likewise.  Return success status.
146         (plugins_active_p): Allow dynamic callbacks.
147         * plugin.def: New file.
148         * plugin.h (invoke_plugin_callbacks): Update prototype.
149         (invoke_plugin_va_callbacks): Declare.
150         * tree-optimize.c (plugin.h): Include.
151         (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
152         PLUGIN_ALL_PASSES_END.
153         * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
154         (pass_fini_dump_file, do_per_function_toporder): Likewise.
155         * doc/plugin.texi: Document new event types.
156
157 2009-12-01  Martin Jambor  <mjambor@suse.cz>
158
159         PR tree-optimization/42237
160         * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
161         in between references into two.
162
163 2009-12-01  Richard Guenther  <rguenther@suse.de>
164
165         * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
166         to the block of the call when remapping a type.
167
168 2009-12-01  Martin Jambor  <mjambor@suse.cz>
169
170         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
171         unsigned short int.
172         * ipa-prop.h (struct ipa_param_call_note): Likewise.
173         * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
174
175 2009-12-01  Richard Guenther  <rguenther@suse.de>
176
177         * final.c (rest_of_clean_state): If -fcompare-debug is
178         given dump final insns without UIDs.
179         * tree-ssa-live.c (remove_unused_scope_block_p): Remove
180         after_inlining checks.
181
182 2009-11-30  Chao-ying Fu  <fu@mips.com>
183
184         * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
185
186 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
187
188         * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
189         status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
190         * configure: Regenerate.
191         * config.in: Regenerate.
192
193         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
194         options for Cygwin DLL libstdc++ support wrappers.
195         (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
196         according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
197         (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
198         whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
199         (LINK_SPEC): Include CXX_WRAP_SPEC.
200         * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
201         (i386_find_on_wrapper_list): Check if a function is found on the list
202         of libstdc++ wrapper options.
203         (i386_pe_file_end): If we are importing a wrapped function, also emit
204         an external declaration for the real version.
205         * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
206         Cygwin targets. Update copyright year.
207
208 2009-11-30  Steve Ellcey  <sje@cup.hp.com>
209             Jakub Jelinek <jakub@redhat.com>
210
211         * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
212         before forcing mode.
213
214 2009-11-30  Anatoly Sokolov  <aesok@post.ru>
215
216         * config/sh/sh.c (sh_promote_prototypes): Make static.
217         (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
218         functions.
219         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
220         * config/sh/sh.h: (FUNCTION_VALUE_REGNO_P): Redefine, use
221         sh_function_value_regno_p.
222         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
223         * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
224         (sh_promote_prototypes) : Remove.
225
226 2009-11-30  Julian Brown  <julian@codesourcery.com>
227
228         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
229         reloads to LO_REGS.
230
231 2009-11-30  Richard Henderson  <rth@redhat.com>
232
233         * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
234         (bdesc_special_args): Update insn codes.
235         (avx_vpermilp_parallel): Correct range check.
236         (ix86_rtx_costs): Handle vector permutation rtx codes.
237         (struct expand_vec_perm_d): Move earlier.
238         (get_mode_wider_vector): New.
239         (expand_vec_perm_broadcast_1): New.
240         (ix86_expand_vector_init_duplicate): Use it.  Tidy AVX modes.
241         (expand_vec_perm_broadcast): New.
242         (ix86_expand_vec_perm_builtin_1): Use it.
243         * config/i386/i386-protos.h: Update.
244         * config/i386/predicates.md (avx_vbroadcast_operand): New.
245         * config/i386/sse.md (AVX256MODE24P): New.
246         (ssescalarmodesuffix2s): New.
247         (avxhalfvecmode, avxscalarmode): Fill out to all modes.
248         (avxmodesuffixf2c): Add V8SI, V4DI.
249         (vec_dupv4sf): New expander.
250         (*vec_dupv4sf_avx): Add vbroadcastss alternative.
251         (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
252         V4SF and V4SI.  Move C alternatives to front.  Add insertps and
253         pinsrd alternatives.
254         (*vec_set<mode>_0_sse2): Split out from ...
255         (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
256         (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
257         destination; use ix86_vec_interleave_v2df_operator_ok, instead of
258         ix86_fixup_binary_operands.
259         (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
260         (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
261         (*avx_movddup, *sse3_movddup): Remove.  New splitter from
262         vec_select form to vec_duplicate form.
263         (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
264         ix86_vec_interleave_v2df_operator_ok.
265         (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
266         (*avx_unpcklpd256): ... here.
267         (*vec_dupv4si_avx): New.
268         (*vec_dupv2di_avx): Add movddup alternative.
269         (*vec_dupv2di_sse3): New.
270         (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
271         avx_vbroadcastss256; represent with vec_duplicate instead of
272         nested vec_concat operations.
273         (avx_vbroadcastf128_<mode>): Rename from
274         avx_vbroadcastf128_p<avxmodesuffixf2c>256.
275         (*avx_vperm_broadcast_v4sf): New.
276         (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
277
278 2009-11-30  Martin Jambor  <mjambor@suse.cz>
279
280         PR middle-end/42196
281         * tree-sra.c (struct access): New field grp_different_types.
282         (dump_access): Dump grp_different_types.
283         (compare_access_positions): Prefer scalars and vectors over other
284         scalar types.
285         (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
286         (sra_modify_expr): Use the original also when dealing with a complex
287          or vector group accessed as multiple types.
288
289 2009-11-30  Richard Henderson  <rth@redhat.com>
290
291         * config/i386/i386.c (avx_vperm2f128_parallel): New.
292         * config/i386/i386-protos.h: Declare it.
293         * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
294         avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
295         * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
296         (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
297         (*avx_vperm2f128<mode>_nozero): New.
298
299 2009-11-30  Richard Henderson  <rth@redhat.com>
300
301         * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
302         (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
303         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
304         V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
305         (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
306         (bdesc_args): Add them.
307         (ix86_expand_builtin): Expand them.
308         (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
309
310 2009-11-30  Martin Jambor  <mjambor@suse.cz>
311
312         PR middle-end/42206
313         * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
314
315 2009-11-30  Jakub Jelinek  <jakub@redhat.com>
316
317         * ipa-reference.c (propagate): Only dump bitmaps if computed.
318
319 2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>
320
321         PR middle-end/39806
322         * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
323         (new_var_hash): Likewise.
324         (is_in_new_vars_htab): Likewise.
325         (add_to_new_vars_htab): Likewise.
326
327 2009-11-30  Ira Rosen  <irar@il.ibm.com>
328
329         * tree-vect-stmts.c (vectorizable_assignment): Support
330         multiple types.
331
332 2009-11-30  Richard Guenther  <rguenther@suse.de>
333
334         * doc/contrib.texi (Contributors): Add myself.
335
336 2009-11-30  Richard Guenther  <rguenther@suse.de>
337
338         * tree.c (free_lang_data): Do not set debug_info_level to
339         none if terse.
340
341 2009-11-30  Richard Guenther  <rguenther@suse.de>
342
343         PR middle-end/42119
344         PR fortran/38530
345         * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
346         of CONST_DECLs.
347
348 2009-11-30  Richard Guenther  <rguenther@suse.de>
349
350         * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
351         variable UID order.
352
353 2009-11-30  Richard Guenther  <rguenther@suse.de>
354
355         * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
356         * tree-pass.h (TDF_NOUID): Likewise.
357         * print-rtl.c: Include tree-pass.h.
358         (print_mem_expr): Pass dump_flags.
359         (print_rtx): Likewise.
360         * print-tree.c: Include tree-pass.h.
361         (print_node_brief): Handle TDF_NOUID.
362         (print_node): Likewise.
363         * tree-pretty-print.c (dump_decl_name): Likewise.
364         (dump_generic_node): Likewise.
365         * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
366         dependency.
367
368 2009-11-30  Nick Clifton  <nickc@redhat.com>
369
370         * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
371         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
372         stormy16-lib2-count-leading-zeros.c.
373         * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
374         __stormy16_count_leading_zeros() into this function.
375         (__ctzhi2): Use __builtin_clz.
376         (__ffshi2): Likewise.
377
378 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
379
380         * config/sparc/sparc.c (DF_MODES): Simplify.
381         (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
382         (TF_MODES, OF_MODES): Adjust for above change.
383         (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
384         *  config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
385
386 2009-11-30  Paolo Bonzini  <bonzini@gnu.org>
387
388         PR rtl-optimization/41812
389         * fwprop.c (local_md, local_lr): New globals.
390         (process_defs, process_uses): Remove local_md argument.  Never
391         consider dead pseudos to have singleton def-use chains.
392         (single_def_use_enter_block): Perform LR simulation.
393         (build_single_def_use_links): Remove local_md local variable.
394         Add DF_NOTE.  Allocate local_lr.
395         (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
396         * df-problems.c (df_md_scratch): New.
397         (df_md_alloc, df_md_free): Allocate/free it.
398         (df_md_local_compute): Only include live registers in init.
399         (df_md_transfer_function): Prune the in-set computed by
400         the confluence function, and the gen-set too.
401
402 2009-11-30  Hans-Peter Nilsson  <hp@axis.com>
403
404         PR rtl-optimization/40086
405         * reorg.c (relax_delay_slots): When looking for redundant insn at
406         the branch target, use next_real_insn, not next_active_insn.
407
408 2009-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
409
410         * doc/install.texi: Update minimum MPC version to 0.8.
411
412 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
413
414         * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
415         HONOR_SIGNED_ZEROS final condition.
416         (fnmsubsf4_powerpc_1): Same.
417         (fnmadddf4_fpr_1): Same.
418         (fnmsubdf4_fpr_1): Same.
419
420 2009-11-29  Ira Rosen  <irar@il.ibm.com>
421
422         PR tree-optimization/42193
423         * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
424         to 1 in case of basic block SLP.
425         (vectorizable_load): Likewise.
426
427 2009-11-28  Jan Hubicka  <jh@suse.cz>
428
429         * cgraph.c (same_body_alias_1): Break out of
430         (same_body_alias): ... here; remove comdat check; it is handled
431         in cp already.
432         (cgraph_add_thunk): New.
433         (dump_cgraph_node): Dump aliases and thunks.
434         * cgraph.h (cgraph_thunk_info): New structure.
435         (struct cgraph_node): Add thunk info.
436         (cgraph_add_thunk): New.
437         * cgraphunit.c (cgraph_emit_thunks): Remove.
438         (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
439         (assemble_thunk): New function.
440         (cgraph_expand_function): Handle thunks.
441         (thunk_adjust): New.
442         (init_lowered_empty_function): New.
443         * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
444         Remove.
445         * lto-cgraph.c (lto_output_node): Stream thunk info.
446         (input_node): Likewise.
447         * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
448         * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
449         (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
450         * i386.c (x86_output_mi_thunk): Make output prettier.
451
452 2009-11-28  Richard Guenther  <rguenther@suse.de>
453
454         PR tree-optimization/42183
455         * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
456         address taken.  Merge the addressable state of the NRV
457         variable and the result instead of copying it.
458
459 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
460
461         * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
462         malloc_fname variable.
463         (check_allocation_function): Remove unused gsi and bb_level_0
464         variables.
465         (transform_access_sites): Remove unused d_type_size and d_type_size_k
466         variables.
467         * omega.c (resurrect_subs): Remove unused n variable.
468         (omega_solve_geq): Remove unused neweqns variable.
469         * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
470         * tree-inline.c (declare_return_variable): Remove USE_P argument,
471         return use instead of var.
472         (remap_decl, remap_block): Remove unused fn variable.
473         (expand_call_inline): Remove unused retvar variable, adjust
474         declare_return_variable caller.
475         (optimize_inline_calls): Remove unused prev_fn variable.
476         * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
477         variable.
478         (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
479         variables.
480         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
481         properly.
482         * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
483         variable.
484         (vect_create_epilog_for_reduction): Remove unused bytesize variable.
485         * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
486         parameter.  Remove unused par_stmt variable.
487         (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
488         (expand_omp_sections): Remove unused l1 variable.
489         (lower_omp_for): Remove unused ilist variable.
490         * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
491         Remove unused has_upstream_mem_write_p variable.
492         * recog.c (decode_asm_operands): Remove unused noperands variable.
493         * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
494         size2 variable.
495         * libgcov.c (__gcov_merge_delta): Remove unused last variable.
496         * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
497         base_nm variable.
498         (gen_conditions_for_pow): Remove unused ec variable.
499         * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
500         variable.
501         * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
502         fndecl variable.
503         * tree-ssa-sink.c (statement_sink_location): Remove unused code
504         variable.
505         * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
506         variables.
507         * tree-complex.c (create_one_component_var): Remove unused inner_type
508         variable.
509         * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
510         unnecessarily when GEN_*CALL omits that argument.
511         * regrename.c (regrename_optimize): Remove unused regs_seen variable.
512         (build_def_use): Remove unused icode variable.
513         * ipa-pure-const.c (check_call): Remove unused callee and avail
514         variables.
515         * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
516         * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
517         variable.
518         (vect_pattern_recog): Remove unused stmt variable.
519         * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
520         new_regions variable.
521         * postreload.c (reload_cse_simplify_operands): Remove unused mode
522         variable.
523         * tree-parloops.c (create_call_for_reduction_1): Remove unused
524         addr_type variable.
525         (create_parallel_loop): Remove unused res variable.
526         (gen_parallel_loop): Remove unused nloop variable.
527         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
528         * value-prof.c (gimple_mod_subtract_transform,
529         gimple_stringops_transform): Remove unused value variable.
530         (gimple_stringops_values_to_profile): Remove unused fcode variable.
531         * tree-vrp.c (register_new_assert_for): Remove unused found variable.
532         (vrp_visit_switch_stmt): Remove unused n variable.
533         * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
534         variable.
535         (vectorizable_operation): Remove unused shift_p variable.
536         (vectorizable_store): Remove unused first_stmt_vinfo variable.
537         * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
538         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
539         variable.
540         (vect_permute_store_chain): Remove unused scalar_dest variable.
541         (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
542         variable.
543         * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
544         local_info variable.
545         * tree-optimize.c (tree_rest_of_compilation): Remove unused node
546         variable.
547         * optabs.c (expand_binop): Remove unused equiv_value variable.
548         (emit_libcall_block): Remove unused prev variable.
549         (init_optabs): Remove unused int_mode variable.
550         * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
551         variable.
552         (do_structure_copy): Remove unused lhsbase and rhsbase variables.
553         (find_func_aliases): Remove unused rhstype variable.
554         (ipa_pta_execute): Remove unused varid variable.
555
556 2009-11-28  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
557
558         * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
559
560 2009-11-28  David Binderman  <dcb314@hotmail.com>
561
562         * ira-color.c (put_allocno_into_bucket): Remove set but not used
563         local variable hard_regs_num.
564         * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
565         * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
566         * lower-subreg.c (decompose_multiword_subregs): Remove next.
567
568 2009-11-27  Martin Jambor  <mjambor@suse.cz>
569
570         PR middle-end/42006
571         * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
572         instead of create_tmp_var.  Set DECL_GIMPLE_REG_P to one manually
573         for vector and complex types.
574         (get_adjustment_for_base): Describe return value in the comment.
575
576 2009-11-27  Nick Clifton  <nickc@redhat.com>
577
578         * longlong.h (count_leading_zeros): Define macro for stormy16 target.
579         (COUNT_LEADING_ZEROS_0): Likewise.
580         * config/stormy16/stormy16-lib2.c: Arrange for separate
581         compilation of each function.
582         (__ffshi2): New function.
583         (__stormy16_count_leading_zeros): New function.
584         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
585         compile each function into its own object file.
586         (stormy16-lib2-ashlsi3.c): New stub file.
587         (stormy16-lib2-ashrsi3.c): New stub file.
588         (stormy16-lib2-clzhi2.c): New stub file.
589         (stormy16-lib2-count-leading-zeros.c): New stub file.
590         (stormy16-lib2-ctzhi2.c): New stub file.
591         (stormy16-lib2-divsi3.c): New stub file.
592         (stormy16-lib2-ffshi2.c): New stub file.
593         (stormy16-lib2-lshrsi3.c): New stub file.
594         (stormy16-lib2-modsi3.c): New stub file.
595         (stormy16-lib2-parityhi2.c): New stub file.
596         (stormy16-lib2-popcounthi2.c): New stub file.
597         (stormy16-lib2-udivmodsi4.c): New stub file.
598         (stormy16-lib2-udivsi3.c): New stub file.
599         (stormy16-lib2-umodsi3.c): New stub file.
600
601 2009-11-27  Richard Henderson  <rth@redhat.com>
602
603         * config/i386/sse.md (vec_interleave_highv16qi,
604         vec_interleave_lowv16qi, vec_interleave_highv8hi,
605         vec_interleave_lowv8hi, vec_interleave_highv4si,
606         vec_interleave_lowv4si, vec_interleave_highv2di,
607         vec_interleave_lowv2di, vec_interleave_highv4sf,
608         vec_interleave_lowv4sf, vec_interleave_highv2df,
609         vec_interleave_lowv2df): Remove expanders.
610         (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
611         sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
612         sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
613         Rename to their proper vec_interleave equivalent.  Update all users
614         to the new name.
615         * config/i386/i386.c, config/i386/i386.md: Update all users.
616
617 2009-11-27  Michael Matz  <matz@suse.de>
618
619         PR rtl-optimization/42084
620         * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
621         use it to stop walking.
622         (expand_gimple_cond): Adjust call to above.
623
624 2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
625
626         PR target/41810
627         * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
628         [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
629         __extension__ to allow cast from function pointer to object
630         pointer in C++.
631         * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
632
633 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
634
635         * config/ia64/itanium1.md: Remove.
636         * config/ia64/ia64.md: Do not include it.
637         * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
638         "itanium1", and "merced" from the processor alias table.
639         (clocks, add_cycles): Remove global variables.
640         (ia64_sched_reorder2): Don't set/use them.
641         (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
642         (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
643
644 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
645
646         * config/s390/s390.c (last_scheduled_insn): New variable.
647         (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
648         functions.
649         (s390_sched_reorder, s390_sched_variable_issue): New functions.
650         (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
651         defined.
652
653 2009-11-27  Michael Matz  <matz@suse.de>
654
655         PR c++/41906
656         * tree-eh.c (lower_catch): Stop after expanding a catch-all.
657
658 2009-11-27  Richard Guenther  <rguenther@suse.de>
659
660         * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
661         TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
662         * loop-init.c (pass_rtl_move_loop_invariants): Use
663         TV_LOOP_MOVE_INVARIANTS.
664         (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
665         (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
666         (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
667
668 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
669
670         * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
671
672 2009-11-27  Jakub Jelinek  <jakub@redhat.com>
673
674         * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
675         unused insn variable.
676         * genemit.c (output_peephole2_scratches): Only declare and initialize
677         _regs_allocated if it will be ever used.
678         * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
679         succ_bb variable.
680         (create_empty_loop_on_edge): Remove unused freq and cnt variables.
681         * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
682         variable.
683
684         * opts.c (decode_options): If optimize is bigger than 255,
685         set it to 255.
686
687 2009-11-26  Richard Henderson  <rth@redhat.com>
688
689         * config/i386/sse.md (mulv16qi3): Change back from an expander
690         to an insn-and-split.
691         (mulv4si): Mention AVX not XOP for AVX exception.
692         (*sse2_mulv4si3): Likewise.
693         (mulv2di3): Use vmulld not vpmacsdd for XOP expansion.  Tidy.
694
695 2009-11-26  Bernd Schmidt  <bernd.schmidt@analog.com>
696
697         * cfgexpand (n_stack_vars_conflict): New static variable.
698         (triangular_index): Reduce likelyhood of overflow by performing
699         the division before the multiplication.
700         (resize_stack_vars_conflict): Call fatal_error if overflow
701         occurred in triangular_index.  Update n_stack_vars_conflict.
702
703         PR rtl-opt/38582
704         * regrename.c (struct du_chain): Remove member earlyclobber.
705         (scan_rtx_reg): Don't set it.  Remove argument earlyclobber,
706         all callers changed.
707         (scan_rtx): Remove argument earlyclobber, all callers changed.
708         (hide_operands, restore_operands, record_out_operands): New functions,
709         broken out of build_def_use.
710         (build_def_use): Call them as necessary.
711
712         * regrename.c (struct du_head): New members id, conflicts,
713         hard_conflicts and cannot_rename.
714         (enum scan_actions): Remove terminate_all_read and
715         terminate_overlapping_read; add mark_all_read.
716         (scan_actions_name): Likewise.
717         (du_head_p): New typedef.  Define a vector type for it.
718         (id_to_chain): New static variable.
719         (note_sets, clear_dead_regs): Delete functions.
720         (free_chain_data): New function.
721         (merge_overlapping_regs): Simply walk the conflicts bitmap.
722         Remove argument B, all callers changed.
723         (regrename_optimize): Allocate id_to_chain.  Ignore chains that have
724         the cannot_rename bit set.  Update regno and nregs of a renamed chain.
725         Call free_chain_data when done.
726         (do_replace): Remove death notes when the renamed reg is set in the
727         last insn; add them if not.
728         (mark_conflict, note_sets_clobbers): New static function.
729         (fail_current_block, current_id, open_chains_set, live_hard_regs): New
730         static variables.
731         (scan_rtx_reg): Keep track of conflicts between chains, and between
732         chains and hard regs.  Don't terminate chains when we find a read we
733         can't handle, mark it unrenameable instead.  For terminate_write,
734         terminate chains that are written with an exact match or a superset
735         of registers.  Set fail_current_block if multi-word lifetimes are too
736         complex to handle.
737         (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
738         (build_def_use): Initialize current_id, live_chains and live_hard_regs;
739         free memory for them when done.
740         Rearrange the steps so that earlyclobbers are noted before reads
741         are processed.  Add new steps to keep track of hard register lifetimes
742         outside insn operands.
743
744 2009-11-26  Richard Guenther  <rguenther@suse.de>
745
746         * tree-ssa-dce.c (nr_walks): New variable.
747         (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
748         (perform_tree_ssa_dce): Init nr_walks.
749
750 2009-11-26  Michael Matz  <matz@suse.de>
751
752         PR tree-optimization/41905
753         * tree-eh.c (lower_eh_constructs_2): Don't add assignments
754         below statements that can't fall thru.
755
756 2009-11-26  Michael Matz  <matz@suse.de>
757
758         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
759         expand_builtin_sprintf): Remove.
760         (expand_builtin): Don't call them.
761
762 2009-11-26  Richard Guenther  <rguenther@suse.de>
763
764         * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
765
766 2009-11-26  Nick Clifton  <nickc@redhat.com>
767
768         * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
769         being used incorrectly.
770         (rx_function_ok_for_sibcall): New function.  Do not allow indirect
771         sibcalls, or sibcalls from interrupt functions.
772         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
773         * config/rx/rx.md (sibcall): Convert to a define_expand.  Check
774         for a MEM inside a MEM.
775         (sibcall_value): Likewise.
776         (sibcall_internal): New pattern containing old sibcall pattern.
777         (sibcall_value_internal): Likewise.
778
779 2009-11-25  Richard Henderson  <rth@redhat.com>
780
781         * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
782         optional 3rd argument to define the mode.
783         * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
784         (V2UDI, V4USI, V8UHI, V16UQI): New.
785         (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
786         V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
787         V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
788         * config/i386/i386-modes.def: Rearrange for double-wide AVX.
789         * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
790         * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
791         (bdesc_args): Add the builtin definitions to match.
792         (ix86_expand_builtin): Expand them.
793         (ix86_builtin_vectorization_cost): Rename from
794         x86_builtin_vectorization_cost.
795         (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
796         doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
797         expand_vec_perm_blend, expand_vec_perm_vpermil,
798         expand_vec_perm_pshufb, expand_vec_perm_1,
799         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
800         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
801         expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
802         ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
803         ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
804         ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
805         TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
806         * sse.md (SSEMODE_EO): New.
807         (vec_extract_even<mode>): Use SSEMODE_EO and
808         ix86_expand_vec_extract_even_odd.
809         (vec_extract_odd<mode>): Likewise.
810         (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
811         vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
812
813 2009-11-25  Richard Henderson  <rth@redhat.com>
814
815         * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
816         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
817         * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
818         * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
819         the vector constant here...
820         (vect_transform_slp_perm_load): ... do it here instead.  Validate
821         that the permutation vector is implementable by the target.
822
823 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
824
825         * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
826         * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
827
828         * print-rtl.c (print_rtx): When printing newline, append
829         print_rtx_head and indentation after the newline.
830
831         PR target/42165
832         * config/i386/i386.c (print_operand): For 32-byte memory use
833         YMMWORD in -masm=intel mode.  Use TBYTE instead of XWORD.
834         * config/i386/i386.md (crc32modesuffix): Expand to nothing
835         in -masm=intel mode.
836         (sse4_2_crc32di): Print just crc32 instead of crc32q in
837         -masm=intel mode.
838         * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
839         memory operand in -masm=intel mode.
840         * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
841         *sse2_pinsrw): Likewise.
842         (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
843         q suffix in -masm=intel mode.
844
845 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
846
847         PR target/10127
848         PR ada/20548
849         PR middle-end/42004
850         * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
851         (dwarf2out_stack_adjust): ...this.  Do not adjust the arg size for
852         ACCUMULATE_OUTGOING_ARGS targets.  Rename former version to...
853         (dwarf2out_notice_stack_adjust): ...this.  Adjust for above renaming.
854         (dwarf2out_frame_debug_expr): Revert previous change and adjust for
855         above renaming.
856         (dwarf2out_frame_debug): Add ??? comment.  Adjust for above renaming.
857
858 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
859
860         * config/i386/predicates.md (emms_operation): New predicate.
861         (vzeroupper_operation): Ditto.
862         (vzeroall_operation): Improve pattern recognition.
863         * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
864         (avx_vzeroupper): Change insn pattern to expander.
865         (*avx_vzeroupper): New insn pattern.  Use vzeroupper_operation
866         predicate.
867         (*avx_vzeroall): Remove operands 1 and 2.
868         * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
869         (mmx_femms): Ditto.
870         (*mmx_emms): New insn pattern.  Use emms_operation predicate.
871         (*mmx_femms): Ditto.
872         * config/i386/i386.c (enum ix86_builtins)
873         <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
874         (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
875         Remove initailization.
876         <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
877
878 2009-11-25  Paul Brook  <paul@codesourcery.com>
879
880         * config/arm/arm.md (consttable_4): Handle (high ...).
881
882 2009-11-25  Robert Nelson  <robert.nelson@digikey.com>
883             Richard Earnshaw  <rearnsha@arm.com>
884
885         * arm.h (enum vfp_reg_type): Add VFP_NONE.
886         * arm.c (all_fpus): Use it for floating point units that aren't based
887         on the VFP architecture.
888         (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
889         enum machine_mode.
890
891 2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
892
893         * alias.c: Remove trailing white spaces.
894         * alloc-pool.c: Likewise.
895         * alloc-pool.h: Likewise.
896         * attribs.c: Likewise.
897         * auto-inc-dec.c: Likewise.
898         * basic-block.h: Likewise.
899         * bb-reorder.c: Likewise.
900         * bt-load.c: Likewise.
901         * builtins.c: Likewise.
902         * builtins.def: Likewise.
903         * c-common.c: Likewise.
904         * c-common.h: Likewise.
905         * c-cppbuiltin.c: Likewise.
906         * c-decl.c: Likewise.
907         * c-format.c: Likewise.
908         * c-lex.c: Likewise.
909         * c-omp.c: Likewise.
910         * c-opts.c: Likewise.
911         * c-parser.c: Likewise.
912         * c-pretty-print.c: Likewise.
913         * c-tree.h: Likewise.
914         * c-typeck.c: Likewise.
915         * caller-save.c: Likewise.
916         * calls.c: Likewise.
917         * cfg.c: Likewise.
918         * cfganal.c: Likewise.
919         * cfgexpand.c: Likewise.
920         * cfghooks.c: Likewise.
921         * cfghooks.h: Likewise.
922         * cfglayout.c: Likewise.
923         * cfgloop.c: Likewise.
924         * cfgloop.h: Likewise.
925         * cfgloopmanip.c: Likewise.
926         * cfgrtl.c: Likewise.
927         * cgraph.c: Likewise.
928         * cgraph.h: Likewise.
929         * cgraphbuild.c: Likewise.
930         * cgraphunit.c: Likewise.
931         * cif-code.def: Likewise.
932         * collect2.c: Likewise.
933         * combine.c: Likewise.
934         * convert.c: Likewise.
935         * coverage.c: Likewise.
936         * crtstuff.c: Likewise.
937         * cse.c: Likewise.
938         * cselib.c: Likewise.
939         * dbgcnt.c: Likewise.
940         * dbgcnt.def: Likewise.
941         * dbgcnt.h: Likewise.
942         * dbxout.c: Likewise.
943         * dce.c: Likewise.
944         * ddg.c: Likewise.
945         * ddg.h: Likewise.
946         * defaults.h: Likewise.
947         * df-byte-scan.c: Likewise.
948         * df-core.c: Likewise.
949         * df-problems.c: Likewise.
950         * df-scan.c: Likewise.
951         * df.h: Likewise.
952         * dfp.c: Likewise.
953         * diagnostic.c: Likewise.
954         * diagnostic.h: Likewise.
955         * dominance.c: Likewise.
956         * domwalk.c: Likewise.
957         * double-int.c: Likewise.
958         * double-int.h: Likewise.
959         * dse.c: Likewise.
960         * dwarf2asm.c: Likewise.
961         * dwarf2asm.h: Likewise.
962         * dwarf2out.c: Likewise.
963         * ebitmap.c: Likewise.
964         * ebitmap.h: Likewise.
965         * emit-rtl.c: Likewise.
966         * et-forest.c: Likewise.
967         * except.c: Likewise.
968         * except.h: Likewise.
969         * expmed.c: Likewise.
970         * expr.c: Likewise.
971         * expr.h: Likewise.
972         * final.c: Likewise.
973         * flags.h: Likewise.
974         * fold-const.c: Likewise.
975         * function.c: Likewise.
976         * function.h: Likewise.
977         * fwprop.c: Likewise.
978         * gcc.c: Likewise.
979         * gcov-dump.c: Likewise.
980         * gcov-io.c: Likewise.
981         * gcov-io.h: Likewise.
982         * gcov.c: Likewise.
983         * gcse.c: Likewise.
984         * genattr.c: Likewise.
985         * genattrtab.c: Likewise.
986         * genautomata.c: Likewise.
987         * genchecksum.c: Likewise.
988         * genconfig.c: Likewise.
989         * genflags.c: Likewise.
990         * gengtype-parse.c: Likewise.
991         * gengtype.c: Likewise.
992         * gengtype.h: Likewise.
993         * genmddeps.c: Likewise.
994         * genmodes.c: Likewise.
995         * genopinit.c: Likewise.
996         * genpreds.c: Likewise.
997         * gensupport.c: Likewise.
998         * ggc-common.c: Likewise.
999         * ggc-page.c: Likewise.
1000         * ggc-zone.c: Likewise.
1001         * ggc.h: Likewise.
1002         * gimple-iterator.c: Likewise.
1003         * gimple-low.c: Likewise.
1004         * gimple-pretty-print.c: Likewise.
1005         * gimple.c: Likewise.
1006         * gimple.def: Likewise.
1007         * gimple.h: Likewise.
1008         * gimplify.c: Likewise.
1009         * graphds.c: Likewise.
1010         * graphite-clast-to-gimple.c: Likewise.
1011         * gthr-nks.h: Likewise.
1012         * gthr-posix.c: Likewise.
1013         * gthr-posix.h: Likewise.
1014         * gthr-posix95.h: Likewise.
1015         * gthr-single.h: Likewise.
1016         * gthr-tpf.h: Likewise.
1017         * gthr-vxworks.h: Likewise.
1018         * gthr.h: Likewise.
1019         * haifa-sched.c: Likewise.
1020         * hard-reg-set.h: Likewise.
1021         * hooks.c: Likewise.
1022         * hooks.h: Likewise.
1023         * hosthooks.h: Likewise.
1024         * hwint.h: Likewise.
1025         * ifcvt.c: Likewise.
1026         * incpath.c: Likewise.
1027         * init-regs.c: Likewise.
1028         * integrate.c: Likewise.
1029         * ipa-cp.c: Likewise.
1030         * ipa-inline.c: Likewise.
1031         * ipa-prop.c: Likewise.
1032         * ipa-pure-const.c: Likewise.
1033         * ipa-reference.c: Likewise.
1034         * ipa-struct-reorg.c: Likewise.
1035         * ipa-struct-reorg.h: Likewise.
1036         * ipa-type-escape.c: Likewise.
1037         * ipa-type-escape.h: Likewise.
1038         * ipa-utils.c: Likewise.
1039         * ipa-utils.h: Likewise.
1040         * ipa.c: Likewise.
1041         * ira-build.c: Likewise.
1042         * ira-color.c: Likewise.
1043         * ira-conflicts.c: Likewise.
1044         * ira-costs.c: Likewise.
1045         * ira-emit.c: Likewise.
1046         * ira-int.h: Likewise.
1047         * ira-lives.c: Likewise.
1048         * ira.c: Likewise.
1049         * jump.c: Likewise.
1050         * lambda-code.c: Likewise.
1051         * lambda-mat.c: Likewise.
1052         * lambda-trans.c: Likewise.
1053         * lambda.h: Likewise.
1054         * langhooks.c: Likewise.
1055         * lcm.c: Likewise.
1056         * libgcov.c: Likewise.
1057         * lists.c: Likewise.
1058         * loop-doloop.c: Likewise.
1059         * loop-init.c: Likewise.
1060         * loop-invariant.c: Likewise.
1061         * loop-iv.c: Likewise.
1062         * loop-unroll.c: Likewise.
1063         * lower-subreg.c: Likewise.
1064         * lto-cgraph.c: Likewise.
1065         * lto-compress.c: Likewise.
1066         * lto-opts.c: Likewise.
1067         * lto-section-in.c: Likewise.
1068         * lto-section-out.c: Likewise.
1069         * lto-streamer-in.c: Likewise.
1070         * lto-streamer-out.c: Likewise.
1071         * lto-streamer.c: Likewise.
1072         * lto-streamer.h: Likewise.
1073         * lto-symtab.c: Likewise.
1074         * lto-wpa-fixup.c: Likewise.
1075         * matrix-reorg.c: Likewise.
1076         * mcf.c: Likewise.
1077         * mode-switching.c: Likewise.
1078         * modulo-sched.c: Likewise.
1079         * omega.c: Likewise.
1080         * omega.h: Likewise.
1081         * omp-low.c: Likewise.
1082         * optabs.c: Likewise.
1083         * optabs.h: Likewise.
1084         * opts-common.c: Likewise.
1085         * opts.c: Likewise.
1086         * params.def: Likewise.
1087         * params.h: Likewise.
1088         * passes.c: Likewise.
1089         * plugin.c: Likewise.
1090         * postreload-gcse.c: Likewise.
1091         * postreload.c: Likewise.
1092         * predict.c: Likewise.
1093         * predict.def: Likewise.
1094         * pretty-print.c: Likewise.
1095         * pretty-print.h: Likewise.
1096         * print-rtl.c: Likewise.
1097         * print-tree.c: Likewise.
1098         * profile.c: Likewise.
1099         * read-rtl.c: Likewise.
1100         * real.c: Likewise.
1101         * recog.c: Likewise.
1102         * reg-stack.c: Likewise.
1103         * regcprop.c: Likewise.
1104         * reginfo.c: Likewise.
1105         * regmove.c: Likewise.
1106         * regrename.c: Likewise.
1107         * regs.h: Likewise.
1108         * regstat.c: Likewise.
1109         * reload.c: Likewise.
1110         * reload1.c: Likewise.
1111         * resource.c: Likewise.
1112         * rtl.c: Likewise.
1113         * rtl.def: Likewise.
1114         * rtl.h: Likewise.
1115         * rtlanal.c: Likewise.
1116         * sbitmap.c: Likewise.
1117         * sched-deps.c: Likewise.
1118         * sched-ebb.c: Likewise.
1119         * sched-int.h: Likewise.
1120         * sched-rgn.c: Likewise.
1121         * sched-vis.c: Likewise.
1122         * sdbout.c: Likewise.
1123         * sel-sched-dump.c: Likewise.
1124         * sel-sched-dump.h: Likewise.
1125         * sel-sched-ir.c: Likewise.
1126         * sel-sched-ir.h: Likewise.
1127         * sel-sched.c: Likewise.
1128         * sel-sched.h: Likewise.
1129         * sese.c: Likewise.
1130         * sese.h: Likewise.
1131         * simplify-rtx.c: Likewise.
1132         * stack-ptr-mod.c: Likewise.
1133         * stmt.c: Likewise.
1134         * stor-layout.c: Likewise.
1135         * store-motion.c: Likewise.
1136         * stringpool.c: Likewise.
1137         * stub-objc.c: Likewise.
1138         * sync-builtins.def: Likewise.
1139         * target-def.h: Likewise.
1140         * target.h: Likewise.
1141         * targhooks.c: Likewise.
1142         * targhooks.h: Likewise.
1143         * timevar.c: Likewise.
1144         * tlink.c: Likewise.
1145         * toplev.c: Likewise.
1146         * toplev.h: Likewise.
1147         * tracer.c: Likewise.
1148         * tree-affine.c: Likewise.
1149         * tree-affine.h: Likewise.
1150         * tree-browser.def: Likewise.
1151         * tree-call-cdce.c: Likewise.
1152         * tree-cfg.c: Likewise.
1153         * tree-cfgcleanup.c: Likewise.
1154         * tree-chrec.c: Likewise.
1155         * tree-chrec.h: Likewise.
1156         * tree-complex.c: Likewise.
1157         * tree-data-ref.c: Likewise.
1158         * tree-data-ref.h: Likewise.
1159         * tree-dfa.c: Likewise.
1160         * tree-dump.c: Likewise.
1161         * tree-dump.h: Likewise.
1162         * tree-eh.c: Likewise.
1163         * tree-flow-inline.h: Likewise.
1164         * tree-flow.h: Likewise.
1165         * tree-if-conv.c: Likewise.
1166         * tree-inline.c: Likewise.
1167         * tree-into-ssa.c: Likewise.
1168         * tree-loop-distribution.c: Likewise.
1169         * tree-loop-linear.c: Likewise.
1170         * tree-mudflap.c: Likewise.
1171         * tree-nested.c: Likewise.
1172         * tree-nomudflap.c: Likewise.
1173         * tree-nrv.c: Likewise.
1174         * tree-object-size.c: Likewise.
1175         * tree-optimize.c: Likewise.
1176         * tree-outof-ssa.c: Likewise.
1177         * tree-parloops.c: Likewise.
1178         * tree-pass.h: Likewise.
1179         * tree-phinodes.c: Likewise.
1180         * tree-predcom.c: Likewise.
1181         * tree-pretty-print.c: Likewise.
1182         * tree-profile.c: Likewise.
1183         * tree-scalar-evolution.c: Likewise.
1184         * tree-ssa-address.c: Likewise.
1185         * tree-ssa-alias.c: Likewise.
1186         * tree-ssa-ccp.c: Likewise.
1187         * tree-ssa-coalesce.c: Likewise.
1188         * tree-ssa-copy.c: Likewise.
1189         * tree-ssa-copyrename.c: Likewise.
1190         * tree-ssa-dce.c: Likewise.
1191         * tree-ssa-dom.c: Likewise.
1192         * tree-ssa-dse.c: Likewise.
1193         * tree-ssa-forwprop.c: Likewise.
1194         * tree-ssa-ifcombine.c: Likewise.
1195         * tree-ssa-live.c: Likewise.
1196         * tree-ssa-live.h: Likewise.
1197         * tree-ssa-loop-ch.c: Likewise.
1198         * tree-ssa-loop-im.c: Likewise.
1199         * tree-ssa-loop-ivcanon.c: Likewise.
1200         * tree-ssa-loop-ivopts.c: Likewise.
1201         * tree-ssa-loop-manip.c: Likewise.
1202         * tree-ssa-loop-niter.c: Likewise.
1203         * tree-ssa-loop-prefetch.c: Likewise.
1204         * tree-ssa-loop-unswitch.c: Likewise.
1205         * tree-ssa-loop.c: Likewise.
1206         * tree-ssa-math-opts.c: Likewise.
1207         * tree-ssa-operands.c: Likewise.
1208         * tree-ssa-operands.h: Likewise.
1209         * tree-ssa-phiopt.c: Likewise.
1210         * tree-ssa-phiprop.c: Likewise.
1211         * tree-ssa-pre.c: Likewise.
1212         * tree-ssa-propagate.c: Likewise.
1213         * tree-ssa-reassoc.c: Likewise.
1214         * tree-ssa-sccvn.c: Likewise.
1215         * tree-ssa-sink.c: Likewise.
1216         * tree-ssa-structalias.c: Likewise.
1217         * tree-ssa-ter.c: Likewise.
1218         * tree-ssa-threadedge.c: Likewise.
1219         * tree-ssa-threadupdate.c: Likewise.
1220         * tree-ssa-uncprop.c: Likewise.
1221         * tree-ssa.c: Likewise.
1222         * tree-ssanames.c: Likewise.
1223         * tree-switch-conversion.c: Likewise.
1224         * tree-tailcall.c: Likewise.
1225         * tree-vect-data-refs.c: Likewise.
1226         * tree-vect-generic.c: Likewise.
1227         * tree-vect-loop-manip.c: Likewise.
1228         * tree-vect-loop.c: Likewise.
1229         * tree-vect-patterns.c: Likewise.
1230         * tree-vect-slp.c: Likewise.
1231         * tree-vect-stmts.c: Likewise.
1232         * tree-vectorizer.c: Likewise.
1233         * tree-vectorizer.h: Likewise.
1234         * tree-vrp.c: Likewise.
1235         * tree.c: Likewise.
1236         * tree.def: Likewise.
1237         * tree.h: Likewise.
1238         * treestruct.def: Likewise.
1239         * unwind-compat.c: Likewise.
1240         * unwind-dw2-fde-glibc.c: Likewise.
1241         * unwind-dw2.c: Likewise.
1242         * value-prof.c: Likewise.
1243         * value-prof.h: Likewise.
1244         * var-tracking.c: Likewise.
1245         * varasm.c: Likewise.
1246         * varpool.c: Likewise.
1247         * vec.c: Likewise.
1248         * vec.h: Likewise.
1249         * vmsdbgout.c: Likewise.
1250         * web.c: Likewise.
1251         * xcoffout.c: Likewise.
1252
1253 2009-11-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1254
1255         * pa.c (output_call): Only use sr4 for long interspace calls if
1256         call binds local and generating non PIC code.
1257         (attr_length_call): Adjust length calculation for above.
1258
1259 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1260
1261         * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
1262         (add<mode>3_carry): Change operand order of plus RTX.
1263         (*add<mode>3_carry): Ditto.
1264         (*addsi3_carry_zext): Ditto.
1265         (*add<dwi>3_doubleword): Update for changed operand order.
1266         (*negti2_1 splitter): Ditto.
1267         (*negdi2_1 splitter): Ditto.
1268         (<plusminus_insn><mode>3_carry): Macroize expander from
1269         {add,sub}<mode>3_carry patterns using plusminus code iterator.
1270         (*<plusminus_insn><mode>3_carry): Macroize insn from
1271         *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
1272         (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
1273         patterns using SDWIM mode iterator.
1274         (*neg<dwi>2_doubleword): New insn_and_split pattern.  Macroize
1275         pattern from *neg{di,ti}2_1 patterns and corresponding splitters
1276         using DWIH mode iterator.
1277         (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
1278         using SWI mode iterator.
1279         (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
1280         (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
1281         patterns using SWIM mode iterator.
1282         (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
1283         patterns using SWI248 mode iterator.
1284         (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
1285         patterns using SWI mode iterator.
1286         (*one_cmpl<mode>2_2 splitter): Macroize splitter from
1287         one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
1288
1289 2009-11-24  Michael Matz  <matz@suse.de>
1290
1291         * expr.c (set_storage_via_libcall): Fix build_call_expr call.
1292
1293 2009-11-24  David Binderman  <dcb314@hotmail.com>
1294
1295         * expr.c (store_field): Remove set but not used local variable
1296         width_mask.
1297         (expand_expr_real_2): Remove treeop2.
1298         * gcse.c (update_ld_motion_stores): Remove new_rtx.
1299         * haifa-sched.c (max_issue): Remove points.
1300         (sched_create_recovery_edges): Remove e.
1301         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
1302
1303 2009-11-24  Nick Clifton  <nickc@redhat.com>
1304
1305         * config/v850/v850.c (function_arg): Fix handling of zero-length
1306         function arguments.
1307
1308 2009-11-24  Michael Matz  <matz@suse.de>
1309
1310         * tree.h (union tree_ann_d): Don't declare.
1311         (tree_base): Remove ann field.
1312         (struct var_ann_d): Declare forward.
1313         (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
1314         (DECL_VAR_ANN_PTR): New macro.
1315         * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
1316         accept only VAR, PARM or RESULT decls.
1317         (create_tree_common_ann): Remove.
1318         (remove_referenced_var): Use DECL_VAR_ANN_PTR.
1319         * tree-eh.c (lookup_expr_eh_lp): Remove.
1320         * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
1321         DECL_VAR_ANN_PTR.
1322         (ann_type, tree_common_ann, get_tree_common_ann): Remove.
1323         * tree-flow.h (enum tree_ann_type): Remove.
1324         (struct tree_ann_common_d): Remove.
1325         (struct var_ann_d): Remove common field.
1326         (union tree_ann_d): Remove.
1327         (tree_ann_t, tree_ann_common_t): Remove typedefs.
1328         (tree_common_ann, get_tree_common_ann, ann_type,
1329         create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
1330         * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
1331         * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
1332         * builtins.c (expand_builtin_memcpy): Use
1333         currently_expanding_gimple_stmt instead of tree annotation.
1334         (expand_builtin_memset_args): Ditto.
1335         * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
1336         (expand_call_stmt): Don't set tree annotation.
1337         (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
1338         * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
1339         * gimple.h (currently_expanding_gimple_stmt): Declare.
1340
1341 2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1342
1343         * dwarf2out.c (add_location_or_const_value_attribute): Remove
1344         useless NOTE_VAR_LOCATION_STATUS call.
1345         * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
1346
1347 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
1348
1349         * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
1350         being called recursively.
1351
1352 2009-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1353
1354         * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
1355         $(MD5_H) params.def params.h prefix.h tree-inline.h.
1356
1357 2009-11-24  Paul Brook  <paul@codesourcery.com>
1358
1359         * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
1360         typo.
1361
1362 2009-11-24  Julian Brown  <julian@codesourcery.com>
1363             Paul Brook  <paul@codesourcery.com>
1364
1365         * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
1366         (arm_dwarf_register_span): New function.
1367         (arm_dbx_register_number): Add VFPv3 dwarf numbering.
1368
1369 2009-11-24  David Binderman  <dcb314@hotmail.com>
1370
1371         * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
1372         local variable bb_note.
1373         * dominance.c (get_dominated_by): Likewise local var n.
1374         (output_file_names): Likewise local var idx.
1375         (add_location_or_const_value_attribute): Likewise local var status.
1376         * dwarf2out.c (gen_variable_die): Likewise local var field.
1377         * emit-rtl.c (no_line_numbers): Remove.
1378         (init_emit_once): Remove line_numbers parameter.
1379         * rtl.h (init_emit_once): Adjust prototype.
1380         * toplev.c (backend_init): Adjust init_emit_once call.
1381
1382 2009-11-24  Richard Guenther  <rguenther@suse.de>
1383
1384         PR tree-optimization/42142
1385         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1386         Handle iv-dependent (non-)kills properly.
1387         (mark_aliased_reaching_defs_necessary): Pass the basic-block
1388         of the reference statement to mark_aliased_reaching_defs_necessary_1.
1389
1390 2009-11-24  Martin Jambor  <mjambor@suse.cz>
1391
1392         PR tree-optimization/42154
1393         * tree-sra.c (struct access): Added comments.
1394         (sra_modify_expr): Build references to the old aggregate with
1395         build_ref_for_offset instead of reusing access->expr.
1396         (load_assign_lhs_subreplacements): Likewise.
1397
1398 2009-11-24  Uros Bizjak  <ubizjak@gmail.com>
1399
1400         * config/i386/i386.md (add<mode>3_carry): Change insn pattern
1401         to expander.
1402         (sub<mode>3_carry): Ditto.
1403         (x86_mov<mode>cc_0_m1): Ditto.
1404         (*add<mode>3_carry): New insn pattern.  Use VOIDmode match_operator
1405         for ix86_carry_flag_operator operator predicate.
1406         (*sub<mode>3_carry): Ditto.
1407         (*x86_mov<mode>cc_0_m1): Ditto.
1408         (*addsi3_carry_zext): Use VOIDmode match_operator for
1409         ix86_carry_flag_operator operator predicate.
1410         (*subsi3_carry_zext): Ditto.
1411         (*x86_mov<mode>cc_0_m1_s): Ditto.
1412         (*x86_mov<mode>cc_0_m1_neg): Ditto.
1413         * config/i386/predocates.md (ix86_carry_flag_operator): Do not
1414         check operator sub-expressions for FLAGS_REG and const0_rtx.
1415         * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
1416         (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
1417         (ix86_expand_int_addcc): Update calls to
1418         gen_{add,sub}{qi,hi,si,di}3_carry.  Do not set mode of compare_op.
1419         (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
1420         Do not set mode of compare operation.
1421
1422 2009-11-23  Jan Hubicka  <jh@suse.cz>
1423
1424         PR middle-end/42151
1425         * ipa-inline.c (inline_transform): Avoid ICE when transform is called
1426         twice.
1427
1428 2009-11-23  Jan Hubicka  <jh@suse.cz>
1429
1430         * ipa-cp.c (ipcp_compute_node_scale): Work around completely
1431         wrong profile updates.
1432         * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
1433         having largest frequency.
1434         * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
1435         used uninitalized warning.
1436         * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
1437         frequencies.
1438
1439 2009-11-23  Uros Bizjak  <ubizjak@gmail.com>
1440
1441         * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
1442         of gen_rtx_REG to generate operand 5.
1443         (*cmp_ssub_sidi): Ditto.
1444
1445 2009-11-23  Richard Henderson  <rth@redhat.com>
1446
1447         * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
1448         mismatch.
1449
1450 2009-11-23  Paul Brook  <paul@codesourcery.com>
1451
1452         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
1453         case for noreturn functions.
1454         (arm_compute_save_reg_mask): Remove special noreturn handling.
1455
1456 2009-11-23  Richard Guenther  <rguenther@suse.de>
1457
1458         * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
1459         size for DECL bases.
1460
1461 2009-11-22  Richard Henderson  <rth@redhat.com>
1462
1463         * i386.c (avx_vpermilp_parallel): New function.
1464         * i386-protos.h: Declare it.
1465         * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
1466         avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
1467         * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
1468         (ssescalarnum, ssedoublesizemode): Add AVX modes.
1469         (vpermilbits): Remove.
1470         (avx_vpermil<mode>): Change insns to expanders.
1471         (*avx_vpermil<mode>): New.  Use vec_select.
1472
1473 2009-11-22  Richard Earnshaw  <rearnsha@arm.com>
1474
1475         * opts.c (decode_options): Don't enable flag_schedule_insns
1476         when optimizing for size.
1477         * doc/invoke.texi: Document change.
1478
1479 2009-11-22  Uros Bizjak  <ubizjak@gmail.com>
1480
1481         PR target/42113
1482         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
1483         of scratch register to SImode.
1484         (*cmp_sadd_sidi): Ditto.
1485         (*cmp_ssub_si): Ditto.
1486         (*cmp_ssub_sidi): Ditto.
1487
1488 2009-11-21  Ian Lance Taylor  <iant@google.com>
1489
1490         * Makefile.in (HOST_LIBS): Move higher in file.
1491         (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
1492         is not empty, set to $(CC) and $(CFLAGS).
1493
1494 2009-11-22  Martin Jambor  <mjambor@suse.cz>
1495
1496         * tree-cfg.c (verify_types_in_gimple_reference): Error out on
1497         V_C_E of an SSA_NAME or an invariant if lvalue is required.
1498         (verify_gimple_call): Verify LHS also with with
1499         verify_types_in_gimple_reference.
1500
1501 2009-11-21  Martin Jambor  <mjambor@suse.cz>
1502
1503         PR middle-end/42025
1504         * tree-sra.c (access_precludes_ipa_sra_p): New function.
1505         (splice_param_accesses): Check all accesses by calling
1506         access_precludes_ipa_sra_p.
1507         (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
1508         not convert types if it is true.
1509         (sra_ipa_modify_assign): Convert types in case of mismatch.
1510
1511 2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1512
1513         * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
1514         for operand 1.
1515
1516 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
1517
1518         * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
1519         (mips_mulsidi3_gen_fn): Declare new function.
1520         * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
1521         * config/mips/mips.md (<u>mulsidi3): Change condition to use
1522         mips_mulsidi3_gen_fn.  Use mips_mulsidi3_gen_fn to generate the insn.
1523         (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
1524         (mulsidi3_64bit_dmul): New define_insn.
1525
1526 2009-11-21  Ben Elliston  <bje@au.ibm.com>
1527
1528         * gengtype-lex.l: Enable noinput flex option.
1529         (YY_NO_INPUT): Remove define.
1530
1531 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1532
1533         * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
1534         (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
1535         (insert_debug_temps_for_defs): Handle PHI nodes.
1536         * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
1537         SSA names.
1538
1539 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1540
1541         * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
1542         after remove_phi_node.
1543
1544 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1545
1546         PR tree-optimization/42078
1547         * gimple.h (gimple_replace_lhs): New declaration.
1548         * gimple.c (gimple_replace_lhs): New function.
1549         * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
1550         modifying the call.
1551
1552 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
1553
1554         * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
1555         (xop_mulv2div2di3_low): Same.
1556         (*xop_pmacsdqh_mem): Same.
1557
1558 2009-11-20  Richard Henderson  <rth@redhat.com>
1559
1560         * config/i386/i386-builtin-types.awk: New file.
1561         * config/i386/i386-builtin-types.def: New file.
1562         * config/i386/t-i386: Use them to build i386-builtin-types.inc.
1563         * config/i386/i386.c: Include it.
1564         (ix86_builtin_type_tab, ix86_get_builtin_type): New.
1565         (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
1566         (struct builtin_isa): Remove GTY marker.  Replace tree type with
1567         ix86_builtin_func_type; add set_and_not_built_p.
1568         (def_builtin): Change type parameter to tcode; use
1569         ix86_get_builtin_func_type; update all callers.  Accept zero mask
1570         to mean the builtin is unconditionally available.
1571         (ix86_add_new_builtins): Use set_and_not_built_p instead of type
1572         being set to NULL.
1573         (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
1574         Update some users to rationalized enumeration codes from new include.
1575         (enum multi_arg_type): Remove.  Replace all enumeration values
1576         with defines to new ix86_builtin_func_type.
1577         (ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
1578         all type resolution to def_builtin.
1579         (ix86_init_builtin_types): Split out from ...
1580         (ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
1581
1582 2009-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1583
1584         PR target/41787
1585         * config/rs6000/rs6000.c (struct machine_function): Revert
1586         2009-10-23 change to set VRSAVE to non-0 if we use VSX.
1587         (rs6000_expand_to_rtl_hook): Ditto.
1588         (rs6000_check_vector_mode): Ditto.
1589         (compute_vrsave_mask): Ditto.
1590
1591 2009-11-20  Paul Brook  <paul@codesourcery.com>
1592
1593         * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
1594         * config/arm/arm-cores.def: Add cortex-a5.
1595         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
1596         * config/arm/arm-tune.md: Regenerate.
1597
1598 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
1599
1600         PR middle-end/39960
1601         * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
1602         (ref_pos): New field in structure.
1603         (insert_new_var_in_stmt): New function.
1604
1605
1606 2009-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1607
1608         * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
1609         * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
1610         (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
1611         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
1612         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1613         INT_LEAST64_TYPE): Define.
1614         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
1615         UINT_LEAST64_TYPE): Define.
1616         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
1617         INT_FAST64_TYPE): Define.
1618         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1619         UINT_FAST64_TYPE): Define.
1620         (INTPTR_TYPE, UINTPTR_TYPE): Define.
1621
1622 2009-11-20  Julian Brown  <julian@codesourcery.com>
1623
1624         * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
1625         specially for Thumb-1.
1626         (ASM_OUTPUT_REG_POP): Likewise.
1627
1628 2009-11-19  Jason Merrill  <jason@redhat.com>
1629
1630         * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
1631
1632 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1633             Rafael Avila de Espindola  <espindola@google.com>
1634
1635         * doc/plugins.texi (Plugin initialization): Added advices for
1636         retrieving the version of GCC at plugin compilation and loading times.
1637
1638 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1639
1640         * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
1641         (dump_active_plugins): output to file everything. Use
1642         internationalized dump & FMT_FOR_PLUGIN_EVENT.
1643
1644 2009-11-19  Richard Guenther  <rguenther@suse.de>
1645
1646         * gimple.c (canonicalize_cond_expr_cond): Strip conversions
1647         around truth-valued expressions.
1648         * tree.c (free_lang_data): Untangle check for LTO frontend.
1649
1650 2009-11-19  Jakub Jelinek  <jakub@redhat.com>
1651
1652         * tree.c (need_assembler_name_p): Use cgraph_get_node instead
1653         of cgraph_node_for_decl.
1654         * cgraph.h (cgraph_node_for_decl): Remove prototype.
1655         * cgraph.c (cgraph_node_for_decl): Remove.
1656         (cgraph_get_node): Just return NULL if !cgraph_hash.
1657
1658 2009-11-19  Paul Brook  <paul@codesourcery.com>
1659
1660         * config.gcc: Add new ARM --with-fpu options.
1661         * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
1662         * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
1663
1664 2009-11-18  Richard Guenther  <rguenther@suse.de>
1665
1666         * gimple.h (union gimple_statement_d): Add gsmembase member.
1667         (gimple_vuse_op): Use gsmembase for access.
1668         (gimple_vdef_op): Likewise.
1669         (gimple_vuse): Likewise.
1670         (gimple_vdef): Likewise.
1671         (gimple_vuse_ptr): Likewise.
1672         (gimple_vdef_ptr): Likewise.
1673         (gimple_set_vuse): Likewise.
1674         (gimple_set_vdef): Likewise.
1675         * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
1676
1677 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1678
1679         * doc/arm-neon-intrinsics.texi: Regenerated.
1680
1681 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1682
1683         * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
1684
1685 2009-11-18  Paul Brook  <paul@codesourcery.com>
1686             Daniel Jacobowitz  <dan@codesourcery.com>
1687
1688         * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
1689         (arm_arch7em): New variable.
1690         (all_architectures): Add armv7e-m.
1691         (arm_override_options): Set arm_arch7em.
1692         * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
1693         Include arm_arch7em.
1694         (arm_arch7em): Declare.
1695
1696 2009-11-18  Richard Guenther  <rguenther@suse.de>
1697
1698         * lto-streamer-in.c (input_gimple_stmt): Assert that we find
1699         a valid field decl if checking is enabled.
1700
1701 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1702
1703         * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
1704         (lto_ipa_fixup_call_notes): Declare.
1705         * ipa-prop.c (ipa_note_param_call): Store gimple uid.
1706         (update_call_notes_after_inlining): Copy call stmt uid to the new
1707         edge.
1708         (ipa_write_param_call_note): New function.
1709         (ipa_read_param_call_note): New function
1710         (ipa_write_node_info): Write also param call notes.  Removed a bogus
1711         comment, reformatted to fit 80 columns.
1712         (ipa_read_node_info): Read also param call notes. Removed a bogus
1713         comment.  Remove ipa_edge_args_vector growth.
1714         (lto_ipa_fixup_call_notes): New function.
1715         * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
1716         * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
1717         inlining regardless of flag_wpa.
1718         (cgraph_decide_inlining_of_small_functions): Likewise.
1719         (cgraph_decide_inlining): Likewise.
1720         (inline_read_summary): Likewise.
1721
1722 2009-11-18  Jan Hubicka  <jh@suse.cz>
1723
1724         * predict.c (compute_function_frequency): Export.
1725         * predict.h (compute_function_frequency): Declare.
1726         * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
1727
1728 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1729
1730         * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
1731         on all nodes we write summaries for.
1732
1733 2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
1734
1735         PR middle-end/22201
1736         * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
1737         (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
1738         (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
1739         (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
1740         (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
1741         (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
1742         (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
1743         description string.
1744
1745 2009-11-18  Jakub Jelinek  <jakub@redhat.com>
1746
1747         * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
1748         unnecessarily.
1749         (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
1750
1751         PR c++/3187
1752         * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
1753         fields.
1754         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1755         prototypes.
1756         * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
1757         cgraph_materialize_all_clones): Handle same_body aliases.
1758         * cgraph.c (cgraph_allocate_node): New function.
1759         (cgraph_create_node): Use it.
1760         (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
1761         cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
1762         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1763         functions.
1764         * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
1765         (input_node): Stream in same_body aliases.
1766         * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
1767         for same_body aliases.
1768         (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
1769
1770 2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1771
1772         PR other/39888
1773         * config/darwin.h: Use the extension stub libraries to access
1774         current libgcc_s features.
1775
1776 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1777
1778         PR debug/41926
1779         * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
1780         (vect_transform_loop): Call it.
1781
1782 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1783
1784         * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
1785         released SSA names.
1786
1787 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1788
1789         PR debug/41888
1790         PR debug/41886
1791         * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
1792         are ok.
1793         * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
1794         (try_generate_gimple_bb): Skip debug stmts when finding data refs.
1795         * sese.c (sese_build_liveouts_bb): Skip debug stmts.
1796         (sese_bad_liveouts_use): New.
1797         (sese_reset_debug_liveouts_bb): New.
1798         (sese_build_liveouts): Use it.
1799         (rename_variables_in_stmt): Reset debug stmts rather than creating
1800         new vars for them.
1801         (expand_scalar_variable_stmt): Likewise.
1802
1803 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1804
1805         * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
1806         (df_ref_remove): Likewise.
1807
1808 2009-11-17  Jan Hubicka  <jh@suse.cz>
1809
1810         * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
1811         info.
1812
1813 2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1814
1815         * toplev.c (process_options): Remove dead code.
1816         * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
1817
1818 2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
1819
1820         * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
1821         nodes.
1822
1823 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1824
1825         PR tree-optimization/41857
1826         * tree-ssa-address.c (move_hint_to_base): Use void pointer to
1827         TYPE's address space instead of pointer to TYPE.
1828
1829 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1830
1831         * reload.c (find_reloads_address): Fix typo.
1832
1833 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1834
1835         * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
1836         registers in leaf functions if possible.
1837
1838 2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
1839
1840         * config/m68k/m68k-devices.def: Add MCF5441x family.
1841
1842 2009-11-17  Jan Hubicka  <jh@suse.cz>
1843
1844         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
1845         removed node.
1846         * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
1847
1848 2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
1849
1850         * config/i386/predicates.md (x86_64_szext_general_operand): Do not
1851         nest ior expressions.
1852         (x86_64_szext_nonmemory_operand): Ditto.
1853         (call_insn_operand): Ditto.
1854
1855 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1856
1857         * stmt.c (expand_asm_stmt): Get locus from stmt.
1858
1859 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1860
1861         * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
1862         Create the decl label for the new dest block on demand.  Require
1863         a fallthrough edge if no asm labels were redirected.
1864
1865 2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
1866
1867         * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
1868         operand 1 predicate.
1869         (cstoresi4): Ditto for operand 2.
1870         (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
1871         patterns using SDWIM mode iterator.
1872         (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
1873         using SWIM mode iterator.
1874         (cmpdi_1): Rename from cmpdi_1_rex64.
1875         (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
1876         SWI48 mode iterator.
1877         (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
1878         using SWI mode iterator.
1879         (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
1880         (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
1881         (*cmpqi_ext_3_insn): Make private.
1882         (*cmpqi_ext_3_insn_rex64): Make private.
1883         (cmpstrnsi): Update for renamed cmpdi_1_rex64.
1884         * config/i386/predicates.md (cmpsi_operand): Remove.
1885
1886 2009-11-16  Paul Brook  <paul@codesourcery.com>
1887
1888         * doc/invoke.texi: Document ARM VFPv4 based FPUs.
1889         * config/arm/arm.c (all_fpus): Add VFPv4 entries.
1890
1891 2009-11-14  Jan Hubicka  <jh@suse.cz>
1892
1893         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
1894         ENTRY_BLOCK_PTR.
1895         * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
1896         zero out all callees.
1897         * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
1898         frequency and count match.
1899         * ipa-inline.c (update_noncloned_frequencies): New function.
1900         (cgraph_clone_inlined_nodes): Use it.
1901         * tree-inline.c (copy_bb): Fix frequency scaling; output
1902         diagnostic on frequency mismatches to dump file.
1903         (initialize_cfun): Do not scale frequency; fix count scaling;
1904         initialize entry and exit block frequencies; copy profile info.
1905         (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
1906         (copy_body): Use frequency_scale as argument.
1907         (expand_call_inline): Compute frequency scale and output diagnostic
1908         to dump file.
1909         (delete_unreachable_blocks_update_callgrah): Remove checking that
1910         has to be done after edge redirection.
1911         (tree_function_versioning): Update initialize_cfun and copy_body call.
1912
1913 2009-11-14  Jan Hubicka  <jh@suse.cz>
1914
1915         * cgraph.c (cgraph_release_function_body): Update use of
1916         ipa_transforms_to_apply.
1917         (cgraph_remove_node): Remove ipa_transforms_to_apply.
1918         * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
1919         * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
1920         copied body.
1921         (cgraph_materialize_clone): Remove original if dead.
1922         * lto-streamer-in.c (lto_read_body): Remove FIXME and
1923         ipa_transforms_to_apply hack.
1924         * function.h (struct function): Add ipa_transforms_to_apply.
1925         * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
1926         * tree-inline.c (copy_bb): Update sanity check.
1927         (initialize_cfun): Do not copy ipa_transforms_to_apply.
1928         (expand_call_inline): remove dead clone originals.
1929         (tree_function_versioning): Merge transformation queues.
1930         * passes.c (add_ipa_transform_pass): Remove.
1931         (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
1932         tracking.
1933         (execute_all_ipa_transforms): Update.
1934         (execute_one_pass): Update.
1935
1936 2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1937
1938         PR target/21078, 21080
1939         * config/avr/avr.c (avr_return_addr_rtx): New function for
1940         builtin_return_address.
1941         (expand_prologue): Calculate stack usage.
1942         (avr_asm_function_end_prologue): Output stack size and offset label.
1943         * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
1944         (machine_function): Add stack_usage.
1945         * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
1946
1947 2009-11-14  Anatoly Sokolov  <aesok@post.ru>
1948
1949         * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
1950         new 'outgoing' argument.
1951         (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
1952         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1953         * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
1954         iq2000_function_value_regno_p.
1955         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1956         * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
1957         Declare.
1958
1959 2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
1960
1961         PR target/42031
1962         * arm.md (adddi_sesidi_di): Place tied contraint first.
1963         (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
1964         (subdi_zesidi_di, subdi_sesidi_di): Likewise.
1965         (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
1966         (mulsi3addsi, mulsi3addsi_compare0): Likewise.
1967         (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
1968         (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
1969         (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
1970         (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
1971         (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
1972
1973 2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
1974
1975         * config/i386/predicates.md (call_register_no_elim_operand):
1976         New predicate.  Reject stack register as valid call operand
1977         for 32bit targets.
1978         (call_insn_operand): Use call_register_no_elim_operand.
1979
1980 2009-11-13  Richard Henderson  <rth@redhat.com>
1981
1982         * function.c (stack_protect_prologue): Don't bypass expand_expr
1983         for stack_protect_guard and guard_decl.
1984         (stack_protect_epilogue): Likewise.
1985
1986 2009-11-13  Jan Hubicka  <jh@suse.cz>
1987
1988         * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
1989         when to PUBLIC is set.
1990
1991 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1992
1993         PR middle-end/42029
1994         * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
1995         tmp_load if needed.
1996
1997 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
1998
1999         PR target/41900
2000         * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
2001         *call_value_1): Use "lsm" as operand 1 constraint.
2002         * config/i386/predicates.md (call_insn_operand): Depend on
2003         index_register_operand to avoid %esp register.
2004
2005 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2006
2007         Revert:
2008         2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2009
2010         PR target/41900
2011         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
2012         (TARGET_CALL_ESP): New define.
2013         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2014         X86_ARCH_CALL_ESP.
2015         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
2016         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
2017         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
2018         TARGET_CALL_ESP.
2019         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
2020         New patterns, use "lsm" as operand 1 constraint.
2021         * config/i386/predicates.md (call_insn_operand): Depend on
2022         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
2023
2024 2009-11-13  Jason Merrill  <jason@redhat.com>
2025
2026         PR debug/26965
2027         * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
2028         Don't emit a second declaration at any scope.
2029
2030 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
2031
2032         PR rtl-optimization/41697
2033         * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
2034         a conditional jump has a single successor.
2035
2036 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
2037
2038         * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
2039         allocate reg_last when in case lazy_reg_last is true.
2040         (init_deps_reg_last): New.
2041         (free_deps): When max_reg is 0, this context is already freed.
2042         * sched-int.h (init_deps_reg_last): Export.
2043         (init_deps): Update prototype.
2044         * sched-ebb.c (schedule_ebb): Update the call to init_deps.
2045         * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
2046         * ddg.c (build_intra_loop_deps): Likewise.
2047         * sel-sched-ir.c (copy_deps_context, create_deps_context,
2048         reset_deps_context, deps_init_id): Likewise.
2049         (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
2050         (free_data_for_scheduled_insn): New, break down from ...
2051         (free_first_time_insn_data): ... here.
2052         (has_dependence_p): Allocate reg_last now, when it is needed.
2053         (extend_insn_data): When maximal LUID is big enough, allocate
2054         per-insn data in smaller chunks.
2055         * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
2056         * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
2057         in scheduled insn.
2058
2059 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2060
2061         * config/i386/i386.md (call_value): Fix comment.
2062         (sibcall_value): Ditto.
2063
2064 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2065
2066         * config/i386/linux-unwind.h (x86_frob_update_context): New function.
2067         (MD_FROB_UPDATE_CONTEXT): Define.
2068
2069 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2070             Laurent GUERBY  <laurent@guerby.net>
2071
2072         * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
2073         Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
2074         (sparc_fallback_frame_state): Tidy.  Compensate for RETURN_ADDR_OFFSET.
2075
2076 2009-11-12  Jan Hubicka  <jh@suse.cz>
2077
2078         * ipa.c (function_and_variable_visibility): Fix my accidentail commit
2079         and clear DECL_COMMON on localized declarations.
2080
2081 2009-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2082
2083         PR rtl-opt/38582
2084         * regrename.c (struct du_head): New structure; some elements moved
2085         from...
2086         (struct du_chain): ... this one.
2087         (open_chains, closed_chains): Now of type struct du_head *.
2088         (do_replace): Accept du_head argument, not du_chain.  All callers
2089         changed.  Modified code to match new data structures.
2090         (build_def_use): Return a list of du_head structures.  Modified code
2091         to match new data structures.
2092         (dump_def_use_chain): Accept du_head argument, not du_chain.  All
2093         callers changed.  Modified code to match new data structures.
2094         (merge_overlapping_regs): Accept du_head argument, not du_chain.  All
2095         callers changed.  Modified code to match new data structures.
2096         (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
2097         Allocate a du_head structure as well as a du_chain when creating a
2098         new chain.  Modified other code to match new data structures.
2099
2100 2009-11-12  Jan Hubicka  <jh@suse.cz>
2101
2102         * cgraph.h (varpool_node_name): Declare.
2103         * cgraphunit.c (process_function_and_variable_attributes): Set
2104         force_output flag on used variables.
2105         * ipa.c (function_and_variable_visibility): Dump externally visible
2106         and needed variables.
2107         * varpool.c (varpool_node_name): Export.
2108         (decide_is_variable_needed): Check COMDAT for externally visible vars;
2109         ignore needed flag.
2110
2111 2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
2112
2113         PR middle-end/41930
2114         * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
2115         processing if XEXP (x, i) is NULL.
2116
2117 2009-11-12  Jan Hubicka  <jh@suse.cz>
2118
2119         * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
2120         imply PUBLIC || EXTERNAL.
2121
2122 2009-11-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2123
2124         PR middle-end/41440
2125         * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
2126         single successor block, ending with jump created by RTL expander.
2127
2128 2009-11-11  Jan Hubicka  <jh@suse.cz>
2129
2130         PR middle-end/41729
2131         * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
2132         and WEAK variables at -fwhole-program.
2133
2134         PR middle-end/41735
2135         * ipa.c (whole_program_function_and_variable_visility): COMDAT
2136         functions/variables are not needed even if they are externally visible.
2137
2138 2009-11-11  Jan Hubicka  <jh@suse.cz>
2139
2140         (patch by Richard Guenther)
2141         * lto-streamer-out.c (output_function): Output head of argument list
2142         earlier.
2143         * lto-streamer-in.c (input_function): Re-map arguments into merged
2144         declaration.
2145
2146 2009-11-11  Jan Hubicka  <jh@suse.cz>
2147
2148         * lto-cgraph.c: Include gcov-io.h
2149         (output_profile_summary): New function.
2150         (output_cgraph): Use it.
2151         (input_profile_summary): New function.
2152         (input_cgraph): Use it.
2153         * coverage.c (build_ctr_info_value): Use varpool; initalize
2154         DECL_ASSEMBLER_NAME.
2155         (create_coverage): Likewise.
2156         * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
2157         (tree_init_edge_profiler): Likewise.
2158         * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
2159
2160 2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
2161
2162         * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2163         * c-pragma.c (def_pragma_macro_value): Likewise.
2164         (def_pragma_macro): Likewise.
2165         (pushed_macro_table): Likewise.
2166         (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
2167         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2168
2169 2009-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
2170
2171         * doc/plugins.texi (Registering custom attributes): section
2172         renamed as (Registering custom attributes or pragmas).
2173         Mentions custom attributes & pragmas, and c_register_pragma, with
2174         a small example.
2175         * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
2176         pragmas.
2177         * doc/extend.texi (Function Attributes): Mentions that plugin can
2178         provide their attributes.
2179
2180 2009-11-11  Jon Beniston  <jon@beniston.com>
2181
2182         * config.gcc: Add lm32 elf and uclinux targets.
2183         * config/lm32: New directory.
2184         * config/lm32/lm32.c: New file.
2185         * config/lm32/lm32.h: New file.
2186         * config/lm32/lm32.md: New file.
2187         * config/lm32/lm32.opt: New file.
2188         * config/lm32/lm32-protos.h: New file.
2189         * config/lm32/constraints.md: New file.
2190         * config/lm32/predicates.md: New file.
2191         * config/lm32/sfp-machine.h: New file.
2192         * config/lm32/t-fprules-softfp: New file.
2193         * config/lm32/uclinux-elf.h: New file.
2194         * doc/invoke.texi: Document lm32 options.
2195         * doc/contrib.texi: Document lm32 porter.
2196         * doc/install.texi: Document lm32 targets.
2197
2198 2009-11-11  Martin Jambor  <mjambor@suse.cz>
2199
2200         PR lto/41932
2201         * ipa-prop.c (ipa_update_after_lto_read): Call
2202         ipa_check_create_node_params and ipa_check_create_edge_args.  Also
2203         call ipa_initialize_node_params instead of ipa_populate_param_decls.
2204
2205 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2206
2207         * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
2208         (neon_expand_vector_init): Use them.  Also handle non-constant
2209         vectors with identical elements and vectors with only one
2210         non-constant element.
2211         (arm_print_operand): Handle 'y' modifier.
2212         * config/arm/arm-protos.h (neon_make_constant): Declare.
2213         * config/arm/neon.md (neon_vdup_n<mode>): Split into two
2214         patterns.  Use VX instead of VDQW for the first one.  Allow
2215         a VFP alternative and V32 modes for the second one.
2216         * config/arm/neon.ml (shape_elt): Add Alternatives.
2217         (ops): Use Alternatives for vdup lane instructions.
2218         * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
2219         * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
2220
2221 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2222
2223         * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
2224         operands.
2225         (movti, mov<mode>): Call force_reg on one operand if required.
2226         * config/arm/vec-common.md (mov<mode>): Likewise.
2227
2228 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2229
2230         * config/arm/arm.c (arm_override_options): Enable scheduling for
2231         Thumb-2.
2232
2233 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2234
2235         PR target/10127
2236         PR ada/20548
2237         * expr.h (anti_adjust_stack_and_probe): Declare.
2238         * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
2239         parameter and rewrite head comment.
2240         (allocate_dynamic_stack_space): Adjust call to above function.
2241         * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
2242
2243         * tree.h (dwarf2out_args_size): Delete.
2244         * dwarf2out.c (dwarf2out_args_size): Make static and move around.
2245         (dwarf2out_args_size_adjust): Delete prototype and move around.
2246         (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
2247         ACCUMULATE_OUTGOING_ARGS targets.
2248
2249 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2250
2251         * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
2252         DECL_SIZE of DECL_RESULT before evaluating it.
2253
2254 2009-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2255
2256         PR tree-optimization/41987
2257         * fold-const.c (const_binop): Avoid using fold_buildN().
2258
2259 2009-11-10  Martin Jambor  <mjambor@suse.cz>
2260
2261         * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
2262         (execute_all_ipa_stmt_fixups): Declare.
2263         * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
2264         * ipa-inline.c (pass_ipa_inline): Likewise.
2265         * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
2266         * ipa-reference.c (pass_ipa_reference): Likewise.
2267         * ipa.c (pass_ipa_whole_program_visibility): Likewise.
2268         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
2269         (pass_ipa_lto_finish_out): Likewise.
2270         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
2271         * passes.c (execute_ipa_stmt_fixups): New function.
2272         (execute_all_ipa_stmt_fixups): New function.
2273         * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
2274
2275 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2276
2277         PR ada/20548
2278         * explow.c (probe_stack_range): Fix typo.
2279         * config/sparc/sparc.md (probe_stack): New expander.
2280
2281 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2282
2283         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
2284
2285 2009-11-09  Jason Merrill  <jason@redhat.com>
2286
2287         * gdbinit.in (pgq): New function for printing gimple sequence.
2288
2289 2009-11-09  Paul Brook  <paul@codesourcery.com>
2290             Daniel Jacobowitz  <dan@codesourcery.com>
2291             Sandra Loosemore  <sandra@codesourcery.com>
2292
2293         * doc/extend.texi (Half-Precision): Update wording to reflect
2294         that there are now multiple -mfpu options that enable fp16
2295         hardware support.
2296         * doc/invoke.texi: Update list of ARM -mfpu= options.
2297         * config.gcc: Update ARM --with-fpu option list.
2298         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
2299         vfpv3xd and vfpv3xd-fp16.
2300         (use_vfp_abi): New function.
2301         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
2302         when undesirable.
2303         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
2304         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
2305         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
2306         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
2307         provides them.
2308         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
2309         NEON.
2310         (arm_print_operand): Handle 'p' modifier.
2311         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
2312         TARGET_FP16.
2313         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
2314         (TARGET_FP16): Define.
2315         * config/arm/vfp.md: Disable double-precision patterns if the FPU
2316         does not provide them.
2317         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
2318         double-precision values on a single-precision FPU.
2319         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
2320         double-precision constants.
2321         (movhf_vfp_neon): New pattern (was movhf_vfp).
2322         (movhf_vfp): Remove NEON instructions.
2323         * config/arm/constraints.md: Add new "Dy" constraint for
2324         double-precision constants.  Update description of "Dv".
2325         * config/arm/arm.md: Disable double-precision patterns if the FPU
2326         does not provide them
2327
2328 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
2329
2330         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
2331         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
2332         diagnostics.
2333
2334 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
2335
2336         * collect2.c (main): Search PLUGIN_LD for plugin linker.
2337
2338         * configure.ac (--with-plugin-ld): New.  Default to ld.
2339         * configure: Regenerated.
2340         * config.in: Likewise.
2341
2342         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
2343         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
2344
2345 2009-11-08  Jonathan Gray  <jsg@openbsd.org>
2346
2347         * config/openbsd-stdint.h: Change to reflect what
2348         c_common_nodes_and_builtins expects.
2349
2350 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
2351
2352         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
2353
2354 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
2355
2356         PR target/41985
2357         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
2358         function contains at least one local dynamic name.
2359         (print_operand) <case '&'>: Instead output operand lossage diagnostics
2360         here if that happens.
2361
2362 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
2363             Joern Rennecke  <amylaar@spamcop.net>
2364
2365         * cfgrtl.c (pass_free_cfg): Add pass name.
2366         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
2367         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
2368         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
2369         * df-core.c (pass_df_initialize_no_opt): Likewise.
2370         * except.c (pass_rtl_eh): Likewise.
2371         * function.c (pass_init_function, pass_leaf_regs): Likewise.
2372         * gcse.c (pass_rtl_pre): Change pass name.
2373         * passes.c (pass_postreload): Add pass name.
2374         (make_pass_instance): Don't use duplicate-tracking logic for
2375         names starting with '*'.
2376         (next_pass_1): Assert that pass has a name.
2377         (register_one_dump_file): If there is an space in the name,
2378         skip past it.
2379         * predict.c (pass_strip_predict_hints): Add pass name.
2380         * reg-stack.c (pass_stack_regs): Likewise.
2381         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2382         * tree-cfg.c (pass_warn_function_return,
2383         pass_warn_function_noreturn): Add pass name.
2384         * tree-dfa.c (pass_referenced_vars): Likewise.
2385         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
2386         Fix whitespace before comment.
2387         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
2388         (pass_init_datastructures): Add pass name.
2389         * tree-ssa-loop.c (pass_record_bounds): Likewise.
2390         * tree-ssa.c (pass_early_warn_uninitialized,
2391         pass_late_warn_uninitialized): Likewise.
2392         * tree.c (pass_ipa_free_lang_data): Likewise.
2393         * doc/passes.texi (pass manager): Document how to disambiguate
2394         pass names.
2395
2396 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
2397
2398         * df-problems.c: Fix documentation for forward simulation of LR.
2399         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
2400         (df_simulate_finalize_forwards): Remove.
2401         * df.h (df_simulate_finalize_forwards): Remove.
2402
2403 2009-11-08  Richard Guenther  <rguenther@suse.de>
2404
2405         * tree-ssa-structalias.c (build_succ_graph): Properly make
2406         variables escape if they are stored to anything.
2407
2408 2009-11-08  Richard Guenther  <rguenther@suse.de>
2409
2410         PR rtl-optimization/41928
2411         * loop-invariant.c (free_loop_data): If we didn't allocate
2412         loop data do not try to free it.
2413
2414 2009-11-07  Jason Merrill  <jason@redhat.com>
2415
2416         * tree.c (reconstruct_complex_type): Preserve attributes.
2417
2418 2009-11-07  Richard Guenther  <rguenther@suse.de>
2419
2420         * tree-ssa-structalias.c (build_succ_graph): Feed stores
2421         to anything only to variables that can take pointers.
2422         (get_constraint_for_ssa_var): Properly exclude full
2423         variables from expanding.
2424         (first_vi_for_offset): Avoid overflow in arithmetic.
2425         (first_or_preceding_vi_for_offset): Likewise.
2426         (count_num_arguments): Fix implementation.
2427         (gate_ipa_pta): Do not run when not optimizing.
2428
2429 2009-11-07  David Binderman <dcb314@hotmail.com>
2430
2431         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
2432         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
2433         set but not used variables.
2434         (apply_args_reg_offset): Comment out as unused.
2435         * calls.c (flags_from_decl_or_type): Likewise.
2436         * genautomata.c (check_regexp_units_distribution): Likewise.
2437
2438 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
2439
2440         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
2441         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
2442         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
2443         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
2444         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
2445         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
2446         operand alternatives.
2447
2448 2009-11-06  Michael Matz  <matz@suse.de>
2449
2450         PR middle-end/41963
2451         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
2452         of a potential reciprocal to really be reciprocals.
2453
2454 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
2455
2456         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
2457         lwpintrin.h after immintrin.h.
2458         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
2459         typedefs.
2460
2461         PR middle-end/41935
2462         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
2463         or non-constant index, allow index one past the last element and
2464         allow exceeding array bound in arrays that might be used as flexible
2465         array members.
2466
2467 2009-11-05  Richard Henderson  <rth@redhat.com>
2468
2469         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
2470
2471 2009-11-05  Paul Brook  <paul@codesourcery.com>
2472
2473         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
2474         (arm_fpu_desc): New.
2475         (all_fpus): Add FPU details.
2476         (fp_model_for_fpu): Remove.
2477         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
2478         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
2479         (arm_file_start): Use arm_fpu_desc.
2480         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
2481         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
2482         arm_fpu_desc.
2483         (TARGET_FPA_EMU2): Define.
2484         (arm_fp_model, fputype, arm_fpu_tune): Remove.
2485         (vfp_reg_type, arm_fpu_desc): New.
2486         * config/arm/arm.md (attr fpu): Simplify.
2487         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
2488         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
2489         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
2490         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
2491         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
2492
2493 2009-11-05  Michael Matz  <matz@suse.de>
2494
2495         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
2496         on TARGET_RECIP.
2497         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
2498         for 1/sqrtf.
2499
2500 2009-11-04  Jason Merrill  <jason@redhat.com>
2501
2502         PR c++/36912
2503         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
2504         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
2505         (output_constant): Avoid crash after error.
2506
2507 2009-11-05  Martin Jambor  <mjambor@suse.cz>
2508
2509         * tree-sra.c (struct access): Changed comment of next_sibling field.
2510         (analyze_modified_params): Loop over accesses of a group rather than
2511         over all with the ame base, pass a common bitmap to
2512         walk_aliased_vdefs.
2513         (unmodified_by_ref_scalar_representative): Build link lists of
2514         accesses of a group.
2515         (splice_param_accesses): Likewise.
2516
2517 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
2518
2519         * df-scan.c (df-uses-record): Add case zero_extract of mem.
2520
2521 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2522
2523         PR target/10127
2524         PR ada/20548
2525         * config/i386/i386.md (probe_stack): New expander.
2526         (logical operation peepholes): Do not split stack checking probes.
2527
2528 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2529             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2530
2531         * doc/invoke.texi (-mlwp): Add documentation.
2532         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
2533         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
2534         (x86_64-*-*): Ditto.
2535         * config/i386/lwpintrin.h: New file, provide x86 compiler
2536         intrinisics for LWP.
2537         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
2538         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
2539         * config/i386/i386-c.c (ix86_target_macros_internal): Check
2540         ISA_FLAG for LWP.
2541         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
2542         * config/i386/i386.opt (-mlwp): New switch for LWP support.
2543         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
2544         (OPTION_MASK_ISA_LWP_UNSET): New.
2545         (ix86_handle_option): Handle -mlwp.
2546         (isa_opts): Handle -mlwp.
2547         (enum pta_flags): Add PTA_LWP.
2548         (override_options): Add LWP support.
2549         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
2550         (IX86_BUILTIN_LLWPCB32): Ditto.
2551         (IX86_BUILTIN_LLWPCB64): Ditto.
2552         (IX86_BUILTIN_SLWPCB16): Ditto.
2553         (IX86_BUILTIN_SLWPCB32): Ditto.
2554         (IX86_BUILTIN_SLWPCB64): Ditto.
2555         (IX86_BUILTIN_LWPVAL16): Ditto.
2556         (IX86_BUILTIN_LWPVAL32): Ditto.
2557         (IX86_BUILTIN_LWPVAL64): Ditto.
2558         (IX86_BUILTIN_LWPINS16): Ditto.
2559         (IX86_BUILTIN_LWPINS32): Ditto.
2560         (IX86_BUILTIN_LWPINS64): Ditto.
2561         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
2562         (builtin_description): Ditto.
2563         (ix86_init_mmx_sse_builtins): Ditto.
2564         (ix86_expand_special_args_builtin): Ditto.
2565         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
2566         LWP support.
2567         (UNSPEC_SLWP_INTRINSIC): Ditto.
2568         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
2569         (UNSPECV_LWPINS_INTRINSIC): Ditto.
2570         (lwp_llwpcbhi1): New lwp pattern.
2571         (lwp_llwpcbsi1): Ditto.
2572         (lwp_llwpcbdi1): Ditto.
2573         (lwp_slwpcbhi1): Ditto.
2574         (lwp_slwpcbsi1): Ditto.
2575         (lwp_slwpcbdi1): Ditto.
2576         (lwp_lwpvalhi3): Ditto.
2577         (lwp_lwpvalsi3): Ditto.
2578         (lwp_lwpvaldi3): Ditto.
2579         (lwp_lwpinshi3): Ditto.
2580         (lwp_lwpinssi3): Ditto.
2581         (lwp_lwpinsdi3): Ditto.
2582
2583 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2584             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2585
2586         PR rtl-opt/41833
2587         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
2588         a vec_duplicate.
2589
2590 2009-11-04  Richard Guenther  <rguenther@suse.de>
2591             Rafael Avila de Espindola  <espindola@google.com>
2592
2593         * gcc.c (process_command): Handle arguments name@offset.
2594
2595 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2596             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2597
2598         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
2599         (x86_64-*-*): Ditto.
2600         * config/i386/xopintrin.h: New file, provide common x86 compiler
2601         intrinisics for XOP.
2602         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
2603         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
2604         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2605         ISA_FLAG for XOP.
2606         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
2607         * config/i386/i386.opt (-mxop): New switch for XOP support.
2608         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
2609         (UNSPEC_XOP_TRUEFALSE)
2610         (UNSPEC_XOP_PERMUTE)
2611         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
2612         (PPERM_*): New constants for vpperm instruction.
2613         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
2614         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
2615         (OPTION_MASK_ISA_XOP_UNSET): New.
2616         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
2617         (ix86_handle_option): Handle -mxop.
2618         (isa_opts): Handle -mxop.
2619         (enum pta_flags): Add PTA_XOP.
2620         (override_options): Add XOP support.
2621         (print_operand): Add code for XOP compare instructions.
2622         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
2623         (ix86_expand_int_vcond): Extend for XOP compare instruction.
2624
2625         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
2626         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
2627         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
2628         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
2629         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
2630         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
2631         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
2632
2633         (IX86_BUILTIN_VPCMOV256): Ditto.
2634         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
2635         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
2636         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
2637         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
2638         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
2639         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
2640
2641         (IX86_BUILTIN_VPPERM): Ditto.
2642
2643         (IX86_BUILTIN_VPMACSSWW): Ditto.
2644         (IX86_BUILTIN_VPMACSWW): Ditto.
2645         (IX86_BUILTIN_VPMACSSWD): Ditto.
2646         (IX86_BUILTIN_VPMACSWD): Ditto.
2647         (IX86_BUILTIN_VPMACSSDD): Ditto.
2648         (IX86_BUILTIN_VPMACSDD): Ditto.
2649         (IX86_BUILTIN_VPMACSSDQL): Ditto.
2650         (IX86_BUILTIN_VPMACSSDQH): Ditto.
2651         (IX86_BUILTIN_VPMACSDQL): Ditto.
2652         (IX86_BUILTIN_VPMACSDQH): Ditto.
2653         (IX86_BUILTIN_VPMADCSSWD): Ditto.
2654         (IX86_BUILTIN_VPMADCSWD): Ditto.
2655
2656         (IX86_BUILTIN_VPHADDBW): Ditto.
2657         (IX86_BUILTIN_VPHADDBD): Ditto.
2658         (IX86_BUILTIN_VPHADDBQ): Ditto.
2659         (IX86_BUILTIN_VPHADDWD): Ditto.
2660         (IX86_BUILTIN_VPHADDWQ): Ditto.
2661         (IX86_BUILTIN_VPHADDDQ): Ditto.
2662         (IX86_BUILTIN_VPHADDUBW): Ditto.
2663         (IX86_BUILTIN_VPHADDUBD): Ditto.
2664         (IX86_BUILTIN_VPHADDUBQ): Ditto.
2665         (IX86_BUILTIN_VPHADDUWD): Ditto.
2666         (IX86_BUILTIN_VPHADDUWQ): Ditto.
2667         (IX86_BUILTIN_VPHADDUDQ): Ditto.
2668         (IX86_BUILTIN_VPHSUBBW): Ditto.
2669         (IX86_BUILTIN_VPHSUBWD): Ditto.
2670         (IX86_BUILTIN_VPHSUBDQ): Ditto.
2671
2672         (IX86_BUILTIN_VPROTB): Ditto.
2673         (IX86_BUILTIN_VPROTW): Ditto.
2674         (IX86_BUILTIN_VPROTD): Ditto.
2675         (IX86_BUILTIN_VPROTQ): Ditto.
2676         (IX86_BUILTIN_VPROTB_IMM): Ditto.
2677         (IX86_BUILTIN_VPROTW_IMM): Ditto.
2678         (IX86_BUILTIN_VPROTD_IMM): Ditto.
2679         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
2680
2681         (IX86_BUILTIN_VPSHLB): Ditto.
2682         (IX86_BUILTIN_VPSHLW): Ditto.
2683         (IX86_BUILTIN_VPSHLD): Ditto.
2684         (IX86_BUILTIN_VPSHLQ): Ditto.
2685         (IX86_BUILTIN_VPSHAB): Ditto.
2686         (IX86_BUILTIN_VPSHAW): Ditto.
2687         (IX86_BUILTIN_VPSHAD): Ditto.
2688         (IX86_BUILTIN_VPSHAQ): Ditto.
2689
2690         (IX86_BUILTIN_VFRCZSS): Ditto.
2691         (IX86_BUILTIN_VFRCZSD): Ditto.
2692         (IX86_BUILTIN_VFRCZPS): Ditto.
2693         (IX86_BUILTIN_VFRCZPD): Ditto.
2694         (IX86_BUILTIN_VFRCZPS256): Ditto.
2695         (IX86_BUILTIN_VFRCZPD256): Ditto.
2696
2697         (IX86_BUILTIN_VPCOMEQUB): Ditto.
2698         (IX86_BUILTIN_VPCOMNEUB): Ditto.
2699         (IX86_BUILTIN_VPCOMLTUB): Ditto.
2700         (IX86_BUILTIN_VPCOMLEUB): Ditto.
2701         (IX86_BUILTIN_VPCOMGTUB): Ditto.
2702         (IX86_BUILTIN_VPCOMGEUB): Ditto.
2703         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
2704         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
2705
2706         (IX86_BUILTIN_VPCOMEQUW): Ditto.
2707         (IX86_BUILTIN_VPCOMNEUW): Ditto.
2708         (IX86_BUILTIN_VPCOMLTUW): Ditto.
2709         (IX86_BUILTIN_VPCOMLEUW): Ditto.
2710         (IX86_BUILTIN_VPCOMGTUW): Ditto.
2711         (IX86_BUILTIN_VPCOMGEUW): Ditto.
2712         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
2713         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
2714
2715         (IX86_BUILTIN_VPCOMEQUD): Ditto.
2716         (IX86_BUILTIN_VPCOMNEUD): Ditto.
2717         (IX86_BUILTIN_VPCOMLTUD): Ditto.
2718         (IX86_BUILTIN_VPCOMLEUD): Ditto.
2719         (IX86_BUILTIN_VPCOMGTUD): Ditto.
2720         (IX86_BUILTIN_VPCOMGEUD): Ditto.
2721         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
2722         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
2723
2724         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
2725         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
2726         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
2727         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
2728         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
2729         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
2730         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
2731         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
2732
2733         (IX86_BUILTIN_VPCOMEQB): Ditto.
2734         (IX86_BUILTIN_VPCOMNEB): Ditto.
2735         (IX86_BUILTIN_VPCOMLTB): Ditto.
2736         (IX86_BUILTIN_VPCOMLEB): Ditto.
2737         (IX86_BUILTIN_VPCOMGTB): Ditto.
2738         (IX86_BUILTIN_VPCOMGEB): Ditto.
2739         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
2740         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
2741
2742         (IX86_BUILTIN_VPCOMEQW): Ditto.
2743         (IX86_BUILTIN_VPCOMNEW): Ditto.
2744         (IX86_BUILTIN_VPCOMLTW): Ditto.
2745         (IX86_BUILTIN_VPCOMLEW): Ditto.
2746         (IX86_BUILTIN_VPCOMGTW): Ditto.
2747         (IX86_BUILTIN_VPCOMGEW): Ditto.
2748         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
2749         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
2750
2751         (IX86_BUILTIN_VPCOMEQD): Ditto.
2752         (IX86_BUILTIN_VPCOMNED): Ditto.
2753         (IX86_BUILTIN_VPCOMLTD): Ditto.
2754         (IX86_BUILTIN_VPCOMLED): Ditto.
2755         (IX86_BUILTIN_VPCOMGTD): Ditto.
2756         (IX86_BUILTIN_VPCOMGED): Ditto.
2757         (IX86_BUILTIN_VPCOMFALSED): Ditto.
2758         (IX86_BUILTIN_VPCOMTRUED): Ditto.
2759
2760         (IX86_BUILTIN_VPCOMEQQ): Ditto.
2761         (IX86_BUILTIN_VPCOMNEQ): Ditto.
2762         (IX86_BUILTIN_VPCOMLTQ): Ditto.
2763         (IX86_BUILTIN_VPCOMLEQ): Ditto.
2764         (IX86_BUILTIN_VPCOMGTQ): Ditto.
2765         (IX86_BUILTIN_VPCOMGEQ): Ditto.
2766         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
2767         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
2768
2769         (enum multi_arg_type): New enum for describing the various XOP
2770         intrinsic argument types.
2771         (bdesc_multi_arg): New table for XOP intrinsics.
2772         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
2773         (ix86_expand_multi_arg_builtin): New function for creating XOP
2774         intrinsics.
2775
2776         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
2777         (xop_pmacsww): Ditto.
2778         (xop_pmacssww): Ditto.
2779         (xop_pmacsdd): Ditto.
2780         (xop_pmacssdd): Ditto.
2781         (xop_pmacssdql): Ditto.
2782         (xop_pmacssdqh): Ditto.
2783         (xop_pmacsdql): Ditto.
2784         (xop_pmacsdql_mem): Ditto.
2785         (xop_mulv2div2di3_low): Ditto.
2786         (xop_pmacsdqh): Ditto.
2787         (xop_pmacsdqh_mem): Ditto.
2788         (xop_mulv2div2di3_high): Ditto.
2789         (xop_pmacsswd): Ditto.
2790         (xop_pmacswd): Ditto.
2791         (xop_pmadcsswd): Ditto.
2792         (xop_pmadcswd): Ditto.
2793         (xop_pcmov_<mode>): Ditto.
2794         (xop_pcmov_<mode>256): Ditto.
2795         (xop_phaddbw): Ditto.
2796         (xop_phaddbd): Ditto.
2797         (xop_phaddbq): Ditto.
2798         (xop_phaddwd): Ditto.
2799         (xop_phaddwq): Ditto.
2800         (xop_phadddq): Ditto.
2801         (xop_phaddubw): Ditto.
2802         (xop_phaddubd): Ditto.
2803         (xop_phaddubq): Ditto.
2804         (xop_phadduwd): Ditto.
2805         (xop_phadduwq): Ditto.
2806         (xop_phaddudq): Ditto.
2807         (xop_phsubbw): Ditto.
2808         (xop_phsubwd): Ditto.
2809         (xop_phsubdq): Ditto.
2810         (xop_pperm): Ditto.
2811         (rotl<mode>3): Ditto.
2812         (rotr<mode>3): Ditto.
2813         (xop_rotl<mode>3): Ditto.
2814         (xop_rotr<mode>3): Ditto.
2815         (vrotr<mode>3): Ditto.
2816         (vrotl<mode>3): Ditto.
2817         (xop_vrotl<mode>3): Ditto.
2818         (vlshr<mode>3): Ditto.
2819         (vashr<mode>3): Ditto.
2820         (vashl<mode>3
2821         (xop_ashl<mode>3): Ditto.
2822         (xop_lshl<mode>3): Ditto.
2823         (ashlv16qi3): Ditto.
2824         (lshlv16qi3): Ditto.
2825         (ashrv16qi3): Ditto.
2826         (ashrv2di3): Ditto.
2827         (xop_frcz<mode>2): Ditto.
2828         (xop_vmfrcz<mode>2): Ditto.
2829         (xop_frcz<mode>2256): Ditto.
2830         (xop_maskcmp<mode>3): Ditto.
2831         (xop_maskcmp_uns<mode>3): Ditto.
2832         (xop_maskcmp_uns2<mode>3): Ditto.
2833         (xop_pcom_tf<mode>3): Ditto.
2834
2835         * doc/invoke.texi (-mxop): Add documentation.
2836         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
2837
2838 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
2839
2840         PR driver/11810
2841         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
2842         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
2843         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
2844
2845 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
2846
2847         PR target/40835
2848         * arm.md (peephole2 patterns for move and compare): New.
2849
2850 2009-11-04  Nick Clifton  <nickc@redhat.com>
2851
2852         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
2853         Make sure that it does not allow CONST_DOUBLEs.
2854         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
2855         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
2856         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
2857         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
2858         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
2859         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
2860         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
2861         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
2862         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
2863         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
2864         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
2865         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
2866         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
2867         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
2868         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
2869
2870 2009-11-04  Richard Guenther  <rguenther@suse.de>
2871
2872         PR tree-optimization/41919
2873         * tree-vrp.c (test_for_singularity): Properly compare values.
2874
2875 2009-11-04  Revital Eres  <eres@il.ibm.com>
2876
2877         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2878         Consider peeling for alignment only for stores and remove
2879         redundant assignment.
2880
2881 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
2882
2883         PR target/41302
2884         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
2885         (m68k_ok_for_sibcall_p): Handle different result return locations.
2886
2887 2009-11-04  Richard Guenther  <rguenther@suse.de>
2888
2889         * c-opts.c (c_common_post_options): Move LTO option processing
2890         code ...
2891         * opts.c (decode_options): ... here.
2892
2893 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
2894
2895         * c-common.c (fold_offsetof_1): Use %wd instead of
2896         HOST_WIDE_INT_PRINT_DEC.
2897
2898 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
2899
2900         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
2901         __pic__ or __PIC__.
2902
2903 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
2904
2905         * config.gcc (vax-*-linux*): Keep the original contents of
2906         tmake_file while adding vax/t-linux.
2907
2908 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2909
2910         PR target/10127
2911         PR ada/20548
2912         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
2913         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
2914         (STACK_CHECK_MOVING_SP): Likewise.
2915         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
2916         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
2917         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
2918         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
2919         Document PROBE_STACK.
2920         * explow.c (anti_adjust_stack_and_probe): New function.
2921         (allocate_dynamic_stack_space): Do not directly allocate space if
2922         STACK_CHECK_MOVING_SP, instead invoke above function.
2923         (emit_stack_probe): Handle probe_stack insn.
2924         (PROBE_INTERVAL): New macro.
2925         (STACK_GROW_OPTAB): Likewise.
2926         (STACK_GROW_OFF): Likewise.
2927         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
2928         loop condition in the small constant case.  Rewrite in the general
2929         case to be immune to wraparounds.  Make sure the address of probes
2930         is valid.  Try to use [base + disp] addressing mode if possible.
2931         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
2932         checking is enabled and STACK_CHECK_MOVING_SP.
2933         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
2934         return 1 for volatile references to the stack pointer.
2935         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
2936         __builtin_alloca if stack checking is enabled.
2937         * unwind-dw2.c (uw_identify_context): Take into account whether the
2938         context is that of a signal frame or not.
2939         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
2940         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
2941
2942 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
2943
2944         PR rtl-optimization/41917
2945         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
2946         operand isn't known to be 0, return 1.
2947
2948 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2949
2950         * config/mips/mips.md: Fix typos.
2951
2952 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
2953
2954         * doc/invoke.texi: Fix typo.
2955
2956 2009-11-03  Paul Brook  <paul@codesourcery.com>
2957
2958         * config/arm/neon.ml (vectype): Add T_floatSF.
2959         (string_of_vectype): Ditto.
2960         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
2961         (deftypes): Use float for float32_t.
2962         * config/arm/arm_neon.h: Regenerate.
2963
2964 2009-11-03  Nick Clifton  <nickc@redhat.com>
2965             Kevin Buettner  <kevinb@redhat.com>
2966
2967         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
2968         order of expected registers.
2969         (rx_load_multiple_vector): Likewise.
2970         (rx_rtsd_vector): Likewise.
2971         * config/rx/rx.c (rx_cpu_type): New variable.
2972         (rx_print_operand): Fix bug printing 64-bit constant values.
2973         (rx_emit_stack_pushm): Reverse order of pushed registers.
2974         (gen_rx_store_vector): Likewise.
2975         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
2976         attribute name.
2977         (is_exception_func): Rename to is_interrupt_func and only accept
2978         "interrupt" as the attribute name.
2979         (rx_get_stack_layout): Use new function name.
2980         (rx_func_attr_inlinable): Likewise.
2981         (rx_attribute_table): Remove "exception".
2982         (rx_expand_prologue): If necessary push the accumulator register
2983         in the prologue of interrupt functions.
2984         (rx_expand_epilogue): If necessary pop the accumulator.
2985         (rx_builtins): Add RX_BUILTIN_MVTIPL.
2986         (rx_expand_builtin_stz): Remove.
2987         (rx_expand_builtin_mvtipl): New function.
2988         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
2989         (rx_expand_builtin): Likewise.
2990         (rx_enable_fpu): New variable.
2991         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
2992         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
2993         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
2994         (enum rx_cpu_types): Define.
2995         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
2996         (INCOMING_FRAME_SP_OFFSET): Define.
2997         (ARG_POINTER_CFA_OFFSET): Define.
2998         (FRAME_POINTER_CFA_OFFSET): Define.
2999         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
3000         (ALLOW_RX_FPU_INSNS): Define.
3001         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
3002         fast_math_flags_set_p.
3003         (UNSPEC_BUILTIN_MVTIPL): Define.
3004         (revl): Rename to bswapsi2.
3005         (bswaphi2): New pattern.
3006         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
3007         (mvtaclo): Likewise.
3008         (racw): Likewise.
3009         (mvtc): Remove clobber of cc0.
3010         (mvtcp): Delete.
3011         (opecp): Delete.
3012         * config/rx/rx.opt (mieee): Remove.
3013         (fpu): Add.
3014         (nofpu): Add.
3015         (mcpu=): Add.
3016         (patch=): Add.
3017         (msave-acc-in-interrupts): Add.
3018         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
3019         (MULTILIB_DIRS): Likewise.
3020         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
3021         * doc/extend.texi: Remove description of "exception" function
3022         attribute.
3023         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
3024         -msave-acc-in-interrupts options.
3025
3026 2009-11-03  Richard Guenther  <rguenther@suse.de>
3027
3028         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
3029
3030 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
3031
3032         PR c++/38699
3033         * c-common.c (fold_offsetof_1): Issue errors when the member
3034         designator of the offsetof expression is not legitimate.
3035
3036 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3037
3038         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
3039         names instead of numerical constants.
3040         (sse_prologue_save): Ditto.
3041         (*sse_prologue_save_insn): Ditto.
3042
3043 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3044
3045         PR target/41900
3046         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3047         (TARGET_CALL_ESP): New define.
3048         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3049         X86_ARCH_CALL_ESP.
3050         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3051         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3052         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
3053         TARGET_CALL_ESP.
3054         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3055         New patterns, use "lsm" as operand 1 constraint.
3056         * config/i386/predicates.md (call_insn_operand): Depend on
3057         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3058
3059 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3060
3061         PR tree-optimization/41857
3062         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
3063         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
3064         to create_mem_ref.
3065         * tree-ssa-address.c (move_hint_to_base): New function.
3066         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
3067         address space associated with TYPE.
3068         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
3069         most_expensive_mult_to_index.  Call move_hint_to_base.
3070         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
3071         TYPE to addr_to_parts.
3072
3073 2009-11-02  Martin Jambor  <mjambor@suse.cz>
3074
3075         PR tree-optimization/41750
3076         * tree-sra.c (analyze_modified_params): Loop over all
3077         representatives of components of a parameter.
3078
3079 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
3080
3081         PR tree-optimization/41841
3082         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
3083         local variables of not yet materialized clones.
3084
3085         PR debug/41893
3086         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
3087         for a VOIDmode variable.
3088
3089         PR c++/41774
3090         * c-pragma.c (visstack): Change into vector of ints rather than
3091         enum symbol_visibility.
3092         (push_visibility): Add kind argument, push default_visibility together
3093         with kind.
3094         (pop_visibility): Add kind argument, return true if successful, fail
3095         if visibility stack is empty or if stack top is of different kind.
3096         (handle_pragma_visibility): Don't check length of visstack, instead
3097         call pop_visibility and issue diagnostics if it failed.  Pass 0
3098         as last argument to push_visibility and pop_visibility.
3099         * c-pragma.h (push_visibility): Add kind argument.
3100         (pop_visibility): Likewise.  Return bool instead of void.
3101
3102 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
3103
3104         * tree.def (TARGET_MEM_REF): Update comment.
3105         * alias.c (get_alias_set): Retrieve the original memory reference for
3106         a TARGET_MEM_REF before proceeding.
3107
3108 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3109
3110         * config/frv/frv.c (frv_function_value, frv_libcall_value,
3111         frv_function_value_regno_p): New functions.
3112         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3113         * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3114         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
3115         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
3116
3117 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3118
3119         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
3120         new 'outgoing' argument.
3121         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
3122         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3123         * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3124         LIBCALL_VALUE): Remove.
3125         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
3126         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
3127         (mh10300_function_value_regno_p): Declare.
3128
3129 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3130
3131         * config/arm/cortex-a9.md: New - integer pipeline description.
3132
3133 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
3134
3135         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
3136         aborting if the sizes of the two references don't match.
3137
3138 2009-10-31  Toon Moene  <toon@moene.org>
3139
3140         * ipa-inline.c (cgraph_decide_inlining):
3141         Include reason for not inlining called-once functions in dump file.
3142
3143 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
3144
3145         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
3146         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
3147         (LINK_SPEC): BE_LINK_SPEC added.
3148
3149 2009-10-30  Richard Guenther  <rguenther@suse.de>
3150
3151         PR lto/41858
3152         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
3153
3154 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
3155
3156         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
3157         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
3158         label.
3159
3160 2009-10-30  Martin Jambor  <mjambor@suse.cz>
3161
3162         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
3163
3164 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3165
3166         PR target/40838
3167         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
3168         first.  Move assert on stack_alignment_estimated just before
3169         setting stack_realign_needed.
3170         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
3171         Don't call update_stack_boundary.
3172
3173         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
3174         (verride_options): Don't check ix86_force_align_arg_pointer here.
3175         (ix86_function_ok_for_sibcall): Use it.
3176         (ix86_update_stack_boundary): Likewise.
3177
3178         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
3179
3180 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
3181
3182         * arm.md (QHSI): New mode iterator.
3183         (movqi): If generating for thumb, then truncate any immediate to
3184         8 bits.
3185         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
3186         with...
3187         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
3188         version.
3189
3190 2009-10-29  Cary Coutant  <ccoutant@google.com>
3191
3192         PR debug/41700
3193         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
3194         locations in the source).
3195         (store_vcall_insn): New function.
3196         (lookup_vcall_insn): New function.
3197         (dwarf2out_virtual_call_token): Use store_vcall_insn.
3198         (dwarf2out_copy_call_info): New function.
3199         (dwarf2out_virtual_call): Use lookup_vcall_insn.
3200         * emit-rtl.c (try_split): Call copy_call_info debug hook.
3201         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
3202         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
3203         (debug_nothing_rtx_rtx): New dummy hook.
3204         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
3205         (xcoff_debug_hooks): Likewise.
3206         * sdbout.c (sdb_debug_hooks): Likewise.
3207         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3208
3209 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
3210
3211         * doc/invoke.texi (mmcount-ra-address): Document new command line
3212         option.
3213         * config/mips/mips.opt (mmcount-ra-address): New option.
3214         * config/mips/mips-protos.h (mips_function_profiler): Declare new
3215         function.
3216         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
3217         member.
3218         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
3219         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
3220         rewritten.
3221         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
3222         mips_function_profiler.
3223
3224 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
3225
3226         PR middle-end/37565
3227         PR target/38018
3228         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
3229         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3230         * optc-gen.awk (cl_target_option_restore): Include call to
3231         targetm.override_options_after_change.
3232         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3233         * target.h (override_options_after_change): New.
3234         * c-common.c (parse_optimize_options): Call
3235         targetm.override_options_after_change.
3236         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3237         (ia64_override_options_after_change): New.
3238         (ia64_override_options) Add call to above.
3239
3240 2009-10-29  Michael Matz  <matz@suse.de>
3241
3242         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
3243         (gate_convert_to_rsqrt): Ditto.
3244         (pass_convert_to_rsqrt): Ditto.
3245         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
3246         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
3247         to pass list.
3248
3249         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
3250
3251 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3252
3253         * config/arm/arm.c (find_best_start): Fix type of remainder to be
3254         unsigned.
3255
3256 2009-10-29  Martin Jambor  <mjambor@suse.cz>
3257
3258         PR tree-optimization/41775
3259         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
3260         (generate_subtree_copies): Do not unshare agg.
3261         (load_assign_lhs_subreplacements): Do not unshare rhs.
3262         (sra_modify_assign): Do not unshare exprs.
3263         (propagate_subacesses_accross_link): Renamed to
3264         propagate_subaccesses_across_link.
3265
3266 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
3267
3268         * arm.c (count_insns_for_constant): Rework to support counting for
3269         thumb2 immediates as well.
3270         (find_best_start): Split out from arm_gen_constant.
3271         (arm_gen_constant): Rework to support XOR with immediate.
3272
3273 2009-10-29  Chao-ying Fu  <fu@mips.com>
3274
3275         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
3276         functions.
3277         (mips_expand_synci_loop):  Use the length rtx to control the
3278         synci loop from the begin rtx that points to the first byte of
3279         the cache line.
3280
3281 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3282
3283         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
3284
3285 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3286
3287         * dbxout.c (dbxout_common_check): Accept non public trees.
3288         * dwarf2out.c (fortran_common): Accept non public trees.
3289
3290 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3291
3292         * common.opt (fuse-linker-plugin): New option.
3293         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
3294         fuse-linker-plugin.
3295         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
3296
3297 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3298
3299         PR rtl-optimization/39715
3300         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
3301         (gen_cstoresi_ltu_thumb1): New splitter.
3302
3303 2009-10-28  Richard Guenther  <rguenther@suse.de>
3304
3305         PR lto/41808
3306         PR lto/41839
3307         * tree-ssa.c (useless_type_conversion_p): Do not treat
3308         conversions to pointers to incomplete types as useless.
3309         * gimple.c (gimple_types_compatible_p): Compare struct tags,
3310         not typedef names.
3311
3312 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
3313
3314         * var-tracking.c (emit_note_insn_var_location): Don't call the second
3315         vt_expand_loc unnecessarily when location is not a register nor
3316         memory.
3317
3318         PR middle-end/41837
3319         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
3320         fields don't have DECL_NAME.
3321
3322         PR debug/41801
3323         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
3324         call convert_memory_address on addr.
3325
3326         PR target/41762
3327         * config/i386/i386.c (ix86_pic_register_p): Don't call
3328         rtx_equal_for_cselib_p for VALUEs discarded as useless.
3329
3330 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
3331
3332         * var-tracking.c (emit_note_insn_var_location): Get the mode of
3333         a variable part from its REG, MEM or VALUE.
3334
3335 2009-10-28  Richard Guenther  <rguenther@suse.de>
3336
3337         * gimple.c (gimple_get_alias_set): Fix comment typo.
3338
3339 2009-10-28  Richard Guenther  <rguenther@suse.de>
3340
3341         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
3342         (free_lang_data): Unconditionally compute alias sets for all
3343         standard integer types.  Bail out if gate bailed out previously.
3344         Do not reset the types_compatible_p langhook.
3345         (gate_free_lang_data): Remove.
3346         (struct pass_ipa_free_lang_data): Enable unconditionally.
3347         * gimple.c (gimple_get_alias_set): Use the same alias-set for
3348         all pointer types.
3349
3350 2009-10-28  Richard Guenther  <rguenther@suse.de>
3351
3352         PR middle-end/41855
3353         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
3354         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
3355         (call_may_clobber_ref_p_1): Likewise.
3356         * tree-ssa-structalias.c (find_func_aliases): Likewise.
3357         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
3358
3359 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3360
3361         PR rtl-optimization/41812
3362
3363         Revert:
3364         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3365
3366         * df-problems.c (df_md_scratch): New.
3367         (df_md_alloc, df_md_free): Allocate/free it.
3368         (df_md_local_compute): Only include live registers in init.
3369         (df_md_transfer_function): Prune the in-set computed by
3370         the confluence function, and the gen-set too.
3371
3372 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3373
3374         PR rtl-optimization/39715
3375         * combine.c (simplify_comparison): Use extensions to
3376         widen comparisons.  Try an ANDing first.
3377
3378 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3379
3380         PR rtl-optimization/40741
3381         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
3382         a small constant is cheap.
3383         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
3384         force_reg on the LHS.
3385         (xorsi3): Likewise, and split the XOR if the constant is complex
3386         and not in Thumb mode.
3387
3388 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3389
3390         * expmed.c (emit_store_flag): Check costs before
3391         transforming to the opposite representation.
3392
3393 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3394
3395         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
3396         cstore result to DImode.
3397
3398 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3399
3400         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
3401         inside the unspec vector.
3402
3403 2009-10-27  Richard Henderson  <rth@redhat.com>
3404
3405         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
3406
3407 2009-10-27  Richard Henderson  <rth@redhat.com>
3408
3409         PR c++/41819
3410         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
3411         eh_region_may_contain_throw; update users.
3412         (eh_region_may_contain_throw): New function.
3413         (lower_catch): Check flag_exceptions before creating exception region.
3414         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
3415         (lower_cleanup): Tidy existing flag_exceptions check to match.
3416
3417 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
3418
3419         PR/41799
3420         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
3421         * config/i386/mingw.opt: Add fset-stack-executable.
3422         * config/i386/i386.c (ix86_trampoline_init): Make call to
3423         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
3424         defined and its value is not zero.
3425         * doc/invoke.texi
3426
3427 2009-10-27  Richard Guenther  <rguenther@suse.de>
3428
3429         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
3430         handle calls to externally visible functions like in regular mode.
3431         (create_variable_info_for): Do not create function infos here.
3432         (have_alias_info): Remove write-only variable.
3433         (solve_constraints): New function split out from common code
3434         in compute_points_to_sets and ipa_pta_execute.
3435         (compute_points_to_sets): Adjust.
3436         (ipa_pta_execute): Likewise.  Handle clones and externally visible
3437         functions like in non-IPA mode.
3438
3439 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
3440
3441         PR c/41842
3442         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
3443         error_mark_node.
3444
3445 2009-10-27  Richard Guenther  <rguenther@suse.de>
3446
3447         * tree-complex.c (expand_complex_div_wide): Check for
3448         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
3449
3450 2009-10-27  Revital Eres  <eres@il.ibm.com>
3451
3452         PR tree-optimization/40648
3453         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3454         Change decision of when to peel for alignment.
3455
3456 2009-10-27  Richard Guenther  <rguenther@suse.de>
3457
3458         PR lto/41821
3459         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
3460
3461 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
3462
3463         PR bootstrap/41451
3464         * fold-const.c (fold_binary_loc): Do not call
3465         protected_set_expr_location.
3466
3467 2009-10-27  Wei Guozhi  <carrot@google.com>
3468
3469         PR target/41705
3470         * target.h (have_conditional_execution): Add a new target hook
3471         function.
3472         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
3473         * targhooks.h (default_have_conditional_execution): Likewise.
3474         * targhooks.c (default_have_conditional_execution): Likewise.
3475         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
3476         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
3477         (arm_have_conditional_execution): New function.
3478         * ifcvt.c (noce_process_if_block, find_if_header,
3479         cond_exec_find_if_block, dead_or_predicable): Change the usage of
3480         macro HAVE_conditional_execution to a target hook call.
3481         * recog.c (peephole2_optimize): Likewise.
3482         * sched-rgn.c (add_branch_dependences): Likewise.
3483         * final.c (asm_insn_count, final_scan_insn): Likewise.
3484         * bb-reorder.c (HAVE_conditional_execution): Remove it.
3485
3486 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3487             Michael Meissner  <meissner@linux.vnet.ibm.com>
3488             Ulrich Weigand  <uweigand@de.ibm.com>
3489
3490         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
3491         * config/spu/spu_cache.h: New file.
3492
3493         * config/spu/cachemgr.c: New file.
3494         * config/spu/cache.S: New file.
3495
3496         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
3497         (ADDR_SPACE_EA): Define.
3498         (TARGET_ADDR_SPACE_KEYWORDS): Define.
3499         * config/spu/spu.c (EAmode): New macro.
3500         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3501         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3502         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
3503         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3504         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3505         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3506         (TARGET_ASM_SELECT_SECTION): Likewise.
3507         (TARGET_ASM_UNIQUE_SECTION): Likewise.
3508         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3509         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3510         (ea_symbol_ref): New function.
3511         (spu_legitimate_constant_p): Handle __ea qualified addresses.
3512         (spu_addr_space_legitimate_address_p): New function.
3513         (spu_addr_space_legitimize_address): Likewise.
3514         (cache_fetch): New global.
3515         (cache_fetch_dirty): Likewise.
3516         (ea_alias_set): Likewise.
3517         (ea_load_store): New function.
3518         (ea_load_store_inline): Likewise.
3519         (expand_ea_mem): Likewise.
3520         (spu_expand_mov): Handle __ea qualified memory references.
3521         (spu_addr_space_pointer_mode): New function.
3522         (spu_addr_space_address_mode): Likewise.
3523         (spu_addr_space_subset_p): Likewise.
3524         (spu_addr_space_convert): Likewise.
3525         (spu_section_type_flags): Handle "._ea" section.
3526         (spu_select_section): New function.
3527         (spu_unique_section): Likewise.
3528         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
3529         and __EA64__ predefined macros.
3530         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
3531         -matomic-updates switches.
3532
3533         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
3534         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
3535         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
3536         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
3537         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
3538         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
3539         $(T)cache128k.o): Likewise.
3540         ($(T)libgcc_%.a): Likewise.
3541
3542         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
3543         * config/spu/spu.opt (-mea32/-mea64): Add switches.
3544         (-maddress-space-conversion): Likewise.
3545         (-mcache-size=): Likewise.
3546         (-matomic-updates): Likewise.
3547         * doc/invoke.texi (-mea32/-mea64): Document.
3548         (-maddress-space-conversion): Likewise.
3549         (-mcache-size=): Likewise.
3550         (-matomic-updates): Likewise.
3551
3552 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3553             Michael Meissner  <meissner@linux.vnet.ibm.com>
3554             Ulrich Weigand  <uweigand@de.ibm.com>
3555
3556         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
3557
3558         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
3559         defined, add the named address space keywords.
3560         (c_addr_space_name): New function.
3561         (complete_array_type): Preserve named address space.
3562         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
3563         instead of targetm.valid_pointer_mode.
3564
3565         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
3566         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
3567         (ADDR_SPACE_KEYWORD): New macro.
3568         (c_addr_space_name): Add prototype.
3569
3570         * c-tree.h (struct c_declspecs): Add address_space member.
3571         (declspecs_add_addrspace): Add prototype.
3572
3573         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
3574
3575         * c-parser.c (c_parse_init): Add assertion.
3576         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
3577         (c_lex_one_token): Handle address space keywords.
3578         (c_token_starts_typename): Likewise.
3579         (c_token_starts_declspecs): Likewise.
3580         (c_parser_declspecs): Likewise.
3581         (c_parser_postfix_expression_after_paren_type): Diagnose compound
3582         literal within function qualified with named address space.
3583
3584         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
3585         address space qualifiers.
3586         (shadow_tag_warned): Warn about useless address space qualifiers.
3587         (quals_from_declspecs): Handle address space qualifiers.
3588         (grokdeclarator): Likewise.
3589         (build_null_declspecs): Likewise.
3590         (declspecs_add_addrspace): New function.
3591
3592         * c-typeck.c (addr_space_superset): New function.
3593         (qualify_type): Handle named address spaces.
3594         (composite_type): Likewise.
3595         (common_pointer_type): Likewise.
3596         (comp_target_types): Likewise.
3597         (build_conditional_expr): Likewise.
3598         (handle_warn_cast_qual): Likewise.
3599         (build_c_cast): Likewise.
3600         (convert_for_assignment): Likewise.
3601         (build_binary_op): Likewise.
3602         (pointer_diff): Handle named address spaces.  Use intermediate
3603         integer type of sufficient size if required.
3604
3605 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3606             Michael Meissner  <meissner@linux.vnet.ibm.com>
3607             Ulrich Weigand  <uweigand@de.ibm.com>
3608
3609         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
3610         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3611         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3612
3613         * target.h (struct target_def): Add pointer_mode, address_mode,
3614         and valid_pointer_mode to addr_space substructure.
3615         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3616         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3617         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3618         (TARGET_ADDR_SPACE_HOOKS): Add them.
3619         * targhooks.c (target_default_pointer_address_modes_p): New function.
3620         * target.h (target_default_pointer_address_modes_p): Add prototype.
3621         * targhooks.c (default_addr_space_pointer_mode): New function.
3622         (default_addr_space_address_mode): Likewise.
3623         (default_addr_space_valid_pointer_mode): Likewise.
3624         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
3625         (default_addr_space_address_mode): Likewise.
3626         (default_addr_space_valid_pointer_mode): Likewise.
3627         * output.h (default_valid_pointer_mode): Move to ...
3628         * targhooks.h (default_valid_pointer_mode): ... here.
3629         * varasm.c (default_valid_pointer_mode): Move to ...
3630         * targhooks.c (default_valid_pointer_mode): ... here.
3631
3632         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
3633         instead of targetm.valid_pointer_mode.
3634
3635         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
3636         * tree.c (integer_pow2p): Likewise.
3637         (tree_log2): Likewise.
3638         (tree_floor_log2): Likewise.
3639         (signed_or_unsigned_type_for): Support pointer type of different size.
3640         (int_or_pointer_precision): New function.
3641         * tree.h (int_or_pointer_precision): Add prototype.
3642         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
3643         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
3644         incoming pointer type instead of POINTER_SIZE.
3645
3646         * tree.c (build_pointer_type): Use appropriate pointer mode
3647         instead of ptr_mode.
3648         (build_reference_type): Likewise.
3649         * expr.c (store_expr): Likewise.
3650         (expand_expr_addr_expr): Likewise.
3651         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
3652         * cfgexpand.c (expand_debug_expr): Likewise.
3653
3654         * auto-inc-dec.c: Include "target.h".
3655         (try_merge): Use appropriate address mode instead of Pmode.
3656         (find_inc): Likewise.
3657         * combine.c (find_split_point): Likewise.
3658         * cselib.c (cselib_record_sets): Likewise.
3659         * dse.c (replace_inc_dec): Likewise.
3660         (canon_address): Likewise.
3661         * var-tracking.c (replace_expr_with_values): Likewise.
3662         (count_uses): Likewise.
3663         (add_uses): Likewise.
3664         (add_stores): Likewise.
3665         * emit-rtl.c: Include "target.h".
3666         (adjust_address_1): Use appropriate address mode instead of Pmode.
3667         (offset_address): Likewise.
3668         * explow.c (break_out_memory_refs): Likewise.
3669         (memory_address_addr_space): Likewise.
3670         (promote_mode): Likewise.
3671         * expr.c (move_by_pieces): Likewise.
3672         (emit_block_move_via_loop): Likewise.
3673         (store_by_pieces): Likewise.
3674         (store_by_pieces_1): Likewise.
3675         (expand_assignment): Likewise.
3676         (store_constructor): Likewise.
3677         (expand_expr_addr_expr): Likewise.
3678         (expand_expr_real_1): Likewise.
3679         * cfgexpand.c (expand_debug_expr): Likewise.
3680         * ifcvt.c (noce_try_cmove_arith): Likewise.
3681         * regcprop.c (kill_autoinc_value): Likewise.
3682         * regmove.c (try_auto_increment): Likewise.
3683         * reload.c (find_reloads): Likewise.
3684         (find_reloads_address): Likewise.
3685         (find_reloads_address_1): Likewise.
3686         * sched-deps.c: Include "target.h".
3687         (sched_analyze_1): Use appropriate address mode instead of Pmode.
3688         (sched_analyze_2): Likewise.
3689         * sel-sched-dump.c: Include "target.h".
3690         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
3691         * stor-layout.c (layout_type): Likewise.
3692         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3693         (multiplier_allowed_in_address_p): Likewise.
3694         (get_address_cost): Likewise.
3695         * varasm.c (make_decl_rtl): Likewise.
3696
3697         * expr.c (expand_assignment): Always convert offsets to appropriate
3698         address mode.
3699         (store_expr): Likewise.
3700         (store_constructor): Likewise.
3701         (expand_expr_real_1): Likewise.
3702
3703         * reload.h (form_sum): Add MODE argument.
3704         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
3705         Update recursive calls.
3706         (subst_indexed_address): Update calls to form_sum.
3707
3708         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
3709         * tree-ssa-address.c: Include "target.h".
3710         (templates): Replace by ...
3711         (mem_addr_template_list): ... this new vector.
3712         (TEMPL_IDX): Handle address space numbers.
3713         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
3714         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
3715         instead of global cache.  Update call to gen_addr_rtx.
3716         (valid_mem_ref_p): Update call to addr_for_mem_ref.
3717         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
3718
3719         * rtl.h (convert_memory_address_addr_space): Add prototype.
3720         (convert_memory_address): Define as macro.
3721         * explow.c (convert_memory_address): Rename to ...
3722         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3723         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
3724         Update recursive calls.
3725         (memory_address_addr_space): Call convert_memory_address_addr_space.
3726         * expmed.c (make_tree): Likewise.
3727         * expr.c (expand_assignment): Likewise.
3728         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
3729         (expand_expr_addr_expr): Likewise.  Also, update call.
3730
3731         * alias.c (find_base_value): Guard pointer size optimizations.
3732         (find_base_term): Likewise.
3733         * rtlanal.c (nonzero_bits1): Likewise.
3734         (num_sign_bit_copies1): Likewise.
3735         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3736
3737         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
3738         (emit-rtl.o): Likewise.
3739         (auto-inc-dec.o): Likewise.
3740         (sched-deps.o): Likewise.
3741
3742 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3743             Michael Meissner  <meissner@linux.vnet.ibm.com>
3744             Ulrich Weigand  <uweigand@de.ibm.com>
3745
3746         * doc/extend.texi (Named Address Spaces): New section.
3747         * coretypes.h (addr_space_t): New type.
3748         (ADDR_SPACE_GENERIC): New define.
3749         (ADDR_SPACE_GENERIC_P): New macro.
3750
3751         * doc/tm.texi (Named Address Spaces): New section.
3752         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
3753         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
3754         (TARGET_ADDR_SPACE_SUBSET_P): Document.
3755         (TARGET_ADDR_SPACE_CONVERT): Document.
3756         * target.h (struct gcc_target): Add addr_space substructure.
3757         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3758         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3759         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3760         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3761         (TARGET_ADDR_SPACE_HOOKS): Likewise.
3762         (TARGET_INITIALIZER): Initialize addr_space hooks.
3763         * targhooks.c (default_addr_space_legitimate_address_p): New function.
3764         (default_addr_space_legitimize_address): Likewise.
3765         (default_addr_space_subset_p): Likewise.
3766         (default_addr_space_convert): Likewise.
3767         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
3768         (default_addr_space_legitimize_address): Likewise.
3769         (default_addr_space_subset_p): Likewise.
3770         (default_addr_space_convert): Likewise.
3771
3772         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
3773         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
3774         (MEM_ADDR_SPACE): New macro.
3775         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
3776         address space memory attribute.
3777         (mem_attrs_htab_hash): Handle address space memory attribute.
3778         (mem_attrs_htab_eq): Likewise.
3779         (set_mem_attributes_minus_bitpos): Likewise.
3780         (set_mem_alias_set): Likewise.
3781         (set_mem_align): Likewise.
3782         (set_mem_expr): Likewise.
3783         (set_mem_offset): Likewise.
3784         (set_mem_size): Likewise.
3785         (adjust_address_1): Likewise.
3786         (offset_address): Likewise.
3787         (widen_memoy_address): Likewise.
3788         (get_spill_slot_decl): Likewise.
3789         (set_mem_attrs_for_spill): Likewise.
3790         (set_mem_addr_space): New function.
3791         * emit-rtl.h (set_mem_addr_space): Add prototype.
3792         * print-rtl.c (print_rtx): Print address space memory attribute.
3793         * expr.c (expand_assignment): Set address space memory attribute
3794         of generated MEM RTXes as appropriate.
3795         (expand_expr_real_1): Likewise.
3796         * cfgexpand.c (expand_debug_expr): Likewise.
3797         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3798
3799         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
3800         size of "spare" bitfield.
3801         (TYPE_ADDR_SPACE): New macro.
3802         (ENCODE_QUAL_ADDR_SPACE): Likewise.
3803         (DECODE_QUAL_ADDR_SPACE): Likewise.
3804         (CLEAR_QUAL_ADDR_SPACE): Likewise.
3805         (KEEP_QUAL_ADDR_SPACE): Likewise.
3806         (TYPE_QUALS): Encode type address space.
3807         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
3808         * tree.c (set_type_quals): Set type address space.
3809         (build_array_type): Inherit array address space from element type.
3810         * print-tree.c (print_node_brief): Print type address space.
3811         (print_node): Likewise.
3812         * tree-pretty-print.c (dump_generic_node): Likewise.
3813
3814         * explow.c (memory_address): Rename to ...
3815         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3816         Use address-space aware variants of memory address routines.
3817         * recog.c (memory_address_p): Rename to ...
3818         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3819         Use address-space aware variants of memory address routines.
3820         (offsettable_address_p): Rename to ...
3821         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
3822         Use address-space aware variants of memory address routines.
3823         * reload.c (strict_memory_address_p): Rename to ...
3824         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3825         Use address-space aware variants of memory address routines.
3826         (maybe_memory_address_p): Rename to ...
3827         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3828         Use address-space aware variants of memory address routines.
3829         * expr.h (memory_address_addr_space): Add prototype.
3830         (memory_address): Define as macro.
3831         * recog.h (memory_address_addr_space_p): Add prototype.
3832         (memory_address_p): Define as macro.
3833         (offsettable_address_addr_space_p): Add prototype.
3834         (offsettable_address_p): Define as macro.
3835         (strict_memory_address_addr_space_p): Add prototype.
3836         (strict_memory_address_p): Define as macro.
3837
3838         * combine.c (find_split_point): Use address-space aware variants
3839         of memory address routines.
3840         * emit-rtl.c (operand_subword): Likewise.
3841         (change_address_1): Likewise.
3842         (adjust_address_1): Likewise.
3843         (offset_address): Likewise.
3844         * expr.c (emit_move_insn): Likewise.
3845         (expand_assignment): Likewise.
3846         (expand_expr_real_1): Likewise.
3847         * recog.c (verify_changes): Likewise.
3848         (general_operand): Likewise.
3849         (offsettable_memref_p): Likewise.
3850         (offsettable_nonstrict_memref_p): Likewise.
3851         (constrain_operands): Likewise.
3852         * reload.c (get_secondary_mem): Likewise.
3853         (find_reloads_toplev): Likewise.
3854         (find_reloads_address): Likewise.
3855         (find_reloads_subreg_address): Likewise.
3856         * reload1.c (reload): Likewise.
3857         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3858         * rtl.h (address_cost): Add ADDRSPACE argument.
3859         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
3860         aware variant of memory address routines.
3861         * loop-invariant.c (create_new_invariant): Update address_cost call.
3862         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3863         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
3864         Use address-space aware variant of memory address routines.
3865         (propagate_rtx_1): Update call to should_replace_address.
3866         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
3867         argument.
3868         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
3869         ADDRSPACE argument.  Use per-address-space instead of global cache.
3870         Use address-space aware variant of memory address routines.
3871         (get_address_cost): Likewise.
3872         (get_computation_cost_at): Update calls.
3873         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
3874         Use address-space aware variant of memory address routines.
3875         (create_mem_ref_raw): Update call to valid_mem_ref_p.
3876         (most_expensive_mult_to_index): Update call to
3877         multiplier_allowed_in_address_p.
3878
3879         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
3880         attribute to indicate named address spaces.
3881
3882         * varasm.c (get_variable_section): DECLs in named address spaces
3883         cannot be "common".
3884
3885         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
3886         for addresses in a non-generic address space.
3887
3888         * expr.c (emit_block_move_hints): Do not use libcalls for
3889         memory in non-generic address spaces.
3890         (clear_storage_hints): Likewise.
3891         (expand_assignment): Likewise.
3892
3893         * fold-const.c (operand_equal_p): Expressions refering to different
3894         address spaces are not equivalent.
3895
3896         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
3897         spaces are not equivalent.
3898         (rtx_equal_p): Likewise.
3899         * cse.c (exp_equiv_p): Likewise.
3900         * jump.c (rtx_renumbered_equal_p): Likewise.
3901         * reload.c (operands_match_p): Likewise.
3902
3903         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
3904         address spaces may alias.
3905         (true_dependence): Likewise.
3906         (canon_true_dependence): Likewise.
3907         (write_dependence_p): Likewise.
3908
3909         * dse.c (canon_address): Handle named address spaces.
3910         * ifcvt.c (noce_try_cmove_arith): Likewise.
3911
3912         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
3913         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
3914         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
3915         to handle conversions between different address spaces.
3916         * fold-const.c (fold_convert_loc): Likewise.
3917         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
3918         * tree-pretty-print.c (dump_generic_node): Likewise.
3919         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
3920         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
3921         * tree-inline.c (estimate_operator_cost): Likewise.
3922         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
3923         to different address spaces are not useless.
3924
3925 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
3926
3927         PR bootstrap/41345
3928         * cfgcleanup.c (trivially_empty_bb_p): New function.
3929         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
3930
3931         PR debug/41828
3932         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
3933         add_name_and_src_coords_attributes, gen_namespace_die,
3934         dwarf2out_set_name): Handle dwarf2_name returning NULL.
3935
3936 2009-10-26  Nick Clifton  <nickc@redhat.com>
3937
3938         * config.gcc: Add support for RX target.
3939         * config/rx: New directory.
3940         * config/rx/constraints.md: New file.
3941         * config/rx/predicates.md: New file.
3942         * config/rx/rx.c: New file.
3943         * config/rx/rx.h: New file.
3944         * config/rx/rx.md: New file.
3945         * config/rx/rx.opt: New file.
3946         * config/rx/rx-protos.h: New file.
3947         * config/rx/t-rx: New file.
3948         * doc/extend.texi: Document RX function attributes.
3949         * doc/invoke.texi: Document RX specific command line options.
3950         * doc/contrib.texi: Document RX contribution.
3951         * doc/md.texi: Document RX constraints.
3952         * doc/install.texi: Document RX support.
3953
3954 2009-10-26  Michael Matz  <matz@suse.de>
3955
3956         PR tree-optimization/41783
3957         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
3958         case for simple diamonds.
3959         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
3960         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
3961         argument, use alias oracle to skip some vdefs.
3962         (phi_translate_1): Change call to above, don't allocate new
3963         value ids if they can stay the same.
3964         (compute_avail): Allow vuse walking when looking up references.
3965
3966 2009-10-26  Richard Guenther  <rguenther@suse.de>
3967
3968         PR tree-optimization/41826
3969         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
3970         access to re-allocated vector fields.
3971
3972 2009-10-26  Richard Guenther  <rguenther@suse.de>
3973
3974         * graphite-sese-to-poly.c (check_poly_representation): Fix
3975         compile without checking.
3976
3977 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
3978
3979         PR fortran/41714
3980         * gimple.h (tree_annotate_all_with_location): Remove prototype.
3981         * gimplify.c (tree_should_carry_location_p,
3982         tree_annotate_one_with_location,tree_annotate_all_with_location):
3983         Remove obsolete functions.
3984
3985 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3986
3987         PR target/41813
3988         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
3989
3990 2009-10-25  Richard Guenther  <rguenther@suse.de>
3991
3992         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3993         Stream DECL_RESTRICTED_P.
3994         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3995
3996 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
3997
3998         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
3999         a note when expanding to nothing.
4000
4001 2009-10-25  Richard Guenther  <rguenther@suse.de>
4002
4003         PR middle-end/41814
4004         * tree.c (find_decls_types_r): Deal with Java overloading
4005         BINFO_VIRTUALS for its own purpose.
4006
4007 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
4008
4009         * config/mips/predicates.md (hilo_operand): New predicate.
4010         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
4011         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
4012         splitter part from here ...:
4013         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
4014         op0 and op4 to match the DINS case.
4015         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
4016
4017 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4018
4019         PR middle-end/19154
4020         * avr.md (QIDI): Add new mode iterator.
4021         (sbrx_branch<mode>): Create new zero extract bit, test and jump
4022         patterns for all QI thru DI modes combinations.
4023         (sbrx_and_branch<mode>): Create new and based bit test and jump
4024         patterns for QI thru SI modes.
4025         avr.c (avr_out_sbxx_branch): Use only bit number.
4026
4027 2009-10-24  Jan Hubicka  <jh@suse.cz>
4028
4029         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
4030         to memory.
4031         (analyze_function): When analyzing noreturn nothrow call, do not
4032         compute written stats; free bitmaps of vars early if possible.
4033         (generate_summary): Only update bitmaps if computed.
4034         (propagate): Only dump bitmaps if computed.
4035         (ipa_reference_read_summary): Fix pasto.
4036
4037 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
4040         (aliasing_component_refs_p): ...this.  Return true if there is no
4041         common base and the base access types have the same alias set.
4042         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
4043         (indirect_refs_may_alias_p): Likewise.
4044
4045 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4046
4047         PR c/40033
4048         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
4049         a C_MAYBE_CONST_EXPR.
4050
4051 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4052
4053         PR target/41787
4054         * config/rs6000/rs6000.c (struct machine_function): Add
4055         vsx_or_altivec_used_p to record if vector types are used.
4056         (rs6000_expand_to_rtl_hook): Rename from
4057         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
4058         any vector operations, so if there are, we can set VRSAVE to
4059         non-zero when only floating point vector registers are used.
4060         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
4061         (rs6000_check_vector_mode): Inner function to check if vector
4062         types are used in the code.
4063         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
4064         vector instructions are used.
4065
4066         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
4067         Indicate that VSX registers which overlap floating point
4068         registers, can't be used across a call, since the ABI only states
4069         the scalar part of the register will be saved and restored.
4070
4071 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4072
4073         PR c/41673
4074         * alias.c (get_alias_set): Call langhook before returning 0 for
4075         types with structural equality.
4076         * c-common.c (c_common_get_alias_set): Use alias set of element
4077         type for arrays with structural comparison.
4078
4079 2009-10-23  Richard Guenther  <rguenther@suse.de>
4080
4081         PR middle-end/41805
4082         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
4083         gimple_call_nothrow_p.
4084
4085 2009-10-23  Richard Guenther  <rguenther@suse.de>
4086
4087         PR tree-optimization/41778
4088         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
4089         redundancy along a path in the CFG we want to optimize for speed
4090         is going to be removed.
4091         (execute_pre): Do partial-PRE only if the function is to be
4092         optimized for speed.
4093         (gate_pre): Do not turn off all of PRE when not optimizing a
4094         function for speed.
4095
4096 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4097
4098         * builtins.c (fold_builtin_cabs): Use validate_arg().
4099         (fold_builtin_cexp): Fix if-logic.
4100         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
4101
4102 2009-10-22  Jeff Law  <law@redhat.com>
4103
4104         * ira-lives.c (process_single_reg_class_operands): Update the
4105         hard reg costs for all the hard registers desired by the
4106         single reg class operand.
4107
4108 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4109
4110         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
4111         for rtxes that aren't handled specially.
4112
4113 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4114
4115         * rtl.h (shallow_copy_rtvec): Declare.
4116         * rtl.c (shallow_copy_rtvec): New function.
4117         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
4118         rtx field if the subrtx has changed.
4119
4120 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
4121
4122         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
4123         (m32c_function_value): Make static, add new 'outgoing' argument.
4124         (m32c_libcall_value): Make static, add new 'fun' argument.
4125         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4126         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4127         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
4128         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
4129         (m32c_function_value, m32c_libcall_value): Delete declaration.
4130
4131 2009-10-22  Diego Novillo  <dnovillo@google.com>
4132
4133         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
4134
4135 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4136
4137         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
4138         space.
4139
4140 2009-10-22  Richard Guenther  <rguenther@suse.de>
4141
4142         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
4143         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
4144         (lto_symtab_merge): Do not merge cgraph nodes here.
4145         (lto_symtab_resolve_can_prevail_p): Simplify.
4146         (lto_symtab_resolve_symbols): Store cgraph node.
4147         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
4148         functions from the symtab.
4149         (lto_symtab_merge_cgraph_nodes_1): New function.
4150         (lto_symtab_merge_cgraph_nodes): Likewise.
4151
4152 2009-10-22  Richard Guenther  <rguenther@suse.de>
4153
4154         PR lto/41791
4155         * lto-streamer-out.c (lto_output_location): Stream the
4156         system header flag.
4157         * lto-streamer-in.c (lto_input_location): Likewise.
4158
4159 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4160
4161         * cfgloopmanip.c (duplicate_subloops): Export.
4162         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
4163         (transform_to_exit_first_loop): Duplicate bbs starting from
4164         header up to loop->latch instead of exit->src.
4165         Initialize control variable to the correct number of iterations.
4166         (gather_scalar_reductions): Do not register double reductions.
4167         (parallelize_loops): Dump which loop is tested.
4168         Indicate whether the parallelized loop is inner or not.
4169         Remove the innermost-loop requirement.
4170         * cfgloop.h (duplicate_subloops): Export.
4171         * tree-cfg.c (add_phi_args_after_redirect): New function.
4172         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
4173         Call duplicate_subloops.
4174         Update number of iterations at the exit condition.
4175         Don't redirect nexits always to the loop exit.
4176         Redirect copied edges from latch to the loop exit.
4177
4178 2009-10-22  Jan Hubicka  <jh@suse.cz>
4179
4180         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
4181         flag_ltrans check.
4182         * ipa-inline.c (cgraph_mark_inline_edge,
4183         cgraph_decide_inlining_of_small_function,
4184         cgraph_decide_inlining, inline_read_summary): Disable indirect
4185         inlining for WPA for time being.
4186
4187         PR tree-optimize/40556
4188         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
4189
4190 2009-10-22  Richard Guenther  <rguenther@suse.de>
4191
4192         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
4193         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
4194
4195 2009-10-22  Jan Hubicka  <jh@suse.cz>
4196
4197         PR lto/41730
4198         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
4199         global vars.
4200         (check_call): Handle only indirect calls.
4201         (propagate_bits): Update comment.
4202         (write_node_summary_p): Turn bogus check to assert.
4203         (ipa_reference_write_summary): Stream calls_read_all properly.
4204         (ipa_reference_read_summary): Stream in calls_read_all properly.
4205         (read_write_all_from_decl): New function.
4206         (propagate): Handle OVERWRITABLE nodes and external calls here.
4207         * ipa-pre-const.c (check_call): In IPA mode handle indirect
4208         calls only.
4209         (analyze_function): Do not check visibility here.
4210         (add_new_function): We summary OVERWRITABLE too.
4211         (generate_summary): Stream OVERWRITABLE nodes too.
4212         (propagate): Handle external calls and OVERWRITABLE nodes here.
4213         (local_pure_const): Check visibility here.
4214
4215 2009-10-22  Jan Hubicka  <jh@suse.cz>
4216
4217         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
4218         (pass_ipa_cp): Register them.
4219         (ipcp_init_stage): Analyze all functions for whopr/lto.
4220         (ipcp_propagate_stage): Skip external calls.
4221         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
4222         * ipa-reference.c (write_node_summary_p): Fix thinko about
4223         availability.
4224         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
4225         when in ltrans, skip executing of ipa passes since everything
4226         should've been done.
4227         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
4228         (inline_generate_summary): Likewise.
4229         (inline_read_summary): New function.
4230         (inline_write_summary): New function.
4231         (pass_ipa_inline): Register new hooks.
4232         * ipa-prop.c: Inlcude lto-streamer.h
4233         (ipa_edge_args_vector): Update declaration.
4234         (ipa_count_arguments, ipa_compute_jump_functions,
4235         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
4236         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
4237         ipa_read_node_info): New static functions.
4238         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
4239         (duplicate_array): Use xmalloc.
4240         (duplicate_ggc_array): New.
4241         (ipa_edge_duplication_hook): Use it.
4242         (ipa_update_after_lto_read): New function.
4243         * ipa-prop.h (ipa_prop_write_jump_functions,
4244         ipa_prop_read_jump_functions): Declare.
4245         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
4246         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
4247         (ipa_edge_args_vector): Move into GGC.
4248         (ipa_check_create_edge_args): Update.
4249         (ipa_update_after_lto_read): New.
4250         * passes.c (ipa_write_summaries_1): When in wpa, do not write
4251         summaries.
4252         (ipa_read_summaries): When in ltrans, so not read summaries.
4253         * lto-streamer.c (lto_get_section_name): Add
4254         LTO_section_jump_functions.
4255         * lto-streamer.h (LTO_section_jump_functions): New section.
4256         (produce_asm): Declare.
4257         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
4258         * lto-streamer-out.c (produce_asm): Export.
4259         * lto-streamer-in.c: Include tree-pass.h
4260         (input_function): Free dominance info when done.
4261         (lto_read_body): Push ipa_inline in ltrans stage.
4262         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
4263         * Makefile.in (GTFILES): Add ipa-prop.h
4264
4265 2009-10-22  Matthias Klose  <doko@ubuntu.com>
4266
4267         * doc/install.texi: Document --enable-browser-plugin.
4268
4269 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
4270
4271         * doc/invoke.texi (fira-loop-pressure): Update default value.
4272         * opts.c (decode_options): Remove default value setting for
4273         flag_ira_loop_pressure.
4274         * config/ia64/ia64.c (ia64_override_options): Set
4275         flag_ira_loop_pressure up for -O3.
4276         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
4277
4278 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
4279
4280         PR tree-optimization/41497
4281         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
4282         chrec_dont_know if the evolution function returned by follow_ssa_edge
4283         is constant in the analyzed loop and is not compatible with the
4284         initial value before the loop.
4285         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
4286
4287 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
4288
4289         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
4290
4291 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
4292
4293         PR other/25507
4294         * doc/invoke.texi: Document -print-multi-os-directory.
4295
4296 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
4297
4298         PR c++/41313
4299         * gcc/config/darwin10.h: Use default_emit_unwind_label.
4300         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
4301         when darwin_emit_unwind_label is used.
4302
4303 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4304
4305         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
4306         order of checks.
4307
4308 2009-10-20  Richard Henderson  <rth@redhat.com>
4309
4310         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
4311         before emit_post_landing_pad.
4312
4313 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
4314
4315         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
4316         Use when calling rtx_costs.
4317         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
4318         global optimize_size.  Pass speed to mips_binary_cost.
4319
4320 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4321
4322         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
4323         of TREE_CONSTANT.
4324
4325 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
4326
4327         * rtl.h (simplify_replace_fn_rtx): Declare.
4328         (wrap_constant, unwrap_constant): Delete.
4329         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
4330         (expand_debug_expr): Don't call wrap_constant.
4331         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
4332         (auto_adjust_pair): Fold into...
4333         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
4334         Just return a new value.
4335         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
4336         otherwise use simplify_replace_rtx.
4337         * cselib.c (wrap_constant): Reinstate old definition.
4338         (cselib_expand_value_rtx_1): Don't wrap constants.
4339         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
4340         simplify_replace_rtx.
4341         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
4342         * reload1.c (reload): Skip all uses for an insn before adjusting it.
4343         Use simplify_replace_rtx.
4344         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
4345         adapted from...
4346         (simplify_replace_rtx): ...here.  Turn into a wrapper for
4347         simplify_replace_fn_rtx.
4348         (simplify_unary_operation): Don't unwrap CONSTs.
4349         * var-tracking.c (check_wrap_constant): Delete.
4350         (vt_expand_loc_callback): Don't call it.
4351         (vt_expand_loc): Likewise.
4352
4353 2009-10-20  Pascal Obry  <obry@adacore.com>
4354             Eric Botcazou  <ebotcazou@adacore.com>
4355
4356         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
4357
4358 2009-10-20  Michael Matz  <matz@suse.de>
4359
4360         * loop-invariant.c (create_new_invariant): Use different magic number.
4361
4362 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
4363
4364         PR target/39247
4365         * arm.c (arm_override_options): Forcibly disable hot/cold block
4366         partitioning.
4367
4368 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4369
4370         PR debug/41739
4371         * haifa-sched.c (try_ready): Skip debug deps updating speculation
4372         status.
4373
4374 2009-10-20  Richard Guenther  <rguenther@suse.de>
4375
4376         * ggc-page.c: Include cfgloop.h.
4377         (struct max_alignment): Drop long double, add void *.
4378         (extra_order_size_table): Add low non-power-of-two multiples
4379         of MAX_ALIGNMENT.  Drop small type-based entries, add
4380         tree_type, cgraph_node and loop.
4381         * alloc-pool.c (struct allocation_object_def): Drop long double
4382         aligning element.
4383
4384 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4385
4386         PR debug/41340
4387         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
4388         referenced just in DEBUG_INSNs.
4389
4390 2009-10-20  Richard Guenther  <rguenther@suse.de>
4391
4392         PR lto/41761
4393         * gimple.c (gimple_register_type): Make sure we register
4394         the types main variant first.
4395
4396 2009-10-20  Richard Guenther  <rguenther@suse.de>
4397
4398         * gimple.c (gimple_types_compatible_p): Simplify.  Move
4399         cheap checks before hashtable queries.  Add checks for
4400         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
4401
4402 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4403
4404         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
4405         without size or with size that can't be represented as a host integer.
4406
4407 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4408
4409         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
4410         the removal of a debug stmt as a significant change.
4411
4412 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
4413
4414         * config/s390/s390.md: Added agen condition to operand
4415         forwarding bypasses.  Added bypass for early address generation
4416         use of int results.  Updated comments.
4417
4418 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
4419
4420         * config/i386/i386.c: Remove signal.h #include.
4421
4422 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
4423
4424         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
4425         * doc/rtl.texi: Document ss_abs.
4426
4427 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4428
4429         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
4430         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
4431         instead of C_LEX_RAW_STRINGS.
4432         (lex_string): Handle CPP_UTF8STRING.
4433         * c-parser.c (c_parser_postfix_expression): Likewise.
4434         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
4435         (C_LEX_STRING_NO_JOIN): ... this.
4436
4437 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
4438
4439         * config/cris/cris.c (cris_function_value, cris_libcall_value,
4440         cris_function_value_regno_p): New functions.
4441         (cris_promote_function_mode): Update comment.
4442         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4443         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4444         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
4445         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
4446
4447 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4448
4449         * unwind-dw2.c (execute_stack_op): Fix operand order for
4450         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
4451
4452 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4453
4454         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
4455         (lower_stmt) <GIMPLE_BIND>: Add comment.
4456         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
4457         and return.
4458         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
4459         Otherwise lower it and set cannot_fallthru to true.
4460         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
4461         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
4462         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
4463         to true for a noreturn call.  Do not remove statements.
4464         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
4465         Set cannot_fallthru to false on function exit.
4466         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
4467         <GIMPLE_ASSIGN>: Remove.
4468
4469 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4470
4471         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
4472
4473 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4474
4475         * config/s390/s390.c (s390_z10_optimize_cmp): Use
4476         next/prev_active_insn to skip DEBUG_INSNs as well.
4477
4478 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
4479
4480         * config/arm/arm.c (output_move_neon): Use DImode in call to
4481         adjust_address.
4482
4483 2009-10-19  Matthias Klose  <doko@ubuntu.com>
4484
4485         PR target/40134
4486         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
4487
4488 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4489
4490         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
4491
4492 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4493
4494         PR middle-end/41738
4495         * optabs.c (expand_binop): Make mode of shift count expression mode
4496         of shift count not target.
4497         Remove indent nit.
4498
4499 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4500
4501         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
4502         case.  Force using values to replace references within the statement.
4503         (convert_local_reference_stmt): Likewise.
4504
4505 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4506
4507         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
4508         remove a subsequent GOTO or RETURN statement.
4509
4510 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
4511
4512         * config/avr.md (*movqi): Add zero as equally preferable constraint
4513         as general register.
4514         (*movhi): Ditto.
4515
4516 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4517
4518         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
4519
4520 2009-10-17  Richard Guenther  <rguenther@suse.de>
4521
4522         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
4523
4524 2009-10-17  Richard Guenther  <rguenther@suse.de>
4525
4526         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
4527         operands in COMPONENT_REFs.
4528
4529 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
4530
4531         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
4532         if not defined. Change type of second argument to const_rtx.
4533         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
4534         macro not defined.
4535         * targhooks.h (default_libcall_value): Update prototype.
4536         * target.h (struct gcc_target): Change type of second argument of
4537         libcall_value to const_rtx.
4538         * config/arm/arm.c (arm_libcall_value): Change type of second argument
4539         to const_rtx.
4540         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
4541         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
4542
4543 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
4544
4545         PR debug/40521
4546         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
4547         * cgraphunit.c (cgraph_optimize): Call it.
4548         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
4549         (dwarf2out_assembly_start): ... here.  New hook.
4550         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
4551         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
4552         hook.
4553         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4554         * sdbout.c (sdb_debug_hooks): Likewise.
4555         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
4556         (vmsdbgout_assembly_start): New hook.
4557
4558 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4559
4560         * rtl.h (RTL_LOCATION): Fix typo.
4561
4562 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4563
4564         * print-rtl.c (print_rtx): Print locators in asm_operands
4565         and asm_input.
4566
4567 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4568
4569         PR debug/41535
4570         * sched-deps.c (depl_on_debug_p): New.
4571         (attach_dep_link): Reject debug deps before nondebug deps.
4572         (add_to_deps_list): Insert debug deps after nondebug deps.
4573         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
4574         deps.
4575         (sd_add_dep): Do not reject debug deps.
4576         (add_insn_mem_dependence): Don't count debug deps.
4577         (remove_from_deps): Likewise.
4578         (sched_analyze_2): Set up mem deps on debug insns.
4579         (sched_analyze_insn): Record reg uses for deps on debug insns.
4580         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
4581         try_ready nondebug insn after debug insn.
4582         * ddg.c (create_ddg_dep_from_intra_loop_link,
4583         create_ddg_dep_no_link): Don't reject debug deps.
4584
4585 2009-10-16  Richard Guenther  <rguenther@suse.de>
4586
4587         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
4588         (maybe_merge_incomplete_and_complete_type): Likewise.
4589         (lto_symtab_merge): Do not call them.  Do not warn for
4590         complete vs. incomplete compatible types.
4591         (lto_symtab_merge_decls_2): Simplify.
4592         * gimple.c (gimple_force_type_merge): Remove.
4593         (gimple_types_compatible_p): Make it static.
4594         * gimple.h (gimple_force_type_merge): Remove.
4595         (gimple_types_compatible_p): Likewise.
4596
4597 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
4598
4599         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
4600         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
4601
4602 2009-10-16  Richard Guenther  <rguenther@suse.de>
4603
4604         PR tree-optimization/41728
4605         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
4606         if fold_stmt did anything.
4607
4608 2009-10-16  Richard Guenther  <rguenther@suse.de>
4609
4610         PR lto/41715
4611         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
4612         (maybe_fixup_handled_component): New function.
4613         (input_gimple_stmt): Fixup mismatched decl replacements.
4614
4615 2009-10-16  Richard Guenther  <rguenther@suse.de>
4616
4617         PR lto/41713
4618         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
4619         the same as VAR_DECL.
4620
4621 2009-10-16  Richard Guenther  <rguenther@suse.de>
4622
4623         * gimple.c (iterative_hash_gimple_type): For integer types
4624         also hash their minimum and maximum values and the string flag.
4625         For array types hash their domain and the string flag.
4626
4627 2009-10-16  Richard Guenther  <rguenther@suse.de>
4628
4629         * gimple.c (gimple_types_compatible_p): Restrict completing
4630         types to record or unions.  Simplify completion.
4631         Do not merge records or unions with different
4632         TYPE_STRUCTURAL_EQUALITY_P tag.
4633         (iterative_hash_gimple_type): Restrict non-recursing into
4634         pointer targets for records and unions.
4635
4636 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4637
4638         PR debug/41717
4639         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
4640         * dwarf2out.c (mem_loc_descriptor): Don't handle
4641         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
4642         punt if it is not lowpart subreg or if inner mode isn't
4643         MODE_INT.
4644
4645 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4646
4647         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
4648         investigating previous or next insns.
4649
4650 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4651
4652         * tree-sra.c (build_ref_for_offset_1): Update comment.
4653
4654 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
4655
4656         * config/s390/s390.md (atype): Added missing values.
4657
4658 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4659
4660         PR target/41702
4661         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
4662         (casesi64p): Update pattern to reflect above.
4663
4664 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
4665
4666         PR rtl-optimization/41697
4667         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
4668
4669 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4670
4671         PR target/23983
4672         * config/rs6000/predicates.md: Update copyright year.
4673         * config/rs6000/altivec.md: Ditto.
4674
4675         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
4676         (MD_INCLUDES): Add a2.md.
4677
4678         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
4679         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
4680         (builtin_classify): New static vector to classify various builtins
4681         to get the tree attributes correct.
4682         (def_builtin): Set the attributes of builtins based on what the
4683         builtin does (i.e. memory operation, floating point, saturation
4684         need special attributes, others are pure functions).
4685
4686         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
4687         the builtins.
4688         (enum rs6000_builtins): Include rs6000-builtin.def to define the
4689         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
4690         RS6000_BUILTIN_COUNT.
4691         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
4692         MAX_RS6000_BUILTINS.
4693
4694         * config/rs6000/rs6000-builtin.def: New file that combines the
4695         builtin enumeration name and attributes.
4696
4697 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4698
4699         * config/i386/linux.h (ASM_SPEC): Add --32.
4700
4701 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4702
4703         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
4704         and DW_TAG_template_alias.
4705         (dwarf_attr_name): Handle DW_AT_main_subprogram,
4706         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
4707         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
4708         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
4709         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
4710         and DW_AT_GNU_odr_signature.
4711         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
4712         DW_FORM_flag_present and DW_FORM_ref_sig8.
4713         (output_signature): Only print name on the first byte.
4714         (output_die): Likewise for dw_val_class_data8.
4715
4716 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
4717
4718         * doc/invoke.texi: Clarify that most optimizations are not enabled
4719         without -O.
4720
4721 2009-10-15  Richard Guenther  <rguenther@suse.de>
4722
4723         PR lto/41668
4724         * gimple.c (compare_type_names_p): Handle anonymous names
4725         differently based on new mode argument.
4726         (gimple_types_compatible_p): For structs also compare the tags.
4727         (iterative_hash_type_name): Rename to ...
4728         (iterative_hash_name): ... this.  Hash all names.
4729         (iterative_hash_gimple_type): Fix hashing the struct tag of
4730         pointer targets.  Hash field decl names.
4731
4732 2009-10-15  Richard Guenther  <rguenther@suse.de>
4733
4734         PR lto/41669
4735         * gimple.c (gimple_get_alias_set): Avoid recursing on
4736         invalid type topology.
4737
4738 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4739
4740         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
4741
4742 2009-10-15  Richard Guenther  <rguenther@suse.de>
4743
4744         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
4745
4746 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4747
4748         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
4749         add --with-tune{,-32,-64} configured default for -mtune if explicit
4750         -mcpu is used.
4751
4752 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
4753
4754         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
4755
4756 2009-10-14  DJ Delorie  <dj@redhat.com>
4757
4758         * config/h8300/h8300.c (F): New.
4759         (Fpa): New.
4760         (h8300_emit_stack_adjustment): Call them.
4761         (push): Likewise.
4762         (h8300_push_pop): Likewise.
4763         (h8300_expand_prologue): Likewise.
4764         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
4765         (MUST_USE_SJLJ_EXCEPTIONS): Define.
4766         (INCOMING_RETURN_ADDR_RTX): Define.
4767         (INCOMING_FRAME_SP_OFFSET): Define.
4768         (DWARF_CIE_DATA_ALIGNMENT): Define.
4769
4770 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4771
4772         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
4773         fields in builtin structs.
4774         (finalize_record_size): Likewise.
4775
4776 2009-10-14  Richard Guenther  <rguenther@suse.de>
4777
4778         * gimple.c (gtc_ob): New global.
4779         (struct type_pair_d): Replace pointers with type UIDs.
4780         (type_pair_hash): Adjust.
4781         (type_pair_eq): Likewise.
4782         (lookup_type_pair): Likewise.  Allocate from an obstack.
4783         (gimple_force_type_merge): Adjust.
4784         (gimple_types_compatible_p): Likewise.
4785         (free_gimple_type_tables): Free the obstack.
4786
4787 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4788
4789         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
4790         stmts setting DEBUG_EXPR_DECLs.
4791
4792         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
4793         Don't crash if mode1 is VOIDmode.
4794
4795 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
4796
4797         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
4798         * params.h (IRA_LOOP_RESERVED_REGS): New.
4799         * tree-pass.h (pass_subregs_of_mode_init,
4800         pass_subregs_of_mode_finish): Remove.
4801         * passes.c (pass_subregs_of_mode_init,
4802         pass_subregs_of_mode_finish): Remove.
4803         (pass_reginfo_init): Move before loop optimizations.
4804         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
4805         * common.opt (fira-loop-pressure): New.
4806         * toplev.h (flag_ira_loop_pressure): New.
4807         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
4808         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
4809         Make external and void type functions.
4810         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
4811         pass_subregs_of_mode_finish): Remove.
4812         * ira-costs.c (init_costs): Call init_subregs_of_mode.
4813         * regmove.c: Include ira.h.
4814         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
4815         register pressure calculation in loops.
4816         * loop-invariant.c: Include REGS_H and ira.h.
4817         (struct loop_data): New members max_reg_pressure, regs_ref, and
4818         regs_live.
4819         (struct invariant): New member orig_regno.
4820         (curr_loop): New variable.
4821         (find_exits): Initialize regs_ref and regs_live.
4822         (create_new_invariant): Initialize orig_regno.
4823         (get_cover_class_and_nregs): New.
4824         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
4825         array.  Add code for flag_ira_loop_pressure.
4826         (gain_for_invariant): Make new_regs an array.  Add code for
4827         flag_ira_loop_pressure.
4828         (best_gain_for_invariant): Ditto.
4829         (set_move_mark): New parameter gain.  Use it for debugging output.
4830         (find_invariants_to_move): Make regs_needed and new_regs an array.
4831         Add code for flag_ira_loop_pressure.
4832         (move_invariant_reg): Set up orig_regno.
4833         (move_invariants): Set up reg classes for pseudos for
4834         flag_ira_loop_pressure.
4835         (free_loop_data): Clear regs_ref and regs_live.
4836         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
4837         get_regno_cover_class, change_pressure, mark_regno_live,
4838         mark_regno_death, mark_reg_store, mark_reg_clobber,
4839         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
4840         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
4841         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
4842         register pressure calculation in loops if new regs were added.
4843         Call finish_subregs_of_mode.
4844         * opts.c (decode_options): Set up flag_ira_loop_pressure.
4845         * Makefile.in (loop-invariant.o): Add ira.h.
4846         (regmove.o): Ditto.
4847         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
4848         Describe.
4849         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
4850
4851 2009-10-14  Richard Guenther  <rguenther@suse.de>
4852
4853         * lto-symtab.c (lto_symtab_compatible): Fold in ...
4854         (lto_symtab_merge): ... here.  Rewrite both to take the
4855         prevailing and a to-be-merged entry and to queue diagnostics properly.
4856         (lto_symtab_resolve_replaceable_p): New predicate for
4857         symbol resolution.
4858         (lto_symtab_resolve_can_prevail_p): Likewise.
4859         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
4860         handles merging commons by choosing the largest decl.  Fold
4861         in code that gives ODR errors.
4862         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
4863         diagnostics here.
4864         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
4865         case of no prevailing decl here.  Diagnose mismatches
4866         in object types here.  Drop all but the prevailing decls.
4867         (lto_symtab_prevailing_decl): Return the single prevailing decl.
4868         * lto-streamer-in.c (lto_input_tree_ref): Deal with
4869         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
4870
4871 2009-10-14  Richard Guenther  <rguenther@suse.de>
4872
4873         PR lto/41521
4874         * lto-streamer-in.c (input_bb): Replace debug stmts with
4875         nops instead of dropping them.
4876
4877 2009-10-14  Nick Clifton  <nickc@redhat.com>
4878
4879         * gcc/doc/extended.texi: Replace the dash character with @minus{}
4880         in situations where it is being used as a minus symbol.
4881         * gcc/doc/tm.texi: Likewise.
4882         * gcc/doc/md.texi: Likewise.
4883
4884 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4885
4886         PR preprocessor/41543
4887         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
4888         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
4889         * tree.c: Include intl.h.
4890         (expand_location): Handle BUILTINS_LOCATION.
4891         * Makefile.in (tree.o): Depend on intl.h.
4892
4893         PR debug/41695
4894         * dwarf2out.c (dwarf2out_var_location): Always clear
4895         last_postcall_label when changing last_label.
4896
4897 2009-10-14  Pascal Obry  <obry@adacore.com>
4898
4899         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
4900         (process_command): Handle -E as done with -c and -S.  Do not add
4901         the target executable suffix to the output file when -E is used.
4902         (main): Adjust error message accordingly.
4903
4904 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
4905
4906         PR debug/41343
4907         PR debug/41447
4908         PR debug/41264
4909         PR debug/41338
4910         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
4911         decl with rtl.
4912         (tree_code_size): Likewise.
4913
4914 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4915
4916         * builtins.c (fold_builtin_1): Support complex "arc" functions.
4917         * real.h (HAVE_mpc_arc): Define.
4918
4919 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
4920
4921         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
4922         (struct builtin_description): Add fndecl field.
4923         (bdesc): Remove const qualifier.  Update initializer.
4924         (sh_media_init_builtins): Remove const qualifier for d.  Record
4925         the result of add_builtin_function to the fndecl field.
4926         (sh_builtin_decl): New.
4927         (sh_media_builtin_decl): New.
4928
4929 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
4930
4931         PR target/38948
4932         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
4933         requests between special registers.
4934
4935 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4936
4937         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
4938
4939 2009-10-13  Richard Henderson  <rth@redhat.com>
4940
4941         PR tree-optimization/41377
4942         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
4943         (cleanup_empty_eh_merge_phis): New change_region parameter;
4944         pass it on to redirect_eh_edge_1.  Update callers.
4945         (cleanup_empty_eh_unsplit): Don't require an existing EH label
4946         at the destination block.
4947
4948 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
4949
4950         * passes.c (register_pass): Replaced gcc_unreachable by
4951         fatal_error on failure. Mentions plugins in comments & messages.
4952
4953 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
4954
4955         PR target/41693
4956         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
4957         * sched-vis.c (print_value): Use it.
4958         * cselib.c (cselib_hash_rtx): Likewise.
4959         * print-rtl.c (print_rtx): Likewise.
4960         * cfgexpand.c (expand_debug_rtx): Likewise.
4961         * var-tracking.c (vt_expand_loc_callback): Likewise.
4962
4963 2009-10-13  Richard Guenther  <rguenther@suse.de>
4964
4965         PR lto/41565
4966         * opts.c (handle_option): Split out code to handle setting
4967         the options flag var ...
4968         (set_option): ... here.
4969         * opts.h (set_option): Declare.
4970         * lto-opts.c (register_user_option_p): Include -fexceptions
4971         and all position independent code variants.
4972         (handle_common_option): Remove.
4973         (lto_reissue_options): Use set_option.
4974
4975 2009-10-13  Martin Jambor  <mjambor@suse.cz>
4976
4977         PR tree-optimization/41661
4978         * ipa-prop.c (compute_complex_pass_through): Allow only operations
4979         that are tcc_comparisons or do not change the type in any
4980         un-usleless way.
4981         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
4982         folding tcc_comparison operations.
4983
4984 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4985
4986         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
4987         properly.
4988
4989 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
4990
4991         PR debug/41343
4992         PR debug/41447
4993         PR debug/41264
4994         PR debug/41338
4995         * tree.def (DEBUG_EXPR_DECL): New.
4996         * rtl.def (DEBUG_EXPR): New.
4997         * gengtype.c (adjust_field_rtx_def): Handle it.
4998         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
4999         (insert_debug_temp_for_var_def): ... this.  Drop support for
5000         moving.  Take iterator for def stmt; insert debug stmt before it.
5001         Scan early for use count and kind in debug stmts.
5002         (propagate_defs_into_debug_stmts): Rename to...
5003         (insert_debug_temps_for_defs): ... this.  Likewise.
5004         * tree.h (DEBUG_TEMP_UID): New.
5005         * tree.c (next_debug_decl_uid): New.
5006         (make_node_stat): Count debug decls separately.
5007         (copy_node_stat): Likewise.
5008         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
5009         * var-tracking.c (dv_is_decl_p): Recognize it.
5010         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
5011         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
5012         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
5013         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
5014         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
5015         (cselib_hash_rtx): Likewise.
5016         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
5017         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
5018         debug bind stmts.
5019         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
5020         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
5021         * rtl.c (copy_rtx): Likewise.
5022         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
5023         * print-rtl.c (print_rtx): Likewise.
5024         * sched-vis.c (print_value): Likewise.
5025         (print_insn): Handle DEBUG_EXPR_DECL.
5026         * tree-dump.c (dequeue_and_dump): Likewise.
5027         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
5028         * gimple-iterator (gsi_replace): Check for same lhs.
5029         (gsi_remove): Insert debug temps.
5030         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
5031         (move_computations_stmt): Drop explicit propagation into debug stmts.
5032         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
5033         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
5034         * tree-ssa-sink.c (statement_sink_location): Likewise.
5035         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
5036         * tree-ssanames.c (release_ssa_name): Adjust for rename.
5037         * tree-flow.h: Likewise.
5038         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
5039         debug temps without values.
5040         (eliminate_unnecessary_stmts): Don't discard just-inserted
5041         debug stmts.
5042
5043 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
5044
5045         PR target/26515
5046         * config/cris/cris.md (andu): Check that operand 1 is one of the
5047         general registers.  Fix typo in head comment.
5048
5049 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
5050
5051         * config/i386/i386.md (vswapmov): New.
5052         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
5053         (ix86_function_ms_hook_prologue): New.
5054         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
5055         * configure.ac: Test for swap suffix support in as.
5056         * configure: Rebuild.
5057
5058 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
5059
5060         PR target/41680
5061         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
5062         paradoxical subregs to prevent partial register stalls if the inner
5063         mode is integer mode.
5064
5065 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5066
5067         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
5068
5069 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
5070
5071         PR c++/41570
5072         * gcc/dwarf2out.c (template_parameter_pack_die,
5073         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
5074
5075 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
5076
5077         PR debug/41616
5078         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
5079         on updates too.
5080         (maybe_register_def): Likewise.  Take stmt iterator.
5081         (rewrite_update_stmt): Take stmt iterator and pass it on.
5082         (rewrite_update_enter_block): Pass stmt iterator.
5083
5084 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5085
5086         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
5087         (spu_builtin_decl): New function.
5088
5089 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5090
5091         * config/i386/i386.md (SWIM): New mode iterator.
5092         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
5093         using SWIM mode iterator.
5094         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
5095         patterns using SWI48 mode iterator.
5096         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
5097         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
5098         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
5099         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
5100         patterns using SWI248 mode iterator.
5101         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
5102         gen_x86_movdicc_0_m1_rex64 for renamed function
5103
5104 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
5105             Eric Botcazou  <ebotcazou@adacore.com>
5106
5107         PR target/33743
5108         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
5109         * config/sparc/sol2-unwind.h: New file.
5110
5111 2009-10-11  Olivier Hainque  <hainque@adacore.com>
5112             Eric Botcazou  <ebotcazou@adacore.com>
5113
5114         PR target/33743
5115         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
5116         * config/i386/sol2-unwind.h: New file.
5117
5118 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5119
5120         PR target/41665
5121         * config/i386/i386.md (addsi_1_zext): Get the proper second
5122         operand for lea.
5123
5124 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
5125
5126         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
5127         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
5128         replacement value.
5129
5130 2009-10-11  Richard Guenther  <rguenther@suse.de>
5131
5132         * gimple.c (iterative_hash_type_name): Do not handle special
5133         anonymous names.
5134
5135 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
5136
5137         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
5138         (*setcc_si_1_and): Ditto.
5139         (*setcc_si_1_movzbl): Ditto.
5140         (*setcc_<mode>_2): Ditto.
5141         (*setcc_qi): Rename from *setcc_1.
5142         (*setcc_qi_slp): Rename from *setcc_2.
5143
5144         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
5145         (*zero_extendqisi2_movzbw_and splitter): Ditto.
5146
5147         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
5148         "if" condition, there is already assert with reload_completed present.
5149
5150 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
5151
5152         * plugin.c (try_init_one_plugin): Improve constness of variable err.
5153
5154 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
5155
5156         * doc/install.texi (Final install): Refer to
5157         http://gcc.gnu.org/bugs/ for bug reporting.
5158
5159 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
5160
5161         * configure.ac: Add test for dci instruction.
5162         * configure: Regenerate.
5163         * config.in: Likewise.
5164         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
5165         * doc/invoke.texi: Add cpu_type 476 and 476fp.
5166         (-mmulhw): Add 476 to description.
5167         (-mdlmzb): Likewise.
5168         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
5169         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
5170         (processor_target_table): Add 476 and 476fp entries.
5171         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
5172         (rs6000_issue_rate): Add CPU_PPC476.
5173         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
5174         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
5175         (processor_type): Add PROCESSOR_PPC476.
5176         (EXTRA_SPECS): Add asm_cpu_476 string.
5177         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
5178         (define_attr "cpu"): Add ppc476.
5179         Include 476.md.
5180         Update comments for 476.
5181         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
5182         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
5183         Update copyright year.
5184         * config/rs6000/476.md: New file.
5185         * config/rs6000/40x.md: Add description for "isel" attribute.
5186         Update copyright year.
5187         * config/rs6000/440.md: Likewise.
5188         * config/rs6000/603.md: Likewise.
5189         * config/rs6000/6xx.md: Likewise.
5190         * config/rs6000/7450.md: Likewise.
5191         * config/rs6000/7xx.md: Likewise.
5192         * config/rs6000/8540.md: Likewise.
5193         * config/rs6000/cell.md: Likewise.
5194         * config/rs6000/e300c2c3.md: Likewise.
5195         * config/rs6000/e500mc.md: Likewise.
5196         * config/rs6000/mpc.md: Likewise.
5197         * config/rs6000/power4.md: Likewise.
5198         * config/rs6000/power5.md: Likewise.
5199         * config/rs6000/power6.md: Likewise.
5200         * config/rs6000/power7.md: Likewise.
5201         * config/rs6000/rios1.md: Likewise.
5202         * config/rs6000/rios2.md: Likewise.
5203         * config/rs6000/rs64.md: Likewise.
5204
5205 2009-10-10  Richard Guenther  <rguenther@suse.de>
5206
5207         PR tree-optimization/41654
5208         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
5209         a cond expr before calling gimple_cond_set_condition_from_tree.
5210         (ifcombine_iforif): Likewise.
5211
5212 2009-10-09  Ian Lance Taylor  <iant@google.com>
5213
5214         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
5215         * configure: Rebuild.
5216
5217 2009-10-09  Neil Vachharajani <nvachhar@google.com>
5218
5219         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
5220         deprecated.
5221
5222 2009-10-09  Richard Guenther  <rguenther@suse.de>
5223
5224         PR lto/41638
5225         * target-def.h (TARGET_BUILTIN_DECL): Define.
5226         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
5227         * target.h (struct gcc_target): Add builtin_decl target hook.
5228         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
5229         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
5230         target builtins.
5231         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
5232         not gcc_unreachable.
5233         (lto_output_builtin_tree): Sorry if the target does not support
5234         streaming target builtins.
5235         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
5236         (rs6000_builtin_decl): New function.
5237         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
5238         (ix86_builtin_decl): New function.
5239
5240 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
5241
5242         PR preprocessor/41445
5243         * c-ppoutput.c (do_line_change): New function.
5244         (cb_line_change): Use it.
5245         (scan_translation_unit): Call do_line_change if
5246         avoid_paste or PREV_WHITE and token location is on a different line
5247         than print.src_line.
5248
5249         PR debug/40521
5250         * dwarf2out.c (dwarf2out_init): Test whether
5251         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
5252         it is defined.
5253
5254         PR rtl-optimization/41646
5255         * calls.c (expand_call): For BLKmode types returned in registers
5256         avoid likely spilled hard regs in copy_blkmode_from_reg generated
5257         insns.
5258
5259 2009-10-09  Richard Guenther  <rguenther@suse.de>
5260
5261         PR tree-optimization/41634
5262         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
5263         we remove the correct elements.
5264         (optimize_stmt): Make sure to update stmt operands before
5265         optimizing redundancies.
5266
5267 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5268
5269         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
5270
5271 2009-10-09  Richard Guenther  <rguenther@suse.de>
5272
5273         PR driver/41637
5274         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
5275         globals.
5276         (lto_wrapper_exit): New function.
5277         (fatal): Use it.
5278         (fatal_perror): Likewise.
5279         (fork_execute): Use global args_name, do not free it.
5280         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
5281         * lto-streamer.h: Remove duplicate prototypes.
5282
5283 2009-10-09  Richard Guenther  <rguenther@suse.de>
5284
5285         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
5286         before calling stmt_can_throw_external.
5287
5288 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5289
5290         PR tree-optimization/40071
5291         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
5292         pointer if the original data reference doesn't conflict with the
5293         created vector data reference.  Fix long line.
5294
5295 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
5296
5297         * config/i386/i386.md (any_div): New code iterator.
5298         (u): Handle div and udiv.
5299         (sgnprefix): Ditto.
5300         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
5301         code iterator.
5302         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
5303         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
5304         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
5305         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
5306
5307 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
5308
5309         * gcc.c (main): Remove trailing "." from diagnostics.
5310
5311 2009-10-08  Cary Coutant  <ccoutant@google.com>
5312
5313         Add support for debugging with ICF (Identical Code Folding).
5314         * calls.c (debug.h): New #include.
5315         (emit_call_1): Call virtual_call_token debug hook.
5316         * common.opt (-fenable-icf-debug): New option.
5317         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
5318         locations in the source).
5319         (poc_label_num): New variable.
5320         (dcall_entry, vcall_entry): New typedefs.
5321         (dcall_table, vcall_table): New variables.
5322         (struct vcall_insn): New type.
5323         (vcall_insn_table): New variable.
5324         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
5325         (size_of_dcall_table): New function.
5326         (output_dcall_table): New function.
5327         (size_of_vcall_table): New function.
5328         (output_vcall_table): New function.
5329         (dwarf2out_direct_call): New function.
5330         (vcall_insn_table_hash): New function.
5331         (vcall_insn_table_eq): New function.
5332         (dwarf2out_virtual_call_token): New function.
5333         (dwarf2out_virtual_call): New function.
5334         (dwarf2out_init): Allocate new tables and sections.
5335         (prune_unused_types): Mark DIEs referenced from direct call table.
5336         (dwarf2out_finish): Output direct and virtual call tables.
5337         * final.c (final_scan_insn): Call direct_call and virtual_call
5338         debug hooks.
5339         * debug.h (struct gcc_debug_hooks): Add direct_call,
5340         virtual_call_token, virtual_call hooks.
5341         (debug_nothing_uid): New function.
5342         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
5343         (debug_nothing_uid): New function.
5344         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
5345         (xcoff_debug_hooks): Likewise.
5346         * sdbout.c (sdb_debug_hooks): Likewise.
5347         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5348         * doc/invoke.texi (-fenable-icf-debug): New option.
5349
5350 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
5351
5352         PR debug/41353
5353         * regmove.c (regmove_backward_pass): Replace src with dst in the
5354         debug insn, and check for dst before rather than after.
5355
5356 2009-10-08  Janis Johnson <janis187@us.ibm.com>
5357
5358         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
5359         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
5360
5361 2009-10-08  Jan Hubicka  <jh@suse.cz>
5362
5363         PR middle-end/41626
5364         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
5365         do not mark cgraph nodes as needed.
5366         (record_references_in_initializer): Add new only_vars parameter.
5367         * cgraph.h (record_references_in_initializer): New parameter.
5368         * varasm.c (assemble_variable): Update call.
5369         * varpool.c (varpool_analyze_pending_decls): Always look for
5370         referenced vars.
5371
5372 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
5373
5374         * config/avr/avr.c (last_insn_address) Remove variable.
5375         (expand_prologue): Don't initialise last_insn_address variable.
5376         (final_prescan_insn): Don't output insn size.
5377         * config/avr/avr.opt (msize): Remove switch.
5378         * doc/invoke.texi (AVR Options): Remove documentation of -msize
5379         switch.
5380
5381 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
5382
5383         * combine.c (label_tick_ebb_start): Fix comment.
5384         (combine_instructions): Set label_tick and label_tick_ebb_start before
5385         calling setup_incoming_promotions.  Start them from 1.  Increment
5386         label_tick instead of deriving it from the BB index.  Rather than
5387         comparing ticks use the block from the previous iteration to decide
5388         whether to start a new EBB.  Remove empty lines before function.
5389
5390 2009-10-08  Michael Matz  <matz@suse.de>
5391
5392         PR middle-end/41573
5393         * builtins.c (fold_builtin_isascii): Use fold_build2.
5394         (fold_builtin_isdigit): Ditto.
5395         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
5396         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
5397         remove_useless_stmts_cond, remove_useless_stmts_tf,
5398         remove_useless_stmts_tc, remove_useless_stmts_bind,
5399         remove_useless_stmts_goto, remove_useless_stmts_label,
5400         remove_useless_stmts_1, remove_useless_stmts,
5401         pass_remove_useless_stmts): Remove.
5402         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
5403         * passes.c (init_optimization_passes): Don't add
5404         pass_remove_useless_stmts.
5405         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
5406         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
5407         static constants.
5408         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
5409         for static constants.
5410         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
5411         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
5412
5413 2009-10-08  Richard Guenther  <rguenther@suse.de>
5414
5415         * gimple.c (free_gimple_type_tables): New function.
5416         * gimple.h (free_gimple_type_tables): Declare.
5417
5418 2009-10-07  Mark Heffernan  <meheff@google.com>
5419
5420         * ipa-prop.c (ipa_print_node_params) Only print
5421         names of named arguments.
5422
5423 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
5424
5425         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
5426         being statically linked.
5427
5428 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5429
5430         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
5431
5432 2009-10-08  Jan Hubicka  <jh@suse.cz>
5433
5434         PR bootstrap/41620
5435         * ipa.c (cgraph_externally_visible_p,
5436         function_and_variable_visibility,
5437         whole_program_function_and_variable_visibility): Skip non-finalized
5438         nodes.
5439
5440 2009-10-08  Nick Clifton  <nickc@redhat.com>
5441
5442         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
5443         CONST_DOUBLEs.
5444
5445 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
5446
5447         PR bootstrap/37739
5448         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
5449
5450 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
5451
5452         PR c/41182
5453         * c-common.c (c_fully_fold_internal): Strip nops from the result
5454         of recursive calls to c_fully_fold_internal.
5455         (c_wrap_maybe_const): New.
5456         (c_save_expr): Use c_wrap_maybe_const.
5457         * c-common.h (c_wrap_maybe_const): Declare.
5458         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
5459         build_binary_op): Use c_wrap_maybe_const.
5460
5461 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5462
5463         * real.c: Fix comment to reflect actual exponent size.
5464
5465 2009-10-08  Ben Elliston  <bje@au.ibm.com>
5466
5467         * config/rs6000/a2.md: Add FSF comment header.
5468
5469 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
5470
5471         * config/i386/i386.md (any_extend): New code iterator.
5472         (u, s): New code attributes.
5473         (sgnprefix): Ditto.
5474         (DWIH): Rewrite as code iterator for SI and DI modes.
5475         (DWI): Rewrite as mode attribute.
5476         (dwi): New mode attribute.
5477         (di): Depend on SI mode and DI mode.
5478         (doubleint_general_operand): Remove mode attribute.
5479
5480         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
5481         DWIH mode iterator.
5482
5483         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
5484         (*sub<mode>3_doubleword): Ditto.
5485
5486         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
5487         using SWIM248 mode iterator.
5488         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
5489         using SWI48 mode iterator.
5490         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
5491         patterns using DWIH mode iterator and any_extend code iterator.
5492         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
5493         using any_extend code iterator.
5494         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
5495         patterns using DWIH mode iterator and any_extend code iterator.
5496         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
5497         using any_extend code iterator.
5498         (<s>mul<mode>3_highpart): Macroize expander from
5499         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
5500         and any_extend code iterator.
5501         (*<s>muldi3_highpart_1): Macroize insn from
5502         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
5503         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
5504         patterns using any_extend code iterator.
5505         (*<s>mulsi3_highpart_zext): Macroize insn from
5506         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
5507
5508 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
5509
5510         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
5511         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
5512         refering to a DIE with DW_AT_const_value.
5513
5514 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
5515
5516         PR middle-end/22072
5517         * ira-lives.c (check_and_make_def_conflict): Process all operands.
5518
5519 2009-10-06  Jan Hubicka  <jh@suse.cz>
5520
5521         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
5522         correctly.
5523
5524 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5525
5526         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
5527         *lea_2_rex64): Move before *add<mode>_1 pattern.
5528
5529 2009-10-07  Jan Hubicka  <jh@suse.cz>
5530
5531         * collect2.c (main): Add -fno-whole-program.
5532         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
5533
5534 2009-10-07  Jan Hubicka  <jh@suse.cz>
5535
5536         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
5537         has no address taken.
5538         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
5539         never needed.
5540         (cgraph_clone_node): Clear externally_visible flag for clones.
5541         * cgraph.h (cgraph_only_called_directly_p,
5542         cgraph_can_remove_if_no_direct_calls_p): New predicates.
5543         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
5544         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
5545         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
5546         ipcp_insert_stage): Likwise.
5547         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
5548         externally_visible flag.
5549         (verify_cgraph_node): Verify that inline clones look right.
5550         (process_function_and_variable_attributes): Do not set
5551         externally_visible flags.
5552         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
5553         been already run.
5554         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
5555         boundaries.
5556         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
5557         clear externally_visible when turning into inline clones
5558         (cgraph_mark_inline_edge): Use new predicates.
5559         (cgraph_estimate_growth): Likewise.
5560         (cgraph_decide_inlining): Likewise.
5561         * ipa.c (cgraph_postorder): Likewise.
5562         (cgraph_remove_unreachable_nodes): Likewise; sanity check
5563         that inline clones are not needed.
5564         (cgraph_externally_visible_p): New predicate.
5565         (function_and_variable_visibility): Add whole_program parameter;
5566         always set externally_visible flag; handle COMDAT function
5567         privatization.
5568         (local_function_and_variable_visibility): New function.
5569         (gate_whole_program_function_and_variable_visibility): New function.
5570         (whole_program_function_and_variable_visibility): New function.
5571         (pass_ipa_whole_program_visibility): New function.
5572         * passes.c  (init_optimization_passes): Add whole program visibility
5573         pass.
5574         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
5575         not care about needed/reachable flags.
5576         * varpool.c: Include flags.h
5577         (decide_is_variable_needed): When doing LTO assume whole-program mode.
5578         (varpool_finalize_decl): When we are in LTO read-back, all variables
5579         are analyzed.
5580         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
5581
5582 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5583
5584         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
5585         add MASK_HARD_DFP.
5586
5587 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5588
5589         * config.gcc: Don't include the makefile fragments intended for
5590         libgcc.
5591         * config/s390/fixdfdi.h: File removed.
5592         * config/s390/libgcc-glibc.ver: File removed.
5593         * config/s390/s390.h: Remove the fixdfdi.h hack.
5594         * config/s390/t-crtstuff: File moved to libgcc dir.
5595         * config/s390/t-linux: Likewise.
5596         * config/s390/t-tpf: libgcc specific parts removed.
5597         * config/s390/t-linux64: Likewise.
5598
5599 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5600
5601         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
5602         (lto-compress.o): Likewise.
5603
5604 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
5605
5606         PR target/41512
5607         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
5608         dllexport to class members here.
5609         (i386_pe_determine_dllimport_p): Only check static class data for
5610         definition.
5611         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
5612         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
5613         functions for vague linkage.
5614         (i386_pe_type_dllexport_p): Fix formatting.
5615         (maybe_add_dllexport) New function.
5616         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
5617         to class members.
5618
5619 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5620
5621         * config/rs6000/a2.md: Remove duplicated lines.
5622
5623 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5624
5625         * config.gcc (powerpc*-*-*): Handle a2.
5626         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
5627         * config/rs6000/a2.md: New file.
5628         * config/rs6000/rs6000.opt (mno-update): New.
5629         (mupdate): Return to using a mask, not a var.
5630         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
5631         (enum processor_type): Add PROCESSOR_PPCA2.
5632         * config/rs6000/rs6000.c (ppca2_cost): New costs.
5633         (rs6000_override_options): Add "a2" to processor_target_table.
5634         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
5635         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
5636
5637 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5638
5639         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5640         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
5641         reference to nonexistent gen_truncxfxf2 function.
5642
5643 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5644
5645         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
5646         (DWIH, g, di, doubleint_general_operand): New mode attributes.
5647         (general_operand): Handle TI mode.
5648         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
5649         using SDWIM mode iterator.
5650         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
5651         pattern from *add{di,ti}3_1 patterns and corresponding splitters
5652         using DWI mode iterator.
5653         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
5654         patterns using SWI mode iterator.
5655         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
5656         using SWI48 mode iterator.
5657         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
5658         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
5659         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
5660         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
5661         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
5662         using SDWIM mode iterator.
5663         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
5664         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
5665         using DWI mode iterator.
5666         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
5667         patterns using SWI mode iterator.
5668         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
5669         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
5670         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
5671         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
5672         patterns using plusminus code iterator.
5673         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
5674         sub<mode>3 patterns using plusminus code iterator.
5675         * config/i386/i386.c (override_options): Update the call to
5676         gen_subdi_carry_rex64 for renamed function.
5677         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
5678         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
5679         calls to instruction expanders.
5680
5681 2009-10-06  Martin Jambor  <mjambor@suse.cz>
5682
5683         PR bootstrap/41395
5684         * opts.c (decode_options): Run IPA-SRA at -O2.
5685
5686 2009-10-06  Richard Guenther  <rguenther@suse.de>
5687
5688         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
5689
5690 2009-10-06  Tobias Burnus  <burnus@net-b.de>
5691
5692         PR lto/41591
5693         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
5694         -flto and -fwhole-program flags can be combined.
5695
5696 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
5697
5698         PR driver/41217
5699         * gcc.c (process_command): Check that -o argument was specified.
5700
5701 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5702
5703         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
5704
5705 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5706
5707         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
5708         * doc/invoke.texi (Warning Options): Annotate allowed languages
5709         for -Wunsuffixed-float-constants.
5710
5711 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
5712
5713         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
5714         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
5715         same name and isn't the main variant.
5716
5717         PR debug/41558
5718         * dwarf2out.c (loc_by_reference): Removed.
5719         (dw_loc_list_1): New function.
5720         (dw_loc_list): Remove toplev argument, add want_address argument.
5721         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
5722         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
5723         want_address == 2 to dw_loc_list.  For successful dw_loc_list
5724         set have_address to 1 only if want_address is not 0.
5725
5726 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5727
5728         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
5729         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
5730         a code block followed by two pointers.
5731         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
5732         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
5733         (MIPS_MOVE): Likewise.
5734         (MIPS_LUI): Likewise.
5735         (MIPS_JR): Likewise.
5736         (MIPS_BAL): Likewise.
5737         (MIPS_NOP): Likewise.
5738         (mips_asm_trampoline_template): Delete.
5739         (mips_trampoline_code_size): New function.
5740         (mips_trampoline_init): Add shorter sequences for all cases
5741         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
5742         Calculate the opcodes directly, rather than copying from a template.
5743         Only flush the code part of the trampoline.
5744         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
5745
5746 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5747
5748         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
5749         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
5750         (INCOMING_RETURN_ADDR_RTX): Likewise.
5751         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
5752         with AT_REGNUM.
5753         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
5754         with RETURN_ADDR_REGNUM.
5755         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
5756         * config/mips/mips.c (mips16_build_call_stub): Replace
5757         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
5758         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
5759         (mips_print_operand_punctuation): Likewise.
5760         (mips_frame_set): Likewise.
5761         (mips16e_output_save_restore): Likewise.
5762         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5763         (mips_save_reg_p): Likewise.
5764         (mips_return_addr): Likewise.
5765         (mips_set_return_address): Likewise.
5766         (mips_direct_save_slot_move_p): Likewise.
5767         (mips_output_function_prologue): Likewise.
5768         (mips_restore_reg): Likewise.
5769         (mips_expand_epilogue): Likewise.
5770         (mips_epilogue_uses): Likewise.
5771         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
5772         (*mov<mode>_ra): Use it instead of a hard-coded 31.
5773         (clear_hazard_<mode>): Likewise.
5774         (call_internal): Likewise.
5775         (call_internal_direct): Likewise.
5776         (call_direct_split): Likewise.
5777         (call_value_internal): Likewise.
5778         (call_value_split): Likewise.
5779         (call_value_internal_direct): Likewise.
5780         (call_value_direct_split): Likewise.
5781         (call_value_multiple_internal): Likewise.
5782         (call_value_multiple_split): Likewise.
5783
5784 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
5785             Jakub Jelinek  <jakub@redhat.com>
5786
5787         PR rtl-optimization/41511
5788         * combine.c (record_value_for_reg): Pass explicit values as argument
5789         to get_last_value_validate.
5790         (get_last_value_validate): Document INSN parameter.
5791         For non-readonly MEMs, assume they might have been modified if INSN
5792         was in another basic block.
5793         (get_last_value): Minor reformatting.
5794
5795 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5796
5797         PR tree-opt/40992
5798         * final.c (asm_str_count): Split out from asm_insn_count.
5799         * rtl.h (asm_str_count): New prototype.
5800         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
5801         asm_str_count.
5802
5803 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
5804
5805         * doc/plugins.texi: Change plugin_pass to register_pass_info.
5806
5807 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
5808             Rafael Espindola  <espindola@google.com>
5809
5810         * gengtype.c (write_types): Moved call to write_func_for_structure
5811         into seperate loops.
5812
5813 2009-10-05  Richard Guenther  <rguenther@suse.de>
5814
5815         PR lto/41281
5816         * lto-cgraph.c (output_cgraph): Output toplevel asms.
5817         (input_cgraph_1): Input toplevel asms.
5818
5819 2009-10-05  Richard Guenther  <rguenther@suse.de>
5820
5821         PR lto/40902
5822         * lto-symtab.c (lto_compatible_attributes_p): Remove.
5823         (external_aggregate_decl_p): Likewise.
5824         (lto_symtab_compatible): Re-structure.  Remove dead code.
5825         For variables ignore toplevel qualifiers when comparing types.
5826         Issue warnings, not errors for mismatched user-alignment.
5827
5828 2009-10-05  Richard Guenther  <rguenther@suse.de>
5829
5830         PR lto/41552
5831         PR lto/41487
5832         * lto-symtab.c (struct lto_symtab_base_def): Remove.
5833         (struct lto_symtab_identifier_def): Likewise.
5834         (struct lto_symtab_decl_def): Likewise.
5835         (struct lto_symtab_entry_def): New.
5836         (lto_symtab_identifier_t): Rename to ...
5837         (lto_symtab_entry_t): ... this.
5838         (lto_symtab_decls): Remove.
5839         (lto_symtab_base_hash): Rename to ...
5840         (lto_symtab_entry_hash): ... this.
5841         (lto_symtab_base_eq): Rename to ...
5842         (lto_symtab_entry_eq): ... this.
5843         (lto_symtab_base_marked_p): Rename to ...
5844         (lto_symtab_entry_marked_p): ... this.
5845         (lto_symtab_identifier_marked_p): Remove.
5846         (lto_symtab_decl_marked_p): Likewise.
5847         (lto_symtab_maybe_init_hash_tables): Rename to ...
5848         (lto_symtab_maybe_init_hash_table): ... this.
5849         (lto_symtab_set_resolution_and_file_data): Remove.
5850         (lto_symtab_register_decl): New function.
5851         (lto_symtab_get_identifier): Remove.
5852         (lto_symtab_get): New function.
5853         (lto_symtab_get_resolution): Adjust.
5854         (lto_symtab_get_identifier_decl): Remove.
5855         (lto_symtab_set_identifier_decl): Likewise.
5856         (lto_symtab_merge_decl): Rename to ...
5857         (lto_symtab_merge): ... this.  Rewrite.
5858         (lto_symtab_merge_var): Remove.
5859         (lto_symtab_merge_fn): Likewise.
5860         (lto_symtab_prevailing_decl): Adjust.
5861         (lto_cgraph_replace_node): New function.
5862         (lto_symtab_merge_decls_2): Likewise.
5863         (lto_symtab_merge_decls_1): Likewise.
5864         (lto_symtab_fixup_var_decls): Likewise.
5865         (lto_symtab_resolve_symbols): Likewise.
5866         (lto_symtab_merge_decls): Likewise.
5867         (lto_symtab_prevailing_decl): Adjust.
5868         (lto_symtab_get_symtab_def): Remove.
5869         (lto_symtab_get_file_data): Likewise.
5870         (lto_symtab_clear_resolution): Adjust.
5871         (lto_symtab_clear_resolution): Likewise.
5872         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
5873         (input_cgraph_1): Likewise.
5874         * lto-streamer-in.c (get_resolution): Do not provide fake
5875         symbol resolutions here.
5876         (deferred_global_decls): Remove.
5877         (lto_register_deferred_decls_in_symtab): Likewise.
5878         (lto_register_var_decl_in_symtab): Change signature, register
5879         variable via lto_symtab_register_decl.
5880         (lto_register_function_decl_in_symtab): Likewise.
5881         (lto_read_tree): Adjust.
5882         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
5883         (lto_symtab_merge_var): Likewise.
5884         (lto_symtab_merge_fn): Likewise.
5885         (lto_symtab_register_decl): Declare.
5886         (lto_symtab_merge_decls): Likewise.
5887
5888 2009-10-05  Richard Guenther  <rguenther@suse.de>
5889
5890         PR tree-optimization/23821
5891         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
5892         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
5893         simple IV increments.
5894
5895 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5896
5897         * config/arm/arm.c (arm_override_options): Really initialize
5898         flag_dwarf2_cfi_asm to 0.
5899
5900 2009-10-05  Doug Kwan  <dougkwan@google.com>
5901
5902         PR rtl-optimization/41574
5903         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
5904         floating point and we are not doing unsafe math optimizations.
5905
5906 2009-10-03  Simon Baldwin  <simonb@google.com>
5907             Cary Coutant  <ccoutant@google.com>
5908             Rafael Espindola  <espindola@google.com>
5909             Richard Guenther  <rguenther@suse.de>
5910             Jan Hubicka  <jh@suse.cz>
5911             Doug Kwan <dougkwan@google.com>
5912             H.J. Lu  <hongjiu.lu@intel.com>
5913             Bill Maddox  <maddox@google.com>
5914             Ryan Mansfield  <rmansfield@qnx.com>
5915             Diego Novillo  <dnovillo@google.com>
5916             Ollie Wild  <aaw@google.com>
5917             Kenneth Zadeck <zadeck@naturalbridge.com>
5918
5919         * lto-cgraph.c: New file.
5920         * lto-compress.c: New file.
5921         * lto-compress.h: New file.
5922         * lto-opts.c: New file.
5923         * lto-section-in.c: New file.
5924         * lto-section-out.c: New file.
5925         * lto-streamer-in.c: New file.
5926         * lto-streamer-out.c: New file.
5927         * lto-streamer.c: New file.
5928         * lto-streamer.h: New file.
5929         * lto-symtab.c: New file.
5930         * lto-wpa-fixup.c: New file.
5931         * lto-wrapper.c: New file.
5932
5933 2009-10-03  Simon Baldwin  <baldwin@google.com>
5934             Ben Elliston  <bje@au.ibm.com>
5935             Rafael Espindola  <espindola@google.com>
5936             Nathan Froyd  <froydnj@codesourcery.com>
5937             Jan Hubicka  <jh@suse.cz>
5938             Doug Kwan  <dougkwan@google.com>
5939             Diego Novillo  <dnovillo@google.com>
5940             Kenneth Zadeck  <zadeck@naturalbridge.com>
5941
5942         * Makefile.in (enable_lto): New.
5943         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
5944         (LINKER_PLUGIN_API_H): Define.
5945         (LTO_SYMTAB_H): Define.
5946         (LTO_STREAMER_H): Define.
5947         (TREE_VECTORIZER_H): Define.
5948         (INCLUDES): Add LIBELFINC.
5949         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
5950         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
5951         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
5952         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
5953         (native): Add lto-wrapper$(exeext)
5954         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
5955         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
5956         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
5957         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
5958         (varasm.o): Add dependency on tree-iterator.h.
5959         (cgraph.o): Add dependency on cif-code.def.
5960         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
5961         (ipa-pure-const.o): Likewise.
5962         (GTFILES): Add lto-symtab.c.
5963         (install-lto-wrapper): New.
5964         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
5965         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
5966         * config.in: Regenerate.
5967
5968 2009-10-03  Rafael Espindola  <espindola@google.com>
5969             Diego Novillo  <dnovillo@google.com>
5970
5971         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
5972         ipa_write_summaries.
5973         Call execute_ipa_summary_passes for all_regular_ipa_passes and
5974         all_lto_gen_passes.
5975         (cgraph_optimize): Make extern.
5976
5977 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
5978             Kenneth Zadeck <zadeck@naturalbridge.com>
5979
5980         * toplev.c (in_lto_p): Declare.
5981         * collect2.c (scan_prog_file): Read all the output when reading
5982         information for LTO.
5983         (enum lto_mode_d): Declare.
5984
5985 2009-10-03  Richard Guenther  <rguenther@suse.de>
5986             Diego Novillo  <dnovillo@google.com>
5987
5988         * gimple.c: Include target.h and alias.h.
5989         (gimple_types): Declare.
5990         (type_hash_cache): Declare.
5991         (gimple_alloc_stat): Make extern.
5992         (gimple_build_eh_must_not_throw): Call
5993         gimple_eh_must_not_throw_set_fndecl.
5994         (struct type_pair_d): Declare.
5995         (type_pair_t): Declare.
5996         (type_pair_hash): New.
5997         (type_pair_eq): New.
5998         (lookup_type_pair): New.
5999         (gimple_force_type_merge): New.
6000         (compare_type_names_p): New.
6001         (compare_field_offset): New.
6002         (gimple_types_compatible_p): New.
6003         (struct sccs): Declare.
6004         (next_dfs_num): Declare.
6005         (iterative_hash_gimple_type): New.
6006         (visit): New.
6007         (iterative_hash_type_name): New.
6008         (iterative_hash_gimple_type): New.
6009         (gimple_type_hash): New.
6010         (gimple_type_eq): New.
6011         (gimple_register_type): New.
6012         (print_gimple_types_stats): New.
6013         (gimple_signed_or_unsigned_type): New.
6014         (gimple_unsigned_type): New.
6015         (gimple_signed_type): New.
6016         (gimple_get_alias_set): New.
6017         (gimple_decl_printable_name): Do not use DMGL_TYPES.
6018         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
6019         (gimple_force_type_merge): Declare.
6020         (gimple_types_compatible_p): Declare.
6021         (gimple_register_type): Declare.
6022         (print_gimple_types_stats): Declare.
6023         (gimple_unsigned_type): Declare.
6024         (gimple_signed_type): Declare.
6025         (gimple_get_alias_set): Declare.
6026         (gimple_eh_must_not_throw_set_fndecl): New.
6027
6028 2009-10-03  Jan Hubicka  <jh@suse.cz>
6029             Kenneth Zadeck <zadeck@naturalbridge.com>
6030
6031         * ipa-pure-const.c: Include lto-streamer.h.
6032         (register_hooks): Factor out of ...
6033         (generate_summary): ... here.
6034         (pure_const_write_summary): New.
6035         (pure_const_read_summary): New.
6036         (pass_ipa_pure_const): Add pure_const_write_summary and
6037         pure_const_read_summary.
6038         * ipa-reference.c: Include lto-streamer.h.
6039         (add_new_function): New.
6040         (remove_node_data): New.
6041         (duplicate_node_data): New.
6042         (ipa_init): Guard against multiple calls.
6043         Move hook setup from analyze_function.
6044         (write_node_summary_p): New.
6045         (ipa_reference_write_summary): New.
6046         (ipa_reference_read_summary): New.
6047         (pass_ipa_reference): Add ipa_reference_write_summary and
6048         ipa_reference_read_summary.
6049         * cgraph.h (cgraph_local_info): Add field lto_file_data.
6050         (struct cgraph_edge): Add fields lto_stmt_uid and
6051         call_stmt_cannot_inline_p.
6052         (cgraph_optimize): Declare.
6053         (cgraph_decide_is_function_needed): Declare.
6054         (reset_inline_failed): Declare.
6055         (enum LTO_cgraph_tags): Declare.
6056         (LTO_cgraph_tag_names): Declare.
6057         (LCC_NOT_FOUND): Define.
6058
6059 2009-10-03  Doug Kwan  <dougkwan@google.com>
6060             Rafael Espindola  <espindola@google.com>
6061             Jan Hubicka  <jh@suse.cz>
6062             Diego Novillo  <dnovillo@google.com>
6063             Kenneth Zadeck  <zadeck@naturalbridge.com>
6064
6065         * passes.c (all_regular_ipa_passes): New.
6066         (all_ipa_passes): Rename to all_small_ipa_passes.
6067         (init_optimization_passes): Init all_regular_ipa_passes.
6068         * tree-pass.h (all_regular_ipa_passes): New.
6069         (all_ipa_passes): Rename to all_small_ipa_passes.
6070         * passes.c (all_lto_gen_passes): New.
6071         (init_optimization_passes): Initialize all_lto_gen_passes.
6072         (execute_ipa_summary_passes): Make non-static.
6073         (ipa_write_summaries_1): New.
6074         (ipa_write_summaries_2): New.
6075         (ipa_write_summaries): New.
6076         (ipa_write_summaries_of_cgraph_node_set): New.
6077         (ipa_read_summaries_1): New.
6078         (ipa_read_summaries): New.
6079         (execute_ipa_pass_list): Call cgraph_process_new_functions.
6080         (execute_regular_ipa_pass_list): Remove.
6081         (init_optimization_passes): Schedule
6082         pass_rebuild_cgraph_edges and pass_early_inline outside
6083         of pass_all_early_optimizations.  Document reason.
6084         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
6085         pass_ipa_lto_finish_out): New pass.
6086         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
6087         (execute_all_ipa_transforms): New.
6088         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
6089         (dump_properties, debug_properties): New.
6090         * tree-optimize.c (gate_all_early_local_passes): Return
6091         false if we are in lto1.
6092         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
6093         * tree-pass.h (execute_all_ipa_transforms): Declare.
6094         (pass_ipa_function_and_variable_visibility): Declare.
6095         (pass_ipa_early_inline): Declare.
6096         (pass_ipa_lto_gimple_out): Declare.
6097         (pass_ipa_lto_wpa_fixup): Declare.
6098         (pass_ipa_lto_finish_out): Declare.
6099         (all_small_ipa_passes, all_regular_ipa_passes,
6100         all_lto_gen_passes): Declare.
6101         (execute_ipa_summary_passes): Declare.
6102         (execute_all_ipa_transforms): Declare.
6103         (ipa_write_summaries): Declare
6104         (ipa_write_summaries_of_cgraph_node_set): Declare.
6105         (ipa_read_summaries): Declare.
6106
6107 2009-10-03  Doug Kwan  <dougkwan@google.com>
6108             Ollie Wild  <aaw@google.com>
6109
6110         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
6111
6112         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
6113         (lto_mode): New variable.
6114         (maybe_run_lto_and_relink): Handle the -fwpa option.
6115         (main): Handle the -fwpa option.
6116         (maybe_unlink_list): New function.
6117         * gcc.c (link_lto_options): Replace -flto with -fwpa.
6118         * common.opt (flto): New flag.
6119         * toplev.c (flag_generate_lto): Declare.
6120
6121 2009-10-03  Simon Baldwin  <simonb@google.com>
6122
6123         * common.opt (flto-compression-level): New flag.
6124
6125         * opts.c: Include lto-opts.h.
6126         (handle_option): Call lto_register_user_option for each
6127         valid option handled.
6128         (decode_options): Clear registered options before the options
6129         handling loop.
6130
6131 2009-10-03  Cary Coutant  <ccoutant@google.com>
6132
6133         * collect2.c (is_elf): New function.
6134         (scan_prog_file): Require LTO object to be in ELF format.
6135
6136 2009-10-03  Rafael Espindola  <espindola@google.com>
6137
6138         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
6139         libgcc to the linker.
6140
6141         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
6142
6143         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
6144         (collect_execute): Add flags argument. Pass flags to pex_run. Update
6145         all callers.
6146         * collect2.h (collect_execute): Add flags argument.
6147         * tlink.c (tlink_execute): Update call to collect_execute.
6148         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
6149         (use_linker_plugin): New.
6150         (use_linker_plugin_spec_function): New.
6151         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
6152         (linker_plugin_file_spec): New.
6153         (lto_wrapper_spec): New.
6154         (lto_gcc_spec): New.
6155         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
6156         (static_spec_functions): Add use-linker-plugin.
6157         (process_command): Handle -use-linker-plugin.
6158         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
6159         linker_plugin_file_spec and lto_gcc_spec.
6160         (use_linker_plugin_spec_function): New.
6161
6162 2009-10-03  Richard Guenther  <rguenther@suse.de>
6163
6164         PR lto/41547
6165         PR lto/41548
6166         * tree.h (is_lang_specific): Include LANG_TYPE.
6167         * tree.c (find_decls_types_r): Manually add interesting parts
6168         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
6169
6170         * gimple.c (type_pair_hash): Make symmetric.
6171         (type_pair_eq): Likewise.
6172         (lookup_type_pair): Increase initial hashtable size.
6173         (gimple_force_type_merge): Rely on type-pair symmetry.
6174         (visit): Remove excessive checking code.
6175         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
6176         (gimple_register_type): Remove getenv calls, shrink initial
6177         hashtable size.
6178
6179         PR middle-end/41502
6180         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
6181         inline functions if not generating lto output.
6182
6183         PR lto/41379
6184         * toplev.c (finalize): In WPA mode remove the asm file.
6185
6186 2009-10-03  Doug Kwan  <dougkwan@google.com>
6187
6188         * ipa-inline.c (cgraph_mark_inline): Check
6189         edge->call_stmt_cannot_inline_p instead of calling
6190         gimple_call_cannot_inline_p.
6191         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
6192         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
6193         (inline_generate_summary): Do nothing in LTRANS.
6194         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
6195         exists before calling gimple_call_cannot_inline_p.
6196         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
6197         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
6198         Update new_edge->lto_stmt_uid.
6199         * cgraphbuild.c (reset_inline_failed): New.
6200
6201         * common.opt (fwpa): New flag.
6202         (fltrans): New option.
6203         * gcc.c (gcc_lto_option_t): New type.
6204         (current_lto_option): New variable.
6205         (lto_single_spec_function): Remove and is replaced by ..
6206         (lto_option_spec_function): New function.
6207         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
6208         passing the -flto flag.
6209         (cc1_options): Separate non-LTO related parts into ..
6210         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
6211         (lto1_options): New spec for lto FE.
6212         (link_lto_options): New spec for handling LTO flags in linker.
6213         (invoke_lto_single): Re-format to fit in 80 column.  Replace
6214         lto-single with lto-option.
6215         (static_specs): Add cc1_non_lto_options, lto1_options and
6216         link_lto_options.
6217         (static_spec_function): Replace lto-single with lto-option.
6218         (process_command): Handle -flto, -fwpa and -fltran by setting
6219         current_lto_option and not passing it to subprocess unconditionally.
6220
6221 2009-10-03  Bill Maddox  <maddox@google.com>
6222
6223         Add `gcc' driver support for link-time code generation (LTO).
6224
6225         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
6226         (lto_flag, lto_objects, lto_o_file): New variables.
6227         (struct lto_object, struct lto_object_list): New structures.
6228         (collect_exit, handler): Remove LTO temporary output file on exit.
6229         (add_lto_object): New function.
6230         (maybe_run_lto_and_relink): New function. Perform link time code
6231         generation and relinking for object files containing LTO information.
6232         (main): Invoke maybe_run_lto_and_relink().
6233         (dump_argv): New function.  For debugging, currently disabled.
6234         (scan_prog_file): Add LTO information pass.
6235         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
6236         collect2.
6237         * toplev.c (compile_file): Emit assembler directive to create
6238         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
6239
6240 2009-10-03  Diego Novillo  <dnovillo@google.com>
6241
6242         * c.opt: Add LTO to warn_abi and warn_psabi.
6243
6244         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
6245         inline function.  Ignore language-specific nodes.  Update all users.
6246         (find_decls_types_r): Do not traverse the subtrees of
6247         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
6248         * tree.h (is_lang_specific): New.
6249         * langhooks.h (struct lang_hooks_for_decls): Remove
6250         may_need_assembler_name_p.  Update all users.
6251
6252         * c-common.c (set_builtin_user_assembler_name): Move ...
6253         * builtins.c (set_builtin_user_assembler_name): ... here.
6254         (is_builtin_name): Add comment
6255         (is_builtin_fn): New.
6256         * except.c (output_ttype): Only call
6257         lookup_type_for_runtime if TYPE is not a runtime type.
6258
6259         * passes.c (register_pass): Call position_pass on
6260         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
6261         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
6262         (TV_IPA_LTO_DECL_IO): Define.
6263         (TV_IPA_LTO_CGRAPH_IO): Define.
6264         (TV_LTO): Define.
6265         (TV_WHOPR_WPA): Define.
6266         (TV_WHOPR_WPA_IO): Define.
6267         (TV_WHOPR_LTRANS): Define.
6268         (TV_WHOPR_WPA_FIXUP): Define.
6269         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
6270         * tree-cfg.c (tree_node_can_be_shared): Make extern.
6271         * tree-flow.h (tree_node_can_be_shared): Declare.
6272         * tree-inline.c (tree_can_inline_p): Check that E has a
6273         statement associated with it.
6274         * tree.c (free_lang_data_in_binf): Factor out of ...
6275         (free_lang_data_in_type): ... here.
6276         Call RECORD_OR_UNION_TYPE_P.
6277         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
6278         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
6279         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
6280         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
6281         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
6282         (gate_free_lang_data): Return true if flag_generate_lto is set.
6283         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
6284         * c-common.h (set_builtin_user_assembler_name): Move ...
6285         * tree.h (set_builtin_user_assembler_name): ... here.
6286
6287         * common.opt (flto-report): New flag.
6288         * opts.c (complain_wrong_lang): Do not complain if running lto1.
6289         * collect2.c (scan_prog_file): Send the error output of
6290         'nm' to HOST_BIT_BUCKET.
6291
6292 2009-10-03  Ollie Wild  <aaw@google.com>
6293
6294         * langhooks-def.h (lhd_begin_section): New function declaration.
6295         (lhd_write_section): New function declaration.
6296         (lhd_end_section): New function declaration.
6297         (LANG_HOOKS_BEGIN_SECTION): New macro.
6298         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
6299         (LANG_HOOKS_END_SECTION): New macro.
6300         (LANG_HOOKS_LTO): New macro.
6301         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
6302         * langhooks.c (output.h): Add include.
6303         (saved_section): New static variable.
6304         (lhd_begin_section): New function.
6305         (lhd_write_section_data): New function.
6306         (lhd_end_section): New function.
6307         * langhooks.h (struct lang_hooks_for_lto): New structure.
6308         (struct lang_hooks): Add member lto.
6309         * Makefile.in (langhooks.o): Add dependency on output.h.
6310
6311         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
6312
6313 2009-10-03  Richard Guenther  <rguenther@suse.de>
6314
6315         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6316         Handle LTO.
6317
6318 2009-10-03  Simon Baldwin  <simonb@google.com>
6319             Richard Guenther  <rguenther@suse.de>
6320             Janis Johnson  <janis187@us.ibm.com>
6321             Doug Kwan  <dougkwan@google.com>
6322             Diego Novillo  <dnovillo@google.com>
6323             Ramana Radhakrishnan  <ramana.r@gmail.com>
6324             Ollie Wild  <aaw@google.com>
6325
6326         * doc/install.texi: Add documentation for libelf and --enable-lto.
6327         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
6328         -flto-report, -flto-compression-level and -use-linker-plugin.
6329         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
6330         Add section for LTO Testing.
6331
6332 2009-10-02  Cary Coutant  <ccoutant@google.com>
6333
6334         Add support for comdat type sections for DWARF v4.
6335         Merge from dwarf4 branch.
6336
6337         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
6338         (dw_die_ref): Define vector type.
6339         (enum dw_val_class): Add dw_val_class_data8.
6340         (struct dw_val_struct): Add v.val_data8.
6341         (comdat_type_node_ref): New type.
6342         (struct die_struct): Move die_symbol into a union; add new field
6343         die_type_node.  Change all uses.
6344         (comdat_type_node): New type.
6345         (skeleton_chain_node): New type.
6346         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
6347         (comdat_type_list): New variable.
6348         (dwarf_tag_name): Add DW_TAG_type_unit.
6349         (dwarf_attr_name): Add DW_AT_signature.
6350         (add_AT_data8): New function.
6351         (replace_child): New function.
6352         (move_all_children): New function.
6353         (print_signature): New function.
6354         (print_die): Print signature information; add dw_val_class_data8.
6355         (attr_checksum): Support dw_val_class_data8.
6356         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
6357         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
6358         (checksum_sleb128, checksum_uleb128): New functions.
6359         (checksum_die_context): New function.
6360         (loc_checksum_ordered): New function.
6361         (attr_checksum_ordered): New function.
6362         (struct checksum_attributes): New structure.
6363         (collect_checksum_attributes): New function.
6364         (die_checksum_ordered): New function.
6365         (generate_type_signature): New function.
6366         (same_dw_val_p): Add dw_val_class_data8.
6367         (is_symbol_die): Use new is_declaration_die function.
6368         (is_declaration_die): New function.
6369         (should_move_die_to_comdat): New function.
6370         (clone_die): New function.
6371         (clone_tree): New function.
6372         (clone_as_declaration): New function.
6373         (copy_declaration_context): New function.
6374         (generate_skeleton_ancestor_tree): New function.
6375         (generate_skeleton_bottom_up): New function.
6376         (generate_skeleton): New function.
6377         (remove_child_or_replace_with_skeleton): New function.
6378         (break_out_comdat_types): New function.
6379         (struct decl_table_entry): New type.
6380         (htab_decl_hash): New function.
6381         (htab_decl_eq): New function.
6382         (htab_decl_del): New function.
6383         (copy_ancestor_tree): New function.
6384         (copy_decls_walk): New function.
6385         (copy_decls_for_unworthy_types): New function.
6386         (build_abbrev_table): Don't assert on missing die_symbol when doing
6387         comdat type sections.
6388         (size_of_die): Use DW_FORM_sig8 for external references.  Add
6389         dw_val_class_data8.
6390         (unmark_dies): Don't assert for unmarked dies when doing comdat
6391         type sections.
6392         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
6393         (output_signature): New function.
6394         (output_die): Likewise.
6395         (output_compilation_unit_header): Mark output as DWARF version 3
6396         even if generating DWARF 4.
6397         (output_comdat_type_unit): New function.
6398         (output_line_info): Mark output as DWARF version 3 even if generating
6399         DWARF 4.
6400         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
6401         DWARF-4.
6402         (dwarf2out_end_source_file): Likewise.
6403         (prune_unused_types_walk_attribs): Don't follow references into
6404         comdat type sections.
6405         (prune_unused_types_mark): When generating type units, do not mark
6406         children of non-defining declarations of types; do mark children of
6407         type entries.
6408         (prune_unused_types): Process comdat type sections.
6409         (htab_ct_hash): New function.
6410         (htab_ct_eq): New function.
6411         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
6412         Add a pointer to the line table from type unit entries so
6413         DW_AT_decl_file has meaning.
6414         * varasm.c (default_elf_asm_named_section): Use identifier name as
6415         comdat key instead of lang hook.
6416
6417 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
6418
6419         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
6420
6421 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
6422
6423         * config/i386/i386.md (SWIM248): New mode iterator.
6424         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
6425         divmodhi4 patterns using SWIM248 macro.
6426         (*divmod<mode>4): Macroize insn_and_split pattern from
6427         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
6428         and their corresponding splitters usign SWIM248 macro.  Split SImode
6429         insn to generate cltd and DImode insn to generate cqto instead of
6430         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
6431         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
6432         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
6433         *divmodsi_noext patterns using SWIM248 macro.
6434         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
6435         udivmodhi4 patterns using SWIM248 macro.
6436         (*udivmod<mode>4): Macroize insn_and_split pattern from
6437         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
6438         corresponding splitters using SWIM248 macro.
6439         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
6440         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
6441
6442 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
6443
6444         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
6445         of zero-sized element is zero-sized regardless of its extent.
6446
6447 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
6448
6449         PR debug/40521
6450         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
6451         * configure: Regenerated.
6452         * config.in: Regenerated.
6453         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
6454         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
6455         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
6456         not emitting .eh_frame, emit .cfi_sections .debug_frame
6457         directive.
6458
6459         PR debug/41404
6460         PR debug/41353
6461         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
6462         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
6463         with '\0'.
6464         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
6465         vars use DECL_RTL with resetting it back to NULL afterwards.
6466         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
6467         rtx_equal_p instead of asserting it is a SYMBOL_REF.
6468         (value_format): For dw_val_class_addr only use DW_FORM_addr if
6469         the attribute type allows it, otherwise use DW_FORM_dataN.
6470         (mem_loc_descriptor): Handle CONST_STRING.
6471         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
6472         Handle MEM with CONST_STRING address using add_AT_string.
6473         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
6474         CONST_STRING for const arrays initialized with a string literal.
6475         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
6476         (dwarf2out_finish): Call resolve_addr.
6477
6478 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
6479             Maxim Kuvyrkov  <maxim@codesourcery.com>
6480
6481         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
6482
6483 2009-10-02  Nick Clifton  <nickc@redhat.com>
6484
6485         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
6486         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
6487
6488 2009-10-01  Jan Hubicka  <jh@suse.cz>
6489
6490         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
6491         (cgraph_create_virtual_clone): Just pass redirect_callers
6492         around.
6493         * cgraph.h (cgraph_clone_node): Update prototype.
6494         * ipa-pure-const.c (self_recursive_p): New function.
6495         (propagate): Use it.
6496         * ipa-inline.c (cgraph_clone_inlined_nodes,
6497         cgraph_decide_recursive_inlining): Update.
6498
6499 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
6500
6501         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
6502         instructions for TARGET_OCTEON.
6503
6504 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6505
6506         * config/arm/arm.c (arm_override_options): Turn off
6507         flag_dwarf2_cfi_asm for AAPCS variants.
6508
6509 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6510
6511         PR middle-end/12392
6512         * tree-sra.c (convert_callers): Do not call
6513         compute_inline_parameters on one caller more than once.
6514
6515 2009-10-01  Nick Clifton  <nickc@redhat.com>
6516
6517         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
6518         an empty string if not already defined.
6519
6520 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6521
6522         PR bootstrap/41395
6523         * tree-sra.c (is_va_list_type): New function.
6524         (find_var_candidates): Call is_va_list_type.
6525         (find_param_candidates): Check that the type or the type pointed
6526         to are not va_list types.
6527
6528 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6529
6530         PR c++/41503
6531         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
6532         DECL_ARTIFICIAL (param_decl) is true.
6533
6534 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
6535
6536         * tree.h (tree_decl_common::lang_flag_8): New.
6537         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
6538         keyword.
6539         * c-common.h (RID_CONSTEXPR): New.
6540
6541 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6542
6543         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
6544         Use ref-all pointers.
6545         (alpha_gimplify_va_arg): Ditto.
6546
6547 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
6548
6549         PR target/41279
6550         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
6551         before insn counting loop now that BB_END (bb) is counted.  Ensure
6552         the return value isn't zero.
6553
6554 2009-09-30  Nick Clifton  <nickc@redhat.com>
6555
6556         * config.gcc (sh-symbianelf): Replace definition of extra_objs
6557         with separate definitions of c_target_objs and cxx_target_objs.
6558         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
6559         and symbian-base.o.
6560         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
6561         sh_symbian_import_export_class.
6562         * config/sh/sh-protos.h: Fix names of exported symbian functions.
6563         * config/sh/symbian.c: Delete, moving code into...
6564         * config/sh/symbian-base.c: ... here
6565         * config/sh/symbian-c.c: ... and here
6566         * config/sh/symbian-cxx.c: ... and here.
6567
6568 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6569
6570         PR target/22093
6571         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
6572         of plus RTX into register.
6573
6574 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6575
6576         * doc/install.texi: Linguistic and markup fixes.
6577         (Configuration) <--disable-cpp>: Remove description.
6578         <--enable-maintainer-mode>: Autotools files are affected, too.
6579         <--with-sysroot>: Improve description.
6580         (Building): Bump required GNU make version.
6581
6582 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6583
6584         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
6585         (x86_64-*-*): Ditto.
6586
6587         * config/i386/fma4intrin.h: New file, provide common x86 compiler
6588         intrinisics for FMA4.
6589         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
6590         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
6591         Add FMA4 check and fma4intrin.h.
6592         * config/i386/i386-c.c(ix86_target_macros_internal): Check
6593         ISA_FLAG for FMA4.
6594         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
6595         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
6596         constant for FMA4 support.
6597         (UNSPEC_FMA4_FMADDSUB): Ditto.
6598         (UNSPEC_FMA4_FMSUBADD): Ditto.
6599         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
6600         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
6601         (ix86_expand_fma4_multiple_memory): Ditto.
6602         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
6603         (OPTION_MASK_ISA_FMA4_UNSET): New.
6604         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
6605         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
6606         (ix86_handle_option): Handle -mfma4.
6607         (isa_opts): Handle -mfma4.
6608         (enum pta_flags): Add PTA_FMA4.
6609         (override_options): Add FMA4 support.
6610         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
6611         (IX86_BUILTIN_VFMADDSD): Ditto.
6612         (IX86_BUILTIN_VFMADDPS): Ditto.
6613         (IX86_BUILTIN_VFMADDPD): Ditto.
6614         (IX86_BUILTIN_VFMSUBSS): Ditto.
6615         (IX86_BUILTIN_VFMSUBSD): Ditto.
6616         (IX86_BUILTIN_VFMSUBPS): Ditto.
6617         (IX86_BUILTIN_VFMSUBPD): Ditto.
6618         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
6619         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
6620         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
6621         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
6622         (IX86_BUILTIN_VFNMADDSS): Ditto.
6623         (IX86_BUILTIN_VFNMADDSD): Ditto.
6624         (IX86_BUILTIN_VFNMADDPS): Ditto.
6625         (IX86_BUILTIN_VFNMADDPD): Ditto.
6626         (IX86_BUILTIN_VFNMSUBSS): Ditto.
6627         (IX86_BUILTIN_VFNMSUBSD): Ditto.
6628         (IX86_BUILTIN_VFNMSUBPS): Ditto.
6629         (IX86_BUILTIN_VFNMSUBPD): Ditto.
6630         (IX86_BUILTIN_VFMADDPS256): Ditto.
6631         (IX86_BUILTIN_VFMADDPD256): Ditto.
6632         (IX86_BUILTIN_VFMSUBPS256): Ditto.
6633         (IX86_BUILTIN_VFMSUBPD256): Ditto.
6634         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
6635         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
6636         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
6637         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
6638         (IX86_BUILTIN_VFNMADDPS256): Ditto.
6639         (IX86_BUILTIN_VFNMADDPD256): Ditto.
6640         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
6641         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
6642         (enum multi_arg_type): New enum for describing the various FMA4
6643         intrinsic argument types.
6644         (bdesc_multi_arg): New table for FMA4 intrinsics.
6645         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
6646         (ix86_expand_multi_arg_builtin): New function for creating FMA4
6647         intrinsics.
6648         (ix86_expand_builtin): Add FMA4 intrinsic support.
6649         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
6650         operand instructions.
6651         (ix86_expand_fma4_multiple_memory): New function to split the
6652         second memory reference from FMA4 instructions.
6653         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
6654         (ssemodesuffixf2s): Ditto.
6655         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
6656         instructions.
6657         (fma4_fmsub<mode>4): Ditto.
6658         (fma4_fnmadd<mode>4): Ditto.
6659         (fma4_fnmsub<mode>4): Ditto.
6660         (fma4_vmfmadd<mode>4): Ditto.
6661         (fma4_vmfmsub<mode>4): Ditto.
6662         (fma4_vmfnmadd<mode>4): Ditto.
6663         (fma4_vmfnmsub<mode>4): Ditto.
6664         (fma4_fmadd<mode>4256): Ditto.
6665         (fma4_fmsub<mode>4256): Ditto.
6666         (fma4_fnmadd<mode>4256): Ditto.
6667         (fma4_fnmsub<mode>4256): Ditto.
6668         (fma4_fmaddsubv8sf4): Ditto.
6669         (fma4_fmaddsubv4sf4): Ditto.
6670         (fma4_fmaddsubv4df4): Ditto.
6671         (fma4_fmaddsubv2df4): Ditto.
6672         (fma4_fmsubaddv8sf4): Ditto.
6673         (fma4_fmsubaddv4sf4): Ditto.
6674         (fma4_fmsubaddv4df4): Ditto.
6675         (fma4_fmsubaddv2df4): Ditto.
6676         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
6677         instructions for intrinsics.
6678         (fma4i_fmsub<mode>4): Ditto.
6679         (fma4i_fnmadd<mode>4): Ditto.
6680         (fma4i_fnmsub<mode>4): Ditto.
6681         (fma4i_vmfmadd<mode>4): Ditto.
6682         (fma4i_vmfmsub<mode>4): Ditto.
6683         (fma4i_vmfnmadd<mode>4): Ditto.
6684         (fma4i_vmfnmsub<mode>4): Ditto.
6685         (fma4i_fmadd<mode>4256): Ditto.
6686         (fma4i_fmsub<mode>4256): Ditto.
6687         (fma4i_fnmadd<mode>4256): Ditto.
6688         (fma4i_fnmsub<mode>4256): Ditto.
6689         (fma4i_fmaddsubv8sf4): Ditto.
6690         (fma4i_fmaddsubv4sf4): Ditto.
6691         (fma4i_fmaddsubv4df4): Ditto.
6692         (fma4i_fmaddsubv2df4): Ditto.
6693         (fma4i_fmsubaddv8sf4): Ditto.
6694         (fma4i_fmsubaddv4sf4): Ditto.
6695         (fma4i_fmsubaddv4df4): Ditto.
6696         (fma4i_fmsubaddv2df4): Ditto.
6697
6698         * doc/invoke.texi (-mfma4): Add documentation.
6699         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
6700
6701 2009-09-29  Richard Henderson  <rth@redhat.com>
6702
6703         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
6704         an edge to the new destination block.
6705
6706 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6707
6708         PR target/41393
6709         * pa.c (hppa_profile_hook): Use
6710         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
6711
6712 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
6713             Alexander Monakov  <amonakov@ispras.ru>
6714
6715         PR target/41365
6716         * config/ia64/predicates.md (not_postinc_destination_operand): New.
6717         (not_postinc_memory_operand): New.
6718         (not_postinc_move_operand): New.
6719         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
6720         (*cmovsi_internal): Ditto.
6721
6722 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
6723
6724         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
6725         restrict issue_rate in first pass when scheduling for register
6726         pressure.
6727
6728 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
6729             Rafael Avila de Espindola  <espindola@google.com>
6730
6731         * gengtype.c (plugin_output): New.
6732         (get_output_file_with_visibility): Return plugin_output for plugins.
6733         (main): Parse and use the -P option.
6734         * gty.texi: Update the command line format.
6735
6736 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
6737
6738         PR debug/41438
6739         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
6740         functions.
6741         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
6742         out if !const_ok_for_output.
6743
6744         PR debug/41474
6745         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
6746         case VAR_LOCATION>: Remove gcc_unreachable ().
6747
6748 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6749
6750         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
6751         (x86_64-*-*): Ditto.
6752         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
6753         back to smmintrin.h.
6754         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
6755         * config/i386/x86intrin.h: Remove SSE5.
6756         * config/i386/mmintrin-common.h: Delete file.
6757         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
6758
6759 2009-09-29  Richard Guenther  <rguenther@suse.de>
6760
6761         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
6762         resulting from stack temporaries on STRICT_ALIGNMENT targets.
6763
6764 2009-09-29  Nick Clifton  <nickc@redhat.com>
6765
6766         * function.c (current_function_name): If there is no current
6767         function just return "<none>".
6768
6769 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
6770
6771         * tree-pass.h (register_pass_info): New structure.
6772         (pass_positioning_ops): Move enum from gcc-plugin.h.
6773         (register_pass): New function.
6774         * gcc-plugin.h (plugin_pass): Delete structure.
6775         (pass_positioning_ops): Delete enum.
6776         * plugin.c (regsiter_pass): Delete function.
6777         (position_pass): Delete function.
6778         (added_pass_nodes): Delete variable.
6779         (prev_added_pass_nodes): Delete variable.
6780         (pass_list_node): Delete structure.
6781         * passes.c (make_pass_instance): New function.
6782         (next_pass_1): Change to call make_pass_instance.
6783         (pass_list_node): Move structure from gcc-plugin.h.
6784         (added_pass_nodes): Move variable from plugin.c.
6785         (prev_added_pass_nodes): Move variable from plugin.c.
6786         (position_pass): New function.
6787         (register_pass): New function.
6788
6789 2009-09-28  Easwaran Raman  <eraman@google.com>
6790
6791         * ifcvt.c (noce_try_abs): Recognize pattern and call
6792         expand_one_cmpl_abs_nojump.
6793         * optabs.c (expand_one_cmpl_abs_nojump): New function.
6794         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
6795
6796 2009-09-28  Ian Lance Taylor  <iant@google.com>
6797
6798         PR middle-end/40500
6799         * c-opts.c (c_common_handle_option): Don't set
6800         warn_jump_misses_init for -Wall.
6801         * doc/invoke.texi (Warning Options): Update documentation.
6802
6803 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6804
6805         * Makefile.in ($(out_object_file)): Depend on
6806         gt-$(basename $(notdir $(out_file))).h.
6807
6808 2009-09-28  Richard Henderson  <rth@redhat.com>
6809
6810         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
6811         * except.c (gen_eh_region): Set it.
6812         (duplicate_eh_regions_1): Copy it.
6813         * tree-eh.c (lower_resx): Use it to determine which function
6814         to call to resume.
6815
6816         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
6817         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
6818         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
6819         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
6820         BUILT_IN_CXA_END_CLEANUP if necessary.
6821
6822         * c-common.c (c_define_builtins): Update call to
6823         build_common_builtin_nodes.
6824
6825 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6826
6827         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
6828
6829 2009-09-28  Michael Matz  <matz@suse.de>
6830
6831         * builtins.c (interclass_mathfn_icode): New helper.
6832         (expand_builtin_interclass_mathfn): Use it here, and split folding
6833         into ...
6834         (fold_builtin_interclass_mathfn): ... this new folder.
6835         (build_call_nofold_loc): New static helper.
6836         (build_call_nofold): New wrapper macro for above.
6837         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
6838         (expand_builtin_pow): Ditto.
6839         (expand_builtin_memset_args): Ditto.
6840         (expand_builtin_printf): Ditto.
6841         (expand_builtin_fprintf): Ditto.
6842         (expand_builtin_sprintf): Ditto.
6843         (expand_builtin_memory_chk): Ditto.
6844         (expand_builtin_mempcpy_args): Ditto and don't call folders.
6845         (expand_builtin_stpcpy): Ditto.
6846         (expand_builtin_strcmp): Ditto.
6847         (expand_builtin_strncmp): Ditto.
6848         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
6849         (expand_builtin_strcpy_args): Don't call folders.
6850         (expand_builtin_memcmp): Ditto.
6851         (expand_builtin_strncpy): Ditto, and use target.
6852         (expand_builtin_memcpy): Ditto.
6853         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
6854         expand_builtin_strpbrk, expand_builtin_memmove,
6855         expand_builtin_memmove_args, expand_builtin_bcopy,
6856         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
6857         expand_builtin_strspn, expand_builtin_strcspn,
6858         expand_builtin_fputs): Remove these.
6859         (expand_builtin): Don't call the above, change calls to other
6860         expanders that changed prototype.
6861         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
6862         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
6863         fold_builtin_interclass_mathfn.
6864         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
6865         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
6866
6867         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
6868         * passes.c (init_optimization_passes): Move pass_fold_builtins
6869         after last phiopt pass.
6870         * tree-inline.c (fold_marked_statements): When folding builtins
6871         iterate over all instruction potentially generated.
6872         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
6873         earlier.
6874         (fold_gimple_call): Use it to always fold calls (into potentially
6875         multiple instructions).
6876         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
6877         calls into zero at this time.
6878         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
6879         statements generated by builtin folding.
6880
6881 2009-09-28  Nick Clifton  <nickc@redhat.com>
6882
6883         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
6884
6885 2009-09-28  Duncan Sands  <baldrick@free.fr>
6886
6887         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
6888         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
6889         (register_callback): Dispatch it.
6890         (invoke_plugin_callbacks): Incorporate in sanity check.
6891         * ggc.h (ggc_register_cache_tab): Add declaration.
6892         * ggc-common.c (ggc_register_root_tab): Simplify.
6893         (const_ggc_cache_tab_t): New typedef.
6894         (extra_cache_vec): New vector of dynamically added cache tables.
6895         (ggc_register_cache_tab): New function.
6896         (ggc_scan_cache_tab): New function.
6897         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
6898         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
6899
6900 2009-09-27  Richard Henderson  <rth@redhat.com>
6901
6902         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
6903         which we remove __builtin_stack_restore.
6904
6905 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
6906
6907         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
6908         to test for GRD_INVARIANT.
6909         (simple_rhs_p): Anything that's function_invariant_p is fine.
6910
6911 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
6912
6913         * gengtype.c (main): Use plunge_files instead of plugin_output.
6914
6915 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
6916             Rafael Avila de Espindola  <espindola@google.com>
6917
6918         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
6919         Don't print pch related info if it is false.
6920         (main): Don't print pch info in plugin mode.
6921
6922 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6923
6924         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
6925         with dw_val_class_const_double.
6926         (struct dw_val_struct): Replace val_long_long with val_double and
6927         adjust for above change.
6928         (output_loc_operands): Likewise.
6929         (add_AT_long_long): Rename into...
6930         (add_AT_double): ...this.
6931         (print_die): Replace dw_val_class_long_long with
6932         dw_val_class_const_double and adjust.
6933         (attr_checksum): Likewise.
6934         (same_dw_val_p): Likewise.
6935         (size_of_die): Likewise.
6936         (value_format): Likewise.
6937         (output_die): Likewise.
6938         (loc_descriptor) <CONST_DOUBLE>: Likewise.
6939         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
6940         instead of add_AT_long_long.
6941         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
6942         value with the precision of its type.
6943
6944 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
6945
6946         PR c/41476
6947         * c-typeck.c (build_conditional_expr): Use the readonly and
6948         volatile flags of the operand types, not of the operands itself.
6949
6950 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
6951
6952         * collect2.c (main): Look for -brtl before adding libraries.
6953
6954 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
6955
6956         * config.gcc: Update OpenBSD targets.
6957         * config/openbsd-stdint.h: New file.
6958         * config/openbsd-libpthread.h: New file.
6959         * config/openbsd.h: Update and break out LIB_SPEC definition.
6960         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
6961         * config/i386/openbsdelf.h: Correct types.
6962         * config/m68k/openbsd.h: Likewise.
6963         * config/mips/openbsd.h: Likewise.
6964         * config/vax/openbsd.h: Likewise.
6965
6966 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6967
6968         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
6969         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
6970         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
6971         of the length and zero.
6972
6973 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6974
6975         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
6976         (FLAGS_H): Add options.h $(REAL_H).
6977         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
6978         (TREE_VECTORIZER_H): New.
6979         (EBITMAP_H): Renamed from EBIMAP_H.
6980         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
6981         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
6982         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
6983         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
6984         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
6985         (graphite-clast-to-gimple.o, graphite-dependences.o)
6986         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
6987         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
6988         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
6989         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
6990         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
6991         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
6992         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
6993         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
6994         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
6995         updated and fixed as per above changes and per
6996         check_makefile_deps.sh output.
6997
6998         PR bootstrap/40928
6999         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
7000         * configure: Regenerate.
7001
7002 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7003
7004         * doc/install.texi: Update minimum MPC version to 0.7.
7005
7006 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
7007
7008         * doc/install.texi (Binaries): Remove reference to the binary
7009         distribution CD-ROM from the FSF.
7010
7011 2009-09-26  Michael Matz  <matz@suse.de>
7012
7013         PR lto/40758
7014         PR middle-end/41470
7015         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
7016         that are mentioned in the body.
7017
7018 2009-09-26  Michael Matz  <matz@suse.de>
7019
7020         PR tree-optimization/41454
7021         * tree-ssa-dom (stmts_to_rescan): Remove variable.
7022         (tree_ssa_dominator_optimize): Don't allocate and free it.
7023         (dom_opt_leave_block): Don't iterate over it.
7024         (eliminate_redundant_computations): Don't return a value.
7025         (cprop_operand, cprop_into_stmt): Ditto.
7026         (optimize_stmt): Don't defer updating stmts.
7027
7028 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
7029
7030         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
7031         generic_parameter_die, template_parameter_pack_die,
7032         gen_formal_parameter_die, gen_subprogram_die): Adjust after
7033         renaming DW_TAG_formal_parameter_pack and
7034         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
7035         and DW_TAG_GNU_template_parameter_pack.
7036
7037 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
7038
7039         * config/v850/v850.h (FUNCTION_VALUE): Remove.
7040         * config/v850/v850.c (v850_function_value): New function.
7041         (TARGET_FUNCTION_VALUE): Define.
7042
7043 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
7044
7045         * tree-vect-stmts.c (vectorizable_call): Call
7046         mark_symbols_for_renaming after vect_finish_stmt_generation.
7047
7048         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
7049         to loc_descriptor_from_tree.
7050         (add_location_or_const_value_attribute): Pass 0 instead of 2
7051         for decl_by_reference_p decls.
7052
7053 2009-09-25  Richard Guenther  <rguenther@suse.de>
7054
7055         PR middle-end/41463
7056         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
7057         arrays again.
7058
7059 2009-09-25  Ben Elliston  <bje@au.ibm.com>
7060
7061         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
7062         after `power7'.
7063
7064 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
7065
7066         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
7067         form of instruction.
7068
7069 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7070
7071         PR middle-end/41435
7072         * fold-const.c (const_binop): Handle complex int division.
7073         * tree-complex.c (expand_complex_div_straight,
7074         expand_complex_div_wide): Update comments.
7075
7076 2009-09-24  DJ Delorie  <dj@redhat.com>
7077
7078         PR target/41456
7079         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
7080         (reg_class): Likewise.
7081         (REG_CLASS_NAMES): Likewise.
7082         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
7083         (m32c_override_options): Disable -fivopts for M32C.
7084
7085 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7086
7087         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7088         Delete VSX load/store with update support.
7089         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
7090         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
7091         (vsx_movti): Ditto.
7092         (VSX_U): Delete.
7093         (VSbit): Ditto.
7094         (VStype_load_update): Ditto.
7095         (VStype_store_update): Ditto.
7096         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7097         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7098
7099         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
7100         load/store with update builtins.
7101
7102 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
7103
7104         * libgcc2.c (L_trampoline): Prototype for getpagesize
7105         and mprotect in WINNT case.
7106
7107 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
7108
7109         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
7110         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
7111         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
7112         'outgoing' argument.
7113         (TARGET_FUNCTION_VALUE): Define.
7114
7115 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7116
7117         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
7118
7119 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7120
7121         PR bootstrap/41405
7122         * common.opt: Initialize dwarf_strict to -1.
7123         * toplev.c (process_options): Catch unset dwarf_strict
7124         and set to 0 for all targets not overriding.
7125         * config/darwin.c (darwin_override_options): Catch unset
7126         dwarf_strict and override to 1.
7127
7128 2009-09-24  Jeff Law  <law@redhat.com>
7129
7130         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
7131
7132 2009-09-24  Richard Guenther  <rguenther@suse.de>
7133
7134         PR tree-optimization/36143
7135         PR tree-optimization/38747
7136         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
7137         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
7138
7139 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7140
7141         PR bootstrap/41457
7142         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
7143         return false instead of gcc_unreachable ().  For CONST return the
7144         value returned by recursive call instead of always returning true.
7145         (tree_add_const_value_attribute): Return the value returned by
7146         add_const_value_attribute instead of always returning true if rtl
7147         is non-NULL.
7148
7149 2009-09-23  Justin Seyster  <jrseys@gmail.com>
7150
7151         * Makefile.in (PLUGIN_HEADERS): Include real.h.
7152
7153 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7154
7155         * cgraphunit.c (cgraph_lower_function): Revert last change.
7156         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
7157         instead of DECL_NO_STATIC_CHAIN.
7158         * tree-cfg.c (verify_gimple_call): Likewise.
7159         * tree-nested.c (get_chain_decl, get_chain_field,
7160         convert_tramp_reference_op, convert_gimple_call): Likewise.
7161         (convert_all_function_calls): Likewise.  Always set or clear
7162         DECL_STATIC_CHAIN initially, for !n->outer clear it.
7163         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
7164         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
7165         if nested.
7166         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
7167         DECL_NO_STATIC_CHAIN.
7168         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
7169         instead of DECL_NO_STATIC_CHAIN.
7170         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
7171         decl_function_context.
7172         * varasm.c (initializer_constant_valid_p): Likewise.
7173         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
7174         (DECL_STATIC_CHAIN): ... this.
7175         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
7176         instead of DECL_NO_STATIC_CHAIN.
7177
7178 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
7179             Rafael Avila de Espindola  <espindola@google.com>
7180
7181         * gengtype.c (nb_plugin_files): Make it unsigned to match
7182         num_gt_files. Adjust other variables to avoid warnings.
7183         (main): Allocate an all zero lang_bitmap before each plugin file name
7184         to match regular file names.
7185
7186 2009-09-23  Richard Henderson  <rth@redhat.com>
7187
7188         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7189         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
7190         static chain passed in memory.
7191         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
7192         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
7193         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
7194         STATIC_CHAIN_REGNUM defined.
7195
7196         * config/picochip/picochip-protos.h: s/class/klass/.
7197         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
7198         (picochip_static_chain): New.
7199         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
7200         (STATIC_CHAIN_INCOMING): Remove.
7201
7202         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
7203         (xtensa_static_chain): New.
7204         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
7205         (STATIC_CHAIN_INCOMING): Remove.
7206
7207 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7208
7209         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
7210         * config/pa/pa-protos.h (function_value): Remove.
7211         * config/pa/pa.c (pa_function_value): Rename from function_value.
7212         Make static, add 'outgoing' argument.
7213         (TARGET_FUNCTION_VALUE): Define.
7214
7215 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7216
7217         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
7218         instead of cfun->machine->is_leaf.
7219         * config/avr/avr.h (machine_function): Remove is_leaf field.
7220
7221 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7222
7223         PR debug/41439
7224         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
7225         DW_OP_piece after DW_OP_stack_value, adjust size calculations
7226         for it, when DW_OP_stack_value and DW_OP_implicit_value has
7227         the same size, prefer DW_OP_stack_value.
7228         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
7229         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
7230
7231 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7232
7233         PR debug/41353
7234         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
7235
7236 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7237
7238         PR debug/41248
7239         * cfgexpand.c (convert_debug_memory_address): New.
7240         (expand_debug_expr): Convert base address and offset to the same
7241         mode.  Use it to convert addresses to other modes.  Accept
7242         ptr_mode addresses.
7243
7244 2009-09-23  Dodji Seketeli <dodji@redhat.com>
7245
7246         PR debug/41065
7247         * function.h (types_used_by_vars_hash): Declare new hash table.
7248         (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
7249         equality and hash function for the hash table.
7250         (types_used_by_cur_var_decl): Declare a new global chained list.
7251         (types_used_by_var_decl_insert): Declare new function.
7252         * function.c (types_used_by_vars_hash): Define the hashtable ...
7253         (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
7254         its equality and hash functions.
7255         (hash_types_used_by_vars_entry): New hash helper.
7256         (types_used_by_cur_var_decl): Define the global chained list.
7257         (used_types_insert): Update the list of types used by the global
7258         variable being parsed.
7259         (types_used_by_var_decl_insert): Define new function.
7260         * c-common.h (record_types_used_by_current_var_decl): Declare ...
7261         * c-common.c (record_types_used_by_current_var_decl): ... new
7262         function.
7263         * c-decl.c (finish_decl): Record the types used by the global
7264         variable declaration we've just parsed.
7265         * dwarf2out.c (premark_used_types): Insert a new line between
7266         comment and function.
7267         (premark_used_types_helper): Fix comment.
7268         (premark_types_used_by_global_vars_helper,
7269         premark_types_used_by_global_vars): New functions.
7270         (prune_unused_types): Do not prune types used by global variables.
7271
7272 2009-09-23  Richard Guenther  <rguenther@suse.de>
7273
7274         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
7275         produced for bigendian targets with promoted subregs.
7276
7277 2009-09-23  Richard Guenther  <rguenther@suse.de>
7278
7279         * value-prof.c (gimple_ic): Purge old EH edges only after building
7280         the new ones.
7281
7282 2009-09-23  Nick Clifton  <nickc@redhat.com>
7283
7284         * config/arc/arc.c (arc_trampoline_init): Fix typo.
7285
7286 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7287
7288         PR bootstrap/41405
7289         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
7290
7291         PR bootstrap/41436
7292         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
7293         on non-nested functions.
7294
7295 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7296             Jan Hubicka  <jh@suse.cz>
7297
7298         * dwarf2out.c (loc_list_plus_const): Only define if
7299         DWARF2_DEBUGGING_INFO.
7300         (address_of_int_loc_descriptor): Likewise.
7301
7302         PR debug/41411
7303         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
7304
7305 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
7306
7307         PR c/39779
7308         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
7309         constant is more than zero.
7310
7311 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
7312
7313         PR target/40473
7314         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7315         call final to emit non-scheduled prologue, instead insert at entry.
7316
7317 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7318             Joseph S. Myers  <joseph@codesourcery.com>
7319
7320         * doc/install.texi (*-*-freebsd*): Add proper format codes.
7321
7322 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7323             Rafael Avila de Espindola  <espindola@google.com>
7324
7325         * gengtype.c (is_file_equal): New function.
7326         (close_output_files): Use is_file_equal. Free of->buf.
7327
7328 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7329             Rafael Avila de Espindola  <espindola@google.com>
7330
7331         * gengtype.c (write_types, write_local): Add the output_header
7332         argument. Update all callers.
7333
7334 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
7335
7336         * dwarf2out.c (template_parameter_pack_die,
7337         gen_formal_parameter_pack_die ): New functions.
7338         (make_ith_pack_parameter_name): Remove this function.
7339         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
7340         DW_TAG_formal_parameter_pack.
7341         (gen_generic_params_dies): Represent each template parameter pack
7342         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
7343         represented by usual DW_TAG_template_*_parameter DIEs that are
7344         children of the DW_TAG_template_parameter_pack element DIE.
7345         (generic_parameter_die): This doesn't deal with parameter pack
7346         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
7347         of parameter pack DIEs.
7348         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
7349         in certain cases, e.g. for pack elements.
7350         (gen_formal_types_die, gen_decl_die): Adjust usage of
7351         gen_formal_parameter_die.
7352         (gen_subprogram_die): Represent each function parameter pack by a
7353         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
7354         represented by usual DW_TAG_formal_parameter DIEs that are children
7355         of the DW_TAG_formal_parameter_pack DIE. Remove references to
7356         ____builtin_va_alist decls as no part of the compiler uses those
7357         anymore.
7358         * langhooks.h (struct lang_hooks_for_decls): Add
7359         function_parm_expanded_from_pack_p, get_generic_function_decl
7360         and function_parameter_pack_p hooks.  Fix comment for
7361         get_innermost_generic_parms hook.
7362         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
7363         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
7364         macros and use them to initialize lang_hook.
7365
7366 2009-09-22  Richard Henderson  <rth@redhat.com>
7367
7368         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
7369         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
7370         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
7371         on TRAMPOLINE_TEMPLATE.
7372         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
7373         TRAMPOLINE_ADJUST_ADDRESS.
7374         * targhooks.c (default_asm_trampoline_template): Remove.
7375         (default_trampoline_adjust_address): Remove.
7376         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
7377         * targhooks.h: Update decls.
7378
7379 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7380
7381         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
7382         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
7383         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7384
7385 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
7386
7387         PR debug/41295
7388         * reload1.c (reload): Reset debug insns with pseudos without
7389         equivalences.
7390
7391 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
7392
7393         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
7394         unconditional true for decimal float modes.
7395         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
7396         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
7397
7398 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7399
7400         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
7401         Enable a new case for __FreeBSD__ >= 7.
7402         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
7403         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
7404         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
7405         and USE_LD_AS_NEEDED.
7406
7407         * doc/install.texi (*-*-freebsd*): Update target information.
7408
7409 2009-09-22  Richard Guenther  <rguenther@suse.de>
7410
7411         PR middle-end/41395
7412         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
7413         arrays really properly.
7414
7415 2009-09-22  Richard Henderson  <rth@redhat.com>
7416
7417         PR target/41246
7418         * target.h (struct gcc_target): Add asm_out.trampoline_template,
7419         calls.static_chain, calls.trampoline_init,
7420         calls.trampoline_adjust_address.
7421         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7422         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7423         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7424         * builtins.c (expand_builtin_setjmp_receiver): Use
7425         targetm.calls.static_chain; only clobber registers.
7426         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
7427         set up memory attributes properly for the trampoline block.
7428         (expand_builtin_adjust_trampoline): Use
7429         targetm.calls.trampoline_adjust_address.
7430         * calls.c (prepare_call_address): Add fndecl argument.  Use
7431         targetm.calls.static_chain.
7432         * df-scan.c (df_need_static_chain_reg): Remove.
7433         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
7434         consolodate static chain handling.
7435         * doc/tm.texi: Document new hooks.
7436         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
7437         (init_emit_regs): Don't initialize them.
7438         * expr.h (prepare_call_address): Update decl.
7439         * final.c (profile_function): Use targetm.calls.static_chain.
7440         * function.c (expand_function_start): Likewise.
7441         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
7442         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
7443         only clobber registers.
7444         * targhooks.c (default_static_chain): New.
7445         (default_asm_trampoline_template, default_trampoline_init): New.
7446         (default_trampoline_adjust_address): New.
7447         * targhooks.h: Declare them.
7448         * varasm.c (assemble_trampoline_template): Use
7449         targetm.asm_out.trampoline_template.  Make the memory block const
7450         and set its size.
7451
7452         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
7453         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
7454         differences into the TARGET_ABI_OPEN_VMS code block.
7455         (TARGET_TRAMPOLINE_INIT): New.
7456         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
7457         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
7458         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
7459         (INITIALIZE_TRAMPOLINE): Remove.
7460
7461         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
7462         (TRAMPOLINE_TEMPLATE): Merge with ...
7463         (INITIALIZE_TRAMPOLINE): ... this and move ...
7464         * config/arc/arc.c (arc_trampoline_init): ... here.
7465         (TARGET_TRAMPOLINE_INIT): New.
7466
7467         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7468         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7469         (arm_asm_trampoline_template): New.
7470         (arm_trampoline_init, arm_trampoline_adjust_address): New.
7471         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
7472         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
7473         code to arm_asm_trampoline_template.
7474         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
7475         arm_trampoline_adjust_address.
7476         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
7477         adjust for target hook parameters.
7478
7479         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
7480         Remove.
7481
7482         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
7483         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
7484         (bfin_trampoline_init): Rename from initialize_trampoline;
7485         make static; update for target hook parameters.
7486         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7487         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
7488         bfin_asm_trampoline_template.
7489         (INITIALIZE_TRAMPOLINE): Remove.
7490
7491         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7492         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
7493         cris_trampoline_init): New.
7494         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
7495         cris_asm_trampoline_template.
7496         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
7497         adjust for target hook parameters.
7498
7499         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
7500
7501         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7502         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
7503         fr30_trampoline_init): New.
7504         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
7505         fr30_asm_trampoline_template.
7506         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
7507         adjust for target hook parameters.
7508
7509         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
7510         (frv_trampoline_init): Rename from frv_initialize_trampoline;
7511         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
7512         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
7513         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
7514
7515         * config/h8300/h8300.c (h8300_trampoline_init): New.
7516         (TARGET_TRAMPOLINE_INIT): New.
7517         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
7518         to h8300_trampoline_init and adjust for hook parameters.
7519
7520         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
7521         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
7522         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
7523         make static; adjust for hook parameters.
7524         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
7525
7526         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7527         (TARGET_TRAMPOLINE_INIT): New.
7528         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
7529         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
7530         iq2000_asm_trampoline_template.
7531         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
7532         (TRAMPOLINE_CODE_SIZE): New.
7533         (TRAMPOLINE_SIZE): Use it.
7534         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
7535
7536         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
7537         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
7538         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
7539         adjust for hook parameters.
7540         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
7541
7542         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
7543         (m32r_trampoline_init): New.
7544         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
7545         m32r_trampoline_init.
7546
7547         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
7548         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
7549         make static; update for hook parameters.
7550         * config/m68hc11/m68hc11-protos.h: Update.
7551         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
7552
7553         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7554         (TARGET_TRAMPOLINE_INIT): New.
7555         (mcore_function_value): Fix typo.
7556         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
7557         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
7558         to mcore_asm_trampoline_template.
7559         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
7560
7561         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
7562         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
7563         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
7564         update for hook parameters.
7565         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
7566
7567         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7568         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7569         mips_trampoline_init): New.
7570         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
7571         mips_asm_trampoline_template.
7572         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
7573         update for hook parameters.
7574
7575         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7576         (TARGET_TRAMPOLINE_INIT): New.
7577         (mmix_trampoline_size): Remove.
7578         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
7579         make static.  Remove out-of-date tetra vs octa comment.
7580         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
7581         make static; update for hook parameters.
7582         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
7583         (INITIALIZE_TRAMPOLINE): Remove.
7584         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
7585         (TRAMPOLINE_ALIGNMENT): New.
7586         * gcc/config/mmix/mmix-protos.h: Update.
7587
7588         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7589         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7590         mn10300_trampoline_init): New.
7591         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
7592         mn10300_asm_trampoline_template.
7593         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
7594
7595         * config/moxie/moxie.c (moxie_static_chain,
7596         moxie_asm_trampoline_template, moxie_trampoline_init,
7597         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
7598         TARGET_TRAMPOLINE_INIT): New.
7599         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
7600         moxie_trampoline_init.
7601         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
7602         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7603
7604         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7605         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7606         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
7607         pa_trampoline_adjust_address): New.
7608         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
7609         pa_asm_trampoline_template.
7610         (TRAMPOLINE_ALIGNMENT): New.
7611         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
7612         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
7613         adjust for hook parameters.
7614         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
7615
7616         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
7617         (TARGET_TRAMPOLINE_INIT): New.
7618         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
7619         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
7620
7621         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
7622
7623         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
7624         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
7625         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
7626         make static; adjust parameters for the hook.
7627         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
7628
7629         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
7630         s390_trampoline_template; make static.
7631         (s390_trampoline_init): Rename from s390_initialize_trampoline;
7632         make static; adjust for target hook.
7633         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7634         * config/s390/s390-protos.h: Remove trampoline decls.
7635         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
7636         (TRAMPOLINE_TEMPLATE): Remove.
7637         (TRAMPOLINE_ALIGNMENT): New.
7638
7639         * config/score/score-protos.h (score_initialize_trampoline): Remove.
7640         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7641         (TARGET_TRAMPOLINE_INIT): New.
7642         (score_asm_trampoline_template): New.
7643         (score_trampoline_init): Rename from score_initialize_trampoline;
7644         make static; adjust for hook parameters.
7645         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
7646         score[37]_asm_trampoline_template.
7647         (INITIALIZE_TRAMPOLINE): Remove.
7648         * config/score/score3.c (score3_asm_trampoline_template): New.
7649         (score3_trampoline_init): Rename from score3_initialize_trampoline;
7650         adjust for target hook.
7651         * config/score/score7.c (score7_asm_trampoline_template): New.
7652         (score7_trampoline_init): Rename from score7_initialize_trampoline;
7653         adjust for target hook.
7654         * config/score/score3.h, config/score/score7.h: Update.
7655
7656         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
7657         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
7658         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7659         (sh_trampoline_init): Rename from sh_initialize_trampoline;
7660         make static; adjust for target hook parameters.
7661         (sh_trampoline_adjust_address): New.
7662         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
7663         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
7664
7665         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
7666         (sparc32_initialize_trampoline): Rename from
7667         sparc_initialize_trampoline; make static; replace tramp parameter
7668         with m_tramp and update memory accesses.
7669         (sparc64_initialize_trampoline): Similarly.
7670         (sparc_trampoline_init): New.
7671         * config/sparc/sparc-protos.h: Remove trampoline decls.
7672         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
7673         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
7674
7675         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
7676         (array_to_constant): Make ARR parameter const.
7677         (spu_trampoline_init): Rename from spu_initialize_trampoline;
7678         make static; update for hook parameters.
7679         * config/spu/spu-protos.h: Update decls.
7680         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
7681
7682         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
7683         from xstormy16_initialize_trampoline; make static; update for
7684         hook parameters.
7685         (TARGET_TRAMPOLINE_INIT): New.
7686         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
7687
7688         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7689         (TARGET_TRAMPOLINE_INIT): New.
7690         (v850_can_eliminate): Make static.
7691         (v850_asm_trampoline_template, v850_trampoline_init): New.
7692         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
7693         v850_asm_trampoline_template.
7694         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
7695         and adjust for target hook parameters.
7696
7697         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7698         (TARGET_TRAMPOLINE_INIT): New.
7699         (vax_asm_trampoline_template, vax_trampoline_init): New.
7700         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
7701         vax_asm_trampoline_template.
7702         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
7703
7704         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7705         (TARGET_TRAMPOLINE_INIT): New.
7706         (xtensa_asm_trampoline_template): Rename from
7707         xtensa_trampoline_template; make static.
7708         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
7709         make static; update for hook parameters.
7710         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
7711         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
7712         (INITIALIZE_TRAMPOLINE): Remove.
7713
7714         * config/i386/i386.c (ix86_function_regparm): Do not issue an
7715         error for nested functions with regparm=3.
7716         (ix86_compute_frame_layout): Adjust frame pointer offset for
7717         ix86_static_chain_on_stack.
7718         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
7719         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
7720         don't reset to UNITS_PER_WORD.
7721         (ix86_emit_leave): Adjust ix86_cfa_state.
7722         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
7723         (ix86_static_chain): New.
7724         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
7725         make static; update for target hook parameters; use ix86_static_chain.
7726         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7727         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
7728         (INITIALIZE_TRAMPOLINE): Remove.
7729         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
7730         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
7731         to the end.  Add static_chain_on_stack.
7732         (ix86_static_chain_on_stack): New.
7733
7734         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
7735         (m68k_output_mi_thunk): Don't use static_chain_rtx.
7736         (m68k_trampoline_init): New.
7737         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
7738         m68k_trampoline_init and adjust for hook parameters.
7739         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
7740         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
7741
7742 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7743
7744         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
7745         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
7746
7747         * reload1.c (reload): Call wrap_constant when substituting
7748         reg for equiv inside of DEBUG_INSNs.
7749
7750         PR bootstrap/41405
7751         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
7752         add_call_src_coords_attributes, add_high_low_attributes,
7753         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
7754         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
7755         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
7756         when -gdwarf-2 -gstrict-dwarf.
7757         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
7758         -gdwarf-[23] -gstrict-dwarf.
7759         (address_of_int_loc_descriptor, loc_descriptor,
7760         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
7761         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
7762         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
7763
7764 2009-09-22  Richard Guenther  <rguenther@suse.de>
7765
7766         PR tree-optimization/41428
7767         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
7768         (ccp_finalize): Pass it to substitute_and_fold.
7769
7770 2009-09-22  Richard Guenther  <rguenther@suse.de>
7771
7772         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
7773         (substitute_and_fold): Adjust prototype.
7774         * tree-vrp.c (vrp_evaluate_conditional): Make static.
7775         (simplify_stmt_using_ranges): Likewise.
7776         (fold_predicate_in): Move here from tree-ssa-propagate.c.
7777         (vrp_fold_stmt): New function.
7778         (vrp_finalize): Pass it to substitute_and_fold.
7779         * tree-flow.h (vrp_evaluate_conditional): Remove.
7780         (simplify_stmt_using_ranges): Likewise.
7781         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
7782         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7783         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
7784         member.
7785         (fold_predicate_in): Move to tree-vrp.c.
7786         (substitute_and_fold): Use the callback instead of calling into
7787         tree-vrp.c functions directly.
7788
7789 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7790
7791         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
7792         comparison warning on rs6000.
7793
7794         PR middle-end/41429
7795         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
7796         GIMPLE_EH_MUST_NOT_THROW cleanup.
7797         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7798
7799 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
7800
7801         PR middle-end/41260
7802         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
7803         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
7804         LIB_SPEC for darwin10 and later since it always uses the unwinder in
7805         libSystem which is derived from the gcc 4.2.1 unwinder.
7806
7807 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7808
7809         PR middle-end/41357
7810         * varasm.c (default_encode_section_info): Copy TLS model into
7811         sym_ref flags regardless of backend support for TLS, for all
7812         model types except TLS_MODEL_EMULATED.
7813
7814 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7815
7816         PR bootstrap/41404
7817         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
7818         we can handle it correctly.
7819
7820 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7821
7822         * doc/install.texi (os2): Remove section.
7823
7824 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7825
7826         * doc/standards.texi (Objective-C): Adjust two URLs.
7827
7828 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
7829
7830         * tree-tailcall.c (process_assignment): Don't check if a
7831         multiplication or an addition are already present.
7832         (find_tail_calls): Combine multiple additions and multiplications.
7833         (adjust_accumulator_values): Emit accumulators.
7834
7835 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
7836
7837         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
7838         xmm register restore.
7839
7840 2009-09-21  Jan Hubicka  <jh@suse.cz>
7841
7842         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
7843         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
7844         restore at the end.
7845
7846 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
7847
7848         * stor-layout.c (layout_type): Remove obsolete code.
7849
7850 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
7851
7852         PR middle-end/41395
7853         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
7854
7855 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7856
7857         PR middle-end/30789
7858         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
7859         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
7860         (fold_builtin_2, do_mpc_arg1): Update accordingly.
7861         * fold-const.c (const_binop): Likewise.
7862         * real.h (do_mpc_arg2): Update prototype.
7863
7864 2009-09-20  Jan Hubicka  <jh@suse.cz>
7865
7866         * dwarf2out.c (add_const_value_attribute): Return true if successful.
7867         (add_location_or_const_value_attribute): Rewrite using
7868         loc_list_from_tree.
7869         (tree_add_const_value_attribute): Return true if successful.
7870         (tree_add_const_value_attribute_for_decl): Likewise.
7871
7872         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
7873         (loc_descriptor): ... here;
7874         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7875         (cst_pool_loc_descr): Break out from ...; do not reffer constant
7876         pool items that was not marked for output.
7877         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
7878         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7879         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7880         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
7881         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
7882         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
7883         DW_OP_stack_value to get address of items that are not available
7884         as addresses.
7885         (dw_loc_list): Handle single element lists correctly.
7886
7887 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
7888             Pascal Obry  <obry@adacore.com>
7889
7890         * unwind-dw2-fde.c (classify_object_over_fdes):
7891         Cast the constant 1 to _Unwind_Ptr.
7892         (add_fdes): Likewise.
7893         (linear_search_fdes): Likewise.
7894
7895 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7896
7897         * stor-layout.c (set_sizetype): Avoid useless type copy.
7898
7899 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
7900
7901         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
7902         feature check.
7903         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
7904         * configure, config.in: Regenerate.
7905         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
7906         DW_EH_PE_absptr.
7907         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
7908         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
7909         for global data if the output could be used in a shared library.
7910         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
7911         to 0 if TARGET_WRITABLE_EH_FRAME.
7912
7913 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
7914
7915         PR rtl-optimization/39886
7916         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
7917         just when insn is equal to BB_END (bb).
7918
7919 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
7920
7921         * config/mips/mips.opt (mrelax-pic-calls): New option.
7922         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
7923         the file.
7924         (mips_unspec_call): Change "unspec_call" expander into this.
7925         (mips_strip_unspec_call): New function.
7926         (mips_got_load): Call mips_unspec_call instead of
7927         gen_unspec_call<mode>.
7928         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
7929         MIPS_CALL.
7930         (mips_cfg_in_reorg): New function.
7931         (mips16_lay_out_constants): Use it to decide whether to call
7932         CFG-aware insn splitting.
7933         (r10k_insert_cache_barriers): Move CFG set-up code from here to
7934         mips_reorg.  Move DF set-up code from here ...
7935         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
7936         from here.
7937         (mips_reorg): Call mips_df_reorg instead of
7938         r10k_insert_cache_barriers.  Move CFG set-up code here from
7939         r10k_insert_cache_barriers.
7940         (mips_call_expr_from_insn): New function.
7941         (mips_pic_call_symbol_from_set): Likewise.
7942         (mips_find_pic_call_symbol): Likewise.
7943         (mips_annotate_pic_call_expr): Likewise.
7944         (mips_get_pic_call_symbol): Likewise.
7945         (mips_annotate_pic_calls): Likewise.
7946         (mips_override_options): Disable -mrelax-pic-calls unless PIC
7947         calls are used.
7948         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
7949         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
7950         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
7951         directive.
7952         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
7953         (unspec_call<mode>): Remove it.
7954         (sibcall_internal, sibcall_value_internal,
7955         sibcall_value_multiple_internal, call_internal, call_split,
7956         call_value_internal, call_value_split,
7957         call_value_multiple_internal, call_value_multiple_split): Pass
7958         SIZE_OPNO to MIPS_CALL.
7959         (call_internal_direct, call_direct_split,
7960         call_value_internal_direct, call_value_direct_split): Pass -1 as
7961         SIZE_OPNO to MIPS_CALL.
7962         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
7963         * configure: Regenerate.
7964         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
7965         and -mno-relax-pic-calls.
7966         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
7967
7968 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7969
7970         PR bootstrap/35619
7971         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
7972         in the directory this rule is called from, rather than the
7973         toplevel 'gcc' directory, to fix in-tree build.
7974
7975 2009-09-19  Chris Demetriou  <cgd@google.com>
7976
7977         PR preprocessor/28435:
7978         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
7979         to cpplib that the preprocessor output is needed.
7980
7981 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
7982
7983         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
7984         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
7985         *return_and_restore_fpregs_<mode>,
7986         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
7987
7988         PR bootstrap/41397
7989         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
7990         instead of assuming it has always a REG inside of it.
7991
7992 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
7993
7994         * config/freebsd.h: Update comment on types.
7995         (WINT_TYPE): Define.
7996
7997 2009-09-18  Jason Merrill  <jason@redhat.com>
7998
7999         * c.opt: Add -fno-deduce-init-list.
8000
8001 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
8002
8003         * value-prof.c (interesting_stringop_to_profile_p): Added output
8004         argument to indicate which parameter is the size parameter.
8005         * value-prof.c (gimple_stringop_fixed_value): Use
8006         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
8007         * value-prof.c (gimple_stringops_transform): Update call sites to
8008         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
8009
8010 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
8011
8012         PR target/38288
8013         From David Binderman <dcb314@hotmail.com>:
8014         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
8015         local variable f.  Remove stale comments.
8016         (ix86_compute_frame_layout): Remove useless local variable total_size.
8017         Remove #if 0'd code.
8018         (legitimate_address_p): Remove useless local variables
8019         reason_rtx and reason.
8020         (ix86_split_copysign_const): Remove useless local variable op1.
8021         (scale_counter): Remove useless local variable piece_size_mask.
8022
8023 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
8024
8025         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
8026         output decl.
8027
8028 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8029
8030         PR target/40913
8031         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
8032
8033 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
8034
8035         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
8036         TYPE_STUB_DECL.
8037
8038 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
8039
8040         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
8041         DW_OP_implicit_value even without dwarf_version 4.
8042
8043 2009-09-17  Jan Hubicka  <jh@suse.cz>
8044
8045         * dwarf2out.c: Include tree-pass.h and gimple.h.
8046         (loc_list_plus_const): New function.
8047         (loc_descriptor_from_tree_1): Rename to ...
8048         (loc_descriptor_from_tree): ... remove original.
8049         (loc_list_from_tree): New function.
8050         (add_AT_location_description): Accept location list.
8051         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
8052         (concatn_mem_loc_descriptor): Remove.
8053         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
8054         returning NULL.
8055         (secname_for_decl): Move up.
8056         (hidden_reference_p): New function; break out from ...
8057         (loc_by_refernece): ... here; move up.
8058         (dw_loc_list): New function.
8059         (single_element_loc_list): New function.
8060         (single_element_loc_list_p): New function.
8061         (add_loc_descr_to_each): New function.
8062         (add_loc_list): New function.
8063         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
8064         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
8065         add diagnostics why expansion failed.
8066         (add_location_or_const_value_attribute): Support location lists.
8067         (add_bound_info): Likewise.
8068         (descr_info_loc): Update call of loc_descriptor_from_tree.
8069         (gen_variable_die): Work on location lists.
8070         * final.c (pass_final): Add dump file.
8071         * Makefile.in (dwarf2out.o): Add new dependencies.
8072
8073 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
8074
8075         PR c/41049
8076         * real.c decimal_from_integer, decimal_integer_string): New.
8077         (real_from_integer): Use them as special case for decimal float.
8078         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
8079         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
8080         Do not append zero after the decimal point in string to convert.
8081
8082 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
8083
8084         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
8085         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
8086
8087 2009-09-17  Martin Jambor  <mjambor@suse.cz>
8088
8089         * common.opt (fipa-sra): New switch.
8090         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
8091         * timevar.def (TV_IPA_SRA): New timevar.
8092         * params.def (ipa-sra-ptr-growth-factor): New parameter.
8093         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
8094         * tree-sra.c: Include cgraph.c.
8095         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
8096         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
8097         and grp_not_necessarilly_dereferenced.
8098         (func_param_count): New variable.
8099         (encountered_apply_args): New variable.
8100         (bb_dereferences): New variable.
8101         (final_bbs): New variable.
8102         (no_accesses_representant): New variable.
8103         (no_accesses_p): New function.
8104         (dump_access): Dump the new fields.
8105         (sra_initialize): Set encountered_apply_args to false.
8106         (get_ssa_base_param): New function.
8107         (mark_parm_dereference): New function.
8108         (create_access): Caring for INIDRECT_REFs and different handling of
8109         varialble length accesses in early IPA SRA.  Store the stmt - a new
8110         parameter - to the new access.
8111         (build_access_from_expr_1): New parameter stmt, passed to
8112         create_access.  Handle INDIRECT_REFs.
8113         (build_access_from_expr): Pass the current statement to
8114         build_access_from_expr_1.
8115         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
8116         passes.
8117         (build_accesses_from_assign): Pass the current statement to
8118         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
8119         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
8120         final_bbs when necessary.  Check for calls to __builtin_apply_args.
8121         Fixup EH info if anythng was changed.
8122         (is_unused_scalar_param): New function.
8123         (ptr_parm_has_direct_uses): New function.
8124         (find_param_candidates): New function.
8125         (mark_maybe_modified): New function.
8126         (analyze_modified_params): New function.
8127         (propagate_dereference_distances): New function.
8128         (dump_dereferences_table): New function.
8129         (analyze_caller_dereference_legality): New function.
8130         (unmodified_by_ref_scalar_representative): New function.
8131         (splice_param_accesses): New function.
8132         (decide_one_param_reduction): New function.
8133         (enum ipa_splicing_result): New type.
8134         (splice_all_param_accesses): New function.
8135         (get_param_index): New function.
8136         (turn_representatives_into_adjustments): New function.
8137         (analyze_all_param_acesses): New function.
8138         (get_replaced_param_substitute): New function.
8139         (get_adjustment_for_base): New function.
8140         (replace_removed_params_ssa_names): New function.
8141         (sra_ipa_reset_debug_stmts): New function.
8142         (sra_ipa_modify_expr): New function.
8143         (sra_ipa_modify_assign): New function.
8144         (convert_callers): New function.
8145         (modify_function): New function.
8146         (ipa_sra_preliminary_function_checks): New function.
8147         (ipa_early_sra): New function.
8148         (ipa_early_sra_gate): New function.
8149         (pass_early_ipa_sra): New variable.
8150         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
8151
8152 2009-09-17  Michael Matz  <matz@suse.de>
8153
8154         PR middle-end/41347
8155         * tree.c (build_type_attribute_qual_variant): Export.
8156         * tree.h (build_type_attribute_qual_variant): Declare.
8157         * tree-inline.c (remap_type_1): Use it to build variants with
8158         the original qualifiers and attributes.
8159
8160 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8161
8162         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
8163         without a fallthrough edge.
8164
8165 2009-09-16  DJ Delorie  <dj@redhat.com>
8166
8167         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
8168         chip and ignore the "fast_interrupt" attribute if so.
8169
8170 2009-09-16  Richard Henderson  <rth@redhat.com>
8171
8172         PR middle-end/41360
8173         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
8174         barrier fix.
8175
8176 2009-09-16  Richard Henderson  <rth@redhat.com>
8177
8178         PR target/41246
8179         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
8180         is set only if DECL_NO_STATIC_CHAIN is unset.
8181         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
8182         (FOR_EACH_NEST_INFO): New.
8183         (walk_all_functions): Use it.
8184         (finalize_nesting_tree): Likewise.
8185         (unnest_nesting_tree): Likewise.
8186         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
8187         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
8188         (convert_gimple_call): Early out if gimple_call_chain already set.
8189         (convert_all_function_calls): Iterate until no new functions
8190         require a static chain.
8191         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
8192         when building a trampoline.  Use dump_function_to_file instead
8193         of dump_function.
8194         (lower_nested_functions): Open dump_file.  Validate that decls
8195         that have DECL_NO_STATIC_CHAIN from the front end don't have that
8196         bit reset by this pass.
8197
8198 2009-09-16  Michael Matz  <matz@suse.de>
8199
8200         PR fortran/41212
8201         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
8202         shorten decl_common_unused.
8203         (DECL_RESTRICTED_P): New accessor.
8204         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
8205         to disambiguate marked decls and restrict pointers.
8206
8207 2009-09-16  Richard Henderson  <rth@redhat.com>
8208
8209         PR middle-end/41360
8210         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
8211
8212 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
8213
8214         * integrate.c (set_block_abstract_flags): Call
8215         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
8216
8217 2009-09-16  Richard Guenther  <rguenther@suse.de>
8218
8219         PR middle-end/34011
8220         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
8221         as non-aliased.
8222
8223 2009-09-16  DJ Delorie  <dj@redhat.com>
8224             Kaz Kojima  <kkojima@gcc.gnu.org>
8225
8226         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
8227         (sh_expand_prologue): Update calls to output_stack_adjust.
8228         (sh_expand_epilogue): Likewise.
8229
8230 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
8231
8232         PR bootstrap/41349
8233         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
8234         trying to limit the extent of searches in the insn stream.
8235
8236 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
8237             Jakub Jelinek  <jakub@redhat.com>
8238
8239         PR target/41175
8240         PR target/40677
8241         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
8242         problem.
8243         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
8244         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
8245         (rs6000_savres_strategy): Always save FP registers inline if the
8246         target doesn't support hardware double-precision.  Set the above
8247         bits in return value when needed.
8248         (rs6000_savres_routine_sym): Fix computation for cache selector.
8249         Mark the generated symbol as a function.  Rename exitp argument to
8250         lr.  Move code for determining the name of the symbol...
8251         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
8252         getting the names right on AIX and 64-bit Linux.
8253         (savres_routine_name): New variable.
8254         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
8255         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
8256         on what the target routine uses as a base register.  If savep && lr
8257         describe saving of r0 into memory slot.
8258         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
8259         line calls for AIX ABI.
8260         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
8261         determine FP save/restore functions.
8262         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
8263         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
8264         gen_addsi3.
8265         (rs6000_emit_epilogue): Adjust computation of restore_lr.
8266         Duplicate restoration of LR and execute the appropriate one
8267         depending on whether GPRs are being restored inline.  Set r11 from
8268         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
8269         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
8270         Fix out of line calls for AIX ABI.
8271         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
8272         New insn.
8273         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
8274         register 11.
8275         (*restore_gpregs_spe): Likewise.
8276         (*return_and_restore_gpregs_spe): Likewise.
8277         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8278         Define to empty string unconditionally.
8279         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8280         Define to empty string unconditionally.
8281         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
8282         !TARGET_64BIT.
8283
8284 2009-09-15  Jan Hubicka  <jh@suse.cz>
8285
8286         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
8287         * params.def (inline-insns-auto): Likewise.
8288
8289 2009-09-15  Martin Jambor  <mjambor@suse.cz>
8290
8291         * ipa-inline.c (estimate_function_body_sizes): Dump info about
8292         individual statements only at TDF_DETAILS dump level.  Format
8293         source for 80 characters per line.
8294
8295 2009-09-15  Christian Bruel  <christian.bruel@st.com>
8296
8297         * regrename.c (do_replace): Update REG_DEAD notes.
8298
8299 2009-09-15  Revital Eres  <eres@il.ibm.com>
8300
8301         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
8302         * targhooks.c (default_builtin_support_vector_misalignment):
8303         New builtin function.
8304         * targhooks.h (default_builtin_support_vector_misalignment):
8305         Declare.
8306         * target.h (builtin_support_vector_misalignment):
8307         New field in struct gcc_target.
8308         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
8309         new builtin function.
8310         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
8311         Define.
8312         * config/rs6000/rs6000.c
8313         (rs6000_builtin_support_vector_misalignment): New function.
8314         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
8315
8316 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
8317
8318         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
8319         instead of INSN_P.
8320         (bfin_optimize_loop): Likewise.
8321         (bfin_gen_bundles): Likewise.
8322         (workaround_speculation): Likewise.
8323         (find_load): Return NULL_RTX for debug_insn.
8324
8325 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
8326
8327         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
8328         (sminsf3): Ditto.
8329
8330 2009-09-14  DJ Delorie  <dj@redhat.com>
8331
8332         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
8333         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
8334         VLIW mode.
8335
8336 2009-09-14  Richard Henderson  <rth@redhat.com>
8337             Jakub Jelinek  <jakub@redhat.com>
8338
8339         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
8340         * cfgbuild.c (make_edges): Handle asm goto.
8341         * cfglayout.c (fixup_reorder_chain): Likewise.
8342         * cfgrtl.c (patch_jump_insn): Likewise.
8343         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
8344         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
8345         (gimple_build_asm_vec): Add and use labels parameter.
8346         (gimple_build_asm): Remove.
8347         (walk_gimple_asm): Walk labels too.
8348         * gimple.def (GIMPLE_ASM): Update docs.
8349         * gimple.h: Update decls.
8350         (struct gimple_statement_asm): Change nc to use unsigned char;
8351         add nl member.
8352         (gimple_asm_nlabels): New.
8353         (gimple_asm_label_op, gimple_asm_set_label_op): New.
8354         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
8355         into gimple_build_asm_vec.
8356         * jump.c (mark_jump_label_asm): New.
8357         (mark_jump_label): Use it.
8358         (redirect_jump_1): Handle asm goto.
8359         (invert_jump_1): Soft fail if X is null.
8360         * recog.c (extract_asm_operands): New.
8361         (asm_noperands): Use it; handle asm labels.
8362         (decode_asm_operands): Use extract_asm_operands.
8363         (asm_operand_ok): Properly handle empty string.
8364         * reg-stack.c (get_asm_operands_in_out): Rename from
8365         get_asm_operand_n_inputs; use extract_asm_operands; return both
8366         inputs and outputs by reference; update all callers.
8367         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
8368         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
8369         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
8370         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
8371         (extract_asm_operands): Declare.
8372         * stmt.c (expand_asm_operands): Add and use labels parameter.
8373         (check_unique_operand_names): Likewise.
8374         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
8375         (expand_asm_stmt): Handle asm labels.
8376         * tree-cfg.c (make_gimple_asm_edges): New.
8377         (make_edges): Use it.
8378         (cleanup_dead_labels): Handle asm labels.
8379         (is_ctrl_altering_stmt): Likewise.
8380         (gimple_redirect_edge_and_branch): Likewise.
8381         * tree.def (ASM_EXPR): Add 5th operand.
8382         * tree.h (ASM_LABELS): New.
8383         (resolve_asm_operand_names): Update decl.
8384
8385         * c-parser.c (c_parser_asm_statement): Parse asm goto.
8386         (c_parser_asm_goto_operands): New.
8387         * c-tree.h (build_asm_expr): Update decl.
8388         * c-typeck.c (build_asm_expr): Add and use labels parameter.
8389         * doc/extend.texi: Document asm goto.
8390
8391 2009-09-14  Richard Henderson  <rth@redhat.com>
8392
8393         * except.h: Update declarations.
8394         (struct pointer_map_t): Forward declare.
8395         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
8396         (struct eh_landing_pad_d, eh_landing_pad): New.
8397         (struct eh_catch_d, eh_catch): New.
8398         (struct eh_region_d): Remove next_region_sharing_label, aka,
8399         label, tree_label, landing_pad, post_landing_pad, resume,
8400         may_contain_throw.  Rename region_number to index.  Remove
8401         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
8402         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
8403         (VEC(eh_landing_pad,gc)): New.
8404         (struct eh_status): Remove last_region_number.  Add lp_array,
8405         throw_stmt_table, ttype_data, ehspec_data.
8406         (ehr_next, FOR_ALL_EH_REGION_AT): New.
8407         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
8408         * except.c (lang_protect_cleanup_actions): Return tree.
8409         (struct ehl_map_entry): Remove.
8410         (init_eh_for_function): Push zero entries for region and lp_array.
8411         (gen_eh_region): Add to region_array immediately.
8412         (gen_eh_region_catch): Operate on eh_catch objects.
8413         (gen_eh_landing_pad): New.
8414         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
8415         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
8416         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
8417         (get_eh_landing_pad_from_number_fn): New.
8418         (get_eh_landing_pad_from_number): New.
8419         (get_eh_region_from_lp_number_fn): New.
8420         (get_eh_region_from_lp_number): New.
8421         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
8422         (get_exception_pointer, get_exception_filter): Remove.
8423         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
8424         (current_function_has_exception_handlers): Simplify.
8425         (bring_to_root, eh_region_replaceable_by_p): Remove.
8426         (replace_region, hash_type_list, hash_eh_region): Remove.
8427         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
8428         (label_to_region_map, num_eh_regions): Remove.
8429         (get_next_region_sharing_label, must_not_throw_labels): Remove.
8430         (find_exception_handler_labels): Remove.
8431         (duplicate_eh_regions_0, find_prev_try): Remove.
8432         (struct duplicate_eh_regions_data): New.
8433         (duplicate_eh_regions_1): Rewrite.
8434         (duplicate_eh_regions): Return a pointer map instead of an
8435         integer offset.
8436         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
8437         (redirect_eh_edge_to_label): Remove.
8438         (eh_region_outermost): Rewrite using eh_region pointers
8439         instead of integers.
8440         (add_ttypes_entry): Update for ttype_data move to eh_status.
8441         (add_ehspec_entry): Rewrite with VEC instead of varray.
8442         (assign_filter_values): Likewise.  Export.
8443         (build_post_landing_pads, connect_post_landing_pads): Remove.
8444         (dw2_build_landing_pads): Rewrite to use lp_array.
8445         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
8446         (sjlj_assign_call_site_values): Rewrite to use lp_array.
8447         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
8448         (sjlj_mark_call_sites): Update for landing pad numbers.
8449         (finish_eh_generation): Rewrite.
8450         (gate_handle_eh): Do nothing for no eh tree.
8451         (pass_rtl_eh): Move up near finish_eh_generation.
8452         (remove_eh_landing_pad): New.
8453         (remove_eh_handler): Export.
8454         (remove_eh_region, remove_eh_handler_and_replace): Remove.
8455         (for_each_eh_label): Rewrite to use lp_array.
8456         (make_reg_eh_region_note): New.
8457         (make_reg_eh_region_note_nothrow_nononlocal): New.
8458         (insn_could_throw_p): New.
8459         (copy_reg_eh_region_note_forward): New.
8460         (copy_reg_eh_region_note_backward): New.
8461         (check_handled, add_reachable_handler): Remove.
8462         (reachable_next_level, foreach_reachable_handler): Remove.
8463         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
8464         (get_eh_region_and_lp_from_rtx): New.
8465         (get_eh_region_from_rtx): New.
8466         (can_throw_internal_1, can_throw_external_1): Remove.
8467         (can_throw_internal): Use get_eh_region_from_rtx.
8468         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
8469         (insn_nothrow_p, can_nonlocal_goto): New.
8470         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
8471         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
8472         (add_action_record): Use VEC not varray.
8473         (collect_one_action_chain): Update for eh_region changes.
8474         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
8475         Use get_eh_region_and_lp_from_rtx.
8476         (gate_convert_to_eh_region_ranges): New.
8477         (pass_convert_to_eh_region_ranges): Use it.
8478         (push_uleb128, push_sleb128): Use VEC not varray.
8479         (output_one_function_exception_table): Likewise.
8480         (dump_eh_tree): Update for eh_region changes.
8481         (verify_eh_tree): Likewise.
8482         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
8483         * tree-eh.c: Include target.h.
8484         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
8485         Don't disallow GIMPLE_RESX; adjust argument check.
8486         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
8487         (record_stmt_eh_region): Update for landing pad numbers;
8488         generate a landing pad if necessary.
8489         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
8490         (remove_stmt_from_eh_lp_fn): Similarly.
8491         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
8492         Update for lp numbers; don't special case missing throw_stmt_table.
8493         (lookup_expr_eh_lp): Similarly.
8494         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
8495         (eh_seq, eh_region_may_contain_throw): New.
8496         (struct leh_state): Add ehp_region.
8497         (struct leh_tf_state): Remove eh_label.
8498         (emit_post_landing_pad): New.
8499         (emit_resx, emit_eh_dispatch): New.
8500         (note_eh_region_may_contain_throw): New.
8501         (frob_into_branch_around): Take eh_region not eh label;
8502         emit eh code into eh_seq.
8503         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
8504         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
8505         lower_eh_must_not_throw.  Emit code to eh_seq.
8506         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
8507         (lower_try_finally_onedest): Likewise.
8508         (lower_try_finally_copy): Likewise.
8509         (lower_try_finally_switch): Likewise.
8510         (lower_try_finally): Initialize ehp_region.
8511         (lower_catch): Update for eh_catch objects.
8512         (lower_eh_filter): Don't handle must_not_throw.
8513         (lower_eh_must_not_throw): New.
8514         (lower_cleanup): Don't set eh_label.
8515         (lower_eh_constructs_2): Resolve eh builtins.
8516         Handle GIMPLE_EH_MUST_NOT_THROW.
8517         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
8518         Add eh_seq to the end of the function body.
8519         (make_eh_dispatch_edges): New.
8520         (make_eh_edge): Remove.
8521         (make_eh_edges): Simplify for landing pads.
8522         (redirect_eh_edge_1): New.
8523         (redirect_eh_edge): Use it.
8524         (redirect_eh_dispatch_edge): New.
8525         (stmt_could_throw_p): Use a switch.  Allow RESX.
8526         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
8527         (stmt_can_throw_internal): Likewise.
8528         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
8529         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
8530         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
8531         (gate_refactor_eh): New.
8532         (pass_refactor_eh): Use it.
8533         (lower_resx, execute_lower_resx, pass_lower_resx): New.
8534         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
8535         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
8536         (remove_unreachable_handlers): Rename from
8537         tree_remove_unreachable_handlers; rewrite for landing pads;
8538         call remove_eh_handler directly.
8539         (remove_unreachable_handlers_no_lp): New.
8540         (unsplit_eh, unsplit_all_eh): New.
8541         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
8542         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
8543         (cleanup_empty_eh_unsplit): New.
8544         (cleanup_empty_eh): Rewrite.
8545         (cleanup_all_empty_eh): New.
8546         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
8547         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
8548         (gate_cleanup_eh): New.
8549         (pass_cleanup_eh): Use it.
8550         (verify_eh_edges): Move later in file.  Expect one EH edge.
8551         (verify_eh_dispatch_edge): New.
8552
8553         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
8554         (gtype-desc.o): Add TARGET_H.
8555         (tree.o): Use EXCEPT_H, not except.h.
8556         (cfgbuild.o): Add EXPR_H.
8557         (GTFILES): Add vecprim.h.
8558         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
8559         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
8560         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
8561         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
8562         * calls.c (emit_call_1): Use make_reg_eh_region_note.
8563         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
8564         calls to can_throw_internal.
8565         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
8566         (make_edges): Don't handle RESX; use can_nonlocal_goto.
8567         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
8568         (expand_gimple_stmt): Use make_reg_eh_region_note.
8569         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
8570         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
8571         or find_exception_handler_labels.
8572         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
8573         there is exacly one EH edge.  Use can_nonlocal_goto and
8574         can_throw_internal.
8575         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
8576         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
8577         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
8578         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
8579         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
8580         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
8581         * dse.c (scan_insn): Use insn_could_throw_p.
8582         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
8583         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
8584         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
8585         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
8586         EXC_PTR_EXPR or FILTER_EXPR.
8587         (tree_expr_nonzero_warnv_p): Likewise.
8588         * function.h: Include vecprim.h, not varray.h
8589         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
8590         move ttype_data and ehspec_data members to struct eh_status; change
8591         action_record_data member to a VEC.
8592         * gcse.c (hash_scan_set): Use can_throw_internal.
8593         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
8594         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
8595         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8596         (block_may_fallthru): Don't handle RESX_EXPR.
8597         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
8598         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
8599         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
8600         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
8601         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
8602         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
8603         (gimple_size): Likewise.
8604         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
8605         (gimple_build_resx): Use gimple_build_with_ops.
8606         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
8607         (is_gimple_val): Likewise.
8608         (is_gimple_stmt): Remove RESX_EXPR.
8609         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
8610         (GIMPLE_RESX): Reorder with other EH constructs.
8611         * gimple.h (struct gimple_statement_eh_mnt): New.
8612         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
8613         (gimple_eh_filter_must_not_throw): Remove.
8614         (gimple_eh_filter_set_must_not_throw): Remove.
8615         (gimple_eh_must_not_throw_fndecl): New.
8616         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
8617         (is_gimple_resx): New.
8618         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
8619         Don't copy EH_FILTER_MUST_NOT_THROW.
8620         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
8621         * ipa-inline.c (estimate_function_body_sizes): Don't try to
8622         handle must_not_throw_labels specially.
8623         * ipa-pure-const.c (check_call): Update debug statement for LP.
8624         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
8625         * ipa-utils.c (get_base_var): Likewise.
8626         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
8627         * lower-subreg.c (move_eh_region_note): Remove.
8628         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
8629         * omp-low.c (new_omp_context): Update for eh_lp_nr.
8630         (create_task_copyfn): Likewise.
8631         (maybe_catch_exception): Use gimple_build_eh_filter.
8632         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
8633         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
8634         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
8635         and pass_lower_resx.
8636         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
8637         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
8638         can_throw_internal, can_nonlocal_goto.
8639         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
8640         copy_reg_eh_region_note_forward.
8641         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
8642         (emit_output_reload_insns): Likewise.
8643         (copy_eh_notes): Remove.
8644         * rtl.def (RESX): Remove.
8645         * rtl.h: Update declarations.
8646         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
8647         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
8648         (update_eh_label): Remove.
8649         (cleanup_dead_labels_eh): New.
8650         (cleanup_deal_labels): Use it instead of update_eh_label.
8651         (gimple_merge_blocks): Update landing pad data structure when
8652         removing a landing pad label.
8653         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
8654         test; handle GIMPLE_EH_MUST_NOT_THROW.
8655         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
8656         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
8657         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
8658         (verify_stmt): Likewise.  Verify landing pads.
8659         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
8660         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
8661         (struct move_stmt_d): Add eh_map.
8662         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
8663         (move_stmt_r): Remap eh region numbers in builtin calls,
8664         resx and eh_dispatch.
8665         (move_block_to_fn): Remove eh_offset parameter.  Use
8666         maybe_duplicate_eh_stmt_fn.
8667         (find_outermost_region_in_block): Operate on eh_region pointers
8668         instead of region numbers.
8669         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
8670         duplicate_eh_regions.
8671         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
8672         test earlier.  Disallow EH landing pads.
8673         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
8674         * tree-flow.h: Update declarations.
8675         (struct tree_ann_common_d): Replace rn with lp_nr.
8676         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
8677         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
8678         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
8679         resx and eh_dispatch.
8680         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
8681         (copy_edges_for_bb): Use make_eh_dispatch_edges.
8682         (copy_cfg_body): Expect eh_map instead of eh_region_offset
8683         from duplicate_eh_regions.
8684         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
8685         update RESX; handle EH_DISPATCH.
8686         (expand_call_inline): Set eh_lp_nr, not eh_region.
8687         (maybe_inline_call_in_expr): Likewise.
8688         * tree-inline.h (struct copy_body_data): Replace eh_region with
8689         eh_lp_nr, eh_region_offset with eh_map.
8690         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
8691         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
8692         * tree-pretty-print.c (dump_generic_node): Don't handle
8693         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
8694         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
8695         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
8696         EXC_PTR_EXPR, FILTER_EXPR.
8697         * tree-ssa-operands.c (get_expr_operands): Likewise.
8698         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
8699         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8700         (ao_ref_init_from_vn_reference): Likewise.
8701         * tree-ssa-sink.c (statement_sink_location): Likewise.
8702         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8703         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
8704         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
8705         EXC_PTR_EXPR, FILTER_EXPR.
8706         (is_exception_related): Remove.
8707         (compute_avail): Don't call it.
8708         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
8709         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
8710         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
8711         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
8712         Build EH builtins.
8713         (build_resx): Remove.
8714         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
8715         * tree.h: Update declarations.
8716         (EH_FILTER_MUST_NOT_THROW): Remove.
8717         (struct tree_label_decl): Add eh_landing_pad_nr.
8718         (EH_LANDING_PAD_NR): New.
8719         * value-prof.c (gimple_ic): Tidy variable names.  Update for
8720         landing pad numbers.
8721         (gimple_stringop_fixed_value): Tidy variable names.  Assert
8722         that neither call stmt can throw.
8723         * vecprim.h (uchar): New.
8724         (VEC(uchar,heap), VEC(uchar,gc)): New.
8725
8726         * c-common.c (c_define_builtins): Update call to
8727         build_common_builtin_nodes.
8728         * c-parser.c (c_parse_file): Don't call
8729         default_init_unwind_resume_libfunc.
8730
8731 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8732
8733         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
8734         (mips_cprestore_address_p): Likewise.
8735         (mips_save_gp_to_cprestore_slot): Likewise.
8736         (mips_restore_gp): Rename to...
8737         (mips_restore_gp_from_cprestore_slot): ...this.
8738         (mips_must_initialize_gp_p): Declare.
8739         (mips_emit_save_slot_move): Likewise.
8740         (mips_output_load_label): Return nothing.
8741         (mips_eh_uses): Declare.
8742         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
8743         (TARGET_CPRESTORE_DIRECTIVE): New macro.
8744         (TARGET_ABSOLUTE_JUMPS): Likewise.
8745         (EH_USES): Likewise.
8746         (FIRST_PSEUDO_REGISTER): Update comment.
8747         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
8748         (MIPS_CALL): ...here.
8749         (REGISTER_NAMES): Add $cprestore.
8750         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
8751         Add load_label_length, has_inflexible_gp_insn_p,
8752         has_flexible_gp_insn_p, must_initialize_gp_p and
8753         must_restore_gp_when_clobbered_p.
8754         (mips_expand_call): Don't generate split instructions here.
8755         (mips_split_call): Update the call to mips_restore_gp after
8756         the above name change.
8757         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
8758         (mips_find_gp_ref): New function.
8759         (mips_insn_has_inflexible_gp_ref_p): Likewise.
8760         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
8761         (mips_insn_has_flexible_gp_ref_p): Likewise.
8762         (mips_cfun_has_flexible_gp_ref_p): Likewise.
8763         (mips_function_has_gp_insn): Delete.
8764         (mips_global_pointer): Drop the df_regs_ever_live_p check.
8765         Use the new functions above.  Only return INVALID_REGNUM
8766         for TARGET_ABSOLUTE_JUMPS.
8767         (mips_must_initialize_gp_p): New function.
8768         (mips_get_cprestore_base_and_offset): New function, extracted from...
8769         (mips_cprestore_slot): ...here.  Take a bool parameter.
8770         (mips_cfun_has_cprestore_slot_p): New function.
8771         (mips_cprestore_address_p): Likewise.
8772         (mips_save_gp_to_cprestore_slot): Likewise.
8773         (mips_restore_gp): Rename to...
8774         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
8775         epilogue_completed.  Update the call to mips_cprestore_slot.
8776         Test cfun->machine->must_restore_gp_when_clobbered_p.
8777         (mips_direct_save_slot_move_p): New function.
8778         (mips_emit_save_slot_move): Likewise.
8779         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
8780         of cfun->machine->global_pointer.
8781         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
8782         (mips_save_reg): Use mips_emit_save_slot_move.
8783         (mips_expand_prologue): Set must_initialize_gp_p.
8784         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
8785         for all cprestore saves.  Emit a use_cprestore instruction after
8786         setting up the cprestore slot.
8787         (mips_restore_reg): Use mips_emit_save_slot_move.
8788         (mips_process_load_label): New function.
8789         (mips_load_label_length): Likewise.
8790         (mips_output_load_label): Don't return asm: output it here instead.
8791         Use mips_process_load_label.
8792         (mips_adjust_insn_length): Adjust the length of branch instructions
8793         that have length MAX_PIC_BRANCH_LENGTH.
8794         (mips_output_conditional_branch): Update the call to
8795         mips_output_load_label.  Assume the branch target is OPERANDS[0]
8796         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
8797         (mips_output_order_conditional_branch): Swap the meaning of
8798         OPERANDS[0] and OPERANDS[1].
8799         (mips_variable_issue): Don't count ghost instructions.
8800         (mips_expand_ghost_gp_insns): New function.
8801         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
8802         (mips_output_mi_thunk): Set must_initialize_gp_p.
8803         (mips_eh_uses): New function.
8804         * config/mips/predicates.md (cprestore_save_slot_operand)
8805         (cprestore_load_slot_operand): New predicates.
8806         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
8807         (UNSPEC_MOVE_GP): Likewise.
8808         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
8809         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
8810         (CPRESTORE_SLOT_REGNUM): New register.
8811         (MAX_PIC_BRANCH_LENGTH): New constant.
8812         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
8813         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
8814         branches.  Fix commentary.
8815         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
8816         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
8817         Change type to "ghost".
8818         (loadgp_absolute_<mode>): Likewise.
8819         (loadgp_rtp_<mode>): Likewise.
8820         (copygp_mips16): Likewise.
8821         (loadgp_blockage): Remove redundant mode attribute.
8822         (potential_cprestore): New instruction.
8823         (cprestore): Turn into an unspec set.
8824         (use_cprestore): New instruction.
8825         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
8826         (*branch_fp_inverted): Likewise.
8827         (*branch_order<mode>): Likewise.
8828         (*branch_order<mode>_inverted): Likewise.
8829         (*branch_equality<mode>): Likewise.
8830         (*branch_equality<mode>_inverted): Likewise.
8831         (*branch_bit<bbv><mode>): Likewise.
8832         (*branch_bit<bbv><mode>_inverted): Likewise.
8833         (*branch_equality<mode>_mips16): Remove redundant mode.
8834         (jump): Turn into a define_expand.
8835         (*jump_absolute): New instruction.
8836         (*jump_pic): Likewise.
8837         (*jump_mips16): Rename previously-unnamed pattern.  Remove
8838         redundant mode attribute.
8839         (restore_gp): Split on epilogue_completed rather than
8840         reload_completed.  Change type to "ghost".
8841         (move_gp<mode>): New instruction.
8842         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
8843         Remove redundant mode attribute.
8844         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
8845         (bc1any4f, bc1any2t, bc1any2f): Likewise.
8846         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
8847
8848 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8849
8850         PR target/41210
8851         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
8852         are returned in the same register (vs34 or v2) that Altivec vector
8853         types are returned in.
8854         (rs6000_libcall_value): Ditto.
8855
8856         PR target/41331
8857         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
8858         instead of explicit addsi3/adddi3 calls.
8859         (rs6000_split_multireg_move): Ditto.
8860         (rs6000_emit_allocate_stack): Ditto.
8861         (rs6000_emit_prologue): Ditto.
8862         (rs6000_output_mi_thunk): Ditto.
8863
8864         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
8865         size is 64 bits if we can use 64-bit registers.
8866
8867 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
8868
8869         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
8870         symbols.
8871
8872         From Jie Zhang <jie.zhang@analog.com>:
8873         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
8874         save FP and RETS with saveall attribute.
8875         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
8876         with saveall attribute.
8877
8878         * config/bfin/bfin.c (bfin_expand_builtin,
8879         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
8880         operands.
8881
8882         From Jie Zhang <jie.zhang@analog.com>:
8883         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
8884         before use in two places.
8885         * config/bfin/bfin.md (AREG): Define mode iterator.
8886         (reload_in, reload_out): Use mode iterator AREG.
8887
8888 2009-09-14  Richard Guenther  <rguenther@suse.de>
8889
8890         PR middle-end/41350
8891         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
8892         EH personality path.
8893
8894 2009-09-13  Richard Guenther  <rguenther@suse.de>
8895             Rafael Avila de Espindola  <espindola@google.com>
8896
8897         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
8898         (LANG_HOOKS_EH_PERSONALITY): Likewise.
8899         (LANG_HOOKS_INITIALIZER): Adjust.
8900         (lhd_pass_through_t): Declare.
8901         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
8902         eh_personality.
8903         * langhooks.c (lhd_pass_through_t): New function.
8904         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
8905         dwarf2out_begin_prologue): Use personality from current_function_decl.
8906         * expr.h (get_personality_function): Declare.
8907         * expr.c (get_personality_function): New function.
8908         (build_personality_function): Likewise.
8909         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
8910         (eh_personality_libfunc): Remove.
8911         * optabs.c (build_libfunc_function): New function split out from ...
8912         (init_one_libfunc): ... here.
8913         * tree.h (DECL_FUNCTION_PERSONALITY): New.
8914         (tree_function_decl): Add personality.
8915         (lhd_gcc_personality): Declare.
8916         (build_personality_function): Likewise.
8917         * tree.c (gcc_eh_personality_decl): New.
8918         (lhd_gcc_personality): New function.
8919         * except.h (lang_eh_runtime_type): Remove.
8920         (enum eh_personality_kind): New.
8921         (build_personality_function): Declare.
8922         (function_needs_eh_personality): Declare.
8923         * except.c (lang_eh_runtime_type): Remove.
8924         (function_needs_eh_personality): New function.
8925         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
8926         (sjlj_emit_function_enter, output_function_exception_table):
8927         Use personality from current_function_decl.
8928         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
8929         * tree-inline.c (tree_can_inline_p): Do not inline across different
8930         EH personalities.
8931         (expand_call_inline): Likewise.  Adjust the callers EH personality.
8932         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
8933         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
8934         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
8935         (c-parser.o): Likewise
8936         * c-tree.h (c_eh_initialized_p): Remove.
8937         (c_maybe_initialize_eh): Likewise.
8938         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
8939         (finish_decl): Don't call c_maybe_initialize_eh.
8940         (c_eh_initialized_p): Remove.
8941         (c_maybe_initialize_eh): Likewise.
8942         * c-parser.c (c_parser_omp_construct): Likewise.
8943         (c_parse_file): Initialize exception handling.
8944
8945 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
8946
8947         * config.gcc (tm_file): Remove i386/biarch32.h
8948         for i?86-w64-mingw* case.
8949         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
8950         support.
8951         * config.host: Set for x64 mingw the option
8952         use_long_long_for_widest_fast_int to yes.
8953
8954 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
8955
8956         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
8957         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
8958         (dbxout_begin_function): Likewise.
8959         * final.c (dwarf2_debug_info_emitted_p): New predicate.
8960         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
8961         set on the function.
8962         (final_end_function): Likewise.
8963         (final_scan_insn): Likewise.
8964         (rest_of_handle_final): Likewise.
8965         * varasm.c (assemble_start_function): Likewise.
8966         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8967
8968 2009-09-12  Jason Merrill  <jason@redhat.com>
8969
8970         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
8971         * opts.c (common_handle_option): constify.
8972
8973 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
8974
8975         * doc/install.texi (avr): Remove obsolete reference site.
8976
8977 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
8978
8979         * doc/install.texi (Binaries): Adjust AIX link.
8980
8981 2009-09-12  Akim Demaille  <demaille@gostai.com>
8982
8983         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
8984         Use an imperative sentence.
8985
8986 2009-09-11  Richard Henderson  <rth@redhat.com>
8987
8988         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
8989         structure-name and has-tree-operands arguments; update all entries.
8990         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
8991         update all entries.
8992         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
8993         (gsstruct_code_size): New.
8994         (gss_for_code_): New.
8995         (gss_for_code): Remove.
8996         (gimple_size): Rewrite using gsstruct_code_size.
8997         (gimple_statement_structure): Move to gimple.h.
8998         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
8999         (gss_for_code, gimple_statement_structure): New.
9000         (gimple_ops): Use new arrays; tidy.
9001
9002 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9003
9004         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
9005         operand to be a PLUS expression.
9006         * config/pa/pa.c (pa_secondary_reload): Likewise.
9007
9008 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
9009
9010         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
9011
9012         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
9013         XEXP (in_rtx, 8).
9014
9015 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9016
9017         From Jie Zhang <jie.zhang@analog.com>:
9018         * doc/extend.texi (node Function Attributes): Document l2
9019         function attribute.
9020         (node Blackfin Variable Attributes): Document l2 variable attributes.
9021
9022 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
9023
9024         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
9025         to match the system compiler's configuration at inflection point.
9026         Add comment to remark a remaining difference with system compiler.
9027
9028         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
9029         * configure: Regenerate.
9030
9031 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9032
9033         From Jie Zhang <jie.zhang@analog.com>:
9034         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
9035         (bfin_handle_l2_attribute): New.
9036         (bfin_attribute_table): Add l2 attribute.
9037
9038 2009-09-11  Michael Matz  <matz@suse.de>
9039
9040         PR middle-end/41275
9041         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
9042         on the local_decls list.
9043
9044 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
9045
9046         PR debug/41276
9047         PR debug/41307
9048         * cselib.c (cselib_expand_value_rtx_cb): Document callback
9049         interface.
9050         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
9051         for VALUEs, to implement the documented interface.
9052         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
9053         Adjust for VALUEs and anything else, to implement the
9054         documented interface.
9055
9056 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
9057
9058         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
9059         with actual SPE/paired vector modes before using 64-bit alignment.
9060         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
9061
9062 2009-09-10  DJ Delorie  <dj@redhat.com>
9063
9064         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
9065         emitted.
9066
9067         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
9068         * config/mep/mep.c (mep_legitimate_constant_p): New.
9069         * config/mep/mep-protos.h: Prototype it.
9070
9071 2009-09-10  Richard Henderson  <rth@redhat.com>
9072
9073         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
9074
9075 2009-09-10  Jason Merrill  <jason@redhat.com>
9076
9077         * tree.c (chain_index): New fn.
9078         * tree.h: Declare it.
9079
9080 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9081
9082         * config/sol2-c.c (cmn_err_length_specs): Initialize
9083         scalar_identity_flag.
9084
9085 2009-09-10  Richard Henderson  <rth@redhat.com>
9086
9087         * tree.h (struct tree_decl_common): Move align member earlier;
9088         move label_decl_uid member ...
9089         (struct tree_label_decl): ... here.
9090         (LABEL_DECL_UID): Update to match.
9091
9092         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
9093         not TDF_DETAILS.
9094
9095         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
9096         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
9097
9098         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
9099         dest_prev if the edge is complex.
9100
9101         * tree-cfg.c (is_ctrl_stmt): Use a switch.
9102
9103         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
9104         loop latch tests earlier.
9105
9106         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
9107         before GIMPLE_RETURN, not after its predecessor; insert
9108         before GIMPLE_RESX.
9109
9110         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
9111         gimple_seq_empty_p to test for no PHI nodes.
9112         * tree-cfg.c (split_critical_edges): Likewise.
9113
9114         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
9115
9116 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9117
9118         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
9119         introduced by the VTA branch merge.
9120
9121 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9122
9123         * ira-conflicts.c: Use fputs or putc instead of fprintf
9124         where appropriate.
9125         * cfg.c: Ditto.
9126         * toplev.c: Ditto.
9127         * tree-switch-conversion.c: Ditto.
9128
9129 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9130
9131         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
9132         introduced by the VTA branch merge.
9133
9134 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9135
9136         Revert:
9137         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9138
9139         PR rtl-optimization/39779
9140         * expr.c (convert_modes): Return when mode == oldmode after
9141         CONST_INTs are processed.
9142
9143 2009-09-10  Nick Clifton  <nickc@redhat.com>
9144
9145         * config/mep/mep.c (mep_encode_section_info): Copy weakness
9146         attribute and referring decl when creating renamed symbol.
9147
9148 2009-09-10  Richard Guenther  <rguenther@suse.de>
9149
9150         PR middle-end/41257
9151         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
9152         reachable nodes.
9153         (cgraph_finalize_compilation_unit): Compute reachability
9154         before emitting thunks.  Properly process aliases before
9155         possibly removing unreachable nodes.
9156
9157 2009-09-10  Richard Guenther  <rguenther@suse.de>
9158
9159         PR middle-end/41254
9160         * tree.c (struct free_lang_data_d): Add worklist member.
9161         (find_decls_types_r): Push onto the worklist instead of recursing.
9162         Handle TREE_BINFOs properly.
9163         (find_decls_types): New function wrapped around find_decls_types_r
9164         to process the worklist.
9165         (find_decls_types_in_eh_region): Use it.
9166         (find_decls_types_in_node): Likewise.
9167         (find_decls_types_in_var): Likewise.
9168         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
9169         * tree.h (RECORD_OR_UNION_TYPE_P): New.
9170         (AGGREGATE_TYPE_P): Adjust.
9171
9172 2009-09-09  Jason Merrill  <jason@redhat.com>
9173
9174         * configure.ac: Check glibc version even if we have an in-tree
9175         assembler.
9176
9177 2009-09-09  Anthony Green  <green@moxielogic.com>
9178
9179         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
9180         the constant 0 when appropriate.
9181         * config/moxie/constraints.md: Add constraint O.
9182
9183         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
9184         to pass up to 6 32-bit argument values in registers.
9185         (moxie_function_arg): Ditto.
9186         (moxie_arg_partial_bytes): Ditto.
9187         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
9188         (REG_PARM_STACK_SPACE): Ditto.
9189         (FUNCTION_ARG_REGNO_P): Ditto.
9190
9191         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9192         instruction to allocate stack space.
9193
9194 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
9195
9196         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
9197         unnecessarily stringent constraints.  Fix address
9198         calculation in the splitters.
9199
9200 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9201
9202         PR rtl-optimization/39779
9203         * expr.c (convert_modes): Return when mode == oldmode after
9204         CONST_INTs are processed.
9205
9206 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
9207
9208         PR/41315
9209         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
9210         (ix86_expand_prologue): Take frame.padding0 into logic of
9211         to_allocate checks.
9212         (ix86_expand_epilogue): Likewise.
9213
9214 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
9215
9216         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
9217         New variables.
9218         (SHLIB_LINK, SHLIB_INSTALL): Use them.
9219         * config/t-slibgcc-libgcc: New file.
9220         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
9221
9222 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9223
9224         PR tree-optimization/41089
9225         * tree-sra.c (find_var_candidates): Do not consider va_lists in
9226         early SRA.
9227
9228 2009-09-09  Richard Henderson  <rth@redhat.com>
9229
9230         * gimple.h (CASE_GIMPLE_OMP): New.
9231         (is_gimple_omp): Use it.
9232         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
9233         (verify_gimple_debug): Likewise.
9234
9235 2009-09-09  Richard Guenther  <rguenther@suse.de>
9236
9237         PR tree-optimization/41101
9238         * tree-ssa-pre.c (maximal_set): Remove.
9239         (compute_antic_aux): Treat the maximal set as implicitly all ones.
9240         Defer all blocks we didn't visit at least one successor.
9241         (add_to_exp_gen): Do not add to the maximal set.
9242         (make_values_for_phi): Likewise.
9243         (compute_avail): Likewise.
9244         (init_pre): Do not allocate the maximal set.
9245         (execute_pre): Do not dump it.
9246
9247 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9248
9249         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
9250         an SSA_NAME rather than a is_gimple_variable.
9251
9252 2009-09-09  Richard Guenther  <rguenther@suse.de>
9253
9254         PR middle-end/41317
9255         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
9256         code dealing with plain pointer bases.
9257         (maybe_fold_offset_to_reference): Likewise.
9258         (maybe_fold_stmt_addition): Adjust.
9259
9260 2009-09-09  Richard Guenther  <rguenther@suse.de>
9261
9262         * tree.c (free_lang_data_in_type): Do not free the type variant
9263         chains.
9264         (free_lang_data): Merge char_type_node with its properly signed
9265         variant.
9266         (pass_ipa_free): Collect after freeing language specific data.
9267
9268 2009-09-09  Michael Matz  <matz@suse.de>
9269
9270         PR middle-end/41268
9271         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
9272         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
9273         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
9274         to reflect reality.
9275
9276 2009-09-08  DJ Delorie  <dj@redhat.com>
9277
9278         * config/mep/mep.c (conversions[]): Add "ml" pattern.
9279
9280 2009-09-04  Jason Merrill  <jason@redhat.com>
9281
9282         * tree.c (tree_find_value): Remove.
9283         * tree.h: Remove prototype.
9284         * varasm.c (assemble_external): Use value_member instead.
9285
9286 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9287
9288         * toplev.c (process_options): Choose default debugging type when
9289         gtoggle enables debug info and type is unset.
9290
9291 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9292
9293         PR debug/41276
9294         PR debug/41307
9295         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
9296         invalid subreg.
9297
9298 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9299
9300         * configure: Rebuilt with modified libtool.m4.
9301
9302 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9303
9304         PR debug/41229
9305         PR debug/41291
9306         PR debug/41300
9307         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
9308
9309 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9310
9311         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
9312         (remove_statement): Likewise.
9313         (rewrite_use_nonlinear_expr): Adjust.
9314         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
9315         * tree-ssa.c (release_defs_bitset): ... this.  New.
9316         * tree-flow.h (release_defs_bitset): Declare.
9317
9318 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9319
9320         PR debug/41232
9321         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
9322         in the middle block.
9323
9324 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
9325
9326         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
9327         via intptr_t to long type.
9328         (insert_operand_rank): Cast long type via intptr_t to
9329         pointer type.
9330         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
9331         pointer to scalar.
9332         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
9333         from pointer to unsigned via uintptr_t.
9334
9335         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
9336         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
9337         and HAVE_INTPTR_T.
9338         * configure: Regenerated.
9339         * config.in: Regenerated
9340         * system.h (stdint.h): Add include.
9341         (inttypes.h): Likewise.
9342         * Makefile.in (aclocal): Add config/stdint.m4.
9343         * aclocal.m4: Regenerated.
9344
9345 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
9346
9347         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
9348         variables.
9349         (note_np_check_stores): New function.
9350         (harmless_null_pointer_p): New function.
9351         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
9352         changed.  Take into account whether we're in the shadow of a condjump
9353         that tested NP_REG for NULL.
9354         Lose all code that tested for SEQUENCEs.
9355         (workaround_speculation): Avoid inserting NOPs for loads that are
9356         either always executed or a NULL pointer.
9357
9358 2009-09-08  Jan Hubicka  <jh@suse.cz>
9359
9360         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
9361         * params.def (early-inlining-insns): Likewise.
9362
9363 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
9364
9365         PR rtl-optimization/41239
9366         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
9367         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
9368         lists.
9369         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
9370         across calls, as the calls might not always return normally.
9371         (call_may_noreturn_p): New function.
9372         (deps_analyze_insn): Update last_function_call_may_noreturn list.
9373         (init_deps): Initialize it.
9374         (remove_from_deps): Also remove calls from
9375         last_function_call_may_noreturn list.
9376
9377 2009-09-07  Richard Henderson  <rth@redhat.com>
9378
9379         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
9380         more VR->OPERANDS than LHS operands.  Free LHS before returning.
9381
9382 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9383
9384         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
9385         (attr "addrtype"): New member "spreg".
9386         Use it if mem_spfp_address_operand is true for the address.
9387         (attr "type"): New entry "stall".
9388         (cpu_unit "load"): New.
9389         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
9390         "load".
9391         (insn_reservation "loadsp"): New.
9392         (insn_reservation "load_stall1"): New.
9393         (insn_reservation "load_stall3"): New.
9394         (stall): New insn.
9395         * config/bfin/predicates.md (const1_operand, const3_operand): New.
9396         (mem_p_address_operand): Exclude stack and frame pointer based
9397         addresses.
9398         (mem_spfp_address_operand): New; match them here.
9399         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
9400         (bfin_reorg): Call it if scheduling insns.
9401         (bfin_gen_bundles): Remove dummy insns created by
9402         add_sched_insns_for_speculation.
9403
9404         From Jie Zhang <jie.zhang@analog.com>:
9405         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
9406         bfin_si_revision, bfin_workarounds): Move these ...
9407         * config/bfin/bfin.h: ... here.
9408
9409         From Mike Frysinger  <michael.frysinger@analog.com>
9410         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
9411         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
9412         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
9413         bf547m, bf548m, and bf549m.
9414         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
9415         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
9416         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
9417         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
9418         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9419         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
9420         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9421         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9422         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
9423         bf542m, bf544m, bf547m, bf548m, and bf549m.
9424
9425         From Jie Zhang <jie.zhang@analog.com>:
9426         * config/bfin/predicates.md (p_register_operand): New predicate.
9427         (dp_register_operand): New predicate.
9428         * config/bfin/bfin-protos.h (WA_05000074): Define.
9429         (ENABLE_WA_05000074): Define.
9430         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
9431         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
9432         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
9433         (define_attr addrtype): Allow load/store register to be P register.
9434         (define_attr storereg): New.
9435         (define_cpu_unit anomaly_05000074): New.
9436         (define_insn_reservation dsp32shiftimm): New.
9437         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
9438         (define_insn_reservation loadp): Cannot use slot2.
9439         (define_insn_reservation loadsp): Cannot use slot2.
9440         (define_insn_reservation storep): Cannot use slot2. Does not
9441         apply when working around 05000074.
9442         (define_insn_reservation storep_anomaly_05000074): New.
9443         (define_insn_reservation storei): Does not apply when working
9444         around 05000074.
9445         (define_insn_reservation storei_anomaly_05000074): New.
9446         (define_attr length): Add dsp32shiftimm case.
9447         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
9448         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
9449         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
9450         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
9451         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
9452
9453 2009-09-07  Martin Jambor  <mjambor@suse.cz>
9454
9455         PR middle-end/41282
9456         * tree-sra.c (create_artificial_child_access): Return NULL if
9457         build_ref_for_offset fails.
9458         (propagate_subacesses_accross_link): Allow build_ref_for_offset
9459         and create_artificial_child_access to fail.
9460
9461 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
9462
9463         PR c++/41214
9464         * unwind-dw2.c (uw_init_context_1): Mark noinline.
9465         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
9466         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
9467
9468 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9469
9470         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
9471         block, ensure it has an exit edge.  Emit a barrier after a jump.
9472
9473 2009-09-07  Nick Clifton  <nickc@redhat.com>
9474
9475         * gcc.c (this_is_linker_script): New variable.  Like
9476         this_is_library_file but for the %T constructor.
9477         (end_going_arg): If this_is_linker_script is set then locate the
9478         script and insert a --script switch before it
9479         (do_spec_2): Initialise this_is_linker_script.
9480         (do_spec_1): Likewise.  Handle %T construct.
9481         (eval_spec_function): Preserve this_is_linker_script.
9482         * doc/invoke.texi: Document %T construct in spec files.
9483         * config/m32c/m32c.h (LIB_SPEC): Use it.
9484
9485 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9486
9487         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
9488         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
9489         when volatile flag is set.
9490         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
9491
9492 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9493
9494         PR bootstrap/41241
9495         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
9496         (combine_stack_adjustments_for_block): Allow insns between stack
9497         adjustments and stores with corresponding pre-(dec|inc)rement or
9498         pre-modify operation.
9499
9500 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
9501
9502         PR bootstrap/41241
9503         * combine-stack-adj.c (struct csa_memlist): Rename to...
9504         (struct csa_reflist): ... this.  Rename mem field to ref.
9505         (free_csa_memlist): Rename to...
9506         (free_csa_reflist): ... this.
9507         (record_one_stack_memref): Rename to...
9508         (record_one_stack_ref): ... this.  Handle also REG_P.
9509         (try_apply_stack_adjustment): Handle also REG_P.
9510         (struct record_stack_memrefs_data): Rename to...
9511         (struct record_stack_refs_data): ... this.  Rename memlist field to
9512         reflist.
9513         (record_stack_memrefs): Rename to...
9514         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
9515         subexpressions instead of failing when a MEM contains SP references.
9516         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
9517         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
9518
9519 2009-09-06  Richard Guenther  <rguenther@suse.de>
9520
9521         PR middle-end/41144
9522         * tree.c (build_array_type): Do not record types marked
9523         with structural equality in the canonical type hashtable.
9524
9525 2009-09-06  Richard Guenther  <rguenther@suse.de>
9526
9527         PR middle-end/41261
9528         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
9529
9530 2009-09-05  Richard Guenther  <rguenther@suse.de>
9531
9532         PR middle-end/41181
9533         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
9534
9535 2009-09-05  Richard Guenther  <rguenther@suse.de>
9536
9537         PR debug/41273
9538         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
9539
9540 2009-09-05  Richard Guenther  <rguenther@suse.de>
9541
9542         PR middle-end/41271
9543         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
9544         before comparing function argument types.
9545
9546 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9547
9548         PR target/41024
9549         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
9550         the assembler.
9551
9552 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9553
9554         Revert:
9555         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9556
9557         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9558         locators before emit_insn is called.
9559
9560 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
9561
9562         PR bootstrap/41241
9563         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
9564         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
9565         (reginfo_init): Don't call allocate_reg_info.
9566
9567 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9568
9569         PR target/41262
9570         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
9571         NONDEBUG_INSN_P instead of INSN_P.
9572
9573 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9574
9575         PR debug/41225
9576         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
9577
9578 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9579
9580         PR target/41252
9581         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
9582         pattern of the split.
9583
9584 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9585
9586         * toplev.c (process_options): Move setter of flag_var_tracking
9587         before other tests that depend on it.  Move down setter of
9588         flag_rename_registers.  Don't enable var-tracking-assignments
9589         by default if selective scheduling is enabled.  Warn if both
9590         are enabled.
9591
9592 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9593
9594         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
9595         comment.  Use switch statement to catch overlaps between rtx
9596         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
9597         (IS_DECL_CODE): ... here. Remove.
9598         (check_value_is_not_decl): Remove.
9599         (dv_from_decl, dv_from_value): Check after conversion.
9600
9601 2009-09-04  Richard Guenther  <rguenther@suse.de>
9602
9603         PR middle-end/41257
9604         * (cgraph_finalize_compilation_unit): Move finalizing aliases
9605         after emitting tunks.  Move emitting thunks and ctors from ...
9606         (cgraph_optimize): ... here.  Remove redundant
9607         cgraph_analyze_functions.
9608         * varasm.c (find_decl_and_mark_needed): Remove no longer
9609         necessary check.
9610         (finish_aliases_1): Adjust check for thunk aliases.
9611
9612 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
9613
9614         * config/arm/arm.md (ctzsi2): Added braces
9615         to avoid warning that broke booststrap.
9616
9617 2009-09-04  Martin Jambor  <mjambor@suse.cz>
9618
9619         PR tree-optimization/41112
9620         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
9621         handle variable-bounded arrays.
9622         (expr_with_var_bounded_array_refs_p): New function.
9623         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
9624
9625 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
9626
9627         * config/s390/2097.md: Removed two incorrect bypasses.
9628         (z10_fsimpdf): Fixed latency.
9629         (z10_fhex): New insn_reservation.
9630         (z10_floaddf): Fixed latency.
9631         (z10_floadsf): Fixed latency.
9632         (z10_ftrunctf): Fixed latency.
9633         (z10_ftruncdf): Fixed latency.
9634         * config/s390/s390.c (z10_cost): Fixed values.
9635         (s390_adjust_priority): Added z10 path.
9636         * config/s390/s390.md (type): Added fhex.
9637         (*mov<mode>_64dfp): Updated type attribute.
9638         (*mov<mode>_64): Updated type attribute.
9639         (*mov<mode>_31): Updated type attribute.
9640         (*mov<mode>"): Likewise.
9641         * config/s390/2084.md (x_fsimpdf): Updated condition.
9642
9643 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
9644
9645         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
9646         RTXs in the predicate for operand 1.
9647
9648 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
9649
9650         * config/arm/arm.md (UNSPEC_RBIT): New constant.
9651         (rbitsi2): New insn.
9652         (ctzsi2): New expand.
9653         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
9654
9655 2009-09-03  Martin Jambor  <mjambor@suse.cz>
9656
9657         * tree-sra.c (duplicate_expr_for_different_base): Removed.
9658         (create_artificial_child_access): Use build_ref_for_offset instead
9659         of duplicate_expr_for_different_base.
9660         (propagate_subacesses_accross_link): Likewise.
9661
9662 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
9663
9664         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
9665         of INSN_P.
9666         (mips16e_collect_argument_saves): Skip debug instructions.
9667         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
9668         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
9669         (r10k_insert_cache_barriers): Likewise.
9670         (mips_reorg_process_insns): Likewise.
9671
9672 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
9673
9674         PR bootstrap/41241
9675         * ira.c (update_equiv_reg): Remove check on class likely spill.
9676
9677 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
9678
9679         PR debug/41236
9680         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
9681         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
9682         it or SUBREG.
9683
9684         PR debug/41238
9685         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
9686         the stack slot if it is passed by invisible reference.
9687         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
9688         by invisible reference.
9689
9690 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
9691
9692         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9693         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9694         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
9695         0.
9696         * config/bfin/sync.md: New file.
9697         * config/bfin/bfin.md: Include it.
9698         (UNSPEC_ATOMIC): New.
9699         (UNSPEC_ONES): Provide a unique number.
9700
9701         From Jie Zhang <jie.zhang@analog.com>:
9702         * config/bfin/bfin.c (ret_regs): New.
9703         (must_save_fp_p): Don't return true because of frame_pointer_needed.
9704         (must_save_rets_p): New.
9705         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
9706         current_function_is_leaf.
9707         (do_link): Likewise.
9708         (do_unlink): Likewise.
9709         (expand_interrupt_handler_prologue): Use ret_regs array.
9710         (expand_interrupt_handler_epilogue): Use ret_regs array and
9711         pass return register to gen_return_internal.
9712         (bfin_expand_epilogue): Pass return register to
9713         gen_return_internal.
9714         (bfin_expand_call): Explicitly clobber RETS.
9715         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
9716         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
9717         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
9718         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
9719         RETS.
9720         (return_internal): Take a reg rtx rather than the register number.
9721
9722 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
9723
9724         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
9725         when comparing against estimated_loop_iterations_int return.
9726
9727 2009-09-03  Richard Guenther  <rguenther@suse.de>
9728
9729         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
9730         eh_personality_libfunc.
9731
9732 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9733
9734         * tree-parloops.c (separate_decls_in_region): Add space.
9735
9736 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9737
9738         * tree-parloops.c (separate_decls_in_region): Change the condition
9739         checking if there are reductions in the loop.
9740
9741 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9742
9743         PR tree-optimization/38275
9744         * tree-parloops.c (parallelize_loops): Replace profitability condition
9745         for expected number of iterations.
9746
9747 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9748
9749         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
9750         (bootstrap-debug): Explain conditions in which it becomes default.
9751         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
9752         make it add to it.
9753
9754 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
9755
9756         * doc/invoke.texi (Optimize Options): Move
9757         -finline-small-functions to the -O2 list.
9758
9759 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9760
9761         * toplev.c (process_options): Enable var-tracking-assignments
9762         by default if var-tracking is enabled.
9763
9764 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
9765
9766         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
9767         barrier.
9768         * emit-rtl.c (prev_nonnote_insn_bb): New function.
9769         * rtl.h (prev_nonnote_insn_bb): Declare it.
9770
9771 2009-09-03  Diego Novillo  <dnovillo@google.com>
9772
9773         * cgraph.c (cgraph_node_for_decl): New.
9774         * cgraph.h (cgraph_node_for_decl): Declare.
9775         * tree.c (host_integerp): Return 0 if T is NULL.
9776
9777 2009-09-03  Diego Novillo  <dnovillo@google.com>
9778
9779         * tree.h (struct alias_pair): Move from varasm.c.
9780         (alias_pairs): Likewise.
9781         (TYPE_MAXVAL): Define.
9782         (TYPE_MINVAL): Define.
9783         (iterative_hash_host_wide_int): Declare.
9784         (remove_unreachable_alias_pairs): Declare.
9785         * tree-pass.h (pass_ipa_free_lang_data): Declare.
9786         * diagnostic.c (default_diagnostic_starter): Make extern.
9787         (default_diagnostic_finalizer): Make extern.
9788         * diagnostic.h (default_diagnostic_starter): Declare.
9789         (default_diagnostic_finalizer): Declare.
9790         (default_tree_printer): Declare.
9791         * toplev.c (default_tree_printer): Make extern.
9792
9793 2009-09-03  Richard Guenther  <rguenther@suse.de>
9794             Diego Novillo  <dnovillo@google.com>
9795
9796         * cgraph.c (cgraph_add_new_function): Remove gimplification.
9797         * cgraphunit.c (cgraph_expand_function): Do not emit
9798         associated thunks from here.
9799         (cgraph_emit_thunks): New.
9800         (cgraph_optimize): Call it.
9801         Return if any IPA pass finds an error.
9802         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
9803         by thunks.
9804
9805 2009-09-03  Simon Baldwin  <simonb@google.com>
9806             Rafael Espindola  <espindola@google.com>
9807             Richard Guenther  <rguenther@suse.de>
9808             Doug Kwan  <dougkwan@google.com>
9809             Diego Novillo  <dnovillo@google.com>
9810
9811         * tree.c: Include tree-pass.h, langhooks-def.h,
9812         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
9813         (free_lang_data_in_type): New.
9814         (need_assembler_name_p): New.
9815         (free_lang_data_in_block): New.
9816         (free_lang_data_in_decl): New.
9817         (struct free_lang_data_d): New.
9818         (add_tree_to_fld_list): New.
9819         (find_decls_types_r): New.
9820         (get_eh_types_for_runtime): New.
9821         (find_decls_types_in_eh_region): New.
9822         (find_decls_types_in_node): New.
9823         (find_decls_types_in_var): New.
9824         (free_lang_data_in_cgraph): New.
9825         (free_lang_data): New.
9826         (gate_free_lang_data): New.
9827         (pass_ipa_free_lang_data): New.
9828
9829 2009-09-03  Diego Novillo  <dnovillo@google.com>
9830
9831         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
9832         * langhooks.h (struct lang_hooks): Add field free_lang_data.
9833         (lang_hooks): Remove const qualifier.
9834         * ipa.c (cgraph_remove_unreachable_nodes): Call
9835         remove_unreachable_alias_pairs.
9836         * except.c (add_type_for_runtime): Check if TYPE has
9837         already been converted.
9838         (lookup_type_for_runtime): Likewise.
9839         (check_handled): Handle converted types.
9840         * varasm.c (remove_unreachable_alias_pairs): New.
9841         * gimple.c: Include demangle.h.
9842         (gimple_decl_printable_name): New.
9843         (gimple_fold_obj_type_ref): New.
9844         * gimple.h (gimple_decl_printable_name): Declare.
9845         (gimple_fold_obj_type_ref): Declare.
9846         * passes.c (init_optimization_passes): Add pass
9847         pass_ipa_free_lang_data.
9848         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
9849         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
9850
9851 2009-09-03  Diego Novillo  <dnovillo@google.com>
9852
9853         * c-lang.c (lang_hooks): Remove const qualifier.
9854
9855 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
9856
9857         * doc/install.texi (*-*-freebsd*): Update target information.
9858
9859 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
9860
9861         * hard-reg-set.h (call_fixed_regs): Remove.
9862         * reginfo.c (call_fixed_regs): Remove.
9863         (init_reg_sets_1): Remove initialization of call_fixed_regs.
9864         (globalize_reg): Don't use call_fixed_regs.
9865         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
9866         call_fixed_regs.
9867
9868 2009-09-01  Michael Matz  <matz@suse.de>
9869
9870         * expr.h (emit_storent_insn, expand_expr_real_1,
9871         expand_expr_real_2): Declare.
9872         * expr.c (emit_storent_insn, expand_expr_real_1,
9873         expand_expr_real_2): Export.
9874         (store_expr): Setting and evaluating dont_return_target is useless.
9875         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
9876         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
9877         * except.c (expand_resx_expr): Rename to ...
9878         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
9879         * except.h (expand_resx_stmt): Declare.
9880         * stmt.c: Add include gimple.h
9881         (expand_asm_expr): Rename to ...
9882         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
9883         (expand_case): Rewrite to take gimple statement.
9884         * tree.h (expand_asm_stmt): Declare.
9885         (expand_case): Change prototype.
9886         * Makefile.in (stmt.o): Depend on gimple.h.
9887         * builtins.c (expand_builtin_synchronize): Build gimple asm
9888         statement, not an ASM_EXPR.
9889         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
9890         gimple_to_tree, release_stmt_tree): Remove.
9891         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
9892         ggc_free, but hold comparison code and operands separately.
9893         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
9894         (expand_call_stmt, expand_gimple_stmt_1,
9895         expand_gimple_stmt): New helpers.
9896         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
9897         release_stmt_tree.  Call expand_gimple_stmt instead.
9898         (expand_gimple_basic_block): Ditto.
9899
9900         * calls.c (emit_call_1): Don't look at EH regions here, make
9901         fntree parameter useless.
9902         (expand_call): New local rettype for TREE_TYPE(exp), use it
9903         throughout.  Remove local p, use addr instead.
9904         Don't look at EH regions here.
9905
9906 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
9907
9908         * doc/invoke.texi (-fsched-pressure): Document it.
9909         (-fsched-reg-pressure-heuristic): Remove it.
9910
9911         * reload.c (ira.h): Include.
9912         (find_reloads): Add choosing reload on number of small spilled
9913         classes.
9914
9915         * haifa-sched.c (ira.h): Include.
9916         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
9917         saved_reg_pressure, curr_reg_live, saved_reg_live,
9918         region_ref_regs): New variables.
9919         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
9920         initiate_reg_pressure_info, setup_ref_regs,
9921         initiate_bb_reg_pressure_info, save_reg_pressure,
9922         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
9923         functions.
9924         (setup_insn_reg_pressure_info): New function.
9925         (rank_for_schedule): Add pressure checking and insn issue time.
9926         Remove comparison of insn reg weights.
9927         (ready_sort): Set insn reg pressure info.
9928         (update_register_pressure, setup_insn_max_reg_pressure,
9929         update_reg_and_insn_max_reg_pressure,
9930         sched_setup_bb_reg_pressure_info): New functions.
9931         (schedule_insn): Add code for printing and updating reg pressure info.
9932         (find_set_reg_weight, find_insn_reg_weight): Remove.
9933         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
9934         (debug_ready_list): Print reg pressure info.
9935         (schedule_block): Ditto.  Check insn issue time.
9936         (sched_init): Set up sched_pressure_p.  Allocate and set up some
9937         reg pressure related info.
9938         (sched_finish): Free some reg pressure related info.
9939         (fix_tick_ready): Make insn always ready if pressure_p.
9940         (init_h_i_d): Don't call find_insn_reg_weight.
9941         (haifa_finish_h_i_d): Free insn reg pressure info.
9942
9943         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9944         ira_memory_move_cost, ira_class_hard_regs,
9945         ira_class_hard_regs_num, ira_no_alloc_regs,
9946         ira_available_class_regs, ira_reg_class_cover_size,
9947         ira_reg_class_cover, ira_class_translate): Move to ira.h.
9948
9949         * ira-lives.c (single_reg_class): Check mode to find how many
9950         registers are necessary for operand.
9951         (ira_implicitly_set_insn_hard_regs): New.
9952
9953         * common.opt (fsched-pressure): New options.
9954         (fsched-reg-pressure-heuristic): Remove.
9955
9956         * ira.c (setup_eliminable_regset): Rename to
9957         ira_setup_eliminable_regset.  Make it external.
9958         (expand_reg_info): Pass cover class to setup_reg_classes.
9959         (ira): Call resize_reg_info instead of allocate_reg_info.
9960
9961         * sched-deps.c: Include ira.h.
9962         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
9963         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
9964         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
9965         mark_insn_hard_regno_birth, mark_insn_reg_birth,
9966         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
9967         mark_insn_reg_store, mark_insn_reg_clobber,
9968         setup_insn_reg_pressure_info): New.
9969         (sched_analyze_1): Update implicit_reg_pending_uses.
9970         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
9971         Use them to create dependencies.  Set insn reg uses and pressure
9972         info.  Process reg_pending_uses in one place.
9973         (free_deps): Free implicit sets.
9974         (remove_from_deps): Remove implicit sets if necessary.  Check
9975         implicit sets when clearing reg_last_in_use.
9976         (init_deps_global): Clear implicit_reg_pending_clobbers and
9977         implicit_reg_pending_uses.
9978
9979         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
9980         ira_memory_move_cost, ira_class_hard_regs,
9981         ira_class_hard_regs_num, ira_no_alloc_regs,
9982         ira_available_class_regs, ira_reg_class_cover_size,
9983         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
9984         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
9985         ira_implicitly_set_insn_hard_regs): New prototypes.
9986
9987         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
9988         cost_elements_num): New variables.
9989         (allocno_costs, total_costs): Rename to costs and
9990         total_allocno_costs.
9991         (COSTS_OF_ALLOCNO): Rename to COSTS.
9992         (allocno_pref): Rename to pref.
9993         (allocno_pref_buffer): Rename to pref_buffer.
9994         (common_classes): Rename to regno_cover_class.
9995         (COST_INDEX): New.
9996         (record_reg_classes): Set allocno attributes only if allocno_p.
9997         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
9998         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
9999         and COSTS_OF_ALLOCNO.
10000         (print_costs): Rename to print_allocno_costs.
10001         (print_pseudo_costs): New.
10002         (process_bb_node_for_costs): Split into 2 functions with new
10003         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
10004         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
10005         new parameter dump_file.  Use cost_elements_num instead of
10006         ira_allocnos_num.  Make one iteration if preferred classes were
10007         already calculated for scheduler.  Make 2 versions of code
10008         depending on allocno_p.
10009         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
10010         regno_cover_class and COSTS instead of common_classes and
10011         COSTS_OF_ALLOCNO.
10012         (init_costs, finish_costs): New.
10013         (ira_costs): Set up allocno_p and cost_elements_num.  Call
10014         init_costs and finish_costs.
10015         (ira_set_pseudo_classes): New.
10016
10017         * rtl.h (allocate_reg_info): Remove.
10018         (resize_reg_info): Change return type.
10019         (reg_cover_class): New.
10020         (setup_reg_classes): Add new parameter.
10021
10022         * sched-int.h (struct deps_reg): New member implicit_sets.
10023         (sched_pressure_p, sched_regno_cover_class): New external definitions.
10024         (INCREASE_BITS): New macro.
10025         (struct reg_pressure_data, struct reg_use_data): New.
10026         (struct _haifa_insn_data): Remove reg_weight.  Add members
10027         reg_pressure, reg_use_list, reg_set_list, and
10028         reg_pressure_excess_cost_change.
10029         (struct deps): New member implicit_sets.
10030         (pressure_p): New variable.
10031         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
10032         (struct reg_pressure_data, struct reg_use_data): New.
10033         (INSN_REG_WEIGHT): Remove.
10034         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
10035         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
10036         (sched_init_region_reg_pressure_info,
10037         sched_setup_bb_reg_pressure_info): New prototypes.
10038
10039         * reginfo.c (struct reg_pref): New member coverclass.
10040         (reg_cover_class): New function.
10041         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
10042         (reg_info_size): New variable.
10043         (allocate_reg_info): Make static.  Setup reg_info_size.
10044         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
10045         (setup_reg_classes): Add a new parameter.  Setup cover class too.
10046
10047         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
10048         the dependencies.
10049
10050         * sched-rgn.c (deps_join): Set up implicit_sets.
10051         (schedule_region): Set up region and basic blocks pressure
10052         relative info.
10053
10054         * passes.c (init_optimization_passes): Move
10055         pass_subregs_of_mode_init before pass_sched.
10056
10057 2009-09-02  Martin Jambor  <mjambor@suse.cz>
10058
10059         * tree-sra.c (struct access): New field grp_hint.
10060         (dump_access): Dump grp_hint.
10061         (sort_and_splice_var_accesses): Set grp_hint if a group is read
10062         multiple times.
10063         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
10064         those which have been specifically read and somehow written to.
10065         (propagate_subacesses_accross_link): Set grp_hint of right child and
10066         also possibly of the left child.
10067
10068 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
10069
10070         * tree-object-size.c (addr_object_size): Always use object_size_type
10071         0 or 2 when determining the pointer pointed object size.
10072
10073 2009-09-02  Richard Guenther  <rguenther@suse.de>
10074
10075         Revert
10076         2009-08-31  Richard Guenther  <rguenther@suse.de>
10077
10078         * builtins.c (fold_builtin_memory_op): Use the alias oracle
10079         to query if the memory regions for memmove overlap.
10080         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10081         asserts on pointers, instead deal with odd trees.
10082         (ptr_derefs_may_alias_p): Likewise.
10083         (refs_may_alias_p_1): Constructor bases also never alias.
10084
10085 2009-08-01  Christian Bruel  <christian.bruel@st.com>
10086
10087         Revert:
10088         2009-07-31  Christian Bruel  <christian.bruel@st.com>
10089         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10090
10091 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
10092
10093         * doc/invoke.texi (-fvar-tracking-assignments): New.
10094         (-fvar-tracking-assignments-toggle): New.
10095         (-fdump-final-insns=file): Mark filename as optional.
10096         (--param min-nondebug-insn-uid): New.
10097         (-gdwarf-@{version}): Mention version 4.
10098         * opts.c (common_handle_option): Accept it.
10099         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
10100         * regrename.c (regrename_optimize): Drop last.  Don't count debug
10101         insns as uses.  Don't reject change because of debug insn.
10102         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
10103         from the chain starter, and check for inexact matches in DEBUG_INSNS.
10104         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
10105         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
10106         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
10107         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
10108         * doc/gimple.texi (is_gimple_debug): New.
10109         (gimple_debug_bind_p): New.
10110         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
10111         * doc/install.texi (bootstrap-debug): More details.
10112         (bootstrap-debug-big, bootstrap-debug-lean): Document.
10113         (bootstrap-debug-lib): More details.
10114         (bootstrap-debug-ckovw): Update.
10115         (bootstrap-time): New.
10116         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
10117         (insert_phi_nodes_for): Insert debug stmts.
10118         (rewrite_stmt): Take iterator.  Insert debug stmts.
10119         (rewrite_enter_block): Adjust.
10120         (maybe_replace_use_in_debug_stmt): New.
10121         (rewrite_update_stmt): Use it.
10122         (mark_use_interesting): Return early for debug stmts.
10123         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
10124         stmts before replacing stmt.
10125         (move_computations_stmt): Likewise.
10126         * ira-conflicts.c (add_copies): Skip debug insns.
10127         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
10128         (regstat_bb_compute_ri): Skip debug insns.
10129         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
10130         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
10131         check_loop_closed_ssa_stmt): Skip debug stmts.
10132         * tree-tailcall.c (find_tail_calls): Likewise.
10133         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10134         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
10135         (build_var_debug_value_stat): Declare.
10136         (build_var_debug_value): Define.
10137         (target_for_debug_bind): Declare.
10138         * reload.c (find_equiv_reg): Skip debug insns.
10139         * rtlanal.c (reg_used_between_p): Skip debug insns.
10140         (side_effects_p): Likewise.
10141         (canonicalize_condition): Likewise.
10142         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
10143         insns never depend on debug insns.
10144         (create_ddg_dep_no_link): Likewise.
10145         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
10146         Don't add inter-loop dependencies for debug insns.
10147         (build_intra_loop_deps): Likewise.
10148         (create_ddg): Count debug insns.
10149         * ddg.h (struct ddg::num_debug): New.
10150         (num_backargs): Pair up with previous int field.
10151         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
10152         -fcompare-debug-second.
10153         * final.c (get_attr_length_1): Skip debug insns.
10154         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
10155         * gcc.c (invoke_as): Call compare-debug-dump-opt.
10156         (driver_self_specs): Map -fdump-final-insns to
10157         -fdump-final-insns=..
10158         (get_local_tick): New.
10159         (compare_debug_dump_opt_spec_function): Test for . argument and
10160         compute output name.  Compute temp output spec without flag name.
10161         Compute -frandom-seed.
10162         (OPT): Undef after use.
10163         * cfgloopanal.c (num_loop_insns): Skip debug insns.
10164         (average_num_loop_insns): Likewise.
10165         * params.h (MIN_NONDEBUG_INSN_UID): New.
10166         * gimple.def (GIMPLE_DEBUG): New.
10167         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
10168         * auto-inc-dec.c (merge_in_block): Skip debug insns.
10169         (merge_in_block): Fix whitespace.
10170         * toplev.c (flag_var_tracking): Update comment.
10171         (flag_var_tracking_assignments): New.
10172         (flag_var_tracking_assignments_toggle): New.
10173         (process_options): Don't open final insns dump file if we're not
10174         going to write to it.  Compute defaults for var_tracking.
10175         * df-scan.c (df_insn_rescan_debug_internal): New.
10176         (df_uses_record): Handle debug insns.
10177         * haifa-sched.c (ready): Initialize n_debug.
10178         (contributes_to_priority): Skip debug insns.
10179         (dep_list_size): New.
10180         (priority): Use it.
10181         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
10182         they're ready.  Disregard previous debug insns to make decisions.
10183         (queue_insn): Never queue debug insns.
10184         (ready_add, ready_remove_first, ready_remove): Count debug insns.
10185         (schedule_insn): Don't reject debug insns because of issue rate.
10186         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
10187         (queue_to_ready): Skip and discount debug insns.
10188         (choose_ready): Let debug insns through.
10189         (schedule_block): Check boundary debug insns.  Discount debug
10190         insns, schedule them early.  Adjust whitespace.
10191         (set_priorities): Check for boundary debug insns.
10192         (add_jump_dependencies): Use dep_list_size.
10193         (prev_non_location_insn): New.
10194         (check_cfg): Use it.
10195         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
10196         stmts.
10197         (remove_unused_ivs): Reset debug stmts.
10198         * modulo-sched.c (const_iteration_count): Skip debug insns.
10199         (res_MII): Discount debug insns.
10200         (loop_single_full_bb_p): Skip debug insns.
10201         (sms_schedule): Likewise.
10202         (sms_schedule_by_order): Likewise.
10203         (ps_has_conflicts): Likewise.
10204         * caller-save.c (refmarker_fn): New.
10205         (save_call_clobbered_regs): Replace regs with saved mem in
10206         debug insns.
10207         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
10208         Call refmarker_fn mark for hardregnos.
10209         (mark_reg_as_referenced): New.
10210         (replace_reg_with_saved_mem): New.
10211         * ipa-pure-const.c (check_stmt): Skip debug stmts.
10212         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
10213         searching back.
10214         (cse_extended_basic_block): Skip debug insns.
10215         (count_reg_usage): Likewise.
10216         (is_dead_reg): New, split out of...
10217         (set_live_p): ... here.
10218         (insn_live_p): Use it for debug insns.
10219         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
10220         (execute_optimize_stdarg): Likewise.
10221         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10222         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
10223         changes in debug stmts as changes.
10224         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
10225         (moveup_expr): Don't move across debug insns.  Don't move
10226         debug insn if it would create a bookkeeping block.
10227         (moveup_expr_cached): Don't use cache for debug insns that
10228         are heads of blocks.
10229         (compute_av_set_inside_bb): Skip debug insns.
10230         (sel_rank_for_schedule): Schedule debug insns first.  Remove
10231         dead code.
10232         (block_valid_for_bookkeeping_p); Support lax searches.
10233         (create_block_for_bookkeeping): Adjust block numbers when
10234         encountering debug-only blocks.
10235         (find_place_for_bookkeeping): Deal with debug-only blocks.
10236         (generate_bookkeeping_insn): Accept no place to insert.
10237         (remove_temp_moveop_nops): New argument full_tidying.
10238         (prepare_place_to_insert): Deal with debug insns.
10239         (advance_state_on_fence): Debug insns don't start cycles.
10240         (update_boundaries): Take fence as argument.  Deal with
10241         debug insns.
10242         (schedule_expr_on_boundary): No full_tidying on debug insns.
10243         (fill_insns): Deal with debug insns.
10244         (track_scheduled_insns_and_blocks): Don't count debug insns.
10245         (need_nop_to_preserve_insn_bb): New, split out of...
10246         (remove_insn_from_stream): ... this.
10247         (fur_orig_expr_not_found): Skip debug insns.
10248         * rtl.def (VALUE): Move up.
10249         (DEBUG_INSN): New.
10250         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
10251         (nearest_common_dominator_of_uses): Take debug_stmts argument.
10252         Set it if debug stmts are found.
10253         (statement_sink_location): Skip debug stmts.  Propagate
10254         moving defs into debug stmts.
10255         * ifcvt.c (first_active_insn): Skip debug insns.
10256         (last_active_insns): Likewise.
10257         (cond_exec_process_insns): Likewise.
10258         (noce_process_if_block): Likewise.
10259         (check_cond_move_block): Likewise.
10260         (cond_move_convert_if_block): Likewise.
10261         (block_jumps_and_fallthru_p): Likewise.
10262         (dead_or_predicable): Likewise.
10263         * dwarf2out.c (debug_str_hash_forced): New.
10264         (find_AT_string): Add comment.
10265         (gen_label_for_indirect_string): New.
10266         (get_debug_string_label): New.
10267         (AT_string_form): Use it.
10268         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
10269         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
10270         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
10271         several operations that cannot be represented with DWARF opcodes.
10272         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
10273         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
10274         (dwarf2out_var_location): Take during-call mark into account.
10275         (output_indirect_string): Update comment.  Output if there are
10276         label and references.
10277         (prune_indirect_string): New.
10278         (prune_unused_types): Call it if debug_str_hash_forced.
10279         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
10280         (dw_long_long_const): Remove.
10281         (struct dw_val_struct): Change val_long_long type to rtx.
10282         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
10283         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
10284         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
10285         component instead of HOST_BITS_PER_LONG.
10286         (output_loc_operands): Likewise.  For const8* assert
10287         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
10288         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
10289         rather than HOST_BITS_PER_LONG is >= 64.
10290         (add_AT_long_long): Remove val_hi and val_lo arguments, add
10291         val_const_double.
10292         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
10293         HOST_BITS_PER_LONG for dw_val_class_long_long.
10294         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
10295         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
10296         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
10297         DW_OP_stack_value.
10298         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10299         Handle DW_OP_implicit_value.
10300         (extract_int): Move prototype earlier.
10301         (mem_loc_descriptor): For SUBREG punt if inner
10302         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
10303         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
10304         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
10305         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
10306         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
10307         instead of Pmode size.
10308         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
10309         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
10310         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
10311         (concat_loc_descriptor, concatn_loc_descriptor,
10312         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
10313         (add_location_or_const_value_attribute): Likewise.  For single
10314         location loc_lists attempt to use add_const_value_attribute
10315         for constant decls.  Add DW_AT_const_value even if
10316         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
10317         in its expression.
10318         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
10319         (control_flow_insn_p): Likewise.
10320         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
10321         (separate_decls_in_region_debug_bind): New.
10322         (separate_decls_in_region): Process debug bind stmts afterwards.
10323         * recog.c (verify_changes): Handle debug insns.
10324         (extract_insn): Likewise.
10325         (peephole2_optimize): Skip debug insns.
10326         * dse.c (scan_insn): Skip debug insns.
10327         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
10328         Pass it on.
10329         (setup_id_for_insn): Handle debug insns.
10330         (maybe_tidy_empty_bb): Adjust whitespace.
10331         (tidy_control_flow): Skip debug insns.
10332         (sel_remove_insn): Adjust for debug insns.
10333         (sel_estimate_number_of_insns): Skip debug insns.
10334         (create_insn_rtx_from_pattern): Handle debug insns.
10335         (create_copy_of_insn_rtx): Likewise.
10336         * sel-sched-.h (sel_bb_end): Declare.
10337         (sel_bb_empty_or_nop_p): New.
10338         (get_all_loop_exits): Use it.
10339         (_eligible_successor_edge_p): Likewise.
10340         (return_nop_to_pool): Adjust.
10341         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
10342         * ira-lives.c (process_bb_node_lives): Skip debug insns.
10343         * gimple-pretty-print.c (dump_gimple_debug): New.
10344         (dump_gimple_stmt): Use it.
10345         (dump_bb_header): Skip gimple debug stmts.
10346         * regmove.c (optimize_reg_copy_1): Discount debug insns.
10347         (fixup_match_2): Likewise.
10348         (regmove_backward_pass): Likewise.  Simplify combined
10349         replacement.  Handle debug insns.
10350         * function.c (instantiate_virtual_regs): Handle debug insns.
10351         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
10352         * print-rtl.h: Include cselib.h.
10353         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
10354         * df.h (df_inns_rescan_debug_internal): Declare.
10355         * gcse.c (alloc_hash_table): Estimate n_insns.
10356         (cprop_insn): Don't regard debug insns as changes.
10357         (bypass_conditional_jumps): Skip debug insns.
10358         (one_pre_gcse_pass): Adjust.
10359         (one_code_hoisting_pass): Likewise.
10360         (compute_ld_motion_mems): Skip debug insns.
10361         (one_cprop_pass): Adjust.
10362         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
10363         (if_convertible_stmt_p): Handle debug stmts.
10364         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
10365         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
10366         * ira-build.c (create_bb_allocnos): Skip debug insns.
10367         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
10368         (has_single_use): Likewise.
10369         (single_imm_use): Likewise.
10370         (num_imm_uses): Likewise.
10371         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
10372         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
10373         (create_outofssa_var_map): Likewise.
10374         * lower-subreg.c (adjust_decomposed_uses): New.
10375         (resolve_debug): New.
10376         (decompose_multiword_subregs): Use it.
10377         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
10378         * emit-rtl.c: Include params.h.
10379         (cur_debug_insn_uid): Define.
10380         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
10381         (copy_rtx_if_shared_1): Handle debug insns.
10382         (reset_used_flags): Likewise.
10383         (set_used_flags): LIkewise.
10384         (get_max_insn_count): New.
10385         (next_nondebug_insn): New.
10386         (prev_nondebug_insn): New.
10387         (make_debug_insn_raw): New.
10388         (emit_insn_before_noloc): Handle debug insns.
10389         (emit_jump_insn_before_noloc): Likewise.
10390         (emit_call_insn_before_noloc): Likewise.
10391         (emit_debug_insn_before_noloc): New.
10392         (emit_insn_after_noloc): Handle debug insns.
10393         (emit_jump_insn_after_noloc): Likewise.
10394         (emit_call_insn_after_noloc): Likewise.
10395         (emit_debug_insn_after_noloc): Likewise.
10396         (emit_insn_after): Take loc from earlier non-debug insn.
10397         (emit_jump_insn_after): Likewise.
10398         (emit_call_insn_after): Likewise.
10399         (emit_debug_insn_after_setloc): New.
10400         (emit_debug_insn_after): New.
10401         (emit_insn_before): Take loc from later non-debug insn.
10402         (emit_jump_insn_before): Likewise.
10403         (emit_call_insn_before): Likewise.
10404         (emit_debug_insn_before_setloc): New.
10405         (emit_debug_insn_before): New.
10406         (emit_insn): Handle debug insns.
10407         (emit_debug_insn): New.
10408         (emit_jump_insn): Handle debug insns.
10409         (emit_call_insn): Likewise.
10410         (emit): Likewise.
10411         (init_emit): Take min-nondebug-insn-uid into account.
10412         Initialize cur_debug_insn_uid.
10413         (emit_copy_of_insn_after): Handle debug insns.
10414         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
10415         location of single rhs in place.
10416         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
10417         (floor_sdiv_adjust): New.
10418         (cell_sdiv_adjust): New.
10419         (cell_udiv_adjust): New.
10420         (round_sdiv_adjust): New.
10421         (round_udiv_adjust): New.
10422         (wrap_constant): Moved from cselib.
10423         (unwrap_constant): New.
10424         (expand_debug_expr): New.
10425         (expand_debug_locations): New.
10426         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
10427         debug bind stmts.
10428         (gimple_expand_cfg): Expand debug locations.
10429         * cselib.c: Include tree-pass.h.
10430         (struct expand_value_data): New.
10431         (cselib_record_sets_hook): New.
10432         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
10433         (cselib_clear_table): Move, and implemnet in terms of...
10434         (cselib_reset_table_with_next_value): ... this.
10435         (cselib_get_next_unknown_value): New.
10436         (discard_useless_locs): Don't discard preserved values.
10437         (cselib_preserve_value): New.
10438         (cselib_preserved_value_p): New.
10439         (cselib_preserve_definitely): New.
10440         (cselib_clear_preserve): New.
10441         (cselib_preserve_only_values): New.
10442         (new_cselib_val): Take rtx argument.  Dump it in details.
10443         (cselib_lookup_mem): Adjust.
10444         (expand_loc): Take regs_active in struct.  Adjust.  Silence
10445         dumps unless details are requested.
10446         (cselib_expand_value_rtx_cb): New.
10447         (cselib_expand_value_rtx): Rename and reimplment in terms of...
10448         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
10449         without details.  Copy more subregs.  Try to resolve values
10450         using a callback.  Wrap constants.
10451         (cselib_subst_to_values): Adjust.
10452         (cselib_log_lookup): New.
10453         (cselib_lookup): Call it.
10454         (cselib_invalidate_regno): Don't count preserved values as useless.
10455         (cselib_invalidate_mem): Likewise.
10456         (cselib_record_set): Likewise.
10457         (struct set): Renamed to cselib_set, moved to cselib.h.
10458         (cselib_record_sets): Adjust.  Call hook.
10459         (cselib_process_insn): Reset table when it would be cleared.
10460         (dump_cselib_val): New.
10461         (dump_cselib_table): New.
10462         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
10463         (remove_forwarder_block): Support moving debug stmts.
10464         * cselib.h (cselib_record_sets_hook): Declare.
10465         (cselib_expand_callback): New type.
10466         (cselib_expand_value_rtx_cb): Declare.
10467         (cselib_reset_table_with_next_value): Declare.
10468         (cselib_get_next_unknown_value): Declare.
10469         (cselib_preserve_value): Declare.
10470         (cselib_preserved_value_p): Declare.
10471         (cselib_preserve_only_values): Declare.
10472         (dump_cselib_table): Declare.
10473         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
10474         (try_crossjump_to_edge): Likewise.
10475         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
10476         dominated blocks when debug stmts are present.
10477         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
10478         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
10479         (set_var_live_on_entry): Likewise.
10480         * loop-invariant.c (find_invariants_bb): Skip debug insns.
10481         * cfglayout.c (curr_location, last_location): Make static.
10482         (set_curr_insn_source_location): Don't avoid bouncing.
10483         (get_curr_insn_source_location): New.
10484         (get_curr_insn_block): New.
10485         (duplicate_insn_chain): Handle debug insns.
10486         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
10487         into debug stmts.
10488         * common.opt (fcompare-debug): Move to sort order.
10489         (fdump-unnumbered-links): Likewise.
10490         (fvar-tracking-assignments): New.
10491         (fvar-tracking-assignments-toggle): New.
10492         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
10493         because of debug stmts.
10494         (mark_stmt_if_obviously_necessary): Mark debug stmts.
10495         (eliminate_unnecessary_stmts): Walk dominated blocks before
10496         dominators.
10497         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
10498         * ira.c (memref_used_between_p): Skip debug insns.
10499         (update_equiv_regs): Likewise.
10500         * sched-deps.c (sd_lists_size): Accept empty list.
10501         (sd_init_insn): Mark debug insns.
10502         (sd_finish_insn): Unmark them.
10503         (sd_add_dep): Reject non-debug deps on debug insns.
10504         (fixup_sched_groups): Give debug insns group treatment.
10505         Skip debug insns.
10506         (sched_analyze_reg): Don't mark debug insns for sched before call.
10507         (sched_analyze_2): Handle debug insns.
10508         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
10509         insns.
10510         (deps_analyze_insn): Handle debug insns.
10511         (deps_start_bb): Skip debug insns.
10512         (init_deps): Initialize last_debug_insn.
10513         * tree-ssa.c (target_for_debug_bind): New.
10514         (find_released_ssa_name): New.
10515         (propagate_var_def_into_debug_stmts): New.
10516         (propagate_defs_into_debug_stmts): New.
10517         (verify_ssa): Skip debug bind stmts without values.
10518         (warn_uninialized_vars): Skip debug stmts.
10519         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
10520         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
10521         (rtx_equal_p): Likewise.
10522         * ira-costs.c (scan_one_insn): Skip debug insns.
10523         (process_bb_node_for_hard_reg_moves): Likewise.
10524         * rtl.h (DEBUG_INSN_P): New.
10525         (NONDEBUG_INSN_P): New.
10526         (MAY_HAVE_DEBUG_INSNS): New.
10527         (INSN_P): Accept debug insns.
10528         (RTX_FRAME_RELATED_P): Likewise.
10529         (INSN_DELETED_P): Likewise
10530         (PAT_VAR_LOCATION_DECL): New.
10531         (PAT_VAR_LOCATION_LOC): New.
10532         (PAT_VAR_OCATION_STATUS): New.
10533         (NOTE_VAR_LOCATION_DECL): Reimplement.
10534         (NOTE_VAR_LOCATION_LOC): Likewise.
10535         (NOTE_VAR_LOCATION_STATUS): Likewise.
10536         (INSN_VAR_LOCATION): New.
10537         (INSN_VAR_LOCATION_DECL): New.
10538         (INSN_VAR_LOCATION_LOC): New.
10539         (INSN_VAR_LOCATION_STATUS): New.
10540         (gen_rtx_UNKNOWN_VAR_LOC): New.
10541         (VAR_LOC_UNKNOWN_P): New.
10542         (NOTE_DURING_CALL_P): New.
10543         (SCHED_GROUP_P): Accept debug insns.
10544         (emit_debug_insn_before): Declare.
10545         (emit_debug_insn_before_noloc): Declare.
10546         (emit_debug_insn_beore_setloc): Declare.
10547         (emit_debug_insn_after): Declare.
10548         (emit_debug_insn_after_noloc): Declare.
10549         (emit_debug_insn_after_setloc): Declare.
10550         (emit_debug_insn): Declare.
10551         (make_debug_insn_raw): Declare.
10552         (prev_nondebug_insn): Declare.
10553         (next_nondebug_insn): Declare.
10554         (delegitimize_mem_from_attrs): Declare.
10555         (get_max_insn_count): Declare.
10556         (wrap_constant): Declare.
10557         (unwrap_constant): Declare.
10558         (get_curr_insn_source_location): Declare.
10559         (get_curr_insn_block): Declare.
10560         * tree-inline.c (insert_debug_decl_map): New.
10561         (processing_debug_stmt): New.
10562         (remap_decl): Don't create new mappings in debug stmts.
10563         (remap_gimple_op_r): Don't add references in debug stmts.
10564         (copy_tree_body_r): Likewise.
10565         (remap_gimple_stmt): Handle debug bind stmts.
10566         (copy_bb): Skip debug stmts.
10567         (copy_edges_for_bb): Likewise.
10568         (copy_debug_stmt): New.
10569         (copy_debug_stmts): New.
10570         (copy_body): Copy debug stmts at the end.
10571         (insert_init_debug_bind): New.
10572         (insert_init_stmt): Take id.  Skip and emit debug stmts.
10573         (setup_one_parameter): Remap variable earlier, register debug mapping.
10574         (estimate_num_insns): Skip debug stmts.
10575         (expand_call_inline): Preserve debug_map.
10576         (optimize_inline_calls): Check for no debug_stmts left-overs.
10577         (unsave_expr_now): Preserve debug_map.
10578         (copy_gimple_seq_and_replace_locals): Likewise.
10579         (tree_function_versioning): Check for no debug_stmts left-overs.
10580         Init and destroy debug_map as needed.  Split edges unconditionally.
10581         (build_duplicate_type): Init and destroy debug_map as needed.
10582         * tree-inline.h: Include gimple.h instead of pointer-set.h.
10583         (struct copy_body_data): Add debug_stmts and debug_map.
10584         * sched-int.h (struct ready_list): Add n_debug.
10585         (struct deps): Add last_debug_insn.
10586         (DEBUG_INSN_SCHED_P): New.
10587         (BOUNDARY_DEBUG_INSN_P): New.
10588         (SCHEDULE_DEBUG_INSN_P): New.
10589         (sd_iterator_cond): Accept empty list.
10590         * combine.c (create_log_links): Skip debug insns.
10591         (combine_instructions): Likewise.
10592         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
10593         return value is always unshared.
10594         (struct rtx_subst_pair): New.
10595         (auto_adjust_pair): New.
10596         (propagate_for_debug_subst): New.
10597         (propagate_for_debug): New.
10598         (try_combine): Skip debug insns.  Propagate removed defs into
10599         debug insns.
10600         (next_nonnote_nondebug_insn): New.
10601         (distribute_notes): Use it.  Skip debug insns.
10602         (distribute_links): Skip debug insns.
10603         * tree-outof-ssa.c (set_location_for_edge): Likewise.
10604         * resource.c (mark_target_live_regs): Likewise.
10605         * var-tracking.c: Include cselib.h and target.h.
10606         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
10607         MO_VAL_SET.
10608         (micro_operation_type_name): New.
10609         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
10610         (struct micro_operation_def): Update comments.
10611         (decl_or_value): New type.  Use instead of decls.
10612         (struct emit_note_data_def): Add vars.
10613         (struct attrs_def): Use decl_or_value.
10614         (struct variable_tracking_info_def): Add permp, flooded.
10615         (struct location_chain_def): Update comment.
10616         (struct variable_part_def): Use decl_or_value.
10617         (struct variable_def): Make var_part a variable length array.
10618         (valvar_pool): New.
10619         (scratch_regs): New.
10620         (cselib_hook_called): New.
10621         (dv_is_decl_p): New.
10622         (dv_is_value_p): New.
10623         (dv_as_decl): New.
10624         (dv_as_value): New.
10625         (dv_as_opaque): New.
10626         (dv_onepart_p): New.
10627         (dv_pool): New.
10628         (IS_DECL_CODE): New.
10629         (check_value_is_not_decl): New.
10630         (dv_from_decl): New.
10631         (dv_from_value): New.
10632         (dv_htab_hash): New.
10633         (variable_htab_hash): Use it.
10634         (variable_htab_eq): Support values.
10635         (variable_htab_free): Free from the right pool.
10636         (attrs_list_member, attrs_list_insert): Use decl_or_value.
10637         (attrs_list_union): Adjust.
10638         (attrs_list_mpdv_union): New.
10639         (tie_break_pointers): New.
10640         (canon_value_cmp): New.
10641         (unshare_variable): Return possibly-modified slot.
10642         (vars_copy_1): Adjust.
10643         (var_reg_decl_set): Adjust.  Split out of...
10644         (var_reg_set): ... this.
10645         (get_init_value): Adjust.
10646         (var_reg_delete_and_set): Adjust.
10647         (var_reg_delete): Adjust.
10648         (var_regno_delete): Adjust.
10649         (var_mem_decl_set): Split out of...
10650         (var_mem_set): ... this.
10651         (var_mem_delete_and_set): Adjust.
10652         (var_mem_delete): Adjust.
10653         (val_store): New.
10654         (val_reset): New.
10655         (val_resolve): New.
10656         (variable_union): Adjust.  Speed up merge of 1-part vars.
10657         (variable_canonicalize): Use unshared slot.
10658         (VALUED_RECURSED_INTO): New.
10659         (find_loc_in_1pdv): New.
10660         (struct dfset_merge): New.
10661         (insert_into_intersection): New.
10662         (intersect_loc_chains): New.
10663         (loc_cmp): New.
10664         (canonicalize_loc_order_check): New.
10665         (canonicalize_values_mark): New.
10666         (canonicalize_values_star): New.
10667         (variable_merge_over_cur): New.
10668         (variable_merge_over_src): New.
10669         (dataflow_set_merge): New.
10670         (dataflow_set_equiv_regs): New.
10671         (remove_duplicate_values): New.
10672         (struct dfset_post_merge): New.
10673         (variable_post_merge_new_vals): New.
10674         (variable_post_merge_perm_vals): New.
10675         (dataflow_post_merge_adjust): New.
10676         (find_mem_expr_in_1pdv): New.
10677         (dataflow_set_preserve_mem_locs): New.
10678         (dataflow_set_remove_mem_locs): New.
10679         (dataflow_set_clear_at_call): New.
10680         (onepart_variable_different_p): New.
10681         (variable_different_p): Use it.
10682         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
10683         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
10684         if not needed.
10685         (track_loc_p): Pass it true.
10686         (struct count_use_info): New.
10687         (find_use_val): New.
10688         (replace_expr_with_values): New.
10689         (log_op_type): New.
10690         (use_type): New, partially split out of...
10691         (count_uses): ... this.  Count new micro-ops.
10692         (count_uses_1): Adjust.
10693         (count_stores): Adjust.
10694         (count_with_sets): New.
10695         (VAL_NEEDS_RESOLUTION): New.
10696         (VAL_HOLDS_TRACK_EXPR): New.
10697         (VAL_EXPR_IS_COPIED): New.
10698         (VAL_EXPR_IS_CLOBBERED): New.
10699         (add_uses): Adjust.  Generate new micro-ops.
10700         (add_uses_1): Adjust.
10701         (add_stores): Generate new micro-ops.
10702         (add_with_sets): New.
10703         (find_src_status): Adjust.
10704         (find_src_set_src): Adjust.
10705         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
10706         Handle new micro-ops.  Canonicalize value equivalances.
10707         (vt_find_locations): Compute total size of hash tables for
10708         dumping.  Perform merge for var-tracking-assignments.  Don't
10709         disregard single-block loops.
10710         (dump_attrs_list): Handle decl_or_value.
10711         (dump_variable): Take variable.  Deal with decl_or_value.
10712         (dump_variable_slot): New.
10713         (dump_vars): Use it.
10714         (dump_dataflow_sets): Adjust.
10715         (set_slot_part): New, extended to support one-part variables
10716         after splitting out of...
10717         (set_variable_part): ... this.
10718         (clobber_slot_part): New, split out of...
10719         (clobber_variable_part): ... this.
10720         (delete_slot_part): New, split out of...
10721         (delete_variable_part): .... this.
10722         (check_wrap_constant): New.
10723         (vt_expand_loc_callback): New.
10724         (vt_expand_loc): New.
10725         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
10726         EMIT_NOTE_AFTER_CALL_INSN.
10727         (emit_notes_for_differences_1): Adjust.  Handle values.
10728         (emit_notes_for_differences_2): Likewise.
10729         (emit_notes_for_differences): Adjust.
10730         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
10731         Adjust.  Handle new micro-ops.
10732         (vt_add_function_parameters): Adjust.  Create and bind values.
10733         (vt_initialize): Adjust.  Initialize scratch_regs and
10734         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
10735         operations.  Move some code to count_with_sets and add_with_sets.
10736         (delete_debug_insns): New.
10737         (vt_debug_insns_local): New.
10738         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
10739         cselib.
10740         (var_tracking_main): If var-tracking-assignments is enabled
10741         but var-tracking isn't, delete debug insns and leave.  Likewise
10742         if we exceed limits or fail the stack adjustments tests, and
10743         after all var-tracking processing.
10744         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
10745         (dataflow_set): Add traversed_vars.
10746         (value_chain, const_value_chain): New typedefs.
10747         (value_chain_pool, value_chains): New variables.
10748         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
10749         add_value_chains, add_cselib_value_chains, remove_value_chain,
10750         remove_value_chains, remove_cselib_value_chains): New functions.
10751         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
10752         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
10753         static inlines.
10754         (shared_hash_find_slot_unshare, shared_hash_find_slot,
10755         shared_hash_find_slot_noinsert, shared_hash_find): Update.
10756         (dst_can_be_shared): New variable.
10757         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
10758         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
10759         different from set->vars, look up slot again instead of using the
10760         passed in slot.
10761         (dataflow_set_init): Initialize traversed_vars.
10762         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
10763         lookup if set->vars is shared.  Don't keep slot cleared before
10764         calling unshare_variable.  Unshare set->vars if needed.  Adjust
10765         unshare_variable callers.  Clear dst_can_be_shared if needed.
10766         Even ->refcount == 1 vars must be unshared if set->vars is shared
10767         and var needs to be modified.
10768         (dataflow_set_union): Set traversed_vars during canonicalization.
10769         (VALUE_CHANGED, DECL_CHANGED): Define.
10770         (set_dv_changed, dv_changed_p): New static inlines.
10771         (track_expr_p): Clear DECL_CHANGED.
10772         (dump_dataflow_sets): Set it.
10773         (variable_was_changed): Call set_dv_changed.
10774         (emit_note_insn_var_location): Likewise.
10775         (changed_variables_stack): New variable.
10776         (check_changed_vars_1, check_changed_vars_2): New functions.
10777         (emit_notes_for_changes): Do nothing if changed_variables is
10778         empty.  Traverse changed_variables with check_changed_vars_1,
10779         call check_changed_vars_2 on each changed_variables_stack entry.
10780         (emit_notes_in_bb): Add SET argument.  Just clear it at the
10781         beginning, use it instead of local &set, don't destroy it at the end.
10782         (vt_emit_notes): Call dataflow_set_clear early on all
10783         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
10784         computed set, dataflow_set_clear also VTI(bb)->in when we are
10785         done with the basic block.  Initialize changed_variables_stack,
10786         free it afterwards.  If ENABLE_CHECKING verify that after noting
10787         differences to an empty set value_chains hash table is empty.
10788         (vt_initialize): Initialize value_chains and value_chain_pool.
10789         (vt_finalize): Delete value_chains htab, free value_chain_pool.
10790         (variable_tracking_main): Call dump_dataflow_sets before calling
10791         vt_emit_notes, not after it.
10792         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
10793         (propagate_var_def_into_debug_stmts): Declare.
10794         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
10795         (df_set_note): Reject debug insns.
10796         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
10797         add notes to debug insns.
10798         (df_note_bb_compute): Adjust.  Likewise.
10799         (df_simulate_uses): Skip debug insns.
10800         (df_simulate_initialize_backwards): Likewise.
10801         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
10802         (subst_stack_regs_pat): Reject debug insns.
10803         (convert_regs_1): Handle debug insns.
10804         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
10805         (print-rtl.o): Depend on cselib.h.
10806         (cselib.o): Depend on TREE_PASS_H.
10807         (var-tracking.o): Depend on cselib.h and TARGET_H.
10808         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
10809         (init_ready_list): Skip boundary debug insns.
10810         (add_branch_dependences): Skip debug insns.
10811         (free_block_dependencies): Check for blocks with only debug insns.
10812         (compute_priorities): Likewise.
10813         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
10814         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
10815         all callers.
10816         (gimple_build_debug_bind_stat): New.
10817         (empty_body_p): Skip debug stmts.
10818         (gimple_has_side_effects): Likewise.
10819         (gimple_rhs_has_side_effects): Likewise.
10820         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
10821         (gimple_build_debug_bind_stat): Declare.
10822         (gimple_build_debug_bind): Define.
10823         (is_gimple_debug): New.
10824         (gimple_debug_bind_p): New.
10825         (gimple_debug_bind_get_var): New.
10826         (gimple_debug_bind_get_value): New.
10827         (gimple_debug_bind_get_value_ptr): New.
10828         (gimple_debug_bind_set_var): New.
10829         (gimple_debug_bind_set_value): New.
10830         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
10831         (gimple_debug_bind_reset_value): New.
10832         (gimple_debug_bind_has_value_p): New.
10833         (gsi_next_nondebug): New.
10834         (gsi_prev_nondebug): New.
10835         (gsi_start_nondebug_bb): New.
10836         (gsi_last_nondebug_bb): New.
10837         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
10838         (print_insn): Handle DEBUG_INSN.
10839         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
10840         of first insn prevail.
10841         (first_stmt): Skip debug stmts.
10842         (first_non_label_stmt): Likewise.
10843         (last_stmt): Likewise.
10844         (has_zero_uses_1): New.
10845         (single_imm_use_1): New.
10846         (verify_gimple_debug): New.
10847         (verify_types_in_gimple_stmt): Handle debug stmts.
10848         (verify_stmt): Likewise.
10849         (debug_loop_num): Skip debug stmts.
10850         (remove_edge_and_dominated_blocks): Remove dominators last.
10851         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
10852         (linearize_expr): Likewise.
10853         * config/i386/i386.c (ix86_delegitimize_address): Call
10854         default implementation.
10855         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
10856         (group_barrier_needed): Skip debug insns.
10857         (emit_insn_group_barriers): Likewise.
10858         (emit_all_insn_group_barriers): Likewise.
10859         (ia64_variable_issue): Handle debug insns.
10860         (ia64_dfa_new_cycle): Likewise.
10861         (final_emit_insn_group_barriers): Skip debug insns.
10862         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
10863         def cfa without frame.
10864         (process_set): Likewise.
10865         (process_for_unwind_directive): Pass frame on.
10866         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10867         (rs6000_delegitimize_address): New.
10868         (rs6000_debug_adjust_cost): Handle debug insns.
10869         (is_microcoded_insn): Likewise.
10870         (is_cracked_insn): Likewise.
10871         (is_nonpipeline_insn): Likewise.
10872         (insn_must_be_first_in_group): Likewise.
10873         (insn_must_be_last_in_group): Likewise.
10874         (force_new_group): Likewise.
10875         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
10876         contains only debug insns.
10877         (rtl_merge_blocks): Skip debug insns.
10878         (purge_dead_edges): Likewise.
10879         (rtl_block_ends_with_call_p): Skip debug insns.
10880         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
10881         (mark_reg_dependencies): Skip debug insns.
10882         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
10883         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
10884         * tree-ssa-threadedge.c
10885         (record_temporary_equivalences_from_stmts): Skip debug stmts.
10886         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
10887         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
10888         (copyprop_hardreg_forward_1): Handle debug insns.
10889         * reload1.c (reload): Skip debug insns.  Replace unassigned
10890         pseudos in debug insns with their equivalences.
10891         (eliminate_regs_in_insn): Skip debug insns.
10892         (emit_input_reload_insns): Skip debug insns at first, adjust
10893         them later.
10894         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
10895         (get_indirect_ref_operands): Pass opf_no_vops on.
10896         (get_expr_operands): Likewise.  Skip debug stmts.
10897         (parse_ssa_operands): Scan debug insns with opf_no_vops.
10898
10899 2009-09-01  Richard Henderson  <rth@redhat.com>
10900
10901         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
10902         stmt_ends_pp_p statements at least once.
10903         * tree-vrp.c (vrp_initialize): Likewise.
10904         (vrp_visit_stmt): Be prepared for non-interesting stmts.
10905
10906 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
10907
10908         PR bootstrap/41205
10909         Fix AIX bootstrap after PR debug/30161
10910         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
10911         that is a GNU extension.
10912         (tmpl_value_parm_die_table): Move the definition of this global
10913         outside #ifdef DWARF2_DEBUGGING_INFO region.
10914
10915 2009-09-01  Richard Guenther  <rguenther@suse.de>
10916
10917         * tree.c (tree_expr_size): New function.
10918         * tree.h (tree_expr_size): Declare.
10919         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
10920         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
10921         * langhooks.c (lhd_expr_size): Remove.
10922         * langhooks.h (struct lang_hooks): Remove expr_size.
10923         * explow.c (expr_size): Use tree_expr_size.
10924         (int_expr_size): Likewise.
10925         * langhooks-def.h (lhd_expr_size): Remove.
10926         (LANG_HOOKS_EXPR_SIZE): Likewise.
10927         (LANG_HOOKS_INITIALIZER): Adjust.
10928
10929 2009-09-01  Richard Guenther  <rguenther@suse.de>
10930
10931         * tree-flow.h (mark_addressable): Move declaration ...
10932         * tree.h (mark_addressable): ... here.
10933         * stmt.c (expand_asm_operands): Use mark_addressable, not
10934         lang_hooks.mark_addressable.
10935         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
10936         LANG_HOOKS_MARK_ADDRESSABLE.
10937         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
10938         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
10939
10940 2009-08-31  Chris Demetriou  <cgd@google.com>
10941
10942         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
10943         vectorize if not TARGET_SSE2.
10944
10945 2009-08-31  DJ Delorie  <dj@redhat.com>
10946
10947         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
10948         registers if no coprocessor is enabled.
10949
10950 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
10951
10952         PR debug/30161
10953         * cgraph.h (cgraph_get_node): Declare ...
10954         * cgraph.c (cgraph_get_node): ... new function.
10955         * dwarf2out.c (gen_generic_params_dies,
10956         generic_parameter_die, tree_add_const_value_attribute_for_decl,
10957         make_ith_pack_parameter_name,
10958         append_entry_to_tmpl_value_parm_die_table,
10959         gen_remaining_tmpl_value_param_die_attribute): New functions.
10960         (gen_subprogram_die): Generate debug info for template parameters
10961         if debug info level is higher than DINFO_LEVEL_TERSE.
10962         Use tree_add_const_value_attribute_for_decl instead of
10963         tree_add_const_value_attribute.
10964         (gen_const_die): Use tree_add_const_value_attribute_for_decl
10965         instead of tree_add_const_value_attribute.
10966         (gen_struct_or_union_type_die): Generate debug
10967         info for template parameters if debug info level is higher than
10968         DINFO_LEVEL_TERSE.
10969         (tree_add_const_value_attribute): Handle integral and pointer
10970         constants. Update comment.
10971         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
10972         (dwarf_attr_name): Support DW_AT_GNU_template_name.
10973         (reference_to_unused): Fix thinko. Remove redundant predicates from
10974         tests.
10975         (tree_add_const_value_attribute): Make this work for constant
10976         expressions only.
10977         tree_add_const_value_attribute_for_decl is to be used for variable
10978         DECLs now.
10979         (add_location_or_const_value_attribute): Use
10980         tree_add_const_value_attribute_for_decl now.
10981         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
10982         DW_TAG_template_value_param DIEs after function DIEs have been
10983         emitted.
10984         * langhooks.h (lang_hooks_for_types): Add
10985         get_argument_pack_elems.
10986         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
10987         (lang_hooks): Added get_innermost_generic_parms,
10988         get_innermost_generic_args.
10989         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
10990         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
10991         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
10992         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
10993
10994 2009-08-31  DJ Delorie  <dj@redhat.com>
10995
10996         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
10997         it once we start generating the prologue or epilogue.
10998         (mep_call_saves_register): If the frame is locked, re-use
10999         cached values.
11000         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
11001         (mep_expand_prologue): Call it.
11002         (mep_expand_epilogue): Likewise.
11003         (mep_start_function): Use the same logic as mep_expand_prologue.
11004         (mep_pass_by_reference): Make logic more readable.
11005         (mep_return_in_memory): Zero-sized objects are passed in memory.
11006         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
11007
11008 2009-08-31  Richard Guenther  <rguenther@suse.de>
11009
11010         * builtins.c (fold_builtin_memory_op): Use the alias oracle
11011         to query if the memory regions for memmove overlap.
11012         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11013         asserts on pointers, instead deal with odd trees.
11014         (ptr_derefs_may_alias_p): Likewise.
11015         (refs_may_alias_p_1): Constructor bases also never alias.
11016
11017 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
11018
11019         * doc/install.texi (Final install): Adjust reference on where to
11020         order printed manuals.
11021
11022 2009-08-30  Olivier Hainque  <hainque@adacore.com>
11023
11024         * dwarf2out.c (switch_to_frame_table_section): Move
11025         definition prior to first use.
11026
11027 2009-08-30  Richard Guenther  <rguenther@suse.de>
11028
11029         PR tree-optimization/41186
11030         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
11031         (ao_ref_init_from_ptr_and_size): New function.
11032         (ref_maybe_used_by_call_p_1): Be more precise tracking
11033         used ranges for builtin functions.
11034         (ref_maybe_used_by_call_p): Adjust.
11035         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
11036         ranges for builtin functions.
11037         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
11038
11039 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
11040
11041         PR target/41081
11042         * fwprop.c (get_reg_use_in): Delete.
11043         (free_load_extend): New function.
11044         (forward_propagate_subreg): Use it.
11045
11046 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11047
11048         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
11049
11050 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
11051
11052         PR/41184
11053         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
11054         padding.
11055
11056 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
11057
11058         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
11059         fini or fini_array section.
11060
11061 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11062
11063         * graphite-dependences.c (graphite_legal_transform_bb): Call
11064         pbb_remove_duplicate_pdrs.
11065         * graphite-poly.c (can_collapse_pdr): Removed.
11066         (pdr_find_duplicate): Removed.
11067         (can_collapse_pdrs): New.
11068         (pbb_remove_duplicate_pdrs): New.
11069         (new_poly_dr): Do not look for duplicates.
11070         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
11071         (PBB_PDR_DUPLICATES_REMOVED): New.
11072         (pbb_remove_duplicate_pdrs): Declared.
11073
11074 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11075
11076         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
11077         the strides by multiplying by PDR_NB_REFS.
11078         * graphite-poly.c (can_collapse_pdr): New.
11079         (pdr_find_duplicate): New.
11080         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
11081         Initialize PDR_NB_REFS.
11082         * graphite-poly.h (struct poly_dr): Add field nb_refs.
11083         (PDR_NB_REFS): New.
11084         (new_poly_dr): Number of subscripts is a graphite_dim_t.
11085
11086 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11087
11088         PR middle-end/40965
11089         * graphite-poly.c (apply_poly_transforms): Remove legality test before
11090         any transform.
11091
11092 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11093
11094         * graphite-dependences.c (pddr_original_scattering): Return NULL
11095         for read-read dependence relations.
11096         * graphite-poly.h (enum poly_dr_type): Fix comment.
11097         (pdr_read_p): New.
11098         (pdr_write_p): New.
11099         (pdr_may_write_p): New.
11100
11101 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11102
11103         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
11104         (struct poly_dr): Same.
11105         (new_poly_dr): Same.
11106         * graphite-poly.c (new_poly_dr): Same.
11107         * graphite-dependences.c (dot_deps): Disable call to system.
11108
11109 2009-08-28  Cary Coutant  <ccoutant@google.com>
11110
11111         PR debug/41063
11112         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
11113         struct/union/enum types local to a function.
11114
11115 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11116             Sebastian Pop  <sebastian.pop@amd.com>
11117
11118         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
11119         pbb_strip_mine_time_depth.  Changed the implementation so that
11120         transformation is expressed as a transformation on
11121         time (scatttering) dimensions.  Also, ensures that the 2d+1
11122         scheduling format is preserved.
11123         (pbb_strip_mine_profitable_p): Profitability is based on the
11124         iteration number of a given time (scattering) dimension,
11125         and not on a original loop depth dimension.
11126         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
11127         (pbb_do_strip_mine): Call psct_dynamic_dim.
11128         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
11129         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
11130         (pbb_nb_dynamic_scattering_transform): New.
11131         (psct_dynamic_dim): New.
11132
11133 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11134
11135         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11136         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11137         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
11138         * graphite-interchange.c (build_linearized_memory_access): Same.
11139         (memory_stride_in_loop): Same.
11140
11141 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11142
11143         * graphite-dependences.c (pddr_original_scattering): New.
11144         (graphite_legal_transform_dr): Call pddr_original_scattering.
11145         (dot_deps_1): New.
11146         (dot_deps): New.
11147         * graphite-dependences.h (dot_deps): Declared.
11148         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
11149         (print_pdr): Print PDR_ID.
11150         * graphite-poly.h (struct poly_dr): Add field id.
11151         (PDR_ID): New.
11152         (pbb_index): New.
11153         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
11154
11155 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11156
11157         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
11158         not delete the original dependence relation.
11159
11160 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11161
11162         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
11163         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
11164         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
11165         (free_poly_ddr): New.
11166         (pddr_is_empty): New.
11167         (dependence_polyhedron_1): Now returns a poly_ddr_p.
11168         (dependence_polyhedron): Same.  Remove useless gcc_assert.
11169         Remove fprintfs.
11170         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
11171         (graphite_carried_dependence_level_k): Call pddr_is_empty.
11172         * graphite-dependences.h (enum poly_dependence_kind): New.
11173         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
11174         (PDRP_SOURCE): Renamed PDDR_SOURCE.
11175         (PDRP_SINK): Renamed PDDR_SINK.
11176         (PDRP_DDP): Renamed PDDR_DDP.
11177         (PDDR_KIND): New.
11178         (free_poly_ddr): Declared.
11179         * graphite-poly.c (new_scop): Use the new hash function names.
11180         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
11181         into original_pddrs.
11182         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
11183
11184 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11185
11186         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
11187         bounds with LT_EXPR to make niter analysis more precise on code
11188         generated by Graphite.
11189
11190 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11191
11192         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
11193         (graphite_legal_transform_bb): Same.
11194         (poly_drs_may_alias_p): Same.
11195
11196 2009-08-28  Richard Guenther  <rguenther@suse.de>
11197
11198         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
11199
11200 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11201
11202         * config/i386/netware.c: Include langhooks.h.
11203         (i386_nlm_encode_section_info): Simplify.
11204         (netware_override_options): Delete.
11205         * config/i386/netware.h (netware_override_options): Delete
11206         declaration.
11207         (OVERRIDE_OPTIONS): Delete definition.
11208         (SUBTARGET_OVERRIDE_OPTIONS): Define.
11209         (ASM_COMMENT_START): Define.
11210         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
11211
11212 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11213
11214         * configure.ac: For in-tree ld, do a plain version check to
11215         determine whether comdat groups are supported.
11216         * configure: Regenerate.
11217
11218 2009-08-28  Olivier Hainque  <hainque@adacore.com>
11219
11220         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
11221         always defined.  Reflect definition or absence of such for
11222         COLLECT_EXPORT_LIST.  Readability helper.
11223         (scanfilter): New enum, to help control what symbols
11224         are to be considered or ignored by scan_prog_file.
11225         (enum pass): Rename as "scanpass", moved together with scanfilter
11226         prior to scan_prog_file's prototype.
11227         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
11228         Group prototype with the scanpass/scanfilter definitions, factorize
11229         head comments for the several implementations at the prototype.
11230         (main): Reorganize the first pass link control to let AIX
11231         drag only the needed frame tables in executables.  Prevent
11232         frame tables collection during the scan aimed at static ctors.
11233         Pre-link and scan for frame tables later to compensate.
11234         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
11235         A C statement to issue assembly directives that create a reference
11236         to the given DWARF table identifier label from the current function
11237         section.
11238         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
11239         to differentiate first time section entry.  Only emit a .data
11240         tables start identifier label the first time around.
11241         (switch_to_frame_table_section): New function.  Helper for
11242         output_call_frame_info to switch possibly BACK into the eh_frame
11243         or the debug_frame section depending on FOR_EH.
11244         (output_call_frame_info): Use helper to first enter the proper
11245         frame section.
11246         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
11247         emit a link to the frame table start label from each function
11248         section.
11249         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
11250         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
11251         * config/rs6000/rs6000-protos.h: Declare it.
11252         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
11253
11254 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11255
11256         * config/sh/sh.c (split_branches): Check the result of
11257         next_active_insn.
11258
11259 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
11260
11261         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
11262         using -pthread -fopenmp
11263
11264 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
11265
11266         * doc/service.texi (service directory): Update URL.
11267
11268 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
11269
11270         PR rtl-optimization/40861
11271         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
11272         extract word from a multi-word subreg for negative byte positions.
11273
11274 2009-08-27  Tristan Gingold  <gingold@adacore.com>
11275             Douglas B Rupp  <rupp@gnat.com>
11276
11277         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
11278         (SECTION_VMS_OVERLAY): Define.
11279         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
11280         attribute.
11281         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
11282         for common_object.
11283         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
11284         common_object declarations.
11285         (ia64_section_type_flags): Set section flag for common_object.
11286         * config/ia64/ia64-protos.h
11287         (ia64_vms_output_aligned_decl_common): Declare.
11288         (ia64_vms_elf_asm_named_section): Declare.
11289
11290 2009-08-27  Michael Matz  <matz@suse.de>
11291
11292         * expr.c (expand_expr_real_2): New function taking exploded
11293         unary or binary expression, split out from ...
11294         (expand_expr_real_1): ... here.  Move over all unary/binary
11295         switch parts to above function, in particular these codes:
11296         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
11297         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
11298         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
11299         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
11300         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
11301         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
11302         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
11303         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
11304         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
11305         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
11306         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
11307         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
11308         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
11309         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
11310         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
11311         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
11312         VEC_PACK_FIX_TRUNC_EXPR.
11313         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
11314         full expression.
11315
11316 2009-08-27  Richard Guenther  <rguenther@suse.de>
11317
11318         * gengtype.c (main): Handle uint64_t.
11319         * ipa-utils.c (get_base_var): Indent properly.
11320         * tree-ssa-live.c (debug_scope_block): New function.
11321         * tree-flow.h (debug_scope_block): Declare.
11322         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
11323         * basic-block.h (enum profile_status): Rename to
11324         enum profile_status_d.
11325         (x_profile_status): Adjust type.
11326
11327 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
11328
11329         PR debug/41170
11330         * dwarf2out.c (get_context_die): Declare this static function.
11331         (gen_type_die_with_usage): Make sure a DIE is a generated for
11332         the context of a typedef.
11333
11334 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
11335
11336         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
11337         switch.
11338
11339 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11340
11341         * config/mips/mips-protos.h (mips_output_sync): Declare.
11342         (mips_sync_loop_insns): Likewise.
11343         (mips_output_sync_loop): Replace first two parameters with an rtx.
11344         * config/mips/mips.c (mips_multi_member): New structure.
11345         (mips_multi_members): New variable.
11346         (mips_multi_start): New function.
11347         (mips_multi_add): Likewise.
11348         (mips_multi_add_insn): Likewise.
11349         (mips_multi_add_label): Likewise.
11350         (mips_multi_last_index): Likewise.
11351         (mips_multi_copy_insn): Likewise.
11352         (mips_multi_set_operand): Likewise.
11353         (mips_multi_write): Likewise.
11354         (mips_print_operand_punctuation): Remove '%|' and '%-'.
11355         (mips_init_print_operand_punct): Update accordingly.
11356         (mips_start_ll_sc_sync_block): New function.
11357         (mips_end_ll_sc_sync_block): Likewise.
11358         (mips_output_sync): Likewise.
11359         (mips_sync_insn1_template): Likewise.
11360         (mips_sync_insn2_template): Likewise.
11361         (mips_get_sync_operand): Likewise.
11362         (mips_process_sync_loop): Likewise.
11363         (mips_output_sync_loop): Use mips_process_sync_loop.
11364         (mips_sync_loop_insns): New function.
11365         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
11366         (MIPS_COMPARE_AND_SWAP_12): Likewise.
11367         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
11368         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
11369         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
11370         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
11371         (MIPS_SYNC_OLD_OP_12): Likewise.
11372         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
11373         (MIPS_SYNC_NEW_OP_12): Likewise.
11374         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
11375         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
11376         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
11377         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
11378         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
11379         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
11380         * config/mips/mips.md (sync_mem): New attribute.
11381         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
11382         (sync_exclusive_mask, sync_required_oldval): Likewise.
11383         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
11384         (sync_release_barrier): Likewise.
11385         (length): Handle sync loops.
11386         (sync): Use mips_output_sync.
11387         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
11388         (sync_compare_and_swap<mode>): Set the new sync_* attributes
11389         and use mips_output_sync_loop.
11390         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
11391         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
11392         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
11393         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
11394         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
11395         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
11396         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
11397         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
11398         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
11399
11400 2009-08-26  Richard Guenther  <rguenther@suse.de>
11401
11402         PR middle-end/41163
11403         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
11404         the types to not match.
11405         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
11406         verification.
11407         * tree-ssa.c (useless_type_conversion_p): Conversions to
11408         pointers to unprototyped functions are useless.
11409
11410 2009-08-26  Richard Guenther  <rguenther@suse.de>
11411
11412         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
11413         whole-program condition, prepare to be called for non-globals.
11414         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
11415         params build a representative with known type and track its fields.
11416
11417 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
11418
11419         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
11420         clearing by a taken branch.
11421         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
11422         effectively after bbro pass.
11423         (sync_nand<mode>): Ditto.
11424         (sync_old_<fetchop_name><mode>): Ditto.
11425         (sync_old_nand<mode>): Ditto.
11426         (sync_new_<fetchop_name><mode>): Dito.
11427         (sync_new_nand<mode>): Ditto.
11428         (sync_compare_and_swap<mode>_1): Ditto.
11429         (*sync_compare_and_swap<mode>): Ditto.
11430         (sync_lock_test_and_set<mode>_1): Ditto.
11431         ("sync_lock_test_and_set<mode>): Ditto.
11432
11433 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
11434
11435         * hwint.h (HOST_LONG_FORMAT): New macro
11436         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
11437         Use HOST_PTR_PRINTF.
11438         * system.h (HOST_PTR_PRINTF): Resurrect old macro
11439         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
11440         (HOST_PTR_PRINTF): Document.
11441
11442 2009-08-25 Jan Hubicka  <jh@suse.cz>
11443
11444         * config/i386/bmmintrin.h: Replace by #error.
11445
11446         Revert:
11447         Michael Meissner  <michael.meissner@amd.com>
11448         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11449         Tony Linthicum  <tony.linthicum@amd.com>
11450
11451         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
11452         (TARGET_ROUND): New macro for the round/ptest instructions which
11453         are shared between SSE4.1 and SSE5.
11454         (OPTION_MASK_ISA_ROUND): Ditto.
11455         (OPTION_ISA_ROUND): Ditto.
11456         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
11457         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
11458
11459         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
11460         (-mfused-madd): New switch to give users control over whether the
11461         compiler optimizes to use the multiply/add SSE5 instructions.
11462
11463         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
11464         (ix86_handle_option): Turn off 3dnow if -msse5.
11465         (override_options): Add SSE5 support.
11466         (print_operand): %Y prints comparison codes for SSE5 com/pcom
11467         instructions.
11468         (ix86_expand_sse_movcc): Add SSE5 support.
11469         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
11470         vector type to the next largest size.
11471         (ix86_expand_sse5_pack): New function to use pperm to pack a
11472         vector type to the next smallest size.
11473         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
11474         (IX86_BUILTIN_FMADDSD): Ditto.
11475         (IX86_BUILTIN_FMADDPS): Ditto.
11476         (IX86_BUILTIN_FMADDPD): Ditto.
11477         (IX86_BUILTIN_FMSUBSS): Ditto.
11478         (IX86_BUILTIN_FMSUBSD): Ditto.
11479         (IX86_BUILTIN_FMSUBPS): Ditto.
11480         (IX86_BUILTIN_FMSUBPD): Ditto.
11481         (IX86_BUILTIN_FNMADDSS): Ditto.
11482         (IX86_BUILTIN_FNMADDSD): Ditto.
11483         (IX86_BUILTIN_FNMADDPS): Ditto.
11484         (IX86_BUILTIN_FNMADDPD): Ditto.
11485         (IX86_BUILTIN_FNMSUBSS): Ditto.
11486         (IX86_BUILTIN_FNMSUBSD): Ditto.
11487         (IX86_BUILTIN_FNMSUBPS): Ditto.
11488         (IX86_BUILTIN_FNMSUBPD): Ditto.
11489         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
11490         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
11491         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
11492         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
11493         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
11494         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
11495         (IX86_BUILTIN_PPERM): Ditto.
11496         (IX86_BUILTIN_PERMPS): Ditto.
11497         (IX86_BUILTIN_PERMPD): Ditto.
11498         (IX86_BUILTIN_PMACSSWW): Ditto.
11499         (IX86_BUILTIN_PMACSWW): Ditto.
11500         (IX86_BUILTIN_PMACSSWD): Ditto.
11501         (IX86_BUILTIN_PMACSWD): Ditto.
11502         (IX86_BUILTIN_PMACSSDD): Ditto.
11503         (IX86_BUILTIN_PMACSDD): Ditto.
11504         (IX86_BUILTIN_PMACSSDQL): Ditto.
11505         (IX86_BUILTIN_PMACSSDQH): Ditto.
11506         (IX86_BUILTIN_PMACSDQL): Ditto.
11507         (IX86_BUILTIN_PMACSDQH): Ditto.
11508         (IX86_BUILTIN_PMADCSSWD): Ditto.
11509         (IX86_BUILTIN_PMADCSWD): Ditto.
11510         (IX86_BUILTIN_PHADDBW): Ditto.
11511         (IX86_BUILTIN_PHADDBD): Ditto.
11512         (IX86_BUILTIN_PHADDBQ): Ditto.
11513         (IX86_BUILTIN_PHADDWD): Ditto.
11514         (IX86_BUILTIN_PHADDWQ): Ditto.
11515         (IX86_BUILTIN_PHADDDQ): Ditto.
11516         (IX86_BUILTIN_PHADDUBW): Ditto.
11517         (IX86_BUILTIN_PHADDUBD): Ditto.
11518         (IX86_BUILTIN_PHADDUBQ): Ditto.
11519         (IX86_BUILTIN_PHADDUWD): Ditto.
11520         (IX86_BUILTIN_PHADDUWQ): Ditto.
11521         (IX86_BUILTIN_PHADDUDQ): Ditto.
11522         (IX86_BUILTIN_PHSUBBW): Ditto.
11523         (IX86_BUILTIN_PHSUBWD): Ditto.
11524         (IX86_BUILTIN_PHSUBDQ): Ditto.
11525         (IX86_BUILTIN_PROTB): Ditto.
11526         (IX86_BUILTIN_PROTW): Ditto.
11527         (IX86_BUILTIN_PROTD): Ditto.
11528         (IX86_BUILTIN_PROTQ): Ditto.
11529         (IX86_BUILTIN_PROTB_IMM): Ditto.
11530         (IX86_BUILTIN_PROTW_IMM): Ditto.
11531         (IX86_BUILTIN_PROTD_IMM): Ditto.
11532         (IX86_BUILTIN_PROTQ_IMM): Ditto.
11533         (IX86_BUILTIN_PSHLB): Ditto.
11534         (IX86_BUILTIN_PSHLW): Ditto.
11535         (IX86_BUILTIN_PSHLD): Ditto.
11536         (IX86_BUILTIN_PSHLQ): Ditto.
11537         (IX86_BUILTIN_PSHAB): Ditto.
11538         (IX86_BUILTIN_PSHAW): Ditto.
11539         (IX86_BUILTIN_PSHAD): Ditto.
11540         (IX86_BUILTIN_PSHAQ): Ditto.
11541         (IX86_BUILTIN_FRCZSS): Ditto.
11542         (IX86_BUILTIN_FRCZSD): Ditto.
11543         (IX86_BUILTIN_FRCZPS): Ditto.
11544         (IX86_BUILTIN_FRCZPD): Ditto.
11545         (IX86_BUILTIN_CVTPH2PS): Ditto.
11546         (IX86_BUILTIN_CVTPS2PH): Ditto.
11547         (IX86_BUILTIN_COMEQSS): Ditto.
11548         (IX86_BUILTIN_COMNESS): Ditto.
11549         (IX86_BUILTIN_COMLTSS): Ditto.
11550         (IX86_BUILTIN_COMLESS): Ditto.
11551         (IX86_BUILTIN_COMGTSS): Ditto.
11552         (IX86_BUILTIN_COMGESS): Ditto.
11553         (IX86_BUILTIN_COMUEQSS): Ditto.
11554         (IX86_BUILTIN_COMUNESS): Ditto.
11555         (IX86_BUILTIN_COMULTSS): Ditto.
11556         (IX86_BUILTIN_COMULESS): Ditto.
11557         (IX86_BUILTIN_COMUGTSS): Ditto.
11558         (IX86_BUILTIN_COMUGESS): Ditto.
11559         (IX86_BUILTIN_COMORDSS): Ditto.
11560         (IX86_BUILTIN_COMUNORDSS): Ditto.
11561         (IX86_BUILTIN_COMFALSESS): Ditto.
11562         (IX86_BUILTIN_COMTRUESS): Ditto.
11563         (IX86_BUILTIN_COMEQSD): Ditto.
11564         (IX86_BUILTIN_COMNESD): Ditto.
11565         (IX86_BUILTIN_COMLTSD): Ditto.
11566         (IX86_BUILTIN_COMLESD): Ditto.
11567         (IX86_BUILTIN_COMGTSD): Ditto.
11568         (IX86_BUILTIN_COMGESD): Ditto.
11569         (IX86_BUILTIN_COMUEQSD): Ditto.
11570         (IX86_BUILTIN_COMUNESD): Ditto.
11571         (IX86_BUILTIN_COMULTSD): Ditto.
11572         (IX86_BUILTIN_COMULESD): Ditto.
11573         (IX86_BUILTIN_COMUGTSD): Ditto.
11574         (IX86_BUILTIN_COMUGESD): Ditto.
11575         (IX86_BUILTIN_COMORDSD): Ditto.
11576         (IX86_BUILTIN_COMUNORDSD): Ditto.
11577         (IX86_BUILTIN_COMFALSESD): Ditto.
11578         (IX86_BUILTIN_COMTRUESD): Ditto.
11579         (IX86_BUILTIN_COMEQPS): Ditto.
11580         (IX86_BUILTIN_COMNEPS): Ditto.
11581         (IX86_BUILTIN_COMLTPS): Ditto.
11582         (IX86_BUILTIN_COMLEPS): Ditto.
11583         (IX86_BUILTIN_COMGTPS): Ditto.
11584         (IX86_BUILTIN_COMGEPS): Ditto.
11585         (IX86_BUILTIN_COMUEQPS): Ditto.
11586         (IX86_BUILTIN_COMUNEPS): Ditto.
11587         (IX86_BUILTIN_COMULTPS): Ditto.
11588         (IX86_BUILTIN_COMULEPS): Ditto.
11589         (IX86_BUILTIN_COMUGTPS): Ditto.
11590         (IX86_BUILTIN_COMUGEPS): Ditto.
11591         (IX86_BUILTIN_COMORDPS): Ditto.
11592         (IX86_BUILTIN_COMUNORDPS): Ditto.
11593         (IX86_BUILTIN_COMFALSEPS): Ditto.
11594         (IX86_BUILTIN_COMTRUEPS): Ditto.
11595         (IX86_BUILTIN_COMEQPD): Ditto.
11596         (IX86_BUILTIN_COMNEPD): Ditto.
11597         (IX86_BUILTIN_COMLTPD): Ditto.
11598         (IX86_BUILTIN_COMLEPD): Ditto.
11599         (IX86_BUILTIN_COMGTPD): Ditto.
11600         (IX86_BUILTIN_COMGEPD): Ditto.
11601         (IX86_BUILTIN_COMUEQPD): Ditto.
11602         (IX86_BUILTIN_COMUNEPD): Ditto.
11603         (IX86_BUILTIN_COMULTPD): Ditto.
11604         (IX86_BUILTIN_COMULEPD): Ditto.
11605         (IX86_BUILTIN_COMUGTPD): Ditto.
11606         (IX86_BUILTIN_COMUGEPD): Ditto.
11607         (IX86_BUILTIN_COMORDPD): Ditto.
11608         (IX86_BUILTIN_COMUNORDPD): Ditto.
11609         (IX86_BUILTIN_COMFALSEPD): Ditto.
11610         (IX86_BUILTIN_COMTRUEPD): Ditto.
11611         (IX86_BUILTIN_PCOMEQUB): Ditto.
11612         (IX86_BUILTIN_PCOMNEUB): Ditto.
11613         (IX86_BUILTIN_PCOMLTUB): Ditto.
11614         (IX86_BUILTIN_PCOMLEUB): Ditto.
11615         (IX86_BUILTIN_PCOMGTUB): Ditto.
11616         (IX86_BUILTIN_PCOMGEUB): Ditto.
11617         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
11618         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
11619         (IX86_BUILTIN_PCOMEQUW): Ditto.
11620         (IX86_BUILTIN_PCOMNEUW): Ditto.
11621         (IX86_BUILTIN_PCOMLTUW): Ditto.
11622         (IX86_BUILTIN_PCOMLEUW): Ditto.
11623         (IX86_BUILTIN_PCOMGTUW): Ditto.
11624         (IX86_BUILTIN_PCOMGEUW): Ditto.
11625         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
11626         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
11627         (IX86_BUILTIN_PCOMEQUD): Ditto.
11628         (IX86_BUILTIN_PCOMNEUD): Ditto.
11629         (IX86_BUILTIN_PCOMLTUD): Ditto.
11630         (IX86_BUILTIN_PCOMLEUD): Ditto.
11631         (IX86_BUILTIN_PCOMGTUD): Ditto.
11632         (IX86_BUILTIN_PCOMGEUD): Ditto.
11633         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
11634         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
11635         (IX86_BUILTIN_PCOMEQUQ): Ditto.
11636         (IX86_BUILTIN_PCOMNEUQ): Ditto.
11637         (IX86_BUILTIN_PCOMLTUQ): Ditto.
11638         (IX86_BUILTIN_PCOMLEUQ): Ditto.
11639         (IX86_BUILTIN_PCOMGTUQ): Ditto.
11640         (IX86_BUILTIN_PCOMGEUQ): Ditto.
11641         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
11642         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
11643         (IX86_BUILTIN_PCOMEQB): Ditto.
11644         (IX86_BUILTIN_PCOMNEB): Ditto.
11645         (IX86_BUILTIN_PCOMLTB): Ditto.
11646         (IX86_BUILTIN_PCOMLEB): Ditto.
11647         (IX86_BUILTIN_PCOMGTB): Ditto.
11648         (IX86_BUILTIN_PCOMGEB): Ditto.
11649         (IX86_BUILTIN_PCOMFALSEB): Ditto.
11650         (IX86_BUILTIN_PCOMTRUEB): Ditto.
11651         (IX86_BUILTIN_PCOMEQW): Ditto.
11652         (IX86_BUILTIN_PCOMNEW): Ditto.
11653         (IX86_BUILTIN_PCOMLTW): Ditto.
11654         (IX86_BUILTIN_PCOMLEW): Ditto.
11655         (IX86_BUILTIN_PCOMGTW): Ditto.
11656         (IX86_BUILTIN_PCOMGEW): Ditto.
11657         (IX86_BUILTIN_PCOMFALSEW): Ditto.
11658         (IX86_BUILTIN_PCOMTRUEW): Ditto.
11659         (IX86_BUILTIN_PCOMEQD): Ditto.
11660         (IX86_BUILTIN_PCOMNED): Ditto.
11661         (IX86_BUILTIN_PCOMLTD): Ditto.
11662         (IX86_BUILTIN_PCOMLED): Ditto.
11663         (IX86_BUILTIN_PCOMGTD): Ditto.
11664         (IX86_BUILTIN_PCOMGED): Ditto.
11665         (IX86_BUILTIN_PCOMFALSED): Ditto.
11666         (IX86_BUILTIN_PCOMTRUED): Ditto.
11667         (IX86_BUILTIN_PCOMEQQ): Ditto.
11668         (IX86_BUILTIN_PCOMNEQ): Ditto.
11669         (IX86_BUILTIN_PCOMLTQ): Ditto.
11670         (IX86_BUILTIN_PCOMLEQ): Ditto.
11671         (IX86_BUILTIN_PCOMGTQ): Ditto.
11672         (IX86_BUILTIN_PCOMGEQ): Ditto.
11673         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
11674         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
11675         (enum multi_arg_type): New enum for describing the various SSE5
11676         intrinsic argument types.
11677         (bdesc_multi_arg): New table for SSE5 intrinsics.
11678         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
11679         (ix86_expand_multi_arg_builtin): New function for creating SSE5
11680         intrinsics.
11681         (ix86_expand_builtin): Add SSE5 intrinsic support.
11682         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
11683         operand instructions.
11684         (ix86_expand_sse5_multiple_memory): New function to split the
11685         second memory reference from SSE5 instructions.
11686         (type_has_variadic_args_p): Delete in favor of stdarg_p.
11687         (ix86_return_pops_args): Use stdarg_p to determine if the function
11688         has variable arguments.
11689         (ix86_setup_incoming_varargs): Ditto.
11690         (x86_this_parameter): Ditto.
11691
11692         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
11693         declaration.
11694         (ix86_expand_sse5_pack): Ditto.
11695         (ix86_sse5_valid_op_p): Ditto.
11696         (ix86_expand_sse5_multiple_memory): Ditto.
11697
11698         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
11699         constant for SSE5 support.
11700         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
11701         (UNSPEC_SSE5_TRUEFALSE): Ditto.
11702         (UNSPEC_SSE5_PERMUTE): Ditto.
11703         (UNSPEC_SSE5_ASHIFT): Ditto.
11704         (UNSPEC_SSE5_LSHIFT): Ditto.
11705         (UNSPEC_FRCZ): Ditto.
11706         (UNSPEC_CVTPH2PS): Ditto.
11707         (UNSPEC_CVTPS2PH): Ditto.
11708         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
11709         (PCOM_TRUE): Ditto.
11710         (COM_FALSE_S): Ditto.
11711         (COM_FALSE_P): Ditto.
11712         (COM_TRUE_S): Ditto.
11713         (COM_TRUE_P): Ditto.
11714         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
11715         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
11716         types.
11717         (memory attribute): Ditto.
11718         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11719         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
11720         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11721         (floor<mode>2): Ditto.
11722         (ceil<mode>2): Ditto.
11723         (btrunc<mode>2): Ditto.
11724         (nearbyintdf2): Ditto.
11725         (nearbyintsf2): Ditto.
11726         (sse_setccsf): Disable if SSE5.
11727         (sse_setccdf): Ditto.
11728         (sse5_setcc<mode>): New support for SSE5 conditional move.
11729         (sse5_pcmov_<mode>): Ditto.
11730
11731         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
11732         (SSEMODEF4): Ditto.
11733         (SSEMODEF2P): Ditto.
11734         (ssemodesuffixf4): New mode attribute for SSE5.
11735         (ssemodesuffixf2s): Ditto.
11736         (ssemodesuffixf2c): Ditto.
11737         (sserotatemax): Ditto.
11738         (ssescalarmode): Ditto.
11739         (sse_maskcmpv4sf3): Disable if SSE5.
11740         (sse_maskcmpv2df3): Ditto.
11741         (sse_vmmaskcmpv4sf3): Ditto.
11742         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
11743         (sse5_vmfmadd<mode>4): Ditto.
11744         (sse5_fmsub<mode>4): Ditto.
11745         (sse5_vmfmsub<mode>4): Ditto.
11746         (sse5_fnmadd<mode>4): Ditto.
11747         (sse5_vmfnmadd<mode>4): Ditto.
11748         (sse5_fnmsub<mode>4): Ditto.
11749         (sse5_vmfnmsub<mode>4): Ditto.
11750         (sse5i_fmadd<mode>4): Ditto.
11751         (sse5i_fmsub<mode>4): Ditto.
11752         (sse5i_fnmadd<mode>4): Ditto.
11753         (sse5i_fnmsub<mode>4): Ditto.
11754         (sse5i_vmfmadd<mode>4): Ditto.
11755         (sse5i_vmfmsub<mode>4): Ditto.
11756         (sse5i_vmfnmadd<mode>4): Ditto.
11757         (sse5i_vmfnmsub<mode>4): Ditto.
11758         (mulv16qi3): Add SSE5 support.
11759         (mulv4si3): Ditto.
11760         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
11761         (sse2_mulv4si3): Disable if SSE5.
11762         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
11763         (sse4_1_roundps): Ditto.
11764         (sse4_1_roundsd): Ditto.
11765         (sse4_1_roundss): Ditto.
11766         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
11767         be generated.
11768         (sse_maskcmpsf3): Ditto.
11769         (sse_vmmaskcmpv4sf3): Ditto.
11770         (sse2_maskcmpv2df3): Ditto.
11771         (sse2_maskcmpdf3): Ditto.
11772         (sse2_vmmaskcmpv2df3): Ditto.
11773         (sse2_eq<mode>3): Ditto.
11774         (sse2_gt<mode>3): Ditto.
11775         (sse5_pcmov_<mode>): Add SSE5 support.
11776         (vec_unpacku_hi_v16qi): Ditto.
11777         (vec_unpacks_hi_v16qi): Ditto.
11778         (vec_unpacku_lo_v16qi): Ditto.
11779         (vec_unpacks_lo_v16qi): Ditto.
11780         (vec_unpacku_hi_v8hi): Ditto.
11781         (vec_unpacks_hi_v8hi): Ditto.
11782         (vec_unpacku_lo_v8hi): Ditto.
11783         (vec_unpacks_lo_v8hi): Ditto.
11784         (vec_unpacku_hi_v4si): Ditto.
11785         (vec_unpacks_hi_v4si): Ditto.
11786         (vec_unpacku_lo_v4si): Ditto.
11787         (vec_unpacks_lo_v4si): Ditto.
11788         (sse5_pmacsww): New SSE5 intrinsic insn.
11789         (sse5_pmacssww): Ditto.
11790         (sse5_pmacsdd): Ditto.
11791         (sse5_pmacssdd): Ditto.
11792         (sse5_pmacssdql): Ditto.
11793         (sse5_pmacssdqh): Ditto.
11794         (sse5_pmacsdqh): Ditto.
11795         (sse5_pmacsswd): Ditto.
11796         (sse5_pmacswd): Ditto.
11797         (sse5_pmadcsswd): Ditto.
11798         (sse5_pmadcswd): Ditto.
11799         (sse5_pcmov_<move>): Conditional move support on SSE5.
11800         (sse5_phaddbw): New SSE5 intrinsic insn.
11801         (sse5_phaddbd): Ditto.
11802         (sse5_phaddbq): Ditto.
11803         (sse5_phaddwd): Ditto.
11804         (sse5_phaddwq): Ditto.
11805         (sse5_phadddq): Ditto.
11806         (sse5_phaddubw): Ditto.
11807         (sse5_phaddubd): Ditto.
11808         (sse5_phaddubq): Ditto.
11809         (sse5_phadduwd): Ditto.
11810         (sse5_phadduwq): Ditto.
11811         (sse5_phaddudq): Ditto.
11812         (sse5_phsubbw): Ditto.
11813         (sse5_phsubwd): Ditto.
11814         (sse5_phsubdq): Ditto.
11815         (sse5_pperm): Ditto.
11816         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
11817         (sse5_pperm_zero_v16qi_v8hi): Ditto.
11818         (sse5_pperm_sign_v8hi_v4si): Ditto.
11819         (sse5_pperm_zero_v8hi_v4si): Ditto.
11820         (sse5_pperm_sign_v4si_v2di): Ditto.
11821         (sse5_pperm_sign_v4si_v2di): Ditto.
11822         (sse5_pperm_pack_v2di_v4si): Ditto.
11823         (sse5_pperm_pack_v4si_v8hi): Ditto.
11824         (sse5_pperm_pack_v8hi_v16qi): Ditto.
11825         (sse5_perm<mode>): New SSE5 intrinsic insn.
11826         (rotl<mode>3): Ditto.
11827         (sse5_rotl<mode>3): Ditto.
11828         (sse5_ashl<mode>3): Ditto.
11829         (sse5_lshl<mode>3): Ditto.
11830         (sse5_frcz<mode>2): Ditto.
11831         (sse5s_frcz<mode>2): Ditto.
11832         (sse5_cvtph2ps): Ditto.
11833         (sse5_cvtps2ph): Ditto.
11834         (sse5_vmmaskcmp<mode>3): Ditto.
11835         (sse5_com_tf<mode>3): Ditto.
11836         (sse5_maskcmp<mode>3): Ditto.
11837         (sse5_maskcmp_uns<mode>3): Ditto.
11838         (sse5_maskcmp_uns2<mode>3): Ditto.
11839         (sse5_pcom_tf<mode>3): Ditto.
11840
11841         * config/i386/predicates.md (sse5_comparison_float_operator):
11842         New predicate to match the comparison operators supported by
11843         the SSE5 com instruction.
11844         (ix86_comparison_int_operator): New predicate to match just the
11845         signed int comparisons.
11846         (ix86_comparison_uns_operator): New predicate to match just the
11847         unsigned int comparisons.
11848
11849         * doc/invoke.texi (-msse5): Add documentation.
11850         (-mfused-madd): Ditto.
11851
11852         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
11853
11854         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
11855         mmintrin-common.h.
11856         (x86_64-*-*): Ditto.
11857
11858         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
11859
11860         * config/i386/bmmintrin.h: New file, provide common x86 compiler
11861         intrinisics for SSE5.
11862
11863         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
11864         mmintrin-common.h.
11865
11866         * config/i386/mmintrin-common.h: New file, to contain common
11867         instructions between SSE4.1 and SSE5.
11868
11869         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
11870         FOREACH_FUNCTION_ARGS to iterate over the argument list.
11871         (gen_regparm_prefix): Ditto.
11872
11873         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
11874         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
11875         prototype_p to determine if a function is prototyped.
11876
11877 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
11878
11879         * c-common.c (c_common_reswords) add the alignof keyword,
11880         with same RID as __alignof and __alignof__
11881
11882 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
11883
11884         * hooks.h (hook_bool_const_int_const_int_true): Declare.
11885         * hooks.c (hook_bool_const_int_const_int_true): New function.
11886         * target.h (struct gcc_target): Add can_eliminate field.
11887         * target-def.h (TARGET_CAN_ELIMINATE): Define.
11888         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
11889         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
11890         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
11891         (elim_table): Revise comment.
11892         * system.h (CAN_ELIMINATE): Poison.
11893         * defaults.h (CAN_ELIMINATE): Remove.
11894         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11895
11896         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
11897         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
11898         Define macro.
11899         (alpha_vms_can_eliminate): Declare as static, change return type to
11900         bool.
11901         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
11902
11903         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
11904         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
11905         (arm_can_eliminate): New function.
11906
11907         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
11908         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
11909         (avr_can_eliminate): Declare as static.
11910         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
11911
11912         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
11913         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
11914         (bfin_can_eliminate): New function.
11915
11916         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
11917         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
11918         (crx_can_eliminate): New function.
11919
11920         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
11921         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
11922         (fr30_can_eliminate): New function.
11923
11924         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
11925         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
11926         (frv_can_eliminate): New function.
11927
11928         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
11929         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
11930         (h8300_can_eliminate): New function.
11931
11932         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
11933         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
11934         (i386_can_eliminate): Declare as static, change return type to bool.
11935         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
11936
11937         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
11938         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
11939         (ia64_can_eliminate): New function.
11940
11941         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
11942         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
11943         (iq2000_can_eliminate): New function.
11944
11945         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
11946         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
11947         (m32r_can_eliminate): New function.
11948
11949         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
11950         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
11951         (m68hc11_can_eliminate): New function.
11952
11953         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
11954         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
11955         (m68k_can_eliminate): New function.
11956
11957         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
11958         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
11959         (mep_can_eliminate): New function.
11960
11961         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
11962         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
11963         (mips_can_eliminate): New function.
11964
11965         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
11966         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
11967         (rs6000_can_eliminate): New function.
11968
11969         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
11970         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
11971         (s390_can_eliminate): Declare as static.
11972         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
11973
11974         * config/score/score.h (CAN_ELIMINATE): Remove macro.
11975         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
11976         (score_can_eliminate): New function.
11977
11978         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
11979         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
11980         (sparc_can_eliminate): Declare as static.
11981         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
11982
11983         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
11984         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
11985         (xstormy16_can_eliminate): New function.
11986
11987         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
11988         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
11989         (v850_can_eliminate): New function.
11990
11991 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
11992
11993         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
11994         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
11995         (*movdfcc_ext[1234]): Disable for IEEE mode.
11996
11997 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
11998
11999         * gimplify.c (prepare_gimple_addressable): New static function.
12000         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
12001         it addressable.
12002         (gimplify_addr_expr): Invoke it similarly on the operand instead of
12003         manually fiddling with it.
12004
12005 2009-08-25  Michael Matz  <matz@suse.de>
12006
12007         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
12008         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
12009         full expression.
12010         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
12011         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
12012         (do_jump): Split out code for simple binary comparisons into ...
12013         (do_jump_1): ... this, taking the individual operands and code.
12014         Change callers to helper function above accordingly.
12015         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
12016         comparisons.
12017
12018 2009-08-25  Michael Matz  <matz@suse.de>
12019
12020         * expr.h (struct separate_ops, sepops): New type for passing
12021         around an exploded simple expression.
12022         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
12023         Use this structure instead of expression tree.
12024         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
12025         expression, only its type.
12026         (expand_vec_cond_expr): Take type and individual operands instead
12027         of full expression.
12028         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
12029         expand_vec_shift_expr): Change prototype accordingly.
12030         * tree-vect-stmts.c (vectorizable_condition): Change call of
12031         expand_vec_cond_expr_p to pass only type.
12032         * expr.c (do_store_flags): Change prototype and implementation
12033         to take an exploded expression.
12034         (expand_expr_real_1): New local ops initialized with details
12035         of the full expression.  Use it instead of full
12036         expression in calls to do_store_flags, expand_vec_cond_expr,
12037         expand_widen_pattern_expr and expand_vec_shift_expr.
12038
12039 2009-08-25  Michael Matz  <matz@suse.de>
12040
12041         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
12042         treeop2 initialized with first three operands of the full expression.
12043         Substitute all TREE_OPERAND (exp, [012]) calls with them.
12044
12045 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
12046
12047         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
12048         (__gthread_objc_condition_allocate): Mark arguments as unused.
12049         (__gthread_objc_condition_deallocate): Likewise.
12050         (__gthread_objc_condition_wait): Likewise.
12051         (__gthread_objc_condition_broadcast): Likewise.
12052         (__gthread_objc_condition_signal): Likewise.
12053         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
12054         (__gthread_objc_thread_id): Likewise.
12055
12056 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
12057
12058         PR middle-end/41149
12059         * tree-pretty-print.c (print_call_name): Print the correct call name
12060         for procedure pointer components.
12061
12062 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
12063
12064         * config/ia64/ia64.c (ia64_promote_function_mode): Call
12065         default_promote_function_mode when not VMS.
12066
12067 2009-08-24  Olivier Hainque  <hainque@adacore.com>
12068
12069         * convert.c (convert_to_integer): Don't assume an input pointer is
12070         POINTER_SIZE wide.  Fetch from the type instead.
12071
12072 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12073
12074         * configure.ac (AC_PREREQ): Bump to 2.64.
12075
12076 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
12077
12078         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
12079         (process_command): Don't search standard_exec_prefix_1 and
12080         standard_exec_prefix_2.
12081
12082 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12083
12084         * config/arm/arm.c (output_return_instruction): Handle for
12085         unified syntax.
12086
12087 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12088
12089         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
12090
12091 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12092
12093         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
12094         (*arm_movdf_vfp): Likewise.
12095
12096 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12097
12098         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
12099         (vashr<mode>3): Rename from ashr<mode>3.
12100         (vlshr<mode>3): Rename from lshr<mode>3.
12101
12102 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
12103
12104         PR/40786
12105         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
12106         (check_format_info_main): Use scalar_identify_flag.
12107         (check_format_types): Check for scalar size identity if
12108         scalar_identify_flag is set.
12109         (printf_length_specs): Extend by new field.
12110         (asm_fprintf_length_specs): Likewise.
12111         (gcc_diag_length_specs): Likewise.
12112         (scanf_length_specs): Likewise.
12113         (strfmon_length_specs): Likewise.
12114         (gcc_gfc_length_specs): Likewise.
12115         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
12116         (ms_printf_flag_specs): Likewise.
12117         * c-format.h (format_length_info): Add new member scalar_identity_flag.
12118
12119 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
12120
12121         PR target/40718
12122         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
12123         (*call_value_pop_1): Ditto.
12124         (*sibcall_pop_1): New insn pattern.
12125         (*sibcall_value_pop_1): Ditto.
12126
12127 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12128
12129         PR target/41081
12130         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
12131         ashrsi3_64): New.
12132
12133 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12134
12135         PR target/41081
12136         * fwprop.c (try_fwprop_subst): Allow multiple sets.
12137         (get_reg_use_in): New function.
12138         (forward_propagate_subreg): Propagate through subreg of zero_extend
12139         or sign_extend.
12140
12141 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12142
12143         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
12144         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
12145
12146 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12147
12148         * configure.ac: Remove --with-datarootdir, --with-docdir,
12149         --with-htmldir switches.  No need to call AC_SUBST for
12150         datarootdir, docdir, htmldir any more.
12151         * configure: Regenerate.
12152         * doc/install.texi (Configuration): Document --datarootdir,
12153         --docdir, --htmldir, --pdfdir; update documentation for
12154         --infodir, --mandir.
12155         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
12156         M4 to 1.4.6.
12157
12158         * aclocal.m4: Regenerate.
12159         * config.in: Regenerate.
12160         * configure: Regenerate.
12161
12162 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
12163             Olivier Hainque  <hainque@adacore.com>
12164
12165         * config/ia64/ia64.c: Include libfuncs.h.
12166         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
12167         (ia64_expand_call): Use reg 25 on VMS.
12168         (ia64_initialize_trampoline): Fix for VMS ABI.
12169         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
12170         (ia64_function_arg): Initialize reg 25 on VMS.
12171         Fix OpenVMS ABI issues for varargs.
12172         For OpenVMS, emit the Argument Information register set in the
12173         incoming/sibcall case as well.
12174         (ia64_arg_type): New function.
12175         (ia64_function_arg_advance): Keep track of cum->words.
12176         Fix OpenVMS ABI issues for varargs.
12177         (ia64_function_value): On VMS, promote mode of non-aggregate types.
12178         (ia64_override_options): Set flag_no_common on VMS.
12179         (ia64_init_builtins): Disable FWRITE builtin.
12180         (ia64_asm_output_external): Call DO_CRTL_NAMES.
12181         (ia64_vms_init_libfuncs): Add decc$ routines.
12182         (ia64_vms_valid_pointer_mode): New function.
12183         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
12184         (ia64_promote_function_mode): New function
12185         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
12186         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
12187         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12188         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
12189         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
12190         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
12191         Suppress trailing '#' if VALUE is numeric.
12192         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
12193         ia64_promote_function_mode.
12194         (TARGET_VALID_POINTER_MODE): Define.
12195
12196 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12197
12198         PR target/40671
12199         * config/rs6000/rs6000.c (rs6000_override_options): Use
12200         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
12201
12202         PR target/41145
12203         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
12204         reporting of vector + decimal/boolean/complex error.
12205
12206 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
12207
12208         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
12209         __vector double TYPE_DECL.
12210
12211 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
12212
12213         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
12214         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
12215         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
12216         to pointer to enum machine_mode.  Update all callers as needed.
12217
12218 2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
12219
12220         * config/alpha/alpha.md (exception_receiver): Emit alternative
12221         GP load sequence if flag_reorder_blocks_and_partition is set.
12222         (*exception_receiver_2): Also enable when
12223         flag_reorder_blocks_and_partition is set.
12224
12225 2009-08-20  Matt Rice  <ratmice@gmail.com>
12226             Diego Novillo  <dnovillo@google.com>
12227
12228         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
12229         tree-ssa-sccvn.h.
12230
12231 2009-08-20  Richard Guenther  <rguenther@suse.de>
12232
12233         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
12234         * c-tree.h (c_dup_lang_specific_decl): Remove.
12235         (struct lang_decl, struct lang_type): Move definitions ...
12236         * c-lang.h: ... here.  New file.
12237         * c-decl.c: Include c-lang.h.
12238         (c_dup_lang_specific_decl): Remove.
12239         * c-typeck.c: Include c-lang.h.
12240         * Makefile.in (c-decl.o): Add c-lang.h dependency.
12241         (c-typeck.o): Likewise.
12242         * c-config-lang.in (gtfiles): Add c-lang.h.
12243         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
12244         like c-tree.h.
12245
12246 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
12247
12248         * config/alpha/alpha.c (alpha_end_function): Do not clear
12249         crtl->emit structure and free insn locators if cfun->is_thunk is true,
12250         this is now handled in generic code.
12251
12252 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12253
12254         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
12255         (s390_z10_fix_long_loop_prediction): New function.
12256         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
12257         (s390_reorg): Walk over the INSNs and invoke
12258         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
12259
12260 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12261
12262         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
12263         "*brx_64bit", "*brx_31bit"): New patterns.
12264         * config/s390/s390.c ('E'): New output modifier.
12265
12266 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12267             Richard Earnshaw  <richard.earnshaw@arm.com>
12268
12269         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
12270         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
12271
12272 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12273
12274         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
12275         patterns.
12276         * pa.c (emit_move_sequence): Check if address of operand1 is valid
12277         for mode mode of operand0 when doing secondary reload for SAR.
12278
12279 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12280
12281         PR middle-end/41123
12282         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
12283         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
12284
12285 2009-08-19  Jason Merrill  <jason@redhat.com>
12286
12287         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
12288         supported template depth in C++0x.
12289
12290 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12291
12292         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
12293         free_after_compilation.
12294         * config/score/score7.c (score7_output_mi_thunk): Likewise.
12295         * config/score/score3.c (score3_output_mi_thunk): Likewise.
12296         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12297         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12298         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12299         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12300         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12301
12302 2009-08-19  Ian Lance Taylor  <iant@google.com>
12303
12304         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
12305         of (plus (mult (neg B) C) A).
12306
12307 2009-08-18  Michael Matz  <matz@suse.de>
12308
12309         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
12310         instead of comparing TYPE_MAIN_VARIANT for equality.
12311         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
12312         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
12313         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
12314         * gimplify.c (goa_lhs_expr_p): Ditto and use
12315         STRIP_USELESS_TYPE_CONVERSION.
12316
12317 2009-08-18  Michael Matz  <matz@suse.de>
12318
12319         * tree-ssa-structalias.c (create_variable_info_for): Also mark
12320         first field in a struct.
12321         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
12322
12323 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
12324
12325         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
12326         locators before emit_insn is called.  Remove assert that
12327         cfun->is_thunk.
12328         (alpha_end_function): Clear crtl->emit structure and free insn
12329         locators if cfun->is_thunk is true.
12330
12331 2009-08-18  Jason Merrill  <jason@redhat.com>
12332
12333         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12334         type if available.
12335         * configure.ac: Test for it.
12336         * configure, config.in: Regenerate.
12337         * doc/install.texi: Document --enable-gnu-unique-object.
12338
12339 2009-08-18  Richard Guenther  <rguenther@suse.de>
12340
12341         PR middle-end/41094
12342         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
12343         pow(x,y*z) only if x is nonnegative.
12344
12345 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
12346
12347         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
12348         on jumps.
12349
12350         PR target/40971
12351         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
12352         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
12353
12354 2009-08-17  DJ Delorie  <dj@redhat.com>
12355
12356         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
12357         * config/m32c/prologue.md (epilogue_freit): New.
12358         (fset_b): New.
12359         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
12360         (bank_switch_p): Likewise.
12361         (fast_interrupt_p): Likewise.
12362         (interrupt_p): Likewise.
12363         (m32c_conditional_register_usage): Round memregs size up.
12364         (need_to_save): We only need to save $a0 when we use ENTER.
12365         (interrupt_p): Check for fast_interrupt too.
12366         (bank_switch_p): New.
12367         (fast_interrupt_p): New.
12368         (m32c_attribute_table): Add bank_switch and fast_interrupt.
12369         (m32c_emit_prolog): Support bank switching and fast interrupts.
12370         * doc/extend.texi (Function Attributes): Add bank_switch and
12371         fast_interrupt.
12372
12373 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
12374
12375         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
12376         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
12377
12378 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
12379
12380         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
12381         (menu): Add IA-64/VMS Options.
12382         (IA-64/VMS Options): Likewise.
12383
12384 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12385
12386         PR target/38599
12387         * config/mips/mips.md (*lwxs): Use :P for pointer values.
12388
12389 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12390
12391         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
12392         (mips_pop_asm_switch): Likewise.
12393         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
12394         with...
12395         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12396         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
12397         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
12398         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
12399         instead of set_noreorder.
12400         (mips_output_function_prologue): Use the new functions.
12401         (mips_output_function_epilogue): Likewise.
12402         (mips_need_noat_wrapper_p): New function, split out from...
12403         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
12404         Use mips_push_asm_switch and mips_pop_asm_switch.
12405         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
12406         and mips_pop_asm_switch.
12407         (ASM_OUTPUT_REG_POP): Likewise.
12408         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
12409         Use mips_pop_asm_switch.
12410         (mips_asm_switch): New structure.
12411         (set_noreorder, set_nomacro): Replace with...
12412         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12413         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
12414         instead of set_nomacro.
12415         (fix_truncsfsi2_macro): Likewise.
12416         (cprestore): Likewise.
12417         (hazard): Use mips_noreorder instead of set_noreorder.
12418         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
12419
12420 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
12421
12422         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
12423         from prev_active_insn.
12424
12425 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
12426
12427         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
12428         * config/avr/avr.c (avr_override_options): Initialize
12429         avr_current_arch variable.
12430         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
12431         __AVR_HAVE_16BIT_SP__ according to the device type.
12432         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
12433         TARGET_TINY_STACK.
12434         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
12435         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
12436
12437 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
12438
12439         PR debug/37801
12440         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
12441         generating inlined subroutine die only. We shouldn't be
12442         called for anything else.
12443         (gen_block_die): Don't generate inline subroutine debug info for
12444         abstract blocks.
12445
12446 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12447
12448         * graphite-poly.c (print_pbb): Print PBB index.
12449
12450 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12451
12452         PR middle-end/40981
12453         * graphite-interchange.c (ppl_max_for_le): Moved...
12454         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
12455         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
12456         ppl_Pointset_Powerset_C_Polyhedron_maximize.
12457         * graphite-ppl.h (ppl_max_for_le): Declared.
12458
12459 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
12460
12461         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
12462         supported on all platforms.
12463         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
12464         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
12465         * c-pragma.c: Likewise.
12466         * target-def.h (TARGET_INITIALIZER): Remove
12467         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12468         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12469
12470 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12471
12472         * config/ia64/fde-vms.c: New file.
12473         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
12474         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
12475         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
12476         (uw_frame_state_for): Only register a personality routine if it is
12477         known to be compatible with our expectations.
12478         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
12479         Declare unw_table_entry stack variable and
12480         mod all calls to _Unwind_FindTableEntry to add arg.
12481         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
12482         (_Unwind_FindTableEntry): Add arg to prototype.
12483
12484 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
12485
12486         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
12487         field 'signal_pfs_loc'.
12488         (uw_frame_state_for): Remove duplicate code dealing with leaf
12489         procedures without unwind info.
12490         If in the frame after unwinding through a signal handler, restore
12491         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
12492         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
12493         'pfs_loc' to the AR.PFS location in the signal context; instead
12494         set 'signal_pfs_loc'.
12495         Manually generate the unwind info for the AR.PFS register.
12496         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
12497         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
12498         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
12499         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
12500         instead set 'signal_pfs_loc'.
12501         Remove code preventing the AR.PFS register from being restored
12502         from the signal context.
12503
12504 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12505             Tristan Gingold  <gingold@adacore.com>
12506
12507         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
12508         * config/ia64/t-vms: New file.
12509         * config/ia64/vms64.h: New file.
12510         * config/ia64/vms.h: New file.
12511         * config/ia64/vms-crtinit.asm: New file.
12512         * config/ia64/vms_symvec_libgcc_s.opt: New file.
12513         * config/ia64/vms-unwind.h: New file.
12514
12515 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12516
12517         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
12518         TFmode compares.
12519
12520 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12521
12522         PR middle-end/30789
12523         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
12524         Move declaration...
12525         * real.h (do_mpc_arg2): ... here.
12526         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
12527         and RDIV_EXPR.
12528
12529 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
12530
12531         * final.c (add_debug_prefix_map): Don't use GC memory for
12532         old_prefix and new_prefix.
12533
12534 2009-08-14  Richard Guenther  <rguenther@suse.de>
12535
12536         * ipa-prop.c (compute_complex_pass_through): If we cannot
12537         compute a non-varying offset for IPA_JF_ANCESTOR punt.
12538
12539 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12540
12541         * c-lex.c (c_lex_with_flags): Increase size of local variable
12542         to avoid memory clobber.
12543
12544 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
12545
12546         PR target/40934
12547         * config/i386/i386.c (ix86_fp_comparison_strategy):
12548         Only enable/disable sahf at function granularity.
12549
12550 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
12551
12552         PR rtl-optimization/41064
12553         * reload1.c (reload_as_needed): Don't call extract_insn
12554         for known invalid replacements after calling
12555         validate_replace_rtx_group and verify_changes.
12556
12557 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12558
12559         PR target/41019
12560         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
12561         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
12562         ix86_expand_fp_vcond.
12563         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
12564         Assert that operation is supported by ix86_expand_int_vcond.
12565         (vcondu<SSEMODE124C8:mode>): Ditto.
12566
12567 2009-08-13  DJ Delorie  <dj@redhat.com>
12568
12569         * config/i386/djgpp-stdint.h: New.
12570         * config.gcc (djgpp): Use it.
12571
12572 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
12573
12574         * config/sh/sh.c (sh_override_options): When flag_exceptions or
12575         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
12576
12577 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12578
12579         * tree-ssa-loop-prefetch.c
12580         (prune_ref_by_group_reuse): Enhance probabilistic analysis
12581         for long-stride pruning.
12582         (compute_miss_rate): New function to compute the probability
12583         that two memory references access different cache lines.
12584
12585 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
12586
12587         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
12588
12589 2009-08-13  Richard Guenther  <rguenther@suse.de>
12590
12591         PR middle-end/41047
12592         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
12593         use the constant pointer type.
12594         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
12595         of CV qualifiers on the target pointer type.
12596         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
12597         conversion check before restrict check.
12598
12599 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12600
12601         PR target/41029
12602         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
12603
12604 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12605
12606         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
12607
12608 2009-08-12  Richard Guenther  <rguenther@suse.de>
12609
12610         PR tree-optimization/41011
12611         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
12612         and reference constructing.
12613
12614 2009-08-12  Xinliang David Li  <davidxl@google.com>
12615
12616         PR tree-optimization/41012
12617         * tree-flow.h : New external interface.
12618         * gimple-low.c (check_call_arg): Change to public function.
12619         Remove argument mismatch check in lowering.
12620         * tree-inline.h (tree_can_inline_p): Interface change.
12621         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
12622         into this function.
12623         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
12624         Call change to tree_can_inline_p function.
12625         (cgraph_decide_inlining_incrementally): Ditto.
12626
12627 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
12628
12629         PR tree-optimization/41031
12630         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
12631         on the partition variable rather than promote_mode on the source
12632         type.  Assert that the partition variable's type has the same
12633         mode as the source value's.
12634
12635 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
12636
12637         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
12638         for for_return == 2.
12639         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
12640         comments.
12641         * calls.c (expand_call): Fix typo.
12642         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
12643         and PARM_DECL.
12644         * stmt.c (expand_value_return): Use promote_function_mode to copy out
12645         of pseudo.
12646         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
12647         * config/cris/cris.c (cris_promote_function_mode): Likewise.
12648         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
12649         * config/pa/pa.c (pa_promote_function_mode): Likewise.
12650
12651 2009-08-12  Andrew Haley  <aph@redhat.com>
12652
12653         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
12654
12655 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12656
12657         PR bootstrap/40103
12658         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12659
12660 2009-08-12  Richard Guenther  <rguenther@suse.de>
12661
12662         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
12663         * gimplify.c (gimplify_modify_expr): Do not use
12664         lang_hooks.types_compatible_p.
12665         * tree-ssa.c (useless_type_conversion_p): For aggregates
12666         just return false if the canonical types differ.
12667
12668 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12669
12670         PR middle-end/40980
12671         * sese.c (convert_for_phi_arg): New.
12672         (add_guard_exit_phis): Use convert_for_phi_arg.
12673
12674 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12675
12676         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
12677         unknown subscript upper bounds.
12678
12679 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12680             Pranav Garg  <pranav.garg2107@gmail.com>
12681
12682         * graphite-interchange.c (gather_access_strides): Removed.
12683         (ppl_max_for_le): New.
12684         (build_linearized_memory_access): New.
12685         (memory_stride_in_loop): New.
12686         (pbb_interchange_profitable_p): Reimplemented.
12687         * graphite-ppl.h (ppl_new_id_map): New.
12688         (ppl_interchange): New.
12689
12690 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12691
12692         * graphite-interchange.c (compute_subscript): Removed.
12693         (compute_array_size_cstr): Removed.
12694         (compute_array_size_poly): Removed.
12695         (compute_array_size): Removed.
12696         (gather_access_strides_poly): Removed.
12697         (gather_access_strides): Empty.
12698
12699 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12700
12701         * graphite-dependences.c (dependence_polyhedron_1): Replace
12702         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
12703         (graphite_legal_transform_dr): Same.
12704         (graphite_carried_dependence_level_k): Same.
12705         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
12706         Initialize PDR_NB_SUBSCRIPTS.
12707         (print_pdr_access_layout): Replace pdr_nb_subscripts with
12708         PDR_NB_SUBSCRIPTS.
12709         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
12710         (PDR_NB_SUBSCRIPTS): New.
12711         (pdr_nb_subscripts): Removed.
12712         (pdr_dim): Simplified.
12713         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
12714         with PDR_NB_SUBSCRIPTS.
12715
12716 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12717
12718         * graphite-interchange.c (compute_array_size): Remove use of
12719         PDR_DATA_CONTAINER.
12720         * graphite-poly.c (new_poly_dr): Remove argument data_container.
12721         Do not initialize PDR_DATA_CONTAINER.
12722         (print_pdr): Do not print PDR_DATA_CONTAINER.
12723         * graphite-poly.h (struct poly_dr): Remove data_container field.
12724         (PDR_DATA_CONTAINER): Removed.
12725         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
12726         PDR_DATA_CONTAINER.
12727         (build_poly_dr): Same.
12728
12729 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
12730             Sebastian Pop  <sebastian.pop@amd.com>
12731
12732         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
12733         copy of the dependence polyhedron.  Free the temporary objects.
12734         (graphite_carried_dependence_level_k): Free unused objects before
12735         returning.
12736
12737 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12738
12739         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
12740         Early return without analyzing the data dependences if no
12741         transform has been done.  Call restore_scattering if the transform
12742         is not legal.
12743         (graphite-interchange.c): Same.
12744         * graphite-poly.c (print_scattering_function): Test for
12745         PBB_TRANSFORMED.
12746         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
12747         (apply_poly_transforms): Do not gcc_assert that
12748         the transform is legal.
12749         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
12750         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
12751         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
12752         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
12753         * graphite-poly.h (struct poly_scattering): New.
12754         (struct poly_bb): Add original, transformed, and saved fields.
12755         Remove transformed_scattering, original_scattering,
12756         nb_local_variables and nb_scattering_transform fields.
12757         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
12758         (poly_scattering_new): New.
12759         (poly_scattering_free): New.
12760         (poly_scattering_copy): New.
12761         (store_scattering_pbb): New.
12762         (store_scattering): New.
12763         (restore_scattering_pbb): New.
12764         (restore_scattering): New.
12765         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12766         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
12767
12768 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12769
12770         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
12771         (print_scop): Same.
12772
12773 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12774
12775         * Makefile.in (graphite.o): Depends on PREDICT_H.
12776         * graphite.c: Include predict.h.
12777         (graphite_finalize): Call tree_estimate_probability.
12778         * predict.c (predict_loops): Do not call scev_initialize and
12779         scev_finalize.
12780         (tree_estimate_probability_bb): New.
12781         (tree_estimate_probability): Do not initialize loops: move that
12782         code to the driver.  Call tree_estimate_probability_bb.
12783         (tree_estimate_probability_driver): New.
12784         (pass_profile): Use tree_estimate_probability_driver.
12785         * predict.h (tree_estimate_probability): Declared.
12786
12787 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12788
12789         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
12790         * graphite-dependences.c (graphite_legal_transform): Add time to
12791         TV_GRAPHITE_DATA_DEPS.
12792         (dependency_between_pbbs_p): Same.
12793         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
12794
12795 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
12796
12797         PR rtl-optimization/41033
12798         * alias.c (nonoverlapping_component_refs_p): Punt when strict
12799         aliasing is disabled.
12800
12801 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12802
12803         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
12804         si_mask_operand, and_load_operand, low_bitmask_operand,
12805         and_reg_operand, and_operand): New predicates.
12806         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
12807         * config/mips/mips.c (and_operands_ok): New function.
12808         * config/mips/mips-protos.h (and_operands_ok): Declare it.
12809         * config/mips/mips.md (move_type): Add ext_ins and logical.
12810         (type): Handle them.
12811         (and<mode>3): Use and_reg_operand as the second operand's predicate.
12812         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
12813         shift_shift.  Remove commutative constraint modifier.
12814         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
12815         shift_shift.
12816         (*clear_upper32_dext): Remove define_insn_and_split.
12817         (*clear_upper32): Turn this define_insn_and_split ...
12818         (splitter for ANDing register with 0xffff_ffff): .. into this.
12819
12820 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12821
12822         * combine.c (try_widen_shift_mode): Factor out code to check if an
12823         integer constant is a low-order bitmask from here ...
12824         * rtlanal.c (low_bitmask_len): ... to here.
12825         * rtl.h (low_bitmask_len): Declare.
12826
12827 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
12828
12829         PR target/8603
12830         * config/alpha/alpha.md (addsi3): Remove expander.
12831         (addsi3): Rename from *addsi3_internal insn pattern.
12832         (subsi3): Remove expander.
12833         (subsi3): Rename from *subsi3_internal insn pattern.
12834
12835 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
12836
12837         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
12838         FWRITE_UNLOCKED.
12839
12840 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
12841             Eric Botcazou  <botcazou@adacore.com>
12842             Douglas B Rupp  <rupp@gnat.com>
12843
12844         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
12845         that records that fit in 64 bits are returned by immediate value,
12846         as required by OpenVMS Calling Standard.
12847         (function_value): Adjust for above modification.
12848         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
12849         virtual_incoming_args_rtx as base object, not next_arg.
12850         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12851
12852 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12853
12854         * reload.c (find_reloads_subreg_address): Check the original
12855         req_equiv_mem address to detect the case where an address is
12856         not valid in the outer mode.
12857
12858 2009-08-11  Richard Guenther  <rguenther@suse.de>
12859
12860         PR bootstrap/40788
12861         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
12862
12863 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
12864
12865         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
12866         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
12867
12868 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
12869             Douglas B Rupp  <rupp@gnat.com>
12870
12871         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
12872         PT_STACK when frame_pointer_needed on OpenVMS.
12873         (alpha_pv_save_size, alpha_using_fp): Remove.
12874         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
12875         with proper processing for PT_NULL.
12876         (alpha_vms_initial_elimination_offset): New function. Support for
12877         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
12878         (alpha_sa_size): Force procedure type to PT_STACK when
12879         frame_pointer_needed on OpenVMS.
12880         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
12881         (alpha_using_fp): Likewise.
12882         (alpha_vms_can_eliminate): Add prototype.
12883         (alpha_vms_initial_elimination_offset): Likewise.
12884         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
12885         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
12886
12887 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
12888             Douglas B Rupp  <rupp@gnat.com>
12889
12890         * config/alpha/alpha.c (common_object_handler): New function.
12891         (vms_attribute_table): Declare a single attribute "common_object".
12892         (vms_output_aligned_decl_common): New global function.
12893         (SECTION_VMS_OVERLAY): Delete.
12894         (SECTION_VMS_GLOBAL): Likewise.
12895         (SECTION_VMS_INITIALIZE): Likewise.
12896         (vms_asm_named_section): Remove support for above flags.
12897         (vms_section_type_flags): Delete.
12898         (TARGET_SECTION_TYPE_FLAGS): Likewise.
12899         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
12900         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
12901         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
12902
12903 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12904
12905         PR target/41015
12906         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
12907         (sub_ddmmss): Likewise.
12908
12909 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
12910
12911         PR bootstrap/41018
12912         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
12913         year.
12914
12915 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12916
12917         PR target/37053
12918         * reload1.c (reload_as_needed): Use cancel_changes to completely
12919         undo a failed replacement attempt.
12920
12921 2009-08-10  Richard Guenther  <rguenther@suse.de>
12922
12923         PR middle-end/41006
12924         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
12925         (useless_type_conversion_p): ... here.  Require pointer targets
12926         to be compatible.
12927
12928 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
12929
12930         PR c++/40866
12931         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
12932         loose the original type of the statement list.
12933
12934 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12935
12936         * config/alpha/alpha.c: Include libfuncs.h
12937         (avms_asm_output_extern): New function.
12938         (alpha_init_libfuncs): Init some decc libfuncs.
12939         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
12940         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
12941         (DO_CRTL_NAMES): Define.
12942         (LIB_SPEC): Remove.
12943         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
12944         (LONG_TYPE_SIZE): Define.
12945         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
12946         (SUBTARGET_SWITCHES): Define malloc64 switch.
12947         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
12948         (MASK_RETURN_ADDR): Define.
12949         doc/invoke.texi (mmalloc64): Document switch.
12950
12951 2009-08-09  Olivier Hainque  <hainque@adacore.com>
12952             Douglas B Rupp  <rupp@gnat.com>
12953
12954         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
12955         uses_condition_handler.
12956         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
12957         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
12958         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
12959         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
12960         (code_for_builtin): New insn codes for the new alpha_builtins.
12961         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
12962         (alpha_sa_size): Account for uses_condition_handler.
12963         (alpha_expand_prologue): Likewise.
12964         (alpha_start_function): Likewise.
12965         (alpha_expand_epilogue): Likewise.
12966         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
12967         establish/revert expanders.
12968         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
12969         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
12970         New expander, resorting to the alpha.c associated function.
12971         (builtin_revert_vms_condition_handler): Likewise.
12972         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
12973         __gcc_shell_handler, the static VMS condition handler used as
12974         an indirection wrapper to the current dynamically established
12975         handler.
12976         * config/alpha/vms-unwind.h: Complete rewrite.
12977         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
12978         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
12979
12980 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
12981             Douglas B Rupp  <rupp@gnat.com>
12982
12983         * config/alpha/alpha.c (alpha_links): Add 'target' field.
12984         (alpha_need_linkage): Handle aliases.  Return function symbol.
12985         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
12986         Use ultimate alias target for the linkage name.
12987         * config/alpha/alpha.md (movmemdi): Use the symbol returned
12988         by alpha_need_linkage for the function symbol.
12989         (setmemdi): Likewise.
12990
12991 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
12992
12993         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
12994         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
12995         (ASM_WEAKEN_LABEL): Define.
12996         (CRT_CALL_STATIC_FUNCTION): Define.
12997         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
12998         (ENDFILE_SPEC): Define.
12999         (INIT_SECTION_ASM_OP): Define.
13000         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
13001         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
13002         crtend.o crtendS.o.
13003         (MULTILIB_OSDIRNAMES): Define.
13004         (shlib_version): Define.
13005         (SHLIB_EXT): Define.
13006         (SHLIB_OBJS): Define.
13007         (SHLIB_NAME): Define.
13008         (SHLIB_MULTILIB): Define.
13009         (SHLIB_INSTALL): Define.
13010         (SHLIB_SYMVEC): Define.
13011         (SHLIB_SYMVECX2): Define.
13012         (SHLIB_LINK): Define.
13013
13014 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13015
13016         * config/alpha/alpha.c (alpha_initialize_trampoline):
13017         Initialize VMS trampoline IAW ABI for bounded procedure calls.
13018         (alpha_start_function): Emit transfer address on nested functions
13019         for VMS trampoline call.
13020         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
13021         since no longer used.
13022         * config/alpha/vms-tramp.asm: Remove.
13023         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
13024         since now only data initialized at runtime.
13025
13026 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13027
13028         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
13029         (LINK_GCC_C_SEQUENCE_SPEC): Define.
13030         (MD_EXEC_PREFIX): Remove, no longer used.
13031         (MD_STARTFILE_PREFIX): Likewise.
13032         (INCLUDE_DEFAULTS): Likewise.
13033         * config/alpha/t-vms:
13034         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
13035
13036 2009-08-09  Richard Guenther  <rguenther@suse.de>
13037
13038         PR tree-optimization/41016
13039         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
13040         (operand_precision): Remove.
13041         (integral_operand_p): Likewise.
13042         (recognize_single_bit_test): Adjust.
13043
13044 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13045
13046         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
13047         operation overflows.  Likewise non-cast unary arithmetic.
13048         If one arm of a conditional expression is always taken,
13049         inhibit evaluation warnings for the other arm.  Likewise inhibit
13050         evaluation warnings for the second && or || operand if the first
13051         operand is enough to determine the result.
13052         * c-typeck.c (build_conditional_expr): Apply the same inhibition
13053         rules here.
13054         (build_binary_op): Prevent duplicate evaluation warnings.
13055
13056 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13057
13058         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
13059         and destination have different modes, Use promote_mode to
13060         determine the signedness of the conversion.  Assert that the
13061         promoted source mode matches the destination mode.  Don't pass
13062         the destination and destination mode to expand_expr if the source
13063         mode is different.  Simplify conversion logic.
13064
13065 2009-08-09  Ira Rosen  <irar@il.ibm.com>
13066
13067         PR tree-optimization/41008
13068         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
13069         from condition only in case it's a comparison. Adjust checks.
13070
13071 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
13072
13073         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
13074         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
13075         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
13076         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
13077         (dump_cand): Handle them.
13078         (struct iv_cand): New members COST_STEP and AINC_USE.
13079         (stmt_after_increment): Likewise.
13080         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
13081         callers changed.  Use gimple_uid comparison instead of scanning.
13082         (add_candidate_1): When looking for identical candidates, take
13083         AINC_USE into account.  Set it for new candidates.
13084         (force_expr_to_var_cost): Cast target_spill_cost to int.
13085         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
13086         All callers changed.  Check for availability of autoinc addressing
13087         modes, both in general for a given mode, and in the specific use case.
13088         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
13089         changed.
13090         (get_computation_cost): Likewise.
13091         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
13092         add_autoinc_candidates): New static functions.
13093         (add_candidate): Call add_autoinc_candidates for candidates based on
13094         a USE_ADDRESS use.
13095         (find_iv_candidates): Call set_autoinc_for_original_candidates.
13096         (determine_use_iv_cost_address): If we have an autoinc candidate at
13097         the matching use, verify autoinc is possible and subtract the cost
13098         of the candidate's step from the cost.
13099         (determine_iv_cost): Record the cost of the increment in the COST_STEP
13100         member of the candidate.
13101         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
13102         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
13103
13104 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13105
13106         * config.build (ia64-hp-*vms*): New target.
13107         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13108         with ia64-hp-*vms*.
13109         * config.gcc (ia64-hp-*vms*): New target.
13110         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13111         with ia64-hp-*vms*.
13112         * config.host (ia64-hp-*vms*): New target.
13113         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13114         with ia64-hp-*vms*.
13115
13116 2009-08-08  Richard Guenther  <rguenther@suse.de>
13117
13118         PR tree-optimization/40991
13119         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
13120
13121 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
13122
13123         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
13124         mode check.  Do truncations in an integer mode.
13125         (force_to_mode): Handle subregs for all mode types.  Only do
13126         arithmetic simplifications on integer modes.
13127
13128 2009-08-07  Richard Guenther  <rguenther@suse.de>
13129
13130         PR tree-optimization/40999
13131         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
13132         (maybe_fold_reference): Lookup constant initializers.
13133         (fold_gimple_assign): Likewise.
13134
13135 2009-08-07  Richard Guenther  <rguenther@suse.de>
13136
13137         * tree-ssa.c (useless_type_conversion_p_1): Only for types
13138         that require structural equality defer to the langhook.
13139
13140 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13141
13142         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
13143         comments.
13144         (struct ipa_pass_through_data): New type.
13145         (struct ipa_ancestor_jf_data): New type.
13146         (union jump_func_value): Removed field formal_id, added fields
13147         pass_through and ancestor.
13148         (struct ipa_param_call_note): Changed type of formal_id to int from
13149         unsigned.
13150         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
13151         operations jump functions and ancestor jump functions.
13152         (compute_complex_pass_through): New function.
13153         (compute_scalar_jump_functions): Call compute_complex_pass_through,
13154         reflect changes in the jump function strucutre.
13155         (update_jump_functions_after_inlining): Ignore complex pass-through
13156         and ancestor jump functions.
13157         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
13158         polynomial pass-through with operation jump functions.
13159
13160 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
13161
13162         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
13163         fde->dw_fde_begin as begin label instead of hot/cold label.
13164         Use LLSDAC label instead of LLSDA for second section lsda.
13165         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
13166         label instead of LLSDA if it is true.
13167         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
13168         callers.
13169         * except.c (add_call_site, dw2_size_of_call_site_table): Add
13170         SECTION argument.  Use it as index into crtl->eh.call_site_record
13171         array.
13172         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
13173         use it to determine how to print table entries instead of using
13174         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
13175         label instead of normal begin label as base.
13176         (sjlj_assign_call_site_values): Adjust add_call_site caller.
13177         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
13178         ensure no EH range spans between sections and that landing pads
13179         are always in the corresponding section.
13180         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
13181         for crtl->eh.call_site_record being an array rather than scalar.
13182         (output_one_function_exception_table): New function, copied
13183         from output_function_exception_table.  Adjust
13184         dw2_size_of_call_site_table, dw2_output_call_site_table
13185         callers.  For SECOND section use *C suffixed labels.
13186         (output_function_exception_table): Call
13187         output_one_function_exception_table and, when doing hot/cold
13188         partitioning, also another time for the second section.
13189         * opts.c: Include except.h.
13190         (decode_options): Allow -freorder-blocks-and-partition with
13191         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
13192         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
13193         * function.h (struct rtl_eh): Change call_site_record from
13194         scalar into array of 2 elements.
13195
13196 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13197
13198         * ipa-prop.c (count_formal_params_1): New function.
13199         (ipa_get_vector_of_formal_parms): New function.
13200         (get_vector_of_formal_parm_types): New function.
13201         (ipa_modify_formal_parameters): New function.
13202         (ipa_modify_call_arguments): New function.
13203         (index_in_adjustments_multiple_times_p): New function.
13204         (ipa_combine_adjustments): New function.
13205         (ipa_dump_param_adjustments): New function.
13206         * ipa-prop.h (struct ipa_parm_adjustment): New type.
13207         (ipa_get_vector_of_formal_parms): Declare.
13208         (ipa_modify_formal_parameters): Declare.
13209         (ipa_modify_call_arguments): Declare.
13210         (ipa_combine_adjustments): Declare.
13211         (ipa_dump_param_adjustments): Declare.
13212         (build_ref_for_offset): Declare.
13213         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
13214         * tree-sra.c: Include ipa-prop.c.
13215         (build_ref_for_offset): Make public.
13216
13217 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
13218
13219         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
13220
13221 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
13222
13223         * gcc/doc/extend.texi (__builtin_extract_return_address)
13224         (__builtin_frob_return_address): Document.
13225
13226 2009-08-06  Paul Brook  <paul@codesourcery.com>
13227
13228         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
13229         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
13230         implementation on ARMv6-M.
13231
13232 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13233
13234         * doc/extend.texi (pcs): Document new attribute for ARM.
13235
13236 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13237
13238         * arm.c (pcs_attribute_args): Comment out unsupported attribute
13239         variants.
13240
13241 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13242
13243         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
13244         warning ().
13245
13246 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13247
13248         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
13249
13250 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13251
13252         Merge ARM/hard_vfp_branch to trunk.
13253
13254         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
13255
13256         * arm.c (libcall_eq): New function.
13257         (libcall_hash): New function.
13258         (add_libcall): New function.
13259         (arm_libcall_uses_aapcs_base): New function.
13260         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
13261         libcalls using the base PCS.
13262         (arm_init_cumulative_args): Likewise.
13263
13264         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
13265
13266         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
13267         Use base ABI for conversion libfuncs between HFmode and SFmode.
13268
13269         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13270
13271         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
13272         V4SImode as representatives of all 64-bit and 128-bit vector
13273         types.  Allow vector types without vector modes.
13274         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
13275         without vector modes like BLKmode.
13276         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
13277         BLKmode.  Avoid unsupported vector modes or TImode moves for
13278         non-TARGET_NEON.
13279         (aapcs_vfp_allocate_return_reg): Likewise.
13280         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
13281         V8QImode if TARGET_NEON || TARGET_IWMMXT.
13282
13283         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * config/arm/arm.c (arm_handle_pcs_attribute): New.
13286         (arm_get_pcs_model): Pass attribute arguments to
13287         arm_pcs_from_attribute.
13288         (arm_init_cumulative_args): Use base AAPCS for conversions from
13289         floating-point types to DImode.
13290         (arm_attribute_table): Add pcs attribute.
13291         (arm_handle_pcs_attribute): New.
13292         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
13293         conversions from floating-point types to DImode, also declare them
13294         to use base AAPCS and declare functions they call to use base
13295         AAPCS and their RTABI names.
13296
13297         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13298
13299         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
13300         -mfloat-abi=hard not being supported for VFP.
13301
13302         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
13303
13304         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
13305         SYMBOL_REF to hard_libcall_value.
13306
13307         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13308             Richard Earnshaw  <rearnsha@arm.com>
13309
13310         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
13311         has been put on the stack, all remaining co-processory arguments for
13312         that co-processor also go on the stack.
13313
13314         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13315
13316         * config/arm/arm.c (arm_return_in_memory): Handle returning
13317         vectors of suitable size in registers also for AAPCS case.
13318
13319         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
13320
13321         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
13322
13323         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
13324
13325         ARM Hard-VFP calling convention
13326         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
13327         * target.h (gcc_target): Add libcall_value to table of call hooks.
13328         * targhooks.h (default_libcall_value): Default implementation.
13329         * targhooks.c (default_libcall_value): Likewise.
13330         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
13331         * optabs.c (expand_unop): Use it.
13332         * expr.h (hard_libcall_value): Pass the function RTX through.
13333         * calls.c (emit_library_call_value_1): Update call to
13334         hard_libcall_value.
13335         * explow.c (hard_libcall_value): Use new target hook.
13336         * config/arm/arm.c: Include cgraph.h
13337         (TARGET_FUNCTION_VALUE): Override default hook.
13338         (arm_pcs_default): New variable.
13339         (arm_override_options): Don't fault hard calling convention with VFP.
13340         Add support for AAPCS variants.
13341         (arm_function_value): Make static.  Handle AAPCS variants.
13342         (arm_libcall_value): New function.
13343         (arm_apply_result_size): Handle VFP registers in results.
13344         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
13345         conventions.
13346         (pcs_attribute_args): New variable.
13347         (arm_pcs_from_attribute): New function.
13348         (arm_get_pcs_model): New function.
13349         (aapcs_vfp_cum_init): New function.
13350         (aapcs_vfp_sub_candidate): New function.
13351         (aapcs_vfp_is_return_candidate): New function.
13352         (aapcs_vfp_is_call_candidate): New function.
13353         (aapcs_vfp_allocate): New function.
13354         (aapcs_vfp_allocate_return_reg): New function.
13355         (aapcs_vfp_advance): New function.
13356         (aapcs_cp_arg_layout): New variable.
13357         (aapcs_select_call_coproc): New function.
13358         (aapcs_select_return_coproc): New function.
13359         (aapcs_allocate_return_reg): New function.
13360         (aapcs_libcall_value): New function.
13361         (aapcs_layout_arg): New function.
13362         (arm_init_cumulative_args): Initialize AAPCS args data.
13363         (arm_function_arg): Handle AAPCS variants using new interface.
13364         (arm_arg_parital_bytes): Likewise.
13365         (arm_function_arg_advance): New function.
13366         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
13367         calling conventions.
13368         (arm_setup_incoming_varargs): Handle new AAPCS args data.
13369         * arm.h (NUM_VFP_ARG_REGS): Define.
13370         (LIBCALL_VALUE): Update.
13371         (FUNCTION_VALUE): Delete.
13372         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
13373         (arm_pcs): New enum.
13374         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
13375         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
13376         (FUNCTION_ARG_REGNO_P): Add VFP regs.
13377         * arm-protos.h (arm_function_arg_advance): Add.
13378         (aapcs_libcall_value): Add.
13379         (arm_function_value): Delete.
13380
13381 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
13382             H.J. Lu  <hongjiu.lu@intel.com>
13383
13384         PR target/40957
13385         * config/i386/i386.c (standard_sse_mode_p): Remove.
13386         (standard_sse_constant_p): Return 2 for integer mode
13387         vector_all_ones_operand when SSE2 is enabled.
13388         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
13389         (ix86_expand_vector_move): Do not check for negative values from
13390         standard_sse_constant_p.
13391
13392 2009-08-06  Richard Guenther  <rguenther@suse.de>
13393
13394         * tree-ssa.c (useless_type_conversion_p_1): Make function and
13395         array type comparisons frontend independent.
13396         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
13397         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
13398         out array reference lower bound and element size operands.
13399         (ao_ref_init_from_vn_reference): Properly compute the offset
13400         for ARRAY_RANGE_REF.
13401         (vn_reference_fold_indirect): Fill out array reference lower
13402         bound and element size operands.
13403         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
13404         a non gimple valued reference operand which can happen for
13405         array reference lower bound or element size.
13406         (create_component_ref_by_pieces_1): Properly generate the
13407         element size operand for array references.
13408
13409 2009-08-06  Richard Guenther  <rguenther@suse.de>
13410
13411         PR tree-optimization/40964
13412         * tree.c (iterative_hash_host_wide_int): Export.
13413         * tree.h (iterative_hash_host_wide_int): Declare.
13414         * tree-ssa-structalias.c (heapvar_map): New struct.
13415         (heapvar_map_eq): New function.
13416         (heapvar_map_hash): Likewise.
13417         (heapvar_lookup): Adjust.
13418         (heapvar_insert): Likewise.
13419         (make_constraint_from_heapvar): Allow multiple heap variables
13420         per decl at different offsets.
13421         (init_alias_heapvars): Adjust.
13422
13423 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13424
13425         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
13426         * mips_output_sync_loop (mips_output_sync_loop): Only emit
13427         trailing sync if TARGET_SYNC_AFTER_SC.
13428
13429 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
13430
13431         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
13432         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
13433         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
13434         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
13435         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
13436         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
13437         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13438         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
13439         test_and_set_12): Rewrite calls to mips_output_sync_loop.
13440         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
13441         the prototype declaration match the definition.
13442         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
13443         instructions explicitly.  Add barrier_before and operands
13444         parameters.
13445         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
13446         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
13447         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
13448         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
13449         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
13450         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
13451
13452 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
13453
13454         * tree-ssa-alias.c: Fix intervals to use [) syntax.
13455
13456 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
13457             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13458
13459         PR target/40906
13460         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
13461         source operand.
13462
13463 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
13464
13465         PR rtl-optimization/40924
13466         * dse.c (canon_address): Before calling cselib_expand_value_rtx
13467         make sure canon_rtx (mem_address) isn't simpler than
13468         canon_rtx (expanded_mem_address).
13469
13470 2009-08-05  Li Feng  <nemokingdom@gmail.com>
13471
13472         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
13473         for each poly_bb_p.
13474         (build_scop_drs): Build alias set for each SCoP.
13475
13476 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
13477
13478         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
13479         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
13480         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
13481         (MIPS_ARCH_FLOAT_SPEC): Likewise.
13482         (BASE_DRIVER_SELF_SPECS): Likewise.
13483
13484 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
13485
13486         * tree-ssa-alias.c: Fix some comment typos.
13487
13488 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13489
13490         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
13491         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
13492
13493 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
13494
13495         PR c/39902
13496         * simplify-rtx.c (simplify_binary_operation_1): Disable
13497         simplifications for decimal float operations.
13498
13499 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
13500
13501         PR middle-end/40943
13502         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
13503         operand of INDIRECT_REF.
13504
13505 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
13506
13507         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
13508         constants referencing TLS symbols.
13509
13510 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13511
13512         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
13513         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
13514
13515 2009-08-03  Richard Guenther  <rguenther@suse.de>
13516
13517         * tree.c (make_vector_type): Build a main variant first,
13518         get the canonical one and then build the variant.
13519         * tree-ssa.c (useless_type_conversion_p_1): Handle
13520         fixed-point types.
13521         (useless_type_conversion_p): Conversions to pointers to
13522         incomplete record types are useless.
13523
13524 2009-08-03  Richard Guenther  <rguenther@suse.de>
13525
13526         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
13527         file will be created.
13528         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
13529         * toplev.c (compile_file): Adjust comment.
13530
13531 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13532
13533         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
13534         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
13535         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13536         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13537         (sh_promote_function_mode): Fix typo.
13538
13539 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
13540
13541         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
13542
13543 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13544
13545         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
13546         declaration arguments.
13547
13548 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
13549
13550         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
13551         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
13552         (ix86_split_ashl): Ditto.
13553         (ix86_expand_vector_init_one_nonzero): Ditto.
13554         (ix86_expand_vector_set): Ditto.
13555         (ix86_expand_reduc_v4sf): Ditto.
13556
13557 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13558
13559         * explow.c (promote_function_mode): Remove assert.
13560         * config/sh/sh.c (sh_promote_function_mode): Declare.
13561
13562 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13563
13564         * config/pa/pa.c (pa_promote_function_mode): Declare.
13565         Change to static.  Fix promote_mode call.
13566
13567         * gthr-dce.h (CONST_CAST2): Define if not defined.
13568         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
13569
13570         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
13571
13572 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
13573
13574         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13575         now write-only variable unsignedp.
13576         (expand_expr_real_1): Use promote_decl_mode.
13577         * expr.h (promote_function_mode, promote_decl_mode): New.
13578         (promote_mode): Remove last argument.
13579         * function.c (assign_temp): Drop last argument of promote_mode.
13580         (assign_parm_find_data_types): Use promote_function_mode.
13581         (assign_parm_setup_reg): Likewise.
13582         (expand_function_end): Use promote_function_mode.
13583         * calls.c (initialize_argument_information): Use promote_function_mode.
13584         (precompute_arguments): Use promote_mode instead of checking if
13585         only PROMOTE_FUNCTION_MODE is defined.
13586         (expand_call): When making sibcall decisions, use promote_function_mode.
13587         Below, remove an if for targetm.calls.promote_function_return and
13588         and use promote_function_mode.
13589         (emit_library_call_value_1): Use promote_function_mode, fix bug
13590         where promote_mode was passed FOR_CALL == 0 for a return value in an
13591         assertion.
13592         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13593         * explow.c (promote_function_mode, promote_decl_mode): New.
13594         (promote_mode): Keep only the FOR_CALL == 0 case.
13595         * combine.c (setup_incoming_promotion): Remove test of
13596         promote_function_args.  Use promote_function_mode.
13597         * stmt.c (expand_value_return): Use promote_decl_mode.
13598         (expand_decl): Use promote_decl_mode.
13599
13600         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13601         now write-only variable unsignedp.
13602         (expand_expr_real_1): Use promote_decl_mode.
13603         * expr.h (promote_function_mode, promote_decl_mode): New.
13604         (promote_mode): Remove last argument.
13605         * function.c (assign_temp): Drop last argument of promote_mode.
13606         (assign_parm_find_data_types): Use promote_function_mode.
13607         (assign_parm_setup_reg): Likewise.
13608         (expand_function_end): Use promote_function_mode.
13609         * calls.c (initialize_argument_information): Use promote_function_mode.
13610         (precompute_arguments): Use promote_mode instead of checking if
13611         only PROMOTE_FUNCTION_MODE is defined.
13612         (expand_call): When making sibcall decisions, use promote_function_mode.
13613         Below, remove an if for targetm.calls.promote_function_return and
13614         and use promote_function_mode.
13615         (emit_library_call_value_1): Use promote_function_mode, fix bug
13616         where promote_mode was passed FOR_CALL == 0 for a return value in an
13617         assertion.
13618         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13619         * explow.c (promote_function_mode, promote_decl_mode): New.
13620         (promote_mode): Keep only the FOR_CALL == 0 case.
13621         * combine.c (setup_incoming_promotion): Remove test of
13622         promote_function_args.  Use promote_function_mode.
13623         * stmt.c (expand_value_return): Use promote_decl_mode.
13624         (expand_decl): Use promote_decl_mode.
13625
13626         * explow.c (promote_function_mode): Just call the target hook.
13627         * targhooks.c (default_promote_function_mode,
13628         default_promote_function_mode_always_promote): New.
13629         * targhooks.h (default_promote_function_mode,
13630         default_promote_function_mode_always_promote): Declare.
13631         * target.h (promote_function_args, promote_function_return): Remove.
13632         (promote_function_mode): New.
13633         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
13634         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13635         (TARGET_PROMOTE_FUNCTION_MODE): New.
13636         (TARGET_CALLS): Adjust.
13637         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
13638         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
13639
13640         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
13641         * config/s390/s390.c (s390_promote_function_mode): ... here,
13642         with pointer handling.
13643         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13644         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13645
13646         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
13647         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
13648         with pointer handling.
13649         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13650         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13651
13652         * config/sh/sh-protos.h (sh_promote_function_mode): New.
13653         * config/sh/sh.c (sh_promote_function_mode): New.
13654         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13655         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13656
13657         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
13658         * config/cris/cris.c (cris_promote_function_mode): ... here.
13659         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13660         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13661
13662         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
13663         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
13664         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13665         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13666
13667         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
13668         * config/arm/arm.c (arm_promote_function_mode): ... here, without
13669         complex type handling.
13670         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13671         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13672
13673         * config/pa/pa.c (pa_promote_function_mode): New.
13674         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13675         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13676
13677         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
13678         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13679         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
13680         * config/xtensa/xtensa.c: Likewise.
13681         * config/stormy16/stormy16.c: Likewise.
13682         * config/iq2000/iq2000.c: Likewise.
13683         * config/rs6000/rs6000.c: Likewise.
13684         * config/picochip/picochip.c: Likewise.
13685         * config/arc/arc.c: Likewise.
13686         * config/mcore/mcore.c: Likewise.
13687         * config/score/score.c: Likewise.
13688         * config/mips/mips.c: Likewise.
13689         * config/bfin/bfin.c: Likewise.
13690         * config/ia64/ia64.c: Likewise (disabled though).
13691
13692         * config/frv/frv.h: Remove pointless remark.
13693
13694         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
13695         TARGET_PROMOTE_FUNCTION_ARGS,
13696         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
13697         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
13698
13699 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13700
13701         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
13702         -floop-parallelize-all.
13703         * toplev.c (process_options): Rename flag_graphite_force_parallel to
13704         flag_loop_parallelize_all.
13705         * tree-ssa-loop.c (gate_graphite_transforms): Same.
13706         * graphite.c (graphite_transform_loops): Same.
13707         * common.opt: Same.
13708         * graphite-poly.c (apply_poly_transforms): Same.
13709
13710 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
13711
13712         PR tree-optimization/40914
13713         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
13714         if set, then check the delta field of the PMF record.
13715         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
13716         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
13717         call is stored in the delta.
13718
13719 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
13720
13721         * config/mips/mips.md (*clear_upper32_dext): New pattern.
13722
13723 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
13724
13725         * config/i386/bsd.h (ASM_BYTE): New define.
13726         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
13727         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
13728         .byte.  Use fputs or putc instead of fprintf where appropriate.
13729         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
13730         fputs or putc instead of fprintf where appropriate.
13731         * config/i386/i386elf.h: Ditto.
13732         * config/i386/sysv4.h: Ditto.
13733
13734         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
13735         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
13736         (*tls_global_dynamic_64): Ditto.
13737
13738 2009-07-31  Christian Bruel  <christian.bruel@st.com>
13739
13740         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
13741
13742 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13743
13744         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
13745         Remove dead code for MINUS.
13746
13747 2009-07-31  Anthony Green  <green@moxielogic.com>
13748
13749         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
13750         $r12 in prologue.
13751         (moxie_expand_epilogue): Ditto for epilogue.
13752         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
13753         incoming arguments.
13754         (moxie_function_arg): Ditto.
13755         (moxie_pass_by_reference): Ditto.
13756         (moxie_arg_partial_bytes): Ditto.
13757         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
13758         (FUNCTION_ARG_ADVANCE) Ditto.
13759         (REG_PARM_STACK_SPACE) Ditto.
13760         (FUNCTION_ARG_REGNO_P) Dito.
13761
13762         * config.gcc: Add moxie linux config support.
13763         * gcc/config/moxie/uclinux.h: New file.
13764
13765 2009-07-31  DJ Delorie  <dj@redhat.com>
13766
13767         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13768         (UNSPECV_SP_SWITCH_E): New.
13769         (sp_switch_1): Change to an unspec.
13770         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13771         replace $r15.
13772         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
13773         reference the new stack's address
13774
13775 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13776
13777         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
13778         graphite-clast-to-gimple.o, graphite-dependences.o,
13779         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13780         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
13781         (graphite-blocking.o,
13782         graphite-clast-to-gimple.o, graphite-dependences.o,
13783         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13784         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
13785         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
13786         * cfgloop.h (struct loop): Add can_be_parallel field.
13787         * common.opt (fgraphite-identity): Moved up.
13788         (fgraphite-force-parallel): New flag.
13789         * graphite.c: Rewrite.
13790         * graphite.h: Rewrite.
13791         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
13792         after Graphite.
13793         * toplev.c (graphite_out_file): New file descriptor.
13794         (graphite_in_file): New.
13795         (process_options): flag_graphite_force_parallel cannot be used without
13796         Graphite.
13797         * tree-ssa-loop.c: Include toplev.h.
13798         (gate_graphite_transforms): Enable flag_graphite for
13799         flag_graphite_force_parallel.
13800
13801 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13802
13803         * ChangeLog.graphite: New.
13804         * graphite-blocking.c: New.
13805         * graphite-clast-to-gimple.c: New.
13806         * graphite-clast-to-gimple.h: New.
13807         * graphite-dependences.c: New.
13808         * graphite-dependences.h: New.
13809         * graphite-interchange.c: New.
13810         * graphite-poly.c: New.
13811         * graphite-poly.h: New.
13812         * graphite-ppl.c: New.
13813         * graphite-ppl.h: New.
13814         * graphite-scop-detection.c: New.
13815         * graphite-scop-detection.h: New.
13816         * graphite-sese-to-poly.c: New.
13817         * graphite-sese-to-poly.h: New.
13818         * sese.c: New.
13819         * sese.h: New.
13820
13821 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13822
13823         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
13824         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
13825
13826 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13827
13828         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
13829         (scev_is_linear_expression): Return false if the evolution is not
13830         affine multivariate.
13831
13832 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13833
13834         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
13835         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
13836
13837 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13838
13839         * tree-data-ref.c (debug_data_references): New.
13840         (debug_data_reference): New.
13841         * tree-data-ref.h (debug_data_references): Declared.
13842         (debug_data_reference): Declared.
13843
13844 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13845
13846         * tree-data-ref.c (stmt_simple_memref_p: Removed.
13847         * tree-data-ref.h (scop_p): Removed.
13848         (struct data_reference): Remove field scop.
13849         (DR_SCOP): Removed.
13850         (stmt_simple_memref_p): Removed.
13851
13852 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13853
13854         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
13855         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
13856         basic block empty.
13857
13858 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13859
13860         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
13861
13862 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13863
13864         * doc/invoke.texi (-fgraphite-identity): Documented.
13865
13866 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13867
13868         * tree-scalar-evolution.c: Fix comment.
13869         (instantiate_scev_1): Return unknow from scev instantiation if the
13870         result is not above instantiate_below.
13871
13872 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13873
13874         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
13875         static anymore.  Instantiate the symbols that may have been introduced
13876         by chrec_apply.
13877         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
13878         Declared.
13879
13880 2009-07-30  DJ Delorie  <dj@redhat.com>
13881
13882         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
13883         .vliw directive to VLIW sections.
13884
13885 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13886
13887         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
13888         New variables.
13889         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
13890         (AUTOHEADER): New variable.
13891         ($(srcdir)/cstamp-h.in): Use it.
13892
13893 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
13894             Pat Haugen  <pthaugen@us.ibm.com>
13895             Revital Eres <ERES@il.ibm.com>
13896
13897         * config/rs6000/vector.md (VEC_F): Add VSX support.
13898         (VEC_A): Ditto.
13899         (VEC_N): Ditto.
13900         (mov<mode>): Ditto.
13901         (vector_load_<mode>): Ditto.
13902         (vector_store_<mode>): Ditto.
13903         (vector GPR move split): Ditto.
13904         (vec_reload_and_plus_<mptrsize>): Ditto.
13905         (vec_reload_and_reg_<mptrsize>): Ditto.
13906         (add<mode>3): Ditto.
13907         (sub<mode>3): Ditto.
13908         (mul<mode>3): Ditto.
13909         (neg<mode>2): Ditto.
13910         (abs<mode>2): Ditto.
13911         (smin<mode>3): Ditto.
13912         (smax<mode>3): Ditto.
13913         (vector_eq<mode>): Ditto.
13914         (vector_gt<mode>): Ditto.
13915         (vector_ge<mode>): Ditto.
13916         (vector_gtu<mode>): Ditto.
13917         (vector_select_<mode>_uns): Ditto.
13918         (vector_eq_<mode>_p): Ditto.
13919         (vector_gt_<mode>_p): Ditto.
13920         (vector_ge_<mode>_p): Ditto.
13921         (vector_gtu_<mode>_p): Ditto.
13922         (cr6_test_for_zero): Ditto.
13923         (cr6_test_for_zero_reverse): Ditto.
13924         (cr6_test_for_lt): Ditto.
13925         (cr6_test_for_lt_reverse): Ditto.
13926         (xor<mode>3): Ditto.
13927         (ior<mode>3): Ditto.
13928         (and<mode>3): Ditto.
13929         (one_cmpl<mode>2): Ditto.
13930         (nor<mode>2): Ditto.
13931         (andc<mode>2): Ditto.
13932         (float<VEC_int<mode>2): Ditto.
13933         (unsigned_float<VEC_int><mode>2): Ditto.
13934         (fix_trunc<mode><VEC_int>2): Ditto.
13935         (fixuns_trunc<mode><VEC_int>2): Ditto.
13936         (vec_init<mode>):
13937         (vec_set<mode>): Ditto.
13938         (vec_extract<mode>): Ditto.
13939         (vec_interleave_highv4sf): Ditto.
13940         (vec_interleave_lowv4sf): Ditto.
13941         (vec_realign_load_<mode>): Ditto.
13942         (vec_shl_<mode>): Ditto.
13943         (vec_shr_<mode>): Ditto.
13944         (div<mode>3): New patterns for VSX.
13945         (vec_interleave_highv2df): Ditto.
13946         (vec_interleave_lowv2df): Ditto.
13947         (vec_pack_trunc_v2df): Ditto.
13948         (vec_pack_sfix_trunc_v2df): Ditto.
13949         (vec_pack_ufix_trunc_v2df): Ditto.
13950         (vec_unpacks_hi_v4sf): Ditto.
13951         (vec_unpacks_lo_v4sf): Ditto.
13952         (vec_unpacks_float_hi_v4si): Ditto.
13953         (vec_unpacks_float_lo_v4si): Ditto.
13954         (vec_unpacku_float_hi_v4si): Ditto.
13955         (vec_unpacku_float_lo_v4si): Ditto.
13956         (movmisalign<mode>): Ditto.
13957         (vector_ceil<mode>2): New patterns for vectorizing math library.
13958         (vector_floor<mode>2): Ditto.
13959         (vector_btrunc<mode>2): Ditto.
13960         (vector_copysign<mode>3): Ditto.
13961
13962         * config/rs6000/predicates.md (easy_vector_constant_msb): New
13963         predicate for setting the high bit in each word, used for copysign.
13964
13965         * config/rs6000/ppc-asm.h (f19): Whitespace.
13966         (f32-f63): Define if VSX.
13967         (v0-v31): Define if Altivec.
13968         (vs0-vs63): Define if VSX.
13969
13970         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
13971
13972         * config/rs6000/power7.md: New file, provide tuning parameters for
13973         -mcpu=power7.
13974
13975         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
13976         (rs6000_cpu_cpp_builtins): Ditto.
13977         (altivec_overloaded_builtins): Ditto.
13978         (altivec_resolve_overloaded_builtin): Ditto.
13979
13980         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
13981         debug switch to disable vectorizing simple math builtin
13982         functions.
13983
13984         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13985         Vectorize simple math builtin functions.
13986         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13987         hook to vectorize math builtins.
13988         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
13989         (rs6000_builtin_conversion): Add VSX/power7 support.
13990         (rs6000_builtin_vec_perm): Ditto.
13991         (vsplits_constant): Add support for loading up a vector constant
13992         with just the high bit set in each part.
13993         (rs6000_expand_vector_init): Add VSX/power7 support.
13994         (rs6000_expand_vector_set): Ditto.
13995         (rs6000_expand_vector_extract): Ditto.
13996         (rs6000_emit_move): Ditto.
13997         (bdesc_3arg): Ditto.
13998         (bdesc_2arg): Ditto.
13999         (bdesc_1arg): Ditto.
14000         (rs6000_expand_ternop_builtin): Ditto.
14001         (altivec_expand_builtin): Ditto.
14002         (rs6000_expand_unop_builtin): Ditto.
14003         (rs6000_init_builtins): Ditto.
14004         (altivec_init_builtins): Ditto.
14005         (builtin_function_type): Ditto.
14006         (rs6000_common_init_builtins): Ditto.
14007         (rs6000_handle_altivec_attribute); Ditto.
14008         (rs6000_mangle_type): Ditto.
14009         (rs6000_vector_mode_supported_p): Ditto.
14010         (rs6000_mode_dependent_address): Altivec addresses with AND -16
14011         are mode dependent.
14012
14013         * config/rs6000/vsx.md: New file for VSX support.
14014
14015         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
14016         identifing values with just the most significant bit set.
14017         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
14018         vectorized builtins.
14019
14020         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
14021         (UNSPEC_VRFIM): Delete.
14022         (splitter for loading up vector with most significant bit): New
14023         splitter for vectorizing copysign.
14024         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
14025         vectorizing simple math functions.
14026         (altivec_vrfip): Add support for vectorizing simple math functions.
14027         (altivec_vrfim): Ditto.
14028         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
14029
14030         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
14031         (power7.md, vsx.md): Include for power7 support.
14032         (copysigndf3): Use VSX instructions if -mvsx.
14033         (negdf2_fpr): Ditto.
14034         (absdf2_fpr): Ditto.
14035         (nabsdf2_fpr): Ditto.
14036         (adddf3_fpr): Ditto.
14037         (subdf3_fpr): Ditto.
14038         (muldf3_fpr): Ditto.
14039         (divdf3_fpr): Ditto.
14040         (fix_truncdfdi2_fpr): Ditto.
14041         (cmpdf_internal1): Ditto.
14042         (fred, fred_fpr): Convert into expander/insn to add VSX support.
14043         (btruncdf2, btruncdf2_fpr): Ditto.
14044         (ceildf2, ceildf2_fpr): Ditto.
14045         (floordf2, floordf2_fpr): Ditto.
14046         (floatdidf2, floatdidf2_fpr): Ditto.
14047         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
14048         (fmsubdf4_fpr): Ditto.
14049         (fnmadddf4_fpr_1): Ditto.
14050         (fnmadddf4_fpr_2): Ditto.
14051         (fnmsubdf4_fpr_1): Ditto.
14052         (fnmsubdf4_fpr_2): Ditto.
14053         (fixuns_truncdfdi2): Add expander for VSX support.
14054         (fix_truncdfdi2): Ditto.
14055         (fix_truncdfsi2): Ditto.
14056         (ftruncdf2): Ditto.
14057         (btruncsf2): Whitespace.
14058         (movdf_hardfloat32): Add support for VSX registers.
14059         (movdf_softfloat32): Ditto.
14060         (movdf_hardfloat64): Ditto.
14061         (movdf_hardfloat64_mfpgpr): Ditto.
14062         (movdf_softfloat64): Ditto.
14063         (movti splitters): Add check for vector registers supporting
14064         TImode in the future.
14065         (bpermd): Add power7 bpermd instruction.
14066
14067         * config/rs6000/altivec.h (vec_div): Define if VSX.
14068         (vec_mul): Ditto.
14069         (vec_msub): Ditto.
14070         (vec_nmadd): Ditto.
14071         (vec_nearbyint): Ditto.
14072         (vec_rint): Ditto.
14073         (vec_sqrt): Ditto.
14074         (all predicates): Use the generic builtin function, and not the V4SF
14075         specific function so that the predicates will work with VSX's V2DF.
14076         (vec_all_*): Ditto.
14077         (vec_any_*): Ditto.
14078
14079         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
14080         Document new VSX functions and types.
14081
14082         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
14083         switches.
14084
14085         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
14086         "wa", and "j" constraints.  Modify "v" to talk about Altivec
14087         instead of just vector.
14088
14089 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
14090
14091         PR debug/26475
14092         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
14093         location for phi arguments.
14094         (rewrite_update_phi_arguments): Find locations for reaching defs.
14095         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
14096         Add location to add_phi_arg calls.
14097         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
14098         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
14099         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
14100         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
14101         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
14102         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
14103         * tree-phinodes.c (make_phi_node): Initialize location.
14104         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
14105         (add_phi_arg): Add location parameter.
14106         (remove_phi_arg_num): Move location when moving phi argument.
14107         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
14108         location.
14109         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
14110         slpeel_update_phi_nodes_for_guard1,
14111         slpeel_update_phi_nodes_for_guard2,
14112         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
14113         vect_loop_versioning): Set locations.
14114         * tree-parloops.c (create_phi_for_local_result,
14115         transform_to_exit_first_loop, create_parallel_loop): Add locations.
14116         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
14117         * tree-vect-loop.c (get_initial_def_for_induction,
14118         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
14119         locations.
14120         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
14121         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
14122         (gimple_phi_arg_set_location): New.  Set locus.
14123         (gimple_phi_arg_has_location): New.  Check for locus.
14124         (redirect_edge_var_map_location): New.  Return locus from var_map.
14125         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
14126         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
14127         combining PHI arguments.
14128         (cond_store_replacement): Set location.
14129         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
14130         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
14131         scop_add_exit_phis_edge): Add locations.
14132         * tree-cfgcleanup.c (remove_forwarder_block,
14133         remove_forwarder_block_with_phi): Add locations.
14134         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
14135         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
14136         locations.
14137         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
14138         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
14139         flush_pending_stmts): Add source location.
14140         * lambda-code.c (perfect_nestify): Maintain location stack with argument
14141         stack to preserve locations.
14142         * tree-vect-stmts.c (vectorizable_load): Add location.
14143         * tree-inline.c (copy_phis_for_bb): Copy locus.
14144         (setup_one_parameter): Add call locus to inlined parameter stmts.
14145         (initialize_inlined_parameters): Pass in call location as parameter
14146         assignment locus.
14147         (tree_function_versioning): Pass location to setup_one_parameter.
14148         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
14149         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
14150         copy and edge lists.
14151         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
14152         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
14153         locus parameter and override the stmt default if provided.
14154         (new_elim_graph, clear_elim_graph, delete_elim_graph,
14155         elim_graph_add_edge, elim_graph_remove_succ_edge,
14156         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
14157         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
14158         eliminate_phi):  Add locus info in elimination graph for each edge and
14159         value copy.
14160         (insert_backedge_copies): Copy locus if present.
14161         * tree-flow.h (struct _edge_var_map): Add locus field.
14162         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
14163         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
14164         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
14165         locations.
14166         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
14167
14168 2009-07-30  Martin Jambor  <mjambor@suse.cz>
14169
14170         PR tree-optimization/40570
14171         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
14172         use inlining loops.
14173
14174 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
14175
14176         * ssa-loop-manip.c: Include langhooks.h.
14177         (rewrite_phi_with_iv): New.
14178         (rewrite_all_phi_nodes_with_iv): New.
14179         (canonicalize_loop_ivs): Move here from tree-parloops.c.
14180         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
14181         * tree-parloops.c (loop_parallel_p): Move out all conditions
14182         except dependency check.
14183         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
14184         (gen_parallel_loop): Call canonicalize_loop_ivs without
14185         reduction_list argument.
14186         (build_new_reduction): New.
14187         (gather_scalar_reductions): New.
14188         (try_get_loop_niter): New.
14189         (try_create_reduction_list): New.
14190         (parallleize_loops): Change the parallel conditions check.
14191         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
14192         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
14193
14194 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14195
14196         * opt-functions.awk (opt_args): Allow argument to be enclosed in
14197         curly braces.
14198         * doc/options.texi (Option properties):  Mention new quoting syntax.
14199
14200 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14201
14202         * config/alpha/alpha.c (alpha_start_function):
14203         Handle VMS_DEBUG_MAIN_POINTER
14204         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
14205         * doc/invoke.texi: Document -mdebug-main switch.
14206
14207 2009-07-29  Richard Henderson  <rth@redhat.com>
14208
14209         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
14210         (cgraph_create_edge_including_clones): Likewise.
14211         * tree-inline.c (copy_bb): Operate on the correct edges
14212         when updating the callgraph.
14213
14214 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14215
14216         * config/alpha/vms-cc.c: Deleted.
14217         * config/alpha/vms-ld.c: Deleted.
14218         * config/alpha/t-vms64: Moved to config/vms
14219         * config/alpha/vms-crt0-64.c: Moved to config/vms
14220         * config/alpha/vms-crt0.c: Moved to config/vms
14221         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
14222         * config/alpha/vms-psxcrt0.c: Moved to config/vms
14223         * config/alpha/xm-vms.h: Moved to config/vms
14224         * config/alpha/x-vms: Moved to config/vms
14225         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
14226         config/vms/t-vms.
14227         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
14228         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
14229         (version): Set.
14230         * config/vms/t-vms64: Moved here from config/alpha
14231         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
14232         (argc,argv,envp): Enforce 32bit malloc'ing.
14233         * config/vms/vms-psxcrt0-64.c: Likewise.
14234         * config/vms/vms-crt0.c: Moved here from config/alpha.
14235         * config/vms/vms-psxcrt0.c: Likewise.
14236         * config/vms/vms-crtl-64.h: New file.
14237         * config/vms/vms-crtl.h: New file.
14238         * config/vms/vms.opt: New file.
14239         * config/vms/xm-vms64.h: New file.
14240         * config/vms/xm-vms.h: Moved here from config/alpha.
14241         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
14242         Set.
14243         * config/vms/x-vms: Moved here from config/alpha.
14244         (version, VMS_EXTRA_PARTS): Moved to t-vms.
14245         (vms-ld.o, vms-cc.o): Removed.
14246         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
14247
14248 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14249
14250         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
14251         correct stack (obvious VMS fix).
14252
14253 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14254
14255         * dwarf2out.c (output_file_names): Output VMS style file name, size,
14256         date, version info if VMS_DEBUGGING_INFO defined.
14257         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
14258         size, date calculating code moved here.
14259
14260 2009-07-29  Paul Brook  <paul@codesourcery.com>
14261
14262         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
14263         do_push/do_pop.
14264
14265 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
14266
14267         PR target/40577
14268         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
14269         to DImode when generating insq_le insn.
14270
14271 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14272
14273         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
14274         New macro set for VMS_DEBUGGGING_INFO.
14275         (AT_string_form): Use it.
14276
14277 2009-07-28  DJ Delorie  <dj@redhat.com>
14278
14279         * config/mep/mep.c (vtext_section): New.
14280         (vftext_section): New.
14281         (ftext_section): New.
14282         (mep_select_section): Add support for functions.
14283         (mep_unique_section): Likewise.
14284         (mep_asm_init_sections): Likewise.
14285         (mep_encode_section_info): Remove it from here.
14286
14287         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
14288
14289 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
14290
14291         * tree.h (TREE_DEPRECATED): Document it is used for types too.
14292         (TYPE_VECTOR_OPAQUE): Use default_def_flag
14293
14294 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14295
14296         * dwarf2out.c (output_file_names): Test new macro
14297         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
14298         (add_comp_dir_attribute): Likewise.
14299
14300 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
14301
14302         * config/i386/mingw-w64.h (LINK_SPEC): Add
14303         separating space between commands.
14304
14305 2009-07-28  Jan Hubicka  <jh@suse.cz>
14306
14307         PR tree-optimization/40759
14308         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
14309         for renaming.
14310
14311 2009-07-27  DJ Delorie  <dj@redhat.com>
14312
14313         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
14314         types are dword-aligned.
14315         (mep_expand_va_start): Likewise.
14316
14317 2009-07-27  Olivier Hainque  <hainque@adacore.com>
14318             Douglas B Rupp  <rupp@gnat.com>
14319
14320         * convert.c (convert_to_pointer): Don't assume the target
14321         pointer type is POINTER_SIZE long. Fetch its precision instead.
14322
14323 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
14324
14325         * system.h (fopen): Undefine if macro.
14326
14327 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
14328
14329         * dwarf2out.c (output_cfi_p): Removed.
14330         (output_cfis): New function.
14331         (output_fde): New function, split from output_call_frame_info.
14332         (output_call_frame_info): Use it.
14333         (dwarf2out_switch_text_section): Use output_cfis.
14334
14335 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14336
14337         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
14338         TARGET_BI_ARCH is specified without enabling SJLJ.
14339         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
14340         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
14341
14342 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
14343
14344         * arm.md (negdi2): Use DImode if forcing a value into a register.
14345
14346 2009-07-26  Ira Rosen  <irar@il.ibm.com>
14347
14348         PR tree-optimization/40801
14349         * tree-vect-stmts.c (vectorizable_call): Get previous copy
14350         of vector operand from the previous copy of vector statement.
14351         Pass the correct definition type value to
14352         vect_get_vec_def_for_stmt_copy().
14353
14354 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14355
14356         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
14357         const char ** conversion.
14358
14359 2009-07-25 David Daney <ddaney@caviumnetworks.com>
14360
14361         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
14362         fancy_abort() if !ENABLE_ASSERT_CHECKING.
14363         (gcc_unreachable): Invoke __builtin_unreachable() if
14364         !ENABLE_ASSERT_CHECKING.
14365
14366 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14367
14368         PR rtl-optimization/40445
14369         * emit-rtl.c (next_nonnote_insn_bb): New function.
14370         * rtl.h (next_nonnote_insn_bb): Declare new function.
14371         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
14372         with no successors that is the successor of the ENTRY_BLOCK.
14373         Continue from the top after removing an empty fallthrough block.
14374         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
14375         of next_nonnote_insn.
14376
14377 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14378
14379         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
14380
14381 2009-07-25  Martin Jambor  <mjambor@suse.cz>
14382
14383         * c-common.c (c_common_attribute_table): New element for noclone.
14384         (handle_noclone_attribute): New function. Forward-declare.
14385         * tree-inline.c (tree_versionable_function_p): Check for noclone
14386         attribute.
14387         * doc/extend.texi (Labels as Values): Document need for noclone.
14388         (Function Attributes): Document noclone attribute.
14389
14390 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
14391
14392         PR rtl-optimization/34999
14393         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
14394         and dw_fde_switched_cold_to_hot fields.
14395         (output_cfi_p): New function.
14396         (output_call_frame_info): If fde->dw_fde_switched_sections,
14397         output 2 FDEs instead of one with corrupted header.
14398         (dwarf2out_do_cfi_startproc): New function.
14399         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
14400         and fde->dw_fde_switched_cold_to_hot.
14401         (dwarf2out_switch_text_section): Compute
14402         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
14403         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
14404         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
14405         Otherwise, compute fde->dw_fde_switch_cfi.
14406
14407 2009-07-24  Cary Coutant  <ccoutant@google.com>
14408
14409         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
14410
14411 2009-07-24  Cary Coutant  <ccoutant@google.com>
14412
14413         * cfghooks.c (split_block): Copy discriminator to new block.
14414         * tree-cfg.c (assign_discriminator): Check location of last
14415         instruction in block as well as first.
14416
14417 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
14418
14419         * config/i386/linux.c: Use fputs or putc instead of fprintf
14420         where appropriate.
14421         * config/i386/gas.h: Ditto.
14422         * config/i386/x86-64.h: Ditto.
14423         * config/i386/att.h: Ditto.
14424
14425 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14426
14427         * expmed.c (emit_store_flag): Use a recursive call to optimize the
14428         xor case.
14429
14430 2009-07-24  Martin Jambor  <mjambor@suse.cz>
14431
14432         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
14433         (ipa_push_func_to_list_1): Declare.
14434         (ipa_push_func_to_list): New function.
14435
14436         * ipa-prop.c (ipa_push_func_to_list_1): New function.
14437         (ipa_init_func_list): Call ipa_push_func_to_list_1.
14438         (ipa_push_func_to_list): Removed.
14439         (ipa_pop_func_from_list): Clear node_enqueued flag.
14440
14441 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14442
14443         * config/s390/s390.c (override_options): Default
14444         max-unrolled-insns to 100 for z10 tuning.
14445
14446 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
14447
14448         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
14449         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
14450         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
14451         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
14452         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
14453         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
14454         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
14455
14456 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14457
14458         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
14459         use default set in mingw32.h header.
14460         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
14461         64-bit /mingw/include path.
14462         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
14463         path.
14464
14465 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
14466
14467         PR rtl-optimization/40209
14468         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
14469
14470 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14471
14472         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
14473         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
14474         with the rest of string where appropriate.  Use fputs or putc
14475         instead of fprintf where appropriate.
14476
14477 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14478             Pat Haugen  <pthaugen@us.ibm.com>
14479             Revital Eres <ERES@il.ibm.com>
14480
14481         * config/rs6000/vector.md: New file.  Move most of the vector
14482         expander support here from altivec.md to allow for the VSX vector
14483         unit in the future.  Add support for secondary_reload patterns.
14484         Rewrite the patterns for vector comparison, and vector comparison
14485         predicate instructions so that the RTL expresses the desired
14486         behavior, instead of using unspec.
14487
14488         * config/rs6000/constraints.md ("f" constraint): Use
14489         rs6000_constraints to hold the precalculated register class.
14490         ("d" constraint): Ditto.
14491         ("wd" constraint): New constraint for VSX.
14492         ("wf" constraint): Ditto.
14493         ("ws" constraint): Ditto.
14494         ("wa" constraint): Ditto.
14495         ("wZ" constraint): Ditto.
14496         ("j" constraint): Ditto.
14497
14498         * config/rs6000/predicates.md (vsx_register_operand): New
14499         predicate for VSX.
14500         (vfloat_operand): New predicate for vector.md.
14501         (vint_operand): Ditto.
14502         (vlogical_operand): Ditto.
14503         (easy_fp_constant): If VSX, 0.0 is an easy constant.
14504         (easy_vector_constant): Add VSX support.
14505         (altivec_indexed_or_indirect_operand): New predicate for
14506         recognizing Altivec style memory references with AND -16.
14507
14508         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
14509         for vector secondary reload support.
14510         (rs6000_vector_reg_class): Delete, replacing it with
14511         rs6000_constraints.
14512         (rs6000_vsx_reg_class): Ditto.
14513         (rs6000_constraints): New array to hold the register classes of
14514         each of the register constraints that can vary at runtime.
14515         (builtin_mode_to_type): New static array for builtin function type
14516         creation.
14517         (builtin_hash_table): New static hash table for builtin function
14518         type creation.
14519         (TARGET_SECONDARY_RELOAD): Define target hook.
14520         (TARGET_IRA_COVER_CLASSES): Ditto.
14521         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
14522         registers are 128 bits if VSX memory reference instructions are used.
14523         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
14524         unit is being used.
14525         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
14526         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
14527         Print several of the scheduling related parameters.
14528         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
14529         rs6000_constraints instead of rs6000_vector_reg_class.  Move
14530         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
14531         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
14532         Altivec.  Add VSX support.  Setup for secondary reload support on
14533         Altivec/VSX registers.
14534         (rs6000_override_options): Make power7 set the scheduling groups
14535         like the power5.  Add support for new debug switches to override
14536         the scheduling defaults.  Temporarily disable -mcpu=power7 from
14537         setting -mvsx.  Add support for debug switches -malways-hint,
14538         -msched-groups, and -malign-branch-targets.
14539         (rs6000_buitlin_conversion): Add support for returning unsigned
14540         vector conversion functions to fix regressions due to stricter
14541         type checking.
14542         (rs6000_builtin_mul_widen_even): Ditto.
14543         (rs6000_builtin_mul_widen_odd): Ditto.
14544         (rs6000_builtin_vec_perm): Ditto.
14545         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
14546         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
14547         to zero a register.
14548         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
14549         generated upstream.
14550         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
14551         VSX types for bit operations.  Changes to accomidate vector.md.
14552         (bdesc_2arg): Ditto.
14553         (bdesc_1arg): Ditto.
14554         (struct builtin_description_predicates): Rewrite predicate
14555         handling so that RTL describes the operation, instead of passing
14556         the instruction to be used as a string argument.
14557         (bdesc_altivec_preds): Ditto.
14558         (altivec_expand_predicate_builtin): Ditto.
14559         (altivec_expand_builtin): Ditto.
14560         (rs6000_expand_ternop_builtin): Use a switch instead of an if
14561         statement for vsldoi support.
14562         (altivec_expand_ld_builtin): Change to use new names from vector.md.
14563         (altivec_expand_st_builtin): Ditto.
14564         (paired_expand_builtin): Whitespace changes.
14565         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
14566         builtin_mode_to_type table for secondary reload.  Call
14567         builtin_function_type to build random builtin functions.
14568         (altivec_init_builtins): Change to use builtin_function_type to
14569         create builtin function types dynamically as we need them.
14570         (builtin_hash_function): New support for hashing the tree types
14571         for builtin function as we need it, rather than trying to build
14572         all of the trees that we need.  Add initial preliminary VSX support.
14573         (builtin_function_type): Ditto.
14574         (builtin_function_eq): Ditto.
14575         (builtin_hash_struct): Ditto.
14576         (rs6000_init_builtins): Ditto.
14577         (rs6000_common_init_builtins): Ditto.
14578         (altivec_init_builtins): Ditto.
14579         (rs6000_common_init_builtins): Ditto.
14580         (enum reload_reg_type): New enum for simplifing reg classes.
14581         (rs6000_reload_register_type): Simplify register classes into GPR,
14582         Vector, and other registers.  Altivec and VSX addresses in reload.
14583         (rs6000_secondary_reload_inner): Ditto.
14584         (rs6000_ira_cover_classes): New target hook, that returns the
14585         appropriate cover classes, based on -mvsx being used or not.
14586         (rs6000_secondary_reload_class): Add VSX support.
14587         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
14588         (get_vsel_insn): Ditto.
14589         (rs6000_emit_vector_compare): Rewrite vector conditional support
14590         so that where we can, we use RTL operators, instead of blindly use
14591         UNSPEC.
14592         (rs6000_emit_vector_select): Ditto.
14593         (rs6000_emit_vector_cond_expr): Ditto.
14594         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
14595         (create_TOC_reference): Add -mdebug=addr support.
14596         (emit_frame_save): VSX loads/stores need register indexed addressing.
14597
14598         * config/rs6000/rs6000.md: Include vector.md.
14599
14600         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
14601
14602         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14603         support for V2DI, V2DF in logical, permute, select operations.
14604
14605         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
14606         switch for vsx/power7.
14607         (-mvsx-scalar-memory): Ditto.
14608         (-mvsx-align-128): Ditto.
14609         (-mallow-movmisalign): Ditto.
14610         (-mallow-df-permute): Ditto.
14611         (-msched-groups): Ditto.
14612         (-malways-hint): Ditto.
14613         (-malign-branch-targets): Ditto.
14614
14615         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
14616         hook instead.
14617         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
14618         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
14619         (rs6000_vector_reg_class): Delete.
14620         (rs6000_vsx_reg_class): Ditto.
14621         (enum rs6000_reg_class_enum): New enum for the constraints that
14622         vary based on target switches.
14623         (rs6000_constraints): New array to hold the register class for all
14624         of the register constraints that vary based on the switches used.
14625         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
14626         (enum rs6000_builtins): Add unsigned varients for the builtin
14627         declarations returned by target hooks for expanding multiplies,
14628         select, and permute operations.  Add VSX builtins.
14629         (enum rs6000_builtin_type_index): Add entries for VSX.
14630         (V2DI_type_node): Ditto.
14631         (V2DF_type_node): Ditto.
14632         (unsigned_V2DI_type_node): Ditto.
14633         (bool_long_type_node): Ditto.
14634         (intDI_type_internal_node): Ditto.
14635         (uintDI_type_internal_node): Ditto.
14636         (double_type_internal_node): Ditto.
14637
14638         * config/rs6000/altivec.md (whole file): Move all expanders to
14639         vector.md from altivec.md.  Rename insn matching functions to be
14640         altivec_foo.
14641         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
14642         (altivec_vcmp*): Ditto.
14643         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
14644         (VM): New iterator for moves that includes the VSX types.
14645         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
14646         (altivec_vperm_<mode>_uns): New, for unsigned types.
14647         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
14648         (altivec_eq<mode>): Ditto.
14649         (altivec_gt<mode>): Ditto.
14650         (altivec_gtu<mode>): Ditto.
14651         (altivec_eqv4sf): Ditto.
14652         (altivec_gev4sf): Ditto.
14653         (altivec_gtv4sf): Ditto.
14654         (altivec_vcmpbfp_p): Ditto.
14655
14656 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
14657
14658         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
14659         unsigned HWI.
14660
14661 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14662
14663         PR target/40832
14664         * config/i386/i386.c (output_387_ffreep): Rewrite to use
14665         ASM_SHORT instead of .word.
14666         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
14667         instead of .word in asm template.
14668
14669 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
14670
14671         PR target/37488
14672         * ira-lives.c (bb_has_abnormal_call_pred): New function.
14673         (process_bb_node_lives): Use it.
14674
14675         * ira.c (setup_cover_and_important_classes): Don't setup
14676         ira_important_class_nums.  Add cover classes to the end of
14677         important classes.
14678         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
14679         New.
14680         (find_reg_class_closure): Use reorder_important_classes.
14681
14682         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
14683
14684         * config/i386/i386.c (i386_ira_cover_classes): New function.
14685         (TARGET_IRA_COVER_CLASSES): Redefine.
14686
14687         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
14688         importance of order of cover classes in the array.
14689
14690 2009-07-22  Diego Novillo  <dnovillo@google.com>
14691
14692         * tree-pass.h (TDF_EH): Define.
14693         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
14694         contains TDF_EH, print the EH region number holding GS.
14695         * tree-dump.c (dump_options): Add "eh".
14696         * doc/invoke.texi: Document it.
14697
14698 2009-07-22  Doug Kwan  <dougkwan@google.com>
14699
14700         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
14701
14702 2009-07-22  Michael Matz  <matz@suse.de>
14703
14704         PR tree-optimization/35229
14705         PR tree-optimization/39300
14706
14707         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
14708         (inhibit_phi_insertion): New function.
14709         (insert_into_preds_of_block): Call it for REFERENCEs.
14710         (init_pre): Initialize and finalize scalar evolutions.
14711         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
14712
14713 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
14714
14715         * config/i386/predicates.md (zero_extended_scalar_load_operand):
14716         Use CONST_VECTOR_NUNITS to determine number of elements.
14717
14718 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
14719
14720         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
14721         (U, W): Constraints are now deprecated and will be removed if we
14722         run out of letters.
14723         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
14724         the file.
14725         ("prefetch"): Add the stcmh instruction for prefetching.
14726         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
14727         changes.
14728         (s390_short_displacement): Return always true if compiling for
14729         machines not providing the long displacement facility.
14730         (s390_mem_constraint): Support the new constraint letter Z.
14731         (s390_check_qrst_address): New function.
14732
14733 2009-07-21  DJ Delorie  <dj@redhat.com>
14734
14735         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
14736         alone too.
14737
14738 2009-07-21  Jason Merrill  <jason@redhat.com>
14739
14740         * c-common.c (max_tinst_depth): Increase default to 1024.
14741
14742 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14743
14744         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
14745         (vec_unpacku_float_lo_v4si): Ditto.
14746
14747 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14748
14749         PR target/40811
14750         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
14751         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
14752         (builtin_description): Add __builtin_ia32_cvtudq2ps.
14753         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
14754
14755 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
14756
14757         PR tree-optimization/40813
14758         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
14759         it.
14760
14761 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
14762
14763         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
14764         with a NOP_EXPR if needed.
14765
14766 2009-07-21  Paul Brook <paul@codesourcery.com>
14767
14768         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
14769         Terminate debug dump with newline.
14770
14771 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14772
14773         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
14774         Cast "1" to unsigned HOST_WIDE_INT.
14775         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
14776         deposit length to the maximum length - lsb.  Extend length if
14777         HOST_BITS_PER_WIDE_INT is 32.
14778
14779 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
14780
14781         * cgraph.h (constant_pool_htab): New function.
14782         (constant_descriptor_tree): Move from varasm.c.
14783         * varasm.c (constant_pool_htab): New function.
14784         (constant_descriptor_tree): Move to cgraph.h.
14785
14786 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
14787
14788         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
14789
14790 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
14791
14792         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
14793         $(VARRAY_H).
14794
14795 2009-07-20  Xinliang David Li  <davidxl@google.com>
14796
14797         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
14798
14799 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14800
14801         * config/mips/mips.md (move_type): Add arith.
14802         (type): Handle arith.
14803         (zero_extendsidi2): Rename this into ...
14804         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
14805         (zero_extendsidi2): New expander.
14806         (*zero_extendsidi2_dext): New pattern.
14807
14808 2009-07-20  Nick Clifton  <nickc@redhat.com>
14809
14810         * config.gcc (mips64-*-*): Add definition of tm_defines in order
14811         to set MIPS_ABI_DEFAULT.
14812         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
14813
14814 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
14815
14816         * tree-object-size.c (addr_object_size): Handle unions with
14817         array in it as last field of structs in __bos (, 1) as __bos (, 0).
14818
14819         PR tree-optimization/40792
14820         * tree.c (build_function_type_skip_args): Remove bogus assert.
14821
14822 2009-07-20  Jan Hubicka  <jh@suse.cz>
14823             Martin Jambor  <mjambor@suse.cz>
14824
14825         * cgraph.h (combined_args_to_skip): New field.
14826         * cgraph.c (cgraph_create_virtual_clone): Properly handle
14827         combined_args_to_skip and args_to_skip.
14828         * tree-inline.c (update_clone_info): New function.
14829         (tree_function_versioning): Call update_clone_info.
14830         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
14831         functions.
14832         (cgraph_materialize_all_clones): More extensive dumping, working
14833         with combined_args_to_skip rather than args_to_skip.
14834
14835 2009-07-20  Ira Rosen  <irar@il.ibm.com>
14836
14837         * tree-vectorizer.h (vectorizable_condition): Add parameters.
14838         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
14839         (get_initial_def_for_reduction): Likewise.
14840         (vectorizable_reduction): Skip the check of first operand in case
14841         of COND_EXPR. Add check that it is outer loop vectorization if
14842         nested cycle was detected. Call vectorizable_condition() for
14843         COND_EXPR. If reduction epilogue cannot be created do not fail for
14844         nested cycles (if it is not double reduction). Assert that there
14845         is only one type in the loop in case of COND_EXPR. Call
14846         vectorizable_condition() to vectorize COND_EXPR.
14847         * tree-vect-stmts.c (vectorizable_condition): Update comment.
14848         Add parameters. Allow nested cycles if called from
14849         vectorizable_reduction(). Use reduction vector variable if provided.
14850         (vect_analyze_stmt): Call vectorizable_reduction() before
14851         vectorizable_condition().
14852         (vect_transform_stmt): Update call to vectorizable_condition().
14853
14854 2009-07-20  Christian Bruel  <christian.bruel@st.com>
14855
14856         * config/sh/sh.opt (-mfmovd): Resurrect and document.
14857         * doc/invoke.texi (-mfmovd): Likewise.
14858         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
14859
14860 2009-07-20  Jan Hubicka  <jh@suse.cz>
14861
14862         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
14863         when handling SSA name.
14864
14865 2009-07-19  Jan Hubicka  <jh@suse.cz>
14866
14867         PR tree-optimization/40676
14868         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
14869         virtual PHIs in empty BBs.
14870
14871 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14872
14873         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
14874         re-expanded the compound use gen_lowpart instead to convert to the
14875         desired mode.
14876
14877 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14878
14879         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
14880         OUTER_CONST arguments.
14881         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
14882         the new wider mode will be masked off.
14883         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
14884
14885 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14886
14887         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
14888         high-order bits are zero.
14889
14890 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14891
14892         * combine.c (simplify_shift_const_1): Split code to determine
14893         shift_mode into ...
14894         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
14895         new bits shifted in are identical to the old sign bit.
14896
14897 2009-07-18  Richard Guenther  <rguenther@suse.de>
14898
14899         PR c/40787
14900         * gimplify.c (gimplify_call_expr): Reject code using results from
14901         functions returning void.
14902
14903 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
14904
14905         * doc/md.texi: Document the new PowerPC "es" constraint.
14906         Document that "m" can include automodified addresses on this target,
14907         and explain how %U must be used.  Extend the "Q" and "Z" documentation
14908         to suggest "es" as well as "m".
14909         * config/rs6000/constraints.md (es): New memory constraint.
14910         (Q, Z): Update strings to match new documentation.
14911
14912 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
14913
14914         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
14915         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
14916         * config/rs6000/predicates.md (volatile_mem_operand): Use
14917         offsettable_nonstrict_memref_p.
14918         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
14919         (*floatunssidf2_internal): Likewise.
14920         (*fix_truncdfsi2_internal): Likewise.
14921         (*fix_trunctfsi2_internal): Likewise.
14922
14923 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
14924
14925         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
14926         atmega32u2 devices.
14927         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14928
14929 2009-07-17  Richard Guenther  <rguenther@suse.de>
14930
14931         PR c/40401
14932         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
14933         (pass_warn_unused_result): Likewise.
14934         (TODO_set_props): Remove.
14935         * omp-low.c (diagnose_omp_structured_block_errors): Change to
14936         run as a pass.
14937         (pass_diagnose_omp_blocks): Define.
14938         * c-decl.c (pop_file_scope): Do not finalize the CU here.
14939         (c_gimple_diagnostics_recursively): Remove.
14940         (finish_function): Do not call it.
14941         (c_write_global_declarations): Continue after errors.
14942         Finalize the CU here.
14943         * c-gimplify.c (c_genericize): Do not gimplify here.
14944         * c-common.c (c_warn_unused_result): Move ...
14945         * tree-cfg.c (do_warn_unused_result): ... here.
14946         (run_warn_unused_result): New function.
14947         (gate_warn_unused_result): New function.
14948         (pass_warn_unused_result): New pass.
14949         * c-common.h (c_warn_unused_result): Remove.
14950         * flags.h (flag_warn_unused_result): Declare.
14951         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
14952         * opts.c (flag_warn_unused_result): Initialize to false.
14953         * toplev.c (compile_file): Add comment.
14954         * omp-low.c (create_omp_child_function): Do not register
14955         the function with the frontend.
14956         (diagnose_omp_structured_block_errors): Prepare to be
14957         called as optimization pass.
14958         (gate_diagnose_omp_blocks): New function.
14959         (pass_diagnose_omp_blocks): New pass.
14960         * cgraph.h (cgraph_optimize): Remove.
14961         (cgraph_analyze_function): Likewise.
14962         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
14963         * cgraphunit.c (cgraph_lower_function): Lower nested functions
14964         before their parents here.
14965         (cgraph_finalize_function): Not here.
14966         (cgraph_analyze_function): Gimplify functions here.
14967         (cgraph_finalize_compilation_unit): Continue after errors.
14968         Optimize the callgraph from here.
14969         (cgraph_optimize): Make static.
14970         * langhooks.c (write_global_declarations): Finalize the CU.
14971         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
14972         (gimplify_function_tree): Assert we gimplify only once.
14973         Set PROP_gimple_any property.
14974         * tree-nested.c (gimplify_all_functions): New function.
14975         (lower_nested_functions): Gimplify all nested functions.
14976         * gimple.h (diagnose_omp_structured_block_errors): Remove.
14977         * passes.c (init_optimization_passes): Add pass_warn_unused_result
14978         and pass_diagnose_omp_blocks after gimplification.  Do not
14979         set TODO_set_props on all_lowering_passes.
14980         (execute_one_pass): Do not handle TODO_set_props.
14981         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
14982         (gimplify.o): Add tree-pass.h dependency.
14983         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
14984         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
14985         (unsave_r): Likewise.
14986         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
14987         temporary variable.
14988
14989 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
14990
14991         * doc/service.texi (Service): Restore previously removed link,
14992         which isn't broken after all.
14993
14994 2009-07-17  Richard Guenther  <rguenther@suse.de>
14995
14996         PR tree-optimization/40321
14997         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
14998         PHI nodes to the maximal set.
14999         (make_values_for_phi): Add PHI arguments to the maximal set.
15000         (execute_pre): Dump PHI_GEN and the maximal set.
15001
15002 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
15003
15004         PR c++/40780
15005         * gimplify.c (gimplify_conversion): Don't change non-conversions into
15006         VIEW_CONVERT_EXPR.
15007
15008 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
15009
15010         * doc/extend.texi (Nested Functions): Replace broken link with
15011         textual reference.
15012         * doc/service.texi (Service): Remove broken link.
15013
15014 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
15015
15016         PR bootstrap/40781
15017         * builtins.c (expand_builtin_memcmp): Use loc instead of
15018         EXPR_LOCATION (exp).
15019         (expand_builtin_strncmp): Likewise.
15020
15021 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
15022             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15023
15024         PR 40435
15025         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
15026         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
15027         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
15028         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
15029         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
15030         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
15031         tree-inline.c, c-common.c, c-common.h, gimple.c,
15032         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
15033         convert.c: Add location argument to fold_{unary,binary,ternary},
15034         fold_build[123], build_call_expr, build_size_arg,
15035         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
15036         fold_build1_initializer, fold_build2_initializer,
15037         fold_build3_initializer, fold_build_call_array,
15038         fold_build_call_array_initializer, fold_single_bit_test,
15039         omit_one_operand, omit_two_operands, invert_truthvalue,
15040         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
15041         combine_comparisons, fold_builtin_*, fold_call_expr,
15042         build_range_check, maybe_fold_offset_to_address, round_up,
15043         round_down.
15044
15045 2009-07-16  Jason Merrill  <jason@redhat.com>
15046
15047         PR libstdc++/37907
15048         * c-common.c (c_common_reswords): Add __is_standard_layout
15049         and __is_trivial.
15050         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
15051         * doc/implement-cxx.texi: New.
15052         * doc/gcc.texi: Include it.
15053
15054 2009-07-16  DJ Delorie  <dj@redhat.com>
15055
15056         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
15057         compares that may be indirectly affected by previous instructions.
15058
15059 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15060
15061         * builtins.c (do_mpc_arg2): New.
15062         (fold_builtin_2): Fold builtin cpow.
15063         * real.h (HAVE_mpc_pow): New.
15064
15065 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
15066
15067         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
15068         comparison to skip unprofitable schedule
15069
15070 2009-07-16  Simon Baldwin  <simonb@google.com>
15071
15072         * gcc.c (option_map): New flag -no-canonical-prefixes.
15073         * (display_help): Print help text for new flag.
15074         * (process_command): Move options translation and language specifics
15075         and handle new flag early.  Use it to set a function pointer to a
15076         prefix builder.  Replace make_relative_prefix calls with calls to
15077         the function pointed to.  Ignore new flag in regular options handling.
15078         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
15079
15080 2009-07-15  DJ Delorie  <dj@redhat.com>
15081
15082         * config/mep/mep.md (sibcall_internal): Change register to avoid
15083         argument registers.
15084         (sibcall_value_internal): Likewise.
15085
15086 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15087
15088         PR rtl-optimization/40710
15089         * resource.c (mark_target_live_regs): Reset DF problem to LR.
15090
15091 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
15092
15093         * config/mips/mips.md (*extenddi_truncate<mode>,
15094         *extendsi_truncate<mode>): Change type attribute to move_type
15095         with shift_shift.  Split out code handling exts from here ...
15096         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
15097         pattern.
15098         (*extendhi_truncateqi): Change type attribute to move_type with
15099         shift_shift.  Split out code handling exts from here ...
15100         (*extendhi_truncateqi_exts): ... to this new pattern.
15101
15102 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
15103
15104         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
15105         instead of "and" with inverted sign bit mask value.  Use
15106         "nonimmediate_operand" for operand 1 and operand 2 predicate.
15107         Allocate registers only for operand 4 and operand 5.
15108
15109 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
15110
15111         PR middle-end/40747
15112         * fold-const.c (fold_cond_expr_with_comparison): When folding
15113         < and <= to MIN, make sure the MIN uses the same type as the
15114         comparison's operands.
15115
15116 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
15117
15118         * arm.md (ior_xor): New code iterator.
15119         (split for ior/xor with shift and zero-extend): New split pattern.
15120         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
15121
15122 2009-07-15  Richard Guenther  <rguenther@suse.de>
15123
15124         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
15125         offset member.
15126
15127 2009-07-15  Richard Guenther  <rguenther@suse.de>
15128
15129         PR middle-end/40753
15130         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
15131
15132 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15133
15134         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
15135         handle 2.6.30 kernel.
15136
15137 2009-07-15  DJ Delorie  <dj@redhat.com>
15138
15139         * config/mep/mep.md (sibcall_internal): Change register to allow
15140         for 24-bit addresses.
15141         (sibcall_value_internal): Likewise.
15142
15143 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15144
15145         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
15146         that are enabled/disabled by the flags introduced by a previous patch.
15147
15148 2009-07-14  DJ Delorie  <dj@redhat.com>
15149
15150         * config/mep/mep.md (sibcall_internal): Include non-toggling
15151         non-jmp case.
15152         (sibcall_value_internal): Likewise.
15153
15154 2009-07-14  Taras Glek  <tglek@mozilla.com>
15155             Rafael Espindola  <espindola@google.com>
15156
15157         * doc/sourcebuild.texi: Document install-plugin target.
15158         * configure.ac: Added install-plugin target to language makefiles.
15159         * configure: Regenerate.
15160         * Makefile.in (install-plugin): Install more headers,
15161         depend on lang.install-plugin.
15162
15163 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15164
15165         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
15166         translation.
15167
15168 2009-07-14  DJ Delorie  <dj@redhat.com>
15169
15170         * config/mep/mep.c (mep_vliw_jmp_match): New function.
15171         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
15172         * config/mep/mep.md (sibcall_internal): Change test from
15173         mep_vliw_mode_match to mep_vliw_jmp_match.
15174         (sibcall_value_internal): Likewise.
15175
15176 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
15177
15178         * config/i386/sse.md (copysign<mode>3): New expander.
15179         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
15180         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
15181         Use ix86_build_const_vector.
15182         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
15183         IX86_BUILTIN_CPYSGNPD.
15184         (builtin_description): Add __builtin_ia32_copysignps and
15185         __builtin_ia32_copysignpd.
15186         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
15187         and BUILT_IN_COPYSIGNF.
15188
15189 2009-07-13  Jason Merrill  <jason@redhat.com>
15190
15191         * builtins.c (can_trust_pointer_alignment): New fn.
15192         (get_pointer_alignment): Factor it out from here.
15193         * tree.h: Declare it.
15194
15195 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
15196
15197         * config/rs6000/predicates.md (offsettable_mem_operand): Test
15198         RTX_AUTOINC class.
15199
15200 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
15201
15202         PR debug/40705
15203         PR c++/403057
15204         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
15205
15206 2009-07-14  Richard Guenther  <rguenther@suse.de>
15207             Andrey Belevantsev <abel@ispras.ru>
15208
15209         PR middle-end/40745
15210         * cfgexpand.c (partition_stack_vars): Do not bother to update
15211         alias information when not optimizing.
15212
15213 2009-07-14  Richard Guenther  <rguenther@suse.de>
15214             Andrey Belevantsev <abel@ispras.ru>
15215
15216         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
15217         (pt_solution_set): Likewise.
15218         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
15219         * tree-ssa-structalias.c (pt_solution_set): New function.
15220         * final.c (rest_of_clean_state): Free SSA data structures.
15221         * print-rtl.c (print_decl_name): Remove.
15222         (print_mem_expr): Implement in terms of print_generic_expr.
15223         * alias.c (ao_ref_from_mem): New function.
15224         (rtx_refs_may_alias_p): Likewise.
15225         (true_dependence): Query alias-export info.
15226         (canon_true_dependence): Likewise.
15227         (write_dependence_p): Likewise.
15228         * tree-dfa.c (get_ref_base_and_extent): For void types leave
15229         size unknown.
15230         * emit-rtl.c (component_ref_for_mem_expr): Remove.
15231         (mem_expr_equal_p): Use operand_equal_p.
15232         (set_mem_attributes_minus_bitpos): Do not use
15233         component_ref_for_mem_expr.
15234         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
15235         (update_alias_info_with_stack_vars): Likewise.
15236         (partition_stack_vars): Call update_alias_info_with_stack_vars.
15237         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
15238         explicitly nor clear stmt operands.
15239         Free the decl-to-pointer map.
15240         * tree-optimize.c (execute_free_datastructures): Do not free
15241         SSA data structures here.
15242         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
15243         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
15244         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
15245         dependencies.
15246         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
15247
15248 2009-07-13  DJ Delorie  <dj@redhat.com>
15249
15250         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
15251         unrolling at the right iteration count.
15252
15253         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
15254         calculations.
15255
15256 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15257
15258         * haifa-sched.c (rank_for_schedule): Introduced flags to
15259         enable/disable individual scheduling heuristics.
15260         * common.opt: Introduced flags to enable/disable individual
15261         heuristics in the scheduler.
15262         * doc/invoke.texi: Introduced flags to enable/disable individual
15263         heuristics in the scheduler.
15264
15265 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
15266
15267         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
15268         config/i386/mingw-tls.c.
15269         * config/i386/mingw-tls.c: Removed.
15270
15271 2009-07-13  Ira Rosen  <irar@il.ibm.com>
15272
15273         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
15274         checks access only relevant statements.
15275         (vectorizable_reduction): Likewise.
15276
15277 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
15278
15279         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
15280         just for 32-bit case.
15281
15282 2009-07-12  Jan Hubicka  <jh@suse.cz>
15283
15284         PR tree-optimization/40585
15285         * except.c (expand_resx_expr): When there already is resume
15286         instruction, produce linked list.
15287         (build_post_landing_pads): Assert that resume is empty.
15288         (connect_post_landing_pads): Handle resume lists.
15289         (dump_eh_tree): Dump resume list.
15290
15291 2009-07-12  Ira Rosen  <irar@il.ibm.com>
15292
15293         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15294         with additional argument.
15295         * tree-vectorizer.h (enum vect_def_type): Add
15296         vect_double_reduction_def.
15297         (vect_is_simple_reduction): Add argument.
15298         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
15299         indentation.
15300         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
15301         vect_is_simple_reduction with additional argument.
15302         (vect_analyze_loop_operations): Handle exit phi nodes in case of
15303         double reduction.
15304         (reduction_code_for_scalar_code): Handle additional codes by
15305         returning ERROR_MARK for them. Fix comment and indentation.
15306         (vect_is_simple_reduction): Fix comment, add argument to specify
15307         double reduction. Detect double reduction.
15308         (get_initial_def_for_induction): Fix indentation.
15309         (get_initial_def_for_reduction): Fix comment and indentation.
15310         Handle double reduction. Create initial definitions that do not
15311         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
15312         (vect_create_epilog_for_reduction): Fix comment, add argument to
15313         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
15314         epilogue result extraction. Create double reduction phi node and
15315         replace relevant uses.
15316         (vectorizable_reduction): Call vect_is_simple_reduction with
15317         additional argument. Fix indentation. Update epilogue code treatment
15318         according to the changes in reduction_code_for_scalar_code. Check
15319         for double reduction. Call vect_create_epilog_for_reduction with
15320         additional argument.
15321         * tree-vect-stmts.c (process_use): Handle double reduction, update
15322         documentation.
15323         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
15324         (vect_get_vec_def_for_operand): Likewise.
15325
15326 2009-07-12  Danny Smith  <dansmister@gmail.com>
15327
15328         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
15329         dllexport if !TREE_PUBLIC.
15330         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
15331
15332 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
15333
15334         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
15335         (avr_extra_arch_macro) Remove declatation.
15336         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
15337         (avr_extra_arch_macro) Declare as static.
15338         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
15339
15340 2009-07-11  Jan Hubicka  <jh@suse.cz>
15341
15342         PR middle-end/48388
15343         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
15344
15345 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
15346
15347         PR debug/40713
15348         * dwarf2out.c (dw_fde_struct): Add in_std_section and
15349         cold_in_std_section bits.
15350         (dwarf2out_begin_prologue): Initialize them.
15351         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
15352         if already covered by text_section or cold_text_section range.
15353
15354         PR rtl-optimization/40667
15355         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
15356         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
15357         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
15358         * config/i386/i386.c (ix86_minimum_alignment): New function.
15359         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
15360         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
15361         * emit-rtl.c (gen_reg_rtx): Likewise.
15362         * function.c (assign_parms): Likewise.  If nominal_type needs
15363         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
15364         rather than passed_type's alignment.
15365
15366         PR target/40668
15367         * function.c (assign_parm_setup_stack): Adjust
15368         MEM_OFFSET (data->stack_parm) if promoted_mode is different
15369         from nominal_mode on big endian.
15370
15371 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
15372
15373         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
15374
15375 2009-07-10  DJ Delorie  <dj@redhat.com>
15376
15377         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
15378
15379 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
15380
15381         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
15382         attribute.
15383         (thumb2_cbnz): Likewise.
15384
15385 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
15386
15387         PR target/39079
15388         * config.gcc (supported_defaults): Add synci.
15389         (with_synci): Add validation.
15390         (all_defaults): Add synci.
15391         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
15392         ISA_HAS_SYNCI.
15393         (synci): Same.
15394         * config/mips/mips.opt (msynci): New option.
15395         * config/mips/mips.c (mips_override_options): Warn on use of
15396         -msynci for targets that do now support it.
15397         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15398         msynci.
15399         * gcc/doc/invoke.texi (-msynci): Document the new option.
15400         * doc/install.texi (--with-synci): Document the new option.
15401
15402 2009-07-10  Richard Guenther  <rguenther@suse.de>
15403
15404         PR tree-optimization/40496
15405         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
15406         the PHI result with a compatible type.
15407
15408 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15409
15410         PR 25509
15411         PR 40614
15412         * c.opt (Wunused-result): New.
15413         * doc/invoke.texi: Document it.
15414         * c-common.c (c_warn_unused_result): Use it.
15415
15416 2009-07-09  DJ Delorie  <dj@redhat.com>
15417
15418         * targhooks.c (default_target_can_inline_p): Rename from
15419         default_target_option_can_inline_p.
15420         * targhooks.h (default_target_can_inline_p): Likewise.
15421         * target-def.h (TARGET_CAN_INLINE_P): Rename from
15422         TARGET_OPTION_CAN_INLINE_P.
15423         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
15424         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
15425         (mep_target_can_inline_p): Rename from
15426         mep_target_option_can_inline_p.
15427
15428         PR target/40626
15429         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
15430         registers used to pass vectors.
15431
15432         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
15433
15434 2009-07-09  Tom Tromey  <tromey@redhat.com>
15435
15436         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
15437         * config/mmix/mmix.c: Include dwarf2.h.
15438         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
15439         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
15440         * config/sh/sh.c: Include dwarf2.h.
15441         * config/i386/i386.c: Include dwarf2.h.
15442         * Makefile.in (DWARF2_H): Remove 'elf'.
15443         * except.c: Include dwarf2.h.
15444         * unwind-dw2.c: Include dwarf2.h.
15445         * dwarf2out.c: Include dwarf2.h.
15446         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
15447         * unwind-dw2-fde.c: Include dwarf2.h.
15448         * dwarf2asm.c: Include dwarf2.h.
15449
15450 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15451
15452         * haifa-sched.c (insn_finishes_cycle_p): New static function.
15453         (max_issue): Use it.
15454         * sched-int.h (struct sched_info: insn_finishes_block_p): New
15455         scheduler hook.
15456         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
15457         (region_sched_info): Update.
15458         * sched-ebb.c (ebb_sched_info): Update.
15459         * modulo-sched.c (sms_sched_info): Update.
15460         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
15461
15462 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15463
15464         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
15465
15466 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
15467
15468         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
15469
15470 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
15471
15472         PR middle-end/40692
15473         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
15474         arg1 with arg01 if arg1 is already INTEGER_CST.
15475
15476 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15477
15478         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
15479         Transform (and (truncate)) into (truncate (and)).
15480
15481 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15482
15483         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
15484         creating LHS paradoxical subregs.  Fix surrounding returns to
15485         use NULL_RTX rather than 0.
15486
15487 2009-07-08  DJ Delorie  <dj@redhat.com>
15488
15489         * config/mep/mep.c (mep_option_can_inline_p): New.
15490         (TARGET_OPTION_CAN_INLINE_P): Define.
15491
15492 2009-07-08  Mark Wielaard  <mjw@redhat.com>
15493
15494         PR debug/40659
15495         * dwarf2out.c (add_data_member_location_attribute): When we have
15496         only a constant offset don't emit a new location description using
15497         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
15498         dwarf_version > 2.
15499
15500 2009-07-08  Richard Henderson  <rth@redhat.com>
15501
15502         PR target/38900
15503         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
15504         (enum reg_class): Add CLOBBERED_REGS.
15505         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
15506         * config/i386/i386.c (ix86_conditional_register_usage): Moved
15507         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
15508         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
15509         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
15510         force 64-bit sibcalls into R11.
15511         * config/i386/constraints.md (U): New constraint.
15512         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
15513         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
15514         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
15515
15516 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
15517
15518         * basic-block.h (dump_regset, debug_regset): Remove duplicate
15519         prototypes.
15520         * c-objc-common.h (c_initialize_diagnostics): Ditto.
15521         * ebitmap.h (dump_ebitmap): Ditto.
15522         * optabs.h (optab_libfunc): Ditto.
15523         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
15524         * tree-flow.h (vect_can_force_dr_alignment_p,
15525         get_vectype_for_scalar_type): Ditto.
15526         (vectorize_loops): Move prototype to ...
15527         * tree-vectorizer.h: ... here. Also, adjust comment.
15528         (vect_set_verbosity_level): Remove duplicate prototype.
15529         * tree-ssa-loop.c: Include tree-vectorizer.h.
15530         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
15531
15532 2009-07-08  Nick Clifton  <nickc@redhat.com>
15533
15534         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
15535         forward slash.
15536
15537 2009-07-08  DJ Delorie  <dj@redhat.com>
15538
15539         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
15540         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
15541         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
15542         written to.
15543         * config/mep/intrinsics.md: Regenerated.
15544         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
15545         registers when asm() or calls are detected.
15546
15547 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15548
15549         PR c++/31246
15550         * gimplify.c (gimplify_expr): Propagate no_warning flag when
15551         gimplifying.
15552         * gimple (gimple_build_call_from_tree): Likewise.
15553         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
15554         no_warning flag before warning.
15555
15556 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15557
15558         * tree.c (set_expr_locus): Remove.
15559         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
15560         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
15561         EXPR_LOCATION.
15562         * gimplify.c (internal_get_tmp_var): Likewise.
15563         (gimplify_call_expr): Likewise.
15564         (gimplify_one_sizepos): Likewise.
15565
15566 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
15567
15568         PR debug/40666
15569         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
15570         to variables for debugging purposes.
15571
15572 2009-06-23  Mark Loeser  <mark@halcy0n.com>
15573
15574         PR build/40010
15575         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
15576
15577 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15578
15579         * pretty-print.c (pp_base_format): Remove %J.
15580         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15581         gcc_cxxdiag_char_table): Likewise.
15582         (init_dynamic_diag_info): Likewise.
15583
15584 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15585
15586         * pretty-print.c (pp_base_format): Remove %H.
15587         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15588         gcc_cxxdiag_char_table): Likewise.
15589         (init_dynamic_diag_info): Likewise.
15590         * config/mep/mep.c (mep_select_section): Likewise.
15591
15592 2009-07-07  Duncan Sands  <baldrick@free.fr>
15593
15594         * final.c (pass_clean_state): Give the pass a name.
15595         * passes.c (pass_rest_of_compilation): Likewise.
15596         * tree-optimize.c (pass_all_optimizations): Likewise.
15597
15598 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15599
15600         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
15601         an extra 'decl' for error_at.
15602
15603 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
15604
15605         PR middle-end/40669
15606         * tree-tailcall.c (adjust_return_value_with_ops,
15607         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
15608         if it has complex or vector type.
15609
15610 2009-07-07  Olivier Hainque  <hainque@adacore.com>
15611
15612         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
15613         pthread symbols.
15614
15615 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
15616
15617         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
15618
15619 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15620
15621         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
15622         * c-decl.c: Likewise.
15623         * function.c: Likewise.
15624         * varasm.c: Likewise.
15625         * tree-ssa.c: Likewise.
15626         * c-common.c: Likewise.
15627         * tree-cfg.c: Likewise.
15628         * config/spu/spu.c: Likewise.
15629         * config/ia64/ia64.c: Likewise.
15630         * config/v850/v850.c: Likewise.
15631
15632 2009-07-06  DJ Delorie  <dj@redhat.com>
15633
15634         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
15635         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
15636         unspecified accesses to control registers.
15637         * config/mep/intrinsics.md: Regenerate.
15638         * config/mep/intrinsics.h: Regenerate.
15639         * config/mep/mep-intrin.h: Regenerate.
15640
15641 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15642
15643         * c-lex.c: Replace %H by an explicit location. Update all calls.
15644         * c-common.c: Likewise.
15645         * c-decl.c: Likewise.
15646         * c-typeck.c: Likewise.
15647         * fold-const.c: Likewise.
15648         * gimplify.c: Likewise.
15649         * stmt.c: Likewise.
15650         * tree-cfg.c: Likewise.
15651         * tree-ssa-loop-niter.c: Likewise.
15652         * tree-vrp.c: Likewise.
15653         * value-prof.c: Likewise.
15654
15655 2009-07-06  Diego Novillo  <dnovillo@google.com>
15656
15657         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
15658         if it has one.  Handle cases where VAR does not have an
15659         annotation or cfun is NULL.
15660
15661 2009-07-06  Diego Novillo  <dnovillo@google.com>
15662
15663         * tree.c: Include debug.h.
15664         (initialize_tree_contains_struct): New.
15665         (init_ttree): Call it.
15666         (tree_node_structure_for_code): Factor out of ...
15667         (tree_node_structure): ... here.
15668         * treestruct.def (TS_PHI_NODE): Remove.
15669         (TS_GIMPLE_STATEMENT): Remove.
15670
15671 2009-07-06  Diego Novillo  <dnovillo@google.com>
15672
15673         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
15674         (debug_tree_chain): Handle cycles.
15675
15676 2009-07-06  Nick Clifton  <nickc@redhat.com>
15677             DJ Delorie  <dj@redhat.com>
15678
15679         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15680         __FMOVD_ENABLED__ is defined.
15681         * config/sh/sh.h
15682         (TARGET_FMOVD): Provide a default definition.
15683         (MASK_FMOVD): Likewise.
15684         (TARGET_CPU_CPP_BUILTINS): Define
15685         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15686         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15687         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
15688         (split for DF load from memory into register): Also handle
15689         MEMs which consist of REG+DISP addressing.
15690         (split for DF store from register to memory): Likewise.
15691         (movsf_ie): Always use single fp_mode.
15692         * config/sh/sh.c (sh_override_options): Do not automatically
15693         enable TARGET_MOVD for the SH2A when supporting doubles - leave
15694         that to the -mfmovd command line switch.
15695         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
15696         (fldi_ok): Always allow.
15697         * config/sh/sh.opt (mfmovd): Remove this switch.
15698         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15699
15700 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
15701             Kaz Kojima  <kkojima@gcc.gnu.org>
15702
15703         PR rtl-optimization/30807
15704         * postreload.c (reload_combine): For every new use of REG_SUM,
15705         record the use of BASE.
15706
15707 2009-07-06  Jan Hubicka  <jh@suse.cz>
15708
15709         * params.def: Revert my accidental commit at 2009-06-30.
15710
15711 2009-07-04  Ian Lance Taylor  <iant@google.com>
15712
15713         PR target/40636
15714         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
15715         EXPORTED_CONST.
15716         (mingw_format_attribute_overrides): Likewise.
15717
15718 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
15719
15720         PR debug/40596
15721         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
15722         don't check cfa.reg.  Instead of cfa.indirect use
15723         fde && fde->drap_reg != INVALID_REGNUM test.
15724
15725 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15726
15727         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
15728
15729 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
15730
15731         PR target/40587
15732         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
15733
15734 2009-07-03  Richard Guenther  <rguenther@suse.de>
15735
15736         PR tree-optimization/40640
15737         * tree-switch-conversion.c (build_arrays): Perform arithmetic
15738         in original type.
15739
15740 2009-07-03  Jan Hubicka  <jh@suse.cz>
15741
15742         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
15743         for size, reduce amount of inlining.
15744
15745 2009-07-03  Richard Guenther  <rguenther@suse.de>
15746
15747         PR middle-end/34163
15748         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
15749         if t +- x is known to not overflow and the conversion widens the
15750         operation.
15751         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
15752
15753 2009-07-03  Jan Hubicka  <jh@suse.cz>
15754
15755         * ipa-pure-const.c (analyze): Update loop optimizer init.
15756         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
15757         try_remove_empty_loop, remove_empty_loops): Remove.
15758         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
15759         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
15760         to mark regular loops as neccesary.
15761         (degenerate_phi_p): New function.
15762         (propagate_necessity, remove_dead_phis): Use it.
15763         (forward_edge_to_pdom): Likewise.
15764         (eliminate_unnecessary_stmts): Take care to remove uses of results of
15765         virtual PHI nodes that became unreachable.
15766         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
15767         * tree-flow.h (remove_empty_loops): Remove.
15768         * passes.c (init_optimization_passes): Remove.
15769
15770 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
15771
15772         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
15773         can_create_pseudo_p.
15774         (*fix_trunc<mode>_i387_1): Ditto.
15775         (*floathi<mode>2_1): Ditto.
15776         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
15777         (*fistdi2_1): Ditto.
15778         (*fist<mode>2_1): Ditto.
15779         (frndintxf2_floor): Ditto.
15780         (*fist<mode>2_floor_1): Ditto.
15781         (frndintxf2_ceil): Ditto.
15782         (*fist<mode>2_ceil_1): Ditto.
15783         (frndintxf2_trunc): Ditto.
15784         (frndintxf2_mask_pm): Ditto.
15785         (fxam<mode>2_i387_with_temp): Ditto.
15786         * config/i386/sse.md (mulv16qi3): Ditto.
15787         (*sse2_mulv4si3): Ditto.
15788         (mulv2di3): Ditto.
15789         (sse4_2_pcmpestr): Ditto.
15790         (sse4_2_pcmpistr): Ditto.
15791
15792 2009-07-03  Jan Hubicka  <jh@suse.cz>
15793
15794         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
15795         (mark_stmt_necessary): Set it.
15796         (mark_operand_necessary): Set it.
15797         (mark_control_dependent_edges_necessary): Set it.
15798         (mark_virtual_phi_result_for_renaming): New function.
15799         (get_live_post_dom): New function.
15800         (forward_edge_to_pdom): New function.
15801         (remove_dead_stmt): Fix handling of control dependences.
15802         (tree_dce_init): Init new bitmap.
15803         (tree_dce_done): Free it.
15804
15805 2009-07-02  Richard Guenther  <rguenther@suse.de>
15806
15807         PR bootstrap/40617
15808         * tree-ssa-structalias.c (new_var_info): Initialize
15809         is_restrict_var.
15810
15811 2009-07-02  Jan Hubicka  <jh@suse.cz>
15812
15813         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
15814         local.
15815
15816 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
15817
15818         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
15819         instead of recomputing it.  Adjust calls.
15820         (emit_store_flag): Adjust recursive calls.
15821
15822 2009-07-02  Richard Guenther  <rguenther@suse.de>
15823
15824         * tree-ssa-live.c (remove_unused_locals): Do not remove
15825         heap variables.
15826         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
15827         of DECL_EXTERNAL for HEAP variables.
15828         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
15829         HEAP variables.  Do not adjust RESTRICT vars.
15830         (find_what_var_points_to): Nobody cares if something
15831         points to READONLY.
15832
15833 2009-07-02  Ben Elliston  <bje@au.ibm.com>
15834
15835         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
15836         pc_low and pc_high declarations to the top of the function.
15837
15838 2009-07-01  DJ Delorie  <dj@redhat.com>
15839
15840         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
15841         registers as fixed.
15842         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
15843         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
15844         unspecified accesses to control registers.
15845         * config/mep/intrinsics.md: Regenerate.
15846         * config/mep/intrinsics.h: Regenerate.
15847         * config/mep/mep-intrin.h: Regenerate.
15848
15849 2009-07-01  Anthony Green  <green@moxielogic.com>
15850
15851         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
15852         instruction when possible.
15853         (moxie_expand_prologue): Ditto.  Also, save an instruction and
15854         some complexity by popping off of $r12 instead of $sp.
15855         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
15856         operands.
15857
15858 2009-07-01  Richard Henderson  <rth@redhat.com>
15859
15860         PR bootstrap/40347
15861         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
15862         contained no insns, reposition note before last insn.
15863
15864 2009-07-01  Richard Henderson  <rth@redhat.com>
15865
15866         PR debug/40431
15867         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
15868         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
15869
15870 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
15871
15872         PR bootstrap/40558
15873         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
15874         darwin9 for printing reg addresses with %y.
15875
15876 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
15877
15878         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
15879         truncation from operands in binary operations.
15880
15881 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
15882
15883         Revert:
15884         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
15885         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
15886         subreg of op0 to the original op0.
15887
15888         * expmed.c (store_bit_field_1): Use a temporary as the destination
15889         instead of a paradoxical subreg when we need to truncate the result.
15890
15891 2009-07-01  DJ Delorie  <dj@redhat.com>
15892
15893         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
15894         names to VLIW variants.
15895         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
15896         * config/mep/intrinsics.md: Regenerate.
15897         * config/mep/intrinsics.h: Regenerate.
15898         * config/mep/mep-intrin.h: Regenerate.
15899
15900 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
15901
15902         PR debug/40462
15903         * jump.c (returnjump_p): Revert last patch.
15904         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
15905
15906 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15907
15908         PR target/40575
15909         * pa.md (casesi32p): Use jump table label to determine the offset
15910         of the jump table.
15911         (casesi64p): Likewise.
15912
15913         * pa.c (forward_branch_p): Return bool type.  Use instruction
15914         addresses when available.  Assert that INSN has a jump label.
15915         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
15916         have a jump label.
15917
15918 2009-07-01  Richard Guenther  <rguenther@suse.de>
15919
15920         PR tree-optimization/19831
15921         * tree-ssa-dce.c (propagate_necessity): Calls to functions
15922         that only act as barriers do not make any previous stores necessary.
15923         * tree-ssa-structalias.c (handle_lhs_call): Delay making
15924         HEAP variables global, do not add a constraint from nonlocal.
15925         (find_func_aliases): Handle escapes through return statements.
15926         (compute_points_to_sets): Make escaped HEAP variables global.
15927
15928 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
15929
15930         PR bootstrap/40597
15931         * expmed.c (emit_store_flag): Perform a conversion if necessary,
15932         after reducing a DImode cstore to SImode.
15933
15934 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
15935
15936         * expr.c (expand_expr_real_1): Reinstate fallthrough to
15937         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
15938
15939 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
15940
15941         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
15942         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
15943         to 0.
15944         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
15945         and umod_optab if TARGET_BSD_DIVMOD.
15946         * config/vax/lib1funcs.asm: New file.
15947         * config/vax/t-linux: New file.
15948         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
15949
15950 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
15951
15952         PR c++/40566
15953         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
15954         to type arguments that have void type.
15955
15956         PR debug/40573
15957         * dwarf2out.c (gen_formal_parameter_die): Call
15958         equate_decl_number_to_die if node is different from origin.
15959
15960 2009-06-30  Anthony Green  <green@moxielogic.com>
15961
15962         Clean up moxie port for --enable-build-with-cxx.
15963         * config/moxie/moxie.c (moxie_function_value): First two
15964         parameters are const_tree, not tree.
15965         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
15966         (REG_CLASS_NAMES): Ditto.
15967         (REGNO_REG_CLASS): Ditto.
15968         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
15969         (moxie_function_value): Fix constyness of arguments.
15970
15971 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15972
15973         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
15974         finalize_size_functions before further processing.
15975         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
15976         (variable_size): Call self_referential_size on size expressions
15977         that contain a PLACEHOLDER_EXPR.
15978         (size_functions): New static variable.
15979         (copy_self_referential_tree_r): New static function.
15980         (self_referential_size): Likewise.
15981         (finalize_size_functions): New global function.
15982         * tree.c: Include tree-inline.h.
15983         (push_without_duplicates): New static function.
15984         (find_placeholder_in_expr): New global function.
15985         (substitute_in_expr) <tcc_declaration>: Return the replacement object
15986         on equality.
15987         <tcc_expression>: Likewise.
15988         <tcc_vl_exp>: If the replacement object is a constant, try to inline
15989         the call in the expression.
15990         * tree.h (finalize_size_functions): Declare.
15991         (find_placeholder_in_expr): Likewise.
15992         (FIND_PLACEHOLDER_IN_EXPR): New macro.
15993         (substitute_placeholder_in_expr): Update comment.
15994         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
15995         is true.
15996         (copy_tree_body_r): Likewise.
15997         (copy_tree_body): New static function.
15998         (maybe_inline_call_in_expr): New global function.
15999         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
16000         (maybe_inline_call_in_expr): Declare.
16001         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
16002         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
16003         GIMPLE_H.
16004
16005 2009-06-30  Richard Guenther  <rguenther@suse.de>
16006
16007         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
16008         continue walking.
16009         (propagate_necessity): Do not mark reaching defs of stores
16010         as necessary.
16011
16012 2009-06-30  Jan Hubicka  <jh@suse.cz>
16013
16014         * cfgloopanal.c (check_irred): Move into ...
16015         (mark_irreducible_loops): ... here; return true if ireducible
16016         loops was found.
16017         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
16018         (analyze_function): Try to prove loop finiteness.
16019         * cfgloop.h (mark_irreducible_loops): Update prototype.
16020         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
16021
16022 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
16023
16024         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
16025
16026 2009-06-30  Ira Rosen  <irar@il.ibm.com>
16027
16028         PR tree-optimization/40542
16029         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
16030         types.
16031
16032 2009-06-30  Martin Jambor  <mjambor@suse.cz>
16033
16034         PR tree-optimization/40582
16035         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
16036         than useless_type_conversion_p.
16037         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
16038         proper place.
16039
16040 2009-06-30  Martin Jambor  <mjambor@suse.cz>
16041
16042         PR middle-end/40554
16043         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
16044
16045 2009-06-30  Richard Guenther  <rguenther@suse.de>
16046
16047         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
16048         use ao_ref references.
16049         (walk_aliased_vdefs): Likewise.
16050         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
16051         * tree-ssa-dce.c (struct ref_data): Remove.
16052         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
16053         (mark_aliased_reaching_defs_necessary): Adjust.
16054         (mark_all_reaching_defs_necessary_1): Likewise.
16055
16056 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
16057
16058         PR boostrap/40597
16059         * expmed.c (emit_cstore): New name of emit_store_flag_1.
16060         (emit_store_flag_1): Extract from emit_store_flag, adjust
16061         calls to (what now is) emit_cstore.
16062         (emit_store_flag): Call emit_store_flag_1 and also use it
16063         for what used to be recursive calls.
16064
16065 2009-06-30  Wei Guozhi  <carrot@google.com>
16066
16067         PR/40416
16068         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
16069         if the target bb post dominates from bb.
16070         * config/i386/i386.c (memory_address_length): Check existence of base
16071         register before using it.
16072
16073 2009-06-30  Nick Clifton  <nickc@redhat.com>
16074             DJ Delorie  <dj@redhat.com>
16075
16076         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16077         __FMOVD_ENABLED__ is defined.
16078         * config/sh/sh.h
16079         (TARGET_FMOVD): Provide a default definition.
16080         (MASK_FMOVD): Likewise.
16081         (TARGET_CPU_CPP_BUILTINS): Define
16082         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16083         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16084         two fmov instructions depending upon whether TARGET_FMOVD is
16085         enabled.
16086         (split for DF load from memory into register): Also handle
16087         MEMs which consist of REG+DISP addressing.
16088         (split for DF store from register to memory): Likewise.
16089         * config/sh/sh.opt (mfmovd): Remove this switch.
16090         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16091         * config/sh/sh.c (sh_override_options): Do not automatically
16092         enable TARGET_MOVD for the SH2A when supporting doubles - leave
16093         that to the -mfmovd command line switch.
16094
16095         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
16096         the SH4 and SH4A.
16097         (fldi_ok): Always allow.
16098         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
16099
16100 2009-06-29  DJ Delorie  <dj@redhat.com>
16101
16102         * doc/install.texi (mep-x-elf): Correct chip's full name.
16103
16104 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
16105
16106         * doc/extend.texi: Fix typo.
16107
16108 2009-06-29  Tom Tromey  <tromey@redhat.com>
16109
16110         * dwarf2.h: Remove.
16111         * Makefile.in (DWARF2_H): New variable.
16112         (except.o): Use it.
16113         (dwarf2out.o): Likewise.
16114         (dwarf2asm.o): Likewise.
16115         * config/i386/t-i386: Use DWARF2_H.
16116         * except.c: Include elf/dwarf2.h.
16117         * unwind-dw2.c: Include elf/dwarf2.h.
16118         * dwarf2out.c: Include elf/dwarf2.h.
16119         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
16120         <dtprel>: New field.
16121         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
16122         (size_of_loc_descr): Likewise.
16123         (output_loc_operands_raw): Likewise.
16124         (output_loc_operands): Handle new dtprel field.
16125         (loc_checksum): Update.
16126         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
16127         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
16128         * unwind-dw2-fde.c: Include elf/dwarf2.h.
16129         * dwarf2asm.c: Include elf/dwarf2.h.
16130         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
16131         * config/mmix/mmix.c: Include elf/dwarf2.h.
16132         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
16133         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
16134         * config/sh/sh.c: Include elf/dwarf2.h.
16135         * config/i386/i386.c: Include elf/dwarf2.h.
16136
16137 2009-06-29  DJ Delorie  <dj@redhat.com>
16138
16139         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
16140
16141         * doc/extend.texi: Add MeP attributes and pragmas.
16142         * doc/invoke.text: Add MeP Options.
16143         * doc/contrib.texi: Add MeP contribution.
16144         * doc/md.texi: Add MeP constraints.
16145         * doc/install.texi: Add MeP target.
16146
16147 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
16148
16149         * target.h (struct gcc_target): Add frame_pointer_required field.
16150         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
16151         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
16152         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
16153         hook.
16154         * reload1.c (update_eliminables): (Ditto.).
16155         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
16156         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
16157         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
16158
16159         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
16160
16161         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
16162         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16163         (arm_frame_pointer_required): New function.
16164
16165         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
16166         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16167         (avr_frame_pointer_required_p): Declare as static.
16168         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
16169
16170         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
16171         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16172         (bfin_frame_pointer_required): Make as static, change return type
16173         to bool.
16174         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
16175
16176         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
16177         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16178         (cris_frame_pointer_required): New function.
16179
16180         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
16181
16182         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
16183         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16184         (fr30_frame_pointer_required): New function.
16185
16186         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
16187         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16188         (frv_frame_pointer_required): Make as static, change return type
16189         to bool.
16190         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
16191
16192         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
16193         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16194         (ix86_frame_pointer_required): Make as static, change return type to
16195         bool.
16196         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
16197
16198         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
16199         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16200
16201         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
16202
16203         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
16204
16205         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
16206
16207         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
16208         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16209         (mips_frame_pointer_required): Make as static.
16210         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
16211
16212         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
16213         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16214         (mmix_frame_pointer_required): Mew function.
16215
16216         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
16217         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16218
16219         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
16220
16221         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
16222
16223         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
16224
16225         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
16226         (CAN_ELIMINATE): Redefine.
16227         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16228         (sparc_frame_pointer_required): New function.
16229         (sparc_can_eliminate): New function.
16230         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
16231
16232         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
16233         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16234
16235         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
16236         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16237         (xtensa_frame_pointer_required): Make as static, change return type
16238         to bool.
16239         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
16240         Remove.
16241
16242 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
16243
16244         * doc/plugins.texi: Document PLUGIN_START_UNIT.
16245         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
16246         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
16247         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
16248         (register_callback): Handle PLUGIN_START_UNIT.
16249         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
16250
16251 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
16252
16253         * tree.c (process_call_operands): Propagate TREE_READONLY from the
16254         operands.
16255         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
16256         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
16257
16258 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
16259
16260         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
16261         move cost.
16262
16263 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
16264
16265         * doc/extend.texi (Additional Floating Types): __float128 is also
16266         supported on i386 targets.
16267
16268 2009-06-29  Richard Guenther  <rguenther@suse.de>
16269
16270         PR middle-end/14187
16271         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16272         flag.
16273         (pt_solutions_same_restrict_base): Declare.
16274         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
16275         flag.
16276         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
16277         (make_constraint_from, make_copy_constraint): Move earlier.
16278         (make_constraint_from_heapvar): New function.
16279         (make_constraint_from_restrict): Likewise.
16280         (handle_lhs_call): Use it.
16281         (find_func_aliases): Use it to track conversions to restrict
16282         qualified pointers.
16283         (struct fieldoff): Add only_restrict_pointers flag.
16284         (push_fields_onto_fieldstack): Initialize it.
16285         (create_variable_info_for): Track global restrict qualified pointers.
16286         (intra_create_variable_infos): Use make_constraint_from_heapvar.
16287         Track restrict qualified pointer arguments.
16288         (set_uids_in_ptset): Use varinfo is_global_var flag.
16289         (find_what_var_points_to): Set the vars_contains_restrict flag.
16290         Always create the points-to solution for sets including restrict tags.
16291         (pt_solutions_same_restrict_base): New function.
16292         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
16293         qualified pointers use pt_solutions_same_restrict_base as
16294         additional source for disambiguation.
16295
16296 2009-06-29  Richard Guenther  <rguenther@suse.de>
16297
16298         PR middle-end/38212
16299         * alias.c (find_base_decl): Remove.
16300         (get_deref_alias_set_1): Remove restrict handling.
16301         * c-common.c (c_apply_type_quals_to_decl): Do not set
16302         DECL_POINTER_ALIAS_SET.
16303         * gimplify.c (find_single_pointer_decl_1): Remove.
16304         (find_single_pointer_decl): Likewise.
16305         (internal_get_tmp_var): Remove restrict handling.
16306         (gimple_regimplify_operands): Likewise.
16307         * omp-low.c (expand_omp_atomic_pipeline): Do not set
16308         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
16309         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
16310         * tree.c (restrict_base_for_decl): Remove.
16311         (init_ttree): Do not allocate it.
16312         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
16313         LABEL_DECL_UID for label decls.
16314         (copy_node_stat): Do not copy restrict information.
16315         (decl_restrict_base_lookup): Remove.
16316         (decl_restrict_base_insert): Likewise.
16317         (print_restrict_base_statistics): Likewise.
16318         (dump_tree_statistics): Do not call print_restrict_base_statistics.
16319         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
16320         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
16321         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
16322         (LABEL_DECL_UID): Adjust.
16323         (DECL_BASED_ON_RESTRICT_P): Remove.
16324         (DECL_GET_RESTRICT_BASE): Likewise.
16325         (SET_DECL_RESTRICT_BASE): Likewise.
16326         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
16327
16328         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
16329         instead of DECL_POINTER_ALIAS_SET.
16330         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
16331         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16332         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16333
16334 2009-06-29  Richard Guenther  <rguenther@suse.de>
16335
16336         PR tree-optimization/40579
16337         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
16338         the IL to simplify has constants that overflowed.
16339
16340 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
16341
16342         PR tree-optimization/40550
16343         * tree-vect-generic.c (expand_vector_operations_1): Compute in
16344         vector_compute_type only when the size of vector_compute_type is
16345         less than the size of type.
16346
16347 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
16348
16349         * fold-const.c (contains_label_1): Fix comments.
16350         (contains_label_p): Do not walk trees multiple time.
16351
16352 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16353
16354         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
16355         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
16356         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
16357         ix86_fp_comparison_operator.
16358         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
16359         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
16360         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
16361         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
16362         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
16363         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
16364         (related splits): Change predicate to ix86_fp_comparison_operator.
16365         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
16366         instead of ix86_fp_comparison_codes.
16367         (ix86_trivial_fp_comparison_operator,
16368         ix86_fp_comparison_operator): New.
16369         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
16370         (ix86_expand_compare): Eliminate last two parameters.
16371         (ix86_fp_jump_nontrivial_p): Kill.
16372         * config/i386/i386.c (put_condition_code): Eliminate call to
16373         ix86_fp_comparison_codes and subsequent assertion.
16374         (ix86_fp_comparison_codes): Eliminate.
16375         (ix86_fp_swap_condition): New.
16376         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
16377         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
16378         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
16379         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
16380         and ix86_fp_swap_condition.
16381         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
16382         Use ix86_fp_comparison_strategy.
16383         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
16384         (ix86_fp_jump_nontrivial_p): Eliminate.
16385         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
16386         call to ix86_expand_compare.
16387         (ix86_split_fp_branch, ix86_expand_setcc,
16388         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
16389         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
16390
16391 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16392
16393         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
16394         related to jump_clobbers.
16395         * config/arm/arm.md (conds): Remove jump_clob case.
16396         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
16397         splits): Change comparison_operator to arm_comparison_operator.
16398         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
16399         Eliminate.
16400
16401 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16402
16403         * dojump.c (do_compare_rtx_and_jump): Try swapping the
16404         condition for floating point modes.
16405         * expmed.c (emit_store_flag_1): Move here a bigger part
16406         of emit_store_flag.
16407         (emit_store_flag): Try swapping the condition for floating point
16408         modes.
16409         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
16410
16411 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16412
16413         * expr.c (expand_expr_real_1): Just use do_store_flag.
16414         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
16415         emit_store_flag_force.
16416         * expmed.c (emit_store_flag_force): Copy here trick
16417         previously in expand_expr_real_1.  Try reversing the comparison.
16418         (emit_store_flag_1): Work if target is NULL.
16419         (emit_store_flag): Work if target is NULL, using the result mode
16420         from the comparison.  Use split_comparison, restructure final part
16421         to simplify conditionals.
16422
16423 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16424
16425         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
16426         * dojump.c (do_jump): Change handling of floating-point
16427         ops to use just do_compare_and_jump.
16428         (split_comparison): New.
16429         (do_compare_rtx_and_jump): Add here logic coming previously
16430         in do_jump, using split_comparison.
16431
16432 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
16433
16434         PR target/40489
16435         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
16436
16437 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16438
16439         * tree-ssa-alias.c: Fix unintentional commit.
16440
16441 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16442
16443         * passes.c (execute_one_pass): Fix unintentional commit.
16444
16445 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16446
16447         * df-problems.c (df_set_seen, df_unset_seen): Delete.
16448         (df_rd_local_compute, df_md_local_compute): Inline them.
16449
16450         (df_md_scratch): New.
16451         (df_md_alloc, df_md_free): Allocate/free it.
16452         (df_md_local_compute): Only include live registers in init.
16453         (df_md_transfer_function): Prune the in-set computed by
16454         the confluence function, and the gen-set too.
16455
16456 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16457
16458         PR rtl-optimization/26854
16459         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
16460         * df-problems.c (df_rd_add_problem): Fix comment.
16461         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
16462         df_md_simulate_artificial_defs_at_top,
16463         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
16464         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
16465         df_md_transfer_function, df_md_init, df_md_confluence_0,
16466         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
16467         problem_MD, df_md_add_problem): New.
16468         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
16469         df_md_get_bb_info): New.
16470         (DF_LAST_PROBLEM_PLUS1): Adjust.
16471
16472         * Makefile.in (fwprop.o): Include domwalk.h.
16473         * fwprop.c: Include domwalk.h.
16474         (reg_defs, reg_defs_stack): New.
16475         (bitmap_only_bit_between): Remove.
16476         (process_defs): New.
16477         (process_uses): Use reg_defs and local_md instead of
16478         bitmap_only_bit_between and local_rd.
16479         (single_def_use_enter_block): New, from build_single_def_use_links.
16480         (single_def_use_leave_block): New.
16481         (build_single_def_use_links): Remove code moved to
16482         single_def_use_enter_block, invoke domwalk.
16483         (use_killed_between): Adjust comment.
16484
16485 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16486
16487         * bitmap.h (bitmap_ior_and_into): New.
16488         * bitmap.c (bitmap_ior_and_into): New.
16489
16490 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16491
16492         * domwalk.h (struct dom_walk_data): Remove all callbacks except
16493         before_dom_children_before_stmts and after_dom_children_after_stmts.
16494         Rename the two remaining callbacks to just before_dom_children and
16495         after_dom_children. Remove other GIMPLE statement walking bits.
16496         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
16497         * graphite.c: Do not include domwalk.h.
16498         * tree-into-ssa.c (interesting_blocks): New global.
16499         (struct mark_def_sites_global_data): Remove it and names_to_rename.
16500         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
16501         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
16502         now that they're not domwalk callbacks.
16503         (rewrite_initialize_block): Rename to...
16504         (rewrite_enter_block): ... this, place after called functions.  Test
16505         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
16506         (rewrite_finalize_block): Rename to...
16507         (rewrite_leave_block): ... this, place after called functions.
16508         (rewrite_update_init_block): Rename to...
16509         (rewrite_update_enter_block): ... this, place after called functions.
16510         Test interesting_blocks, call rewrite_update_stmt and
16511         rewrite_update_phi_arguments.
16512         (rewrite_update_fini_block): Rename to...
16513         (rewrite_leave_block): ... this, place after called functions.
16514         (rewrite_blocks): Remove last argument, simplify initialization of
16515         walk_data.
16516         (mark_def_sites_initialize_block): Rename to...
16517         (mark_def_sites_block): ... this, call mark_def_sites.
16518         (mark_def_sites_blocks): Remove argument, simplify initialization of
16519         walk_data.
16520         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
16521         (update_ssa): Likewise.
16522         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
16523         callback.
16524         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
16525         (dom_opt_initialize_block): Rename to...
16526         (dom_opt_enter_block): ... this, place after called functions.  Walk
16527         statements here, inline propagate_to_outgoing_edges.
16528         (dom_opt_finalize_block): Rename to...
16529         (dom_opt_leave_block): ... this, place after called functions.
16530         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
16531         domwalk callback.
16532         (dse_enter_block, dse_record_phi): New.
16533         (dse_record_phis): Delete.
16534         (dse_finalize_block): Rename to...
16535         (dse_leave_block): ... this.
16536         (tree_ssa_dse): Simplify initialization of walk_data.
16537         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
16538         Adjust initialization of walk_data.
16539         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
16540         * tree-ssa-loop-phiopt.c (get_non_trapping):
16541         Adjust initialization of walk_data.
16542         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
16543         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
16544         it's not a domwalk callback.
16545         (uncprop_initialize_block): Rename to...
16546         (dse_enter_block): ... this, call uncprop_into_successor_phis.
16547         (dse_finalize_block): Rename to...
16548         (dse_leave_block): ... this.
16549         (tree_ssa_uncprop): Simplify initialization of walk_data.
16550         * Makefile.in: Adjust dependencies.
16551
16552 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
16553
16554         * arm.md (casesi): Fix test for Thumb1.
16555         (thumb1_casesi_internal_pic): Likewise.
16556         (thumb1_casesi_dispatch): Likewise.
16557
16558 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
16559
16560         * config/arm/arm-cores.def: Added core cortex-m0.
16561         * config/arm/arm-tune.md: Regenerated.
16562         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
16563
16564 2009-06-26  DJ Delorie  <dj@redhat.com>
16565
16566         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
16567
16568         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
16569         the scheduler doesn't tag jump insns.
16570
16571 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
16572
16573         * c-decl.c (merge_decls): Re-indent.
16574
16575 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
16576
16577         PR c/39902
16578         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
16579         Special-case decimal float constants.
16580
16581 2009-06-26  Richard Henderson  <rth@redhat.com>
16582
16583         * function.h (struct function): Add cannot_be_copied_reason,
16584         and cannot_be_copied_set.
16585         * tree-inline.c (has_label_address_in_static_1): Rename from
16586         inline_forbidden_p_2; don't set inline_forbidden_reason here.
16587         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
16588         don't set inline_forbidden_reason.
16589         (copy_forbidden): New function, split out of inline_forbidden_p.
16590         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
16591         (inline_forbidden_p): Use copy_forbidden.
16592         (tree_versionable_function_p): Likewise.
16593         (inlinable_function_p): Merge into tree_inlinable_function_p.
16594         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
16595         * ipa-cp.c (ipcp_versionable_function_p): New function.
16596         (ipcp_cloning_candidate_p): Use it.
16597         (ipcp_node_modifiable_p): Likewise.
16598
16599 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
16600
16601         * builtins.c (expand_builtin_alloca): Handle builtin alloca
16602         that is marked not to be inlined. Remove flag_mudflap use.
16603         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
16604         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
16605
16606 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
16607
16608         PR bootstrap/40338
16609         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
16610         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
16611
16612 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
16613
16614         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
16615         shared libgcc.
16616         (__mingwthr_remove_key_dtor): Likewise.
16617
16618 2009-06-26  Richard Guenther  <rguenther@suse.de>
16619
16620         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
16621
16622 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
16623
16624         PR middle-end/40525
16625         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
16626         try the non-cond_exec path also.
16627
16628 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16629
16630         PR target/40468
16631         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
16632         (output_cbranch): Use new functions.
16633         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
16634         Likewise.
16635
16636 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16637             Pat Haugen  <pthaugen@us.ibm.com>
16638             Revital Eres <ERES@il.ibm.com>
16639
16640         * config/rs6000/rs6000.c (print_operand): Correct lossage message
16641         for %c error.  Add %x support to print VSX registers as a unified
16642         register set, instead of separate float and altivec registers.
16643         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
16644         %y case, and add support for VSX pre-modify addresses.
16645         (output_toc): Add assert for CONST containing an integer constant
16646         in the PLUS case.
16647         (rs6000_adjust_cost): Add POWER7 support.
16648         (insn_must_be_first_in_group): Ditto.
16649         (insn_must_be_last_in_group): Ditto.
16650         (rs6000_emit_popcount): Ditto.
16651         (rs6000_vector_mode_supported_p): Ditto.
16652
16653         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
16654         Change some of the functions called by macros to being called
16655         through a pointer, so debug functions can be inserted if
16656         -mdebug=addr or -mdebug=cost.
16657         (rs6000_preferred_reload_class_ptr): Ditto.
16658         (rs6000_secondary_reload_class_ptr): Ditto.
16659         (rs6000_secondary_memory_needed_ptr): Ditto.
16660         (rs6000_cannot_change_mode_class_ptr): Ditto.
16661         (rs6000_secondary_reload_inner): Ditto.
16662         (rs6000_legitimize_reload_address): Ditto.
16663         (rs6000_legitimize_reload_address_ptr): Ditto.
16664         (rs6000_mode_dependent_address): Ditto.
16665         (rs6000_mode_dependent_address_ptr): Ditto.
16666
16667         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
16668         function to return true if the mode allows reg + integer
16669         addresses.
16670         (virtual_stack_registers_memory_p): New function to return true if
16671         the address refers to a virtual stack register.
16672         (rs6000_legitimate_offset_address_p): Move code to say whether a
16673         mode supports reg+int addressing to reg_offset_addressing_ok_p and
16674         call it.
16675         (rs6000_legitimate_address_p): Add checks for modes that only can
16676         do reg+reg addressing.  Start adding VSX support.
16677         (rs6000_legitimize_reload_address): Ditto.
16678         (rs6000_legitimize_address): Ditto.
16679         (rs6000_debug_legitimate_address_p): New debug functions for
16680         -mdebug=addr and -mdebug=cost.
16681         (rs6000_debug_rtx_costs): Ditto.
16682         (rs6000_debug_address_costs): Ditto.
16683         (rs6000_debug_adjust_cost): Ditto.
16684         (rs6000_debug_legitimize_address): Ditto.
16685         (rs6000_legitimize_reload_address_ptr): Point to call normal
16686         function or debug function.  Make functions called via pointer
16687         static.
16688         (rs6000_mode_dependent_address_ptr): Ditto.
16689         (rs6000_secondary_reload_class_ptr): Ditto.
16690         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
16691         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
16692         into a friendlier error.
16693         (rs6000_init_builtins): Add initial VSX support.
16694         (rs6000_adjust_cost): Fix some spacing issues.
16695
16696         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
16697         (REG_CLASS_NAMES): Ditto.
16698         (REG_CLASS_CONTENTS): Ditto.
16699         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
16700         pointer, to add -mdebug=addr support.
16701         (CANNOT_CHANGE_MODE_CLASS): Ditto.
16702         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
16703         -mdebug=addr support.
16704         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
16705         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
16706         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
16707
16708         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
16709         16-bit values.
16710         (bswapsi*): Set attribute types for load/store.  Add combiner
16711         patterns to eliminate zero extend on 64-bit.
16712         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
16713         stdbrx if the hardware supports those instructions.
16714
16715 2009-06-25  Ian Lance Taylor  <iant@google.com>
16716
16717         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
16718         (Link Options): Document -static-libstdc++.
16719
16720 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16721
16722         PR target/38731
16723         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
16724         DATA_ALIGNMENT instead.
16725
16726 2009-06-25  Richard Guenther  <rguenther@suse.de>
16727
16728         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
16729         indirect references against the callused/escaped solutions.
16730         (call_may_clobber_ref_p_1): Likewise.
16731
16732 2009-06-25  Martin Jambor  <mjambor@suse.cz>
16733
16734         PR tree-optimization/40493
16735         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
16736         (enum unscalarized_data_handling): New type.
16737         (handle_unscalarized_data_in_subtree): Return what has been done.
16738         (load_assign_lhs_subreplacements): Handle left flushes differently.
16739         (sra_modify_assign): Use unscalarized_data_handling, simplified
16740         condition determining whether to remove the statement.
16741
16742 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
16743
16744         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
16745         excerpt - @ should be doubled for texinfo.
16746
16747 2009-06-24  Ian Lance Taylor  <iant@google.com>
16748
16749         * config/arc/arc.c: Include "df.h".
16750         (arc_attribute_table): Make static.  Move higher in file.
16751         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
16752         (output_shift): Initialize n later to avoid warning.
16753         * config/arm/arm.c (arm_attribute_table): Make static.  Move
16754         higher in file.
16755         * config/avr/avr.c (avr_attribute_table): Make static.  Move
16756         higher in file.
16757         (reg_class_tab): Change array type from int to enum reg_class.
16758         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
16759         LABEL_REF.
16760         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
16761         (lshrhi3_out): Likewise.
16762         (class_likely_spilled_p): Change return type to bool.
16763         (avr_rtx_costs): Use local code variable with enum type.
16764         * config/avr/avr.md (movmemhi): Use add_reg_note.
16765         (andhi3, andsi3): Don't use AS2 with "and".
16766         (iorhi3, iorsi3): Don't use AS2 with "or".
16767         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
16768         * config/crx/crx.c: Include "df.h".
16769         (crx_attribute_table): Make static.
16770         * config/m32r/m32r.c: Include "df.h".
16771         (m32r_attribute_table): Make static.  Move higher in file.
16772         (pop): Use add_reg_note.
16773         (block_move_call): Change 0 to LCT_NORMAL in function call.
16774         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
16775         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
16776         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
16777         declare, not just when TREE_CODE is defined.
16778         * config/m68hc11/m68hc11.c: Include "expr.h".
16779         (m68hc11_attribute_table): Make static.  Move higher in file.
16780         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
16781         function call.
16782         (m68hc11_register_indirect_p): Likewise.
16783         (m68hc11_function_arg_padding): Change return type to enum
16784         direction.
16785         (emit_move_after_reload): Use add_reg_note.
16786         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
16787         (m68hc11_split_logical): Likewise.
16788         (m68hc11_rtx_costs): Add local code_and outer_code variables with
16789         enum type.
16790         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
16791         to VOIDmode in function call.
16792         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
16793         tree is defined.
16794         (m68hc11_split_logical): Update declaration.
16795         (m68hc11_function_arg_padding): Update declaration.
16796         * config/mcore/mcore.c (regno_reg_class): Change form array of int
16797         to array of enum reg_class.
16798         (mcore_attribute_table): Make static.  Move higher in file.
16799         (mcore_rtx_costs): Add cast to enum type.
16800         * config/mcore/mcore.h (regno_reg_class): Update declaration.
16801         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
16802         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
16803         in file.
16804         * config/sh/predicates.md (trapping_target_operand): Rename and to
16805         and_expr.
16806         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
16807         higher in file.
16808         * config/spu/spu.c (spu_attribute_table): Make static.  Move
16809         higher in file.
16810         * config/v850/v850.c (v850_attribute_table): Make static.  Move
16811         higher in file.
16812         (v850_rtx_costs): Use local code with enum type.
16813         (expand_epilogue): Add cast.
16814         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
16815
16816 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
16817
16818         PR target/40515
16819         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
16820         -m2a-single-only and -m2a-nofpu.
16821         * config/sh/sh.opt: Document m2a generates FPU code.
16822
16823 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
16824
16825         * defaults.h (CAN_ELIMINATE): Provide default.
16826         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
16827         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
16828         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
16829         * config/spu/spu.h (CAN_ELIMINATE): Delete.
16830         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
16831         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
16832         * config/cris/cris.h (CAN_ELIMINATE): Delete.
16833         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
16834         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
16835         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
16836
16837 2009-06-24  DJ Delorie  <dj@redhat.com>
16838
16839         * mep-ext-cop.cpu: Fix copyright notice.
16840         * mep-default: Fix copyright notice.
16841         * mep-core: Fix copyright notice.
16842         * mep: Fix copyright notice.
16843         * mep-ivc2: Fix copyright notice.
16844         * mep-c5: Fix copyright notice.
16845
16846 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
16847
16848         * doc/contrib.texi (Contributors):
16849
16850 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16851
16852         PR middle-end/40501
16853         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
16854         src and dst operands if necessary.
16855
16856 2009-06-23  DJ Delorie  <dj@redhat.com>
16857
16858         Add MeP port.
16859         * config.gcc: Add mep support.
16860         * recog.c: Resurrect validate_replace_rtx_subexp().
16861         * recog.h: Likewise.
16862         * config/mep/: Add new port:
16863         * config/mep/constraints.md: New file.
16864         * config/mep/default.h: New file.
16865         * config/mep/intrinsics.h: New file.
16866         * config/mep/intrinsics.md: New file.
16867         * config/mep/ivc2-template.h: New file.
16868         * config/mep/mep-c5.cpu: New file.
16869         * config/mep/mep-core.cpu: New file.
16870         * config/mep/mep-default.cpu: New file.
16871         * config/mep/mep-ext-cop.cpu: New file.
16872         * config/mep/mep-intrin.h: New file.
16873         * config/mep/mep-ivc2.cpu: New file.
16874         * config/mep/mep-lib1.asm: New file.
16875         * config/mep/mep-lib2.c: New file.
16876         * config/mep/mep-pragma.c: New file.
16877         * config/mep/mep-protos.h: New file.
16878         * config/mep/mep-tramp.c: New file.
16879         * config/mep/mep.c: New file.
16880         * config/mep/mep.cpu: New file.
16881         * config/mep/mep.h: New file.
16882         * config/mep/mep.md: New file.
16883         * config/mep/mep.opt: New file.
16884         * config/mep/predicates.md: New file.
16885         * config/mep/t-mep: New file.
16886
16887 2009-06-23  Ian Lance Taylor  <iant@google.com>
16888
16889         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
16890         from loose_warn into c_loose_warn and from strict_warn into
16891         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
16892         --enable-build-with-cxx.  Set and substitute
16893         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
16894         * Makefile.in (CXXFLAGS): New variable.
16895         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
16896         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
16897         the default is the same as $(STRICT_WARN).
16898         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
16899         (CXX): New variable.
16900         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
16901         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
16902         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
16903         (HOST_LIBS): New variable.
16904         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
16905         (ALL_CXXFLAGS): New variable.
16906         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
16907         * doc/install.texi (Configuration): Document
16908         --enable-build-with-cxx, --with-stage1-ldflags,
16909         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
16910         * configure: Rebuild.
16911
16912 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16913
16914         * config/arm/arm.c (arm_override_options): Fix braces and formatting
16915         from previous commit.
16916
16917 2009-06-23  Ian Lance Taylor  <iant@google.com>
16918
16919         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
16920
16921 2009-06-23  Ian Lance Taylor  <iant@google.com>
16922
16923         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
16924         with ATTRIBUTE_UNUSED.
16925
16926 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16927             Pat Haugen  <pthaugen@us.ibm.com>
16928             Revital Eres  <eres@il.ibm.com>
16929
16930         * config.in (HAVE_AS_POPCNTD): Add default definition.
16931         (HAVE_AS_LWSYNC): Ditto.
16932
16933         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
16934         release number.
16935         (gcc_cv_as_powerpc_cmpb): Ditto.
16936         (gcc_cv_as_powerpc_dfp): Ditto.
16937         (gcc_cv_as_powerpc_vsx): Ditto.
16938         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
16939         supporting the popcntd/lwsync instructions.
16940         (gcc_cv_as_powerpc_lwsync): Ditto.
16941         * configure: Regenerate.
16942
16943         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
16944         -mcpu=native and -mcpu=power7.
16945         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
16946
16947         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
16948         a variable instead of a mask to reduce the number of mask bits.
16949         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
16950         (-mbit-word): Ditto.
16951         (-mregnames): Ditto.
16952         * config/rs6000/rs6000.opt (-mupdate): Ditto.
16953         (-mfused-madd): Ditto.
16954
16955         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
16956         2.06 instructions.
16957         (-mvsx): New switch for VSX instructions.
16958         (-misel): Move from a variable to a mask to allow it to be set by
16959         -mcpu=.
16960
16961         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
16962         function declaration to an array declaration.
16963         (rs6000_hard_regno_nregs): New external array declaration.
16964
16965         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
16966         files included by rs6000.md.
16967
16968         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16969         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
16970
16971         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
16972         a target mask.
16973         (rs6000_debug_reg): New -mdebug= variables.
16974         (rs6000_debug_addr): Ditto.
16975         (rs6000_debug_cost): Ditto.
16976         (rs6000_pmode): New variable to hold Pmode.
16977         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
16978         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
16979         calculated at compiler start.
16980         (rs6000_hard_regno_nregs): Change function to an array which holds
16981         HARD_REGNO_NREGS calculated at compiler start.
16982         (rs6000_explicit_options): Delete isel field.
16983         (rs6000_vector_unit): New array to hold which vector unit
16984         supports arithmetic options for a given type.
16985         (rs6000_vector_mem): New array to hold which vector unit supports
16986         memory reference operations for a given type.
16987         (rs6000_vector_align): New array to given the alignment of each
16988         vector type.
16989         (power7_cost): New basic costs for power7.
16990         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
16991         (rs6000_hard_regno_nregs_internal): New function, moved from
16992         HARD_REGNO_NREGS, to calculate the number of registers each hard
16993         register takes for each type.
16994         (rs6000_debug_reg_print): New function for -mdebug=reg support.
16995         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
16996         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
16997         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
16998         unit information here so it is calculated once at compiler startup
16999         time.
17000         (rs6000_override_options): Make -misel a target mask.  Add more
17001         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
17002         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
17003         -mdebug=cost.
17004         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
17005         (rs6000_handle_option): Move -misel from variable to target mask.
17006         (rs6000_builtin_mask_for_load): Add VSX support.
17007         (rs6000_conditional_register_usage): Ditto.
17008         (USE_ALTIVEC_FOR_ARG_P): Ditto.
17009         (function_arg_boundary): Ditto.
17010         (rs6000_expand_builtin): Ditto.
17011         (def_builtin): Make abort message a little friendlier.
17012         (rs6000_emit_int_cmove): Add support for 64-bit isel.
17013
17014         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
17015         assembler support the popcntd instruction instead of a vsx
17016         instruction to enable power7 support.
17017         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
17018         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
17019         option to the assembler if -mcpu=native.
17020         (ASM_CPU_NATIVE_SPEC): Ditto.
17021         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
17022         ISA 2.06 features.
17023         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
17024         the lwsync instruction.
17025         (enum processor_type): Add PROCESSOR_POWER7.
17026         (rs6000_debug_reg): New -mdebug= options.
17027         (rs6000_debug_addr): Ditto.
17028         (rs6000_debug_cost): Ditto.
17029         (rs6000_isel): Delete.
17030         (enum rs6000_vector): New enum to say what vector unit we have.
17031         (VECTOR_UNIT_*): New macros to say which vector unit has
17032         arithmetic operations for a given type.
17033         (VECTOR_MEM_*): New macros to say which vector unit has memory
17034         operations for a given type.
17035         (TARGET_LDBRX): Whether the machine supports the ldbrx
17036         instruction.
17037         (TARGET_ISEL): Delete, -misel moved to be a mask.
17038         (TARGET_ISEL64): New macro for 64-bit isel support.
17039         (UNITS_PER_VSX_WORD): New macro.
17040         (POINTER_SIZE): Move to be an external variable, rather than
17041         calculating whether we are generating 32 ot 64-bit code.
17042         (Pmode): Ditto.
17043         (STACK_BOUNDARY): Add VSX support.
17044         (LOCAL_ALIGNMENT): Ditto.
17045         (SLOW_UNALIGNED_ACCESS): Ditto.
17046         (VSX_REGNO_P): New macro for VSX support.
17047         (VFLOAT_REGNO_P): Ditto.
17048         (VINT_REGNO_P): Ditto.
17049         (VLOGICAL_REGNO_P): Ditto.
17050         (VSX_VECTOR_MODE): Ditto.
17051         (VSX_SCALAR_MODE): Ditto.
17052         (VSX_MODE): Ditto.
17053         (VSX_MOVE_MODE): Ditto.
17054         (VSX_REG_CLASS_P): Ditto.
17055         (HARD_REGNO_NREGS): Instead of calling a function, use an array
17056         lookup.
17057         (UNITS_PER_SIMD_WORD): Add VSX support.
17058         (MODES_TIEABLE_P): Ditto.
17059         (STARTING_FRAME_OFFSET): Ditto.
17060         (STACK_DYNAMIC_OFFSET): Ditto.
17061         (EPILOGUE_USES): Ditto.
17062         (REGNO_REG_CLASS): Move to array lookup.
17063         (CLASS_MAX_NREGS): Ditto.
17064         (rs6000_vector_reg_class): Add declaration.
17065         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
17066         overlap with the floating point and Altivec registers.
17067
17068         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
17069
17070         * config/rs6000/driver-rs6000.c (asm_names): New static array to
17071         give the appropriate asm switches if -mcpu=native.
17072         (host_detect_local_cpu): Add support for "asm".
17073         (host_detect_local_cpu): Follow GNU code guidelines for name.
17074
17075         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
17076         -mbit-word to a variable instead of being a target mask.
17077
17078         * config/rs6000/sync.md (lwsync): If the assembler supports it,
17079         emit the lwsync instruction instead of emitting the instruction as
17080         an integer constant.
17081
17082         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
17083         fixuns_trundfsi2, move expander into rs6000.md.
17084
17085         * config/rs6000/rs6000.md (cpu): Add power7.
17086         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
17087         (logical predicate patterns): Change the single instruction
17088         primitives that set CR0 to be fast_compare instead of compare.
17089         (norsi*): Ditto.
17090         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
17091         (popcntddi2): Ditto.
17092         (popcount<mode>): Ditto.
17093         (floating multiply/add insns): Name the floating point
17094         multiply/add insns.
17095         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
17096         (isel_unsigned_<mode>): Ditto.
17097         (fixuns_trundfsi2): Move expander here from spe.md.
17098         (smindi3): Define if we have -misel on 64-bit systems.
17099         (smaxdi3): Ditto.
17100         (umindi3): Ditto.
17101         (umaxdi3): Ditto.
17102
17103 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
17104
17105         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
17106         extra_objs.
17107         * config/avr/avr.c (avr_current_device): New variable.
17108         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
17109         (avr_arch, mcu_type_s): Move to avr.h.
17110         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
17111         default_data_section_start fields.
17112         (avr_arch): Moved from avr.c.
17113         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
17114         library_name fields.
17115         (avr_current_device, avr_mcu_types, avr_arch_types,
17116         avr_device_to_arch, avr_device_to_data_start,
17117         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
17118         (EXTRA_SPEC_FUNCTIONS): Define.
17119         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
17120         options mapping. Use device_to_arch and device_to_data_start insted.
17121         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
17122         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
17123         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
17124         * config/avr/driver-avr.c: New file.
17125         * config/avr/avr-devices.c: New file.
17126
17127 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
17128
17129         * var-tracking.c (unshare_variable): Force initialized to
17130         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
17131         (set_variable_part): Likewise.
17132         (struct variable_union_info): Remove pos_src field.
17133         (vui_vec, vui_allocated): New variables.
17134         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
17135         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
17136         == 1 use a simpler sorting algorithm.  Compute pos field right
17137         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
17138         Avoid quadratic comparison if !flag_var_tracking_uninit.
17139         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
17140         unshare_variable unconditionally.
17141         (dataflow_set_different_2): Removed.
17142         (dataflow_set_different): Don't traverse second hash table.
17143         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
17144         unconditionally to var_reg_set or var_mem_set.
17145         (emit_notes_in_bb): Likewise.
17146         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
17147         unshare_variable.
17148         (emit_note_insn_var_location): Don't set initialized to
17149         VAR_INIT_STATUS_INITIALIZED early.
17150         (vt_finalize): Free vui_vec if needed, clear vui_vec and
17151         vui_allocated.
17152         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
17153
17154         * tree-object-size.c (addr_object_size): Instead of checking
17155         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
17156         are no FIELD_DECLs following it.
17157
17158 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17159
17160         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
17161         order to match bswaps with signed source operands.
17162
17163 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17164
17165         * sdbout.c (sdbout_one_type): Fix braces in switch.
17166
17167 2009-06-23  Richard Guenther  <rguenther@suse.de>
17168
17169         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
17170         member.
17171         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
17172         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
17173         var_callused, callused_tree, var_storedanything, storedanything_tree,
17174         var_integer, integer_tree): Remove global variables.
17175         (new_var_info): Do not pass new id, append the new var to the
17176         global variable vector.
17177         (do_ds_constraint): Use is_global_var member of the variable-info.
17178         (new_scalar_tmp_constraint_exp): Adjust.
17179         (create_function_info_for): Likewise.
17180         (create_variable_info_for): Likewise.
17181         (find_what_var_points_to): Remove dead code.
17182         (init_base_vars): Simplify.
17183         (compute_points_to_sets): Adjust.
17184
17185 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17186
17187         * combine.c (try_combine): Dump information about the insns we're
17188         combining.
17189
17190 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17191
17192         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
17193         check when calling force_to_mode on TRUNCATE's operand.
17194
17195 2009-06-22  Ian Lance Taylor  <iant@google.com>
17196
17197         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
17198
17199 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17200
17201         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
17202
17203 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17204
17205         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
17206         override library linkage flags such as -static-libgcc or
17207         -shared-libgcc.
17208
17209 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17210
17211         * config/m68k/m68k-devices.def: Add line for MCF5221x.
17212
17213 2009-06-22  Ian Lance Taylor  <iant@google.com>
17214
17215         * config/linux.opt: Put mglibc ahead of muclibc.
17216
17217         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
17218         for duplicate decls.
17219
17220 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17221
17222         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
17223
17224 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17225
17226         PR objc/28050
17227         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
17228         instead of NULL if a parser error occurs.
17229
17230 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17231
17232         * dwarf2out.c (dwarf2_debug_hooks): Initialize
17233         non-DWARF2_DEBUGGING_INFO version.
17234
17235 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
17236
17237         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
17238         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
17239
17240         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
17241         (LIBGCC2_TF_CEXT): Define.
17242         (TF_SIZE): Define.
17243
17244 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17245
17246         PR target/40463
17247         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
17248
17249 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17250
17251         * config/arm/arm.c (arm_override_options): Disable
17252         -mcaller-super-interworking and -mcallee-super-interworking.
17253         * doc/invoke.texi (ARM Options): Document this.
17254
17255 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17256
17257         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
17258         * config/arm/constraints.md (j): New constraint for movw operands.
17259         (N): Remove thumb2 meaning.
17260         * config/arm/arm.md (*arm_movw): Delete.
17261         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
17262         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
17263         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
17264
17265 2009-06-22  Martin Jambor  <mjambor@suse.cz>
17266
17267         PR tree-optimization/40492
17268         * tree-sra.c (sra_modify_assign): Pass zero offsets to
17269         build_ref_for_offset.
17270
17271 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
17272
17273         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
17274         JUMP_TABLE_DATA_P predicates where applicable.
17275         * auto-inc-dec.c: Ditto.
17276         * builtins.c: Ditto.
17277         * caller-save.c: Ditto.
17278         * calls.c: Ditto.
17279         * cfgcleanup.c: Ditto.
17280         * cfglayout.c: Ditto.
17281         * cfgrtl.c: Ditto.
17282         * combine.c: Ditto.
17283         * combine-stack-adj.c: Ditto.
17284         * cse.c: Ditto.
17285         * cselib.c: Ditto.
17286         * dbxout.c: Ditto.
17287         * df-scan.c: Ditto.
17288         * dse.c: Ditto.
17289         * dwarf2asm.c: Ditto.
17290         * dwarf2out.c: Ditto.
17291         * emit-rtl.c: Ditto.
17292         * except.c: Ditto.
17293         * explow.c: Ditto.
17294         * expmed.c: Ditto.
17295         * expr.c: Ditto.
17296         * final.c: Ditto.
17297         * function.c: Ditto.
17298         * fwprop.c: Ditto.
17299         * gcse.c: Ditto.
17300         * genpreds.c: Ditto.
17301         * genrecog.c: Ditto.
17302         * ifcvt.c: Ditto.
17303         * ira-costs.c: Ditto.
17304         * ira-lives.c: Ditto.
17305         * jump.c: Ditto.
17306         * loop-iv.c: Ditto.
17307         * lower-subreg.c: Ditto.
17308         * modulo-sched.c: Ditto.
17309         * optabs.c: Ditto.
17310         * postreload.c: Ditto.
17311         * print-rtl.c: Ditto.
17312         * recog.c: Ditto.
17313         * reginfo.c: Ditto.
17314         * regmove.c: Ditto.
17315         * reload1.c: Ditto.
17316         * reload.c: Ditto.
17317         * reorg.c: Ditto.
17318         * rtlanal.c: Ditto.
17319         * rtl.c: Ditto.
17320         * sched-vis.c: Ditto.
17321         * sdbout.c: Ditto.
17322         * sel-sched-ir.c: Ditto.
17323         * simplify-rtx.c: Ditto.
17324         * targhooks.c: Ditto.
17325         * var-tracking.c: Ditto.
17326         * vmsdbgout.c: Ditto.
17327
17328 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17329
17330         * Makefile.in (install-plugin): Always use DESTDIR.
17331
17332 2009-06-22  Olivier Hainque  <hainque@adacore.com>
17333
17334         * config/pa/pa.c (output_call): Don't optimize post call jumps
17335         into return address adjustments if the call may throw.
17336
17337 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
17338
17339         * arm.c (thumb1_output_casesi): New function.
17340         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
17341         optimizing for size or PIC.
17342         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
17343         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
17344         (casesi): Handle Thumb-1 when optimizing for size or PIC.
17345         (thumb1_casesi_internal_pic): New expand rule.
17346         (thumb1_casesi_dispatch): New pattern.
17347         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
17348         thumb-1 mode.
17349         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
17350         in the text seciton when PIC or optimizing for size.
17351         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17352         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
17353         preservation properties of code.
17354         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
17355         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
17356         (__gnu_thumb1_case_si): New function.
17357         * t-arm (LIB1ASMSRC): Define here.
17358         (LIB1ASMFUNCS): Add some common functions.
17359         * t-arm-elf (LIB1ASMSRC): Delete.
17360         (LIB1ASMFUNCS): Append to existing set.
17361         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17362         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17363         * t-symbian (LIB1ASMFUNCS): Likewise.
17364         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17365         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17366
17367 2009-06-21  Richard Guenther  <rguenther@suse.de>
17368
17369         PR tree-optimization/38729
17370         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
17371         to loops with a single exit if -fno-expensive-optimizations.
17372
17373 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
17374
17375         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
17376         (dataflow_set): Change vars type from htab_t to shared_hash.
17377         (shared_hash_pool, empty_shared_hash): New variables.
17378         (vars_clear): Removed.
17379         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
17380         shared_hash_find_slot_unshare, shared_hash_find_slot,
17381         shared_hash_find_slot_noinsert, shared_hash_find): New
17382         static inlines.
17383         (shared_hash_unshare, shared_hash_destroy): New functions.
17384         (unshare_variable): Unshare set->vars if shared, use
17385         shared_hash_htab.
17386         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
17387         (get_init_value, find_src_set_src, dump_dataflow_set,
17388         clobber_variable_part, emit_notes_for_differences): Use
17389         shared_hash_htab.
17390         (dataflow_set_init): Remove second argument, set vars to
17391         empty_shared_hash instead of creating a new htab.
17392         (dataflow_set_clear): Call shared_hash_destroy and set vars
17393         to empty_shared_hash instead of calling vars_clear.
17394         (dataflow_set_copy): Don't call vars_copy, instead just share
17395         the src htab with dst.
17396         (variable_union): Use shared_hash_*, use initially NO_INSERT
17397         lookup if set->vars is shared.  Don't keep slot cleared before
17398         calling unshare_variable.  Unshare set->vars if needed.
17399         Even ->refcount == 1 vars must be unshared if set->vars is shared
17400         and var needs to be modified.
17401         (variable_canonicalize): New function.
17402         (dataflow_set_union): If dst->vars is empty, just share src->vars
17403         with dst->vars and traverse with variable_canonicalize to canonicalize
17404         and unshare what is needed.
17405         (dataflow_set_different): If old_set and new_set use the same shared
17406         htab, they aren't different.  If number of htab elements is different,
17407         htabs are different.  Use shared_hash_*.
17408         (dataflow_set_destroy): Call shared_hash_destroy instead of
17409         htab_delete.
17410         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
17411         second argument to dataflow_set_init.
17412         (vt_initialize): Likewise.  Initialize shared_hash_pool and
17413         empty_shared_hash, move bb in/out initialization afterwards.
17414         Use variable_htab_free instead of NULL as changed_variables del hook.
17415         (variable_was_changed): Change type of second argument to pointer to
17416         dataflow_set.  When inserting var into changed_variables, bump
17417         refcount.  Unshare set->vars if set is shared htab and slot needs to
17418         be cleared.
17419         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
17420         lookup if set->vars is shared.  Unshare set->vars if needed.
17421         Even ->refcount == 1 vars must be unshared if set->vars is shared
17422         and var needs to be modified.  Adjust variable_was_changed caller.
17423         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
17424         vars must be unshared if set->vars is shared and var needs to be
17425         modified.  Adjust variable_was_changed caller.
17426         (emit_note_insn_var_location): Don't pool_free var.
17427         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
17428         instead of 1.
17429         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
17430         free_alloc_pool on shared_hash_pool.
17431
17432 2009-06-20  Anthony Green  <green@moxielogic.com>
17433
17434         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
17435         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
17436
17437 2009-06-20  Richard Guenther  <rguenther@suse.de>
17438
17439         * tree-ssa-structalias.c (find_func_aliases): For memset use
17440         a constraint from NULL if we memset to zero.
17441         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
17442         we explicitly handle that do not read from memory.
17443         (call_may_clobber_ref_p_1): Properly handle builtins that may
17444         set errno.
17445
17446 2009-06-20  Richard Guenther  <rguenther@suse.de>
17447
17448         PR tree-optimization/40495
17449         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
17450         (new_scalar_tmp_constraint_exp): New function.
17451         (process_constraint): Do not create temporary decls.
17452         (process_all_all_constraints): Likewise.
17453         (handle_const_call): Likewise.
17454         (create_function_info_for): Do not set decl.
17455
17456 2009-06-19  Ian Lance Taylor  <iant@google.com>
17457
17458         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
17459         (rs6000_attribute_table): Make static; move before use.
17460
17461 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
17462
17463         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
17464         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
17465         Propagate the TREE_READONLY flag without overwriting it.
17466         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
17467         Propagate the TREE_READONLY flag onto the result.
17468         (process_call_operands): Move around.  Use correct constant value.
17469
17470 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17471
17472         PR target/40482
17473         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
17474         * config/arm/arm.md: Likewise.
17475
17476 2009-06-19  Ian Lance Taylor  <iant@google.com>
17477
17478         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
17479         to GIMPLE_ERROR_MARK.
17480
17481         * c-typeck.c (build_conditional_expr): Add op1_original_type and
17482         op2_original_type parameters.  Warn about using different enum types.
17483         * c-parser.c (c_parser_conditional_expression): Pass original
17484         types to build_conditional_expr.
17485         * c-tree.h (build_conditional_expr): Update declaration.
17486
17487 2009-06-19  Ian Lance Taylor  <iant@google.com>
17488
17489         * config/i386/i386.c (ix86_function_specific_save): Test that
17490         fields match values, rather than testing the values are in a
17491         certain range.
17492
17493 2009-06-19  Richard Guenther  <rguenther@suse.de>
17494
17495         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17496         ADDR_EXPR pointers.
17497         (ptr_derefs_may_alias_p): Likewise.
17498         (ptr_deref_may_alias_ref_p_1): New function.
17499         (ptr_deref_may_alias_ref_p): Likewise.
17500         (ref_maybe_used_by_call_p_1): Handle builtins that are not
17501         covered by looking at the ESCAPED solution.
17502         (call_may_clobber_ref_p_1): Likewise.
17503         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17504         Handle NULL_TREE offset.  Do not produce redundant constraints.
17505         (process_all_all_constraints): New helper function.
17506         (do_structure_copy): Use it.
17507         (handle_lhs_call): Likewise.
17508         (find_func_aliases): Handle some builtins with pointer arguments
17509         and/or return values explicitly.
17510
17511 2009-06-19  Ian Lance Taylor  <iant@google.com>
17512
17513         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
17514
17515 2009-06-19  Ian Lance Taylor  <iant@google.com>
17516
17517         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
17518
17519 2009-06-19  Ian Lance Taylor  <iant@google.com>
17520
17521         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
17522         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
17523         version.
17524
17525         * c-decl.c (finish_decl): If -Wc++-compat, warn about
17526         uninitialized const.
17527
17528 2009-06-19  Ian Lance Taylor  <iant@google.com>
17529
17530         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
17531         all uses.
17532
17533         * c-decl.c (in_struct, struct_types): Remove.
17534         (struct c_binding): Add in_struct field.
17535         (c_binding_ptr): Define type, along with VEC.
17536         (struct c_struct_parse_info): Define.
17537         (struct_parse_info): New static variable.
17538         (bind): Initialize in_struct field.
17539         (start_struct): Remove enclosing_in_struct and
17540         enclosing_struct_types parameters.  Add
17541         enclosing_struct_parse_info parameter.  Change all callers.  Set
17542         struct_parse_info rather than in_struct and struct_types.
17543         (grokfield): If -Wc++-compat and there is a symbol binding for the
17544         field name, set the in_struct flag and push it on the
17545         struct_parse_info->fields vector.
17546         (warn_cxx_compat_finish_struct): New static function.
17547         (finish_struct): Remove enclosing_in_struct and
17548         enclosing_struct_types parameters.  Add
17549         enclosing_struct_parse_info parameter.  Change all callers.  Don't
17550         set C_TYPE_DEFINED_IN_STRUCT here.  Call
17551         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
17552         parameter.  Only push on struct_types if warn_cxx_compat.
17553         (finish_enum): Only push on struct_types if warn_cxx_compat.
17554         (declspecs_add_type): Add loc parameter.  Change all callers.
17555         Change all error calls to error_at.  Pass loc, not input_location,
17556         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
17557         defined in a struct.  If -Wc++-compat and parsing a struct, record
17558         that a typedef name was used.
17559         * c-parser.c (c_parser_declspecs): Get location to pass to
17560         declspecs_add_type.
17561         (c_parser_struct_or_union_specifier): Update calls to start_struct
17562         and finish_struct.
17563         * c-tree.h (struct c_struct_parse_info): Declare.
17564         (finish_struct, start_struct): Update declarations.
17565         (declspecs_add_type): Update declaration.
17566
17567 2009-06-19  Ian Lance Taylor  <iant@google.com>
17568
17569         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
17570         variable with an anonymous type.
17571
17572 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17573
17574         * see.c: Remove for real.
17575
17576 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17577
17578         * optabs.h (enum optab_index): Add new OTI_significand.
17579         (significand_optab): Define corresponding macro.
17580         * optabs.c (init_optabs): Initialize significand_optab.
17581         * genopinit.c (optabs): Implement significand_optab using
17582         significand?f2 patterns.
17583         * builtins.c (expand_builtin_mathfn): Handle
17584         BUILT_IN_SIGNIFICAND{,F,L}.
17585         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
17586         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
17587
17588         * config/i386/i386.md (significandxf2, significand<mode>2): New
17589         expanders to implement significandf, significand and significandl
17590         built-ins as inline x87 intrinsics.
17591
17592 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
17593
17594         * config/avr/avr.c (avr_override_options): Remove setting value of
17595         PARAM_INLINE_CALL_COST.
17596
17597 2009-06-18  Richard Henderson  <rth@redhat.com>
17598
17599         PR 40488
17600         * tree-pass.h (TDF_ASMNAME): New.
17601         * tree-dump.c (dump_options): Add asmname.
17602         * doc/invoke.texi: Document it.
17603
17604         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
17605         (dump_decl_name): ...here.
17606         (dump_function_name): New flags arg; mind TDF_ASMNAME.
17607         (dump_generic_node): Update dump_function_name calls.
17608         (print_call_name): New flags arg; update all dump calls.
17609         * diagnostic.h (print_call_name): Update.
17610         * gimple-pretty-print.c (dump_gimple_call): Update.
17611
17612 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17613
17614         PR target/40470
17615         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
17616
17617 2009-06-18  Diego Novillo  <dnovillo@google.com>
17618
17619         * doc/plugins.texi: Document plugin_is_GPL_compatible.
17620         * plugin.c (str_license): Declare.
17621         (try_init_one_plugin): Assert that the symbol
17622         'plugin_is_GPL_compatible' exists.
17623
17624 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
17625
17626         * see.c: Remove.
17627         * Makefile.in (OBJS-common): Remove see.o.
17628         (see.o): Remove.
17629         * common.opt (fsee): Mark as preserved for backward compatibility.
17630         * opts.c (common_handle_option): Add OPT_fsee to the backward
17631         compatibility section.
17632         * passes.c (init_optimization_passes, pass_see): Remove pass.
17633         * timevar.def (TV_SEE): Remove.
17634         * tree-pass.h (pass_see): Remove declaration.
17635         * doc/invoke.texi (-fsee): Remove documentation.
17636
17637 2009-06-18  Martin Jambor  <mjambor@suse.cz>
17638
17639         * tree-sra.c: Include statistics.h
17640         (sra_stats): New variable.
17641         (sra_initialize): Clear sra_stats.
17642         (create_access_replacement): Increment sra_stats.replacements.
17643         (get_access_replacement): Do not return twice.
17644         (analyze_all_variable_accesses): Increment statistics counter by the
17645         number of scalarized aggregates.
17646         (generate_subtree_copies): Increment sra_stats.subtree_copies.
17647         (sra_modify_expr): Increment sra_stats.exprs.
17648         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
17649         (sra_modify_assign): Increment sra_stats.exprs,
17650         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
17651         (perform_intra_sra): Update statistics counters.
17652         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
17653
17654 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17655
17656         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
17657         (arm_scalar_mode_supported_p): New function.
17658
17659 2009-06-18  Paul Brook  <paul@codesourcery.com>
17660             Sandra Loosemore  <sandra@codesourcery.com>
17661
17662         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
17663         (__extendhfsf2, __truncsfhf2): Define.
17664         * config/arm/fp16.c: New file.
17665         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
17666         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
17667
17668 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17669
17670         * doc/extend.texi (Half-Precision): New section.
17671         * doc/invoke.texi (Option Summary): List -mfp16-format.
17672         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
17673         * config/arm/arm.opt (mfp16-format=): New.
17674         * config/arm/arm.c: Include intl.h.
17675         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
17676         (TARGET_INVALID_RETURN_TYPE): Redefine.
17677         (TARGET_PROMOTED_TYPE): Redefine.
17678         (TARGET_CONVERT_TO_TYPE): Redefine.
17679         (arm_fp16_format): Define.
17680         (all_fpus): Add entry for neon-fp16.
17681         (fp_model_for_fpu): Likewise.
17682         (struct fp16_format): Declare.
17683         (all_fp16_formats): Define.
17684         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
17685         functions.
17686         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
17687         and no ldrh.
17688         (arm_legitimate_index_p): Treat HFmode like HImode.
17689         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
17690         (coproc_secondary_reload_class): Special-case HFmode.
17691         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
17692         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
17693         (arm_init_fp16_builtins): New.
17694         (arm_init_builtins): Call it.
17695         (arm_invalid_parameter_type): New.
17696         (arm_invalid_return_type): New.
17697         (arm_promoted_type): New.
17698         (arm_convert_to_type).
17699         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
17700         format.
17701         (arm_emit_fp16_const): New function.
17702         (arm_mangle_type): Mangle __fp16 as "Dh".
17703         * config/arm/arm.h (TARGET_VFPD32): Make it know about
17704         FPUTYPE_NEON_FP16.
17705         (TARGET_NEON_FP16): New.
17706         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
17707         (enum fputype): Add FPUTYPE_NEON_FP16.
17708         (enum arm_fp16_format_type): Declare.
17709         (arm_fp16_format): Declare.
17710         (LARGEST_EXPONENT_IS_NORMAL): Define.
17711         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
17712         * config/arm/arm-modes.def (HFmode): Define.
17713         * config/arm/vfp.md (*movhf_vfp): New.
17714         (extendhfsf2): New.
17715         (truncsfhf2): New.
17716         * config/arm/arm.md (fpu): Add neon_fp16.
17717         (floatsihf2, floatdihf2): New.
17718         (fix_trunchfsi2, fix_trunchfdi2): New.
17719         (truncdfhf2): New.
17720         (extendhfdf2): New.
17721         (movhf): New.
17722         (*arm32_movhf): New.
17723         (*thumb1_movhf): New.
17724         (consttable_2): Add check for HFmode constants.
17725         (consttable_4): Handle HFmode constants.
17726
17727 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
17728
17729         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
17730
17731 2009-06-17  Olivier Hainque  <hainque@adacore.com>
17732
17733         * collect2.c (main): Use CONST_CAST2 to perform char ** to
17734         const char ** conversion in AIX specific section.
17735
17736 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
17737
17738         * config/i386/i386.c (ix86_special_builtin_type): Remove
17739         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
17740         (bdesc_special_args): Updated.
17741         (ix86_init_mmx_sse_builtins): Likewise.
17742         (ix86_expand_special_args_builtin): Likewise.
17743
17744 2009-06-17  Richard Henderson  <rth@redhat.com>
17745
17746         * tree-pretty-print.c (maybe_dump_asm_name): New.
17747         (dump_decl_name): Use it.
17748         (PRINT_FUNCTION_NAME): Merge into...
17749         (dump_function_name): ... here.  Use maybe_dump_asm_name.
17750
17751 2009-06-17  Cary Coutant  <ccoutant@google.com>
17752
17753         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
17754         Change caller.
17755         * debug.c (struct gcc_debug_hooks): Change placeholder for
17756         source_line hook.
17757         (debug_nothing_int_charstar_int): Replaced by...
17758         (debug_nothing_int_charstar_int_bool): ...this.
17759         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
17760         source_line prototype.
17761         (debug_nothing_int_charstar_int): Replaced by...
17762         (debug_nothing_int_charstar_int_bool): ...this.
17763         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
17764         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
17765         Output is_stmt operand when necessary.
17766         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
17767         (notice_source_line): Add is_stmt parameter.
17768         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
17769         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
17770         Change callers.
17771         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
17772         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
17773
17774 2009-06-17  Ian Lance Taylor  <iant@google.com>
17775
17776         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
17777         Change all uses.
17778         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
17779         call uses.
17780
17781 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
17782
17783         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
17784         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
17785         tree_strip_sign_nop_conversions and
17786         tree_ssa_strip_useless_type_conversions rather than stripping
17787         the operations here.
17788         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
17789         Declare them.
17790         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
17791         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
17792         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
17793         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
17794         functions.
17795
17796 2009-06-17  Michael Eager  <eager@eagercon.com>
17797
17798         * config/rs6000/constraints.md (register_constraint "d"): New.
17799         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
17800         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17801         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
17802         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
17803         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17804         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
17805         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
17806         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
17807         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
17808         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
17809         __fctiwz): Same.
17810         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
17811         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
17812         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
17813         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
17814         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
17815         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
17816         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
17817         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
17818         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
17819         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
17820         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
17821         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
17822         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
17823         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
17824
17825 2009-06-16  Ian Lance Taylor  <iant@google.com>
17826
17827         * profile.c (total_num_never_executed): Don't define.
17828         (compute_branch_probabilities): Don't count or print
17829         num_never_executed.
17830         (init_branch_prob): Don't set total_num_never_executed.
17831         (end_branch_prob): Don't print total_num_never_executed.
17832
17833 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
17834
17835         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
17836
17837 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
17838
17839         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
17840         (nabstd2_fpr): Same.
17841
17842 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
17843
17844         * expr.c (expand_assignment): Change complex type check.
17845
17846 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
17847
17848         * doc/plugins.texi (Building GCC plugins): Added new section.
17849
17850 2009-06-17  Ian Lance Taylor  <iant@google.com>
17851
17852         * c-pch.c (get_ident): Don't set size of templ array.
17853         (pch_init): Don't set size of partial_pch array.
17854
17855         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
17856         string constant to intialize an array whose size is the length of
17857         the string.
17858
17859 2009-06-17  Richard Guenther  <rguenther@suse.de>
17860
17861         PR tree-optimization/40389
17862         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
17863         to addressable types.
17864         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
17865
17866 2009-06-17  Richard Guenther  <rguenther@suse.de>
17867
17868         PR middle-end/40460
17869         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
17870         if there is no evolution of left in the loop bail out.
17871         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
17872         chrec_fold_multiply.
17873
17874 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
17875             Janis Johnson  <janis187@us.ibm.com>
17876
17877         PR target/39254
17878         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
17879         for the symbol ref of a constant that is the source of a move
17880         - nor for any other not-obvious-label-ref constants.
17881
17882 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
17883
17884         * plugin.c (position_pass): Skip newly inserted pass during list
17885         traversal to avoid repeated insertion.
17886
17887 2009-06-16  Ian Lance Taylor  <iant@google.com>
17888
17889         * vec.h (VEC_stack_alloc): Define different version if
17890         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
17891         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
17892         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
17893         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17894
17895 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
17896
17897         * config.gcc (extra_headers): Add ia32intrin.h for x86.
17898
17899         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
17900         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
17901         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
17902         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
17903         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
17904         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17905         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17906         (bdesc_special_args): Add __builtin_ia32_rdtsc and
17907         __builtin_ia32_rdtscp.
17908         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
17909         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
17910         and __builtin_ia32_rorhi.
17911         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
17912         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
17913         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
17914         (ix86_expand_args_builtin): Likewise.
17915         (ix86_expand_special_args_builtin): Likewise.
17916
17917         * config/i386/i386.md (UNSPECV_RDTSCP): New.
17918         (UNSPECV_RDTSC): Likewise.
17919         (UNSPECV_RDPMC): Likewise.
17920         (*bsr): Renamed to ...
17921         (bsr): This
17922         (*bsr_rex64): Renamed to ...
17923         (bsr_rex64): This.
17924         (rdpmc): New.
17925         (*rdpmc): Likewise.
17926         (*rdpmc_rex64): Likewise.
17927         (rdtsc): Likewise.
17928         (*rdtsc): Likewise.
17929         (*rdtsc_rex64): Likewise.
17930         (rdtscp): Likewise.
17931         (*rdtscp): Likewise.
17932         (*rdtscp_rex64): Likewise.
17933
17934         * config/i386/ia32intrin.h: New.
17935
17936         * config/i386/x86intrin.h: Include <ia32intrin.h>.
17937
17938 2009-06-16  Ian Lance Taylor  <iant@google.com>
17939
17940         * ira-build.c (copy_info_to_removed_store_destinations):
17941         Initialize parent_a.
17942
17943 2009-06-16  Ian Lance Taylor  <iant@google.com>
17944
17945         * c-decl.c (grokdeclarator): Change size_varies to bool.
17946
17947 2009-06-16  Ian Lance Taylor  <iant@google.com>
17948
17949         * sel-sched.c: Make forward declarations of move_op_hooks and
17950         fur_hooks explicitly extern.
17951
17952 2009-06-16  Ian Lance Taylor  <iant@google.com>
17953
17954         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
17955         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
17956
17957 2009-06-16  Ian Lance Taylor  <iant@google.com>
17958
17959         * resource.c (mark_referenced_resources): Change
17960         include_delayed_effects parameter to bool.  Change all callers.
17961         (mark_end_of_function_resources): Likewise.
17962         * reorg.c (insn_references_resource_p): Likewise.
17963         (insn_sets_resource_p): Likewise.
17964         * resource.h (mark_referenced_resources): Update declaration.
17965         (mark_end_of_function_resources): Update declaration.
17966
17967 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
17968
17969         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
17970
17971 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
17972
17973         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
17974         GCC can bootstrap on AIX with GNU Binutils 2.20.
17975
17976 2009-06-16  Ian Lance Taylor  <iant@google.com>
17977
17978         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
17979
17980 2009-06-16  Ian Lance Taylor  <iant@google.com>
17981
17982         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
17983         inline, not extern inline.
17984         (exact_log2): Likewise.
17985         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
17986         test CLZ_HWI.
17987         (exact_log2): Likewise, but don't test CTZ_HWI.
17988
17989 2009-06-16  Ian Lance Taylor  <iant@google.com>
17990
17991         * bitmap.c (bitmap_clear): Don't declare as inline.
17992         * gimple.c (gimplify_assign): Likewise.
17993         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17994         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
17995         (sched_scan_info): Remove duplicate definition.
17996
17997 2009-06-16  Ian Lance Taylor  <iant@google.com>
17998
17999         * c-common.c (skip_evaluation): Don't define.
18000         (c_inhibit_evaluation_warnings): Define global variable.
18001         (overflow_warning): Check c_inhibit_evaluation_warnings rather
18002         than skip_evaluation.
18003         (convert_and_check, warn_for_div_by_zero): Likewise.
18004         * c-common.h (skip_evaluation): Don't declare.
18005         (c_inhibit_evaluation_warnings): Declare.
18006         * c-parser.c (c_parser_typeof_specifier): Set
18007         c_inhibit_evaluation_warnings rather than skip_evaluation.
18008         (c_parser_conditional_expression): Likewise.
18009         (c_parser_binary_expression): Likewise.
18010         (c_parser_sizeof_expression): Likewise.
18011         (c_parser_alignof_expression): Likewise.
18012         * c-typeck.c (build_indirect_ref): Check
18013         c_inhibit_evaluation_warnings rather than skip_evaluation.
18014         (build_conditional_expr, build_binary_op): Likewise.
18015
18016 2009-06-16  Richard Guenther  <rguenther@suse.de>
18017
18018         * tree-ssa-alias.c (is_escape_site): Remove.
18019         * tree-ssa-alias.h (enum escape_type): Remove.
18020         (is_escape_site): Likewise.
18021         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
18022         via casts and asms without deferring to is_escape_site.
18023
18024 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
18025
18026         PR middle-end/40446
18027         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
18028         use gen_lowpart if op0 has complex mode.
18029
18030 2009-06-16  Richard Guenther  <rguenther@suse.de>
18031
18032         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
18033         variables add them to ESCAPED.
18034         (find_func_aliases): Do not make all indirectly stored values escaped.
18035
18036 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
18037
18038         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
18039         make_decl_one_only.
18040
18041 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18042
18043         PR tree-optimization/40432
18044         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
18045         check whether we need to force gimple register operand.
18046
18047 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18048
18049         PR tree-optimization/40413
18050         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
18051         build_ref_for_offset.
18052         (propagate_subacesses_accross_link): Fix a typo in a comment.
18053
18054 2009-06-16  Ira Rosen  <irar@il.ibm.com>
18055
18056         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
18057         with additional parameter.
18058         * tree-vectorizer.h (enum vect_def_type): Add new value
18059         vect_nested_cycle.
18060         (enum vect_relevant): Add comments.
18061         (vect_is_simple_reduction): Add new argument.
18062         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
18063         Detect nested cycles.
18064         (vect_is_simple_reduction): Update documentation, add an argument to
18065         distinguish inner-loop reduction from nested cycle, detect nested
18066         cycles, fix printings and indentation, don't swap operands in case
18067         of nested cycle.
18068         (get_initial_def_for_reduction): Handle subtraction.
18069         (vect_create_epilog_for_reduction): Add new argument to specify
18070         reduction variable.
18071         (vect_finalize_reduction): Handle subtraction, fix comments.
18072         (vectorizable_reduction): Handle nested cycles. In case of nested
18073         cycle keep track of the reduction variable position. Call
18074         vect_is_simple_reduction with additional parameter. Use original
18075         statement code in reduction epilogue for nested cycle. Call
18076         vect_create_epilog_for_reduction with additional parameter.
18077         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
18078         inner-loop vectorization.
18079         (vect_recog_widen_sum_pattern): Likewise.
18080         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
18081         and reductions.
18082         (vect_mark_stmts_to_be_vectorized): Likewise.
18083         (vect_get_vec_def_for_operand): Handle nested cycles.
18084
18085 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18086
18087         * doc/invoke.texi (Debugging Options): Fix option index entries
18088         for -fdump-statistics, -frandom-seed add entries for
18089         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
18090         (FRV Options): Fix entries for -mTLS, -mtls.
18091         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
18092         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
18093         (M68hc1x Options): Fix @itemx for -mnominmax.
18094         (MCore Options): Fix entry for -mno-lsim.
18095         (MMIX Options): Fix entry for -mabi=mmixware.
18096         (PDP-11 Options): Fix entry for -mbcopy-builtin.
18097
18098 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
18099
18100         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
18101         Mention the plugin mode of gengtype.
18102         * doc/gty.texi (Source Files Containing Type Information): Likewise.
18103         * gengtype.c: Updated copyright.
18104         (plugin_files, nb_plugin_files) Added new static variables.
18105         (measure_input_list) Care about plugin_files.
18106         (write_rtx_next): Added early return in plugin mode.
18107         (create_file): Updated copyright year in generated file. Added
18108         asserts.
18109         (oprintf): Added early return if NULL outf.
18110         (get_output_file_with_visibility): Care of plugin_files.
18111         (get_output_file_name): May return null.
18112         (write_local): Added early return.
18113         (put_mangled_filename): Ditto.
18114         (finish_root_table): Added check for base_files.
18115         (write_roots): Care about null when plugins.
18116         (main): Added plugin mode.
18117
18118 2009-06-15  Ian Lance Taylor  <iant@google.com>
18119
18120         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
18121         * gcov.c (read_count_file): Add braces around variables declared
18122         before label.
18123
18124         * c.opt (Wjump-misses-init): New warning.
18125         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
18126         -Wall and -Wc++-compat if not already set.
18127         (c_common_post_options): Clear warn_jump_misses_init if it was not
18128         set.
18129         * c-decl.c (struct c_binding): Change type field to a union with
18130         new label field.  Make it the first field in the struct.  Update
18131         references to type to use u.type instead.
18132         (struct c_spot_bindings): Define.
18133         (struct c_goto_bindings): Define.
18134         (c_goto_bindings_p): Define, along with VECs.
18135         (struct c_label_vars): Define.
18136         (struct c_scope): Add has_label_bindings field.
18137         (bind_label, set_spot_bindings): New static functions.
18138         (decl_jump_unsafe, update_spot_bindings): New static functions.
18139         (update_label_decls): New static function.
18140         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
18141         Update binding u.label field to shadowed field.
18142         (c_binding_start_stmt_expr): New function.
18143         (c_binding_end_stmt_expr): New function.
18144         (pushdecl): Don't call c_begin_vm_scope.
18145         (make_label): Add defining and p_label_vars parameters.  Change
18146         all callers.
18147         (lookup_label): Correct test for whether a label has not yet been
18148         defined.  Call bind_label rather than bind.
18149         (warn_about_goto): New static function.
18150         (lookup_label_for_goto): New function.
18151         (declare_label): Call bind_label rather than bind.
18152         (check_earlier_gotos): New static function.
18153         (define_label): Don't give errors about jumping into statement
18154         expressions or scopes of variably modified types.  Call
18155         set_spot_bindings and check_earlier_gotos.  Call bind_label
18156         instead of bind.  Don't set label_context_stack_se or
18157         label_context_stack_vm.
18158         (c_get_switch_bindings): New function.
18159         (c_release_switch_bindings): New function.
18160         (c_check_switch_jump_warnings): New function.
18161         (start_function): Don't set label_context_stack_se or
18162         label_context_stack_vm.
18163         (finish_function): Likewise.
18164         * c-typeck.c (label_context_stack_se): Don't define.
18165         (label_context_stack_vm): Don't define.
18166         (c_finish_goto_label): Call lookup_label_for_goto rather than
18167         lookup_label.  Don't give errors about jumping into a statement
18168         expression or the scope of a variably modified type.  Don't set
18169         label_context_stack_se or label_context_stack_vm.
18170         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
18171         fields.  Add bindings field.
18172         (c_start_case): Don't set deleted fields.  Set bindings field.
18173         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
18174         or blocked_vm.  Call c_check_switch_jump_warnings.
18175         (c_finish_case): Don't test blocked_stmt_expr field.  Call
18176         c_release_switch_bindings.
18177         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
18178         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18179         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
18180         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
18181         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18182         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
18183         (c_begin_vm_scope, c_end_vm_scope): Don't define.
18184         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
18185         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
18186         (C_DECL_UNJUMPABLE_VM): Don't define.
18187         (C_DECL_UNDEFINABLE_VM): Don't define.
18188         (struct c_label_list): Don't define.
18189         (struct c_label_context_se): Don't define.
18190         (struct c_label_context_vm): Don't define.
18191         (struct c_spot_bindings): Declare.
18192         (c_bindings_start_stmt_expr): Declare.
18193         (c_bindings_end_stmt_expr): Declare.
18194         (lookup_label_for_goto): Declare.
18195         (c_get_switch_bindings, c_release_switch_bindings): Declare.
18196         (c_check_switch_jump_warnings): Declare.
18197         (label_context_stack_se, label_context_stack_vm): Don't declare.
18198         (c_finish_goto_label): Update declaration.
18199         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
18200         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
18201         (Warning Options): Document -Wjump-misses-init.
18202
18203 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
18204
18205         * tree-object-size.c (addr_object_size): Fix a pasto in the last
18206         change.
18207
18208 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18209
18210         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
18211
18212 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18213
18214         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
18215
18216 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18217
18218         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
18219
18220 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18221
18222         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
18223         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18224         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
18225         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
18226         * dwarf2asm.c (dw2_force_const_mem): Update call to
18227         make_decl_one_only.
18228         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
18229         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
18230         * langhooks.c (lhd_comdat_group): Remove.
18231         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
18232         * tree.h (DECL_COMDAT_GROUP): New.
18233         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
18234         (tree_decl_with_vis): Add comdat_group. Remove one_only.
18235         (make_decl_one_only): Change signature.
18236         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
18237         make_decl_one_only.
18238         (make_decl_one_only): Change signature.
18239         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
18240
18241 2009-06-15  Richard Guenther  <rguenther@suse.de>
18242
18243         PR middle-end/40439
18244         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
18245
18246 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18247
18248         * tree-ssa-math-opts.c: Remove extra divide.
18249
18250 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18251
18252         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
18253
18254 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18255
18256         * passes.c: Add bswap pass.
18257         * tree-pass.h: Add pass_optimize_bswap declaration.
18258         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
18259         Include rtl.h, expr.h and optabs.h for optab_handler check.
18260         (struct symbolic_number, pass_optimize_bswap): New definition.
18261         (do_shift_rotate, verify_symbolic_number_p): New functions.
18262         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
18263         (gate_optimize_bswap): New function.
18264         * tree.c (widest_int_cst_value): New function.
18265         * tree.h (widest_int_cst_value): Prototype added.
18266
18267 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
18268
18269         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
18270         REG_EQUAL/REG_EQUIV notes.
18271
18272 2009-06-14  Richard Guenther  <rguenther@suse.de>
18273
18274         PR middle-end/40389
18275         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
18276         has its address taken if NRV was applied and it is addressable.
18277         * tree-ssa-structalias.c (get_constraint_for_address_of): New
18278         function split out from ...
18279         (get_constraint_for_1): ... here.
18280         (handle_rhs_call): Use it to mark the return slot escaped if
18281         it is addressable and NRV was applied.
18282
18283 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18284
18285         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
18286         Change first argument type to location_t.
18287         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
18288         Do not set input_location.
18289         Use loc instead of input_location throughout.
18290
18291 2009-06-13  Richard Guenther  <rguenther@suse.de>
18292
18293         PR tree-optimization/40421
18294         * tree-predcom.c (should_unroll_loop_p): Remove.
18295         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
18296
18297 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18298
18299         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18300         Add location argument.
18301
18302 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18303
18304         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
18305         build_decl.
18306         * config/s390/s390.c (s390_build_builtin_va_list): Same.
18307         (s390_gimplify_va_arg): Pass location to create_artificial_label.
18308         * config/spu/spu-protos.h: Add location to
18309         spu_resolve_overloaded_builtin.
18310         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
18311         spu_build_builtin_va_list.
18312         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
18313         argument.  Pass location to build_function_call_vec.
18314         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
18315         build_decl.
18316         (emit_fpu_switch): Same.
18317         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
18318         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
18319         to build_decl and create_artificial_label.
18320         (xtensa_gimplify_va_arg_expr): Same.
18321         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
18322         (xstormy16_gimplify_va_arg_expr): Same.
18323         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
18324         * config/arm/arm.c (arm_build_builtin_va_list): Same.
18325         * config/mips/mips.c (mips_build_builtin_va_list): Same.
18326         (mips16_build_function_stub): Same.
18327         (mips16_build_call_stub): Same.
18328
18329 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
18330
18331         PR target/40327
18332         * arm/constraints.md (Pa, Pb): New constraints.
18333         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
18334         split pattern to deal with them.
18335
18336 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
18337
18338         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
18339         fix index entry for -Xpreprocessor.
18340
18341 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18342
18343         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18344         Add location argument to build_decl call.
18345         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
18346         (rs6000_init_builtins): Same.
18347         (spe_init_builtins): Same.
18348         (rs6000_gimplify_va_arg): Add location argument to
18349         create_artificial_label call.
18350
18351 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
18352
18353         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
18354         * combine-stack-adj.c (pass_stack_adjustments): Use it.
18355         * Makefile.in: Fix GGC dependency for gcse.o.
18356
18357 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18358
18359         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
18360         * gimple-pretty-print.c (dump_gimple_stmt): Same.
18361         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
18362         created.
18363         * c-parser.c (c_parser_binary_expression): Use current column while
18364         building binary operations.
18365         * common.opt (fshow-column): Enable by default.
18366         * tree-vrp.c (check_array_ref): Use warning_at.
18367         (check_array_bounds): Use location from call back if expr has no
18368         location.
18369         * tree.h: Add location argument to maybe_fold_*.
18370         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
18371         (maybe_fold_offset_to_array_ref): Add location argument and use it.
18372         (maybe_fold_offset_to_component_ref): Same.
18373         (maybe_fold_offset_to_reference): Same.
18374         (maybe_fold_offset_to_address): Same.
18375         (maybe_fold_stmt_indirect): Same.
18376         (maybe_fold_stmt_addition): Same.
18377         (fold_stmt_r): Pass location to maybe_fold_*.
18378         (fold_gimple_assign): Same.
18379         * c-tree.h: Add location argument to finish_decl,
18380         default_function_array_conversion, store_init_value.
18381         * c-decl.c (define_label): Use error_at.
18382         (c_make_fname_decl): Pass location to finish_decl.
18383         (finish_decl): New location argument.
18384         (build_compound_literal): Pass location to store_init_value.
18385         (grokdeclarator): Pass location to finish_decl.
18386         (grokfield): Same.
18387         * c-typeck.c (array_to_pointer_conversion): New location argument.
18388         (function_to_pointer_conversion): Same.
18389         (default_function_array_conversion): Same.
18390         (parser_build_unary_op): Pass location to overflow_warning.
18391         (parser_build_binary_op): Same.  Use warning_at.
18392         (build_unary_op): Pass location to array_to_pointer_conversion.
18393         (build_c_cast): Pass location to digest_init.
18394         (build_modify_expr): New location argument.
18395         (convert_for_assignment): Same.
18396         (store_init_value): Same.
18397         (digest_init): Same.
18398         (output_init_element): Pass location to digest_init and
18399         array_to_pointer_conversion.
18400         (c_finish_return): Pass location to convert_for_assignment.
18401         * gimplify.c (gimplify_conversion): Pass location to
18402         maybe_fold_offset_to_address.
18403         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
18404         to maybe_fold_stmt_addition.
18405         * c-omp.c (c_finish_omp_atomic): Pass new location to
18406         build_modify_expr.
18407         (c_finish_omp_for): Same.
18408         * c-common.c (overflow_warning): New argument.
18409         * c-common.h: New argument to build_modify_expr, overflow_warning.
18410         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
18411         finish_decl.
18412         (c_parser_initializer): Pass location to
18413         default_function_array_conversion.
18414         (c_parser_initelt): Same.
18415         (c_parser_initval): Same.
18416         (c_parser_asm_operands): Same.
18417         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
18418         (c_parser_conditional_expression): Same.
18419         (c_parser_binary_expression): Add location info to stack.  Use it.
18420         (c_parser_unary_expression): Pass location to
18421         default_function_array_conversion, parser_build_unary_op,
18422         build_indirect_ref, c_parser_postfix_expression_after_primary.
18423         (c_parser_postfix_expression_after_primary): New location argument.
18424         Use it.
18425         (c_parser_expression_conv): Pass location to
18426         default_function_array_conversion.
18427         (c_parser_expr_list): Same.
18428         (c_parser_omp_atomic): Same.
18429         (c_parser_omp_for_loop): Same.
18430         * c-tree.h (struct c_declarator): Add comment to id_loc.
18431         (build_array_declarator): New argument.
18432         * c-decl.c (build_array_declarator): Add location argument.
18433         (grokdeclarator): Set id_loc for cdk_array.
18434         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
18435         build_array_declarator.
18436         * tree.c (build_omp_clause): Add location argument.
18437         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
18438         (OMP_CLAUSE_LOCATION): New macro.
18439         (struct tree_omp_clause): Add location field.
18440         (build_omp_clause): Add argument.
18441         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
18442         build_omp_clause.
18443         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
18444         (cp_parser_omp_clause_collapse): Same.
18445         (cp_parser_omp_clause_default): Same.
18446         (cp_parser_omp_clause_if): Same.
18447         (cp_parser_omp_clause_nowait): Same.
18448         (cp_parser_omp_clause_num_threads): Same.
18449         (cp_parser_omp_clause_ordered): Same.
18450         (cp_parser_omp_clause_schedule): Same.
18451         (cp_parser_omp_clause_untied): Same.
18452         (cp_parser_omp_for_loop): Same.
18453         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18454         * c-tree.h (c_start_case): Add location argument.
18455         (c_process_expr_stmt): Same.
18456         (c_finish_goto_*): Same.
18457         * tree-parloops.c (initialize_reductions): Pass location to
18458         build_omp_clause.
18459         (create_parallel_loop): Same.
18460         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
18461         (gfc_trans_omp_reduction_list): Same.
18462         (gfc_trans_omp_clauses): Same.
18463         (gfc_trans_omp_do): Same.
18464         * c-typeck.c (c_finish_goto_label): Same.
18465         (c_finish_goto_ptr): New location argument.
18466         (c_start_case): Same.
18467         (emit_side_effect_warnings): Same.
18468         (c_process_expr_stmt): Same.
18469         (c_finish_stmt_expr): Same.
18470         (c_finish_omp_clauses): Use error_at instead of error.
18471         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
18472         build_omp_clause.
18473         * c-omp.c (c_split_parallel_clauses): New location argument.
18474         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
18475         to build_omp_clause.
18476         (convert_local_reference_stmt): Same.
18477         (convert_gimple_call): Same.
18478         * c-common.h (c_split_parallel_clauses): New argument.
18479         * c-parser.c (c_parser_statement_after_labels): Pass location to
18480         c_finish_goto_label.
18481         (c_parser_switch_statement): Pass location to c_start_case.
18482         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
18483         and c_process_expr_stmt.
18484         (c_parser_omp_variable_list): Add location argument.
18485         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
18486         (c_parser_omp_clause_default): Same.
18487         (c_parser_omp_clause_if): Same.
18488         (c_parser_omp_clause_num_threads): Same.
18489         (-c_parser_omp_clause_ordered): Same.
18490         (c_parser_omp_clause_reduction): Pass location to
18491         c_parser_omp_variable_list.
18492         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
18493         (c_parser_omp_clause_untied): Same.
18494         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
18495         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18496
18497         * c-tree.h (check_for_loop_decls, undeclared_variable,
18498         build_component_ref, build_array_ref, build_external_ref,
18499         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
18500         build_conditional_expr, build_compound_expr, c_cast_expr,
18501         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
18502         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
18503         argument.
18504         * c-semantics.c (build_stmt): Same.
18505         (build_case_label): Same.
18506         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
18507         (undeclared_variable): New argument.
18508         (make_label): Same.
18509         (lookup_label): Pass location on down.
18510         (define_label): Same.
18511         (finish_decl): Same.
18512         (build_compound_literal): Same.
18513         (finish_struct): Same.
18514         (finish_function): Do not set location here.
18515         (check_for_loop_decls): New argument.
18516         * tree.c (save_expr): Set location.
18517         (build_empty_stmt): New argument.
18518         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
18519         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
18520         * builtins.c (gimplify_va_arg_expr): Use locations.
18521         (expand_builtin_sync_operation): Same.
18522         * c-typeck.c (build_component_ref): New argument.
18523         (build_array_ref): Same.
18524         (build_external_ref): Same.
18525         (c_expr_sizeof_expr): Same.
18526         (c_expr_sizeof_type): Same.
18527         (parser_build_unary_op): Same.
18528         (build_conditional_expr): Same.
18529         (build_compound_expr): Pass location on down.
18530         (build_compound_expr): New argument.
18531         (build_c_cast): Same.
18532         (c_cast_expr): Same.
18533         (build_asm_expr): Same.
18534         (c_finish_return): Same.
18535         (c_process_expr_stmt): Pass location on down.
18536         (c_finish_stmt_expr): New argument.
18537         (push_clenaup): Same.
18538         (c_finish_omp_parallel): Same.
18539         (c_finish_omp_task): Same.
18540         * gimplify.c (gimplify_call_expr): Pass location on down.
18541         * c-omp.c (c_finish_omp_master): New argument.
18542         (c_finish_omp_critical): Same.
18543         (c_finish_omp_ordered): Same.
18544         (c_finish_omp_barrier): Same.
18545         (-c_finish_omp_taskwait): Same.
18546         (c_finish_omp_atomic): Same.
18547         (c_finish_omp_flush): Same.
18548         * tree-inline.c (copy_tree_body_r): Pass location on down.
18549         (inline_forbidden_p): Remove use of input_location.
18550         * c-gimplify.c (c_build_bind_expr): New argument.
18551         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
18552         (c_sizeof_or_alignof_type): New argument.
18553         (c_alignof_expr): Same.
18554         (build_va_arg): Same.
18555         (c_add_case_label): Same.
18556         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
18557         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
18558         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
18559         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
18560         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
18561         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
18562         New argument.
18563         * stub-objc.c (objc_build_selector_expr): Same.
18564         (objc_build_throw_stmt): Same.
18565         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
18566         (c_parser_initelt): Same.
18567         (c_parser_compound_statement): Same.
18568         (c_parser_compound_statement_nostart): Same.
18569         (c_parser_label): Same.
18570         (c_parser_statement_after_labels): Same.
18571         (c_parser_if_body): Same.
18572         (c_parser_else_body): Same.
18573         (c_parser_if_statement): Same.
18574         (c_parser_switch_statement): Same.
18575         (c_parser_while_statement): Same.
18576         (c_parser_do_statement): Same.
18577         (c_parser_for_statement): Same.
18578         (c_parser_asm_statement): Same.
18579         (c_parser_conditional_expression): Same.
18580         (c_parser_binary_expression): Same.
18581         (c_parser_cast_expression): Same.
18582         (c_parser_unary_expression): Same.
18583         (c_parser_sizeof_expression): Same.
18584         (c_parser_alignof_expression): Same.
18585         (c_parser_postfix_expression): Same.
18586         (c_parser_expression): Same.
18587         (c_parser_objc_receiver): Same.
18588         (c_parser_omp_variable_list): Same.
18589         (c_parser_omp_structured_block): Same.
18590         (c_parser_omp_atomic): New argument.
18591         (c_parser_omp_barrier): Same.
18592         (c_parser_omp_critical): Same.
18593         (c_parser_omp_flush): Pass location on down.
18594         (c_parser_omp_for_loop): New argument.
18595         (c_parser_omp_for): Same.
18596         (c_parser_omp_master): Same.
18597         (c_parser_omp_ordered): Same.
18598         (c_parser_omp_sections_scope): Same.
18599         (c_parser_omp_sections): Same.
18600         (c_parser_omp_parallel): Same.
18601         (c_parser_omp_single): Same.
18602         (c_parser_omp_task): Same.
18603         (c_parser_omp_taskwait): Pass location on down.
18604         (c_parser_omp_construct): Same.
18605         (c_parser_omp_threadprivate): Same.
18606         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
18607         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
18608         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
18609         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
18610         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
18611         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
18612         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
18613         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
18614         config/i386/i386.c, stmt.c:
18615         Add location argument to the following function definitions and/or
18616         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
18617         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
18618         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
18619         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
18620         do_case, c_finish_bc_stmt, build_compound_literal,
18621         build_function_call.
18622         * c-decl.c (build_compound_literal): Add location argument.
18623         Make all diagnostic calls use location.
18624         (start_struct): Same.
18625         (finish_struct): Same.
18626         (start_enum): Same.
18627         (build_enumerator): Same.
18628         (start_function): Same.
18629         (grokdeclarator): Make all diagnostic calls use location.
18630         (store_parm_decls_oldstyle): Same.
18631         * c-typeck.c (build_function_call): Add location argument.
18632         Make all diagnostic calls use location.
18633         (do_case): Same.
18634         (c_finish_bc_stmt): Same.
18635         * tree-nested.c (get_trampoline_type): Add argument.
18636         Pass location to build_decl.
18637         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
18638         * rtl.h (RTL_LOCATION): New.
18639         * c-common.c (c_add_case_label): Add location argument.
18640         Make all diagnostic calls use location.
18641         * c-common.h: Add location argument to make_fname_decl, do_case,
18642         c_add_case_label, build_function_call, resolve_overloaded_builtin.
18643         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
18644         Set it appropriately for every case.  Pass enum_loc to start_enum
18645         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
18646         parser_xref_tag.
18647         (c_parser_struct_or_union_specifier): Save location.  Use it for
18648         start_struct, finish_struct, and parser_xref_tag.
18649
18650 2009-06-12  Ian Lance Taylor  <iant@google.com>
18651
18652         * fold-const.c (fold_unary): Rename local variable and to and_expr.
18653
18654         * c-opts.c (c_common_handle_option): For -Wc++-compat set
18655         cpp_opts->warn_cxx_operator_names.
18656
18657 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18658
18659         PR tree-opt/38865
18660         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
18661         is returns NULL and OP is a VCE, look through the VCE.
18662
18663 2009-06-12  Ian Lance Taylor  <iant@google.com>
18664
18665         PR bootstrap/40430
18666         * collect2.c (main): Use CONST_CAST2 in code inside #if
18667         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
18668
18669 2009-06-12  Joey Ye  <joey.ye@intel.com>
18670
18671         PR middle-end/39146
18672         * cfgexpand.c (get_decl_align_unit): Update
18673         max_used_stack_slot_alignment with align instead of
18674         stack_alignment_needed.
18675
18676         * function.c (assign_stack_local_1): Update
18677         max_used_stack_slot_alignment with alignment_in_bits instead
18678         of stack_alignment_needed.
18679         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
18680         here.
18681
18682 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
18683
18684         * dwarf2out.c (last_var_location_insn): New variable.
18685         (dwarf2out_end_epilogue): Clear last_var_location_insn.
18686         (dwarf2out_var_location): Don't record anything after last real
18687         insn.  Only change labels if there were any real instructions
18688         in between last note and this one, or if changed sections.
18689
18690 2009-06-11  Richard Henderson  <rth@redhat.com>
18691
18692         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
18693         note when storing the frame pointer in a register.
18694         (FRP): Don't redefine to nothing for epilogue.
18695         (alpha_expand_epilogue): Mark register and sp restores.
18696         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
18697
18698         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
18699         when gen_lowpart is needed.
18700
18701 2009-06-11  Richard Henderson  <rth@redhat.com>
18702
18703         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
18704
18705         * dwarf2out.c (need_data_align_sf_opcode): New.
18706         (div_data_align): Move earlier.
18707         (def_cfa_1, reg_save): Use it.
18708
18709 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
18710
18711         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
18712         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
18713         (ix86_handle_option): Handle OPT_mcrc32.
18714         (ix86_target_string): Add -mcrc32.
18715         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
18716
18717         * config/i386/i386.h (TARGET_CRC32): New.
18718
18719         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
18720         (sse4_2_crc32di): Likewise.
18721
18722         * config/i386/i386.opt (mcrc32): New.
18723
18724         * doc/invoke.texi: Document -mcrc32.
18725
18726 2009-06-11  Richard Henderson  <rth@redhat.com>
18727
18728         * common.opt (gdwarf-): Accept a version number.
18729         * doc/invoke.texi (gdwarf-): Update docs.
18730         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
18731         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
18732         version level, and record it.
18733
18734         * dwarf2.h (DW_CIE_VERSION): Remove.
18735         * dwarf2out.c (DWARF_VERSION): Remove.
18736         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
18737         (output_call_frame_info): Use CIE version 3 for dwarf3,
18738         or if the return register column is out of range for version 1.
18739         (dwarf_stack_op_name): Add all dwarf3 values.
18740         (DEBUG_PUBTYPES_SECTION): New.
18741         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
18742         encoding change for dwarf3.
18743         (output_die) [dw_val_class_die_ref]: Likewise.
18744         (output_compilation_unit_header): Emit correct version for dwarf3.
18745         (output_line_info): Likewise.
18746         (output_pubnames): Update for DWARF_VERSION removal.
18747         (output_aranges): Likewise.
18748         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
18749         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
18750         (dwarf2out_finish): Likewise.
18751
18752 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18753
18754         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
18755         in r148403.
18756
18757 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18758
18759         PR c/39252
18760         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
18761         * builtins.c (expand_builtin_unreachable): New function.
18762         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
18763         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
18764         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
18765         successors.
18766         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
18767         searching for missing barriers.
18768
18769 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18770
18771         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
18772         when -fprofile-generate* was passed.
18773         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
18774
18775 2009-06-11  Anthony Green  <green@moxielogic.com>
18776
18777         * config/moxie/moxie.md: Define length attribute for all instructions.
18778         (rCC): Define.
18779         (*b<cond:code>): Support limited branch ranges for new PC-relative
18780         branch instructions.
18781         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
18782
18783 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
18784
18785         * config/i386/i386.c (min_insn_size): Use get_attr_length
18786         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
18787         For __asm return 0.
18788
18789         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
18790         instead of emit_insn_before.
18791
18792 2009-06-10  Ian Lance Taylor  <iant@google.com>
18793
18794         PR bootstrap/40408
18795         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
18796         GIMPLE_SWITCH.
18797
18798 2009-06-10  Revital Eres  <eres@il.ibm.com>
18799
18800         * passes.c (init_optimization_passes): Reschedule
18801         predictive-commoning pass before complete unroll pass.
18802
18803 2009-06-10  Martin Jambor  <mjambor@suse.cz>
18804
18805         * cgraph.c (cgraph_node_can_be_local_p): New function.
18806         (cgraph_make_node_local): New function.
18807         * cgraph.h (cgraph_node_can_be_local_p): Declare.
18808         (cgraph_make_node_local): Declare.
18809
18810 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
18811
18812         * tree.h (tree_base): Add packed_flag and user_align fields.
18813         Decrease size of spare field.
18814         (TYPE_USER_ALIGN): Use user_align from tree_base.
18815         (DECL_USER_ALIGN): Likewise.
18816         (TYPE_PACKED): Use packed_flag from tree_base.
18817         (DECL_PACKED): Likewise.
18818         (tree_type): Delete packed_flag and user_align fields.  Widen
18819         precision field.  Widen mode field and shuffle fields to align
18820         mode on an 8-bit boundary.
18821         (tree_decl_common): Delete decl_flag_1 and user_align fields.
18822         Renumber decl_flag_* fields.  Fix comments.  Widen
18823         decl_common_unused field.
18824         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
18825         (DECL_EXTERNAL): Likewise.
18826         (DECL_BIT_FIELD): Likewise.
18827         (DECL_NONADDRESSABLE_P): Likewise.
18828         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
18829         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
18830
18831 2009-06-10  Ian Lance Taylor  <iant@google.com>
18832
18833         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
18834         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
18835         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
18836         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
18837         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
18838         DEF_VEC_ALLOC_FUNC_P.
18839         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
18840         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
18841         DEF_VEC_ALLOC_FUNC_O.
18842         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
18843         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
18844         DEF_VEC_ALLOC_FUNC_I.
18845         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
18846         (vec_stack_p_reserve_exact_1): Declare.
18847         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
18848         (vec_stack_free): Declare.
18849         (VEC_stack_alloc): Define.
18850         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
18851         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
18852         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
18853         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
18854         for void_p.
18855         (stack_vecs): New static variable.
18856         (vec_stack_p_reserve_exact_1): New function.
18857         (vec_stack_o_reserve_1): New static function.
18858         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
18859         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
18860         (vec_stack_free): New function.
18861         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
18862         (VEC_df_ref_stack_alloc): Define.
18863         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
18864         DEF_VEC_ALLOC_P_STACK.
18865         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
18866         (struct df_collection_rec): Change _vec fields to VEC.  Remove
18867         _use fields.
18868         (df_free_collection_rec): Adjust for new fields.
18869         (df_insn_rescan): Use new df_collection_rec fields.
18870         (df_notes_rescan, df_canonize_collection_rec): Likewise.
18871         (df_ref_create_structure, df_ref_record): Likewise.
18872         (df_get_conditional_uses, df_get_call_refs): Likewise.
18873         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
18874         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
18875         (df_record_exit_block_uses, df_bb_verify): Likewise.
18876         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
18877         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
18878         Remove count parameter.  Change return type to void.  Change all
18879         callers.
18880         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
18881         Remove count parameter.  Change return type to void.  Change all
18882         callers.
18883         (df_install_refs): Change old_vec parameter to VEC.  Remove count
18884         parameter.  Change all callers.
18885         (df_install_mws): Change old_vec parameter to VEC.  Remove count
18886         parameter.  Change all callers.
18887         (df_refs_verify): Change new_rec parameter to VEC.  Change call
18888         callers.
18889         (df_mws_verify): Likewise.
18890
18891 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
18892
18893         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
18894
18895 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
18896
18897         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
18898
18899 2009-06-10  Anthony Green  <green@moxielogic.com>
18900
18901         * config/moxie/crti.asm: New file.
18902         * config/moxie/crtn.asm: New file.
18903         * config/moxie/moxie.c: New file.
18904         * config/moxie/moxie.h: New file.
18905         * config/moxie/sfp-machine.h: New file.
18906         * config/moxie/moxie-protos.h: New file.
18907         * config/moxie/t-moxie: Created.
18908         * config/moxie/t-moxie-softfp: Created.
18909         * config/moxie/moxie.md: Created.
18910         * config/moxie/constraints.md: Created.
18911         * config.gcc: Add moxie support.
18912         * doc/md.texi (Machine Constraints): Add moxie constraints.
18913         * doc/contrib.texi (Contributors): Mention moxie port.
18914         * doc/install.texi (Specific): Mention the moxie port.
18915
18916 2009-06-09  Ian Lance Taylor  <iant@google.com>
18917
18918         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
18919         compiling with C++.
18920         * optabs.c (optab_table): Only use designated initializers if
18921         HAVE_DESIGNATED_INITIALIZERS is defined.
18922         (convert_optab_table): Likewise.
18923         (init_optabs): Always call init_insn_codes if
18924         HAVE_DESIGNATED_INITIALIZERS is not defined.
18925
18926 2009-06-09  Ian Lance Taylor  <iant@google.com>
18927
18928         * targhooks.c (default_builtin_vectorized_function): Change fn
18929         parameter to unsigned int.
18930         (default_builtin_vectorized_conversion): Change code parameter to
18931         unsigned int.
18932         (default_builtin_reciprocal): Change fn parameter to unsigned int.
18933         * targhooks.h: Update declarations.
18934         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
18935         parameter to unsigned int.
18936
18937         * c-typeck.c (comptypes_check_enum_int): New static function.
18938         (comptypes_internal): Add enum_and_int_p parameter.  Change all
18939         callers.
18940         (comp_target_types): Add location parameter.  Change all callers.
18941         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
18942         Change all callers.
18943         (function_types_compatible_p, type_lists_compatible_p): Likewise.
18944         (build_conditional_expr): Add colon_loc parameter.  Change all
18945         callers.
18946         (convert_for_assignment): Add location parameter.  Change all callers.
18947         * c-parser.c (c_parser_conditional_expression): Pass location of
18948         colon to build_conditional_expr.
18949         * c-tree.h (build_conditional_expr): Update declaration.
18950
18951 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
18952
18953         * graphite.c: Revert previous patch.
18954
18955 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
18956
18957         PR bootstrap/40103
18958         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
18959
18960 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
18961
18962         * tree-ssa-loop-prefetch.c
18963         (loop_prefetch_arrays): Fixed a portability problem in printf format
18964         string.
18965
18966 2009-06-09  Martin Jambor  <mjambor@suse.cz>
18967
18968         PR tree-optimization/40351
18969         * tree-sra.c (propagate_subacesses_accross_link): Check that a
18970         refrence to a potential artifical subaccess can be constructed.
18971
18972 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18973
18974         * config/sh/sh-protos.h (sh_optimization_options): Declare.
18975         (sh_override_options): Likewise.
18976         * config/sh/sh.c: Include params.h.
18977         (sh_optimization_options): New.
18978         (sh_override_options): Likewise.
18979         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
18980         (OVERRIDE_OPTIONS): Use sh_override_options.
18981
18982 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
18983
18984         * dwarf2out.c (emit_cfa_remember): New variable.
18985         (add_fde_cfi): If emit_cfa_remember, recurse to add
18986         DW_CFA_remember_state first.
18987         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
18988         instead just set emit_cfa_remember.
18989
18990 2009-06-08  Jan Hubicka  <jh@suse.cz>
18991
18992         PR debug/40126
18993         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
18994
18995 2009-06-08  Jan Hubicka  <jh@suse.cz>
18996
18997         PR middle-end/39834
18998         * cgraphunit.c (save_inline_function_body): Do not copy transform
18999         hooks for saved inline bodies.
19000         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
19001         for given function.
19002
19003 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
19004
19005         * jump.c (returnjump_p): Handle delayed branches.  Add missing
19006         function comment.
19007
19008 2009-06-08  Jan Hubicka  <jh@suse.cz>
19009
19010         PR middle-end/40102
19011         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
19012         original node might've been modified.
19013         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
19014
19015 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
19016
19017         * tree-object-size.c (addr_object_size): Add OSI argument.
19018         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
19019         (compute_builtin_object_size, expr_object_size): Adjust callers.
19020         (plus_stmt_object_size): Call addr_object_size instead of
19021         compute_builtin_object_size.
19022
19023 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
19024             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
19025
19026         * tree-ssa-loop-prefetch.c
19027         (gather_memory_references): Introduced a counter for the number of
19028         memory references.
19029         (anything_to_prefetch_p): Introduced a counter for the number of
19030         prefetches.
19031         (is_loop_prefetching_profitable): New function with a cost model
19032         for prefetching.
19033         (loop_prefetch_arrays): Use the new cost model to determine if
19034         prefetching is profitable.
19035         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
19036         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19037         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
19038         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19039         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
19040         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19041
19042 2009-06-08  Michael Matz  <matz@suse.de>
19043
19044         PR debug/40012
19045         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
19046         partitions use the same.
19047         (expand_one_var): Deal with DECL_RTL sometimes begin set also
19048         for basevars of SSA_NAMEs.
19049         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
19050         to not expand them twice.
19051         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
19052         multiple places.
19053
19054 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
19055
19056         * common.opt (fcompare-debug=, fcompare-debug-second): New.
19057         (fdump-final-insns=, gtoggle): New.
19058         * doc/invoke.texi: Document them.
19059         * final.c (rest_of_clean_state): Dump final insn stream.
19060         * gcc.c (invoke_as): Hook in -fcompare-debug.
19061         (static_spec_functions): Add compare-debug-dump-opt,
19062         compare-debug-self-opt and compare-debug-auxbase-opt.
19063         (compare_debug, compare_debug_second, compare_debug_opt): New.
19064         (switches_debug_check, n_switches_debug_check): New.
19065         (debug_auxbase_opt, debug_check_temp_file): New.
19066         (process_command): Handle -fno-compare-debug, -fcompare-debug and
19067         -fcompare-debug=*.
19068         (do_self_spec): Handle arguments after switches.
19069         (do_spec_1): Add .gk extension to temp file basenames for compare.
19070         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
19071         (cc1_options): Use it instead of normal auxbase computation for
19072         the second compare-debug compilation.
19073         (compare_files): New.
19074         (main): Set up and implement compare debug mode.
19075         (compare_debug_dump_opt_spec_function): New.
19076         (compare_debug_self_opt_spec_function): New.
19077         (compare_debug_auxbase_opt_spec_function): New.
19078         * toplev.c (process_options): Handle flag_gtoggle,
19079         flag_dump_final_insns.
19080         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
19081         during -fcompare-debug-second compilation.
19082
19083 2009-06-07  Ian Lance Taylor  <iant@google.com>
19084
19085         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
19086         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
19087
19088         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
19089         with no default node.  Change warning with %H to warning_at.
19090         Don't clear warn_switch around case checking.
19091         * doc/invoke.texi (Warning Options): Clarify distinction between
19092         -Wswitch and -Wswitch-enum.
19093
19094 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19095
19096         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
19097
19098 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19099
19100         * gbl-ctors.h: Add header guard.
19101
19102 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19103
19104         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
19105         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
19106         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
19107         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
19108         prototypes for removed functions.
19109         (expressions_equal_p): Move to ...
19110         * tree-ssa-sccvn.h: ... here and ...
19111         * matrix-reorg.c: ... adjust includes.
19112
19113 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19114
19115         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
19116
19117 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19118
19119         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
19120         (finish_function): Remove erroneous whitespace.
19121
19122 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19123
19124         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
19125         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
19126
19127 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19128
19129         * errors.c (internal_error): Commentary typo fix.
19130         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
19131         * tree-ssa-pre.c: Ditto.
19132
19133 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19134
19135         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
19136         them is supposed to hold actual statements.
19137
19138 2009-06-06  Ian Lance Taylor  <iant@google.com>
19139
19140         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
19141         empty statements can now have attributes.
19142
19143 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
19144
19145         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
19146         * config/mips/mips.md: Ditto.
19147
19148 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19149
19150         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
19151         _RELOCATABLE.
19152         (__eabi_uconvert): Likewise.
19153
19154 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19155
19156         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
19157         CFI_* definitions with IN_GCC.
19158
19159 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
19160
19161         * xcoffout.h (xcoffout_source_line): Update prototype.
19162
19163 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19164
19165         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
19166         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
19167
19168 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19169
19170         PR middle-end/40340
19171         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
19172         inlined_function_outer_scope_p blocks for artificial inlines
19173         even at -g0/-g1.
19174         * tree.c (tree_nonartificial_location): Rewrite using
19175         block_nonartificial_location.
19176
19177 2009-06-05  Revital Eres  <eres@il.ibm.com>
19178             Leehod Baruch  <leehod@il.ibm.com>
19179
19180         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
19181         (expand_expr_real_1): Remove comment.
19182         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19183         Vectorize misaligned access when the target supports it.
19184         (vect_supportable_dr_alignment): Check for unaligned access support.
19185         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
19186         and remove asset.
19187
19188 2009-06-05  Julian Brown  <julian@codesourcery.com>
19189
19190         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
19191         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
19192
19193 2009-06-05  Richard Guenther  <rguenther@suse.de>
19194
19195         PR bootstrap/40350
19196         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
19197         as possibly unused.
19198
19199 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19200
19201         * config/s390/s390.c (global_not_special_regno_p): New static inline.
19202         (save_gprs): Don't tell unwinder when a global register is saved.
19203         (s390_emit_epilogue): Emit needed epilogue unwind info.
19204
19205 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19206
19207         * dwarf2out.c (deferred_asm_name): New.
19208         (add_name_and_src_coords_attributes): Defer creation of
19209         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
19210         computed yet.
19211         (move_linkage_attr): New.
19212         (dwarf2out_finish): Revisit deferrals and emit attributes at the
19213         right place.
19214
19215 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19216
19217         * tree-nested.c (finalize_nesting_tree_1): Declare the
19218         frame_decl in the binding tree.
19219
19220 2009-06-04  Cary Coutant  <ccoutant@google.com>
19221
19222         * basic-block.h (struct basic_block_def): Add discriminator field.
19223         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
19224         callers.
19225         * debug.c (do_nothing_debug_hooks): Add additional entry.
19226         (debug_nothing_int_charstar_int): New function.
19227         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
19228         (debug_nothing_int_charstar_int): New declaration.
19229         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
19230         discriminator value in .loc directive.
19231         * final.c (last_discriminator): New variable.
19232         (discriminator): New variable.
19233         (final_start_function): Initialize above variables, pass current
19234         discriminator to debug hook.
19235         (notice_source_line): Check for discriminator change.
19236         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
19237         * sdbout.c (sdbout_source_line): New parameter.
19238         * tree-cfg.c (struct locus_discrim_map): New structure type.
19239         (discriminator_per_locus): New hash table.
19240         (build_gimple_cfg): Allocate and free discriminator hash table.
19241         (make_edges): Call assign_discriminator.
19242         (locus_map_hash): New function.
19243         (locus_map_eq): New function.
19244         (next_discriminator_for_locus): New function.
19245         (same_line_p): New function.
19246         (assign_discriminator): New function.
19247         (make_cond_expr_edges): Call assign_discriminator.
19248         (make_gimple_switch_edges): Likewise.
19249         (first_non_label_stmt): New function.
19250         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
19251         all callers.
19252         * xcoffout.c (xcoffout_source_line): Add new parameter.
19253
19254         * configure.ac (gcc_cv_as_discriminator): New configury check for
19255         gas support for discriminator.
19256         * configure: Regenerate.
19257         * config.in: Regenerate.
19258
19259 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19260
19261         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
19262         val after checking for integers.
19263
19264 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
19265
19266         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
19267         X64_REGPARM_MAX.
19268         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
19269         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
19270         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
19271         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
19272         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
19273         X64_SSE_REGPARM_MAX.
19274         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
19275         X64_SSE_REGPARM_MAX.
19276
19277 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19278
19279         * gcc.c (report_times_to_file): New.
19280         (execute): Implement it.
19281         (process_command): Support -time=.
19282         * doc/invoke.texi: Document it.
19283
19284 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19285
19286         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
19287         that have value exprs.
19288
19289 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19290
19291         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
19292         declarations for constants until...
19293         (dw2_output_indirect_constant_1): ... this point.
19294
19295 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
19296
19297         PR target/10242
19298         * arm.md (arm_addsi3): Don't try to split an add with an
19299         eliminable register until after reload has completed.
19300
19301 2009-06-03  Ian Lance Taylor  <iant@google.com>
19302
19303         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
19304         * genattrtab.c (write_length_unit_log): Likewise.
19305         * genchecksum.c (dosum): Likewise.
19306         * gengtype.c (write_rtx_next): Likewise.
19307         (finish_root_table, write_roots): Likewise.
19308         * gimple.c (gimple_ops_offset_): Likewise.
19309         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
19310         * config/arc/arc.c (arc_attribute_table): Likewise.
19311         * config/arm/arm.c (arm_attribute_table): Likewise.
19312         * config/avr/avr.c (avr_attribute_table): Likewise.
19313         * config/crx/crx.c (crx_attribute_table): Likewise.
19314         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
19315         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
19316         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
19317         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
19318         * config/sh/sh.c (sh_attribute_table): Likewise.
19319         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
19320         * config/spu/spu.c (spu_attribute_table): Likewise.
19321         * config/v850/v850.c (v850_attribute_table): Likewise.
19322
19323         * config/alpha/alpha.c (vms_attribute_table): Make static.
19324         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
19325         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
19326         * config/mips/mips.c (mips_attribute_table): Likewise.
19327
19328         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
19329         $(SYSTEM_H).
19330         (cc1-checksum.o): Likewise.
19331
19332 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
19333
19334         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
19335
19336 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
19337
19338         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
19339         insn if it is changing sp.  Use gen_add3_insn instead of
19340         conditionally gen_addsi3 and gen_adddi3.
19341         (offset_below_red_zone_p): New static inline function.
19342         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
19343         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
19344         * config/rs6000/ppc-asm.h: Include auto-host.h.
19345         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
19346         CFI_RESTORE): Define.
19347         * config/rs6000/crtresxgpr.asm: Add unwind info.
19348         * config/rs6000/crtresxfpr.asm: Likewise.
19349         * config/rs6000/crtresgpr.asm: Likewise.
19350         * config/rs6000/crtresfpr.asm: Likewise.
19351         * config/rs6000/crtsavgpr.asm: Likewise.
19352         * config/rs6000/crtsavfpr.asm: Likewise.
19353
19354         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
19355         argument of DWARF2_FRAME_REG_OUT macros.
19356
19357 2009-06-03  Julian Brown  <julian@codesourcery.com>
19358
19359         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
19360         words or less (including TImode) in core registers.
19361
19362 2009-06-03  Richard Guenther  <rguenther@suse.de>
19363
19364         PR middle-end/40328
19365         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
19366
19367 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
19368
19369         * statistics.c (statistics_counter_event): Do not record event
19370         in pass dump if its number == -1.
19371         (curr_statistics_hash): Add assert that we never get passes
19372         with static number == -1.
19373
19374 2009-06-03  Richard Guenther  <rguenther@suse.de>
19375             Andrey Belevantsev  <abel@ispras.ru>
19376
19377         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
19378         non-BLKmode arrays addressable.
19379
19380 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
19381
19382         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
19383         * config/m68k/m68k.h: ... here.
19384
19385 2009-06-03  Martin Jambor  <mjambor@suse.cz>
19386
19387         PR tree-optimization/40323
19388         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
19389         assignment.
19390
19391 2009-06-03  Richard Guenther  <rguenther@suse.de>
19392
19393         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19394         consistently.
19395
19396 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
19397
19398         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
19399         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
19400         JUMP_TABLE_DATA_P where applicable.
19401         * config/sh/sh.c: Ditto.
19402         * config/sh/sh.h: Ditto.
19403         * config/sh/sh.md: Ditto.
19404         * config/sh/symbian.c: Ditto.
19405
19406 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
19407
19408         * config/i386/driver-i386.c (describe_cache): Optimize
19409         concatenation of strings.  Use snprintf instead of sprintf.
19410         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
19411         target when not compiling with GCC.
19412
19413 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
19414
19415         * config/sh/sh.c: Revert last change.
19416         (sh_expand_epilogue): Emit a blockage insn before the frame
19417         pointer adjustment unconditionally.
19418
19419 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19420
19421         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
19422         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
19423         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
19424         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
19425         to COLLECT_GCC_OPTIONS.
19426
19427 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19428
19429         * collect2.c (target_system_root): New variable.
19430         (main): Handle --sysroot=.
19431         (ignore_library): Strip the sysroot from the library path.
19432
19433 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19434
19435         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
19436         (collect2.o): Depend on collect2-aix.h.
19437         (collect2-aix.o): New rule.
19438         * collect2-aix.h: New file.
19439         * collect2-aix.c: Likewise.
19440         * collect2.c: Include collect2-aix.h.  Don't undefine
19441         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
19442         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
19443         Use TARGET_AIX_VERSION instead of _AIX51.
19444         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
19445         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
19446         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
19447         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
19448         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
19449
19450 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19451
19452         * collect2.c (ignore_library): Avoid premature post-increment
19453         and null deference.
19454
19455 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19456
19457         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
19458         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
19459         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
19460         CROSS_DIRECTORY_STRUCTURE too.
19461         (LINK_LIBG_SPEC): Likewise.
19462         (LIB_SPEC): Add %R to sysroot paths.
19463         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
19464         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
19465         * config/rs6000/aix51.h: As for aix43.h.
19466         * config/rs6000/aix52.h: Likewise.
19467         * config/rs6000/aix53.h: Likewise.
19468         * config/rs6000/aix61.h: Likewise.
19469         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
19470         to the beginning of sysroot paths.
19471
19472 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19473
19474         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
19475         INSN_LISTs that are out of the REG_NOTE range.
19476
19477 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19478
19479         * loop-unroll.c (struct iv_to_split): Add pointer to next.
19480         (struct var_to_expand): Likewise.
19481         (struct opt_info): Add head and tail for linked lists of the above.
19482         (analyze_insn_to_expand_var): Initialize next.
19483         (analyze_iv_to_split_insn): Likewise.
19484         (analyze_insns_in_loop): Create linked lists.
19485         (allocate_basic_variable): Simplify for use without hash table.
19486         (insert_var_expansion_initialization): Likewise, make it type-safer.
19487         (combine_var_copies_in_loop_exit): Likewise.
19488         (apply_opt_in_copies): Walk lists rather than hash tables.
19489         (release_var_copies): Simplified and inlined by hand into...
19490         (free_opt_info): ... this function.
19491
19492 2009-06-02  Richard Guenther  <rguenther@suse.de>
19493
19494         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19495         for field decls.
19496
19497 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19498
19499         * cfgexpand.c (gimple_expand_cfg): Discard the source location
19500         only for builtins that are not overridden.
19501
19502 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19503
19504         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
19505         label string.
19506
19507 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19508
19509         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
19510
19511 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19512
19513         * combine.c (move_deaths): Compare LUIDs within the same BB only.
19514
19515 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19516
19517         * common.opt (fdump-unnumbered-links): New.
19518         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
19519         * print-rtl.c (flag_dump_unnumbered_links): New.
19520         (print_rtx): Test it.
19521
19522 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
19523
19524         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
19525         push/pop multiple to 8-byte alignment.
19526
19527 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
19528
19529         * config/i386/i386.c (queued_cfa_restores): New static variable.
19530         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
19531         functions.
19532         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
19533         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
19534         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
19535         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
19536         note unconditionally.
19537         (ix86_emit_restore_regs_using_mov): Likewise.
19538         (ix86_emit_restore_sse_regs_using_mov): Likewise.
19539         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
19540         it through to ix86_emit_restore_reg_using_pop.
19541         (ix86_emit_leave): Add RED_OFFSET argument.  Call
19542         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
19543         instead of adding REG_CFA_OFFSET note unconditionally.
19544         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
19545         the above functions.  Call ix86_add_queued_cfa_restore_notes when
19546         needed.
19547
19548         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
19549         force output of the label even for dwarf2out_do_cfi_asm.
19550         (add_fde_cfi): If -g2 and above and cfi might change CFA,
19551         force creation of CFI label and chain DW_CFA_set_loc jumping to it
19552         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
19553         caller.
19554         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
19555         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
19556         dwarf2out_cfi_label callers.
19557         * tree.h (dwarf2out_cfi_label): Adjust prototype.
19558         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
19559         Adjust dwarf2out_cfi_label callers.
19560         * config/vax/vax.c (vax_output_function_prologue): Likewise.
19561
19562         * config/i386/i386.h (struct machine_cfa_state,
19563         struct machine_function): Guard with ifndef USED_FOR_TARGET
19564         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
19565
19566         PR other/40024
19567         * emutls.c (__emutls_get_address): Change arr->size to mean number
19568         of allocated arr->data entries instead of # of slots + 1.
19569
19570         PR middle-end/40316
19571         * recog.c (peep2_reinit_state): New function.
19572         (peephole2_init_state): Use it at the end of a basic block and also
19573         when seeing a RTX_FRAME_RELATED_P insn.
19574
19575 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
19576
19577         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
19578         fixuns_truncrfdi2): New.
19579         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
19580         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
19581         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
19582         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
19583         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
19584         *recip_approx): Remove.
19585         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
19586         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
19587         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
19588         move to div.md.
19589         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
19590         setf_exp_rf): New.
19591
19592 2009-06-01  Ian Lance Taylor  <iant@google.com>
19593
19594         * attribs.c (register_attribute): Use CONST_CAST.
19595         * collect2.c (main): Use CONST_CAST2.
19596         (scan_prog_file): Likewise.
19597         * gcc.c (process_command, main): Likewise.
19598         * toplev.c (toplev_main): Likewise.
19599
19600         * c-typeck.c (handle_warn_cast_qual): New static function,
19601         partially broken out of build_c_cast.
19602         (build_c_cast): Call handle_warn_cast_qual.
19603         * doc/invoke.texi (Warning Options): Document new effect of
19604         -Wcast-qual.
19605
19606 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
19607
19608         * diagnostic.c (diagnostic_build_prefix): Always print columns.
19609         (diagnostic_report_current_module): Print columns.
19610         * common.opt (flag_show_column): Enable by default.
19611
19612 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
19613
19614         * alias.c (find_base_term): Check for NULL term before returning.
19615
19616 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19617
19618         Revert due to PR40320:
19619         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19620         * calls.c (emit_library_call_value_1): Don't force_operand for move
19621         and push insns.
19622
19623 2009-06-01  Olivier Hainque  <hainque@adacore.com>
19624             Eric Botcazou  <ebotcazou@adacore.com>
19625
19626         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
19627         to be processed as a bitfield for constructor output purposes.
19628         * output.h (initializer_constant_valid_for_bitfield_p): Declare
19629         new function.
19630         * varasm.c (oc_local_state): New type, output_constructor
19631         local state to support communication with helpers.
19632         (oc_outer_state): New type, output_constructor outer state of
19633         relevance in recursive calls.
19634         (output_constructor_array_range): New output_constructor helper,
19635         extracted code for an array range element.
19636         (output_constructor_regular_field): New output_constructor helper,
19637         extracted code for an element that is not a bitfield.
19638         (output_constructor_bitfield): New output_constructor helper,
19639         extracted code for a bitfield element.  Accept an OUTER state
19640         argument for recursive processing.  Recurse on record or array
19641         CONSTRUCTOR values, possibly past noop conversions.
19642         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
19643         VALUE is a valid constant-valued expression for use in a static
19644         bit-field initializer.
19645         (output_constructor): Rework to use helpers.  Accept and honor an
19646         OUTER state argument for recursive calls.  Return total size.  Be
19647         prepared for nested constructors initializing bitfields.
19648         (output_constant): Feed OUTER in calls to output_constructor.
19649
19650 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19651
19652         * calls.c (emit_library_call_value_1): Don't force_operand for move
19653         and push insns.
19654
19655 2009-06-01  Nick Clifton  <nickc@redhat.com>
19656
19657         * doc/invoke.texi (IA-64 Options): Fix typo.
19658
19659 2009-06-01  Ira Rosen  <irar@il.ibm.com>
19660
19661         PR tree-optimization/39129
19662         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
19663         printed message.
19664         (vect_do_peeling_for_loop_bound): Use
19665         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19666         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19667         (vect_loop_versioning): Likewise.
19668         (vect_create_cond_for_alias_checks): Fix indentation.
19669         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
19670         macros.
19671         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
19672         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
19673         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
19674         "control flow in loop".
19675         (vect_estimate_min_profitable_iters): Use
19676         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19677         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19678         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19679         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
19680         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
19681         statement belongs to a group of strided accesses with the exact code
19682         check.
19683         (vectorizable_load): Likewise.
19684         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
19685         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19686
19687 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
19688
19689         * config/freebsd-stdint.h: New file.
19690         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
19691         Add freebsd-stdint.h to tm_file.
19692
19693 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
19694
19695         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
19696         (thumb2_extendhidi2): Likewise.
19697
19698 2009-05-31  Ian Lance Taylor  <iant@google.com>
19699
19700         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
19701
19702 2009-05-31  Ian Lance Taylor  <iant@google.com>
19703
19704         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
19705         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
19706         (ipa-reference.o): Depend upon gt-ipa-reference.h.
19707
19708 2009-05-31  Jason Merrill  <jason@redhat.com>
19709
19710         * tree-pretty-print.c (print_call_name): Take the callee, not the
19711         call itself.  Make non-static.  Use dump_function_name for functions.
19712         (dump_generic_node): Adjust.
19713         * diagnostic.h: Declare print_call_name.
19714         * gimple-pretty-print.c (dump_gimple_call): Use it.
19715
19716 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19717
19718         * config/sh/sh.md (ashldi3_std): New define_expand.
19719         (ashldi3): Use it.
19720
19721 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19722
19723         PR target/40313
19724         * config/sh/sh.c: Include debug.h.
19725         (sh_expand_epilogue): Emit a blockage insn before the frame
19726         pointer adjustment also when dwarf2out_do_frame returns true.
19727
19728 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
19729
19730         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
19731         (thumb2_extendqidi2): New pattern.
19732
19733 2009-05-31  Ira Rosen  <irar@il.ibm.com>
19734
19735         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19736         mark phis for renaming.
19737         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
19738         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
19739         Call mark_sym_for_renaming.
19740         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
19741         * tree-vect-loop.c (vect_transform_loop): Remove
19742         vect_memsyms_to_rename initialization and a call to
19743         mark_set_for_renaming.
19744
19745 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
19746
19747         PR middle-end/40304
19748         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
19749         frame related even if !set_cfa && style < 0.
19750
19751 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
19752
19753         * config/i386/mingw-tls.c: New file.
19754         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
19755         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
19756         defining _WIN32 but not __CYGWIN__.
19757
19758 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19759
19760         * configure.ac: Add MPC support.
19761
19762         * config.in, configure: Regenerate.
19763
19764 2009-05-29  Richard Henderson  <rth@redhat.com>
19765
19766         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
19767         NOTE_INSN_BASIC_BLOCK.
19768         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
19769         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
19770         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
19771         to be deleted.
19772         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
19773         add in_use field.
19774         (add_cfi): Disable check redefining cfa away from drap.
19775         (lookup_cfa_1): Add remember argument; handle remember/restore.
19776         (lookup_cfa): Pass remember argument.
19777         (cfa_remember): New.
19778         (compute_barrier_args_size_1): Remove sibcall check.
19779         (dwarf2out_frame_debug_def_cfa): New.
19780         (dwarf2out_frame_debug_adjust_cfa): New.
19781         (dwarf2out_frame_debug_cfa_offset): New.
19782         (dwarf2out_frame_debug_cfa_register): New.
19783         (dwarf2out_frame_debug_cfa_restore): New.
19784         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
19785         (dwarf2out_begin_epilogue): New.
19786         (dwarf2out_frame_debug_restore_state): New.
19787         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
19788         DW_CFA_restore_state.
19789         (output_cfi_directive): Likewise.
19790         (convert_cfa_to_fb_loc_list): Likewise.
19791         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
19792         * dwarf2out.h: Update.
19793         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
19794         (copy_insn_1): Early out for null.
19795         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
19796         and dwarf2out_frame_debug_restore_state.
19797         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
19798         (prologue_insn_hash, epilogue_insn_hash): New.
19799         (free_after_compilation): Adjust freeing accordingly.
19800         (record_insns): Create hash table if needed; push insns into
19801         hash instead of array.
19802         (maybe_copy_epilogue_insn): New.
19803         (contains): Search hash table instead of array.
19804         (sibcall_epilogue_contains): Remove.
19805         (thread_prologue_and_epilogue_insns): Split eh_return insns
19806         and mark them as epilogues.
19807         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
19808         scanning in terms of basic blocks.
19809         * insn-notes.def (CFA_RESTORE_STATE): New.
19810         * jump.c (returnjump_p_1): Accept EH_RETURN.
19811         (eh_returnjump_p_1, eh_returnjump_p): New.
19812         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
19813         CFA_REGISTER, CFA_RESTORE): New.
19814         * rtl.def (EH_RETURN): New.
19815         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
19816
19817         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
19818         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
19819
19820         * config/i386/i386.c (gen_push): Update cfa state.
19821         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
19822         add a CFA_ADJUST_CFA note.
19823         (ix86_dwarf_handle_frame_unspec): Remove.
19824         (ix86_expand_prologue): Update cfa state.
19825         (ix86_emit_restore_reg_using_pop): New.
19826         (ix86_emit_restore_regs_using_pop): New.
19827         (ix86_emit_leave): New.
19828         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
19829         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
19830         * config/i386/i386.h (struct machine_cfa_state): New.
19831         (ix86_cfa_state): New.
19832         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
19833         (eh_return_internal): Merge from eh_return_<mode>,
19834         use eh_return rtx, split w/ epilogue.
19835
19836 2009-05-29  Ian Lance Taylor  <iant@google.com>
19837
19838         * builtins.c (validate_gimple_arglist): Don't use va_arg with
19839         enum type.
19840         * calls.c (emit_library_call_value_1): Likewise.
19841
19842         * c-typeck.c (c_build_va_arg): New function.
19843         * c-tree.h (c_build_va_arg): Declare.
19844         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
19845         instead of build_va_arg.
19846
19847 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19848
19849         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
19850         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
19851         (ptr_difference_cost): Use affine combinations to compute it.
19852         (difference_cost): Likewise.
19853         (get_computation_cost_at): Compute more accurate cost for addresses
19854         if the ratio is a multiplier allowed in addresses.
19855         For non-addresses, consider that an additional offset or symbol is
19856         added only once.
19857
19858 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
19859
19860         * config/i386/i386.c (ix86_decompose_address): Avoid useless
19861         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
19862
19863         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
19864         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
19865         (prefix_rex): For UNIT_MMX don't imply the prefix by default
19866         if MODE_DI.
19867         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
19868         to 1 for TYPE_SSE{IADD1,CVT1}.
19869         (prefix_vex_imm8): Removed.
19870         (length_vex): Only pass 1 as second argument to
19871         ix86_attr_length_vex_default if prefix_extra is 0.
19872         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
19873         (length): For prefix vex computation use length_immediate
19874         attribute instead of prefix_vex_imm8.
19875         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
19876         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
19877         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
19878         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
19879         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
19880         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
19881         a space in between the operands.
19882         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
19883         if one operand is 0xff and the other one si, di, bp or sp.
19884         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
19885         other one si, di, bp or sp.
19886         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
19887         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
19888         type and mode attributes.
19889         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
19890         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
19891         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
19892         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
19893         prefix_data16 attribute iff MODE_DF.
19894         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
19895         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
19896         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
19897         constm128_operand in length_immediate computation.
19898         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
19899         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
19900         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
19901         length_immediate attribute to 1.
19902         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
19903         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
19904         for certain alternatives.
19905         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
19906         prefix_data16 attribute if MODE_V1DF.
19907         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
19908         length_immediate to 1.
19909         (set_got_rex64, set_rip_rex64): Remove length attribute, set
19910         length_address to 4, set mode attribute to MODE_DI.
19911         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
19912         (fxam<mode>2_i387): Set length attribute to 4.
19913         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
19914         *prefetch_3dnow_rex): Override length_address attribute.
19915         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
19916         attributes.
19917         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
19918         (constm128_operand): Removed.
19919         * config/i386/i386.c (memory_address_length): For
19920         disp && !index && !base in 64-bit mode account for SIB byte if
19921         print_operand_address can't optimize disp32 into disp32(%rip)
19922         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
19923         for fs: or gs: segment.
19924         (ix86_attr_length_immediate_default): When checking if shortform
19925         is possible, truncate immediate to the length of the non-shortened
19926         immediate.
19927         (ix86_attr_length_address_default): Ignore MEM_P operands
19928         with X constraint.
19929         (ix86_attr_length_vex_default): Only check for DImode on
19930         GENERAL_REG_P operands.
19931         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
19932         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
19933         (sse_cvttps2pi): Clear prefix_rep attribute.
19934         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
19935         attribute.
19936         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
19937         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
19938         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
19939         iff operand 2 is const_int_operand.
19940         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
19941         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
19942         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
19943         instead of vex.
19944         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
19945         prefix_data16.
19946         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
19947         prefix_data16 attribute for movlpd and movhpd instructions.
19948         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
19949         length_immediate for shufpd instruction.
19950         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
19951         (avx_cmpp<avxmodesuffixf2c><mode>3,
19952         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
19953         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
19954         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
19955         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
19956         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
19957         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
19958         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
19959         prefix_data16 attribute for the first alternative to 1.
19960         (*avx_loadlps): Override length_immediate for the first alternative.
19961         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
19962         attributes for second alternative.
19963         (*vec_concatv2sf_sse4_1): Override length_immediate and
19964         prefix_data16 attributes for second alternative.
19965         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
19966         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
19967         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
19968         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
19969         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
19970         prefix_data16 and length_immediate to 1.
19971         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
19972         to 1.
19973         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
19974         prefix_extra attribute for variants that don't have 0f prefix alone.
19975         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
19976         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
19977         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
19978         *sse4_1_pextrd): Set length_immediate to 1.
19979         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
19980         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
19981         to 1.
19982         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
19983         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
19984         length_immediate to 1 for second alternative.
19985         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
19986         prefix_extra and length_immediate attributes for the first
19987         alternative.
19988         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
19989         first alternative.
19990         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
19991         to 1 for the first and third alternative.
19992         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
19993         alternative.
19994         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
19995         attribute.
19996         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
19997         attribute to 0.
19998         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
19999         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
20000         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
20001         *avx_psign<mode>3): Set prefix_extra attribute to 1.
20002         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
20003         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
20004         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
20005         ssse3_psign<mode>3): Override prefix_rex attribute.
20006         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
20007         (ssse3_palignrti): Override length_immediate to 1.
20008         (ssse3_palignrdi): Override length_immediate to 1, override
20009         prefix_rex attribute.
20010         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
20011         (sse4a_extrqi): Override length_immediate to 2.
20012         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
20013         (sse4a_insertq): Override prefix_data16 to 0.
20014         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
20015         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
20016         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
20017         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
20018         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
20019         and length_immediate to 1.
20020         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
20021         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
20022         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
20023         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
20024         and length_immediate to 1.
20025         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
20026         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
20027         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
20028         avx_ptest256): Override prefix_extra to 1.
20029         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
20030         Override prefix_data16 and length_immediate to 1.
20031         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
20032         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
20033         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
20034         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
20035         prefix_data16 to 0 and prefix_extra to 2.
20036         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
20037         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
20038         attribute.
20039         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
20040         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
20041         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
20042         and prefix_extra to 2.
20043         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
20044         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
20045         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
20046         avx_vpermilvar<mode>3,
20047         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
20048         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
20049         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
20050         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
20051         Override prefix_extra to 1.
20052         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
20053         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
20054         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
20055         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
20056         prefix_extra and length_immediate to 1.
20057         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
20058         modrm to 0.
20059         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
20060         to 1 for the first alternative.
20061         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
20062         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
20063         cases.
20064         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
20065         *movv2sf_internal_avx, *movv2sf_internal): Override
20066         prefix_rep attribute for certain alternatives.
20067         (*mov<mode>_internal): Override prefix_rep or prefix_data16
20068         attributes for certain alternatives.
20069         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
20070         attributes for certain alternatives.
20071         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
20072         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
20073         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
20074         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
20075         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
20076         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
20077         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
20078         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
20079         length_immediate to 1 if operand 2 is const_int_operand.
20080         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
20081         *vec_extractv2si_1): Set length_immediate attribute to 1.
20082         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
20083         using old 3DNOW insn rather than SSE/3DNOW_A.
20084         (mmx_emms, mmx_femms): Clear modrm attribute.
20085
20086 2009-05-29  Martin Jambor  <mjambor@suse.cz>
20087
20088         * tree-sra.c:  New implementation of SRA.
20089
20090         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
20091         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
20092         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
20093         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
20094         (SRA_MAX_STRUCTURE_COUNT): Removed.
20095         (SRA_FIELD_STRUCTURE_RATIO): Removed.
20096         * doc/invoke.texi (sra-max-structure-size): Removed.
20097         (sra-field-structure-ratio): Removed.
20098
20099 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20100
20101         PR middle-end/40291
20102         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
20103         before expansion.
20104
20105 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
20106
20107         PR rtl-optimization/40101
20108         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
20109         seqno.  Adjust comment.
20110         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
20111         inserting bookkeeping before a jump, the jump is not scheduled.
20112         When no positive seqno found, provide a value.  Add comment.
20113
20114 2009-05-29  Richard Guenther  <rguenther@suse.de>
20115
20116         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
20117         short-cutting on the first component.
20118
20119 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20120
20121         PR middle-end/39958
20122         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
20123         for trees other than decls/types.
20124
20125 2009-05-29  Richard Guenther  <rguenther@suse.de>
20126
20127         * tree-ssa-operands.c (get_expr_operands): Do not handle
20128         INDIRECT_REFs in the handled-component case.  Remove
20129         unused get_ref_base_and_extent case.
20130         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
20131         tree_low_cst and host_integerp where possible.
20132         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
20133         codes for equivalence.
20134         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
20135
20136 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
20137
20138         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
20139         to tmake_file for i[34567]86-*-cygwin*.
20140
20141 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20142
20143         PR target/40017
20144         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
20145         (altivec_categorize_keyword, init_vector_keywords,
20146         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
20147         similar to bool.
20148
20149 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
20150
20151         * tree.c (handle_dll_attribute): Check if node is
20152         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
20153
20154 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
20155
20156         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
20157         component.
20158         (thumb2_zero_extendqidi2): Likewise.
20159
20160 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20161
20162         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
20163         instead of gen_movrt.
20164         * config/sh/sh.md (movrt): Remove.
20165
20166 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
20167
20168         * doc/invoke.texi (IA-64 Options):
20169         Add -msdata, -mfused-madd, -mno-inline-float-divide,
20170         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
20171         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
20172         -msched-prefer-non-control-spec-insns,
20173         -msched-stop-bits-after-every-cycle,
20174         -msched-count-spec-in-critical-path,
20175         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
20176         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
20177         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
20178         and -msched-spec-verbose.
20179
20180 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
20181
20182         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
20183         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
20184         error if used.
20185         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
20186
20187 2009-05-28  Richard Guenther  <rguenther@suse.de>
20188
20189         * tree-ssa-alias.c (ao_ref_init): New function.
20190         (ao_ref_base): Likewise.
20191         (ao_ref_base_alias_set): Likewise.
20192         (ao_ref_alias_set): Likewise.
20193         (refs_may_alias_p_1): Change signature.
20194         (refs_may_alias_p): Adjust.
20195         (refs_anti_dependent_p): Likewise.
20196         (refs_output_dependent_p): Likewise.
20197         (call_may_clobber_ref_p_1): Change signature.
20198         (call_may_clobber_ref_p): Adjust.
20199         (stmt_may_clobber_ref_p_1): New function split out from ...
20200         (stmt_may_clobber_ref_p): ... here.
20201         (maybe_skip_until): Adjust signature.
20202         (get_continuation_for_phi): Likewise.
20203         (walk_non_aliased_vuses): Likewise.
20204         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
20205         (ao_ref_init): Declare.
20206         (ao_ref_base): Likewise.
20207         (ao_ref_alias_set): Likewise.
20208         (stmt_may_clobber_ref_p_1): Likewise.
20209         (walk_non_aliased_vuses): Adjust.
20210         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
20211         (get_ref_from_reference_ops): remove.
20212         (vn_reference_lookup_2): Adjust signature.
20213         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
20214         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
20215         (vn_reference_lookup): Adjust.
20216         (vn_reference_insert): Likewise.
20217         (vn_reference_insert_pieces): Adjust signature.
20218         (visit_reference_op_call): Adjust.
20219         * tree-ssa-pre.c (get_expr_type): Simplify.
20220         (phi_translate_1): Adjust.
20221         (compute_avail): Likewise.
20222         (translate_vuse_through_block): Do not re-build trees.
20223         (value_dies_in_block_x): Likewise.
20224         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
20225         fields.
20226         (vn_reference_lookup_pieces): Adjust declaration.
20227         (vn_reference_insert_pieces): Likewise.
20228
20229 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
20230
20231         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
20232         with checking disabled.
20233
20234 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
20235
20236         PR target/37216
20237
20238         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
20239         macro definition for support of three-operand format aligned
20240         .comm directive in assembler on cygwin/pe/mingw target OS.
20241         * configure:  Regenerate.
20242         * config.h:  Regenerate.
20243
20244         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
20245         aligned form of .comm directive if -mpe-aligned-commons is in effect.
20246         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
20247
20248         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
20249         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
20250
20251 2009-05-28  Ira Rosen  <irar@il.ibm.com>
20252
20253         PR tree-optimization/40254
20254         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
20255         in analysis of basic blocks.
20256
20257 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
20258
20259         PR middle-end/33699
20260         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
20261         * target-def.h (TARGET_CONST_ANCHOR): New macro.
20262         (TARGET_INITIALIZER): Use it.
20263         * cse.c (CHEAPER): Move it up to the other macros.
20264         (insert): Rename this ...
20265         (insert_with_costs): ... to this.  Add cost parameters.  Update
20266         function comment.
20267         (insert): New function.  Call insert_with_costs.
20268         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
20269         find_reg_offset_for_const, try_const_anchors): New functions.
20270         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
20271         when using a const-anchor.  Call insert_const_anchors.
20272         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
20273         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
20274
20275 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20276
20277         * tree-inline.c (remap_decls): Enable nonlocalized variables
20278         when not optimizing.
20279
20280 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20281
20282         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
20283         Simplify other tests involving optimize.
20284
20285 2009-05-27  Tom Tromey  <tromey@redhat.com>
20286
20287         * unwind-dw2.c (_Unwind_DebugHook): New function.
20288         (uw_install_context): Call _Unwind_DebugHook.
20289
20290 2009-05-27  Tom Tromey  <tromey@redhat.com>
20291
20292         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
20293
20294 2009-05-27  Ian Lance Taylor  <iant@google.com>
20295
20296         * Makefile.in (LINKER, LINKER_FLAGS): Define.
20297         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
20298         (ALL_LINKERFLAGS): Define.
20299         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
20300         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20301         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
20302         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20303         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
20304         $(LINKER_FOR_BUILD).
20305         (build/gcov-iov$(build_exeext)): Likewise.
20306
20307 2009-05-27  Julian Brown  <julian@codesourcery.com>
20308
20309         * gcse.c (target.h): Include.
20310         (can_assign_to_reg_without_clobbers_p): Check that the target allows
20311         copy of argument to a pseudo register.
20312
20313 2009-05-27  Diego Novillo  <dnovillo@google.com>
20314
20315         * tree-ssa-live.c (dump_scope_block): Document arguments.
20316         (dump_scope_blocks): Document.
20317         (debug_scope_blocks): New.
20318         * tree-flow.h (debug_scope_blocks): Declare.
20319
20320 2009-05-21  Denis Chertykov  <denisc@overta.ru>
20321
20322         * doc/contrib.texi (Contributors): Add myself to the list.
20323
20324 2009-05-27  Olivier Hainque  <hainque@adacore.com>
20325
20326         * expr.c (target_align): New function.  Alignment the TARGET of an
20327         assignment may be assume to have.
20328         (highest_pow2_factor_for_target): Use it instead of relying on
20329         immediate tree attributes of TARGET, not necessarily honored when
20330         intermediate bitfields are involved.
20331
20332 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
20333
20334         PR target/40266
20335         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20336         AVX, SSE4, AES, PCLMUL and POPCNT.
20337
20338 2009-05-27  Diego Novillo  <dnovillo@google.com>
20339
20340         * tree-pretty-print.c (dump_location): New.
20341         (dump_generic_node): Call it.
20342         Factor code to handle BLOCK nodes ...
20343         (dump_block_node): ... here.
20344
20345 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
20346
20347         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
20348         with it.
20349         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
20350         included.
20351         * gcc-plugin.h: Include config.h and system.h.
20352         (IN_GCC): Define if not defined.
20353
20354 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
20355
20356         PR middle-end/40249
20357         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
20358         with -fno-inline.
20359
20360 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
20361
20362         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
20363         applicable.
20364         * config/m32r/m32r.h: Ditto.
20365         * config/m32r/m32r.md: Ditto.
20366         * config/m32r/predicates.md: Ditto.
20367
20368 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
20369
20370         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
20371
20372 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
20373
20374         * doc/plugins.texi
20375         (Loading plugins): typo.
20376         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
20377         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20378         (Interacting with the GCC Garbage Collector): Added new section.
20379         (Giving information about a plugin): Added new section for
20380         PLUGIN_INFO.
20381         * ggc.h (ggc_register_root_tab): Added declaration.
20382         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
20383         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
20384         (register_callback): Improved comment in declaration.
20385         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
20386         (extra_root_vec) Added static variable for dynamic roots registration.
20387         (ggc_register_root_tab) Added new routine.
20388         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
20389         PLUGIN_GGC_MARKING event.
20390         * ggc-zone.c: Include plugin.h.
20391         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20392         * ggc-page.c: Include plugin.h.
20393         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20394         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
20395         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
20396         (register_callback): check lack of callbacks for
20397         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
20398         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
20399         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
20400         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20401         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
20402         dependency on plugin.h.
20403         (plugin.o): Added dependency on ggc.h...
20404
20405 2009-05-26  Richard Guenther  <rguenther@suse.de>
20406
20407         PR middle-end/40248
20408         Revert
20409         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
20410         with mismatched comparison modes.
20411
20412         * expr.c (expand_expr_real_1): Expand the operand of a
20413         VIEW_CONVERT_EXPR in its natural mode.
20414
20415 2009-05-26  Ian Lance Taylor  <iant@google.com>
20416
20417         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
20418         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
20419         (ALL_COMPILERFLAGS): Define.
20420         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
20421         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20422         (collect2$(exeext), collect2.o): Likewise.
20423         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
20424         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
20425         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
20426         (libbackend.o, intl.o, cppdefault.o): Likewise.
20427         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20428         (build/%.o): Use $(COMPILER_FOR_BUILD).
20429         (build/gen%$(build_exeext)): Likewise.
20430         (build/gcov-iov$(build_exeext)): LIkewise.
20431         * config/t-darwin (darwin.o): Use $(COMPILER).
20432         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
20433         * config/t-sol2 (sol2-c.o): Likewise.
20434         (sol2.o): Likewise.
20435         * config/t-vxworks (vxworks.o): Likewise.
20436         * config/x-darwin (host-darwin.o): Likewise.
20437         * config/x-hpux (host-hpux.o): Likewise.
20438         * config/x-linux (host-linux.o): Likewise.
20439         * config/x-solaris (host-solaris.o): Likewise.
20440         * config/alpha/x-alpha (driver-alpha.o): Likewise.
20441         * config/arm/t-arm (arm-c.o): Likewise.
20442         * config/arm/t-pe (pe.o): Likewise.
20443         * config/arm/t-wince-pe (pe.o): Likewise.
20444         * config/i386/t-cygming (winnt.o): Likewise.
20445         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
20446         * config/i386/t-cygwin (cygwin1.o): Likewise.
20447         (cygwin2.o): Likewise.
20448         * config/i386/t-i386 (i386-c.o): Likewise.
20449         * config/i386/t-interix (winnt.o): Likewise.
20450         * config/i386/t-netware (netware.o): Likewise.
20451         * config/i386/t-nwld (nwld.o): Likewise.
20452         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
20453         * config/i386/x-i386 (driver-i386.o): Likewise.
20454         * config/i386/x-cygwin (host-cygwin.o): Likewise.
20455         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
20456         * config/ia64/t-ia64 (ia64-c.o): Likewise.
20457         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
20458         * config/mips/x-native (driver-native.o): Likewise.
20459         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
20460         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
20461         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
20462         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
20463         * config/score/t-score-elf (score7.o): Likewise.
20464         (score3.o): Likewise.
20465         * config/sh/t-sh (sh-c.o): Likewise.
20466         * config/sh/t-symbian (sh-c.o): Likewise.
20467         (symbian.o): Likewise.
20468         * config/spu/t-spu-elf (spu-c.o): Likewise.
20469         * config/v850/t-v850 (v850-c.o): Likewise.
20470         * config/v850/t-v850e (v850-c.o): Likewise.
20471
20472 2009-05-26  Richard Guenther  <rguenther@suse.de>
20473
20474         PR tree-optimization/40122
20475         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
20476         VECTOR_CSTs if possible.
20477         (fold_gimple_assign): Likewise.
20478
20479 2009-05-26  Richard Guenther  <rguenther@suse.de>
20480
20481         PR middle-end/40252
20482         * fold-const.c (fold_binary): Use the correct types for building
20483         rotates.
20484
20485 2009-05-26  Richard Guenther  <rguenther@suse.de>
20486
20487         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
20488         redundant calls to merge_alias_info.
20489         (bump_vector_ptr): Likewise.
20490         * tree-ssa-copy.c (merge_alias_info): Remove.
20491         (replace_exp_1): Remove call to merge_alias_info.
20492         (propagate_tree_value): Likewise.
20493         (fini_copy_prop): Propagate points-to info.
20494         * tree-flow.h (merge_alias_info): Remove.
20495
20496 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20497
20498         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
20499
20500 2009-05-25  Jan Hubicka  <jh@suse.cz>
20501
20502         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20503         * cgraph.h (struct inline_summary): New filed self_wize,
20504         size_inlining_benefit, self_time and time_inlining_benefit.
20505         (struct cgraph_global_info): Replace insns by time ans size fields.
20506         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
20507         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
20508         (ipcp_update_callgraph): Do not touch function bodies.
20509         * ipa-inline.c: Include except.h
20510         (MAX_TIME): New constant.
20511         (overall_insns): Remove.
20512         (leaf_node_p): New.
20513         (overall_size, max_benefit): New static variables.
20514         (cgraph_estimate_time_after_inlining): New function.
20515         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
20516         (cgraph_clone_inlined_nodes): Update size.
20517         (cgraph_mark_inline_edge): Update size.
20518         (cgraph_estimate_growth): Use size info.
20519         (cgraph_check_inline_limits): Check size.
20520         (cgraph_default_inline_p): Likewise.
20521         (cgraph_edge_badness): Compute badness based on benefit and size cost.
20522         (cgraph_decide_recursive_inlining): Check size.
20523         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
20524         and times.
20525         (cgraph_decide_inlining): Likewise.
20526         (cgraph_decide_inlining_incrementally): Likewise; honor
20527         PARAM_EARLY_INLINING_INSNS.
20528         (likely_eliminated_by_inlining_p): New predicate.
20529         (estimate_function_body_sizes): New function.
20530         (compute_inline_parameters): Use it.
20531         * except.c (must_not_throw_labels): New function.
20532         * except.h (must_not_throw_labels): Declare.
20533         * tree-inline.c (init_inline_once): Kill inlining_weigths
20534         * tree-ssa-structalias.c: Avoid uninitialized warning.
20535         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
20536         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
20537         (PARAM_INLINE_CALL_COST): Remove.
20538         (PARAM_EARLY_INLINING_INSNS): New.
20539
20540 2009-05-25  Richard Guenther  <rguenther@suse.de>
20541
20542         PR tree-optimization/36327
20543         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
20544         callback for reference translation or lookup at the point of may-defs.
20545         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
20546         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
20547         for union COMPONENT_REFs.
20548         (vn_reference_lookup_3): New callback.  Lookup from memset
20549         and CONSTRUCTOR assignment, translate through struct copies.
20550         (vn_reference_lookup_pieces): Make sure to not free the
20551         passed operands array.  Adjust walk_non_aliased_vuses call.
20552         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
20553         make sure we do not leak memory.
20554
20555 2009-05-25  Richard Guenther  <rguenther@suse.de>
20556
20557         * tree-ssa-alias.h (dump_points_to_solution): Declare.
20558         * tree-inline.c (expand_call_inline): Reset the escaped and
20559         callused solutions.
20560         * tree-ssa-structalias.c (pass_build_ealias): New.
20561         * tree-pass.h (pass_build_ealias): Declare.
20562         * passes.c (init_optimization_passes): Add PTA during
20563         early optimizations.
20564         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
20565         and CALLUSED solutions.
20566         (dump_points_to_solution): New function, split out from ...
20567         (dump_points_to_info_for): ... here.
20568         * tree-parloops.c (parallelize_loops): Reset the escaped and
20569         callused solutions.
20570
20571 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20572
20573         PR bootstrap/40027
20574         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
20575         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
20576
20577 2009-05-25  Ira Rosen  <irar@il.ibm.com>
20578
20579         PR tree-optimization/40238
20580         * tree-vect-stmts.c (vect_init_vector): Insert initialization
20581         statements after basic block's labels.
20582         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
20583         to free the allocated memory.
20584
20585 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20586
20587         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
20588         return address with a USE.
20589
20590 2009-05-24  Richard Guenther  <rguenther@suse.de>
20591
20592         PR middle-end/40233
20593         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
20594         array type from the main variant of the inner type.
20595
20596 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20597
20598         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
20599         definition to bool (from int) to un-break build.
20600         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
20601
20602 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
20603
20604         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
20605         discard_stmt_changes): Delete.
20606         * tree-ssa-operands.c (scb_stack): Delete.
20607         (init_ssa_operands): Do not initialize it.
20608         (fini_ssa_operands): Do not free it.
20609         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
20610
20611         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
20612         update_stmt, remove the others.  Fix comments.
20613         * tree-dfa.c (optimize_stack_restore): Likewise.
20614         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
20615         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
20616         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
20617         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
20618         Likewise.
20619         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
20620         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
20621         (dom_opt_finalize_block): Likewise, adjusting access to
20622         stmts_to_rescan.
20623         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
20624         (stmts_to_rescan): Change item type to gimple.
20625         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
20626
20627 2009-05-24  Ira Rosen  <irar@il.ibm.com>
20628
20629         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
20630         * tree-pass.h (pass_slp_vectorize): New pass.
20631         * params.h (SLP_MAX_INSNS_IN_BB): Define.
20632         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
20633         * tree-vectorizer.c (timevar.h): Include.
20634         (user_vect_verbosity_level): Declare.
20635         (vect_location): Fix comment.
20636         (vect_set_verbosity_level): Update user_vect_verbosity_level
20637         instead of vect_verbosity_level.
20638         (vect_set_dump_settings): Add an argument. Ignore user defined
20639         verbosity if dump flags require higher level of verbosity. Print to
20640         stderr only for loop vectorization.
20641         (vectorize_loops): Update call to vect_set_dump_settings.
20642         (execute_vect_slp): New function.
20643         (gate_vect_slp): Likewise.
20644         (struct gimple_opt_pass pass_slp_vectorize): New.
20645         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
20646         access its members.
20647         (vec_info_for_bb): New function.
20648         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
20649         (VECTORIZATION_ENABLED): New macro.
20650         (SLP_ENABLED, SLP_DISABLED): Likewise.
20651         (vect_is_simple_use): Add bb_vec_info argument.
20652         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
20653         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
20654         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
20655         vect_schedule_slp, vect_analyze_slp): Likewise.
20656         (vect_analyze_stmt): Add slp_tree argument.
20657         (find_bb_location): Declare.
20658         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20659         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
20660         (vect_analyze_loop_operations, vect_analyze_loop,
20661         get_initial_def_for_induction, vect_create_epilog_for_reduction,
20662         vect_finalize_reduction, vectorizable_reduction,
20663         vectorizable_live_operation, vect_transform_loop): Likewise.
20664         * tree-data-ref.c (dr_analyze_innermost): Update comment,
20665         skip evolution analysis if analyzing a basic block.
20666         (dr_analyze_indices): Likewise.
20667         (initialize_data_dependence_relation): Skip the test whether the
20668         object is invariant for basic blocks.
20669         (compute_all_dependences): Skip dependence analysis for data
20670         references in basic blocks.
20671         (find_data_references_in_stmt): Don't fail in case of invariant
20672         access in basic block.
20673         (find_data_references_in_bb): New function.
20674         (find_data_references_in_loop): Move code to
20675         find_data_references_in_bb and add a call to it.
20676         (compute_data_dependences_for_bb): New function.
20677         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
20678         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
20679         that STEP is 0.
20680         (vect_analyze_data_ref_dependence): Check for interleaving in case of
20681         unknown dependence in basic block and fail in case of dependence in
20682         basic block.
20683         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
20684         dependence instances from either loop or basic block vectorization
20685         info.
20686         (vect_compute_data_ref_alignment): Check if it is loop vectorization
20687         before calling nested_in_vect_loop_p.
20688         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
20689         dependence instances from either loop or basic block vectorization
20690         info.
20691         (vect_verify_datarefs_alignment): Likewise.
20692         (vect_enhance_data_refs_alignment): Adjust function calls.
20693         (vect_analyze_data_refs_alignment): Likewise.
20694         (vect_analyze_group_access): Fix printing. Skip different checks if
20695         DR_STEP is 0. Keep strided stores either in loop or basic block
20696         vectorization data structure. Fix indentation.
20697         (vect_analyze_data_ref_access): Fix comments, allow zero step in
20698         basic blocks.
20699         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
20700         dependence instances from either loop or basic block vectorization
20701         info.
20702         (vect_analyze_data_refs): Update comment. Call
20703         compute_data_dependences_for_bb to analyze basic blocks.
20704         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
20705         case of loop vectorization. In case of basic block vectorization use
20706         data-ref itself as a base.
20707         (vect_create_data_ref_ptr): In case of basic block vectorization:
20708         don't advance the pointer, add new statements before the current
20709         statement.  Adjust function calls.
20710         (vect_supportable_dr_alignment): Support only aligned accesses in
20711         basic block vectorization.
20712         * common.opt (ftree-slp-vectorize): New flag.
20713         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
20714         (vect_pattern_recog_1): Likewise.
20715         * tree-vect-stmts.c (process_use): Likewise.
20716         (vect_init_vector): Add new statements in the beginning of the basic
20717         block in case of basic block SLP.
20718         (vect_get_vec_def_for_operand): Adjust function calls.
20719         (vect_finish_stmt_generation): Likewise.
20720         (vectorizable_call): Add assert that it is loop vectorization, adjust
20721         function calls.
20722         (vectorizable_conversion, vectorizable_assignment): Likewise.
20723         (vectorizable_operation): In case of basic block SLP, take
20724         vectorization factor from statement's type and skip the relevance
20725         check. Adjust function calls.
20726         (vectorizable_type_demotion): Add assert that it is loop
20727         vectorization, adjust function calls.
20728         (vectorizable_type_promotion): Likewise.
20729         (vectorizable_store): Check for outer loop only in case of loop
20730         vectorization. Adjust function calls. For basic blocks, skip the
20731         relevance check and don't advance pointers.
20732         (vectorizable_load): Likewise.
20733         (vectorizable_condition): Add assert that it is loop vectorization,
20734         adjust function calls.
20735         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
20736         that it is not reduction, get vector type, call only supported
20737         functions, skip loop specific parts.
20738         (vect_transform_stmt): Check for outer loop only in case of loop
20739         vectorization.
20740         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
20741         (vect_is_simple_use): Fix comment, add new argument, fix conditions
20742         for external definition.
20743         * passes.c (pass_slp_vectorize): New pass.
20744         * tree-vect-slp.c (find_bb_location): New function.
20745         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
20746         check for patterns only in loops.
20747         (vect_build_slp_tree): Add argument, adjust function calls, fail in
20748         case of multiple types in basic block SLP.
20749         (vect_mark_slp_stmts_relevant): New function.
20750         (vect_supported_load_permutation_p): Fix comment.
20751         (vect_analyze_slp_instance): Add argument. In case of basic block
20752         SLP, take vectorization factor from statement's type, check that
20753         unrolling factor is 1. Adjust function call. Save SLP instance in
20754         either loop or basic block vectorization structure. Return FALSE,
20755         if SLP failed.
20756         (vect_analyze_slp): Add argument. Get strided stores groups from
20757         either loop or basic block vectorization structure. Return FALSE
20758         if basic block SLP failed.
20759         (new_bb_vec_info): New function.
20760         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
20761         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
20762         (vect_schedule_slp): Add argument. Get SLP instances from either
20763         loop or basic block vectorization structure. Set vectorization factor
20764         to be 1 for basic block SLP.
20765         (vect_slp_transform_bb): New function.
20766         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
20767
20768 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
20769
20770         * final.c (shorten_branches): Do not align labels for jump tables.
20771         (final_scan_insn): Use JUMP_TABLE_DATA_P.
20772
20773 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20774
20775         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
20776         Remove outdated reference to flow.c and fix nits.
20777         * doc/gccint.texi: Tweak RTL description.
20778         * doc/rtl.texi: Likewise.
20779
20780 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
20781
20782         * config/avr/avr.c: Change my email address.
20783         * config/avr/avr.h: Likewise.
20784         * config/avr/avr.md: Likewise.
20785         * config/avr/avr-protos.h: Likewise.
20786         * config/avr/libgcc.S: Likewise.
20787
20788 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
20789
20790         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
20791         (spu_split_load, spu_split_store): Change return type to int.
20792         (spu_split_convert): Declare.
20793         * config/spu/predicates.md (spu_mem_operand): Remove.
20794         (spu_mov_operand): Update.
20795         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
20796         * config/spu/spu.c (regno_aligned_for_load): Remove.
20797         (reg_aligned_for_addr, spu_expand_load): Define.
20798         (spu_expand_extv): Reimplement and handle MEM.
20799         (spu_expand_insv): Handle MEM.
20800         (spu_sched_reorder): Handle insn's with length 0.
20801         (spu_legitimate_address_p): Reimplement.
20802         (store_with_one_insn_p): Return TRUE for any mode with size
20803         larger than 16 bytes.
20804         (address_needs_split): Define.
20805         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
20806         operands.
20807         (spu_convert_move): Define.
20808         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
20809         (spu_split_store): Change all MEM's to TImode.
20810         (spu_init_expanders): Preallocate registers that correspond to
20811         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
20812         mark_reg_pointer.
20813         (spu_split_convert): Define.
20814         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
20815         (_move<mode>, _movdi, _movti): Update predicate and condition.
20816         (load, store): Change to define_split.
20817         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
20818         extend<mode>ti2.
20819         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
20820         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
20821         define_insn_and_split of lshr<mode>3.
20822         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
20823         (<v>ashr<mode>3_imm): Define.
20824         (extv, extzv, insv): Allow MEM operands.
20825         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
20826         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
20827         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
20828         (_spu_convert2): Change to define_insn_and_split and remove the
20829         corresponding define_peephole2.
20830         (stack_protect_set, stack_protect_test, stack_protect_test_si):
20831         Change predicates to memory_operand.
20832
20833 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20834
20835         * config/arm/thumb2.md: Add 16-bit multiply instructions.
20836
20837 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20838
20839         PR tree-optimization/40219
20840         * tree.c (iterative_hash_expr): Make sure the builtin function is
20841         a normal builtin function and not a front end or back end builtin
20842         before indexing into the built_in_decls array.
20843
20844 2009-05-22  Richard Guenther  <rguenther@suse.de>
20845
20846         PR middle-end/38964
20847         * alias.c (write_dependence_p): Do not use TBAA for answering
20848         anti-dependence or output-dependence.
20849         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
20850         (emit_pointer_definition): Remove.
20851         (emit_alias_warning): Likewise.
20852         (find_what_var_points_to): Remove TBAA pruning code.
20853         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
20854         violations.
20855         (compute_points_to_sets): Remove code computing the set of
20856         dereferenced pointers.
20857         * tree-data-ref.c (dr_may_alias_p): Properly use the split
20858         oracle for querying anti and output dependencies.
20859         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
20860         if TBAA may be applied.
20861         (refs_anti_dependent_p): New function.
20862         (refs_output_dependent_p): Likewise.
20863         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
20864         (refs_output_dependent_p): Likewise.
20865         * doc/tree-ssa.texi (Memory model): New section.
20866         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20867         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20868         * cfgexpand.c (expand_gimple_basic_block): Do not handle
20869         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
20870         * expr.c (expand_expr_real_1): Likewise.
20871         * gimple-low.c (lower_stmt): Likewise.
20872         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
20873         (dump_gimple_cdt): Remove.
20874         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20875         (gimple_size): Likewise.
20876         (walk_gimple_op): Likewise.
20877         (is_gimple_stmt): Likewise.
20878         (walk_stmt_load_store_addr_ops): Likewise.
20879         (gimple_build_cdt): Remove.
20880         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20881         * gimple.h (gimple_cdt_new_type): Remove.
20882         (gimple_cdt_new_type_ptr): Likewise.
20883         (gimple_cdt_set_new_type): Likewise.
20884         (gimple_cdt_location): Likewise.
20885         (gimple_cdt_location_ptr): Likewise.
20886         (gimple_cdt_set_location): Likewise.
20887         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20888         * tree-cfg.c (remove_useless_stmts_1): Do not handle
20889         GIMPLE_CHANGE_DYNAMIC_TYPE.
20890         (verify_types_in_gimple_stmt): Likewise.
20891         * tree-inline.c (estimate_num_insns): Likewise.
20892         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
20893         (copy_decl_to_var): Likewise.
20894         (copy_result_decl_to_var): Likewise.
20895         * tree-pretty-print.c (dump_generic_node): Do not handle
20896         CHANGE_DYNAMIC_TYPE_EXPR.
20897         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20898         * tree-ssa-operands.c (get_expr_operands): Likewise.
20899         * tree-ssa-structalias.c (struct variable_info): Remove
20900         no_tbaa_pruning member.
20901         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
20902         (unify_nodes): Do not copy it.
20903         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20904         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
20905         (set_uids_in_ptset): Do not check it.
20906         (find_what_var_points_to): Likewise.
20907         (compute_tbaa_pruning): Remove.
20908         (compute_points_to_sets): Do not call it.
20909         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
20910         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20911         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
20912         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
20913         (DECL_NO_TBAA_P): Likewise.
20914         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
20915         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
20916         (expand_omp_atomic_pipeline): Do not set it.
20917         * print-tree.c (print_node): Do not dump it.
20918         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
20919         redundant check.
20920
20921 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
20922
20923         PR target/39856
20924         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
20925         for clobber.
20926
20927 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20928
20929         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
20930         non-external.
20931
20932 2009-05-22  Ben Elliston  <bje@au.ibm.com>
20933
20934         * Makefile.in (bversion.h, s-bversion): New targets.
20935         (TOPLEV_H): Add bversion.h.
20936         * toplev.h: Include "bversion.h".
20937         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
20938         the __format__ attribute only if compiling with the same version
20939         of GCC as the sources (the "build version").
20940
20941 2009-05-22  Ben Elliston  <bje@au.ibm.com>
20942
20943         * c-format.c (handle_format_attribute): Fix comment typo.
20944
20945 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
20946
20947         PR target/37846
20948         * config/ia64/ia64.opt (mfused-madd): New.
20949         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
20950         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
20951         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
20952         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
20953         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
20954         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
20955         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
20956         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
20957         instruction if !TARGET_FUSED_MADD.
20958         (fpma, fpms): Remove colon from name.
20959
20960 2009-05-22  Richard Guenther  <rguenther@suse.de>
20961
20962         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
20963         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
20964         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20965         TARGET_MEM_REF.
20966         (create_expression_by_pieces): Only convert if necessary.
20967         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
20968         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
20969
20970 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
20971
20972         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
20973         regular pattern from a template and rename it ...
20974         (*extzv_truncsi_exts): ... to this.
20975
20976 2009-05-21  Richard Guenther  <rguenther@suse.de>
20977
20978         * cgraph.h (struct cgraph_node): Remove inline_decl member.
20979         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
20980         (cgraph_default_inline_p): Likewise.
20981         (cgraph_decide_inlining_incrementally): Likewise.
20982
20983 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20984             Uros Bizjak  <ubizjak@gmail.com>
20985
20986         * config/i386/cpuid.h (bit_MOVBE): New.
20987
20988         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
20989
20990         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
20991         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
20992         (ix86_handle_option): Handle OPT_mmovbe.
20993         (ix86_target_string): Add -mmovbe.
20994         (pta_flags): Add PTA_MOVBE.
20995         (processor_alias_table): Add PTA_MOVBE to "atom".
20996         (override_options): Handle PTA_MOVBE.
20997
20998         * config/i386/i386.h (TARGET_MOVBE): New.
20999
21000         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
21001         (*bswapsi_movbe): New.
21002         (*bswapdi_movbe): Likewise.
21003         (bswapdi2): Renamed to ...
21004         (*bswapdi_1): This.
21005         (bswapdi2): New expander.
21006
21007         * config/i386/i386.opt (mmovbe): New.
21008
21009         * doc/invoke.texi: Document -mmovbe.
21010
21011 2009-05-21  Taras Glek  <tglek@mozilla.com>
21012
21013         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
21014         * gcc-plugin.h (plugin_init): Updated signature.
21015         * gcc-plugin.h (plugin_name_args): Moved to this header.
21016         * doc/plugins.texi (plugin_init): Updated documention to reflect
21017         API change.
21018         * doc/plugins.texi (plugin_name_args): Added to documention.
21019
21020 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
21021
21022         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
21023         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
21024
21025 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
21026
21027         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
21028         JUMP_TABLE_DATA_P predicates where applicable.
21029         * config/i386/predicates.md: Ditto.
21030         * config/i386/sse.md: Ditto.
21031
21032 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
21033
21034         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
21035         operand2 -128 override length_immediate attribute to 1.
21036         * config/i386/predicates.md (constm128_operand): New predicate.
21037
21038         * config/i386/i386.c (memory_address_length): Handle %r12
21039         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
21040         also check REGNO.
21041         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
21042         mode look through optional ZERO_EXTEND and SUBREG.
21043         * config/i386/i386.md (R12_REG): New define_constant.
21044         (prefix_data16): For sse unit set also for MODE_TI insns.
21045         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
21046         insns set if operand 1 is ext_QIreg_operand.
21047         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
21048         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
21049         immediate.
21050         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
21051         mode from MODE_DI to MODE_SI.
21052         (movdi_1_rex64): Override modrm and length_immediate attributes
21053         only for movabs (TYPE_IMOV, alternative 2).
21054         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
21055         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21056         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21057         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21058         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
21059         prefix_rex attribute if DImode.
21060         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
21061         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
21062         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
21063         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
21064         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
21065         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
21066         Likewise.  For TYPE_IMOV clear length_immediate attribute.
21067         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
21068         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
21069         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
21070         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
21071         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
21072         or one operand TYPE_ISHIFT.
21073         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
21074         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
21075         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
21076         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
21077         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
21078         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
21079         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
21080         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
21081         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
21082         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
21083         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
21084         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
21085         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
21086         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
21087         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
21088         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
21089         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
21090         set mode attribute, don't override length attribute.
21091         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
21092         to 1.
21093         (return_internal_long): Set length attribute to 2 instead of 1.
21094         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
21095         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
21096         prefix_rex attribute.
21097         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
21098         New predicates.
21099         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
21100
21101 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21102
21103         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
21104
21105 2009-05-20  Ian Lance Taylor  <iant@google.com>
21106
21107         * tree.c (build_tree_list_vec_stat): New function.
21108         (ctor_to_vec): New function.
21109         (build_nt_call_vec): New function.
21110         (build_call_array): Change args to be a const pointer.
21111         (build_call_vec): New function.
21112         * tree.h (build_nt_call_vec): Declare.
21113         (build_tree_list_vec_stat): Declare.
21114         (build_tree_list_vec): Define.
21115         (build_call_array): Update declaration.
21116         (build_call_vec): Declare.
21117         (ctor_to_vec): Declare.
21118         * c-common.c (tree_vector_cache): New static variable.
21119         (make_tree_vector): New function.
21120         (release_tree_vector): New function.
21121         (make_tree_vector_single): New function.
21122         (make_tree_vector_copy): New function.
21123         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
21124         (make_tree_vector_single, make_tree_vector_copy): Declare.
21125         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
21126         (c_parser_expr_list): Don't manage cache here, instead call
21127         make_tree_vector.
21128         (c_parser_release_expr_list): Remove static function.
21129         (c_parser_vec_to_tree_list): Remove static function.
21130         (c_parser_attributes): Call build_tree_list_vec instead of
21131         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
21132         c_parser_release_expr_list.
21133         (c_parser_postfix_expression_after_primary): Likewise.
21134         (c_parser_objc_keywordexpr): Likewise.
21135
21136 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
21137
21138         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
21139         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
21140         TARGET_CONVERT_TO_TYPE.
21141         * hooks.c (hook_tree_const_tree_null): Define.
21142         * hooks.h (hook_tree_const_tree_null): Declare.
21143         * target.h (struct gcc_target):  Add invalid_parameter_type,
21144         invalid_return_type, promoted_type, and convert_to_type fields.
21145         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
21146         (TARGET_INVALID_RETURN_TYPE): Define.
21147         (TARGET_PROMOTED_TYPE): Define.
21148         (TARGET_CONVERT_TO_TYPE): Define.
21149         (TARGET_INITIALIZER): Update for new fields.
21150         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
21151         (grokparms): Check targetm.invalid_parameter_type.
21152         * c-typeck.c (default_conversion): Check targetm.promoted_type.
21153         * c-convert.c (convert): Check targetm.convert_to_type.
21154
21155 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
21156
21157         * config/mips/mips.md (*extenddi_truncate<mode>,
21158         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
21159         defintions.
21160         (*extendhi_truncateqi): New define_insn_and_sptit.
21161
21162 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
21163
21164         PR middle-end/40204
21165         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
21166         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
21167
21168 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21169
21170         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
21171         the operand of VIEW_CONVERT_EXPR.
21172
21173 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
21174
21175         * config/i386/driver-i386.c (host_detect_local_cpu): Check
21176         extended family and model for Intel processors.  Support Intel Atom.
21177
21178 2009-05-20  Olivier Hainque  <hainque@adacore.com>
21179
21180         * gstab.h (stab_code_type): Define, to be used instead of the
21181         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
21182         notice.
21183         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
21184         occurrences by stab_code_type.
21185         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
21186
21187 2009-05-20  Martin Jambor  <mjambor@suse.cz>
21188
21189         * tree-flow.h (insert_edge_copies_seq): Undeclare.
21190         (sra_insert_before): Likewise.
21191         (sra_insert_after): Likewise.
21192         (sra_init_cache): Likewise.
21193         (sra_type_can_be_decomposed_p): Likewise.
21194         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
21195         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
21196         (sra_insert_before): Likewise.
21197         (sra_insert_after): Likewise.
21198         (sra_init_cache): Likewise.
21199         (insert_edge_copies_seq): Made static and moved upwards.
21200
21201         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
21202         case.
21203
21204         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
21205
21206         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
21207         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
21208         simple copies.
21209
21210 2009-05-20  Richard Guenther  <rguenther@suse.de>
21211
21212         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21213         with mismatched comparison modes.
21214
21215 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21216
21217         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
21218         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
21219         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
21220         with shifts for Thumb2.
21221         (orsi_notsi): New for orn.
21222         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
21223         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
21224         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
21225         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
21226         Don't invert remainder for IOR.
21227
21228 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
21229
21230         PR tree-optimization/40087
21231         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
21232         number_of_iterations_ne): Rename never_infinite argument.
21233         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
21234         number_of_iterations_le): Handle pointer-type ivs when
21235         exit_must_be_taken is false.
21236         (number_of_iterations_cond):  Do not always assume that
21237         exit_must_be_taken if the control variable is a pointer.
21238
21239 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21240
21241         * c-typeck.c (build_binary_op): Allow % on integal vectors.
21242         * doc/extend.texi (Vector Extension): Document that % is allowed too.
21243
21244 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
21245
21246         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
21247         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
21248
21249 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21250
21251         PR c/40172
21252         * c.opt (Wlogical-op): Disabled by default.
21253         * c-opt (c_common_post_options): Do not enable Wlogical-op with
21254         Wextra.
21255         * doc/invoke.texi (Wlogical-op): Likewise.
21256
21257 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21258
21259         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
21260         into CASE_CONVERT.
21261         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
21262         Propagate the type of the first operand.
21263         <ASSERT_EXPR>: Simplify.
21264         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
21265         Rewrite using the RHS code as discriminant.
21266         <NOP_EXPR>: Turn into CASE_CONVERT.
21267         <PLUS_EXPR>: Propagate the type of the first operand.
21268
21269 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
21270
21271         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
21272         (ia64_dconst_0_375): New.
21273         * config/ia64/ia64.c (ia64_override_options): Remove
21274         -minline-sqrt-min-latency warning.
21275         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
21276         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
21277         * config/ia64/ia64.md (*sqrt_approx): Remove.
21278         (sqrtsf2): Remove #if 0.
21279         (sqrtsf2_internal_thr): Rewrite and move to div.md.
21280         (sqrtdf): Remove assert.
21281         (sqrtdf2_internal_thr): Rewrite and move to div.md.
21282         (sqrtxf2): Remove #if 0.
21283         (sqrtxf2_internal_thr): Rewrite and move to div.md.
21284         * div.md (sqrt_approx_rf): New.
21285         (sqrtsf2_internal_thr): New implementation.
21286         (sqrtsf2_internal_lat): New.
21287         (sqrtdf2_internal_thr: New implementation.
21288         (sqrtxf2_internal): New implementation.
21289
21290 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21291             Hans-Peter Nilsson  <hp@axis.com>
21292
21293         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
21294         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
21295         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
21296         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
21297         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
21298         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
21299         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
21300         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
21301         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
21302         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
21303         * c-common.c: ...from here.
21304
21305 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21306
21307         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
21308
21309 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21310
21311         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
21312
21313 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21314
21315         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
21316         assignments with memcpy calls.
21317         (add_fdes): Likewise.
21318         (binary_search_unencoded_fdes): Likewise.
21319         (linear_search_fdes): Eliminate type puns.
21320
21321 2009-05-19  Richard Guenther  <rguenther@suse.de>
21322
21323         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
21324         not falsely claim to have propagated into all uses.
21325
21326 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21327
21328         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
21329         version to v3.0.
21330
21331 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21332
21333         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
21334         * config/sh/sh.c (sh_legitimate_address_p): Make static.
21335         (TARGET_LEGITIMATE_ADDRESS_P): New.
21336         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21337         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21338
21339 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
21340
21341         PR debug/40109
21342         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
21343         child of the containing namespace's DIE.
21344
21345 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
21346
21347         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
21348         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
21349         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
21350         extend patterns.
21351
21352 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
21353
21354         PR target/39942
21355         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
21356         gen_align with gen_pad.
21357         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
21358         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
21359
21360         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
21361         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
21362
21363         * config/i386/i386.md (align): Renamed to ...
21364         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
21365         ASM_OUTPUT_MAX_SKIP_PAD.
21366
21367 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
21368
21369         * config.gcc: Fix variable syntax.
21370
21371         PR target/39531
21372         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
21373         before calling exact_log2.
21374         (output_iorsi3): Likewise.
21375         (output_xorsi3): Likewise.
21376
21377 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21378
21379         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
21380         for the none zero constant operand except for EQ and NE
21381         comprisons even when the first operand is R0.
21382
21383 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
21384
21385         * config/s390/2064.md: Remove trailing whitespaces.
21386         * config/s390/2084.md: Likewise.
21387         * config/s390/constraints.md: Likewise.
21388         * config/s390/fixdfdi.h: Likewise.
21389         * config/s390/libgcc-glibc.ver: Likewise.
21390         * config/s390/s390-modes.def: Likewise.
21391         * config/s390/s390-protos.h: Likewise.
21392         * config/s390/s390.c: Likewise.
21393         * config/s390/s390.h: Likewise.
21394         * config/s390/s390.md: Likewise.
21395         * config/s390/tpf-unwind.h: Likewise.
21396
21397 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21398
21399         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
21400
21401 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21402
21403         M68K TLS support.
21404         * configure.ac (m68k-*-*): Check if binutils support TLS.
21405         * configure: Regenerate.
21406         * config/m68k/predicates.md (symbolic_operand): Extend comment.
21407         * config/m68k/constraints.md (Cu): New constraint.
21408         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
21409         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
21410         (movsi): Handle TLS symbols.
21411         (addsi3_5200): Handle XTLS symbols, indent.
21412         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
21413         (m68k_tls_reference_p): Declare.
21414         (m68k_legitimize_address): Declare.
21415         (m68k_unwrap_symbol): Declare.
21416         * config/m68k/m68k.opt (mxtls): New option.
21417         * config/m68k/m68k.c (ggc.h): Include.
21418         (m68k_output_dwarf_dtprel): Implement hook.
21419         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
21420         (m68k_expand_prologue): Load GOT pointer when function needs it.
21421         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
21422         (m68k_legitimate_constant_address_p): Same.
21423         (m68k_decompose_address): Handle TLS references.
21424         (m68k_get_gp): New static function.
21425         (enum m68k_reloc): New contants.
21426         (TLS_RELOC_P): New macro.
21427         (m68k_wrap_symbol): New static function.
21428         (m68k_unwrap_symbol): New function.
21429         (m68k_final_prescan_insn_1): New static function.
21430         (m68k_final_prescan_insn): New function.
21431         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
21432         functions.
21433         (legitimize_pic_address): Handle TLS references..
21434         (m68k_tls_get_addr, m68k_get_tls_get_addr)
21435         (m68k_libcall_value_in_a0_p)
21436         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
21437         (m68k_call_m68k_read_tp): Helper variables and functions for ...
21438         (m68k_legitimize_tls_address): Handle TLS references.
21439         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
21440         New functions.
21441         (m68k_legitimize_address): Handle TLS symbols.
21442         (m68k_get_reloc_decoration): New static function.
21443         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
21444         UNSPEC_RELOC32.
21445         (m68k_output_dwarf_dtprel): Implement hook.
21446         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
21447         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
21448         m68k_call_* routines.
21449         (sched_attr_op_type): Handle TLS symbols.
21450         (gt-m68k.h): Include.
21451         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
21452         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
21453
21454 2009-05-18  Martin Jambor  <mjambor@suse.cz>
21455
21456         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
21457         (visit_store_addr_for_mod_analysis): New function.
21458         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
21459         (determine_cst_member_ptr): Use gimple_assign_single_p.
21460         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
21461         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
21462         operands.  Don't check number of operands of a NOP_EXPR.
21463
21464 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
21465
21466         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
21467
21468 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21469
21470         PR c/40172
21471         * c-common.c (warn_logical_operator): Don't warn if one of
21472         expression isn't always true or false.
21473
21474 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
21475
21476         * config/i386/biarch32.h: New file.
21477         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
21478
21479 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
21480
21481         * config/mips/mips.md (*zero_extend<mode>_trunchi,
21482         *zero_extend<mode>_truncqi): Merge these into ...
21483         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
21484         Name the pattern following this as *zero_extendhi_truncqi.
21485
21486 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
21487
21488         PR middle-end/39301
21489         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
21490         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
21491         (output_info): Make field HOST_WIDEST_INT.
21492         (print_statistics): Use HOST_WIDEST_INT_PRINT.
21493         (dump_bitmat_statistics): Same.
21494
21495 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21496
21497         * config.gcc (use_gcc_stdint):  Set to wrap.
21498         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
21499         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
21500         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21501         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21502         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21503         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21504         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21505         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
21506
21507 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
21508
21509         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
21510         tune_64.
21511         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
21512         Move definitions earlier.
21513         (OPT_ARCH64, OPT_ARCH32): Define.
21514         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
21515         and tune_64.
21516
21517 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21518
21519         PR target/40153
21520         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
21521         implies.
21522
21523 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21524
21525         * arm.md (movdi2): Copy non-reg values to DImode registers.
21526
21527 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
21528
21529         PR target/39942
21530         * final.c (label_to_max_skip): New function.
21531         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
21532         CODE_LABEL_NUMBER <= max_labelno.
21533         * output.h (label_to_max_skip): New prototype.
21534         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
21535         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
21536         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
21537         Handle CODE_LABELs with >= 16 byte alignment or with
21538         max_skip == (1 << align) - 1.
21539         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
21540         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
21541
21542         PR target/39942
21543         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
21544         .p2align 3 if MAX_SKIP is smaller than 7.
21545         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21546
21547 2009-05-15  Ian Lance Taylor  <iant@google.com>
21548
21549         * alias.c (struct alias_set_entry_d): Rename from struct
21550         alias_set_entry.  Change all uses.
21551         * except.c (struct call_site_record_d): Rename from struct
21552         call_site_record.  Change all uses.
21553         * except.h (struct eh_region_d): Rename from struct eh_region.
21554         Change all uses.
21555         * gcse.c (struct hash_table_d): Rename from struct hash_table.
21556         Change all uses.
21557         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
21558         ivtype_map_elt.  Change all uses.
21559         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
21560         Change all uses.
21561         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
21562         * graphite.h (struct name_tree_d): Rename from struct name_tree.
21563         Change all uses.
21564         (struct sese_d): Rename from struct sese.  Change all uses.
21565         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
21566         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
21567         * optabs.h (struct optab_d): Rename from struct optab.  Change all
21568         uses.
21569         (struct convert_optab_d): Rename from struct convert_optab.
21570         Change all uses.
21571         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
21572         ipa_opt_pass.  Change all uses.
21573         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
21574         all uses.
21575
21576         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
21577         defined as a typedef.
21578         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
21579         defined as a tag.
21580
21581 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21582
21583         PR 16302
21584         * fold-const.c (make_range,build_range_check,merge_ranges): Move
21585         declaration to...
21586         (merge_ranges): Returns bool.
21587         * tree.h (make_range): .. to here.
21588         (build_range_check): Likewise.
21589         (merge_ranges): Likewise. Renamed from merge_ranges.
21590         * c-typeck.c (parser_build_binary_op): Update calls to
21591         warn_logical_operator.
21592         * c-common.c (warn_logical_operator): Add new warning.
21593         * c-common.h (warn_logical_operator): Update declaration.
21594
21595 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21596
21597         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
21598
21599 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21600
21601         * doc/install.texi: Document MPC requirements, flags etc.
21602
21603         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
21604         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
21605         Evaluate constant arguments.
21606         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
21607         (fold_builtin_1): Likewise, also evaluate constant arguments.
21608         Remove superfluous break.
21609         (do_mpc_ckconv): New.
21610         * real.h: Include mpc.h.
21611         * toplev.c (print_version): Output MPC version info if available.
21612
21613 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21614
21615         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
21616
21617 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21618
21619         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
21620         only once.
21621
21622 2009-05-15  Jan Hubicka  <jh@suse.cz>
21623
21624         * doc/invoke.texi (max-early-inliner-iterations): New flag.
21625         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
21626         (try_inline): Fix return value.
21627         (cgraph_decide_inlining_incrementally): Honor new value.
21628         (cgraph_early_inlining): Handle indirect inlining.
21629         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
21630
21631 2009-05-15  Jan Hubicka  <jh@suse.cz>
21632
21633         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
21634         * cgraphunit.c (cgraph_finalize_function): Set it.
21635         (cgraph_expand_function): Use it.
21636
21637 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21638
21639         * real.c (encode_ieee_half): Define.
21640         (decode_ieee_half): Define.
21641         (ieee_half_format): Define.
21642         (arm_half_format): Define.
21643         * real.h (ieee_half_format): Declare.
21644         (arm_half_format): Declare.
21645
21646 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21647
21648         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
21649         swapped, and reversed optabs exist before trying to use them.
21650
21651 2009-05-15  Paul Brook  <paul@codesourcery.com>
21652             Sandra Loosemore  <sandra@codesourcery.com>
21653
21654         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
21655         loads.  Allow PRE_DEC.
21656         (output_move_neon): Handle PRE_DEC.
21657         (arm_print_operand): Add 'A' for neon structure loads.
21658         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
21659         * config/arm/neon.md (neon_mov): Update comment.
21660         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
21661         calls.
21662         (Um): New constraint.
21663
21664 2009-05-15  Jan Hubicka  <jh@suse.cz>
21665
21666         Revert the following patch until testsuite fallout is fixed:
21667         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21668         * cgraph.h (struct inline_summary): New filed self_wize,
21669         size_inlining_benefit, self_time and time_inlining_benefit.
21670         (struct cgraph_global_info): Replace insns by time ans size fields.
21671         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21672         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21673         (ipcp_update_callgraph): Do not touch function bodies.
21674         * ipa-inline.c: Include except.h
21675         (MAX_TIME): New constant.
21676         (overall_insns): Remove
21677         (overall_size, max_benefit): New static variables.
21678         (cgraph_estimate_time_after_inlining): New function.
21679         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21680         (cgraph_clone_inlined_nodes): Update size.
21681         (cgraph_mark_inline_edge): Update size.
21682         (cgraph_estimate_growth): Use size info.
21683         (cgraph_check_inline_limits): Check size.
21684         (cgraph_default_inline_p): Likewise.
21685         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21686         (cgraph_decide_recursive_inlining): Check size.
21687         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21688         and times.
21689         (cgraph_decide_inlining): Likewise.
21690         (cgraph_decide_inlining_incrementally): Likewise; honor
21691         PARAM_EARLY_INLINING_INSNS.
21692         (likely_eliminated_by_inlining_p): New predicate.
21693         (estimate_function_body_sizes): New function.
21694         (compute_inline_parameters): Use it.
21695         * except.c (must_not_throw_labels): New function.
21696         * except.h (must_not_throw_labels): Declare.
21697         * tree-inline.c (init_inline_once): Kill inlining_weigths
21698         * tree-ssa-structalias.c: Avoid uninitialized warning.
21699         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21700         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21701         (PARAM_INLINE_CALL_COST): Remove.
21702         (PARAM_EARLY_INLINING_INSNS): New.
21703
21704 2009-05-15  Richard Guenther  <rguenther@suse.de>
21705
21706         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
21707         not TODO_update_ssa.
21708
21709 2009-05-15  Richard Guenther  <rguenther@suse.de>
21710
21711         PR tree-optimization/39999
21712         * gimple.h (gimple_expr_type): Use the expression type looking
21713         through useless conversions.
21714         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
21715         (vn_nary_op_insert_stmt): Likewise.
21716         (simplify_binary_expression): Likewise.
21717
21718 2009-05-15  Richard Guenther  <rguenther@suse.de>
21719
21720         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21721         New options, enabled by default.
21722         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21723         Document.
21724         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
21725         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
21726         * tree-ssa-structalias.c (gate_tree_pta): New function.
21727         (pass_build_alias): Use it.
21728
21729 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
21730
21731         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
21732         recurse on an invariant address if a conversion from a pointer
21733         type to a wider integer type is involved.
21734
21735 2009-05-15  Jan Hubicka  <jh@suse.cz>
21736
21737         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21738         * cgraph.h (struct inline_summary): New filed self_wize,
21739         size_inlining_benefit, self_time and time_inlining_benefit.
21740         (struct cgraph_global_info): Replace insns by time ans size fields.
21741         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21742         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21743         (ipcp_update_callgraph): Do not touch function bodies.
21744         * ipa-inline.c: Include except.h
21745         (MAX_TIME): New constant.
21746         (overall_insns): Remove
21747         (overall_size, max_benefit): New static variables.
21748         (cgraph_estimate_time_after_inlining): New function.
21749         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21750         (cgraph_clone_inlined_nodes): Update size.
21751         (cgraph_mark_inline_edge): Update size.
21752         (cgraph_estimate_growth): Use size info.
21753         (cgraph_check_inline_limits): Check size.
21754         (cgraph_default_inline_p): Likewise.
21755         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21756         (cgraph_decide_recursive_inlining): Check size.
21757         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21758         and times.
21759         (cgraph_decide_inlining): Likewise.
21760         (cgraph_decide_inlining_incrementally): Likewise; honor
21761         PARAM_EARLY_INLINING_INSNS.
21762         (likely_eliminated_by_inlining_p): New predicate.
21763         (estimate_function_body_sizes): New function.
21764         (compute_inline_parameters): Use it.
21765         * except.c (must_not_throw_labels): New function.
21766         * except.h (must_not_throw_labels): Declare.
21767         * tree-inline.c (init_inline_once): Kill inlining_weigths
21768         * tree-ssa-structalias.c: Avoid uninitialized warning.
21769         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21770         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21771         (PARAM_INLINE_CALL_COST): Remove.
21772         (PARAM_EARLY_INLINING_INSNS): New.
21773         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
21774         (inline-call-cost): Remove.
21775         (early-inlining-insns): New.
21776
21777 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
21778
21779         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
21780         for bounds.
21781         (print_int_cst_bounds_in_octal_p): Likewise.
21782         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
21783         with subtypes.
21784         * dwarf2out.c (base_type_die): Likewise.
21785         (is_subrange_type): Delete.
21786         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
21787         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
21788         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
21789         if the destination type is boolean.
21790         (build_range_check): Do not special-case subtypes.
21791         (fold_sign_changed_comparison): Likewise.
21792         (fold_unary): Likewise.
21793         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
21794         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
21795         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
21796         * tree.c (subrange_type_for_debug_p): New predicate based on the
21797         former is_subrange_type.
21798         * tree.h (subrange_type_for_debug_p): Declare.
21799         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
21800         (convert_affine_scev): Remove call to above function.
21801         (chrec_convert_aggressive): Likewise.
21802         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
21803         false for conversions involving subtypes.
21804         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
21805         (vrp_val_min): Likewise.
21806         (needs_overflow_infinity): Likewise.
21807         (extract_range_from_unary_expr): Likewise.
21808
21809 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
21810
21811         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21812         * config/frv/frv.c: Likewise.
21813         * config/s390/s390.c: Likewise.
21814         * config/sparc/sparc.h: Likewise.
21815         * config/i386/i386.h: Likewise.
21816         * config/i386/i386.c: Likewise.
21817         * config/crx/crx.c: Likewise.
21818         * config/m68hc11/m68hc11.h: Likewise.
21819         * config/iq2000/iq2000.c: Likewise.
21820         * config/mn10300/mn10300.h: Likewise.
21821         * config/mn10300/mn10300.c: Likewise.
21822         * config/m68k/m68k.c: Likewise.
21823         * config/rs6000/rs6000.c: Likewise.
21824         * config/rs6000/xcoff.h: Likewise.
21825         * config/rs6000/linux64.h: Likewise.
21826         * config/rs6000/sysv4.h: Likewise.
21827         * config/score/score3.c: Likewise.
21828         * config/score/score7.c: Likewise.
21829         * config/score/score.c: Likewise.
21830         * config/arm/arm.md: Likewise.
21831         * config/mips/mips.c: Likewise.
21832         * config/mips/mips.md: Likewise.
21833         * config/bfin/bfin.h: Likewise.
21834         * config/pa/pa.c: Likewise.
21835         * config/pa/constraints.md: Likewise.
21836
21837         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
21838         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
21839         * config/pdp11/pdp11.h: Use memory_address_p instead.
21840
21841 2009-05-14  Ian Lance Taylor  <iant@google.com>
21842
21843         * passes.c (finish_optimization_passes): Change i to int.
21844         * plugin.c (plugins_active_p): Change event to int.
21845         (dump_active_plugins): Likewise.
21846         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
21847         Add cast.
21848         * tree.c (tree_range_check_failed): Change c to unsigned int.
21849         (omp_clause_range_check_failed): Likewise.
21850         (build_common_builtin_nodes): Change mode to int.  Add cast.
21851         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
21852         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
21853
21854         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
21855         ++ or -- with a variable of enum type.
21856
21857 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21858
21859         PR driver/40144
21860         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
21861
21862 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21863
21864         * store-motion.c: Do not include params.h
21865         * Makefile.in: Fix dependencies for various files.
21866
21867 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21868
21869         * auto-inc-dec.c: Fix pass description, remove apparent
21870         accidental duplication.
21871
21872 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21873
21874         PR middle-end/40147
21875         * ipa-utils.h (memory_identifier_string): Moved to ...
21876         * tree.h (memory_identifier_string): Here.  Add GTY(()).
21877
21878 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
21879
21880         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
21881         in the former documentation of...
21882         (GO_IF_LEGITIMATE_ADDRESS): ... this.
21883         * ira-conflicts.c (get_dup_num): Use address_operand.
21884         * targhooks.c (default_legitimate_address_p): New.
21885         * targhooks.h (default_legitimate_address_p): New.
21886         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
21887         Call hook.
21888         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
21889         * target.h (struct target): Add legitimate_address_p.
21890         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
21891         (TARGET_INITIALIZER): Include it.
21892
21893         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21894         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
21895         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
21896         (TARGET_LEGITIMATE_ADDRESS_P): New.
21897
21898         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21899         (REG_OK_STRICT_P): Delete.
21900         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
21901         (frv_legitimate_address_p_1): ... this.
21902         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
21903         (frv_legitimate_address_p_1): ... the renamed old
21904         frv_legitimate_address_p.
21905         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
21906         (TARGET_LEGITIMATE_ADDRESS_P): New.
21907
21908         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21909         * config/s390/s390-protos.h (legitimate_address_p): Remove.
21910         * config/s390/s390.c (legitimate_address_p): Rename to...
21911         (s390_legitimate_address_p): ... this, make static.
21912         (legitimize_address): Adjust call.
21913         (TARGET_LEGITIMATE_ADDRESS_P): New.
21914         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
21915
21916         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21917         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
21918         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
21919         (TARGET_LEGITIMATE_ADDRESS_P): New.
21920
21921         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21922         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
21923         * config/spu/spu.c (spu_legitimate_address): Rename to...
21924         (spu_legitimate_address_p): ... this, make static.
21925         (TARGET_LEGITIMATE_ADDRESS_P): New.
21926
21927         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21928         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
21929         * config/sparc/sparc.c (legitimate_address_p): Rename to...
21930         (sparc_legitimate_address_p): ... this, make static and return bool.
21931         (legitimize_address): Adjust call.
21932         (TARGET_LEGITIMATE_ADDRESS_P): New.
21933
21934         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21935         * config/i386/i386-protos.h (legitimate_address_p): Remove.
21936         * config/i386/i386.c (legitimate_address_p): Rename to...
21937         (ix86_legitimate_address_p): ... this, make static.
21938         (constant_address_p): Move after it, adjust call.
21939         (TARGET_LEGITIMATE_ADDRESS_P): New.
21940
21941         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21942         * config/avr/avr-protos.h (legitimate_address_p): Remove.
21943         * config/avr/avr.c (legitimate_address_p): Rename to...
21944         (avr_legitimate_address_p): ... this, make static.
21945         (legitimize_address): Adjust call.
21946         (TARGET_LEGITIMATE_ADDRESS_P): New.
21947
21948         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21949         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
21950         * config/crx/crx.c (crx_legitimate_address_p): Make static.
21951         (TARGET_LEGITIMATE_ADDRESS_P): New.
21952
21953         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21954         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
21955         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
21956         (TARGET_LEGITIMATE_ADDRESS_P): New.
21957
21958         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21959         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
21960         Remove.
21961         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
21962         Make static.
21963         (TARGET_LEGITIMATE_ADDRESS_P): New.
21964
21965         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21966         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
21967         Remove.
21968         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
21969         Rename to...
21970         (m68hc11_legitimate_address_p): ... this, make static.
21971         (go_if_legitimate_address_internal): Rename to...
21972         (m68hc11_legitimate_address_p_1): ... this.
21973         (legitimize_address): Adjust call.
21974         (TARGET_LEGITIMATE_ADDRESS_P): New.
21975
21976         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21977         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
21978         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
21979         (TARGET_LEGITIMATE_ADDRESS_P): New.
21980
21981         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21982         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
21983         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
21984         (mn10300_legitimate_address_p): ... this, make static.
21985         (TARGET_LEGITIMATE_ADDRESS_P): New.
21986
21987         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21988         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
21989         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
21990         (TARGET_LEGITIMATE_ADDRESS_P): New.
21991
21992         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21993         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
21994         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
21995         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21996         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
21997         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
21998         (rs6000_legitimate_address_p): ... this, make static.
21999         (TARGET_LEGITIMATE_ADDRESS_P): New.
22000         (REG_MODE_OK_FOR_BASE_P): Delete.
22001         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
22002
22003         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22004         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
22005         Delete.
22006         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
22007         static, adjust types.
22008         (TARGET_LEGITIMATE_ADDRESS_P): New.
22009
22010         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22011         * config/score/score.c (score_address_p): Rename to...
22012         (score_legitimate_address_p): ... this.
22013         (TARGET_LEGITIMATE_ADDRESS_P): New.
22014         * config/score/score3.c (score3_address_p): Rename to...
22015         (score3_legitimate_address_p): ... this.
22016         * config/score/score7.c (score7_address_p): Rename to...
22017         (score7_legitimate_address_p): ... this.
22018
22019         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
22020         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
22021         GO_IF_LEGITIMATE_ADDRESS): Delete.
22022         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
22023         thumb2_legitimate_address_p): Delete.
22024         (arm_legitimate_address_p): Rename to...
22025         (arm_legitimate_address_outer_p): ... this.
22026         * config/arm/constraints.md ("Uq"): Adjust call.
22027         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
22028         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
22029         to...
22030         (arm_legitimate_address_outer_p): ... this.
22031         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
22032         static.
22033         (TARGET_LEGITIMATE_ADDRESS_P): New.
22034
22035         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22036         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
22037         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
22038         (TARGET_LEGITIMATE_ADDRESS_P): New.
22039
22040         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22041         * config/vax/vax-protos.h (legitimate_address_p): Remove.
22042         * config/vax/vax.c (legitimate_address_p): Rename to...
22043         (vax_legitimate_address_p): ... this, make static.
22044         (TARGET_LEGITIMATE_ADDRESS_P): New.
22045
22046         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22047         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
22048         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
22049         (TARGET_LEGITIMATE_ADDRESS_P): New.
22050
22051         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22052         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
22053         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
22054         (mmix_legitimate_address_p): ... this, make static.
22055         (TARGET_LEGITIMATE_ADDRESS_P): New.
22056
22057         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22058         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
22059         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
22060         (TARGET_LEGITIMATE_ADDRESS_P): New.
22061
22062 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22063
22064         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
22065         of MODE_COMPLEX_INT.
22066
22067 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22068
22069         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
22070         LCT_NORMAL in function call.
22071         * mips-tdump.c (print_file_desc): Add cast to enum type.
22072         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
22073         (mark_stabs): Add casts to enum types.
22074         (parse_stabs_common): Add casts to enum types.
22075
22076 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22077
22078         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
22079         Check for invalid values of LETTER.
22080
22081 2009-05-13  Taras Glek  <tglek@mozilla.com>
22082
22083         * attribs.c (register_attribute): moved out attribute registration
22084         into register_attribute.
22085         * doc/plugins.texi: Documented register_attribute and
22086         PLUGIN_ATTRIBUTES.
22087         * gcc-plugin.h: Added forward decl for register_attribute.
22088         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
22089         * plugin.c (register_callback, invoke_plugin_callbacks): Added
22090         PLUGIN_ATTRIBUTES boilerplate.
22091
22092 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
22093
22094         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
22095         values even in sentinel and empty entries.
22096         (ms_printf_flag_specs):  Likewise.
22097         (ms_scanf_flag_specs):  Likewise.
22098         (ms_strftime_flag_specs):  Likewise.
22099         (ms_print_char_table):  Likewise.
22100         (ms_scan_char_table):  Likewise.
22101         (ms_time_char_table):  Likewise.
22102
22103 2009-05-13  Doug Kwan  <dougkwan@google.com>
22104
22105         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
22106
22107 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22108
22109         * config/mips/mips.md (store): Add attributes for QI and HI.
22110         Update comment.
22111         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
22112         (truncdi<mode>2): ... this new pattern.
22113
22114 2009-05-13  Brad Hards  <bradh@kde.org>
22115
22116         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
22117
22118 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
22119             Ben Elliston <bje@au.ibm.com>
22120
22121         PR middle-end/40035
22122         * dse.c (check_mem_read_rtx): Guard against width == -1.
22123
22124 2009-05-13  Michael Matz  <matz@suse.de>
22125
22126         PR middle-end/39976
22127         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
22128         (trivially_conflicts_p): New function.
22129         (insert_backedge_copies): Use it.
22130
22131 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
22132
22133         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
22134         (handle_stdc_pragma): Use new enum constant names.
22135         (handle_pragma_float_const_decimal64): Ditto.
22136
22137 2009-05-13  Ian Lance Taylor  <iant@google.com>
22138
22139         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
22140         tree.def.
22141
22142 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
22143
22144         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
22145         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
22146         multilibs.
22147         * config/m68k/m68k.h (FL_UCLINUX): Define.
22148
22149 2009-05-13  Jan Hubicka  <jh@suse.cz>
22150
22151         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
22152
22153 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22154
22155         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
22156         unless -fschedule-insns is specified.
22157
22158 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22159
22160         PR target/39561
22161         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
22162         TARGET_EXPAND_CBRANCHDI4.
22163         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
22164         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
22165         (cmpeqdi): Fix comment.
22166
22167 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22168
22169         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
22170         (sh_legitimate_address_p): Likewise.
22171         * config/sh/sh.c (sh_legitimate_index_p): New.
22172         (sh_legitimate_address_p): Likewise.
22173         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
22174         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
22175         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
22176         (MAYBE_BASE_REGISTER_RTX_P): New macro.
22177         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
22178         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
22179         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
22180         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
22181         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
22182
22183 2009-05-12  Jan Hubicka  <jh@suse.cz>
22184
22185         * tree-inline.c (estimate_operator_cost): Add operands;
22186         when division happens by constant, it is cheap.
22187         (estimate_num_insns): Loads and stores are not having cost of 0;
22188         EH magic stuff is cheap; when computing runtime cost of switch,
22189         use log2 base of amount of its cases; builtin_expect has cost of 0;
22190         compute cost for moving return value of call.
22191         (init_inline_once): Initialize time_based flags.
22192         * tree-inline.h (eni_weights_d): Add time_based flag.
22193
22194 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22195
22196         * df-core.c: Update head documentation.
22197
22198 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22199
22200         PR bootstrap/40118
22201         * rs6000.c (rs6000_generate_compare): Use op1b instead of
22202         shadowing exisiting variable op1.
22203
22204 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
22205
22206         PR target/37179
22207         * config/i386/driver-i386.c (processor_signatures): New enum.
22208         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
22209         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
22210         processor signature to detect geode processor.
22211
22212 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22213
22214         Revert:
22215
22216         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22217
22218         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22219         causes spurious differences between trunk and cond-optab branch.
22220
22221 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22222
22223         * dojump.c (compare_from_rtx): Delete.
22224         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
22225         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
22226         if the comparison does not satisfy the predicate; test predicates for
22227         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
22228         further if one existing pattern fails.
22229         * expr.h (compare_from_rtx): Delete.
22230         (prepare_operand): Declare it.
22231         * optabs.c: Change "lib call" to "libcall" throughout.
22232         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
22233         HAVE_conditional_trap, emit_cmp_insn): Delete.
22234         (can_compare_p): Delete cmp_optab case.
22235         (prepare_float_lib_cmp): Return an rtx and a machine mode.
22236         Accept other parameters by value.
22237         (prepare_operand): Make non-static.
22238         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
22239         other parameters by value.  Try to widen operands here based on
22240         an optab_methods argument and looking at cbranch_optab.
22241         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
22242         loop.  Use cbranch_optab directly.
22243         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
22244         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
22245         assertion.
22246         (emit_conditional_move, emit_conditional_add): Inline what's needed
22247         of compare_from_rtx, using new prepare_cmp_insn for the rest.
22248         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
22249         with COMPARE.  Move cmov_optab and cstore_optab above
22250         with cbranch_optab, move cmp_optab down with ucmp_optab,
22251         remove tst_otpab.  Do not initialize trap_rtx.
22252         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
22253         for trap code.  Do not check HAVE_conditional_trap.  Use
22254         prepare_cmp_insn.  Accept no predicate for operand 3.
22255         * optabs.h (OTI_cmp): Mark as used only for libcalls.
22256         (OTI_ctrap, ctrap_optab): New.
22257         (tst_optab): Delete.
22258         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
22259         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
22260         with lookup of ctrap_optab.
22261         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
22262         Delete.
22263         (ctrap_optab): New.
22264
22265         * combine.c (combine_simplify_rtx, simplify_set): Do not
22266         special case comparing against zero for cc0 machines.
22267         * simplify-rtx.c (simplify_binary_operation_1): Never remove
22268         COMPARE on cc0 machines.
22269         (simplify_relational_operation): Return a new expression when
22270         a COMPARE could be removed.
22271         * final.c (final_scan_insn): Compare cc_status values
22272         against LHS of a (compare FOO (const_int 0)) cc0 source.
22273         Also check if cc_status.value is the full compare.
22274
22275         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
22276         (cstoreMM4): Document.
22277         (conditional_trap): Document ctrapMM4 instead.
22278         (sync_compare_and_swapMM): Refer to cbranchcc4.
22279         (Dependent Patterns): Eliminate obsolete information referring to
22280         the old jump optimization phase.
22281         (Canonicalization): Include cbranchcc4 case, omit canonicalization
22282         of compares with 0 on cc0 machines.
22283         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
22284         avoiding references to cc0.  Remove text about storing operands
22285         in cmpMM.
22286         * doc/tm.texi (Condition Codes): Include blurb on different
22287         condition code representations, separate into subsections for
22288         CC0, MODE_CC and conditional execution.
22289
22290         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
22291         alpha_emit_setcc): Accept operands and a machine mode.
22292         * config/alpha/alpha.c (alpha_emit_conditional_branch):
22293         Get code/op0/op1 from operands, use machine mode argument
22294         instead of alpha_compare.fp_p.  Emit the branch here.
22295         (alpha_emit_setcc): Likewise, and return boolean.
22296         (alpha_emit_conditional_move): Likewise.  Assert that
22297         cmp_op_mode == cmp_mode, and simplify accordingly.
22298         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
22299         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
22300         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
22301         Delete.
22302         (stack probe test): Use cbranchdi4.
22303         * config/alpha/predicates.md (alpha_cbranch_operator): New.
22304
22305         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
22306         * config/arc/arc.h (movsicc, movsfcc): Use it.
22307         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
22308         (cbranchsi4, cstoresi4): New.
22309         (cmpsi, bCC and sCC expanders): Remove.
22310
22311         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
22312         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
22313         * config/arm/predicates.md (arm_comparison_operator): Only include
22314         floating-point operators if there is a hardware floating-point unit.
22315         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
22316         deferring to cbranch_cc and cstore_cc respectively.
22317         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
22318         cbranch_cc, cstore_cc): New.
22319         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
22320         arm_compare_op1.
22321         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
22322
22323         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
22324         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
22325         as an argument.
22326         (adjust_insn_length): Adjust calls.
22327         (avr_reorg): Handle (compare (foo) (const_int 0)).
22328         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
22329         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
22330         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
22331         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
22332         (bCC): Remove.
22333         (cbranchqi4, cbranchhi4, cbranchsi4): New.
22334         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
22335
22336         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
22337         (cbranchsi4, cstorebi4, cstoresi4): New.
22338         (movbisi): This insn is duplicate, split it to zero_extend.
22339         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
22340         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
22341         (bfin_optimize_loop): Use cbranch expander.
22342         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
22343         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
22344         (bfin_bimode_comparison_operator): ... this.
22345         (bfin_direct_comparison_operator): New.
22346
22347         * config/cris/cris.c (cris_normal_notice_update_cc): Look
22348         inside (compare FOO (const_int 0)).
22349         (cris_rtx_costs): Handle ZERO_EXTRACT.
22350         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
22351         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
22352         (*tstdi_v32): Delete.
22353         (*cmpdi_non_v32): Add M alternative for operand 1.
22354         (cmpsi, cmp<mode>): Make private.
22355         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
22356         with COMPARE.
22357         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
22358
22359         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
22360         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
22361         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
22362         (cc_reg_operand): New.
22363         (any_cond): Delete.
22364         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
22365         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
22366         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
22367         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
22368         crx_expand_scond): Delete.
22369
22370         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
22371         (cbranchsi4): New.
22372         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
22373         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
22374
22375         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
22376         cstoresi4, cstoresf4, cstoredf4): New.
22377         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
22378         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22379         Receive the entire operands array.
22380         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
22381         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
22382         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22383         Get test/op0/op1 from the operands array.
22384         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
22385
22386         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
22387         (h8300_expand_store): New.
22388         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
22389         (const_int 0)).
22390         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
22391         (h8300_expand_store): New.
22392         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
22393         or do not try to produce (set (cc0) REG).
22394         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
22395         change a compare into a move to a scratch register.  Disable some
22396         peepholes when comparing with zero.
22397         (tstsi, tsthi, tstsi, cmpqi): Make private.
22398         (cmphi): Delete.
22399         (bCC, sCC): Delete.
22400         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
22401         cstoresi4): New.
22402
22403         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
22404         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
22405         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
22406         (ix86_emit_i387_log1p): Use cbranchxf2.
22407         (ix86_expand_setcc): Return void.
22408         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
22409         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
22410         cmp<MODEF>, cmpcc): Remove.
22411         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
22412         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
22413         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
22414         (sCC and bCC expanders): Remove.
22415         (stack_protect_test): Use cbranchcc4.
22416
22417         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
22418         Delete.
22419         (ia64_expand_compare): Accept three rtx by reference and return void.
22420         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
22421         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
22422         from *expr.  Update *expr with the BImode comparison to do.
22423         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
22424         cmptf, bCC, sCC, conditional_trap): Delete.
22425         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
22426         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
22427         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
22428         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
22429         * config/ia64/predicates.md (ia64_cbranch_operator): New.
22430
22431         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
22432         type of last argument.
22433         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
22434         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
22435         use machine mode argument instead of branch_type.  Remove dead
22436         code for floating-point comparisons.
22437         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
22438         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
22439         Remove.
22440         (cbranchsi4, cstoresi4): New.
22441         * config/iq2000/predicates.md (reg_or_const_operand): New.
22442
22443         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
22444         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
22445         (b<code>_op): Rewrite to...
22446         (bcc_op): ... this, using match_operator.
22447         (s<code>_op): Rewrite to...
22448         (scc_op): ... this, using match_operator.
22449         (s<code>_24_op): Rewrite to...
22450         (scc_op_24): ... this, using match_operator.
22451         (s<code>_<mode>): Rewrite to...
22452         (cstore<mode>4): ... this, using match_operator.
22453         (s<code>_<mode>_24): Rewrite to...
22454         (cstore<mode>4_24): ... this, using match_operator.
22455         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
22456         m32c_unpend_compare, m32c_expand_scc): Delete.
22457         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
22458         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
22459         (m32c_expand_movcc): Change NE to EQ if necessary.
22460         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
22461
22462         * config/m32r/m32r-protos.h (gen_cond_store): New.
22463         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
22464         (gen_cond_store): New, from sCC patterns.
22465         (m32r_expand_block_move): Use cbranchsi4.
22466         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
22467         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
22468         (cbranchsi4, cstoresi4): New.
22469
22470         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
22471         Delete.
22472         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
22473         (m68hc11_notice_update_cc): Look into a compare with 0.
22474         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
22475         Delete.
22476         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
22477         cmphi, cmpqi, bCC): Delete.
22478         (cbranchsi4, cbranchhi4, cbranchqi4): New.
22479         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
22480         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
22481         sets with COMPARE.
22482
22483         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
22484         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
22485         * config/m68k/constraints.md (H): New.
22486         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
22487         the define_insn below.
22488         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
22489         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
22490         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
22491         patterns): Wrap RHS with COMPARE.
22492         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
22493         (*cmpdi_internal): Name this pattern.
22494         (cmpdi): Change to define_insn.
22495         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
22496         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
22497         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
22498         predicate.
22499         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
22500         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
22501         (conditional_trap): Change to...
22502         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
22503         (*conditional_trap): Use the ordered_comparison_operator and
22504         const1_operand predicates.
22505         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
22506         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
22507         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
22508         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
22509
22510         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
22511         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
22512         (mcore_gen_compare): New.
22513         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
22514         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
22515         (mcore_gen_compare): ... this.
22516         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
22517         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
22518         (stack probe pattern): Use cbranchsi4.
22519
22520         * config/mips/predicates.md (mips_cstore_operator): New.
22521         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
22522         * config/mips/mips.md (any_cond): Delete.
22523         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
22524         always succeed.
22525         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
22526         fixuns_truncsfdi2): Use cbranch patterns.
22527         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
22528         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
22529         Adjust call to mips_expand_conditional_branch.
22530         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
22531         cstore<GPR:mode>4.
22532         * config/mips/mips-protos.h (mips_expand_conditional_branch,
22533         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
22534         * config/mips/mips.c (cmp_operands): Delete.
22535         (mips_emit_compare): Get comparison operands from *op0/*op1.
22536         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
22537         that it succeeds.  Use op0/op1 instead of cmp_operands.
22538         (mips_expand_conditional_branch, mips_expand_conditional_move,
22539         mips_expand_conditional_trap): Likewise.
22540         (mips_block_move_loop): Use cbranch patterns.
22541         * config/mips/mips.h (cmp_operands): Delete.
22542
22543         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
22544         (mmix_gen_compare_reg): Just return a register in the right CC mode.
22545         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
22546         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
22547         (*cmpcc_folded): Rename to...
22548         (*cmpdi_folded): this.
22549         (*cmpcc): Rename to...
22550         (*cmps): ... this.
22551         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
22552         (bCC): Remove.
22553         (cbranchdi4): New.
22554         (cbranchdf4): New.  Handle invalid comparisons here.
22555         * config/mmix/predicates.md (float_comparison_operator): New.
22556
22557         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
22558         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
22559         * config/mn10300/mn10300.md (tst): Delete.
22560         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
22561         Name these patterns and wrap RHS in a compare.
22562         (*cmpsi): Make this pattern private.  Include tst.
22563         (*cmpsf): Make this pattern private.
22564         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
22565         (compare with zero peepholes): Likewise.
22566         (bCC): Remove.
22567         (cbranchsi4, cbranchsf4): New.
22568         (casesi): Use cbranchsi4.
22569
22570         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
22571         hppa_branch_type): Delete.
22572         (return_addr_rtx): Use cbranchsi4.
22573         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
22574         Emit CCFPmode comparison here.
22575         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
22576         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
22577         hppa_branch_type): Delete.
22578         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
22579         (movsicc, movdicc): Remove references to hppa_compare_op0,
22580         hppa_compare_op1 and compare_from_rtx.
22581         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
22582         (casesi): Use cbranchsi4.
22583
22584         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
22585         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
22586         * config/pdp11/pdp11.md (register_or_const0_operand): New.
22587         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
22588         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
22589         (bCC): Delete.
22590         (cbranchdf4, cbranchhi4, cbranchqi4): New.
22591         (*branch, *branch_inverted): New.
22592
22593         * config/picochip/picochip.md (cbranchhi4): Use
22594         ordered_comparison_operator.
22595         (cmphi, bCC): Remove.
22596
22597         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
22598         (trap_comparison_operator): Delete.
22599         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
22600         rs6000_emit_cbranch): Accept mode and operands.
22601         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
22602         rs6000_compare_fp_p): Delete.
22603         (rs6000_generate_compare): Accept mode and comparison.  Extract code
22604         and op0/op1 from there.  Replace references to rs6000_compare_op0
22605         and rs6000_compare_op1.
22606         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
22607         extract result from passed operands.
22608         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
22609         extract loc from passed operands.
22610         (rs6000_emit_cmove): Likewise.
22611         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
22612         rs6000_compare_fp_p): Delete.
22613         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
22614         (cbranch<GPR>4, cbranch<FP>4): New.
22615         (cstore<mode>4): New.  Consolidate here all choices about when to use
22616         portable or specialized sCC sequences.
22617         (stack_protect_test): Use cbranchsi4.
22618         (conditional_trap): Replace with ctrap<GPR>4.
22619         (conditional trap insn): Replace trap_comparison_operator with
22620         ordered_comparison_operator.
22621
22622         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
22623         (s390_emit_prologue): Use ctrap.
22624         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
22625         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
22626         New predicates replacing...
22627         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
22628         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
22629         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
22630         (add<mode>cc): Do not use s390_compare_op0/op1.
22631         (s<code>): Change to...
22632         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
22633         (seq): Change to...
22634         (cstorecc4): ... this.  Handle EQ or NE equally.
22635         (*sne): Un-privatize for use in cstorecc4.
22636         (b<code>): Change to...
22637         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
22638         (conditional_trap): Replace with...
22639         (ctrap<GPR>4, ctrap<FP>4): ... these.
22640         (stack_protect): Use cbranchcc4.
22641
22642         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
22643         * config/score/score-protos.h (score_gen_cmp): Delete.
22644         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
22645         (score_block_move-loop): Use cbranchsi4.
22646         * config/score/score.md (cbranchsi4): New.
22647         (cmpsi, bCC): Delete.
22648         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
22649         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22650         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
22651         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22652         * config/score/score3.h (score3_gen_cmp): Delete.
22653         * config/score/score7.h (score7_gen_cmp): Delete.
22654
22655         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
22656         (sh_emit_scc_to_t): ... this.  Return void.
22657         (from_compare): Rename to...
22658         (sh_emit_compare_and_branch): ... this.
22659         (sh_emit_compare_and_set): New.
22660         (sh_expand_t_scc): Accept operands.
22661         * config/sh/predicates.md (sh_float_comparison_operator): New.
22662         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
22663         (prepare_scc_operands): Rename to...
22664         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
22665         arguments.
22666         (sh_emit_cheap_store_flag): New.
22667         (sh_emit_set_t_insn): New.
22668         (from_compare): Rename to...
22669         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
22670         handling of TARGET_SH2E floating point to avoid recursive call.
22671         Generate branch here.
22672         (sh_emit_compare_and_set): New.
22673         (sh_expand_t_scc): Get op0/op1 from arguments.
22674         (sh_emit_cheap_store_flag): New.
22675         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
22676         cases.
22677         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
22678         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
22679         (movsicc, movdicc): Do nothing when it recreated operands from
22680         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
22681         prepare_scc_operands (now sh_emit_scc_to_t).
22682         (udivdi3): Use cstoresi4.
22683         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
22684         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
22685         (cbranchint4_media, cbranchfp4_media): New.
22686         (casesi): Use cbranchdi4.
22687         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
22688         Delete.
22689         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
22690         (movnegt): Remove second operand.
22691         (cbranchsf4, cbranchdf4): New.
22692         (stack_protect): Use cbranchdi4/cbranchsi4.
22693
22694         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
22695         (gen_compare_reg): Accept comparison, extract part of it to...
22696         (gen_compare_reg_1): ... this.
22697         (gen_compare_operator): Delete.
22698         (gen_v9_scc): Accept separate destination, comparison code and arms.
22699         Do not use sparc_compare_op0/sparc_compare_op1.
22700         (emit_scc_insn, emit_conditional_branch_insn): New.
22701         (emit_v9_brxx): Make static.  Remove useless assertion.
22702         (sparc_emit_float_lib_cmp): Return RTL instead of calling
22703         emit_cmp_insn.
22704         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
22705         * config/sparc/sparc-protos.h (gen_compare_reg,
22706         sparc_emit_float_lib_cmp): Adjust prototype.
22707         (emit_scc_insn, emit_conditional_branch_insn): New.
22708         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
22709         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
22710         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
22711         iterators to the top.
22712         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
22713         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
22714         snedi_special_trunc): Delete.
22715         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
22716         and snedi_special_trunc.
22717         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
22718         cbranchdi4, cbranch<F:mode>4): New.
22719         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
22720         here.  Use gen_compare_reg instead of gen_compare_operator.
22721         (conditional_trap): Replace with...
22722         (ctrapsi4, ctrapdi4): ... this.
22723         (stack_protect_test): Use cbranchcc4.
22724
22725         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
22726         argument to rtx.
22727         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
22728         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
22729         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
22730         from operands[0] or operands[3] depending on is_set.
22731         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
22732         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
22733         cmpdf, bCC), sCC: Remove.
22734         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
22735         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
22736         cstoredf4): New.
22737         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
22738         spu_emit_branch_or_set.
22739
22740         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
22741         Add two arguments.
22742         * config/stormy16/stormy16.h (xstormy16_compare_op0,
22743         xstormy16_compare_op1): Delete.
22744         * config/stormy16/stormy16.c (xstormy16_compare_op0,
22745         xstormy16_compare_op1): Delete.
22746         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
22747         Adjust calls.
22748         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
22749         (cmphi, cmpsi, bCC): Remove.
22750
22751         * config/v850/v850.md (tstsi, cmpsi): Fold into...
22752         (*cmpsi): ... this one.
22753         (cbranchsi4, cstoresi4): New.
22754         (bCC expanders): Delete.
22755         (sCC insns): Fold into...
22756         (*setcc): ... this one.
22757         (casesi): Do not use gen_cmpsi and gen_bgtu.
22758         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
22759         (movsicc): Simplify.
22760         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
22761
22762         * config/vax/vax-protos.h (cond_name): New.
22763         (vax_output_conditional_branch): Remove.
22764         * config/vax/vax.c (cond_name): New.
22765         (vax_output_conditional_branch): Remove.
22766         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
22767         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
22768         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
22769         (bit<VAXint>): Wrap source with (compare).
22770         (b<code> and following unnamed pattern): Rename to *branch and
22771         *branch_reversed.  Change macroization to match_operator.
22772         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
22773
22774         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
22775         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
22776         Change last argument to machine_mode.
22777         (xtensa_expand_scc): Add machine_mode argument.
22778         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
22779         (gen_conditional_move, xtensa_expand_conditional_branch,
22780         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
22781         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
22782         Adjust operand numbers.
22783         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
22784         Delete.
22785         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
22786         (cmpsi, cmpsf, b<code>, s<code>): Delete.
22787         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
22788
22789 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22790
22791         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22792         causes spurious differences between trunk and cond-optab branch.
22793
22794 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22795
22796         PR target/37137
22797         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
22798
22799 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22800
22801         * tree.c (iterative_hash_pointer): Delete.
22802         (iterative_hash_expr): Short-circuit handling of NULL pointer.
22803         Hash UIDs and versions of SSA names.  Don't special-case built-in
22804         function declarations.
22805
22806 2009-05-11  Ian Lance Taylor  <iant@google.com>
22807
22808         PR bootstrap/40103
22809         * graphite.c: Force -Wc++-compat to only be a warning before
22810         #including "cloog/cloog.h".
22811
22812 2009-05-11  Martin Jambor  <mjambor@suse.cz>
22813
22814         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
22815
22816 2009-05-11  Jan Hubicka  <jh@suse.cz>
22817
22818         * tree-ssa-loop-ivcanon.c: Include target.h
22819         (struct loop_size): new structure.
22820         (constant_after_peeling): New predicate.
22821         (tree_estimate_loop_size): New function.
22822         (estimated_unrolled_size): Rewrite for new estimates.
22823         (try_unroll_loop_completely): Use new estimates.
22824         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
22825
22826 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22827
22828         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
22829         libcpp interface change.
22830         (spu_macro_to_expand): Likewise.
22831
22832 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
22833
22834         PR tree-optimization/40026
22835         * gimplify.c (gimplify_init_constructor): Change initial conditional
22836         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
22837         optimize_compound_literals_in_ctor.
22838
22839 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
22840
22841         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
22842         New devices.
22843         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
22844
22845 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
22846
22847         * tree-vect-data-refs.c (vect_analyze_group_access): Use
22848         HOST_WIDE_INT for gap.
22849
22850 2009-05-11  Ira Rosen  <irar@il.ibm.com>
22851
22852         PR tree-optimization/40074
22853         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
22854         account in group size and step comparison.
22855
22856 2009-05-11  Richard Guenther  <rguenther@suse.de>
22857
22858         * passes.c (init_optimization_passes): Strip now incorrect comment.
22859         (execute_function_todo): Do not set PROP_alias.
22860         * tree-pass.h (PROP_alias): Remove.
22861         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
22862         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
22863         * tree-nrv.c (pass_return_slot): Likewise.
22864         * tree-object-size.c (pass_object_sizes): Likewise.
22865         * tree-ssa-dom.c (pass_dominator): Likewise.
22866         (pass_phi_only_cprop): Likewise.
22867         * tree-ssa-dse.c (pass_dse): Likewise.
22868         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
22869         (pass_cselim): Likewise.
22870         * tree-ssa-pre.c (pass_pre): Likewise.
22871         (pass_fre): Likewise.
22872         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22873         * tree-ssa-sink.c (pass_sink_code): Likewise.
22874         * tree-stdarg.c (pass_stdarg): Likewise.
22875         * tree-tailcall.c (pass_tail_calls): Likewise.
22876         * tree-vrp.c (pass_vrp): Likewise.
22877
22878 2009-05-10  Ian Lance Taylor  <iant@google.com>
22879
22880         * basic-block.h (enum profile_status): Break out of struct
22881         control_flow_graph.
22882         * cgraph.h (struct inline_summary): Break out of struct
22883         cgraph_local_info.
22884         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
22885         of struct cgraph_order_sort.
22886         * combine.c (enum undo_kind): New enum, broken out of struct undo.
22887         * cse.c (struct branch_path): Break out of struct
22888         cse_basic_block_data.
22889         * except.h (enum eh_region_type): Break out of struct eh_region.
22890         * gcc.c (enum add_del): Break out of struct modify_target.
22891         * genrecog.c (enum decision_type): Break out of struct decision_test.
22892         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
22893         ggc_pch_data.
22894         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
22895         * regmove.c (enum match_use): New enum, broken out of struct match.
22896         * sched-int.h (enum post_call_group): New enum, broken out of
22897         struct deps.
22898         (struct deps_reg): Break out of struct deps.
22899         * target.h (struct asm_int_op): Break out of struct gcc_target.
22900         * tree-eh.c (struct goto_queue_node): Break out of struct
22901         leh_tf_state.
22902         * tree-inline.h (enum copy_body_cge_which): Break out of
22903         copy_body_data.
22904         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
22905
22906         * c-decl.c (in_struct, struct_types): New static variables.
22907         (pushtag): Add loc parameter.  Change all callers.
22908         (lookup_tag): Add ploc parameter.  Change all callers.
22909         (check_compound_literal_type): New function.
22910         (parser_xref_tag): Add loc parameter.  Change all callers.  If
22911         -Wc++-compat, warn about struct/union/enum types defined within a
22912         struct or union.
22913         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
22914         and loc parameters.  Change all callers.  Change error calls to
22915         error_at, using loc.  For a redefinition, if the location of the
22916         original definition is known, report it.  Set in_struct and
22917         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
22918         (finish_struct): Add new parameters enclosing_in_struct and
22919         enclosing_struct_types.  Change all callers.  Set
22920         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
22921         in the struct.  If in a struct, add this struct to struct_types.
22922         (start_enum): Add loc parameter.  Change all callers.  Use
22923         error_at for errors, using loc.  For a redefinition, if the
22924         location of the original definition is known, report it.  If in a
22925         struct, add this enum type to struct_types.  If -Wc++-compat warn
22926         if in sizeof, typeof, or alignof.
22927         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
22928         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
22929         (c_parser_enum_specifier): Get enum location for start_enum.
22930         (c_parser_struct_or_union_specifier): Get struct location for
22931         start_struct.  Save in_struct and struct_types status between
22932         start_struct and finish_struct.
22933         (c_parser_cast_expression): Get location of cast.
22934         (c_parser_alignof_expression): Get location of type.
22935         (c_parser_postfix_expression): Likewise.
22936         (c_parser_postfix_expression_after_paren_type): Add type_loc
22937         parameter.  Change all callers.  Call check_compound_literal_type.
22938         Use type_loc for error about variable size type.
22939         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
22940         of an enum constant from an enum type defined in a struct or union.
22941         (c_cast_expr): Add loc parameter.  Change all callers.  If
22942         -Wc++-compat, warn about defining a type in a cast.
22943         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
22944         (start_enum, start_struct, finish_struct): Update declarations.
22945         (parser_xref_tag, c_cast_expr): Update declarations.
22946         (check_compound_literal_type): Declare.
22947
22948 2009-05-11  Ben Elliston  <bje@au.ibm.com>
22949
22950         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
22951         for recent libcpp interface change.
22952         (rs6000_macro_to_expand): Likewise.
22953
22954 2009-05-10  Michael Matz  <matz@suse.de>
22955
22956         PR target/40031
22957         * config/arm/arm.c (require_pic_register): Emit on entry edge,
22958         not at entry of function.
22959
22960 2009-05-10  Richard Guenther  <rguenther@suse.de>
22961
22962         PR tree-optimization/40081
22963         Revert
22964         * tree-sra.c (instantiate_element): Instantiate scalar replacements
22965         using the main variant of the element type.  Do not fiddle with
22966         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
22967
22968         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
22969         structs with volatile fields.
22970
22971 2009-05-10  Jan Hubicka  <jh@suse.cz>
22972
22973         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
22974         (estimate_move_cost): Assert that it does not get called for
22975         VOID_TYPE_P.
22976         (estimate_num_insns): Skip VOID types in argument handling.
22977         (optimize_inline_calls): Delete unreachable blocks and verify that
22978         callgraph is valid.
22979
22980 2009-05-10  Jan Hubicka  <jh@suse.cz>
22981
22982         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
22983         * cgraph.c (cgraph_mark_address_taken_node): New function.
22984         (dump_cgraph_node): Dump new flag.
22985         * cgraph.h (struct cgraph_node): Add address_taken.
22986         (cgraph_mark_address_taken_node): New function.
22987         * ipa.c (cgraph_postorder): Prioritize functions with address taken
22988         since new direct calls can be born.
22989
22990 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
22991
22992         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
22993         tok->val.node.node.
22994
22995 2009-05-10  Jan Hubicka  <jh@suse.cz>
22996
22997         PR middle-end/40084
22998         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
22999         argument; rewrite.
23000         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
23001         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
23002         * tree-inline.c (copy_bb): Set frequency correctly.
23003         (fold_marked_statements): Update call to
23004         cgraph_update_edges_for_call_stmt.
23005
23006 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23007
23008         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
23009         identifiers in diagnostics.
23010         * config/arm/arm.c (arm_handle_fndecl_attribute,
23011         arm_handle_isr_attribute): Likewise.
23012         * config/avr/avr.c (avr_handle_progmem_attribute,
23013         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
23014         * config/bfin/bfin.c (handle_int_attribute,
23015         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
23016         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
23017         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
23018         Likewise.
23019         * config/darwin.c (darwin_handle_kext_attribute,
23020         darwin_handle_weak_import_attribute): Likewise.
23021         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
23022         h8300_handle_eightbit_data_attribute,
23023         h8300_handle_tiny_data_attribute): Likewise.
23024         * config/i386/i386.c (ix86_handle_cconv_attribute,
23025         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
23026         * config/i386/winnt.c (ix86_handle_shared_attribute,
23027         ix86_handle_selectany_attribute): Likewise.
23028         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
23029         * config/m32c/m32c.c (function_vector_handler): Likewise.
23030         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
23031         m68hc11_handle_fntype_attribute): Likewise.
23032         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
23033         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
23034         * config/mips/mips.c (mips_insert_attributes,
23035         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
23036         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
23037         rs6000_handle_struct_attribute): Likewise.
23038         * config/sh/sh.c (sh_insert_attributes,
23039         sh_handle_resbank_handler_attribute,
23040         sh_handle_interrupt_handler_attribute,
23041         sh2a_handle_function_vector_handler_attribute,
23042         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
23043         Likewise.
23044         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
23045         * config/spu/spu.c (spu_handle_fndecl_attribute,
23046         spu_handle_vector_attribute): Likewise.
23047         * config/stormy16/stormy16.c
23048         (xstormy16_handle_interrupt_attribute): Likewise.
23049         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
23050         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
23051
23052 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23053
23054         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
23055         (pp_translate_identifiers): New.
23056         (pp_identifier): Only conditionally translate identifier to locale
23057         character set.
23058         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
23059         (pp_base_tree_identifier): Only conditionally translate identifier
23060         to locale character set.
23061         * c-pretty-print.c (M_): Define.
23062         (pp_c_type_specifier, pp_c_primary_expression): Mark English
23063         fragments for conditional translation with M_.
23064         * tree-pretty-print.c (maybe_init_pretty_print): Disable
23065         identifier translation.
23066
23067 2009-05-10  Richard Guenther  <rguenther@suse.de>
23068
23069         PR tree-optimization/40081
23070         * tree-sra.c (instantiate_element): Instantiate scalar replacements
23071         using the main variant of the element type.  Do not fiddle with
23072         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23073
23074 2009-05-09  Jan Hubicka  <jh@suse.cz>
23075
23076         PR middle-end/40080
23077         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
23078         indirect calls; verify cgraph afterwards.
23079
23080 2009-05-09  Jan Hubicka  <jh@suse.cz>
23081
23082         PR bootstrap/40082
23083         * ipa.c (update_inlined_to_pointer): New function.
23084         (cgraph_remove_unreachable_nodes): Use it.
23085
23086 2009-05-09  Jan Hubicka  <jh@suse.cz>
23087
23088         * tree-eh.c (struct leh_state): Remove prev_try.
23089         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
23090         not track prev_try.
23091         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
23092         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
23093         remove_eh_handler_and_replace, foreach_reachable_handler,
23094         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
23095         * except.h (struct eh_region): Remove eh_region_u_cleanup.
23096         (gen_eh_region_cleanup): Update prototype.
23097
23098 2009-05-09  Jan Hubicka  <jh@suse.cz>
23099
23100         PR middle-end/40043
23101         * except.c (copy_eh_region): Always set prev_try.
23102         (redirect_eh_edge_to_label): Find outer try.
23103         (foreach_reachable_handler): When looking for prev try
23104         handle case where previous try is not going to be taken.
23105
23106 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
23107
23108         PR tree-optimization/40049
23109         * tree-vect-stmts.c (vectorizable_operation): If the machine has
23110         only vector/vector shifts, convert the type of the constant to the
23111         appropriate type to avoid building incorrect trees, which
23112         eventually have problems with garbage collection.
23113
23114 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23115
23116         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
23117         -1 for complex floating-point types if honoring signed zeros.
23118
23119 2009-05-08  Jan Hubicka  <jh@suse.cz>
23120
23121         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
23122         argument; handle correctly when profile is absent.
23123         (build_cgraph_edges): Update.
23124         (rebuild_cgraph_edges): Update.
23125         * cgraph.c: Do not include varray.h.
23126         (cgraph_set_call_stmt_including_clones): New function.
23127         (cgraph_create_edge_including_clones): Likewise
23128         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
23129         (cgraph_update_edges_for_call_stmt): Handle clones.
23130         (cgraph_remove_node): Handle clone tree.
23131         (cgraph_remove_node_and_inline_clones): New function.
23132         (dump_cgraph_node): Dump clone tree.
23133         (cgraph_clone_node): Handle clone tree.
23134         (clone_function_name): Bring here from tree-inline.c.
23135         (cgraph_create_virtual_clone): New function.
23136         * cgraph.h (ipa_replace_map): Move here from ipa.h.
23137         (cgraph_clone_info): New function.
23138         (strut cgraph_node): Add clone_info and new clone tree pointers.
23139         (cgraph_remove_node_and_inline_clones,
23140         cgraph_set_call_stmt_including_clones,
23141         cgraph_create_edge_including_clones,
23142         cgraph_create_virtual_clone): Declare.
23143         (cgraph_function_versioning): Use VEC argument.
23144         (compute_call_stmt_bb_frequency): Update prototype.
23145         (cgraph_materialize_all_clones): New function.
23146         * ipa-cp.c (ipcp_update_cloned_node): Remove.
23147         (ipcp_create_replace_map): Update to VECtors.
23148         (ipcp_update_callgraph): Use virtual clones.
23149         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
23150         (ipcp_update_profiling): Do not update local profiling.
23151         (ipcp_insert_stage): Use VECtors and virtual clones.
23152         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
23153         (clone_of_p): New function.
23154         (cgraph_preserve_function_body_p): Use clone tree.
23155         (cgraph_optimize): Materialize clones.
23156         (cgraph_function_versioning): Update for VECtors.
23157         (save_inline_function_body): Use clone tree.
23158         (cgraph_materialize_clone): New function.
23159         (cgraph_materialize_all_clones): Likewise.
23160         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
23161         * ipa.c: Include gimple.h.
23162         (cgraph_remove_unreachable_nodes): Use clone tree.
23163         * ipa-prop.c (ipa_note_param_call): Update call to
23164         compute_call_stmt_bb_frequencycall.
23165         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
23166         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
23167         (copy_bb): Handle updating of clone tree; add new edge when new call
23168         appears.
23169         (expand_call_inline): Be strict about every call having edge.
23170         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
23171         (delete_unreachable_blocks_update_callgraph): New function.
23172         (tree_function_versioning): Use VECtors; always remove unreachable
23173         blocks and fold conditionals.
23174         * tree-inline.h: Do not include varray.h.
23175         (tree_function_versioning): Remove.
23176         * Makefile.in (GTFILES): Remove tree-inline.c
23177         * passes.c (do_per_function): Do only functions having body.
23178         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
23179         tree.
23180
23181 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23182             Andrew Morrow  <acm@google.com>
23183
23184         PR c/36892
23185         * c-common.c (c_common_attribute_table): Permit deprecated
23186         attribute to take an optional argument.
23187         (handle_deprecated_attribute): If the optional argument to
23188         __attribute__((deprecated)) is not a string ignore the attribute
23189         and emit a warning.
23190
23191         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
23192         * c-typeck.c (build_component_ref): Likewise.
23193         (build_external_ref): Likewise.
23194
23195         * toplev.c (warn_deprecated_use): Add an attribute argument.
23196         Emit the message associated with __attribute__((deprecated)).
23197
23198         * toplev.h (warn_deprecated_use): Updated.
23199
23200         * doc/extend.texi: Document new optional parameter to
23201         __attribute__((deprecated))
23202
23203 2009-05-08  Michael Eager <eager@eagercon.com>
23204
23205         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
23206         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
23207
23208 2009-05-08  Richard Guenther  <rguenther@suse.de>
23209
23210         PR tree-optimization/40062
23211         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
23212         Avoid exponential behavior.
23213
23214 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23215
23216         PR rtl-optimization/33928
23217         PR 26854
23218         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
23219         process_uses, build_single_def_use_links): New.
23220         (update_df): Update use_def_ref.
23221         (forward_propagate_into): Use get_def_for_use instead of use-def
23222         chains.
23223         (fwprop_init): Call build_single_def_use_links and let it initialize
23224         dataflow.
23225         (fwprop_done): Free use_def_ref.
23226         (fwprop_addr): Eliminate duplicate call to df_set_flags.
23227         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
23228         df_rd_simulate_one_insn): New.
23229         (df_rd_bb_local_compute_process_def): Update head comment.
23230         (df_chain_create_bb): Use the new RD simulation functions.
23231         * df.h (df_rd_simulate_artificial_defs_at_top,
23232         df_rd_simulate_one_insn): New.
23233         * opts.c (decode_options): Enable fwprop at -O1.
23234         * doc/invoke.texi (-fforward-propagate): Document this.
23235
23236 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23237
23238         PR c/24581
23239         * c-typeck.c (build_binary_op): Handle arithmetic between one real
23240         and one complex operand specially.
23241         * tree-complex.c (some_nonzerop): Do not identify a real value as
23242         zero if flag_signed_zeros.
23243
23244 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23245
23246         PR rtl-optimization/33928
23247         * loop-invariant.c (record_use): Fix && vs. || mishap.
23248
23249 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23250
23251         PR rtl-optimization/33928
23252         * loop-invariant.c (struct use): Add addr_use_p.
23253         (struct def): Add n_addr_uses.
23254         (struct invariant): Add cheap_address.
23255         (create_new_invariant): Set cheap_address.
23256         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
23257         (record_uses): Pass df_ref to record_use.
23258         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
23259         used only as such.
23260
23261 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23262
23263         * config/sh/sh.c: Do not include c-pragma.h.
23264
23265 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23266
23267         * config/spu/spu.c: Remove include of c-common.h.
23268
23269 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
23270
23271         PR c/39037
23272         * c-common.h (mark_valid_location_for_stdc_pragma,
23273         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
23274         clear_float_const_decimal64, float_const_decimal64_p): New.
23275         * c.opt (Wunsuffixed-float-constants): New.
23276         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
23277         unsuffixed float constant, handle new warning.
23278         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
23279         * c-decl.c (c_scope): New flag float_const_decimal64.
23280         (set_float_const_decimal64, clear_float_const_decimal64,
23281         float_const_decimal64_p): New.
23282         (push_scope): Set new flag.
23283         * c-parser.c (c_parser_translation_unit): Mark when it's valid
23284         to use STDC pragmas.
23285         (c_parser_external_declaration): Ditto.
23286         (c_parser_compound_statement_nostart): Ditto.
23287         * c-pragma.c (valid_location_for_stdc_pragma,
23288         mark_valid_location_for_stdc_pragma,
23289         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
23290         handle_pragma_float_const_decimal64): New.
23291         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
23292         * cp/semantics.c (valid_location_for_stdc_pragma_p,
23293         set_float_const_decimal64, clear_float_const_decimal64,
23294         float_const_decimal64_p): New dummy functions.
23295         * doc/extend.texi (Decimal Float): Remove statement that the
23296         pragma, and suffix for double constants, are not supported.
23297         * doc/invoke.texi (Warning Options): List new option.
23298         (-Wunsuffixed-float-constants): New.
23299
23300 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
23301
23302         * config/i386/i386.c: Do not include c-common.h.
23303
23304 2009-05-07  Mark Heffernan  <meheff@google.com>
23305
23306         * doc/invoke.texi (Debugging Options): Document change of debugging
23307         dump location.
23308         * opts.c (decode_options): Make dump_base_name relative to
23309         aux_base_name directory.
23310
23311 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
23312
23313         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
23314         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
23315
23316 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
23317
23318         * Makefile.in (install-plugin): Simplify a bit.
23319
23320 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
23321
23322         * Makefile.in (OBJS-common): Add regcprop.o.
23323         (regcprop.o): New.
23324         * timevar.def (TV_CPROP_REGISTERS): New.
23325         * regrename.c (regrename_optimize): Return 0.
23326         (rest_of_handle_regrename): Delete.
23327         (pass_rename_registers): Point to regrename_optimize.
23328         (struct value_data_entry, struct value_data,
23329         kill_value_one_regno, kill_value_regno, kill_value,
23330         set_value_regno, init_value_data, kill_clobbered_value,
23331         kill_set_value, kill_autoinc_value, copy_value,
23332         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
23333         replace_oldest_value_reg, replace_oldest_value_addr,
23334         replace_oldest_value_mem, copyprop_hardreg_forward_1,
23335         debug_value_data, validate_value_data): Move...
23336         * regcprop.c: ... here.
23337         (rest_of_handle_cprop): Delete.
23338         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
23339
23340 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
23341
23342         PR middle-end/40057
23343         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
23344         GEN_INT for 1 << bitnum.
23345         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
23346         build_int_cst_type.
23347
23348 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
23349
23350         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
23351         Remove wrong description of "nand" operation.
23352
23353 2009-05-06  Richard Guenther  <rguenther@suse.de>
23354             Adam Nemet  <anemet@caviumnetworks.com>
23355
23356         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
23357         comment.  Add that if LHS is not a gimple register, then RHS1 has
23358         to be a single object (GIMPLE_SINGLE_RHS).
23359
23360 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
23361
23362         * expr.c (get_def_for_expr): Move it up in the file.
23363         (store_field): When expanding a bit-field store, look at the
23364         defining gimple stmt for the masking conversion.
23365
23366 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
23367
23368         PR middle-end/39986
23369         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
23370         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
23371         32-bit memcpy into long.
23372
23373 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
23374
23375         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
23376         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
23377         new_reg_loc_descr.
23378         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
23379         instead of appending DW_OP_deref*.
23380
23381 2009-05-06  Michael Matz  <matz@suse.de>
23382
23383         PR middle-end/40021
23384         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
23385         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
23386
23387 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
23388
23389         * Makefile.in (install-plugin): Fix srcdir handling.
23390
23391 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
23392
23393         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
23394         when processing for not_regs_needed bitmap.
23395         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
23396         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
23397         handling it for rhs.
23398
23399 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23400
23401         * config/i386/i386.md (unnamed inc/dec peephole): Use
23402         optimize_insn_for_size_p instead of optimize_size.
23403         * config/i386/predicates.md (incdec_operand): Likewise.
23404         (aligned_operand): Likewise.
23405         * config/i386/sse.md (divv8sf3): Likewise.
23406         (sqrtv8sf2): Likewise.
23407
23408 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23409
23410         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
23411
23412         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
23413
23414 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23415
23416         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
23417         ssemodesuffixf2c with avxmodesuffixf2c.
23418
23419 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
23420
23421         PR c/40032
23422         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
23423
23424 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
23425
23426         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
23427         (struct tree_base): Adjust spacing for 8 bit boundaries.
23428         (struct tree_decl_common): Add decl_by_reference_flag bit.
23429         (DECL_BY_REFERENCE): Adjust.
23430         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
23431         print DECL_BY_REFERENCE bit.
23432         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
23433         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
23434         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
23435         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
23436         unconditionally.
23437
23438         PR middle-end/39666
23439         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
23440         range of the type, but default label is missing, add it with one
23441         of the existing labels instead of adding a new label for it.
23442
23443 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
23444
23445         * dwarf.h: Remove.
23446
23447 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
23448
23449         * Makefile.in (enable_plugin, plugin_includedir): New.
23450         (install): Depend on install-plugin.
23451         (PLUGIN_HEADERS): New.
23452         (install-plugin): New.
23453         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
23454
23455 2009-05-05  Richard Guenther  <rguenther@suse.de>
23456
23457         PR tree-optimization/40022
23458         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
23459         the only vuse.
23460         (phivn_valid_p): Fix tuplification error, simplify.
23461         (phiprop_insert_phi): Add dumps.
23462         (propagate_with_phi): Simplify.
23463
23464 2009-05-05  Richard Guenther  <rguenther@suse.de>
23465
23466         PR middle-end/40023
23467         * builtins.c (gimplify_va_arg_expr): Properly build the address.
23468
23469 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
23470
23471         * tree.h (strip_float_extensions): Remove duplicate declaration.
23472         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
23473         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
23474         block_ultimate_origin): Rearrange the declarations line to match the
23475         comment that indicates the .c file which the functions are defined.
23476         (dwarf2out_*, set_decl_rtl): Add comment.
23477         (get_base_address): Adjust comment.
23478         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
23479         declarations line and add comment.
23480         (is_builtin_name): Add blank after function name, for clarity.
23481
23482 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23483
23484         * attribs.c (decl_attributes): Use %qE for identifiers in
23485         diagnostics.
23486         * cgraphunit.c (verify_cgraph_node): Translate function names to
23487         locale character set in diagnostics.
23488         * coverage.c (get_coverage_counts): Use %qE for identifiers in
23489         diagnostics.
23490         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
23491         Document that functions are named in UTF-8.
23492         * expr.c (expand_expr_real_1): Translate function names to locale
23493         character set in diagnostics.
23494         * gimplify.c (omp_notice_variable, omp_is_private,
23495         gimplify_scan_omp_clauses): Use %qE for identifiers in
23496         diagnostics.
23497         * langhooks.c (lhd_print_error_function): Translate function names
23498         to locale character set.
23499         * langhooks.h (decl_printable_name): Document that return value is
23500         in internal character set.
23501         * stmt.c: Include pretty-print.h
23502         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
23503         diagnostics.
23504         (resolve_operand_name_1): Translate named operand name to locale
23505         character set.
23506         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
23507         diagnostics.
23508         * toplev.c (announce_function): Translate function names to locale
23509         character set.
23510         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
23511         (default_tree_printer): Use pp_identifier or translate identifiers
23512         to locale character set.  Mark "<anonymous>" for translation.
23513         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
23514         for identifiers in diagnostics.
23515         * tree.c (handle_dll_attribute): Use %qE for identifiers in
23516         diagnostics.
23517         * varasm.c (output_constructor): Use %qE for identifiers in
23518         diagnostics.
23519
23520 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
23521
23522         * configure.ac: use ` ` instead of $()
23523         * configure: Regenerate.
23524
23525 2009-05-05  Ben Elliston  <bje@au.ibm.com>
23526
23527         * config/pa/linux-atomic.c: Eliminate conditional include of
23528         errno.h on non-LP64 systems to simplify build requirements.
23529
23530 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23531
23532         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
23533         diagnostics.
23534         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
23535         and pass value to identifier_to_locale.
23536         (warn_variable_length_array): Make name a tree.
23537         (grokdeclarator): Separate diagnostic texts for named and unnamed
23538         declarators.  Use %qE for named declarators.
23539         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
23540         diagnostics.
23541         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
23542         identifiers in diagnostics.
23543         * c-typeck.c (push_member_name, start_init): Pass identifiers to
23544         identifier_to_locale.  Mark "anonymous" strings for translation.
23545
23546 2009-05-04  Michael Eager <eager@eagercon.com>
23547
23548         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
23549         address for DImode/DFmode only if double-precision FP regs.
23550
23551 2009-05-04  Michael Eager <eager@eagercon.com>
23552
23553         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
23554         TARGET_SINGLE_FLOAT check.
23555
23556 2009-05-04  Michael Eager <eager@eagercon.com>
23557
23558         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
23559
23560 2009-05-04  Michael Eager <eager@eagercon.com>
23561
23562         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
23563         * config/rs6000/t-xilinx: New
23564
23565 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
23566
23567         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
23568         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
23569         * gcc/explow.c (memory_address): Use target hook.
23570         * gcc/targhooks.c (default_legitimize_address): New.
23571         * gcc/targhooks.h (default_legitimize_address): New.
23572         * gcc/target.h (legitimize_address): New.
23573         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
23574         (TARGET_INITIALIZER): Include it.
23575         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
23576
23577         * config/bfin/bfin-protos.h (legitimize_address): Remove.
23578         * config/bfin/bfin.c (legitimize_address): Remove.
23579         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
23580         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
23581         Remove.
23582         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
23583         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
23584
23585         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
23586         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
23587         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
23588         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
23589         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
23590         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
23591         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
23592         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
23593         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
23594         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
23595         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
23596         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
23597         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
23598         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
23599         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
23600         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
23601         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
23602         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
23603         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
23604         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
23605         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
23606         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
23607         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
23608
23609         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
23610         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
23611         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
23612         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
23613         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
23614         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
23615         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
23616         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
23617         (thumb_legitimize_address): Delete.
23618         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
23619         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
23620         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
23621         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
23622         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
23623         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
23624         Delete.
23625         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
23626         Delete.
23627
23628         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
23629         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
23630         * config/m32r/m32r.c (m32r_legitimize_address): New.
23631         * config/m68k/m68k.c (m68k_legitimize_address): New.
23632         * config/score/score.c (score_legitimize_address): Standardize.
23633         * config/score/score3.c (score3_legitimize_address): Standardize.
23634         * config/score/score3.h (score3_legitimize_address): Adjust.
23635         * config/score/score7.c (score7_legitimize_address): Standardize.
23636         * config/score/score7.h (score7_legitimize_address): Adjust.
23637         * config/sh/sh.c (sh_legitimize_address): New.
23638         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
23639
23640         * gcc/config/s390/s390.c (legitimize_address): Rename to...
23641         (s390_legitimize_address): ... this.
23642         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
23643         (sparc_legitimize_address): ... this.
23644         * gcc/config/i386/i386.c (legitimize_address): Rename to...
23645         (ix86_legitimize_address): ... this.
23646         * gcc/config/avr/avr.c (legitimize_address): Rename to...
23647         (avr_legitimize_address): ... this.
23648         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
23649         (mn10300_legitimize_address): ... this.
23650         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
23651         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
23652         (alpha_expand_mov): Adjust call.
23653
23654         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
23655         * config/spu/spu.c (spu_legitimize_address): Likewise.
23656         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
23657         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
23658
23659 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23660
23661         * intl.c (locale_encoding, locale_utf8): New.
23662         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
23663         * intl.h (locale_encoding, locale_utf8): Declare.
23664         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
23665         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
23666         New.
23667         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
23668         argument.
23669         (pp_tree_identifier): Define to call pp_base_tree_identifier.
23670         (pp_base_tree_identifier): Declare as function.
23671         (identifier_to_locale): Declare.
23672         * Makefile.in (pretty-print.o): Update dependencies.
23673         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
23674
23675 2009-05-04  Richard Guenther  <rguenther@suse.de>
23676
23677         PR middle-end/40015
23678         * builtins.c (fold_builtin_memory_op): Do not decay to element
23679         type if the size matches the whole array.
23680
23681 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23682
23683         * expmed.c (synth_mult): When trying out a shift, pass the result
23684         of a signed shift.
23685
23686 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23687
23688         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
23689         (shiftsub1_cost): New.
23690         (init_expmed): Compute shiftsub1_cost.
23691         (synth_mult): Optimize multiplications by constants of the form
23692         -(2^^m-1) for some constant positive integer m.
23693
23694 2009-05-03  Richard Guenther  <rguenther@suse.de>
23695
23696         PR c/39983
23697         * c-typeck.c (array_to_pointer_conversion): Do not built
23698         ADDR_EXPRs of arrays of pointer-to-element type.
23699         * c-gimplify.c (c_gimplify_expr): Revert change fixing
23700         up wrong ADDR_EXPRs after-the-fact.
23701         * c-common.c (strict_aliasing_warning): Strip pointer
23702         conversions for obtaining the original type.
23703         * builtins.c (fold_builtin_memset): Handle array types.
23704         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
23705         and array types
23706
23707 2009-05-03  Richard Guenther  <rguenther@suse.de>
23708
23709         PR middle-end/23329
23710         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
23711         Do not lose casts from array types with unknown extent to array
23712         types with known extent.
23713         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
23714         alias set compatibility.
23715
23716 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23717
23718         * flags.h (extra_warnings): Delete.
23719         * toplev.c (process_options): Handle Wuninitialized here.
23720         * opts.c (extra_warnings): Delete.
23721         (set_Wextra): Delete.
23722         (common_handle_option): -Wextra can be handled automatically.
23723         * c-opts.c (c_common_handle_option): Delete obsolete code.
23724         (c_common_post_options): Simplify comment.
23725         * common.opt (W): Add Var.
23726         (Wextra): Add Var.
23727         (Wuninitialized): Initialize to -1.
23728
23729 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
23730             Richard Guenther  <rguenther@suse.de>
23731
23732         * expr.c (get_def_for_expr): New function.
23733         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
23734         SSA rather than trees.
23735         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
23736         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
23737
23738 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
23739
23740         * c-common.c (reswords): Add _Imaginary.
23741         * c-common.c (enum rid): Add RID_IMAGINARY.
23742
23743 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
23744
23745         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
23746         Patch by Richard Guenther.
23747
23748 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
23749
23750         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
23751         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
23752         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
23753         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
23754         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
23755         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
23756         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
23757         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
23758         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
23759         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
23760         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
23761         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
23762         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
23763         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
23764         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
23765         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
23766         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
23767         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
23768
23769 2009-05-02  Richard Guenther  <rguenther@suse.de>
23770
23771         PR tree-optimization/39940
23772         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
23773         doing so.
23774
23775 2009-05-02  Richard Guenther  <rguenther@suse.de>
23776
23777         PR middle-end/40001
23778         * tree-ssa.c (execute_update_addresses_taken): Properly check
23779         if we can mark a variable DECL_GIMPLE_REG_P.
23780         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
23781         back to the end of the function.
23782         (is_gimple_reg_type): Remove complex type special casing.
23783         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
23784         if not optimizing.
23785
23786 2009-05-02  Ben Elliston  <bje@au.ibm.com>
23787
23788         * doc/collect2.texi (Collect2): Document search path behaviour
23789         when configured with --with-ld.
23790
23791 2009-05-02  Jan Hubicka  <jh@suse.cz>
23792
23793         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
23794         parameter; update callers.
23795         (coalesce_cost_edge): EH edges are costier because they needs
23796         splitting even if not critical and even more costier when there are
23797         multiple EH predecestors.
23798
23799 2009-05-02  Jan Hubicka  <jh@suse.cz>
23800
23801         * except.c (remove_eh_handler_and_replace): Handle updating after
23802         removing TRY blocks.
23803
23804 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
23805
23806         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
23807
23808 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
23809
23810         * varasm.c: Do not include c-pragma.h.
23811         * attribs.c: Do not incude c-common.h.
23812
23813 2009-05-01  Michael Matz  <matz@suse.de>
23814
23815         * calls.c (initialize_argument_information): Handle SSA names like
23816         decls with a non MEM_P DECL_RTL.
23817
23818 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23819
23820         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
23821         * ipa-utils.c: Likewise.
23822         * ipa-type-escape.c: Likewise.
23823         * cgraphunit.c Do not include c-common.h.
23824         * ipa-pure-const.c: Likewise.
23825         * tree-if-conv.c: Likewise.
23826         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
23827         * ipa-struct-reorg.c: Likewise.
23828         * tree-nomudflap.c: Likewise.
23829         * tree-ssa-structalias.c: Likewise.
23830
23831 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23832
23833         * store-motion.c: Many cleanups to make this pass a first-class
23834         citizen instead of an appendix to gcse load motion.  Add TODO list
23835         to make this pass faster/cleaner/better.
23836
23837         (struct ls_expr): Post gcse.c-split cleanups.
23838         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
23839         "stores" field to "avail_stores".
23840         (pre_ldst_mems): Rename to store_motion_mems.
23841         (pre_ldst_table): Rename to store_motion_mems_table.
23842         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
23843         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
23844         (ldst_entry): Rename to st_expr_entry, update users.
23845         (free_ldst_entry): Rename to free_st_expr_entry, update users.
23846         (free_ldst_mems): Rename to free_store_motion_mems, update users.
23847         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
23848         update caller.
23849         (first_ls_expr): Rename to first_st_expr, update users.
23850         (next_ls_expr): Rename to next_st_expr, update users.
23851         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
23852         fields properly for store motion instead of names inherited from load
23853         motion in gcse.c.
23854         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
23855         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
23856         are done with it.
23857
23858         (ae_kill): Rename to st_kill, update users.
23859         (ae_gen): Rename to st_avloc, update users.
23860         (transp): Rename to st_transp, update users.
23861         (pre_insert_map): Rename to st_insert_map, update users.
23862         (pre_delete_map): Rename to st_delete_map, update users.
23863         (insert_store, build_store_vectors, free_store_memory,
23864         one_store_motion_pass): Update for abovementioned changes.
23865
23866         (gcse_subst_count, gcse_create_count): Remove.
23867         (one_store_motion_pass): New statistics counters "n_stores_deleted"
23868         and "n_stores_created", local variables.
23869
23870         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
23871         use for_each_rtx.
23872
23873         (regvec, compute_store_table_current_insn): Remove.
23874         (reg_set_info, reg_clear_last_set): Remove.
23875         (compute_store_table): Use DF caches instead of local dataflow
23876         solvers.
23877
23878 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
23879
23880         * c-objc-common.c (c_tree_printer): Print identifiers with
23881         pp_identifier, not pp_string.  Mark "({anonymous})" for
23882         translation.
23883         * c-pretty-print.c (pp_c_ws_string): New.
23884         (pp_c_cv_qualifier, pp_c_type_specifier,
23885         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
23886         pp_c_storage_class_specifier, pp_c_function_specifier,
23887         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
23888         pp_c_primary_expression, pp_c_postfix_expression,
23889         pp_c_unary_expression, pp_c_shift_expression,
23890         pp_c_relational_expression, pp_c_equality_expression,
23891         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
23892         use pp_string and pp_c_ws_string in place of pp_identifier and
23893         pp_c_identifier for non-identifiers.  Mark English strings for
23894         translation.
23895         * c-pretty-print.h (pp_c_ws_string): Declare.
23896
23897 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
23898             Roland McGrath <roland@redhat.com>
23899
23900         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
23901         (ENABLE_LD_BUILDID): New configuration option.
23902         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
23903         (LINK_BUILDID_SPEC): New macro.
23904         (init_spec): If defined, prepend it between LINK_EH_SPEC and
23905         link_spec.
23906         * doc/install.texi: Document --enable-linker-build-id option.
23907         * configure: Rebuild.
23908         * config.in: Rebuild.
23909
23910 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
23911
23912         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
23913         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
23914         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
23915         MIPS_GP_SAVE_AREA_SIZE.
23916         * config/mips/mips.c (struct mips_frame_info): Update comment
23917         before arg_pointer_offset and hard_frame_pointer_offset.
23918         (mips_compute_frame_info): Update diagram before function: to
23919         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
23920         indicate the position of frame_pointer_rtx with -fstack-protector and
23921         to show args_size.  Don't allocate cprestore area for leaf functions
23922         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
23923         cprestore_size.
23924         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
23925
23926 2009-04-30  Michael Matz  <matz@suse.de>
23927
23928         PR tree-optimization/39955
23929         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
23930
23931 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
23932
23933         * ira.c (setup_cover_and_important_classes):  Use safe macro
23934         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
23935         directly.
23936         * genpreds.c (write_tm_preds_h):  Output suitable definition of
23937         REG_CLASS_FOR_CONSTRAINT.
23938
23939 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
23940
23941         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
23942         instead of an int.
23943         * bitmap.c (bitmap_descriptor): Likewise.
23944         * ggc-common.c (loc_descriptor): Likewise.
23945         * varray.c (varray_descriptor): Likewise.
23946         * vec.c (vec_descriptor): Likewise.
23947
23948 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
23949
23950         * Makefile.in (dce.o): Add $(EXCEPT_H).
23951         * dce.c: Include except.h and delete redundant vector definitions.
23952         (deletable_insn_p): Return false for non-call insns that can throw
23953         if DF is running.
23954
23955 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
23956
23957         * gcse.c (ae_gen): Remove.
23958         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
23959         and make non-static function to make it available in store-motion.c.
23960         Update call sites with search-and-replace.
23961         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
23962         extract_mentioned_regs, extract_mentioned_regs_helper,
23963         find_moveable_store, compute_store_table, load_kills_store, find_loads,
23964         store_killed_in_insn, store_killed_after, store_killed_before,
23965         build_store_vectors, insert_insn_start_basic_block, insert-store,
23966         remove_reachable_equiv_notes, replace_store_insn, delete_store,
23967         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
23968         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
23969         * store-motion.c: ...new file.  Also copy data structures from gcse.c
23970         and clean up to remove parts not used by store motion.
23971         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
23972         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
23973
23974 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23975
23976         PR target/38571
23977         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
23978         when optimizing for size.
23979
23980 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
23981
23982         * gcse.c (gcse_constant_p): Fix typo in last change.
23983
23984 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
23985
23986         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
23987
23988 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23989
23990         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
23991
23992 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
23993
23994         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
23995         CONST_HIGH_PART result.
23996
23997 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
23998
23999         * config/avr/avr.c (initial_elimination_offset): Rename to
24000         avr_initial_elimination_offset.
24001         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
24002         change return type to bool.
24003         (avr_can_eliminate): New function.
24004         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
24005         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
24006         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
24007         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
24008         avr_initial_elimination_offset.
24009         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
24010         (avr_initial_elimination_offset): Define.
24011
24012 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
24013             Steven Bosscher  <steven@gcc.gnu.org>
24014
24015         PR rtl-optimization/39938
24016         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
24017         * cfgrtl.c: Include insn-attr.h.
24018         (rest_of_pass_free_cfg): New function.
24019         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
24020         * resource.c (init_resource_info): Remove call to df_analyze.
24021
24022 2009-04-29  Richard Guenther  <rguenther@suse.de>
24023
24024         PR target/39943
24025         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
24026         allow conversion to signed integers.
24027
24028 2009-04-29  Richard Guenther  <rguenther@suse.de>
24029
24030         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
24031         shifts of floating point vectors if the shift amount is
24032         a constant multiple of the element size.
24033
24034 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
24035             Michael Matz  <matz@suse.de>
24036
24037         PR middle-end/39927
24038         PR bootstrap/39929
24039         * tree-outof-ssa.c (emit_partition_copy): New function.
24040         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
24041         insert_part_to_rtx_on_edge): Perform the partition base var
24042         copy using emit_partition_copy.
24043         (insert_value_copy_on_edge): Convert constants to the right mode.
24044         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
24045         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
24046
24047 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24048
24049         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
24050         scan backwards to try to find a constant to initialize it.
24051
24052         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
24053         insn before the loop_end instruction, don't look past labels.
24054
24055 2009-04-29  Richard Guenther  <rguenther@suse.de>
24056
24057         PR middle-end/39937
24058         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
24059         loose type conversions.
24060         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
24061         stmts only if there are no uses of its definition.
24062
24063 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24064
24065         * config/bfin/bfin.h (splitting_loops): Declare.
24066         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
24067         Reorder bit definitions to be ascending.
24068         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
24069         * config/bfin/bfin.c (splitting_loops): New variable.
24070         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
24071         (struct loop_info): Remove members INIT and LOOP_INIT.
24072         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
24073         the LSETUP sequence.  Allow LC to be loaded from any register, but
24074         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
24075         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
24076         set to 1.
24077         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
24078         of reload_completed.
24079
24080         From Jie Zhang:
24081         * config/bfin/bfin.md (movsi_insn): Refine constraints.
24082
24083 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
24084
24085         * Makefile.in (PLUGIN_VERSION_H): New.
24086         (OBJS-common): Remove plugin-version.o.
24087         (plugin.o): Depend on (PLUGIN_VERSION_H).
24088         (plugin-version.o): Remove.
24089         * configure: Regenerate
24090         * configure.ac: Create plugin-version.h.
24091         * gcc-plugin.h (plugin_gcc_version): Remove.
24092         (plugin_default_version_check): Change signature.
24093         * plugin-version.c: Remove.
24094         * plugin.c: Include plugin-version.h.
24095         (str_plugin_gcc_version_name): Remove.
24096         (try_init_one_plugin): Pass gcc version to plugin_init.
24097         (plugin_default_version_check): Both gcc and plugin versions are now
24098         arguments.
24099
24100 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24101
24102         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
24103         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
24104         Remove special case testing for last insn of inner loops. Don't fail
24105         if the loop ends with a jump, emit an extra nop instead.
24106
24107         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
24108         DREGS rather than comparing directly.  Remove code that tries to
24109         account for latencies.
24110
24111 2009-04-29  Richard Guenther  <rguenther@suse.de>
24112
24113         PR tree-optimization/39941
24114         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
24115         eliminating an indirect call.
24116
24117 2009-04-29  Richard Guenther  <rguenther@suse.de>
24118
24119         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
24120         parameter.  Allow invariants as base if !require_lvalue.
24121         (verify_gimple_assign_single): Adjust.
24122
24123 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24124
24125         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
24126         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
24127         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
24128         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
24129         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
24130         a VEC_SELECT.
24131         * config/bfin/bfin.c (bfin_expand_builtin,
24132         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
24133
24134 2009-04-28  Richard Guenther  <rguenther@suse.de>
24135
24136         * tree-vect-loop.c (get_initial_def_for_induction): Use
24137         correct types for pointer increment.
24138
24139 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24140
24141         * toplev.c (print_version): Update GMP version string calculation.
24142
24143 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24144
24145         PR rtl-optimization/39938
24146         * resource.c (init_resource_info): Add call to df_analyze.
24147
24148 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24149
24150         * config/alpha/alpha.md (usegp): Cast the result of
24151         alpha_find_lo_sum_using_gp to enum attr_usegp.
24152         * config/alpha/alpha.c (override_options): Remove end-of-structure
24153         marker element from cpu_table.  Use array size of cpu_table to handle
24154         -mcpu and -mtune options.
24155         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
24156
24157 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
24158
24159         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
24160         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
24161         tune_32 and tune_64.
24162         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
24163         support on PowerPC.
24164         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
24165         * config/rs6000/option-defaults.h: ... here.  New file.
24166         (OPT_64, OPT_32): Define.
24167         (MASK_64BIT): Define to 0 if not already defined.
24168         (OPT_ARCH64, OPT_ARCH32): Define.
24169         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
24170         and tune_64.
24171
24172 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24173
24174         * config/arm/arm.c (arm_override_options): Emit error on using
24175         fpa with AAPCS.
24176
24177 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24178
24179         PR rtl-optimization/39914
24180         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24181         registers for allocnos created from user-defined variables only
24182         when not optimizing.
24183
24184 2009-04-28  Richard Guenther  <rguenther@suse.de>
24185
24186         PR middle-end/39937
24187         * fold-const.c (fold_binary): Use distribute_real_division only
24188         on float types.
24189
24190 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
24191
24192         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
24193         add hpux-stdint.h to tm_file.
24194         (hppa[12]*-*-hpux11*): Ditto.
24195         (ia64*-*-hpux*): Ditto.
24196         * config/hpux-stdint.h: New.
24197         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
24198         __STDC_EXT__ for all compiles.
24199         * config/pa/pa-hpux.h: Ditto.
24200         * config/pa/pa-hpux10.h: Ditto.
24201         * config/pa/pa-hpux11.h: Ditto.
24202
24203 2009-04-28  Catherine Moore  <clm@codesourcery.com>
24204
24205         * debug.h (set_name): Add comment.
24206
24207 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
24208
24209         PR target/39929
24210         * config/darwin.c (machopic_gen_offset): Check
24211         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
24212         * config/arm/arm.c (require_pic_register): Likewise.
24213
24214 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
24215
24216         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
24217         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
24218         m32c_promote_prototypes): Delete.
24219
24220 2009-04-28  Michael Matz  <matz@suse.de>
24221
24222         PR middle-end/39922
24223         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
24224         constants.
24225
24226 2009-04-28  Richard Guenther  <rguenther@suse.de>
24227
24228         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
24229
24230 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24231
24232         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
24233         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
24234         * config/arm/arm-tune.md: Regenerate.
24235
24236 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
24237
24238         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
24239         block if there are complex incoming edges.
24240         (sel_merge_blocks): Remove useless assert.
24241         (sel_redirect_edge_and_branch): Check that edge was redirected.
24242         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
24243         (sel_find_rgns): Delete declaration.
24244         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
24245         the region when it is not a preheader.
24246
24247 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24248
24249         PR c/39323
24250         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
24251
24252 2009-04-28  Richard Guenther  <rguenther@suse.de>
24253
24254         * tree.h (SSA_NAME_VALUE): Remove.
24255         (struct tree_ssa_name): Remove value_handle member.
24256         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
24257         array for jump threading.
24258         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
24259         SSA_NAME_VALUEs.
24260         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
24261         * tree-flow.h (threadedge_initialize_values): Declare.
24262         (threadedge_finalize_values): Likewise.
24263         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
24264         (SSA_NAME_VALUE): Define.
24265         (threadedge_initialize_values): New function.
24266         (threadedge_finalize_values): Likewise.
24267         * tree-ssa-dom.c (ssa_name_values): New global variable.
24268         (SSA_NAME_VALUE): Define.
24269         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
24270
24271 2009-04-28  Ira Rosen  <irar@il.ibm.com>
24272
24273         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
24274         Use REPORT_VECTORIZED_LOCATIONS instead
24275         REPORT_VECTORIZED_LOOPS.
24276         * tree-vectorizer.c (vect_verbosity_level): Make static.
24277         (vect_loop_location): Rename to vect_location.
24278         (vect_set_verbosity_level): Update comment.
24279         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
24280         and vect_location.
24281         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
24282         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
24283         instead REPORT_UNVECTORIZED_LOOPS.
24284         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
24285         and vect_loop_def to vect_external_def and vect_internal_def.
24286         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
24287         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
24288         REPORT_UNVECTORIZED_LOCATIONS.
24289         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
24290         and vect_used_in_loop and to vect_unused_in_scope and
24291         vect_used_in_scope.
24292         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
24293         (vect_verbosity_level): Remove declaration.
24294         (vect_analyze_operations): Likewise.
24295         (vect_analyze_stmt): Declare.
24296         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
24297         REPORT_UNVECTORIZED_LOCATIONS.
24298         (vect_get_loop_niters): Fix indentation.
24299         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
24300         (vect_analyze_loop_operations): New function.
24301         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
24302         vect_analyze_operations.
24303         (vect_is_simple_reduction): Use new names.
24304         (vectorizable_live_operation, vect_transform_loop): Likewise.
24305         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
24306         to specify whether the data references can be a part of interleaving
24307         chain.
24308         (vect_analyze_data_ref_dependence): Use new names.
24309         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
24310         (vect_create_addr_base_for_vector_ref): Remove redundant code.
24311         * tree-vect-patterns.c (widened_name_p): Use new names.
24312         (vect_recog_dot_prod_pattern): Likewise.
24313         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
24314         (process_use, vect_mark_stmts_to_be_vectorized,
24315         vect_model_simple_cost, vect_model_store_cost,
24316         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
24317         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
24318         vectorizable_operation, vectorizable_type_demotion,
24319         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
24320         vectorizable_condition): Likewise.
24321         (vect_analyze_operations): Split into vect_analyze_loop_operations
24322         and ...
24323         (vect_analyze_stmt): ... new function.
24324         (new_stmt_vec_info): Use new names.
24325         (vect_is_simple_use): Use new names and fix comment.
24326         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
24327         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
24328
24329 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24330
24331         PR target/39911
24332         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
24333         and integer modes for x87 operands.  Do not ICE for unsupported size,
24334         generate error instead.  Generate error for unsupported operand types.
24335         ['z']: Do not handle HImode memory operands specially.  Warning
24336         for floating-point operands.  Fallthru to 'Z' for unsupported operand
24337         types.  Do not ICE for unsupported size, generate error instead.
24338         (output_387_binary_op): Use %Z to output operands.
24339         (output_fp_compare): Ditto.
24340         (output_387_reg_move): Ditto.
24341
24342 2009-04-28  Ben Elliston  <bje@au.ibm.com>
24343
24344         PR c++/35652
24345         Revert:
24346
24347         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24348
24349         * builtins.c (c_strlen): Do not warn here.
24350         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24351         * c-common.c (pointer_int_sum): Take an explicit location.
24352         Warn about offsets out of bounds.
24353         * c-common.h (pointer_int_sum): Adjust declaration.
24354
24355 2009-04-27  Ian Lance Taylor  <iant@google.com>
24356
24357         * collect2.c (is_ctor_dtor): Change type of ret field in struct
24358         names to symkind.
24359         * dce.c (run_fast_df_dce): Change type of old_flags to int.
24360         * df-core.c (df_set_flags): Change return type to int.  Change
24361         type of old_flags to int.
24362         (df_clear_flags): Likewise.
24363         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
24364         (df_get_conditional_uses): Likewise.
24365         * df.h (df_set_flags, df_clear_flags): Update declarations.
24366         * dwarf2out.c (struct indirect_string_node): Change type of form
24367         field to enum dwarf_form.
24368         (AT_string_form): Change return type to enum dwarf_form.
24369         * fixed-value.c (fixed_compare): Add cast to enum type.
24370         * fwprop.c (update_df): Change 0 to VOIDmode.
24371         * gensupport.c: Change 0 to UNKNOWN.
24372         * gimple.h (gimple_cond_code): Add cast to enum type.
24373         * haifa-sched.c (reemit_notes): Add cast to enum type.
24374         * hooks.c (hook_int_void_no_regs): Remove function.
24375         * hooks.h (hook_int_void_no_regs): Remove declaration.
24376         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
24377         * predict.c (combine_predictions_for_insn): Add casts to enum type.
24378         * real.c (real_arithmetic): Add cast to enum type.
24379         (real_compare): Likewise.
24380         * target.h (struct gcc_target): Change return type of
24381         branch_target_register_class to enum reg_class.
24382         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
24383         default_branch_target_register_class.
24384         * targhooks.c (default_branch_target_register_class): New function.
24385         * targhooks.h (default_branch_target_register_class): Declare.
24386         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
24387         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
24388         cast to int.
24389         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
24390         ERROR_MARK.
24391         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
24392         vect_uninitialized_def.  Change 0 to ERROR_MARK.
24393         * tree-vect-stmts.c (supportable_widening_operation): Don't
24394         initialize icode1 and icode2.
24395         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
24396         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
24397         and to STD_C89.
24398         (cmn_err_flag_specs): Change 0 to STD_C89.
24399         (cmn_err_char_table): Likewise.
24400         * config/arm/arm.c (get_arm_condition_code): Change type of code
24401         to enum arm_cond_code.
24402         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
24403         (IWMMXT_BUILTIN2): Likewise.
24404         (neon_builtin_type_bits): Don't define typedef.
24405         (neon_builtin_datum): Change type of bits field to int.
24406         (arm_expand_neon_args): Add cast to enum type.
24407         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
24408         TLS_MODEL_NONE.
24409         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
24410         casts to enum type.
24411         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
24412         MIPS_FP_COND_f.
24413         * config/mips/mips.md (jal_macro): Return enum constant.
24414         (single_insn): Likewise.
24415         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
24416         CODE_FOR_nothing.
24417         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24418         casts to enum type.
24419         * config/s390/s390.c (s390_tune_flags): Change type to int.
24420         (s390_arch_flags): Likewise.
24421         (s390_handle_arch_option): Change flags field of struct pta to int.
24422         * config/s390/s390.h (s390_tune_flags): Update declaration.
24423         (s390_arch_flags): Likewise.
24424         * config/sh/sh.c (prepare_move_operands): Compare
24425         tls_symbolic_operand result with enum constant.
24426         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
24427         (sh_expand_prologue): Add cast to enum type.
24428         (sh_expand_epilogue): Likewise.
24429         (tls_symbolic_operand): Change return type to enum tls_model.
24430         (fpscr_set_from_mem): Add cast to enum type.
24431         (legitimize_pic_address): Compare tls_symbolic_operand result with
24432         enum constant.
24433         (sh_target_reg_class): Change return type to enum reg_class.
24434         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
24435         PROCESSOR_xxx.
24436         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
24437         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
24438         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
24439         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
24440         (delayed_branch, tls_call_delay): Likewise.
24441         (eligible_for_sibcall_delay): Likewise.
24442         (eligible_for_return_delay): Likewise.
24443         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
24444         (spu_expand_builtin_1): Likewise.
24445
24446         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
24447         for all types of conversions.
24448         (output_init_element): Issue -Wc++-compat warning if needed when
24449         initializing a bitfield with enum type.
24450         * c-parser.c (c_parser_expression): Set original_type to
24451         original_type of right hand operand of comma operator.
24452
24453 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24454
24455         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
24456         grammar nits.
24457         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
24458         * doc/cpp.texi (Standard Predefined Macros)
24459         (Implementation-defined behavior): Likewise.
24460         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
24461         * doc/gimple.texi (GIMPLE Exception Handling)
24462         (@code{GIMPLE_ASSIGN}): Likewise.
24463         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
24464         * doc/invoke.texi (Warning Options, Optimize Options)
24465         (AVR Options, Darwin Options): Likewise.
24466         (Optimize Options): Reformulate -fwhole-program description.
24467         * doc/loop.texi (Lambda): Likewise.
24468         * doc/md.texi (Output Template, Define Constraints)
24469         (Standard Names, Insn Splitting): Likewise.
24470         * doc/options.texi (Option properties): Likewise.
24471         * doc/passes.texi (Tree-SSA passes): Likewise.
24472         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
24473         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
24474         (File Names and DBX): Likewise.
24475         * doc/trouble.texi (Incompatibilities): Likewise.
24476
24477 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24478
24479         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
24480         instruction is correct.
24481
24482 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24483
24484         Allow non-constant arguments to conversion intrinsics.
24485         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
24486         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
24487         * spu.c (print_operand): Handle 'v' and 'w'.
24488         (exp2_immediate_p, spu_gen_exp2): Define.
24489         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
24490         spu_convtf_1): Update parameter descriptions.
24491         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
24492         * constraints.md ('v', 'w'): New.
24493         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
24494         Remove.
24495         (i2f, I2F): New define_mode_attr.
24496         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
24497         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
24498         fixuns_truncv4sfv4si2):  Update to use mode attribute.
24499         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
24500         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
24501         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
24502         patterns for combine.
24503
24504 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
24505
24506         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
24507         (cprop, hoist, pre, store_motion): New debug counters.
24508         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
24509         is not an RTL pass anymore.
24510         (pass_profiling): Remove extern decl for pass removed in 2005.
24511         (pass_gcse, pass_jump_bypass): Remove.
24512         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
24513         to 0 for clean state.
24514         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
24515         * cse.c (gate_handle_cse_after_global_opts,
24516         rest_of_handle_cse_after_global_opts): New functions.
24517         (pass_cse_after_global_opts): New pass, does local CSE.
24518         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
24519         (TV_CPROP): New timevar.
24520         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
24521         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
24522         (gcse_main, recompute_all_luids): Remove.
24523         (compute_hash_table_work): Call max_reg_num instead of reading
24524         max_gcse_regno.
24525         (cprop_jump): Don't set run_jump_opt_after_gcse.
24526         (constprop_register): Always allow to alter jumps.
24527         (cprop_insn): Likewise.
24528         (do_local_cprop): Likewise.
24529         (local_cprop_pass): Likewise.  Return non-zero if something changed.
24530         (cprop): Remove function, fold interesting bits into one_cprop_pass.
24531         (find_implicit_sets): Add note about missed optimization opportunity.
24532         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
24533         pass_rtl_cprop execute function.
24534         Don't bother tracking the pass number, each pass gets its own dumpfile
24535         now anyway.
24536         Always allow to alter jumpsand bypass jumps.
24537         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
24538         will just find no suitable set.
24539         (pre_edge_insert): Fix dumping, this function is for PRE only.
24540         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
24541         pass_rtl_pre execute function.
24542         (hoist_code): Return non-zero if something changed.  Keep track of
24543         substitutions and insertions for statistics gathering similar to PRE.
24544         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
24545         called from the pass_rtl_hoist execute function.  Show pass statistics.
24546         (compute_store_table): Use max_reg_num directly instead of using the
24547         formerly global max_gcse_regno.
24548         (build_store_vectors): Likewise.
24549         (replace_store_insn): Fix dumping.
24550         (store_motion): Rename to ...
24551         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
24552         pass, called from the pass_rtl_store_motion execute function.  Keep
24553         track of substitutions and insertions for statistics gathering similar
24554         to PRE.
24555         (bypass_jumps): Remove, fold interesting bits into ...
24556         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
24557         from the pass_rtl_cprop execute function.
24558         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
24559         pass_jump_bypass): Remove.
24560         (gate_handle_gcse, rest_of_handle_gcse): Remove.
24561         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
24562         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
24563         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
24564         (gate_rtl_store_motion, execute_rtl_store_motion,
24565         pass_rtl_store_motion): New.
24566         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
24567         make it clear that -fcse-skip-blocks is a no-op for backward compat.
24568         * passes.c (init_optimization_passes): Remove pass_gcse and
24569         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
24570         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
24571         instead of pass_jump_bypass.
24572
24573 2009-04-27  Richard Guenther  <rguenther@suse.de>
24574
24575         PR middle-end/39928
24576         * gimplify.c (gimplify_expr): If we are required to create
24577         a temporary make sure it ends up as register.
24578
24579 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
24580
24581         PR target/39903
24582         * config/i386/i386.c (construct_container): Don't call
24583         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
24584         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
24585
24586 2009-04-27  Michael Matz  <matz@suse.de>
24587
24588         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
24589         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
24590         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
24591         (dump_replaceable_exprs): Take a bitmap.
24592         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
24593         array.
24594         (expand_gimple_basic_block): Likewise.
24595         * tree-ssa-ter.c (struct temp_expr_table_d): Make
24596         replaceable_expressions member a bitmap.
24597         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
24598         (mark_replaceable): Likewise.
24599         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
24600         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
24601
24602 2009-04-27  Richard Guenther  <rguenther@suse.de>
24603
24604         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
24605         (verify_stmts): Dispatch to gimple/type verification code.
24606         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
24607         issue with call argument types.
24608
24609 2009-04-27  Michael Matz  <matz@suse.de>
24610
24611         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
24612         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
24613         to above.
24614
24615 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24616             Eric Botcazou  <ebotcazou@adacore.com>
24617
24618         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
24619         a label's basic block.
24620         (mark_target_live_regs): Tidy and rework obsolete comments.
24621         Change back DF problem to LIVE.  If a label starts a basic block,
24622         assume that all registers that used to be live then still are.
24623         (init_resource_info): If a label starts a basic block, set its
24624         BLOCK_FOR_INSN accordingly.
24625         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
24626
24627 2009-04-27  Richard Guenther  <rguenther@suse.de>
24628
24629         * tree-flow-inline.h (function_ann): Remove.
24630         (get_function_ann): Likewise.
24631         * tree-dfa.c (create_function_ann): Remove.
24632         * tree-flow.h (struct static_var_ann_d): Remove.
24633         (struct function_ann_d): Likewise.
24634         (union tree_ann_d): Remove fdecl member.
24635         (function_ann_t): Remove.
24636         (function_ann, get_function_ann, create_function_ann): Remove
24637         declarations.
24638
24639 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
24640
24641         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
24642
24643 2009-04-27  Jan Hubicka  <jh@suse.cz>
24644
24645         * ipa-pure-const.c (struct funct_state_d): New fields
24646         state_previously_known, looping_previously_known; remove
24647         state_set_in_source.
24648         (analyze_function): Use new fields.
24649         (propagate): Avoid assumption that state_set_in_source imply
24650         nonlooping.
24651
24652         * tree-ssa-loop-niter.c (finite_loop_p): New function.
24653         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
24654         * cfgloop.h (finite_loop_p): Declare.
24655
24656 2009-04-26  Michael Matz  <matz@suse.de>
24657
24658         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
24659
24660 2009-04-26  Michael Matz  <matz@suse.de>
24661
24662         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
24663         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
24664         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
24665         pass_mark_used_blocks): Remove.
24666         * tree-optimize.c (pass_free_datastructures,
24667         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
24668         * passes.c (init_optimization_passes): Don't call
24669         pass_mark_used_blocks, remove dead code.
24670
24671 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
24672
24673         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
24674         * tree-ssa-live.h (register_ssa_partition): Likewise.
24675
24676 2009-04-26  Michael Matz  <matz@suse.de>
24677
24678         Expand from SSA.
24679         * builtins.c (fold_builtin_next_arg): Handle SSA names.
24680         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
24681         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
24682         SSA names.
24683         (compare_pairs): Swap cost comparison.
24684         (coalesce_ssa_name): Don't use change_partition_var.
24685         * tree-nrv.c (struct nrv_data): Add modified member.
24686         (finalize_nrv_r): Set it.
24687         (tree_nrv): Use it to update statements.
24688         (pass_nrv): Require PROP_ssa.
24689         * tree-mudflap.c (mf_decl_cache_locals,
24690         mf_build_check_statement_for): Use make_rename_temp.
24691         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
24692         * alias.c (find_base_decl): Handle SSA names.
24693         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
24694         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
24695         * rtl.h (set_reg_attrs_for_parm): Declare.
24696         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
24697         to "optimized", remove unused locals at finish.
24698         (execute_free_datastructures): Make global, call
24699         delete_tree_cfg_annotations.
24700         (execute_free_cfg_annotations): Don't call
24701         delete_tree_cfg_annotations.
24702
24703         * ssaexpand.h: New file.
24704         * expr.c (toplevel): Include ssaexpand.h.
24705         (expand_assignment): Handle SSA names the same as register variables.
24706         (expand_expr_real_1): Expand SSA names.
24707         * cfgexpand.c (toplevel): Include ssaexpand.h.
24708         (SA): New global variable.
24709         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
24710         (SSAVAR): New macro.
24711         (set_rtl): New helper function.
24712         (add_stack_var): Deal with SSA names, use set_rtl.
24713         (expand_one_stack_var_at): Likewise.
24714         (expand_one_stack_var): Deal with SSA names.
24715         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
24716         before unique numbers.
24717         (expand_stack_vars): Use set_rtl.
24718         (expand_one_var): Accept SSA names, add asserts for them, feed them
24719         to above subroutines.
24720         (expand_used_vars): Expand all partitions (without default defs),
24721         then only the local decls (ignoring those expanded already).
24722         (expand_gimple_cond): Remove edges when jumpif() expands an
24723         unconditional jump.
24724         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
24725         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
24726         SSA name.
24727         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
24728         members of SA; deal with PARM_DECL partitions here; expand
24729         all PHI nodes, free tree datastructures and SA.  Commit instructions
24730         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
24731         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
24732         info and statements at start, collect garbage at finish.
24733         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
24734         (VAR_ANN_PARTITION) Remove.
24735         (change_partition_var): Don't declare.
24736         (partition_to_var): Always return SSA names.
24737         (var_to_partition): Only accept SSA names.
24738         (register_ssa_partition): Only check argument.
24739         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
24740         member.
24741         (delete_var_map): Don't free it.
24742         (var_union): Only accept SSA names, simplify.
24743         (partition_view_init): Mark only useful SSA names as used.
24744         (partition_view_fini): Only deal with SSA names.
24745         (change_partition_var): Remove.
24746         (dump_var_map): Use ssa_name instead of partition_to_var member.
24747         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
24748         basic blocks.
24749         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
24750         (struct _elim_graph): New member const_dests; nodes member vector of
24751         ints.
24752         (set_location_for_edge): New static helper.
24753         (create_temp): Remove.
24754         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
24755         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
24756         (new_elim_graph): Allocate const_dests member.
24757         (clean_elim_graph): Truncate const_dests member.
24758         (delete_elim_graph): Free const_dests member.
24759         (elim_graph_size): Adapt to new type of nodes member.
24760         (elim_graph_add_node): Likewise.
24761         (eliminate_name): Likewise.
24762         (eliminate_build): Don't take basic block argument, deal only with
24763         partition numbers, not variables.
24764         (get_temp_reg): New static helper.
24765         (elim_create): Use it, deal with RTL temporaries instead of trees.
24766         (eliminate_phi): Adjust all calls to new signature.
24767         (assign_vars, replace_use_variable, replace_def_variable): Remove.
24768         (rewrite_trees): Only do checking.
24769         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
24770         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
24771         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
24772         contains_tree_r, MAX_STMTS_IN_LATCH,
24773         process_single_block_loop_latch, analyze_edges_for_bb,
24774         perform_edge_inserts): Remove.
24775         (expand_phi_nodes): New global function.
24776         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
24777         functions, initialize new parameter, remember partitions having a
24778         default def.
24779         (finish_out_of_ssa): New global function.
24780         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
24781         don't reset in_ssa_p here, don't disable TER when mudflap.
24782         (pass_del_ssa): Remove.
24783         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
24784         partition members.
24785         (execute_free_datastructures): Declare.
24786         * Makefile.in (SSAEXPAND_H): New variable.
24787         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
24788         * basic-block.h (commit_one_edge_insertion): Declare.
24789         * passes.c (init_optimization_passes): Move pass_nrv and
24790         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
24791         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
24792         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
24793         (redirect_branch_edge): Deal with super block when expanding, split
24794         out jump patching itself into ...
24795         (patch_jump_insn): ... here, new static helper.
24796
24797 2009-04-26  Michael Matz  <matz@suse.de>
24798
24799         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
24800         beyond num_ssa_names.
24801         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
24802         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
24803
24804 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24805
24806         PR inline-asm/39543
24807         * fwprop.c (forward_propagate_asm): New function.
24808         (forward_propagate_and_simplify): Propagate also into __asm, if it
24809         doesn't increase the number of referenced registers.
24810
24811         PR c/39889
24812         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
24813
24814 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24815
24816         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
24817         note_nonlocal_vla_type for nonlocal VLAs.
24818         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
24819         contains_remapped_vars, remap_vla_decls): New functions.
24820         (convert_nonlocal_reference_stmt): If not optimizing, call
24821         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
24822         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
24823         if it wasn't found in var_map.
24824         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
24825         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
24826         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
24827         declare_vars.
24828         * gimplify.c (nonlocal_vlas): New variable.
24829         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
24830         referenced VLAs.
24831         (gimplify_body): Create and destroy nonlocal_vlas.
24832
24833         * dwarf2out.c (loc_descr_plus_const): New function.
24834         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
24835         mem_loc_descriptor, loc_descriptor_from_tree_1,
24836         descr_info_loc, gen_variable_die): Use it.
24837
24838         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
24839         !TREE_STATIC VAR_DECLs.
24840         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
24841         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
24842         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
24843         DECL_BY_REFERENCE is valid.
24844         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
24845         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
24846         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
24847         Copy DECL_BY_REFERENCE.
24848         (struct nesting_copy_body_data): New type.
24849         (nesting_copy_decl): New function.
24850         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
24851         if they have variable length.
24852
24853 2009-04-26  Michael Matz  <matz@suse.de>
24854
24855         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
24856         mark new temporaries for renaming.
24857
24858 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24859
24860         PR c/39581
24861         * c-decl.c (global_bindings_p): Return negative value.
24862         (c_variable_size): New.  Based on variable_size from
24863         stor-layout.c.
24864         (grokdeclarator): Call c_variable_size not variable_size.
24865
24866 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
24867
24868         * config/i386/i386.c (print_operand) ['z']: Fix typo.
24869
24870 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
24871
24872         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
24873         Redefine it to just use mingw/include.
24874         (ASM_SPEC): Rules for -m32 and -m64.
24875         (LINK_SPEC): Use Likewise.
24876         (SPEC_32): New define.
24877         (SPEC_64): Likewise.
24878         (SUB_LINK_SPEC): Likewise.
24879         (MULTILIB_DEFAULTS): New define.
24880         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
24881         Add multilib options.
24882         (MULTILIB_DIRNAMES): Likewise.
24883         (MULTILIB_OSDIRNAMES): Likewise.
24884         (LIBGCC): Likewise.
24885         (INSTALL_LIBGCC): Likewise.
24886
24887 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24888
24889         PR c/39556
24890         * c-tree.h (enum c_inline_static_type): New.
24891         (record_inline_static): Declare.
24892         * c-decl.c (struct c_inline_static, c_inline_statics,
24893         record_inline_static, check_inline_statics): New.
24894         (pop_file_scope): Call check_inline_statics.
24895         (start_decl): Call record_inline_static instead of pedwarning
24896         directly for static in inline function.
24897         * c-typeck.c (build_external_ref): Call record_inline_static
24898         instead of pedwarning directly for static referenced in inline
24899         function.
24900
24901 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
24902
24903         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
24904         not new but only being rescanned.
24905         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
24906         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
24907         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
24908         record_set_info, compute_set, grealloc): Remove.
24909         (recompute_all_luids): New function.
24910         (gcse_main): Don't compute sets, and don't do related memory
24911         allocations/free-ing.  If something changed before the end of the
24912         pass, update LUIDs using recompute_all_luids.
24913         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
24914         (free_gcse_mem): Don't free it either.
24915         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
24916         Use the df insn LUIDs.
24917         (load_killed_in_block): Likewise.
24918         (compute_hash_table_work): Don't compute reg_set_in_block.
24919         (compute_transp): Use DF_REG_DEF_CHAINs.
24920         (local_cprop_pass): Don't use compute_sets and related functions.
24921         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
24922         Use get_max_uid() instead of max_cuid.
24923         (insert_insn_end_basic_block, pre_insert_copy_insn,
24924         update_ld_motion_stores): Don't try to
24925         keep reg_set tables up to date.
24926         (pre_insert_copies): Use df insn LUIDs.
24927         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
24928         (reg_set_info): Don't use extra bitmap argument.
24929         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
24930         information to compute regs_set_in_block.
24931         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
24932         (bypass_jumps): Don't use compute_sets and friends.
24933
24934 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24935
24936         PR testsuite/39710
24937         * opts.c (undocumented_msg): Do not leave blank even with
24938         ENABLE_CHECKING.
24939
24940 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24941
24942         * c-decl.c (build_enumerator): Allow values folding to integer
24943         constants but not integer constant expressions with a pedwarn if
24944         pedantic.
24945
24946 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24947
24948         PR c/39582
24949         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
24950         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
24951         type is an integer constant.
24952
24953 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
24954
24955         PR target/39897
24956         * config/i386/i386.c (print_operand) ['z']: Revert handling of
24957         HImode operands.
24958
24959 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
24960
24961         PR c/39564
24962         * c-decl.c (grokdeclarator): Diagnose declarations of functions
24963         with variably modified return type and no storage class
24964         specifiers, except for the case of nested functions.  Distinguish
24965         extern declarations of functions with variably modified return
24966         types from those of objects with variably modified types.
24967
24968 2009-04-25  Jan Hubicka  <jh@suse.cz>
24969
24970         * tree.c (list_equal_p): New function.
24971         * tree.h (list_equal_p): Declare.
24972         * coretypes.h (edge_def, edge, const_edge, basic_block_def
24973         basic_block_def, basic_block, const_basic_block): New.
24974         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
24975         (redirect_eh_edge): New function.
24976         (make_eh_edge_update_phi): EH edges are not abnormal.
24977         * except.c: Include tree-flow.h.
24978         (list_match): New function.
24979         (eh_region_replaceable_by_p): New function.
24980         (replace_region): New function.
24981         (hash_type_list): New function.
24982         (hash_eh_region): New function.
24983         (eh_regions_equal_p): New function.
24984         (merge_peers): New function.
24985         (remove_unreachable_regions): Verify EH tree when checking;
24986         merge peers.
24987         (copy_eh_region_1): New function.
24988         (copy_eh_region): New function.
24989         (push_reachable_handler): New function.
24990         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
24991         regions without label but with live RESX.
24992         * except.h (redirect_eh_edge_to_label): New.
24993         * tree-flow.h (redirect_eh_edge): New.
24994         * coretypes.h (edge_def, edge, const_edge, basic_block_def
24995         basic_block_def, basic_block, const_basic_block): Remove.
24996         * Makefile.in (except.o): Add dependency on tree-flow.h
24997         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
24998         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
24999         Remove.
25000
25001 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
25002
25003         PR bootstrap/39645
25004         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
25005         on the destination of memcpy.
25006
25007 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
25008
25009         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
25010         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
25011         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
25012
25013 2009-04-25  Jan Hubicka  <jh@suse.cz>
25014
25015         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
25016         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
25017         to be reached by different label than left.
25018         (update_eh_edges): Update comment; remove edge_to_remove if possible
25019         and return true if suceeded.
25020         (cleanup_empty_eh): Accept sharing map; handle shared regions.
25021         (cleanup_eh): Compute sharing map.
25022         * except.c (remove_eh_handler_and_replace): Add argument if we should
25023         update regions.
25024         (remove_unreachable_regions): Update for label sharing.
25025         (label_to_region_map): Likewise.
25026         (get_next_region_sharing_label): New function.
25027         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
25028         prev_try pointers.
25029         (remove_eh_handler): Update.
25030         (remove_eh_region_and_replace_by_outer_of): New function.
25031         * except.h (struct eh_region): Add next_region_sharing_label.
25032         (remove_eh_region_and_replace_by_outer_of,
25033         get_next_region_sharing_label): Declare.
25034         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
25035
25036 2009-04-25  Jan Hubicka  <jh@suse.cz>
25037
25038         * tree-cfg.c (split_critical_edges): Split also edges where we can't
25039         insert code even if they are not critical.
25040
25041 2009-04-25  Jan Hubicka  <jh@suse.cz>
25042
25043         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25044         (gimple_can_remove_branch_p): EH edges won't remove branch by
25045         redirection.
25046         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
25047         updating of non-abnormal EH edges.
25048         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25049         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
25050         (split_critical_edges): Split also edges where emitting code on them
25051         will lead to splitting later.
25052
25053 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
25054             H.J. Lu  <hongjiu.lu@intel.com>
25055
25056         PR target/39590
25057         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
25058         the configured assembler supports fildq and fistpq mnemonics.
25059         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
25060         * configure: Regenerated.
25061         * config.in: Ditto.
25062
25063         * config/i386/i386.c (print_operand): Handle 'Z'.
25064         ['z']: Remove handling of special fild/fist suffixes.
25065         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
25066         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
25067         suffix of fild insn.
25068         (*floatsi<mode>2_vector_mixed): Ditto.
25069         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
25070         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
25071         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
25072         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
25073         * config/i386/gas.h (GAS_MNEMONICS): Remove.
25074
25075 2009-04-25  Ben Elliston  <bje@au.ibm.com>
25076
25077         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
25078         the source of a set operation.
25079
25080 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
25081
25082         * target.h (struct gcc_target): Add case_values_threshold field.
25083         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
25084         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
25085         * targhooks.c (default_case_values_threshold): New function.
25086         * targhooks.h (default_case_values_threshold): Declare function.
25087         * stmt.c (expand_case): Use case_values_threshold target hook.
25088         * expr.h (case_values_threshold): Remove declartation.
25089         * expr.c (case_values_threshold): Remove function.
25090         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
25091
25092         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
25093         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25094         (avr_case_values_threshold): Declare as static.
25095         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
25096
25097         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
25098         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25099         (mn10300_case_values_threshold): New function.
25100
25101 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25102
25103         * ira.c (setup_cover_and_important_classes): Add enum cast.
25104
25105 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
25106
25107         * genpreds.c (write_enum_constraint_num): Output definition of
25108         CONSTRAINT_NUM_DEFINED_P macro.
25109         * ira.c (setup_cover_and_important_classes): Use
25110         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
25111
25112 2009-04-24  DJ Delorie  <dj@redhat.com>
25113
25114         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
25115         __SH2A_SINGLE_ONLY__ also.
25116
25117 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
25118
25119         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
25120         (movdf_internal): Ditto.
25121         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
25122         SFmode and DFmode constants.
25123         (ia64_print_operand): Add 'G' format for printing
25124         floating point constants.
25125
25126 2009-04-24  Richard Guenther  <rguenther@suse.de>
25127
25128         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
25129         from unsigned additions.
25130
25131 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
25132
25133         * c-typeck.c (set_init_index): Allow array designators that are
25134         not integer constant expressions with a pedwarn if pedantic.
25135
25136 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25137
25138         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
25139         zero if no overlap in nonzero bits between the operands.
25140
25141 2009-04-24  Ian Lance Taylor  <iant@google.com>
25142
25143         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
25144         (record_dead_and_set_regs): Likewise.
25145         * df.h (struct df_mw_hardreg): Change flags field to int.
25146         (struct df_base_ref): Likewise.
25147         (struct df): Change changeable_flags field to int.
25148         * df-scan.c (df_defs_record): Change clobber_flags to int.
25149         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
25150         constants rather than #define macros.
25151         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
25152         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
25153         (enum dwarf_calling_convention): Likewise.
25154         (enum dwarf_line_number_x_ops): Likewise.
25155         (enum dwarf_call_frame_info): Likewise.
25156         (enum dwarf_source_language): Likewise.
25157         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
25158         (add_calling_convention_attribute): Likewise.
25159         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
25160         (combine_comparisons): Change compcode to int.  Add cast to enum type.
25161         * genrecog.c (maybe_both_true_2): Change c to int.
25162         (write_switch): Likewise.  Add cast to enum type.
25163         * gimplify.c (gimplify_omp_for): Handle return values from
25164         gimplify_expr using MIN rather than bitwise or.
25165         (gimplify_expr): Add cast to enum type.
25166         * ipa-prop.c (update_jump_functions_after_inlining): Change
25167         IPA_BOTTOM to IPA_JF_UNKNOWN.
25168         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
25169         Add casts to enum type.
25170         (setup_cover_and_important_classes): Change cl to int.  Add casts
25171         to enum type.
25172         (setup_class_translate): Change cl and mode to int.
25173         (ira_init_once): Change mode to int.
25174         (free_register_move_costs): Likewise.
25175         (setup_prohibited_mode_move_regs): Add casts to enum type.
25176         * langhooks.c (add_builtin_function_common): Rework assertion that
25177         value fits bitfield.
25178         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
25179         * omega.c (omega_do_elimination): Avoid math on enum types.
25180         * optabs.c (expand_vec_shift_expr): Remove casts to int.
25181         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
25182         int local to handle integral_argment value.
25183         * regmove.c (try_auto_increment): Change PUT_MODE to
25184         PUT_REG_NOTE_KIND.
25185         * reload.c (push_secondary_reload): Add casts to enum type.
25186         (secondary_reload_class, find_valid_class): Likewise.
25187         * reload1.c (emit_input_reload_insns): Likewise.
25188         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
25189         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
25190         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
25191         constant.
25192         * tree.c (build_common_builtin_nodes): Add casts to enum type.
25193         * tree-complex.c (complex_lattice_t): Typedef to int rather than
25194         enum type.
25195         (expand_complex_libcall): Add casts to enum type.
25196         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
25197         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
25198         with ERROR_MARK, not NUM_TREE_CODES.
25199         (vect_create_epilog_for_reduction): Likewise.
25200         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
25201         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
25202         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
25203         enum machine_mode.
25204         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
25205         vect_unused_in_loop.  Change 0 to loop_vect.
25206         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
25207         * var-tracking.c (get_init_value): Change return type to enum
25208         var_init_status.
25209         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
25210         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
25211         arm_fp_model.
25212         (arm_override_options): Add casts to enum type.
25213         (arm_emit_tls_decoration): Likewise.
25214         * config/i386/i386.c (ix86_function_specific_restore): Add casts
25215         to enum type.
25216         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
25217         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
25218         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
25219         enum type.
25220         * config/s390/s390.c (code_for_builtin_64): Change to array of
25221         enum insn_code.
25222         (code_for_builtin_31): Likewise.
25223         (s390_expand_builtin): Change code_for_builtin to enum insn_code
25224         const *.
25225         * config/sparc/sparc.c (sparc_override_options): Change value
25226         field in struct code_model to enum cmodel.  In initializer change
25227         0 to NULL and add cast to enum type.
25228
25229         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
25230         Change all callers.  Issue a -Wc++-compat warning using
25231         lhs_origtype if necessary.
25232         (convert_for_assignment): Issue -Wc++-compat warnings about
25233         invalid conversions to enum type on assignment.
25234         * c-common.h (build_modify_expr): Update declaration.
25235
25236 2009-04-24  Nick Clifton  <nickc@redhat.com>
25237
25238         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
25239         (function_arg_advance): Likewise.
25240         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
25241         5th alternative.
25242
25243 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25244
25245         * config/s390/constraints.md ('I', 'J'): Fix condition.
25246
25247 2009-04-24  Diego Novillo  <dnovillo@google.com>
25248
25249         * gengtype-parse.c (parse_error): Add newline after message.
25250
25251 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25252
25253         * config/i386/sse.md (avxmodesuffixs): Removed.
25254         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
25255         (*avx_pinsr<ssevecsize>): This.
25256
25257 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25258
25259         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
25260         follow chains of regs with a single definition, and allow expressions
25261         that are function_invariant_p.
25262         (simple_rhs_p): Allow expressions that are function_invariant_p.
25263
25264 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
25265
25266         PR middle-end/39867
25267         * fold-const.c (fold_cond_expr_with_comparison): When folding
25268         > and >= to MAX, make sure the MAX uses the same type as the
25269         comparison's operands.
25270
25271 2009-04-24  Nick Clifton  <nickc@redhat.com>
25272
25273         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
25274         addressing for DImode accesses.
25275         (frv_print_operand_address): Handle PLUS case.
25276         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
25277
25278 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
25279
25280         PR rtl-optimization/39794
25281         * alias.c (canon_true_dependence): Add x_addr argument.
25282         * rtl.h (canon_true_dependence): Adjust prototype.
25283         * cse.c (check_dependence): Adjust canon_true_dependence callers.
25284         * cselib.c (cselib_invalidate_mem): Likewise.
25285         * gcse.c (compute_transp): Likewise.
25286         * dse.c (scan_reads_nospill): Likewise.
25287         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
25288         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
25289         canon_base_addr of the group, plus optional offset.
25290         (struct group_info): Rename canon_base_mem to
25291         canon_base_addr.
25292         (get_group_info): Set canon_base_addr to canon_rtx of base, not
25293         canon_rtx of base_mem.
25294
25295 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
25296
25297         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
25298         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
25299
25300 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25301
25302         * config/spu/spu-builtins.h: Delete file.
25303
25304         * config/spu/spu.h (enum spu_builtin_type): Move here from
25305         spu-builtins.h.
25306         (struct spu_builtin_description): Likewise.  Add GTY marker.
25307         Do not use enum spu_function_code or enum insn_code.
25308         (spu_builtins): Add extern declaration.
25309
25310         * config/spu/spu.c: Do not include "spu-builtins.h".
25311         (enum spu_function_code, enum spu_builtin_type_index,
25312         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
25313         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
25314         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
25315         unsigned_V2DI_type_node): Move here from spu-builtins.h.
25316         (spu_builtin_types): Make static.  Add GTY marker.
25317         (spu_builtins): Add extern declaration with GTY marker.
25318         Include "gt-spu.h".
25319
25320         * config/spu/spu-c.c: Do not include "spu-builtins.h".
25321         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
25322         Check programmatically whether all parameters are scalar.
25323
25324         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
25325
25326 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
25327
25328         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
25329         assignment from the constructor either if the target is volatile.
25330
25331 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
25332
25333         * config/arm/arm.md (insv): Do not share operands[0].
25334
25335 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
25336
25337         * config/vxlib-tls.c (active_tls_threads): Delete.
25338         (delete_hook_installed): New.
25339         (tls_delete_hook): Don't delete the delete hook.
25340         (tls_destructor): Delete it here.
25341         (__gthread_set_specific): Adjust installing the delete hook.
25342         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
25343         __gthread_leave_tsd_dtor_context.
25344
25345 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
25346
25347         * c-format.c (gcc_tdiag_char_table): Add support for %E.
25348
25349 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
25350
25351         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
25352         enum type.
25353         (alpha_rtx_costs): Ditto.
25354         (emit_unlikely_jump): Use add_reg_note.
25355         (emit_frame_store_1): Ditto.
25356         (alpha_expand_prologue): Ditto.
25357         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25358         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
25359
25360 2009-04-23  Nick Clifton  <nickc@redhat.com>
25361
25362         * config/v850/v850.md (epilogue): Remove suppressed code.
25363         (return): Rename to return_simple and remove test of frame size.
25364         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
25365         to gen_return_simple.
25366
25367 2009-04-22  Jing Yu  <jingyu@google.com>
25368
25369         PR testsuite/39781
25370         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
25371
25372 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25373
25374         PR C/31499
25375         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
25376         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
25377         value is a VECTOR_CST, the element type is the element type of the
25378         vector.
25379
25380 2009-04-22  DJ Delorie  <dj@redhat.com>
25381
25382         * config/m32c/m32c.h: Update GTY annotations to new syntax.
25383
25384 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
25385
25386         * alias.c (find_base_term): Move around LO_SUM case, so that
25387         CONST falls through into PLUS/MINUS handling.
25388
25389         PR c/39855
25390         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
25391         into 0, use omit_one_operand.
25392
25393 2009-04-23  Ben Elliston  <bje@au.ibm.com>
25394
25395         * config/rs6000/linux-unwind.h (get_regs): Remove type
25396         puns. Change the type of `pc' to an array of unsigned ints and
25397         update all users.  Constify frame24.
25398
25399 2009-04-22  DJ Delorie  <dj@redhat.com>
25400
25401         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
25402         declarations before code.
25403         (current_function_special_page_vector): Likewise.
25404         (m32c_expand_insv): Silence a warning.
25405
25406 2009-04-21  Taras Glek  <tglek@mozilla.com>
25407
25408         * alias.c: Update GTY annotations to new syntax.
25409         * basic-block.h: Likewise.
25410         * bitmap.h: Likewise.
25411         * c-common.h: Likewise.
25412         * c-decl.c: Likewise.
25413         * c-parser.c: Likewise.
25414         * c-pragma.c: Likewise.
25415         * c-tree.h: Likewise.
25416         * cfgloop.h: Likewise.
25417         * cgraph.h: Likewise.
25418         * config/alpha/alpha.c: Likewise.
25419         * config/arm/arm.h: Likewise.
25420         * config/avr/avr.h: Likewise.
25421         * config/bfin/bfin.c: Likewise.
25422         * config/cris/cris.c: Likewise.
25423         * config/darwin.c: Likewise.
25424         * config/frv/frv.c: Likewise.
25425         * config/i386/i386.c: Likewise.
25426         * config/i386/i386.h: Likewise.
25427         * config/i386/winnt.c: Likewise.
25428         * config/ia64/ia64.h: Likewise.
25429         * config/iq2000/iq2000.c: Likewise.
25430         * config/mips/mips.c: Likewise.
25431         * config/mmix/mmix.h: Likewise.
25432         * config/pa/pa.c: Likewise.
25433         * config/pa/pa.h: Likewise.
25434         * config/rs6000/rs6000.c: Likewise.
25435         * config/s390/s390.c: Likewise.
25436         * config/sparc/sparc.c: Likewise.
25437         * config/xtensa/xtensa.c: Likewise.
25438         * cselib.h: Likewise.
25439         * dbxout.c: Likewise.
25440         * dwarf2out.c: Likewise.
25441         * except.c: Likewise.
25442         * except.h: Likewise.
25443         * fixed-value.h: Likewise.
25444         * function.c: Likewise.
25445         * function.h: Likewise.
25446         * gimple.h: Likewise.
25447         * integrate.c: Likewise.
25448         * optabs.c: Likewise.
25449         * output.h: Likewise.
25450         * real.h: Likewise.
25451         * rtl.h: Likewise.
25452         * stringpool.c: Likewise.
25453         * tree-data-ref.c: Likewise.
25454         * tree-flow.h: Likewise.
25455         * tree-scalar-evolution.c: Likewise.
25456         * tree-ssa-address.c: Likewise.
25457         * tree-ssa-alias.h: Likewise.
25458         * tree-ssa-operands.h: Likewise.
25459         * tree.c: Likewise.
25460         * tree.h: Likewise.
25461         * varasm.c: Likewise.
25462         * varray.h: Likewise.
25463         * vec.h: Likewise.
25464         * coretypes.h: Do not define GTY macro if it is already defined.
25465         * doc/gty.texi: Update GTY documentation to new syntax.
25466         * gengtype-lex.l: Enforce attribute-like syntax for GTY
25467         annotations on structs.
25468         * gengtype-parse.c: Likewise.
25469
25470 2009-04-22  Mark Heffernan  <meheff@google.com>
25471
25472         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
25473
25474 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25475
25476         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
25477         where appropriate.
25478
25479 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25480
25481         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
25482         the same as a PLUS without a shift.  Increase the cost of a
25483         CONST_INT in MULT.
25484
25485 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25486
25487         * Makefile.in: Update dependencies.
25488         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
25489         * errors.h: Remove bogus comment about compatibility.
25490         (warning): Update declaration.
25491         * genautomata.c: Update all calls to warning.
25492         * gimple.c: Do not include errors.h. Include toplev.h.
25493         * tree-ssa-structalias.c: Do not include errors.h.
25494         * omega.c: Likewise.
25495         * tree-ssa-reassoc.c: Likewise.
25496         * config/spu/spu-c.c: Likewise.
25497         * config/spu/t-spu-elf: Update dependencies.
25498
25499 2009-04-22  Richard Guenther  <rguenther@suse.de>
25500
25501         PR tree-optimization/39824
25502         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
25503         make sure the types are compatible.
25504
25505 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25506
25507         PR c++/14875
25508         * c-common.c (c_parse_error): Take a token_flags parameter.
25509         Use token_type for the token type instead.
25510         Pass token_flags to cpp_type2name.
25511         * c-common.h (c_parse_error): Update declaration.
25512         * c-parser.c (c_parser_error): Pass 0 as token flags.
25513
25514 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
25515
25516         PR rtl-optimization/39580
25517         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
25518
25519 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25520
25521         * function.c (expand_function_end): Do not emit a jump to the "naked"
25522         return label for fall-through returns.
25523         * except.c (sjlj_emit_function_exit): Always place the call to the
25524         unregister function at the location installed by expand_function_end.
25525
25526 2009-04-22  Richard Guenther  <rguenther@suse.de>
25527
25528         PR tree-optimization/39845
25529         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
25530         (gen_inbound_check): Likewise.
25531
25532 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
25533
25534         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
25535         padding for PPC.
25536         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
25537         * config/vxlib.c (__gthread_once): Add race guard for PPC.
25538
25539 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25540
25541         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
25542         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
25543         shift counts to avoid out-of-bounds array accesses.
25544
25545 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25546
25547         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
25548         (Pmode): Move above.
25549
25550 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
25551
25552         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
25553         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
25554         GET_CODE macro.  Use IN_RANGE macro where appropriate.
25555         * config/alpha/alpha.h: Ditto.
25556         * config/alpha/alpha.md: Ditto.
25557         * config/alpha/constraints.md: Ditto.
25558         * config/alpha/predicates.md: Ditto.
25559
25560 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25561
25562         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
25563         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25564         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25565         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25566         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25567         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25568         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25569         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25570         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25571         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25572         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25573         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25574         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25575         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25576         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25577         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25578         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25579         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25580         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25581         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25582         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25583         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25584         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25585         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25586         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25587         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25588         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25589
25590 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25591
25592         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
25593         references from comments.
25594         * cfgbuild.c (count_basic_blocks): Delete.
25595         (find_basic_blocks_1): Delete.
25596         (find_basic_blocks): Delete.
25597         * except.c (finish_eh_generation): Make static.  Move comment from
25598         except.h here.  Remove find_basic_blocks references from comments.
25599         * except.h (finish_eh_generation): Delete.
25600         * basic-block.h (find_basic_blocks): Delete.
25601         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
25602
25603 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
25604
25605         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
25606         (sdbout_parms):  Likewise.
25607
25608 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
25609
25610         * config/sh/sh.c (prepare_cbranch_operands): Use
25611         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
25612         (expand_cbranchdi4): Likewise.
25613         (from_compare): Add cast to enum type.
25614         (expand_cbranchsi4): Use add_reg_note.
25615         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
25616         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
25617         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
25618         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25619         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
25620         instead of CODE_FOR_nothing.
25621         (cbranchdi4): Likewise.  Fix the order of arguments for
25622         gen_rtx_fmt_ee.
25623         (push_fpscr): Use add_reg_note.
25624         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
25625         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
25626
25627 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
25628
25629         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
25630         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25631         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25632         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
25633         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
25634         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
25635         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
25636         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
25637         config/alpha/x-vms, config/arc/t-arc,
25638         config/arm/README-interworking, config/arm/arm-c.c,
25639         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
25640         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
25641         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
25642         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
25643         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
25644         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
25645         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
25646         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
25647         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
25648         config/cris/t-elfmulti, config/crx/t-crx,
25649         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
25650         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
25651         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
25652         config/h8300/t-h8300, config/i386/athlon.md,
25653         config/i386/darwin-libgcc.10.4.ver,
25654         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
25655         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
25656         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
25657         config/i386/t-linux64, config/i386/t-nwld,
25658         config/i386/t-rtems-i386, config/i386/t-sol2-10,
25659         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
25660         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
25661         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
25662         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
25663         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
25664         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
25665         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
25666         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
25667         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
25668         config/m68k/t-uclinux, config/mcore/t-mcore,
25669         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
25670         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
25671         config/mips/crtn.asm, config/mips/irix-crti.asm,
25672         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
25673         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
25674         config/mips/mips-fixed.md, config/mips/sb1.md,
25675         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
25676         config/mips/t-iris6, config/mips/t-isa3264,
25677         config/mips/t-libgcc-mips16, config/mips/t-linux64,
25678         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
25679         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
25680         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
25681         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
25682         config/mn10300/t-linux, config/mn10300/t-mn10300,
25683         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
25684         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
25685         config/picochip/libgccExtras/clzsi2.asm,
25686         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
25687         config/rs6000/darwin-libgcc.10.4.ver,
25688         config/rs6000/darwin-libgcc.10.5.ver,
25689         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
25690         config/rs6000/t-aix43, config/rs6000/t-aix52,
25691         config/rs6000/t-darwin, config/rs6000/t-fprules,
25692         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
25693         config/rs6000/t-lynx, config/rs6000/t-netbsd,
25694         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
25695         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
25696         config/rs6000/t-rtems, config/rs6000/t-spe,
25697         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
25698         config/score/t-score-elf, config/sh/divcost-analysis,
25699         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
25700         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
25701         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
25702         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
25703         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
25704         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
25705         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
25706         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
25707         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
25708         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
25709         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
25710         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
25711         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
25712         limitx.h, version.c, xcoff.h: Add copyright and license notices.
25713         * config/h8300/genmova.sh: Include copyright and license notices
25714         in generated output.
25715         * config/h8300/mova.md: Regenerate.
25716         * doc/install.texi2html: Include word "Copyright" in copyright
25717         notice and use name "Free Software Foundation, Inc.".
25718         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25719         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25720         ChangeLog-2007, ChangeLog-2008: Correct dates.
25721
25722 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25723
25724         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
25725         NE_EXPR operations as well.
25726         * c-parser.c (c_parser_condition): Do not set location information on
25727         the condition.
25728         (c_parser_conditional_expression): Likewise.
25729         (c_parser_binary_expression): Set location information on operators.
25730         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
25731         TRUTH_NOT_EXPR has been folded.
25732         * fold-const.c (fold_truth_not_expr): Copy location information from
25733         the incoming expression to the outgoing one.
25734         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
25735         recursive calls on the LHS of the operator but pass that of the
25736         operator to recursive calls on the RHS of the operator.  Set it
25737         on the COND_EXPR.
25738         (shortcut_cond_expr): Set the locus of the operator on the second
25739         COND_EXPR and that of the expression on the first in degenerate cases.
25740         Pass the locus of the expression to calls to shortcut_cond_r.
25741         Set the locus of the 'then' block on the associated jump, if any.
25742         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
25743         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
25744         expression to call to gimplify_boolean_expr.
25745
25746 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
25747
25748         * config.gcc: Add additional configuration for
25749         i686-w64-mingw* and x86_64-w64-mingw* triplet.
25750         * config/i386/mingw-w64.h: New mingw-w64 specific header.
25751         (CPP_SPEC): Redefine for allowing -municode option.
25752         (STARTFILE_SPEC): Likewise.
25753         * config/i386/t-mingw-w64: New.
25754         * config/i386/mingw-w64.opt: New.
25755         (municode): Add new target option.
25756         * doc/invoke.texi (municode): Add documentation for new option.
25757
25758 2009-04-21  Ian Lance Taylor  <iant@google.com>
25759
25760         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25761         Correct test for number of arguments.
25762         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25763
25764 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
25765
25766         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
25767         argument of emit_library_call.
25768
25769 2009-04-21  Richard Guenther  <rguenther@suse.de>
25770
25771         PR middle-end/39829
25772         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
25773         inside VIEW_CONVERT_EXPRs.
25774
25775 2009-04-21  Martin Jambor  <mjambor@suse.cz>
25776
25777         * tree-switch-conversion.c (build_constructors): Split a long line.
25778         (constructor_contains_same_values_p): New function.
25779         (build_one_array): Create assigns of constants if possible, do not
25780         call mark_sym_for_renaming, call update_stmt.
25781         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
25782         make_rename_temp.  Do not call mark_symbols_for_renaming, call
25783         update_stmt.
25784         (gen_def_assigns): Do not call mark_symbols_for_renaming or
25785         find_new_referenced_vars, call update_stmt.
25786         (gen_inbound_check): Use create_tmp_var and create ssa names manually
25787         instead of calling make_rename_temp.  Do not call
25788         find_new_referenced_vars or mark_symbols_for_renaming, call
25789         update_stmt.
25790
25791 2009-04-21  Richard Guenther  <rguenther@suse.de>
25792
25793         PR tree-optimization/39827
25794         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
25795         (tree_ssa_phiprop): Pass the correct array size.
25796
25797 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
25798
25799         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
25800
25801 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25802
25803         PR 16202
25804         * c-typeck.c (lvalue_p): Move declaration ...
25805         * c-common.h (lvalue_p): ... to here.
25806         * c-common.c (candidate_equal_p): New.
25807         (add_tlist): Use it.
25808         (merge_tlist): Use it.
25809         (warn_for_collisions_1): Likewise.
25810         (warning_candidate_p): Accept more candidates.
25811         (verify_tree): A warning candidate can be an expression. Use
25812         candidate_equal_p.
25813
25814 2009-04-21  Ben Elliston  <bje@au.ibm.com>
25815
25816         PR target/5267
25817         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
25818         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
25819         options.  Remove -mcall-solaris documentation.
25820
25821 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25822
25823         PR c++/13358
25824         * doc/invoke.texi (-Wlong-long): Update description.
25825         * c-lex (interpret_integer): Only warn if there was no previous
25826         overflow and -Wlong-long is enabled.
25827         * c-decl.c (declspecs_add_type): Drop redundant flags.
25828         * c.opt (Wlong-long): Init to -1.
25829         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
25830         and front-end warn_long_long. Wlong-long only depends on other
25831         flags if it is uninitialized.
25832         * c-parser.c (disable_extension_diagnostics): warn_long_long is
25833         the same for CPP and FE.
25834         (restore_extension_diagnostics): Likewise.
25835
25836 2009-04-20  Ian Lance Taylor  <iant@google.com>
25837
25838         Fix enum conversions which are invalid in C++:
25839         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
25840         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
25841         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
25842         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
25843         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
25844         (dbxout_parms): Likewise.
25845         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
25846         (df_clear_flags): Likewise.
25847         * df-problems.c (df_rd_bb_local_compute_process_def): Change
25848         top_flag parameter to int.
25849         (df_chain_create_bb_process_use): Likewise.
25850         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
25851         Remove cast.
25852         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
25853         (df_ref_create_structure, df_def_record_1): Likewise.
25854         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
25855         (df_notes_rescan): Change 0 to VOIDmode in function call.
25856         (df_get_call_refs, df_insn_refs_collect): Likewise.
25857         (df_bb_regs_collect): Likewise.
25858         (df_entry_block_defs_collect): Likewise.
25859         (df_exit_block_uses_collect): Likewise.
25860         * df.h: Update declarations.
25861         * double-int.c (double_int_divmod): Add cast to enum type.
25862         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
25863         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
25864         (based_loc_descr): Likewise.
25865         (loc_descriptor_from_tree_1): Change first_op and second_op to
25866         enum dwarf_location_atom.  Add cast to enum type.
25867         * expmed.c (init_expmed): Change 0 to SET in function call.
25868         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
25869         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
25870         (do_store_flag): Likewise.
25871         * fixed-value.h (struct fixed_value): Change mode to enum
25872         machine_mode.
25873         * function.c (assign_parms): Change 0 to VOIDmode in function call.
25874         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
25875         function call.
25876         (insert_insn_decl, insert_decl, insert_state): Likewise.
25877         (automata_list_finish): Likewise.
25878         * genrecog.c (process_define_predicate): Add cast to enum type.
25879         * gensupport.c (init_predicate_table): Add cast to enum type.
25880         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
25881         function call.
25882         (gimple_build_call_1, gimple_build_label): Likewise.
25883         (gimple_build_goto, gimple_build_asm_1): Likewise.
25884         (gimple_build_switch_1, gimple_build_cdt): Likewise.
25885         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
25886         (enum fallback): Rename from enum fallback_t.
25887         (fallback_t): Typedef as int.
25888         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
25889         GSI_SAME_STMT in function call.
25890         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
25891         enum type.
25892         (setup_reg_class_relations): Likewise.
25893         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
25894         (setup_prohibited_class_mode_regs): Add cast to enum type.
25895         (setup_prohibited_mode_move_regs): Likewise.
25896         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
25897         (record_address_regs): Change i to enum reg_class.
25898         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
25899         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
25900         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
25901         (GET_MODE_2XWIDER_MODE): Likewise.
25902         (GET_CLASS_NARROWEST_MODE): Likewise.
25903         * omp-low.c (expand_omp_for): Add cast to enum type.
25904         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
25905         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
25906         * postreload.c (reload_cse_simplify_operands): Change rclass local
25907         to enum reg_class.
25908         * predict.c (combine_predictions_for_insn): Change best_predictor
25909         and predictor to enum br_predictor.
25910         (combine_predictions_for_bb): Likewise.
25911         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
25912         use SET_PREDICT_EXPR_OUTCOME.
25913         * real.c (real_arithmetic): Change icode to code in function call.
25914         * reginfo.c (init_move_cost): Add casts to enum type.
25915         (init_reg_sets_1, init_fake_stack_mems): Likewise.
25916         * regmove.c (regclass_compatible_p): Change class0 and class1 to
25917         enum reg_class.
25918         * reload.c (find_valid_class): Add casts to enum type.
25919         (push_reload): Change 0 to NO_REGS in function call.
25920         (find_reloads): Change this_alternative to array of enum
25921         reg_class.  Remove some now-unnecessary casts.
25922         (make_memloc): Change 0 to VOIDmode in function call.
25923         * reload1.c (reload): Change 0 to VOIDmode in function call.
25924         (eliminate_regs_1, elimination_effects): Likewise.
25925         (eliminate_regs_in_insn): Likewise.
25926         (emit_input_reload_insns): Add cast to enum type.
25927         (delete_output_reload): Change 0 to VOIDmode in function call.
25928         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
25929         to enum type in function call.
25930         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
25931         (SET_PREDICT_EXPR_OUTCOME): Define.
25932         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
25933         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
25934         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
25935         (dump_function): Likewise.
25936         * tree-dump.h: Update declarations.
25937         * tree-pass.h: Update declarations.
25938         * varasm.c (assemble_integer): Change mclass to enum mode_class.
25939         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
25940         enum type.
25941         (arm_rtx_costs_1): Correct parenthesization.
25942         (arm_rtx_costs): Add casts to enum type.
25943         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
25944         (vfp_emit_fstmd): Use add_rg_note.
25945         (emit_multi_reg_push, emit_sfm): Likewise.
25946         (thumb_set_frame_pointer): Likewise.
25947         (arm_expand_prologue): Likewise.
25948         (arm_regno_class): Change return type to enum reg_class.
25949         (thumb1_expand_prologue): Use add_reg_note.
25950         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
25951         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
25952         in function call.
25953         * config/arm/gentune.sh: Add cast to enum type.
25954         * config/arm/arm-tune.md: Rebuild.
25955         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
25956         (ix86_split_fp_branch, predict_jump): Likewise.
25957         (ix86_expand_multi_arg_builtin): Change sub_code from enum
25958         insn_code to enum rtx_code.
25959         (ix86_builtin_vectorized_function): Add cast to enum type.
25960         * config/i386/i386.md (truncdfsf2): Change slot to enum
25961         ix86_stack_slot.
25962         (truncxf<mode>2, isinf<mode>2): Likewise.
25963         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
25964         enum type.
25965         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
25966         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
25967         (insert_bundle_state): Change 1 to INSERT in function call.
25968         (ia64_add_bundle_selector_before): Likewise.
25969         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
25970         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
25971         (restore_stack_nonlocal): Likewise.
25972         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
25973         function call.
25974         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
25975         function call.
25976         (mips_rtx_costs): Likewise.
25977         (mips_override_options): Add casts to enum type.
25978         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
25979         in function call.
25980         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
25981         (store_reg, set_reg_plus_d): Likewise.
25982         (hppa_expand_prologue, hppa_profile_hook): Likewise.
25983         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25984         cast to enum type.
25985         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
25986         function call.
25987         (emit_unlikely_jump): Use add_reg_note.
25988         (rs6000_emit_allocate_stack): Likewise.
25989         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
25990         (output_toc): Change 1 to INSERT in function call.
25991         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
25992         (rs6000_initialize_trampoline): Likewise.
25993         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
25994         function call.
25995         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
25996         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
25997         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
25998         (save_gprs): Use add_reg_note.
25999         (s390_emit_prologue): Likewise.
26000         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26001         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
26002         (sparc_fold_builtin): Add cast to enum type.
26003         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
26004         enum insn_code.
26005         (spu_expand_prologue): Use add_reg_note.
26006         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
26007
26008 2009-04-20  Ian Lance Taylor  <iant@google.com>
26009
26010         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
26011         (c_parser_postfix_expression_after_primary): Get VEC for list of
26012         arguments.  Get original types of arguments.  Call
26013         build_function_call_vec.
26014         (cached_expr_list_1, cached_expr_list_2): New static variables.
26015         (c_parser_expr_list): Change return type to VEC *.  Add
26016         p_orig_types parameter.  Change all callers.
26017         (c_parser_release_expr): New static function.
26018         (c_parser_vec_to_tree_list): New static function.
26019         * c-typeck.c (build_function_call): Rewrite to build a VEC and
26020         call build_function_call_vec.
26021         (build_function_call_vec): New function, based on old
26022         build_function_call.
26023         (convert_arguments): Remove nargs and argarray parameters.  Change
26024         values to a VEC.  Add origtypes parameter.
26025         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
26026         (convert_for_assignment): Add origtype parameter.  Change all
26027         callers.  If warn_cxx_compat, check for conversion to an enum
26028         type when calling a function.
26029         (store_init_value): Add origtype parameter.  Change all callers.
26030         (digest_init): Likewise.
26031         (struct init_node): Add origtype field.
26032         (add_pending_init): Add origtype parameter.  Change all callers.
26033         (output_init_element): Likewise.
26034         (output_pending_init_elements): Pass origtype from init_node to
26035         output_init_element.
26036         (process_init_element): Pass origtype from c_expr to
26037         output_init_element.
26038         (c_finish_return): Add origtype parameter.  Change all callers.
26039         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
26040         caller.
26041         (sync_resolve_params): Likewise.
26042         (sync_resolve_return): Change params to first_param.  Change caller.
26043         (resolve_overloaded_builtins): Change params to VEC *.  Change
26044         callers.  Save first parameter around call to build_function_call_vec.
26045         * c-decl.c (finish_decl): Add origtype parameter.  Change all
26046         callers.  Call build_function_call_vec rather than
26047         build_function_call for cleanup.
26048         * c-tree.h: Update declarations.
26049         * c-common.h: Update declarations.
26050         * stub-objc.c (objc_rewrite_function_call): Change parameter from
26051         params to first_param.
26052         * target.h (struct gcc_target): Change resolve_overloaded_builtin
26053         params parameter from tree to void *.
26054         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26055         Change arglist parameter to have type void *, and to be a pointer
26056         to a VEC.
26057         * config/rs6000/rs6000-protos.h
26058         (altivec_resolve_overloaded_builtin): Update declaration.
26059         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
26060         fnargs parameter to have type void *, and to be a pointer to a
26061         VEC.  Call build_function_call_vec instead of
26062         build_function_call.
26063         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
26064
26065 2009-04-20  Joey Ye  <joey.ye@intel.com>
26066             Xuepeng Guo  <xuepeng.guo@intel.com>
26067             H.J. Lu  <hongjiu.lu@intel.com>
26068
26069         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
26070
26071         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
26072         (IX86_LEA_PRIORITY): Likewise.
26073         (distance_non_agu_define): New function.
26074         (distance_agu_use): Likewise.
26075         (ix86_lea_for_add_ok): Likewise.
26076         (ix86_dep_by_shift_count): Likewise.
26077
26078         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
26079         should split for LEA.
26080
26081         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
26082         function.
26083         (ix86_dep_by_shift_count): Likewise.
26084
26085 2009-04-20  Richard Guenther  <rguenther@suse.de>
26086
26087         * expr.c (handled_component_p): Move ...
26088         * tree.h (handled_component_p): ... here.
26089         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
26090         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
26091         and REALPART_EXPR to be in one group.
26092
26093 2009-04-20  Richard Guenther  <rguenther@suse.de>
26094
26095         * basic-block.h (get_all_dominated_blocks): Declare.
26096         * dominance.c (get_all_dominated_blocks): New function.
26097         * tree-cfg.c (get_all_dominated_blocks): Remove.
26098         (remove_edge_and_dominated_blocks): Adjust.
26099         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
26100         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
26101         instead of recursing.
26102
26103 2009-04-20  Doug Kwan  <dougkwan@google.com>
26104
26105         * cgraph.h (cgraph_node_ptr): New type for vector functions.
26106         (struct cgraph_node_set_def): New type.
26107         (cgraph_node_set) New type. Also declare vector functions.
26108         (struct cgraph_node_set_element_def): New type.
26109         (cgraph_node_set_element): Ditto.
26110         (cgraph_node_set_iterator): New iterator type.
26111         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
26112         cgraph_node_set_remove, dump_cgraph_node_set,
26113         debug_cgraph_node_set): New prototypes.
26114         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
26115         cgraph_node_set_size): New inlines.
26116         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
26117         including cgraph.h.
26118         (struct ipa_opt_pass): Add struct cgraph_node_set_def
26119         argument to function 'write_summary'.
26120         * ipa.c: Include ggc.h.
26121         (hash_cgraph_node_set_element,
26122         eq_cgraph_node_set_element, cgraph_node_set_new,
26123         cgraph_node_set_add, cgraph_node_set_remove,
26124         cgraph_node_set_find, dump_cgraph_node_set,
26125         debug_cgraph_node_set): New functions.
26126         * Makefile.in (ipa.o): Add dependency on GGC_H.
26127
26128 2009-04-20  Ira Rosen  <irar@il.ibm.com>
26129
26130         PR tree-optimization/39675
26131         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
26132         check of the return code of vect_schedule_slp. Check that
26133         stmt_vec_info still exists for the statement, before checking its
26134         vectorization type.
26135
26136 2009-04-20  Michael Matz  <matz@suse.de>
26137
26138         * Makefile.in (generated_files): Take out $(simple_generated_c).
26139
26140 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
26141
26142         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
26143         (UINTPTR_TYPE):  Likewise.
26144
26145 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26146
26147         PR c/37481
26148         * c-typeck.c (digest_init): Check for initializing an array with a
26149         string literal.
26150
26151 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26152
26153         PR c/19771
26154         * c-semantics.c (pop_stmt_list): Propagate
26155         STATEMENT_LIST_HAS_LABEL to parent statement list.
26156
26157 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
26158
26159         * config/mips/mips.h (mips_tune_attr): New macro.
26160         * config/mips/mips.md (cpu): Use it.
26161
26162 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26163
26164         PR c/38243
26165         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
26166         declaring a tag.
26167
26168 2009-04-19  Diego Novillo  <dnovillo@google.com>
26169
26170         * toplev.c (compile_file): Move call to coverage_finish ...
26171         * cgraphunit.c (ipa_passes): ... here.
26172         Call cgraph_process_new_functions.
26173         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
26174         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
26175
26176 2009-04-19  Jan Hubicka  <jh@suse.cz>
26177
26178         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
26179         cfun.
26180         (dump_cgraph_node): Dump can throw external flag.
26181         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
26182
26183 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26184
26185         PR c/32061
26186         PR c++/36954
26187         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
26188         * common.opt (Wlogical-op): Move from here...
26189         * c.opt (Wlogical-op): ... to here.
26190         * c-typeck.c (parser_build_binary_op): Update call to
26191         warn_logical_operator.
26192         * c-opts.c (c_common_post_options): Enable warn_logical_op with
26193         extra_warnings.
26194         * c-common.c (warn_logical_op): Update.
26195         * c-common.h (warn_logical_op): Update declaration.
26196
26197 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26198
26199         * tree.c (protected_set_expr_location): Fix formatting.
26200
26201 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26202
26203         PR c/27676
26204         * c-typeck.c (readonly_warning): new.
26205         (build_unary_op, build_modify_expr): Use readonly_warning for
26206         storing into something readonly but not const-qualified.
26207
26208 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26209
26210         PR c/22367
26211         * c-typeck.c (build_unary_op): Check for taking address of
26212         expression of type void.
26213
26214 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26215
26216         PR c/35210
26217         * c-typeck.c (build_function_call): Check for calling a function
26218         with qualified void return types.  Call require_complete_type when
26219         generating a trap.
26220
26221 2009-04-18  Jan Hubicka  <jh@suse.cz>
26222
26223         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
26224         Set nothrow flag.
26225         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
26226         can_throw_external flag.
26227         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
26228         * ipa-pure-const.c (ignore_edge): New function.
26229         (propagate): Compute order for NOTHROW computation; set NOTHROWs
26230         only over can_throw_external edges.
26231         (local_pure_const): Add nothrow flag.
26232         * ipa-utils.c (searchc): Add ignore_edge callback.
26233         (ipa_utils_reduced_inorder): Add ignore_edge callback.
26234         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
26235         (set_nothrow_function_flags): Update cgraph.
26236         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
26237
26238 2009-04-18  Richard Guenther  <rguenther@suse.de>
26239
26240         PR middle-end/39804
26241         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
26242         (fold_stmt): ... this and ...
26243         (fold_stmt_inplace): ... this.
26244         (fold_stmt_1): Fold references in calls and asms.
26245         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
26246
26247 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26248
26249         * tree-vrp.c (ssa_name_nonzero_p): Remove.
26250         * tree.h: Remove the prototype for ssa_name_nonzero_p.
26251
26252 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26253
26254         * tree.c (function_args_count): Remove.
26255         * tree.h: Remove the prototype for function_args_count.
26256
26257 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26258
26259         * tree-iterator.c (expr_only): Remove.
26260         * tree.h: Remove the prototype for expr_only.
26261
26262 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26263
26264         * reginfo.c (cannot_change_mode_set_regs): Remove.
26265         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
26266
26267 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
26268
26269         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
26270         whether operands 0 and 1 overlaps.
26271
26272 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26273
26274         PR middle-end/36902
26275         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
26276         pointer. Use warning_at instead of warning.
26277         (search_for_addr_array): Likewise.
26278         (check_array_bounds): Likewise.
26279         (check_all_array_refs): Check that the incoming edge is not in the
26280         list of edges to be removed.
26281         (check_all_array_refs): Avoid the temporal pointer.
26282         (vrp_visit_cond_stmt): Fix typo.
26283         (simplify_switch_using_ranges): Handle the case where the switch
26284         index is an integer constant.
26285
26286 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
26287
26288         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
26289
26290 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26291
26292         * doc/extend.texi, doc/invoke.texi: Fix typos.
26293
26294 2009-04-17  Cary Coutant  <ccoutant@google.com>
26295
26296         * tree-flow-inline.h (get_lineno): Fix inverted test.
26297
26298 2009-04-17  Diego Novillo  <dnovillo@google.com>
26299
26300         * tree-ssa-pre.c (create_expression_by_pieces): Remove
26301         assertion for AVAIL_OUT.
26302
26303 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
26304
26305         PR target/38627
26306         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
26307         * config/sh/linux-atomic.asm: Likewise.
26308
26309 2009-04-17  Diego Novillo  <dnovillo@google.com>
26310
26311         * except.c (debug_eh_tree): New.
26312         (struct eh_region, struct eh_status): Move ...
26313         * except.h: ... here.
26314         (add_type_for_runtime): Declare extern.
26315         (lookup_type_for_runtime): Likewise.
26316         (debug_eh_tree): Declare.
26317         * Makefile.in (GTFILES): List except.h before except.c
26318
26319 2009-04-17  Diego Novillo  <dnovillo@google.com>
26320
26321         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
26322         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
26323         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
26324         (find_vars_r): ... here.
26325         * tree-flow.h (find_referenced_vars_in): Declare.
26326         * tree-ssa-pre.c (create_expression_by_pieces): Assert
26327         that AVAIL_OUT exists for BLOCK.
26328         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
26329         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
26330         (tree-parloops.o): Likewise.
26331
26332 2009-04-17  Simon Baldwin  <simonb@google.com>
26333
26334         * toplev.c (default_tree_printer): Add handling for %E format.
26335
26336 2009-04-17  Diego Novillo  <dnovillo@google.com>
26337
26338         * tree-pretty-print.c (dump_generic_node): Add break after
26339         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
26340         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
26341         FUNCTION_TYPE together.  Call print_struct_decl when printing
26342         structures and TDF_SLIM is not given.
26343         (print_struct_decl): Fix logic for detecting recursion.
26344
26345 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26346
26347         PR 31567
26348         * gcc.c (create_at_file): New.
26349         (compile_input_file_p): New.
26350         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
26351         * main.c (main): Update call to toplev_main.
26352         * toplev.c (toplev_main): Change signature. Call expandargv.
26353         * toplev.h (toplev_main): Change signature.
26354
26355 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26356
26357         * dwarf2out.c (field_byte_offset): Use the type size as the field size
26358         if the latter is not constant.
26359
26360 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
26361
26362         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
26363
26364 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26365
26366         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
26367         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
26368
26369 2009-04-17  Richard Guenther  <rguenther@suse.de>
26370
26371         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26372         Handle component references view-converting an invariant address.
26373
26374 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
26375
26376         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
26377         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
26378         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
26379         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
26380         Use @deftypevr rather than @deftypevar.
26381
26382 2009-04-17  Richard Guenther  <rguenther@suse.de>
26383
26384         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
26385         (get_prop_source_stmt): Likewise.
26386         (can_propagate_from): Likewise.
26387
26388 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
26389
26390         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
26391         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
26392         (--with-multilib-list): Add default value.
26393         * configure: Regenerate.
26394         * Makefile.in (TM_ENDIAN_CONFIG): Define.
26395         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
26396         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
26397         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
26398         Don't add default cpu to multilib list unnecessarily, but do enable
26399         the relevant compiler option..
26400         Add support for --with-multilib-list=<blank> and
26401         --with-multilib-list=!<somelib> to supress unwanted multilibs.
26402         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
26403         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
26404         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
26405         TM_MULTILIB_CONFIG.
26406         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
26407         (MULTILIB_OSDIRNAMES): New variable.
26408         * config/sh/t-1e: Delete file.
26409         * config/sh/t-mlib-sh1: Delete file.
26410         * config/sh/t-mlib-sh2: Delete file.
26411         * config/sh/t-mlib-sh2a: Delete file.
26412         * config/sh/t-mlib-sh2a-nofpu: Delete file.
26413         * config/sh/t-mlib-sh2a-single: Delete file.
26414         * config/sh/t-mlib-sh2a-single-only: Delete file.
26415         * config/sh/t-mlib-sh2e: Delete file.
26416         * config/sh/t-mlib-sh3e: Delete file.
26417         * config/sh/t-mlib-sh4: Delete file.
26418         * config/sh/t-mlib-sh4-nofpu: Delete file.
26419         * config/sh/t-mlib-sh4-single: Delete file.
26420         * config/sh/t-mlib-sh4-single-only: Delete file.
26421         * config/sh/t-mlib-sh4a: Delete file.
26422         * config/sh/t-mlib-sh4a-nofpu: Delete file.
26423         * config/sh/t-mlib-sh4a-single: Delete file.
26424         * config/sh/t-mlib-sh4a-single-only: Delete file.
26425         * config/sh/t-mlib-sh4al: Delete file.
26426         * config/sh/t-mlib-sh5-32media: Delete file.
26427         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
26428         * config/sh/t-mlib-sh5-64media: Delete file.
26429         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
26430         * config/sh/t-mlib-sh5-compact: Delete file.
26431         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
26432         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
26433         * doc/install.texi (Options specification): Add
26434         --with-multilib-list and --with-endian.
26435
26436 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26437
26438         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
26439         REVISION_c.
26440         (OBJS-common): Add plugin-version.o.
26441         (plugin-version.o): New.
26442         * gcc-plugin.h (plugin_gcc_version): New.
26443         (plugin_default_version_check): New.
26444         (plugin_init_func, plugin_init): Add version argument.
26445         * plugin-version.c: New.
26446         * plugin.c (str_plugin_gcc_version_name): New.
26447         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
26448         pass it to the init function.
26449         (plugin_default_version_check): New.
26450
26451 2009-04-17  Richard Guenther  <rguenther@suse.de>
26452
26453         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
26454         for decl-vs-decl disambiguation.
26455
26456 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
26457
26458         * config/s390/s390.h (s390_tune_attr): New macro definition.
26459         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
26460
26461 2009-04-17  Richard Guenther  <rguenther@suse.de>
26462
26463         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
26464         (fold_stmt_r): Likewise.
26465         (maybe_fold_reference): New function.
26466         (fold_gimple_assign): Handle cases fold_stmt_r did.
26467         (fold_stmt): Do not use fold_stmt_r.
26468         (fold_stmt_inplace): Likewise.
26469
26470 2009-04-17  Richard Guenther  <rguenther@suse.de>
26471
26472         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
26473         (record_equivalences_from_stmt): Remove useless checks and
26474         simplifications.
26475         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
26476         the type is already suitable.
26477
26478 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
26479
26480         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
26481
26482 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
26483
26484         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
26485         (CMPtype): Define as __gcc_CMPtype.
26486
26487 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
26488
26489         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
26490         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
26491
26492 2009-04-17  Richard Guenther  <rguenther@suse.de>
26493
26494         PR tree-optimization/39746
26495         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
26496         special-casing for builtins and static variable use/def.
26497         (call_may_clobber_ref_p_1): Likewise.
26498
26499 2009-04-16  Ian Lance Taylor  <iant@google.com>
26500
26501         * df.h: Include "timevar.h".
26502         (struct df_problem): Change tv_id field to timevar_id_t.
26503         * tree-pass.h: Include "timevar.h".
26504         (struct opt_pass): Change tv_id field to timevar_id_t.
26505         * timevar.h (timevar_id_t): Define TV_NONE.
26506         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
26507         TV_NONE rather than tv_id != 0.
26508         (execute_one_pass): Likewise.
26509         * Makefile.in (DF_H): Add $(TIMEVAR_H).
26510         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
26511         dependencies to $(TREE_PASS_H).
26512         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
26513         to TV_NONE.
26514         (pass_branch_target_load_optimize2): Likewise.
26515         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
26516         (pass_outof_cfg_layout_mode): Likewise.
26517         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
26518         (pass_rebuild_cgraph_edges): Likewise.
26519         (pass_remove_cgraph_callee_edges): Likewise.
26520         * df-core.c (pass_df_initialize_opt): Likewise.
26521         (pass_df_initialize_no_opt): Likewise.
26522         (pass_df_finish): Likewise.
26523         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
26524         * except.c (pass_set_nothrow_function_flags): Likewise.
26525         (pass_convert_to_eh_region_ranges): Likewise.
26526         * final.c (pass_compute_alignments): Likewise.
26527         * function.c (pass_instantiate_virtual_regs): Likewise.
26528         (pass_init_function): Likewise.
26529         (pass_leaf_regs): Likewise.
26530         (pass_match_asm_constraints): Likewise.
26531         * gimple-low.c (pass_lower_cf): Likewise.
26532         (pass_mark_used_blocks): Likewise.
26533         * init-regs.c (pass_initialize_regs): Likewise.
26534         * integrate.c (pass_initial_value_sets): Likewise.
26535         * ira.c (pass_ira): Likewise.
26536         * jump.c (pass_cleanup_barriers): Likewise.
26537         * omp-low.c (pass_expand_omp): Likewise.
26538         (pass_lower_omp): Likewise.
26539         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
26540         * recog.c (pass_split_all_insns): Likewise.
26541         (pass_split_after_reload): Likewise.
26542         (pass_split_before_regstack): Likewise.
26543         (pass_split_before_sched2): Likewise.
26544         (pass_split_for_shorten_branches): Likewise.
26545         * reginfo.c (pass_reginfo_init): Likewise.
26546         (pass_subregs_of_mode_init): Likewise.
26547         (pass_subregs_of_mode_finish): Likewise.
26548         * passes.c (pass_postreload): Likewise.
26549         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
26550         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
26551         (pass_warn_function_return): Likewise.
26552         (pass_warn_function_noreturn): Likewise.
26553         * tree-complex.c (pass_lower_complex): Likewise.
26554         (pass_lower_complex_O0): Likewise.
26555         * tree-if-conv.c (pass_if_conversion): Likewise.
26556         * tree-into-ssa.c (pass_build_ssa): Likewise.
26557         * tree-mudflap.c (pass_mudflap_1): Likewise.
26558         (pass_mudflap_2): Likewise.
26559         * tree-nomudflap.c (pass_mudflap_1): Likewise.
26560         (pass_mudflap_2): Likewise.
26561         * tree-nrv.c (pass_return_slot): Likewise.
26562         * tree-object-size.c (pass_object_sizes): Likewise.
26563         * tree-optimize.c (pass_all_optimizations): Likewise.
26564         (pass_early_local_passes): Likewise.
26565         (pass_all_early_optimizations): Likewise.
26566         (pass_cleanup_cfg): Likewise.
26567         (pass_cleanup_cfg_post_optimizing): Likewise.
26568         (pass_free_datastructures): Likewise.
26569         (pass_free_cfg_annotations): Likewise.
26570         (pass_fixup_cfg): Likewise.
26571         (pass_init_datastructures): Likewise.
26572         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
26573         (pass_late_warn_uninitialized): Likewise.
26574         (pass_update_address_taken): Likewise.
26575         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
26576         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
26577         (pass_cse_sincos): Likewise.
26578         (pass_convert_to_rsqrt): Likewise.
26579         * tree-ssa-structalias.c (pass_build_alias): Likewise.
26580         * tree-stdarg.c (pass_stdarg): Likewise.
26581         * tree-tailcall.c (pass_tail_recursion): Likewise.
26582         (pass_tail_calls): Likewise.
26583         * tree-vect-generic.c (pass_lower_vector): Likewise.
26584         (pass_lower_vector_ssa): Likewise.
26585         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
26586
26587 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
26588
26589         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
26590         XLR entry.
26591         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
26592         Handle -march=xlr.
26593         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
26594         logical and signext.
26595
26596 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
26597
26598         PR target/39767
26599         * config/sh/predicates.md (arith_operand): Check if the operand
26600         of TRUNCATE is a REG.
26601
26602 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26603
26604         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
26605         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
26606
26607 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26608
26609         * tree-iterator.c (tsi_split_statement_list_after,
26610         tsi_split_statement_list_before): Remove.
26611         * tree-iterator.h: Remove the prototypes for
26612         tsi_split_statement_list_after and tsi_split_statement_list_before.
26613
26614 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26615
26616         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
26617         * tree-ssa-propagate.h: Remove the prototype for
26618         stmt_makes_single_load.
26619
26620 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26621
26622         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
26623         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
26624
26625 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26626
26627         * tree-iterator.c (EXPR_LAST_BODY): Remove.
26628
26629 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26630
26631         * except.c (eh_region_outer_p): Remove.
26632         * except.h: Remove the prototype for eh_region_outer_p.
26633
26634 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26635
26636         * function.c (current_function_assembler_name): Remove.
26637         * function.h: Remove the prototype for
26638         current_function_assembler_name.
26639
26640 2009-04-16  Ian Lance Taylor  <iant@google.com>
26641
26642         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
26643         (add_reg_note): Call alloc_reg_note.
26644         * rtl.h (alloc_reg_note): Declare.
26645         * combine.c (try_combine): Use alloc_reg_note.
26646         (recog_for_combine, move_deaths): Likewise.
26647         (distribute_notes): Use alloc_reg_note and add_reg_note.
26648         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
26649         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
26650         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
26651
26652 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
26653
26654         PR rtl-optimization/39762
26655         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
26656         ira_may_move_out_cost): Add comments about way of their usage.
26657         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
26658
26659         * ira-conflicts.c (process_regs_for_copy): Use function
26660         ira_get_register_move_cost instead of global
26661         ira_register_move_cost.
26662
26663         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
26664         color_pass, move_spill_restore, update_curr_costs): Ditto.
26665
26666         * ira-lives.c (process_single_reg_class_operands): Ditto.
26667
26668         * ira-emit.c (emit_move_list): Ditto.
26669
26670         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
26671         (record_reg_classes): Ditto.  Use functions
26672         ira_get_register_move_cost and ira_get_may_move_cost instead of
26673         global vars ira_register_move_cost, ira_may_move_out_cost and
26674         ira_may_move_in_cost.
26675         (record_address_regs): Don't call ira_init_register_move_cost.
26676         Use function ira_get_may_move_cost instead of global
26677         ira_may_move_in_cost.
26678         (process_bb_node_for_hard_reg_moves): Use function
26679         ira_get_register_move_cost instead of global ira_register_move_cost.
26680         (ira_costs): Don't call ira_init_register_move_cost.
26681
26682 2009-04-16  Richard Guenther  <rguenther@suse.de>
26683
26684         * tree-cfg.c (verify_gimple_assign_binary):
26685         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
26686         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
26687         (create_general_new_stmt): Note that this function is broken.
26688
26689 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26690
26691         * common.opt (fhelp): Add Var(help_flag).
26692         * gcc-plugin.h (plugin_info): Add help.
26693         * plugin.c (plugin_name_args): Add help.
26694         (register_plugin_info): Set plugin->help.
26695         (print_help_one_plugin): New.
26696         (print_plugins_help): New.
26697         * plugin.h (print_plugins_help): New.
26698         * toplev.c (toplev_main): Call print_plugins_help if needed.
26699
26700 2009-04-16  Richard Guenther  <rguenther@suse.de>
26701
26702         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
26703         (gimple_ior_addresses_taken_1): New function.
26704         (gimple_ior_addresses_taken): Likewise.
26705         * gimple.h (struct gimple_statement_with_ops_base): Remove
26706         addresses_taken member.
26707         (gimple_ior_addresses_taken): Declare.
26708         (gimple_addresses_taken, gimple_addresses_taken_ptr,
26709         gimple_set_addresses_taken): Remove.
26710         * ipa-reference.c (mark_address): New function.
26711         (scan_stmt_for_static_refs): Use it for marking addresses taken.
26712         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
26713         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
26714         (gimple_add_to_addresses_taken): Remove.
26715         (get_tmr_operands): Call mark_address_taken.
26716         (get_asm_expr_operands): Likewise.
26717         (get_expr_operands): Likewise.
26718         (build_ssa_operands): Do not clear the addresses_taken bitmap.
26719         (free_stmt_operands): Do not free it.
26720         * tree-ssa.c (delete_tree_ssa): Likewise.
26721         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
26722
26723 2009-04-16  Richard Guenther  <rguenther@suse.de>
26724
26725         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
26726         (walk_stmt_load_store_ops): Likewise.
26727         * gimple.c (get_base_loadstore): New function.
26728         (walk_stmt_load_store_addr_ops): Likewise.
26729         (walk_stmt_load_store_ops): Likewise.
26730         * ipa-pure-const.c (check_op): Simplify.
26731         (check_load, check_store): New functions.
26732         (check_stmt): Use walk_stmt_load_store_ops.
26733         * ipa-reference.c (mark_load): Adjust signature.
26734         (mark_store): Likewise.
26735         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
26736
26737 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26738
26739         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
26740         (plugin_info): New.
26741         * opts.c (common_handle_option): Don't call print_version.
26742         * plugin.c (plugin_name_args): Add version.
26743         (register_plugin_info): New.
26744         (register_callback): Handle PLUGIN_INFO.
26745         (try_init_one_plugin): New.
26746         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
26747         if failed to init.
26748         (finalize_one_plugin): New.
26749         (finalize_plugins): New.
26750         (print_one_plugin): New.
26751         (print_plugins_versions): New.
26752         * plugin.h (print_plugins_versions): New.
26753         (finalize_plugins): New.
26754         * toplev.c (compile_file): Don't call initialize_plugins.
26755         (print_version): Call print_plugins_versions.
26756         (toplev_main): Call initialize_plugins. Print version if needed.
26757         Call finalize_plugins.
26758
26759 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26760
26761         * common.opt (fversion): New.
26762         * gcc.c (print_version): New.
26763         (process_command): Don't print the version. Just set print_version.
26764         (main): Print version. Call subprocesses if print_version and
26765         verbose_flag are set.
26766         * opts.c (common_handle_option): Handle OPT_fversion.
26767
26768 2009-04-16  Richard Guenther  <rguenther@suse.de>
26769             Ira Rosen  <irar@il.ibm.com>
26770
26771         PR tree-optimization/39698
26772         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
26773         type of the reduction variable.  Only generate the def if
26774         it is needed.
26775
26776         * omp-low.c (expand_omp_for_generic): When converting to a pointer
26777         make sure to first convert to an integer of the same precision.
26778         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
26779         the type of the evolution correctly in computing the new
26780         induction variable base.
26781
26782 2009-04-16  Richard Guenther  <rguenther@suse.de>
26783
26784         PR middle-end/39625
26785         * tree-cfg.c (make_blocks): Split statements with to-be
26786         abnormal SSA names on the lhs.
26787
26788 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
26789
26790         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
26791         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
26792         * c-typeck.c (really_start_incremental_init): Likewise.
26793         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
26794         (TARGET_INITIALIZER): Remove it.
26795         * target.h (struct target): Remove vector_opaque_p.
26796         * tree.c (build_opaque_vector_type): New.
26797         * tree.h (TYPE_VECTOR_OPAQUE): New.
26798         (build_opaque_vector_type): Declare.
26799         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
26800         * config/rs6000/rs6000.c (build_opaque_vector_type,
26801         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
26802         (rs6000_init_builtins): Use build_opaque_vector_type for
26803         opaque_V4SI_type_node.
26804
26805 2009-04-15  Catherine Moore  <clm@codesourcery.com>
26806
26807         * debug.h (set_name):  Declare.
26808         * dwarf2out.c (dwarf2out_set_name): Declare.
26809         (dwarf2_debug_hooks): Add set_name.
26810         (find_AT_string): New.
26811         (add_AT_string): Call find_AT_string.
26812         (dwarf2out_set_name): New.
26813         * cp/decl.c (grokdeclarator): Call set_name.
26814         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
26815         * debug.c (do_nothing_debug_hooks):  Likewise.
26816         * dbxout.c (dbx_debug_hooks): Likewise.
26817         * sdbout.c (sdb_debug_hooks): Likewise.
26818
26819 2009-04-15  Michael Eager  <eager@eagercon.com>
26820
26821         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
26822         reg for single-precision FPU.
26823         * config/rs6000/rs6000.md (movsi_internal1): Only for
26824         !TARGET_SINGLE_FPU.
26825         (movsi_internal1_single): New. Add pattern to move SI values to/from
26826         single-precision FP regs.
26827
26828 2009-04-15  Richard Guenther  <rguenther@suse.de>
26829
26830         * omp-low.c (lower_rec_input_clauses): Build correct address
26831         expressions.
26832         (expand_omp_for_generic): Fix multiplication type.
26833         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
26834         (generate_memset_zero): Fix types.
26835         * tree-profile.c (prepare_instrumented_value): Correctly
26836         widen a pointer.
26837
26838 2009-04-15  Ian Lance Taylor  <iant@google.com>
26839
26840         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
26841         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
26842         for -Wall and for -Wc++-compat.
26843         (c_common_post_options): For C++, set warn_enum_compare if not
26844         already set.
26845         * c-tree.h (struct c_expr): Add field original_type.
26846         (build_external_ref): Update declaration.
26847         * c-parser.c (c_parser_braced_init): Set original_type.
26848         (c_parser_initelt): Likewise.
26849         (c_parser_expr_no_commas): Likewise.
26850         (c_parser_conditional_expression): Likewise.
26851         (c_parser_cast_expression): Likewise.
26852         (c_parser_unary_expression): Likewise.  Pull setting of
26853         original_code to top of function.
26854         (c_parser_sizeof_expression): Set original_type.
26855         (c_parser_alignof_expression): Likewise.
26856         (c_parser_postfix_expression): Likewise.  Pull setting of
26857         original_code to top of function.
26858         (c_parser_postfix_expression_after_paren_type): Set original_type.
26859         (c_parser_postfix_expression_after_primary): Likewise.
26860         (c_parser_expression): Likewise.
26861         * c-typeck.c (build_external_ref): Add type parameter.  Change all
26862         callers.
26863         (c_expr_sizeof_expr): Set original_type field.
26864         (parser_build_unary_op): Likewise.
26865         (parser_build_binary_op): Likewise.  Optionally warn about
26866         comparisons of enums of different types.
26867         (digest_init): Set original_type field.
26868         (really_start_incremental_init): Likewise.
26869         (push_init_level, pop_init_level): Likewise.
26870         * doc/invoke.texi (Warning Options): -Wenum-compare now
26871         supported in C.
26872
26873 2009-04-15  Richard Guenther  <rguenther@suse.de>
26874
26875         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
26876         out a necessary conversion.
26877         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
26878         names we didn't value number.
26879         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
26880
26881 2009-04-15  Richard Guenther  <rguenther@suse.de>
26882
26883         PR tree-optimization/39764
26884         * tree-ssa-ccp.c (get_value): Canonicalize value with
26885         canonicalize_float_value.
26886
26887 2009-04-15  Jan Hubicka  <jh@suse.cz>
26888
26889         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
26890         Wrong version of patch.
26891
26892 2009-04-15  Jan Hubicka  <jh@suse.cz>
26893
26894         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
26895
26896 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
26897
26898         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
26899         our distinct integral and vector types.
26900
26901 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
26902
26903         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
26904         * init.c (build_vtbl_address): Remove call to assemble_external.
26905
26906 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
26907
26908         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
26909         output for other floating point modes.
26910
26911 2009-04-14  Diego Novillo  <dnovillo@google.com>
26912
26913         * diagnostic.c (diagnostic_report_diagnostic): Do not
26914         warn about loaded plugins for DK_ERROR and DK_WARNING.
26915         * c-decl.c (declspecs_add_type): Move call to
26916         invoke_plugin_callbacks ...
26917         * c-parser.c (c_parser_declspecs): ... here.
26918         * plugin.c (dump_active_plugins): Tidy output.
26919
26920 2009-04-14  Diego Novillo  <dnovillo@google.com>
26921             Le-Chun Wu  <lcwu@google.com>
26922
26923         * configure.ac: Add --enable-plugin support.
26924         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
26925         * Makefile.in (PLUGIN_H): Define.
26926         Export ENABLE_PLUGIN and GMPINC to site.exp.
26927         Add PLUGINLIBS to link command.
26928         Add/modify dependencies for plugin.o and files including plugin.h.
26929         (plugin.o): New.
26930         * config.in: Regenerate.
26931
26932         * opts.c (common_handle_option): Handle OPT_fplugin_ and
26933         OPT_fplugin_arg_.
26934
26935 2009-04-14  Le-Chun Wu  <lcwu@google.com>
26936
26937         * tree-pass.h (register_one_dump_file): Add a prototype for
26938         register_one_dump_file.
26939         * toplev.c (compile_file): Call initialize_plugins.
26940         (do_compile): Call invoke_plugin_callbacks.
26941         (toplev_main): Call invoke_plugin_callbacks.
26942         * common.opt: Add -fplugin= and -fplugin-arg-.
26943         * gcc-plugin.h: New public header file for plugins to include.
26944         * plugin.c: New source file.
26945         * plugin.h: New internal header file.
26946         * passes.c (register_one_dump_file): Make it external.
26947
26948         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
26949
26950 2009-04-14  Diego Novillo  <dnovillo@google.com>
26951
26952         * doc/plugins.texi: New.
26953         * doc/gccint.texi: Add reference to Plugins chapter.
26954         * doc/invoke.texi: Document -fplugin and -fplugin-arg
26955         * diagnostic.c (diagnostic_report_diagnostic): Warn about
26956         loaded plugins, if any.
26957         * timevar.def (TV_PLUGIN_INIT): Define.
26958         (TV_PLUGIN_RUN): Define.
26959         * plugin.c: Include timevar.h
26960         (plugins_active_p): New.
26961         (dump_active_plugins): New.
26962         (debug_active_plugins): New.
26963
26964 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
26965
26966         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
26967         library paths.
26968         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
26969
26970 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
26971
26972         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
26973         the same as a minus without a shift.
26974
26975 2009-04-14  Nick Clifton  <nickc@redhat.com>
26976
26977         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
26978         comparisons with small integers will always produce a short
26979         branch.
26980
26981 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
26982
26983         Merge:
26984         2008-12-19  Diego Novillo  <dnovillo@google.com>
26985
26986         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
26987
26988 2009-04-14  Richard Guenther  <rguenther@suse.de>
26989
26990         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
26991         verification.
26992         (verify_gimple_assign_binary): Likewise.  Handle shifts and
26993         rotates correctly.
26994         (verify_gimple_phi): Print the mismatched argument position.
26995         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26996         Fix types.
26997         (vect_update_init_of_dr): Likewise.
26998         * matrix-reorg.c (transform_access_sites): Do what the
26999         comment suggests.
27000         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
27001
27002 2009-04-13  Michael Eager  <eager@eagercon.com>
27003
27004         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
27005         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
27006         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
27007         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
27008         remove duplicate config
27009
27010 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
27011
27012         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
27013         file_name:line_number type locator of the call site.
27014
27015 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
27016
27017         * genautomata.c: Put blank after comma.
27018         (automaton_decls): New.
27019         (struct unit_usage): Add comments to member next.
27020         (store_alt_unit_usage): Keep the list ordered.
27021         (unit_present_on_list_p, equal_alternatives_p): New.
27022         (check_regexp_units_distribution): Check units distribution
27023         correctness correctly.
27024         (main): Don't write automata if error is found.  Return correct
27025         exit code.
27026
27027         * config/m68k/cf.md (cfv4_ds): Remove.
27028         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
27029         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
27030
27031         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
27032         power4-load-ext, power4-store, power4-store-update,
27033         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
27034         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
27035         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
27036         power4-sqrt, power4-isync): Modify reservation to make correct
27037         unit distribution to automata.
27038
27039         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
27040         power5-store-update, power5-two, power5-three, power5-lmul,
27041         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
27042
27043 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
27044
27045         * except.c (pass_set_nothrow_function_flags): Set name and add
27046         TODO_dump_func.
27047         (set_nothrow_function_flags): Mention in the dump file when
27048         changing a function to nothrow.
27049
27050 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
27051
27052         PR/39066
27053         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
27054         instead of unsigned long.
27055
27056 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27057
27058         * config/arm/arm.c (return_used_this_function): Remove.
27059         (arm_output_function_prologue): Remove use of
27060         return_used_this_function.
27061         (output_return_instruction): Replace use of
27062         return_used_this_function
27063         by cfun->machine->return_used_this_function.
27064         (arm_output_epilogue): Likewise.
27065         (arm_output_function_epilogue): Likewise.
27066         (thumb_unexpanded_epilogue): Likewise.
27067         * config/arm/arm.h (struct machine_function):
27068         New member return_used_this_function.
27069
27070 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
27071
27072         * doc/install.texi: Correct description of default directory for
27073         --with-gxx-include-dir.
27074
27075 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
27076
27077         * fold-const.c (build_range_check): Properly deal with enumeral and
27078         boolean base types.
27079
27080 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27081
27082         * doc/invoke.texi (max_gcse_passes): Remove documentation.
27083         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
27084         * params.h (MAX_GCSE_PASSES): Remove.
27085         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
27086         in sequence.  Remove ability to run multiple passes.
27087         (bypass_jumps): Report run as third CPROP pass.
27088
27089 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
27090
27091         PR middle-end/39651
27092         * except.c (can_throw_external): Look at each insn in a SEQUENCE
27093         when deciding whether the whole SEQUENCE can throw.
27094
27095 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
27096
27097         PR target/39740
27098         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
27099         offseted label references.
27100
27101 2009-04-11  Jan Hubicka  <jh@suse.cz>
27102
27103         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
27104
27105 2009-04-11  Richard Guenther  <rguenther@suse.de>
27106
27107         PR middle-end/39732
27108         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
27109         return variables as TREE_ADDRESSABLE.
27110
27111 2009-04-11  Richard Guenther  <rguenther@suse.de>
27112
27113         PR tree-optimization/39713
27114         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
27115         reference trees have SSA_NAME operands.
27116
27117 2009-04-11  Richard Guenther  <rguenther@suse.de>
27118
27119         PR c/39712
27120         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
27121         address expressions.
27122
27123 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
27124
27125         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
27126         match changes in Cygwin 1.7
27127         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
27128         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
27129
27130 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27131
27132         PR tree-optimization/39701
27133         * doc/invoke.texi (Optimization Options): Document change in
27134         meaning and initialization of -fdelete-null-pointer-checks.
27135
27136 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27137
27138         PR middle-end/39701
27139         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
27140
27141         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
27142         here.
27143
27144         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
27145
27146 2009-04-10  Chao-ying Fu  <fu@mips.com>
27147
27148         * doc/tm.texi (Instruction Output): Document
27149         TARGET_ASM_FINAL_POSTSCAN_INSN.
27150         * target.h (final_postscan_insn): New field in asm_out.
27151         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27152         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
27153         * final.c (final_scan_insn): Call
27154         targetm.asm_out.final_postscan_insn after outputting
27155         an asm macro and a normal instruction.
27156
27157         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
27158         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
27159         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
27160         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
27161         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27162
27163 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27164
27165         PR middle-end/39701
27166         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
27167         variables as non-NULL even with -fdelete-null-pointer-checks.
27168
27169 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27170
27171         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
27172
27173 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
27174
27175         PR target/39678
27176         * config/i386/i386.c (classify_argument): Handle SCmode with
27177         (bit_offset % 64) != 0.
27178
27179 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
27180
27181         * doc/invoke.texi (Optimize Options): Add cross-reference to
27182         -Q --help=optimizers examples.
27183
27184 2009-04-10  Ben Elliston  <bje@au.ibm.com>
27185
27186         PR target/36800
27187         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
27188         regalign for the reg == fpr and TDmode case.
27189
27190 2009-04-09  David Ayers  <ayers@fsfe.org>
27191
27192         PR objc/29200
27193         * objc/objc-act.c (warn_with_method): Remove helper function.
27194         (check_duplicates): Call warning and inform directly.
27195         (really_start_method): Likewise.
27196
27197 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27198
27199         * expmed.c (expand_divmod): Always use a comparison for a division
27200         by a large unsigned integer.
27201
27202         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
27203         for things others than variables or functions as nonzero.
27204
27205 2009-04-09  Nick Clifton  <nickc@redhat.com>
27206
27207         * unwind-compat.c: Change copyright header to refer to version
27208         3 of the GNU General Public License with version 3.1 of the
27209         GCC Runtime Library Exception and to point readers at the
27210         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
27211         * config/alpha/crtfastmath.c: Likewise.
27212         * config/alpha/linux-unwind.h: Likewise.
27213         * config/alpha/qrnnd.asm: Likewise.
27214         * config/alpha/vms-crt0-64.c: Likewise.
27215         * config/alpha/vms-crt0.c: Likewise.
27216         * config/alpha/vms-dwarf2.asm: Likewise.
27217         * config/alpha/vms-dwarf2eh.asm: Likewise.
27218         * config/alpha/vms-psxcrt0-64.c: Likewise.
27219         * config/alpha/vms-psxcrt0.c: Likewise.
27220         * config/alpha/vms_tramp.asm: Likewise.
27221         * config/arc/initfini.c: Likewise.
27222         * config/arc/lib1funcs.asm: Likewise.
27223         * config/arm/bpabi-v6m.S: Likewise.
27224         * config/arm/bpabi.S: Likewise.
27225         * config/arm/bpabi.c: Likewise.
27226         * config/arm/crti.asm: Likewise.
27227         * config/arm/crtn.asm: Likewise.
27228         * config/arm/ieee754-df.S: Likewise.
27229         * config/arm/ieee754-sf.S: Likewise.
27230         * config/arm/lib1funcs.asm: Likewise.
27231         * config/arm/libunwind.S: Likewise.
27232         * config/arm/linux-atomic.c: Likewise.
27233         * config/arm/mmintrin.h: Likewise.
27234         * config/arm/pr-support.c: Likewise.
27235         * config/arm/unaligned-funcs.c: Likewise.
27236         * config/arm/unwind-arm.c: Likewise.
27237         * config/arm/unwind-arm.h: Likewise.
27238         * config/avr/libgcc.S: Likewise.
27239         * config/bfin/crti.s: Likewise.
27240         * config/bfin/crtlibid.s: Likewise.
27241         * config/bfin/crtn.s: Likewise.
27242         * config/bfin/lib1funcs.asm: Likewise.
27243         * config/bfin/linux-unwind.h: Likewise.
27244         * config/cris/arit.c: Likewise.
27245         * config/cris/cris_abi_symbol.c: Likewise.
27246         * config/darwin-64.c: Likewise.
27247         * config/darwin-crt2.c: Likewise.
27248         * config/darwin-crt3.c: Likewise.
27249         * config/darwin.h: Likewise.
27250         * config/dbxelf.h: Likewise.
27251         * config/dfp-bit.c: Likewise.
27252         * config/dfp-bit.h: Likewise.
27253         * config/elfos.h: Likewise.
27254         * config/fixed-bit.c: Likewise.
27255         * config/fixed-bit.h: Likewise.
27256         * config/fp-bit.c: Likewise.
27257         * config/fp-bit.h: Likewise.
27258         * config/fr30/crti.asm: Likewise.
27259         * config/fr30/crtn.asm: Likewise.
27260         * config/fr30/lib1funcs.asm: Likewise.
27261         * config/freebsd-spec.h: Likewise.
27262         * config/frv/cmovd.c: Likewise.
27263         * config/frv/cmovh.c: Likewise.
27264         * config/frv/cmovw.c: Likewise.
27265         * config/frv/frvbegin.c: Likewise.
27266         * config/frv/frvend.c: Likewise.
27267         * config/frv/lib1funcs.asm: Likewise.
27268         * config/glibc-stdint.h: Likewise.
27269         * config/h8300/clzhi2.c: Likewise.
27270         * config/h8300/crti.asm: Likewise.
27271         * config/h8300/crtn.asm: Likewise.
27272         * config/h8300/ctzhi2.c: Likewise.
27273         * config/h8300/fixunssfsi.c: Likewise.
27274         * config/h8300/lib1funcs.asm: Likewise.
27275         * config/h8300/parityhi2.c: Likewise.
27276         * config/h8300/popcounthi2.c: Likewise.
27277         * config/i386/ammintrin.h: Likewise.
27278         * config/i386/att.h: Likewise.
27279         * config/i386/avxintrin.h: Likewise.
27280         * config/i386/biarch64.h: Likewise.
27281         * config/i386/bmmintrin.h: Likewise.
27282         * config/i386/cpuid.h: Likewise.
27283         * config/i386/cross-stdarg.h: Likewise.
27284         * config/i386/crtfastmath.c: Likewise.
27285         * config/i386/crtprec.c: Likewise.
27286         * config/i386/cygming-crtbegin.c: Likewise.
27287         * config/i386/cygming-crtend.c: Likewise.
27288         * config/i386/cygwin.asm: Likewise.
27289         * config/i386/emmintrin.h: Likewise.
27290         * config/i386/gmm_malloc.h: Likewise.
27291         * config/i386/gthr-win32.c: Likewise.
27292         * config/i386/i386.h: Likewise.
27293         * config/i386/immintrin.h: Likewise.
27294         * config/i386/linux-unwind.h: Likewise.
27295         * config/i386/linux64.h: Likewise.
27296         * config/i386/mm3dnow.h: Likewise.
27297         * config/i386/mmintrin-common.h: Likewise.
27298         * config/i386/mmintrin.h: Likewise.
27299         * config/i386/nmmintrin.h: Likewise.
27300         * config/i386/pmm_malloc.h: Likewise.
27301         * config/i386/pmmintrin.h: Likewise.
27302         * config/i386/smmintrin.h: Likewise.
27303         * config/i386/sol2-c1.asm: Likewise.
27304         * config/i386/sol2-ci.asm: Likewise.
27305         * config/i386/sol2-cn.asm: Likewise.
27306         * config/i386/sol2-gc1.asm: Likewise.
27307         * config/i386/tmmintrin.h: Likewise.
27308         * config/i386/unix.h: Likewise.
27309         * config/i386/w32-unwind.h: Likewise.
27310         * config/i386/wmmintrin.h: Likewise.
27311         * config/i386/x86-64.h: Likewise.
27312         * config/i386/x86intrin.h: Likewise.
27313         * config/i386/xmmintrin.h: Likewise.
27314         * config/ia64/crtbegin.asm: Likewise.
27315         * config/ia64/crtend.asm: Likewise.
27316         * config/ia64/crtfastmath.c: Likewise.
27317         * config/ia64/crti.asm: Likewise.
27318         * config/ia64/crtn.asm: Likewise.
27319         * config/ia64/fde-glibc.c: Likewise.
27320         * config/ia64/lib1funcs.asm: Likewise.
27321         * config/ia64/linux-unwind.h: Likewise.
27322         * config/ia64/quadlib.c: Likewise.
27323         * config/ia64/unwind-ia64.c: Likewise.
27324         * config/linux.h: Likewise.
27325         * config/m32c/m32c-lib1.S: Likewise.
27326         * config/m32c/m32c-lib2-trapv.c: Likewise.
27327         * config/m32c/m32c-lib2.c: Likewise.
27328         * config/m32r/initfini.c: Likewise.
27329         * config/m68hc11/larith.asm: Likewise.
27330         * config/m68hc11/m68hc11-crt0.S: Likewise.
27331         * config/m68k/cf.md: Likewise.
27332         * config/m68k/crti.s: Likewise.
27333         * config/m68k/crtn.s: Likewise.
27334         * config/m68k/lb1sf68.asm: Likewise.
27335         * config/m68k/linux-unwind.h: Likewise.
27336         * config/mcore/crti.asm: Likewise.
27337         * config/mcore/crtn.asm: Likewise.
27338         * config/mcore/lib1.asm: Likewise.
27339         * config/mips/linux-unwind.h: Likewise.
27340         * config/mips/loongson.h: Likewise.
27341         * config/mips/mips16.S: Likewise.
27342         * config/mmix/crti.asm: Likewise.
27343         * config/mmix/crtn.asm: Likewise.
27344         * config/pa/fptr.c: Likewise.
27345         * config/pa/hpux-unwind.h: Likewise.
27346         * config/pa/lib2funcs.asm: Likewise.
27347         * config/pa/linux-atomic.c: Likewise.
27348         * config/pa/linux-unwind.h: Likewise.
27349         * config/pa/milli64.S: Likewise.
27350         * config/pa/quadlib.c: Likewise.
27351         * config/pa/stublib.c: Likewise.
27352         * config/picochip/libgccExtras/adddi3.asm: Likewise.
27353         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
27354         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
27355         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
27356         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
27357         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
27358         * config/picochip/libgccExtras/divmod15.asm: Likewise.
27359         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
27360         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
27361         * config/picochip/libgccExtras/longjmp.asm: Likewise.
27362         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
27363         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
27364         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
27365         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
27366         * config/picochip/libgccExtras/setjmp.asm: Likewise.
27367         * config/picochip/libgccExtras/subdi3.asm: Likewise.
27368         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
27369         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
27370         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
27371         * config/rs6000/750cl.h: Likewise.
27372         * config/rs6000/altivec.h: Likewise.
27373         * config/rs6000/biarch64.h: Likewise.
27374         * config/rs6000/crtresfpr.asm: Likewise.
27375         * config/rs6000/crtresgpr.asm: Likewise.
27376         * config/rs6000/crtresxfpr.asm: Likewise.
27377         * config/rs6000/crtresxgpr.asm: Likewise.
27378         * config/rs6000/crtsavfpr.asm: Likewise.
27379         * config/rs6000/crtsavgpr.asm: Likewise.
27380         * config/rs6000/darwin-asm.h: Likewise.
27381         * config/rs6000/darwin-fallback.c: Likewise.
27382         * config/rs6000/darwin-fpsave.asm: Likewise.
27383         * config/rs6000/darwin-ldouble.c: Likewise.
27384         * config/rs6000/darwin-tramp.asm: Likewise.
27385         * config/rs6000/darwin-unwind.h: Likewise.
27386         * config/rs6000/darwin-vecsave.asm: Likewise.
27387         * config/rs6000/darwin-world.asm: Likewise.
27388         * config/rs6000/e500crtres32gpr.asm: Likewise.
27389         * config/rs6000/e500crtres64gpr.asm: Likewise.
27390         * config/rs6000/e500crtres64gprctr.asm: Likewise.
27391         * config/rs6000/e500crtrest32gpr.asm: Likewise.
27392         * config/rs6000/e500crtrest64gpr.asm: Likewise.
27393         * config/rs6000/e500crtresx32gpr.asm: Likewise.
27394         * config/rs6000/e500crtresx64gpr.asm: Likewise.
27395         * config/rs6000/e500crtsav32gpr.asm: Likewise.
27396         * config/rs6000/e500crtsav64gpr.asm: Likewise.
27397         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
27398         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
27399         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
27400         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
27401         * config/rs6000/eabi-ci.asm: Likewise.
27402         * config/rs6000/eabi-cn.asm: Likewise.
27403         * config/rs6000/eabi.asm: Likewise.
27404         * config/rs6000/linux-unwind.h: Likewise.
27405         * config/rs6000/linux64.h: Likewise.
27406         * config/rs6000/paired.h: Likewise.
27407         * config/rs6000/paired.md: Likewise.
27408         * config/rs6000/ppc64-fp.c: Likewise.
27409         * config/rs6000/ppu_intrinsics.h: Likewise.
27410         * config/rs6000/rs6000.h: Likewise.
27411         * config/rs6000/si2vmx.h: Likewise.
27412         * config/rs6000/sol-ci.asm: Likewise.
27413         * config/rs6000/sol-cn.asm: Likewise.
27414         * config/rs6000/spe.h: Likewise.
27415         * config/rs6000/spu2vmx.h: Likewise.
27416         * config/rs6000/sysv4.h: Likewise.
27417         * config/rs6000/tramp.asm: Likewise.
27418         * config/rs6000/vec_types.h: Likewise.
27419         * config/s390/linux-unwind.h: Likewise.
27420         * config/s390/tpf-unwind.h: Likewise.
27421         * config/score/crti.asm: Likewise.
27422         * config/score/crtn.asm: Likewise.
27423         * config/sh/crt1.asm: Likewise.
27424         * config/sh/crti.asm: Likewise.
27425         * config/sh/crtn.asm: Likewise.
27426         * config/sh/divtab-sh4-300.c: Likewise.
27427         * config/sh/divtab-sh4.c: Likewise.
27428         * config/sh/divtab.c: Likewise.
27429         * config/sh/lib1funcs-4-300.asm: Likewise.
27430         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
27431         * config/sh/lib1funcs.asm: Likewise.
27432         * config/sh/lib1funcs.h: Likewise.
27433         * config/sh/linux-atomic.asm: Likewise.
27434         * config/sh/linux-unwind.h: Likewise.
27435         * config/sh/shmedia.h: Likewise.
27436         * config/sh/sshmedia.h: Likewise.
27437         * config/sh/ushmedia.h: Likewise.
27438         * config/sparc/crtfastmath.c: Likewise.
27439         * config/sparc/linux-unwind.h: Likewise.
27440         * config/sparc/sol2-c1.asm: Likewise.
27441         * config/sparc/sol2-ci.asm: Likewise.
27442         * config/sparc/sol2-cn.asm: Likewise.
27443         * config/spu/divmodti4.c: Likewise.
27444         * config/spu/divv2df3.c: Likewise.
27445         * config/spu/float_disf.c: Likewise.
27446         * config/spu/float_unsdidf.c: Likewise.
27447         * config/spu/float_unsdisf.c: Likewise.
27448         * config/spu/float_unssidf.c: Likewise.
27449         * config/spu/mfc_multi_tag_release.c: Likewise.
27450         * config/spu/mfc_multi_tag_reserve.c: Likewise.
27451         * config/spu/mfc_tag_release.c: Likewise.
27452         * config/spu/mfc_tag_reserve.c: Likewise.
27453         * config/spu/mfc_tag_table.c: Likewise.
27454         * config/spu/multi3.c: Likewise.
27455         * config/spu/spu_internals.h: Likewise.
27456         * config/spu/spu_intrinsics.h: Likewise.
27457         * config/spu/spu_mfcio.h: Likewise.
27458         * config/spu/vec_types.h: Likewise.
27459         * config/spu/vmx2spu.h: Likewise.
27460         * config/stormy16/stormy16-lib2.c: Likewise.
27461         * config/svr4.h: Likewise.
27462         * config/sync.c: Likewise.
27463         * config/v850/lib1funcs.asm: Likewise.
27464         * config/vxlib-tls.c: Likewise.
27465         * config/vxlib.c: Likewise.
27466         * config/vxworks-dummy.h: Likewise.
27467         * config/xtensa/crti.asm: Likewise.
27468         * config/xtensa/crtn.asm: Likewise.
27469         * config/xtensa/ieee754-df.S: Likewise.
27470         * config/xtensa/ieee754-sf.S: Likewise.
27471         * config/xtensa/lib1funcs.asm: Likewise.
27472         * config/xtensa/lib2funcs.S: Likewise.
27473         * config/xtensa/linux-unwind.h: Likewise.
27474         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
27475         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
27476         * coretypes.h: Likewise.
27477         * crtstuff.c: Likewise.
27478         * defaults.h: Likewise.
27479         * dwarf2.h: Likewise.
27480         * emutls.c: Likewise.
27481         * gbl-ctors.h: Likewise.
27482         * gcov-io.h: Likewise.
27483         * ginclude/float.h: Likewise.
27484         * ginclude/iso646.h: Likewise.
27485         * ginclude/stdarg.h: Likewise.
27486         * ginclude/stdbool.h: Likewise.
27487         * ginclude/stddef.h: Likewise.
27488         * ginclude/stdfix.h: Likewise.
27489         * ginclude/stdint-gcc.h: Likewise.
27490         * ginclude/tgmath.h: Likewise.
27491         * gthr-aix.h: Likewise.
27492         * gthr-dce.h: Likewise.
27493         * gthr-gnat.c: Likewise.
27494         * gthr-gnat.h: Likewise.
27495         * gthr-lynx.h: Likewise.
27496         * gthr-mipssde.h: Likewise.
27497         * gthr-nks.h: Likewise.
27498         * gthr-posix.c: Likewise.
27499         * gthr-posix.h: Likewise.
27500         * gthr-posix95.h: Likewise.
27501         * gthr-rtems.h: Likewise.
27502         * gthr-single.h: Likewise.
27503         * gthr-solaris.h: Likewise.
27504         * gthr-tpf.h: Likewise.
27505         * gthr-vxworks.h: Likewise.
27506         * gthr-win32.h: Likewise.
27507         * gthr.h: Likewise.
27508         * libgcc2.c: Likewise.
27509         * libgcc2.h: Likewise.
27510         * libgcov.c: Likewise.
27511         * tsystem.h: Likewise.
27512         * typeclass.h: Likewise.
27513         * unwind-c.c: Likewise.
27514         * unwind-compat.h: Likewise.
27515         * unwind-dw2-fde-compat.c: Likewise.
27516         * unwind-dw2-fde-darwin.c: Likewise.
27517         * unwind-dw2-fde-glibc.c: Likewise.
27518         * unwind-dw2-fde.c: Likewise.
27519         * unwind-dw2-fde.h: Likewise.
27520         * unwind-dw2.c: Likewise.
27521         * unwind-dw2.h: Likewise.
27522         * unwind-generic.h: Likewise.
27523         * unwind-pe.h: Likewise.
27524         * unwind-sjlj.c: Likewise.
27525         * unwind.inc: Likewise.
27526         * config/arm/neon-gen.ml: Change generated copyright header to
27527         refer to version 3 of the GNU General Public License with
27528         version 3.1 of the GCC Runtime Library Exception and to point
27529         readers at the COPYING3 and COPYING3.RUNTIME files and the
27530         FSF's license web page.
27531         * config/arm/arm_neon.h: Regenerate.
27532
27533 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
27534
27535         * config/cris/cris.md: Change copyright header to refer to version
27536         3 of the GNU General Public License.
27537         * doc/install.texi2html: Change copyright header to refer to version
27538         3 of the GNU General Public License and to point readers at the
27539         COPYING3 file and the FSF's license web page.
27540         * config/vax/linux.h: Likewise.
27541
27542 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27543
27544         * config/i386/i386.md (cmpcc): New.
27545         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
27546         (sync_compare_and_swap_cc*): Delete.
27547
27548         * config/s390/s390.c (s390_compare_emitted): Remove.
27549         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
27550         s390_compare_emitted used to be handled.  Assert that modes match.
27551         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
27552         refer to sync_compare_and_swap_ccsi.
27553         * config/s390/s390.h (s390_compare_emitted): Remove.
27554         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
27555         instead of s390_compare_emitted.
27556         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
27557         instead of s390_compare_emitted.
27558         * config/s390/s390.md (cmpcc): New.
27559         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
27560         CC_REGNUM, do not pretend it's set.
27561         (sync_compare_and_swap_cc*): Delete.
27562         * config/s390/predicates.md (cc_reg_operand): New.
27563
27564         * expr.c (sync_compare_and_swap_cc): Delete.
27565         * optabs.h (sync_compare_and_swap_cc): Delete.
27566         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
27567         is being used with can_compare_p.
27568         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
27569         (find_cc_set): New.
27570         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
27571         look for a MODE_CC set instead.  Use emit_store_flag.
27572         (expand_compare_and_swap_loop): Likewise, with some additional
27573         complication to avoid a force_reg when useless.  Use
27574         emit_cmp_and_jump_insns.
27575         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
27576         * doc/md.texi (sync_compare_and_swap_cc): Merge with
27577         sync_compare_and_swap documentation.
27578
27579 2009-04-09  Jan Hubicka  <jh@suse.cz>
27580
27581         * except.c (find_prev_try): Break out from ....
27582         (duplicate_eh_regions): ... here; properly update prev_try pointers
27583         when duplication part of tree.
27584         (dump_eh_tree): Improve dumping.
27585         (verify_eh_region): New.
27586         (verify_eh_tree): Use it.
27587
27588 2009-04-06  Richard Guenther  <rguenther@suse.de>
27589
27590         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
27591         &ARRAY addresses by adjusting their types and prepending
27592         a conversion.
27593         * tree-cfg.c (verify_gimple_assign_single): Verify that
27594         addresses are correct.
27595
27596 2009-04-09  Richard Guenther  <rguenther@suse.de>
27597
27598         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
27599         indices into an array reference if possible.
27600         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
27601         Fold POINTER_PLUS_EXPR statements with invariant address.
27602
27603 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
27604
27605         PR target/39634
27606         * config.gcc (powerpc64-*-linux*): Always build biarch.
27607
27608 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
27609
27610         PR c/39613
27611         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
27612         it and pedwarn if this results in an INTEGER_CST.
27613
27614 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27615
27616         * doc/install.texi: Update minimum GMP version.  Remove obsolete
27617         text in MPFR section.
27618
27619 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
27620
27621         * dwarf2out.c (class_scope_p): New static inline.
27622         (class_or_namespace_scope_p): Use it.
27623         (gen_variable_die): Use DW_TAG_member tag for static data member
27624         declarations instead of DW_TAG_variable.
27625
27626         PR middle-end/39573
27627         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
27628         variables.
27629
27630 2009-04-08  Richard Guenther  <rguenther@suse.de>
27631
27632         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
27633         valueize random data.
27634
27635 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
27636
27637         * config.gcc (aix tm_file):  Add aix-stdint.h.
27638         (aix tm clause use_gcc_stdint):  Set to wrap.
27639         * config/rs6000/aix-stdint.h:  New file.
27640
27641 2009-04-08  Richard Guenther  <rguenther@suse.de>
27642
27643         PR middle-end/36291
27644         * tree-dfa.c (add_referenced_var): Do not recurse into
27645         global initializers.
27646         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
27647         exposed variables.
27648         (fold_const_aggregate_ref): Likewise.
27649
27650 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27651
27652         * recog.c (ordered_comparison_operator): New.
27653         * gensupport.c (std_preds): Add it.
27654         * doc/md.texi (Machine-Independent Predicates): Document it.
27655
27656 2009-04-08  Jan Hubicka  <jh@suse.cz>
27657
27658         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
27659         * function.h (rtl_eh): Remove exception_handler_label_map.
27660         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
27661         remove_exception_handler_label, for_each_eh_label_1): Remove.
27662         (rtl_remove_unreachable_regions): Remove.
27663         (convert_from_eh_region_ranges): Do not remove unreachable regions.
27664         (find_exception_handler_labels): Don't build the hashtable.
27665         (maybe_remove_eh_handler): Remove.
27666         (for_each_eh_label): Rewrite to walk the tree.
27667         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
27668         * except.h (maybe_remove_eh_handler): Remove.
27669         * passes.c (init_optimization_passes): Schedule second EH cleanup
27670         before out-of-ssa.
27671         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
27672         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
27673
27674 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27675
27676         * genoutput.c (validate_optab_operands): New.
27677         (gen_insn, gen_expand): Call it.
27678
27679         * genflags.c (gen_insn): Detect misused iterators.
27680         (main): Pass line_no to gen_insn, exit with status 1 on error.
27681
27682         * genextract.c (line_no): Make global.
27683         (VEC_safe_set_locstr): Change assertion to error message.
27684         (main): Exit with status 1 on error.
27685
27686 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
27687
27688         PR c/39614
27689         PR c/39673
27690         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27691         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27692         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
27693         * c-convert.c (convert): Do not call fold on results of conversion
27694         functions when the result is a C_MAYBE_CONST_EXPR.
27695         * c-parser.c (c_parser_postfix_expression): Do not fold condition
27696         of __builtin_choose_expr.
27697         * c-typeck.c (remove_c_maybe_const_expr): New.
27698         (build_unary_op, build_conditional_expr, build_compound_expr,
27699         build_binary_op, c_objc_common_truthvalue_conversion): Call
27700         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
27701         integer operands.
27702
27703 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
27704
27705         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
27706         CODE to produce a new one. Add a prototype to use fold_convert_const
27707
27708 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
27709
27710         PR bootstrap/39660
27711         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
27712         mix declarations and code.
27713
27714 2009-04-08  Ben Elliston  <bje@au.ibm.com>
27715
27716         * gcc.c: Replace `CC' with `GCC' throughout.
27717
27718 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
27719
27720         * doc/invoke.texi: Document Atom support.
27721
27722 2009-04-07  Jason Merrill  <jason@redhat.com>
27723
27724         PR c++/25185
27725         * c-common.h, c-common.c: Add flag_pretty_templates.
27726         * c-opts.c (c_common_handle_option): Set it.
27727         * c.opt: Add -fno-pretty-templates.
27728         * doc/invoke.texi (C++ Dialect Options): Likewise.
27729
27730 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
27731
27732         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
27733         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
27734         (ia64_expand_builtin): Likewise.
27735
27736 2009-04-07  Martin Jambor  <mjambor@suse.cz>
27737
27738         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
27739         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
27740         ADDR_EXPRS are include too.
27741
27742 2009-04-07  Richard Guenther  <rguenther@suse.de>
27743
27744         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
27745         decls are only used if passes as parameters or if they are
27746         local statics and the call is not to a builtin.
27747         (call_may_clobber_ref_p_1): Likewise.
27748
27749 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27750
27751         * expr.c (do_store_flag): Remove last argument.  Simplify code
27752         to avoid duplication of tests already done by can_compare_p.
27753         (expand_expr_real_1): Adjust caller.
27754
27755 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27756
27757         * optabs.c (can_compare_p): Test the predicate of a
27758         cbranch and cstore pattern.
27759
27760 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27761
27762         * expr.c (convert_move): Use emit_store_flag instead of
27763         "emulating" it.
27764
27765 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27766
27767         * config/i386/i386.c (ix86_compare_emitted): Remove.
27768         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
27769         ix86_compare_op0 like ix86_compare_emitted used to be handled.
27770         * config/i386/i386.h (ix86_compare_emitted): Remove.
27771         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
27772         instead of ix86_compare_emitted.
27773         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
27774
27775 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
27776
27777         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
27778         Add t-sysroot-suffix to tmake_file.
27779         * config/print-sysroot-suffix.sh: New file.
27780         * config/t-sysroot-suffix: New file.
27781
27782 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27783
27784         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
27785         as the latter produces a warning when the target does not support
27786         infinity.
27787
27788 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27789
27790         * dfp.c: Replace type punning assignments with memcpy throughout.
27791         * Makefile.in (dfp.o-warn): Remove.
27792
27793 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
27794
27795         PR target/39634
27796         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
27797         Include soft-fp/t-softfp after rs6000/t-linux64.
27798
27799 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
27800
27801         * stor-layout.c (set_sizetype): Use the full precision of their
27802         machine mode for bitsize types.
27803
27804 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27805
27806         * config/i386/i386.md: Revert 2 accidental checkins.
27807
27808 2009-04-06  Joey Ye  <joey.ye@intel.com>
27809             Xuepeng Guo  <xuepeng.guo@intel.com>
27810             H.J. Lu  <hongjiu.lu@intel.com>
27811
27812         Atom pipeline model, tuning and insn selection.
27813         * config.gcc (atom): Add atom config options and target.
27814
27815         * config/i386/atom.md: New.
27816
27817         * config/i386/i386.c (atom_cost): New cost.
27818         (m_ATOM): New macro flag.
27819         (initial_ix86_tune_features): Set m_ATOM.
27820         (x86_accumulate_outgoing_args): Likewise.
27821         (x86_arch_always_fancy_math_387): Likewise.
27822         (processor_target): Add Atom cost.
27823         (cpu_names): Add Atom cpu name.
27824         (override_options): Set Atom ISA.
27825         (ix86_issue_rate): New case PROCESSOR_ATOM.
27826         (ix86_adjust_cost): Likewise.
27827
27828         * config/i386/i386.h (TARGET_ATOM): New target macro.
27829         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
27830         (TARGET_OPT_AGU): New target option.
27831         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
27832         (processor_type): Add PROCESSOR_ATOM.
27833
27834         * config/i386/i386.md (cpu): Add new value "atom".
27835         (use_carry, movu): New attr.
27836         (atom.md): Include atom.md.
27837         (adddi3_carry_rex64): Set attr "use_carry".
27838         (addqi3_carry): Likewise.
27839         (addhi3_carry): Likewise.
27840         (addsi3_carry): Likewise.
27841         (*addsi3_carry_zext): Likewise.
27842         (subdi3_carry_rex64): Likewise.
27843         (subqi3_carry): Likewise.
27844         (subhi3_carry): Likewise.
27845         (subsi3_carry): Likewise.
27846         (x86_movdicc_0_m1_rex64): Likewise.
27847         (*x86_movdicc_0_m1_se): Likewise.
27848         (x86_movsicc_0_m1): Likewise.
27849         (*x86_movsicc_0_m1_se): Likewise.
27850         (*adddi_1_rex64): Emit add insn as much as possible.
27851         (*addsi_1): Likewise.
27852         (return_internal): Set atom_unit.
27853         (return_internal_long): Likewise.
27854         (return_pop_internal): Likewise.
27855         (*rcpsf2_sse): Set atom_sse_attr attr.
27856         (*qrt<mode>2_sse): Likewise.
27857         (*prefetch_sse): Likewise.
27858
27859         * config/i386/i386-c.c (ix86_target_macros_internal): New case
27860         PROCESSOR_ATOM.
27861         (ix86_target_macros_internal): Likewise.
27862
27863         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
27864         (*prefetch_sse_rex): Likewise.
27865         (sse_rcpv4sf2): Likewise.
27866         (sse_vmrcpv4sf2): Likewise.
27867         (sse_sqrtv4sf2): Likewise.
27868         (<sse>_vmsqrt<mode>2): Likewise.
27869         (sse_ldmxcsr): Likewise.
27870         (sse_stmxcsr): Likewise.
27871         (*sse_sfence): Likewise.
27872         (sse2_clflush): Likewise.
27873         (*sse2_mfence): Likewise.
27874         (*sse2_lfence): Likewise.
27875         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
27876         (<sse>_movup<ssemodesuffixf2c>): Likewise.
27877         (avx_movdqu<avxmodesuffix>): Likewise.
27878         (avx_lddqu<avxmodesuffix>): Likewise.
27879         (sse2_movntv2di): Change attr "type" to "ssemov".
27880         (sse2_movntsi): Likewise.
27881         (rsqrtv8sf2): Change attr "type" to "sseadd".
27882         (sse3_addsubv2df3): Set attr "atom_unit".
27883         (sse3_h<plusminus_insn>v4sf3): Likewise.
27884         (*sse2_pmaddwd): Likewise.
27885         (*vec_extractv2di_1_rex64): Likewise.
27886         (*vec_extractv2di_1_avx): Likewise.
27887         (sse2_psadbw): Likewise.
27888         (ssse3_phaddwv8hi3): Likewise.
27889         (ssse3_phaddwv4hi3): Likewise.
27890         (ssse3_phadddv4si3): Likewise.
27891         (ssse3_phadddv2si3): Likewise.
27892         (ssse3_phaddswv8hi3): Likewise.
27893         (ssse3_phaddswv4hi3): Likewise.
27894         (ssse3_phsubwv8hi3): Likewise.
27895         (ssse3_phsubwv4hi3): Likewise.
27896         (ssse3_phsubdv4si3): Likewise.
27897         (ssse3_phsubdv2si3): Likewise.
27898         (ssse3_phsubswv8hi3): Likewise.
27899         (ssse3_phsubswv4hi3): Likewise.
27900         (ssse3_pmaddubsw128): Likewise.
27901         (sse3_pmaddubsw: Likewise.
27902         (ssse3_palignrti): Likewise.
27903         (ssse3_palignrdi): Likewise.
27904
27905 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
27906
27907         * doc/install.texi (Specific): Fix two cross-references to MinGW.
27908
27909 2009-04-06  Richard Guenther  <rguenther@suse.de>
27910
27911         PR tree-optimization/28868
27912         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
27913         of which PHI results we inserted.
27914         (insert_into_preds_of_block): Record inserted PHIs.
27915         (eliminate): Eliminate redundant PHI nodes.
27916         (init_pre): Init inserted_phi_names.
27917
27918 2009-04-06  Richard Guenther  <rguenther@suse.de>
27919
27920         PR tree-optimization/39643
27921         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
27922         IMAGPART_EXPRs of complex constants.
27923         (execute_fold_all_builtins): If we folded a call queue
27924         TODO_update_address_taken.
27925
27926 2009-04-06  Jan Hubicka  <jh@suse.cz>
27927
27928         PR middle-end/39659
27929         * except.c (remove_unreachable_regions): Propagate may_contain_throw
27930         flag.
27931
27932 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
27933
27934         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
27935         delay slot.
27936         (ic_invalidate_array): Likewise.
27937
27938 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
27939
27940         * calls.c (emit_library_call_value_1): Fix a problem with parameter
27941         alignment for library calls.
27942
27943 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
27944
27945         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
27946         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
27947         * config/i386/mingw-stdint.h:  New file.
27948
27949 2009-04-05  Richard Guenther  <rguenther@suse.de>
27950
27951         PR tree-optimization/39648
27952         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
27953         our &A vs. &A[0] IL deficiencies.
27954
27955 2009-04-04  Jan Hubicka  <jh@suse.cz>
27956
27957         * except.c (sjlj_find_directly_reachable_regions): Be ready for
27958         removed toplevel regions.
27959         (sjlj_mark_call_sites): Likewise.
27960
27961 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
27962
27963         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
27964         (cygwin tm clause use_gcc_stdint):  Set to wrap.
27965         * config/i386/cygwin-stdint.h:  New file.
27966
27967 2009-04-04  Richard Guenther  <rguenther@suse.de>
27968
27969         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
27970         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
27971         single-argument PHIs if we are in loop-closed SSA form.
27972         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
27973         for the pre-condition.
27974         (slpeel_tree_peel_loop_to_edge): Likewise.
27975         (vect_build_loop_niters): Take an optional sequence to append stmts.
27976         (vect_generate_tmps_on_preheader): Likewise.
27977         (vect_do_peeling_for_loop_bound): Take extra guards for the
27978         pre-condition.
27979         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
27980         the cost model check.
27981         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
27982         guards if we are going to peel.  Do not apply versioning in that case.
27983         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
27984         (vect_do_peeling_for_loop_bound): Likewise.
27985         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
27986         loop bound only record extra pre-conditions, do not apply loop
27987         versioning.
27988
27989 2009-04-04  Richard Guenther  <rguenther@suse.de>
27990
27991         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
27992         renaming code.
27993
27994 2009-04-04  Jan Hubicka  <jh@suse.cz>
27995
27996         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27997         last_basic_block for size of bb->index indexed array.
27998         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
27999         compute_out, link_btr_uses, build_btr_def_use_webs,
28000         build_btr_def_use_webs, migrate_btr_defs): Likewise.
28001
28002 2009-04-04  Jan Hubicka  <jh@suse.cz>
28003
28004         * except.c (remove_eh_handler_and_replace): Break out from ...
28005         (remove_eh_handler): ... here.
28006         (bring_to_root): New function.
28007         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
28008         handled ones, bring others to root of tree.
28009
28010 2009-04-04  Jan Hubicka  <jh@suse.cz>
28011
28012         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
28013         (all_phis_safe_to_merge): New function.
28014         (update_info): New structure.
28015         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
28016         (cleanup_empty_eh): Update SSA if possible.
28017
28018 2009-04-04  Richard Guenther  <rguenther@suse.de>
28019
28020         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
28021         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
28022         (append_vuse): Likewise.
28023
28024 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
28025
28026         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
28027         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
28028         instead of REG_UNSAVED for DW_CFA_undefined.
28029         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
28030         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
28031         outermost frame.
28032
28033 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
28034
28035         PR target/39501
28036         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
28037
28038 2009-04-04  Richard Guenther  <rguenther@suse.de>
28039
28040         PR tree-optimization/8781
28041         PR tree-optimization/37892
28042         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
28043         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
28044         (valueize_refs): Call it for *& valueizations.
28045         (shared_reference_ops_from_ref): Rename to ...
28046         (valueize_shared_reference_ops_from_ref): ... this and valueize.
28047         (shared_reference_ops_from_call): Rename to ...
28048         (valueize_shared_reference_ops_from_call): ... this and valueize.
28049         (vn_reference_lookup): Update.
28050         (visit_reference_op_call): Likewise.
28051         * tree-ssa-pre.c (phi_translate_1): Fold *&.
28052         (eliminate): Value-replace the call address in call statements.
28053
28054 2009-04-04  Richard Guenther  <rguenther@suse.de>
28055
28056         PR tree-optimization/39636
28057         * tree-ssa-forwprop.c
28058         (forward_propagate_addr_into_variable_array_index): Check for
28059         GIMPLE_ASSIGN before accessing the rhs code.
28060
28061 2009-04-03  Jason Merrill  <jason@redhat.com>
28062
28063         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
28064
28065 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
28066
28067         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
28068         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
28069         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
28070         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
28071         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
28072         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
28073         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
28074         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
28075         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
28076         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
28077         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
28078         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
28079         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
28080         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
28081         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
28082         Use fr_reg_or_fp01_operand instead of fr_register_operand
28083
28084         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
28085         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
28086         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
28087
28088 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
28089
28090         PR rtl-optimization/39607
28091         PR rtl-optimization/39631
28092
28093         Revert:
28094
28095         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
28096         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
28097         instead of DF_LR_OUT.
28098         * ira-lives.c (process_bb_node_lives): Ditto.
28099         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
28100         instead of DF_LR_{OUT,IN}.
28101         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
28102         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
28103
28104 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
28105
28106         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
28107         (execute_lower_omp): Always run but take the short way out if -fopenmp
28108         is not given.
28109         (gate_lower_omp): Remove, forcing the pass manager to always run the
28110         pass and always set PROP_gimple_lomp.
28111         (pass_lower_omp): Remove gate function.
28112         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
28113         PROP_trees.  Instead, require it.
28114         * ipa-cp.c (pass_ipa_cp): Likewise.
28115         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
28116         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
28117         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
28118         and PROP_gimple_leh.
28119
28120 2009-04-03  Richard Guenther  <rguenther@suse.de>
28121
28122         PR middle-end/13146
28123         PR tree-optimization/23940
28124         PR tree-optimization/33237
28125         PR middle-end/33974
28126         PR middle-end/34093
28127         PR tree-optimization/36201
28128         PR tree-optimization/36230
28129         PR tree-optimization/38049
28130         PR tree-optimization/38207
28131         PR tree-optimization/38230
28132         PR tree-optimization/38301
28133         PR tree-optimization/38585
28134         PR middle-end/38895
28135         PR tree-optimization/38985
28136         PR tree-optimization/39299
28137         * tree-ssa-structalias.h: Remove.
28138         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
28139         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
28140         (struct vuse_element_d): Remove.
28141         (struct vuse_vec_d): Likewise.
28142         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
28143         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
28144         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
28145         VUSE_ELEMENT_VAR): Likewise.
28146         (struct voptype_d): Likewise.
28147         (NUM_VOP_FREE_BUCKETS): Likewise.
28148         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
28149         (struct stmt_operands_d): Remove.
28150         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
28151         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
28152         VDEF_NUM, VDEF_VECT): Likewise.
28153         (copy_virtual_operands): Remove.
28154         (operand_build_cmp): Likewise.
28155         (create_ssa_artificial_load_stmt): Likewise.
28156         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
28157         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
28158         vuse_index and mayuse_index members.  Pack and move done and iter_type
28159         members to the front.
28160         (SSA_OP_VMAYUSE): Remove.
28161         (SSA_OP_VIRTUAL_USES): Adjust.
28162         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
28163         (unlink_stmt_vdef): Declare.
28164         (add_to_addressable_set): Remove.
28165         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
28166         (vrp_visit_stmt): Likewise.
28167         * doc/tree-ssa.texi (Alias analysis): Update.
28168         * doc/invoke.texi (max-aliased-vops): Remove docs.
28169         (avg-aliased-vops): Likewise.
28170         * tree-into-ssa.c (syms_to_rename): Remove.
28171         (need_to_update_vops_p): Likewise.
28172         (need_to_initialize_update_ssa_p): Rename to ...
28173         (update_ssa_initialized_fn): ... this.  Track function we are
28174         initialized for.
28175         (symbol_marked_for_renaming): Simplify.
28176         (add_new_name_mapping): Do not set need_to_update_vops_p.
28177         (dump_currdefs): Use SYMS_TO_RENAME.
28178         (rewrite_update_stmt): Always walk all uses/defs.
28179         (dump_update_ssa): Adjust.
28180         (init_update_ssa): Take function argument.  Track what we are
28181         initialized for.
28182         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
28183         (create_new_def_for): Initialize for cfun, assert we are initialized
28184         for cfun.
28185         (mark_sym_for_renaming): Simplify.
28186         (mark_set_for_renaming): Do not initialize update-ssa.
28187         (need_ssa_update_p): Simplify.  Take function argument.
28188         (name_mappings_registered_p): Assert we ask for the correct function.
28189         (name_registered_for_update_p): Likewise.
28190         (ssa_names_to_replace): Likewise.
28191         (release_ssa_name_after_update_ssa): Likewise.
28192         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
28193         (dump_decl_set): Do not print a newline.
28194         (debug_decl_set): Do it here.
28195         (dump_update_ssa): And here.
28196         * tree-ssa-loop-im.c (move_computations): Adjust.
28197         (movement_possibility): Likewise.
28198         (determine_max_movement): Likewise.
28199         (gather_mem_refs_stmt): Likewise.
28200         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
28201         or NAME_MEMORY_TAG.
28202         * tree-complex.c (update_all_vops): Remove.
28203         (expand_complex_move): Adjust.
28204         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
28205         Simplify test for memory referencing statement.  Exclude
28206         non-invariant ADDR_EXPRs.
28207         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
28208         * tree-loop-distribution.c (generate_memset_zero): Adjust.
28209         (rdg_flag_uses): Likewise.
28210         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
28211         related code.
28212         (tree_optimize_tail_calls_1): Also split the
28213         edge from the entry block if we have degenerate PHI nodes in
28214         the first basic block.
28215         * tree.c (init_ttree): Remove memory-tag related code.
28216         (tree_code_size): Likewise.
28217         (tree_node_structure): Likewise.
28218         (build7_stat): Re-write to be build6_stat.
28219         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
28220         (SSA_VAR_P): Adjust.
28221         (struct tree_memory_tag): Remove.
28222         (struct tree_memory_partition_tag): Likewise.
28223         (union tree_node): Adjust.
28224         (build7): Re-write to be build6.
28225         * tree-pass.h (pass_reset_cc_flags): Remove.
28226         (TODO_update_address_taken): New flag.
28227         (pass_simple_dse): Remove.
28228         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
28229         * params.h (MAX_ALIASED_VOPS): Remove.
28230         (AVG_ALIASED_VOPS): Likewise.
28231         * omp-low.c (expand_omp_taskreg): Update SSA form.
28232         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
28233         aliases the lhs in a copy stmt.
28234         * tree-ssa-dse.c (struct address_walk_data): Remove.
28235         (memory_ssa_name_same): Likewise.
28236         (memory_address_same): Likewise.
28237         (get_kill_of_stmt_lhs): Likewise.
28238         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
28239         unused stores.  Look through PHI nodes into post-dominated regions.
28240         (dse_optimize_stmt): Simplify.  Properly remove stores.
28241         (tree_ssa_dse): Compute dominators.
28242         (execute_simple_dse): Remove.
28243         (pass_simple_dse): Likewise.
28244         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
28245         gimple_loaded_syms and gimple_stored_syms computation.
28246         * toplev.c (dump_memory_report): Dump alias and pta stats.
28247         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
28248         (vn_reference_eq): Likewise.
28249         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
28250         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
28251         valueize_vuses): Remove.
28252         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
28253         (get_def_ref_stmt_vuse): ... this.
28254         (vn_reference_lookup_2): New function.
28255         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
28256         walking equivalent vuses.  Simplify.
28257         (vn_reference_lookup): Likewise.
28258         (vn_reference_insert): Likewise.
28259         (vn_reference_insert_pieces): Likewise.
28260         (visit_reference_op_call): Simplify.
28261         (visit_reference_op_load): Likewise.
28262         (visit_reference_op_store): Likewise.
28263         (init_scc_vn): Remove shared_lookup_vuses initialization.
28264         (free_scc_vn): Remove shared_lookup_vuses freeing.
28265         (sort_vuses, sort_vuses_heap): Remove.
28266         (get_ref_from_reference_ops): Export.
28267         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
28268         vector with single vuse pointer.
28269         (vn_reference_lookup_pieces, vn_reference_lookup,
28270         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
28271         (shared_vuses_from_stmt): Remove.
28272         (get_ref_from_reference_ops): Declare.
28273         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
28274         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
28275         memory-tag related code.
28276         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
28277         (likely_value): Add comment, skip static-chain of call statements.
28278         (surely_varying_stmt_p): Adjust.
28279         (gimplify_and_update_call_from_tree): Likewise.
28280         (execute_fold_all_builtins): Do not rebuild alias info.
28281         (gimplify_and_update_call_from_tree): Properly update VOPs.
28282         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
28283         (copy_ref_info): Remove memory-tag related code.
28284         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
28285         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
28286         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
28287         computation.
28288         * tree-ssa-dom.c (gimple_p): Remove typedef.
28289         (eliminate_redundant_computations): Adjust.
28290         (record_equivalences_from_stmt): Likewise.
28291         (avail_expr_hash): Likewise.
28292         (avail_expr_eq): Likewise.
28293         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
28294         (stmt_makes_single_load): Likewise.
28295         (stmt_makes_single_store): Likewise.
28296         * tree-ssa-alias.c: Rewrite completely.
28297         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
28298         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
28299         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
28300         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
28301         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
28302         Remove public functions.
28303         (pass_reset_cc_flags): Remove.
28304         (pass_build_alias): Move ...
28305         * tree-ssa-structalias.c (pass_build_alias): ... here.
28306         * tree-ssa-alias.c (may_be_aliased): Move ...
28307         * tree-flow-inline.h (may_be_aliased): ... here.
28308         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
28309         count_uses_and_derefs): Move ...
28310         * gimple.c: ... here.
28311         * gimple.h (count_uses_and_derefs): Declare.
28312         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
28313         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
28314         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
28315         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
28316         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
28317         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
28318         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
28319         New functions.
28320         * tree-dfa.c (refs_may_alias_p): Move ...
28321         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
28322         * tree-ssa-alias.h: New file.
28323         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
28324         (statement_sink_location): Likewise.
28325         * opts.c (decode_options): Do not adjust max-aliased-vops or
28326         avg-aliased-vops values.
28327         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
28328         (TV_CALL_CLOBBER): Likewise.
28329         (TV_FLOW_SENSITIVE): Likewise.
28330         (TV_FLOW_INSENSITIVE): Likewise.
28331         (TV_MEMORY_PARTITIONING): Likewise.
28332         (TV_ALIAS_STMT_WALK): New timevar.
28333         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
28334         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
28335         (get_address_description): Remove memory-tag related code.
28336         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
28337         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
28338         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
28339         and immediate uses in statements.  Document.
28340         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
28341         (dump_symbols): Remove.
28342         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
28343         * alias.c (get_deref_alias_set): New function split out from ...
28344         (get_alias_set): ... here.
28345         * alias.h (get_deref_alias_set): Declare.
28346         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
28347         type parameter.  Remove restrict pointer handling.  Create a
28348         ref-all pointer in case type-based alias sets do not conflict.
28349         (vect_analyze_data_refs): Remove SMT related code.
28350         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
28351         (vectorizable_load): Likewise.
28352         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
28353         (DR_SYMBOL_TAG, DR_VOPS): Remove.
28354         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
28355         Ignore vops and SMTs.
28356         (dr_analyze_alias): Likewise..
28357         (free_data_ref): Likewise.
28358         (create_data_ref): Likewise.
28359         (analyze_all_data_dependences): Likewise.
28360         (get_references_in_stmt): Adjust.
28361         * tree-flow-inline.h (gimple_aliases_computed_p,
28362         gimple_addressable_vars, gimple_call_clobbered_vars,
28363         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
28364         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
28365         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
28366         gimple_mem_ref_stats): Remove.
28367         (gimple_vop): New function.
28368         (op_iter_next_use): Remove vuses and mayuses cases.
28369         (op_iter_next_def): Remove vdefs case.
28370         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
28371         (clear_and_done_ssa_iter): Do not set removed fields.
28372         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
28373         Assert we are not iterating over vuses or vdefs if not also
28374         iterating over uses or defs.
28375         (op_iter_init_use): Likewise.
28376         (op_iter_init_def): Likewise.
28377         (op_iter_next_vdef): Remove.
28378         (op_iter_next_mustdef): Likewise.
28379         (op_iter_init_vdef): Likewise.
28380         (compare_ssa_operands_equal): Likewise.
28381         (link_use_stmts_after): Handle vuse operand.
28382         (is_call_used): Use is_call_clobbered.
28383         (is_call_clobbered): Global variables are always call clobbered,
28384         query the call-clobbers bitmap.
28385         (mark_call_clobbered): Ignore global variables.
28386         (clear_call_clobbered): Likewise.
28387         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
28388         virtual operands sanity check.
28389         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
28390         Remove.
28391         (TARGET_MEM_REF): Remove TMR_TAG operand.
28392         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
28393         Remove call-clobber related code.
28394         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
28395         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
28396         partitions or escape reason.
28397         (get_single_def_stmt, get_single_def_stmt_from_phi,
28398         get_single_def_stmt_with_phi): Remove.
28399         (dump_referenced_vars): Tidy.
28400         (get_ref_base_and_extent): Allow bare decls.
28401         (collect_dfa_stats): Adjust.
28402         * graphite.c (rename_variables_in_stmt): Adjust.
28403         (graphite_copy_stmts_from_block): Likewise.
28404         (translate_clast): Likewise.
28405         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
28406         (EXPR_DIES): New.
28407         (translate_vuse_through_block): Use the oracle.
28408         (phi_translate_1): Adjust.
28409         (value_dies_in_block_x): Use the oracle.  Cache the outcome
28410         in EXPR_DIES.
28411         (valid_in_sets): Check if the VUSE for
28412         a REFERENCE is available.
28413         (eliminate): Do not remove stmts during elimination,
28414         instead queue and remove them afterwards.
28415         (do_pre): Do not rebuild alias info.
28416         (pass_pre): Run TODO_rebuild_alias before PRE.
28417         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
28418         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
28419         (mark_all_v_defs_stmt): Remove.
28420         (mark_all_v_defs_seq): Adjust.
28421         (sra_replace): Likewise.
28422         (scalarize_use): Likewise.
28423         (scalarize_copy): Likewise.
28424         (scalarize_init): Likewise.
28425         (scalarize_ldst): Likewise.
28426         (todoflags): Remove.
28427         (tree_sra): Do not rebuild alias info.
28428         (tree_sra_early): Adjust.
28429         (pass_sra): Run TODO_update_address_taken before SRA.
28430         * tree-predcom.c (set_alias_info): Remove.
28431         (prepare_initializers_chain): Do not call it.
28432         (mark_virtual_ops_for_renaming): Adjust.
28433         (mark_virtual_ops_for_renaming_list): Remove.
28434         (initialize_root_vars): Adjust.
28435         (initialize_root_vars_lm): Likewise.
28436         (prepare_initializers_chain): Likewise.
28437         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
28438         (may_propagate_copy_into_stmt): Likewise.
28439         (merge_alias_info): Do nothing for now.
28440         (propagate_tree_value_into_stmt): Adjust.
28441         (stmt_may_generate_copy): Likewise.
28442         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
28443         not mark symbols for renaming.
28444         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
28445         with the same statement, make sure to update the new pointed-to one.
28446         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
28447         call statements, do not mark symbols for renaming.
28448         (mark_operand_necessary): Dump something.
28449         (ref_may_be_aliased): New function.
28450         (mark_aliased_reaching_defs_necessary_1): New helper function.
28451         (mark_aliased_reaching_defs_necessary): Likewise.
28452         (mark_all_reaching_defs_necessary_1): Likewise.
28453         (mark_all_reaching_defs_necessary): Likewise.
28454         (propagate_necessity): Do not process virtual PHIs.  For
28455         non-aliased loads mark all reaching definitions as necessary.
28456         For aliased loads and stores mark the immediate dominating
28457         aliased clobbers as necessary.
28458         (visited): New global static.
28459         (perform_tree_ssa_dce): Free visited bitmap after propagating
28460         necessity.
28461         (remove_dead_phis): Perform simple dead virtual PHI removal.
28462         (remove_dead_stmt): Properly unlink virtual operands when
28463         removing stores.
28464         (eliminate_unnecessary_stmts): Schedule PHI removal after
28465         stmt removal.
28466         * tree-ssa-ter.c (is_replaceable_p): Adjust.
28467         (process_replaceable): Likewise.
28468         (find_replaceable_in_bb): Likewise.
28469         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
28470         based on the single gimple vop.
28471         (verify_flow_insensitive_alias_info): Remove.
28472         (verify_flow_sensitive_alias_info): Likewise.
28473         (verify_call_clobbering): Likewise.
28474         (verify_memory_partitions): Likewise.
28475         (verify_alias_info): Likewise.
28476         (verify_ssa): Adjust..
28477         (execute_update_addresses_taken): Export.  Update SSA
28478         manually.  Optimize only when optimizing.  Use a local bitmap.
28479         (pass_update_address_taken): Remove TODO_update_ssa, add
28480         TODO_dump_func.
28481         (pass_update_address_taken): Just use TODO_update_address_taken.
28482         (init_tree_ssa): Do not initialize addressable_vars.
28483         (verify_ssa): Verify new VUSE / VDEF properties.
28484         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
28485         Do not call verify_alias_info.
28486         (delete_tree_ssa): Clear the VUSE, VDEF operands.
28487         Do not free the loaded and stored syms bitmaps.  Reset the escaped
28488         and callused solutions.  Do not free addressable_vars.
28489         Remove memory-tag related code.
28490         (warn_uninitialized_var): Aliases are always available.
28491         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
28492         * lambda-code.c (can_put_in_inner_loop): Adjust.
28493         (can_put_after_inner_loop): Likewise.
28494         (perfect_nestify): Likewise.
28495         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
28496         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
28497         (vectorizable_conversion): Do not mark symbols for renaming.
28498         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
28499         (expand_call_inline): Unlink the calls virtual operands before
28500         replacing it.
28501         (tree_function_versioning): Do not call update_ssa if we are not
28502         updating clones.  Simplify.
28503         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
28504         (propagate_with_phi): Likewise..
28505         * tree-outof-ssa.c (create_temp): Remove memory tag and call
28506         clobber code.  Assert we are not aliased or global.
28507         * tree-flow.h: Include tree-ssa-alias.h
28508         (enum escape_type): Remove.
28509         (struct mem_sym_stats_d): Likewise.
28510         (struct mem_ref_stats_d): Likewise.
28511         (struct gimple_df): Add vop member.  Remove global_var,
28512         call_clobbered_vars, call_used_vars, addressable_vars,
28513         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
28514         escaped and callused members.
28515         (struct ptr_info_def): Remove all members, add points-to solution
28516         member pt.
28517         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
28518         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
28519         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
28520         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
28521         (tree-ssa-alias.o): Likewise.
28522         (toplev.o): Add tree-ssa-alias.h
28523         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
28524         * gimple.c (gimple_set_bb): Fix off-by-one error.
28525         (is_gimple_reg): Do not handle memory tags.
28526         (gimple_copy): Also copy virtual operands.
28527         Delay updating the statement.  Do not reset loaded and stored syms.
28528         (gimple_set_stored_syms): Remove.
28529         (gimple_set_loaded_syms): Likewise.
28530         (gimple_call_copy_skip_args): Copy the virtual operands
28531         and mark the new statement modified.
28532         * tree-ssa-structalias.c (may_alias_p): Remove.
28533         (set_uids_in_ptset): Take the alias set to prune with as
28534         parameter.  Fold in the alias test of may_alias_p.
28535         (compute_points_to_sets): Compute whether a ptr is dereferenced
28536         in a local sbitmap.
28537         (process_constraint): Deal with &ANYTHING on the lhs, reject all
28538         other ADDRESSOF constraints on the lhs.
28539         (get_constraint_for_component_ref): Assert that we don't get
28540         ADDRESSOF constraints from the base of the reference.
28541         Properly generate UNKNOWN_OFFSET for DEREF if needed.
28542         (struct variable_info): Remove collapsed_to member.
28543         (get_varinfo_fc): Remove.
28544         (new_var_info): Do not set collapsed_to.
28545         (dump_constraint): Do not follow cycles.
28546         (dump_constraint_graph): Likewise.
28547         (build_pred_graph): Likewise.
28548         (build_succ_graph): Likewise.
28549         (rewrite_constraints): Likewise.
28550         (do_simple_structure_copy): Remove.
28551         (do_rhs_deref_structure_copy): Remove.
28552         (do_lhs_deref_structure_copy): Remove.
28553         (collapse_rest_of_var): Remove.
28554         (do_structure_copy): Re-implement.
28555         (pta_stats): New global variable.
28556         (dump_pta_stats): New function.
28557         (struct constraint_expr): Make offset signed.
28558         (UNKNOWN_OFFSET): Define special value.
28559         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
28560         (solution_set_expand): New helper function split out from ...
28561         (do_sd_constraint): ... here.
28562         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
28563         (do_ds_constraint): Likewise.
28564         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
28565         and CALLUSED = *CALLUSED.
28566         (set_union_with_increment): Make inc argument signed.
28567         (type_safe): Remove.
28568         (get_constraint_for_ptr_offset): Handle unknown and negative
28569         constant offsets.
28570         (first_vi_for_offset): Handle offsets before start.  Bail
28571         out early for offsets beyond the variable extent.
28572         (first_or_preceding_vi_for_offset): New function.
28573         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
28574         Together with ESCAPED = *ESCAPED this properly computes reachability.
28575         (find_what_var_points_to): New function.
28576         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
28577         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
28578         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
28579         pt_solutions_intersect): New functions.
28580         (compute_call_used_vars): Remove.
28581         (compute_may_aliases): New main entry into PTA computation.
28582         * gimple.h (gimple_p): New typedef.
28583         (struct gimple_statement_base): Remove references_memory_p.
28584         (struct gimple_statement_with_memory_ops_base): Remove
28585         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
28586         members.
28587         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
28588         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
28589         gimple_set_references_memory): Remove.
28590         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
28591         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
28592         New functions.
28593         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
28594         (verify_expr): Allow RESULT_DECL.
28595         (gimple_duplicate_bb): Do not copy virtual operands.
28596         (gimple_duplicate_sese_region): Adjust.
28597         (gimple_duplicate_sese_tail): Likewise.
28598         (mark_virtual_ops_in_region): Remove.
28599         (move_sese_region_to_fn): Do not call it.
28600         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
28601         and pass_simple_dse.
28602         (execute_function_todo): Handle TODO_update_address_taken,
28603         call execute_update_addresses_taken for TODO_rebuild_alias.
28604         (execute_todo): Adjust.
28605         (execute_one_pass): Init dump files early.
28606         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
28607         call-clobbered.
28608         (create_general_new_stmt): Clear vops.
28609         * tree-ssa-reassoc.c (get_rank): Adjust.
28610         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
28611         symbols for renaming.
28612         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
28613         (PARAM_AVG_ALIASED_VOPS): Likewise.
28614         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
28615         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
28616         * tree-ssa-operands.c: Simplify for new virtual operand representation.
28617         (operand_build_cmp, copy_virtual_operands,
28618         create_ssa_artificial_load_stmt, add_to_addressable_set,
28619         gimple_add_to_addresses_taken): Remove public functions.
28620         (unlink_stmt_vdef): New function.
28621
28622 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28623
28624         * config.gcc (powerpc-*-linux*): Merge variants.
28625
28626 2009-04-02  Chao-ying Fu  <fu@mips.com>
28627             James Grosbach  <james.grosbach@microchip.com>
28628
28629         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
28630         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
28631         cop0_sp_offset.
28632         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
28633         keep_interrupts_masked_p, use_debug_exception_return_p.
28634         (mips_attribute_table): Add interrupt, use_shadow_register_set,
28635         keep_interrupts_masked, use_debug_exception_return.
28636         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
28637         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
28638         New functions.
28639         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
28640         (mips_print_operand): Process COP0 registers to print $0 .. $31
28641         correctly for GAS to process.
28642         (mips_interrupt_extra_call_saved_reg_p): New function.
28643         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
28644         extra registers.
28645         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
28646         (mips_compute_frame_info): Add supports for interrupt context that
28647         includes doubleword accumulators and COP0 registers.
28648         (mips_for_each_saved_acc): New function.
28649         (mips_for_each_saved_gpr_and_fpr): Change the function name from
28650         mips_for_each_saved_reg.
28651         (mips_save_reg): Save accumulators.
28652         (mips_kernel_reg_p): A new for_each_rtx callback.
28653         (mips_expand_prologue): Support interrupt handlers.
28654         (mips_restore_reg): Restore accumulators.
28655         (mips_expand_epilogue): Support interrupt handlers.
28656         (mips_can_use_return_insn): Return false for interrupt handlers.
28657         (mips_epilogue_uses): New function.
28658         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
28659         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
28660         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
28661         cop0_move): New instructions.
28662         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
28663         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
28664         defines.
28665         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
28666         New defines.
28667         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
28668         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
28669         interrupt handlers, we use K0 as the temporary register.
28670         (EPILOGUE_USES): Change to a function call.
28671         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
28672         handlers, we use K0 as the temporary register.
28673
28674         * doc/extend.texi (Function Attributes): Document interrupt,
28675         use_shadow_register_set, keep_interrupts_masked,
28676         use_debug_exception_return for MIPS attributes.
28677
28678 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28679
28680         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
28681         Remove a number of t-files from tmake_file.
28682         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
28683         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
28684         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
28685         target_prototype, not TARGET_PROTOTYPE.
28686         (LINK_OS_GNU_SPEC): Define.
28687         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
28688         and darwin-ldoubdle.c.
28689
28690 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28691
28692         PR driver/39293
28693         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
28694         (cpp_options): Ditto.
28695         (default_compilers): Ditto.
28696         (display_help): Ditto.
28697         (process_command): Ditto.
28698         (do_spec_1): Ditto.
28699         (set_input): Use lbasename instead of duplicate code.
28700         (save_temps_prefix): New static for -save-temps=obj.
28701         (save_temps_length): Ditto.
28702
28703         * doc/invoke.texi (-save-temps=obj): Document new variant to
28704         -save-temps switch.
28705
28706 2009-04-02  Jeff Law  <law@redhat.com>
28707
28708         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
28709         variable.
28710
28711 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28712
28713         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
28714         * configure: Regenerated.
28715
28716 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28717
28718         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
28719         share the argument list.
28720
28721 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28722
28723         Merge
28724
28725         2009-02-12  Diego Novillo  <dnovillo@google.com>
28726
28727         * varpool.c (debug_varpool): New.
28728         * cgraph.h (debug_varpool): Declare.
28729
28730 2009-04-02  Jan Hubicka  <jh@suse.cz>
28731
28732         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
28733         pass.
28734
28735 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28736
28737         * config/i386/i386.c (ix86_abi): Move initialization to ...
28738         (override_options): Here.
28739
28740 2009-04-02  Christian Bruel  <christian.bruel@st.com>
28741
28742         * config/sh/sh.c (sh_dwarf_register_span): New function.
28743         (TARGET_DWARF_REGISTER_SPAN): Define.
28744         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
28745
28746 2009-04-02  Ira Rosen  <irar@il.ibm.com>
28747
28748         PR tree-optimization/39595
28749         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
28750         interleaved loads group is not  greater than the SLP group size.
28751
28752 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28753
28754         * builtins.c (is_builtin_name): New.
28755         (called_as_built_in): Use is_builtin_name.
28756         * tree.h (is_builtin_name): New.
28757         * varasm.c (incorporeal_function_p): Use is_builtin_name
28758
28759 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
28760
28761         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
28762
28763 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
28764
28765         PR c++/26693
28766         * c-decl.c (clone_underlying_type): Move this ...
28767         * c-common.c (set_underlying_type): ... here.
28768         Also, make sure the function properly sets TYPE_STUB_DECL() on
28769         the newly created typedef variant type.
28770         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
28771         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
28772         points.
28773
28774 2009-04-02  Richard Guenther  <rguenther@suse.de>
28775
28776         PR tree-optimization/37221
28777         * tree-flow.h (degenerate_phi_result): Declare.
28778         * tree-ssa-dom.c (degenerate_phi_result): Export.
28779         * tree-scalar-evolution.c (analyze_initial_condition): If
28780         the initial condition is defined by a degenerate PHI node
28781         use the degenerate value.
28782
28783 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
28784
28785         PR rtl-optimization/39588
28786         * combine.c (merge_outer_ops): Do not set the constant when this
28787         is not necessary.
28788         (simplify_shift_const_1): Do not modify it either in this case.
28789
28790 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28791
28792         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
28793         tuning is deprecated if -mtune value is set to an Itanium1 variant.
28794
28795 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
28796
28797         PR c/29027
28798         * c-lex.c (interpret_float): Default (no suffix) is double.
28799
28800 2009-04-1  Xinliang David Li  <davidxl@google.com>
28801
28802         * config/i386/i386.c (legitimate_constant_p): Recognize
28803         all one vector constant.
28804
28805 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28806
28807         * config/vax/vax.c: Add #includes to silence warnings.
28808         Change #include order to silence two warnings.
28809
28810 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28811
28812         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
28813         (ASM_SPEC): Pass -k to the assembler for PIC code.
28814
28815 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28816
28817         * config.gcc: Add vax-*-linux* to the switch.
28818         * config/vax/linux.h: New file. (TARGET_VERSION,
28819         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
28820
28821 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28822
28823         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
28824         Use predicate macros instead of GET_CODE() == foo.
28825         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
28826         ashlsi3, rotrsi3, <unnamed>): Likewise.
28827
28828 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28829
28830         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
28831         jbbccihi, jbbccisi): Remova trailing whitespace.
28832         * config/vax/constraints.md: Likewise.
28833         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
28834         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
28835         * config/vax/predicates.md: Likewise.
28836         * config/vax/vax.c (print_operand_address, vax_output_int_move,
28837         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
28838         * config/vax/vax.h: Likewise.
28839         * config/vax/vax.md (nonlocal_goto): Likewise.
28840
28841 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28842
28843         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
28844         (indirectable_address_p, adjacent_operands_p): Add spaces around
28845         braces.
28846         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
28847
28848 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28849
28850         * config/vax/vax.c (legitimate_constant_address_p,
28851         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
28852         index_term_p, reg_plus_index_p, legitimate_address_p,
28853         vax_mode_dependent_address_p): Update comments to match functions
28854         modified by the recent int->bool conversion.
28855
28856 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28857
28858         * config/vax/builtins.md: Update copyright message.
28859         * config/vax/constraints.md: Likewise.
28860         * config/vax/netbsd-elf.h: Likewise.
28861         * config/vax/predicates.md: Likewise.
28862         * config/vax/vax-protos.h: Likewise.
28863         * config/vax/vax.c: Likewise.
28864         * config/vax/vax.h: Likewise.
28865         * config/vax/vax.md: Likewise.
28866         * config/vax/vax.opt: Likewise.
28867
28868 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28869
28870         * config/vax/builtins.md (ffssi2, ffssi2_internal,
28871         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
28872         * config/vax/constraints.md (B, R): Likewise.
28873         * config/vax/predicates.md (external_memory_operand,
28874         nonimmediate_addsub_di_operand): Likewise.
28875         * config/vax/vax.c (vax_output_int_add): Likewise.
28876         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
28877         untyped_call): Likewise.
28878
28879 2009-04-01  Matt Thomas  <matt@3am-software.com>
28880
28881         * config/vax/predicates.md: New file.
28882         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
28883         external_const_operand, nonsymbolic_operand, external_memory_operand,
28884         indirect_memory_operand, indexed_memory_operand,
28885         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
28886         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
28887         predicate.
28888         * config/vax/constraints.md: New file.
28889         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
28890         New constraint.
28891         * config/vax/builtins.md: New file.
28892         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
28893         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
28894         jbbccisi): Define.
28895         * config/vax/vax.opt (mqmath): Add option.
28896         * config/vax/vax.md (isfx): Extend with DI.
28897         (VAXintQH, VAXintQHSD): Define.
28898         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
28899         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
28900         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
28901         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
28902         (movdi): Update constraints and use vax_output_int_move().
28903         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
28904         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
28905         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
28906         nonlocal_goto): New.
28907         (mov<mode>): Extend accepted operand types.
28908         (subdi3_old): Rename from subdi3, change update constraints and use
28909         a new implementation.
28910         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
28911         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
28912         MOVE_RATIO, CLEAR_RATIO): Define.
28913         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
28914         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
28915         (PRINT_OPERAND): Redefine using a function instead of inlined code.
28916         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
28917         (split_quadword_operands): Make static and really allow variable
28918         splitting.
28919         (print_operand_address): Update for PIC generation.
28920         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
28921         indexable_address_p, fixup_mathdi_operand,
28922         vax_expand_addsub_di_operands, adjacent_operands_p): New.
28923         (vax_float_literal, legitimate_constant_p,
28924         indirectable_constant_address_p, index_term_p,
28925         reg_plus_index_p): Return bool instead of int.
28926         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
28927         where needed.
28928         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
28929         generation.
28930         (vax_output_conditional_branch): Indent.
28931         (legitimate_constant_address_p, indirectable_constant_address_p,
28932         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
28933         vax_mode_dependent_address_p): Return bool instead of int, update for
28934         PIC generation.
28935         * config/vax/vax-protos.h (legitimate_constant_address_p,
28936         legitimate_constant_p, legitimate_address_p,
28937         vax_mode_dependent_address_p): Change declaration to bool.
28938         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
28939         vax_expand_addsub_di_operands, vax_output_int_subtract,
28940         vax_output_movmemsi): Declare.
28941         (split_quadword_operands, vax_float_literal): Delete declaration.
28942         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
28943         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
28944         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
28945         ASM_OUTPUT_DWARF_PCREL): Define.
28946         (ASM_SPEC): Change definition to allow PIC generation.
28947
28948 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
28949
28950         * doc/sourcebuild.texi: Update front-end requirements.
28951
28952 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28953
28954         PR target/39226
28955         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
28956         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
28957         (booldi3_internal3): Use boolean_or_operator instead of
28958         boolean_operator.
28959
28960 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
28961
28962         PR c/39605
28963         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
28964         declarator whose size is not an integer constant expression but
28965         folds to an integer constant, then treat it as a constant
28966         subsequently.
28967
28968 2009-04-01  Richard Guenther  <rguenther@suse.de>
28969
28970         * fold-const.c (fold_plusminus_mult_expr): Do not fold
28971         i * 4 + 2 to (i * 2 + 1) * 2.
28972
28973 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
28974
28975         PR c/37772
28976         * c-parser.c (c_parser_asm_statement): Skip until close paren and
28977         return if c_parser_asm_string_literal returned NULL.
28978
28979 2009-04-01  Nick Clifton  <nickc@redhat.com>
28980
28981         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
28982         already defined.
28983         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
28984         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
28985         other typedefs to avoid conflicts with libgcc2.c.  Define labels
28986         to gain 16-bit bit-manipulation functions from libgcc2.c and then
28987         include it.
28988         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
28989         to gain 16-bit trapping arithmetic functions from libgcc2.c and
28990         then include it.
28991
28992 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
28993
28994         * varasm.c (default_function_rodata_section): Declare DOT as
28995         const char*.
28996
28997 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
28998             Andrey Galkin  <agalkin@hypercom.com>
28999
29000         PR/39492
29001         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
29002         Make object_name unique for each process.
29003
29004 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29005
29006         PR other/39591
29007         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
29008         addressable variables in the parallel that could go out of scope while
29009         running queued tasks.
29010
29011 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
29012
29013         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
29014         (CASE_VALUES_THRESHOLD): Redefine.
29015         * config/avr/avr.c (avr_override_options): Remove initialization of
29016         avr_case_values_threshold variable.
29017         (avr_case_values_threshold): Remove variable. Add new function.
29018         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
29019         * config/avr/avr.opt (mno-tablejump): Remove option.
29020         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
29021
29022 2009-04-01  DJ Delorie  <dj@redhat.com>
29023
29024         * varasm.c (default_function_rodata_section): Don't assume
29025         anything about where the first '.' in the section name is.
29026
29027 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
29028
29029         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
29030         rs6000_emit_stack_tie.
29031
29032 2009-03-31  Ian Lance Taylor  <iant@google.com>
29033
29034         * tree-eh.c (tree_remove_unreachable_handlers): Compare
29035         gimple_code with GIMPLE_RESX, not RESX.
29036
29037 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29038
29039         * c-common.c (c_get_ident): New.
29040         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
29041
29042 2009-04-01  Ben Elliston  <bje@au.ibm.com>
29043
29044         * config/rs6000/sysv4.opt (msdata): Improve option description.
29045
29046 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
29047
29048         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
29049         (divdf3_internal_lat): Remove.
29050         (divxf3_internal_lat): Remove.
29051         (divxf3_internal_thr): Remove.
29052         (divxf): Use divxf3_internal.
29053         * config/ia64/div.md (divsf3_internal_lat): New.
29054         (divdf3_internal_lat): New.
29055         (divxf3_internal): New.
29056
29057 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29058
29059         PR c/448
29060         * Makefile.in (USE_GCC_STDINT): Define.
29061         (stmp-int-hdrs): Install stdint.h if applicable.
29062         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
29063         if known.
29064         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
29065         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
29066         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29067         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29068         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29069         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29070         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29071         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29072         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29073         (c_common_nodes_and_builtins): Initialize
29074         underlying_wchar_type_node.  Do not initialize
29075         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
29076         nodes for new types.
29077         (c_stddef_cpp_builtins): Define macros for new types.
29078         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
29079         Remove.
29080         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
29081         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
29082         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
29083         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
29084         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
29085         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
29086         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
29087         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
29088         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
29089         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
29090         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
29091         int16_type_node, int32_type_node, int64_type_node,
29092         uint8_type_node, uint16_type_node, c_uint32_type_node,
29093         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
29094         int_least32_type_node, int_least64_type_node,
29095         uint_least8_type_node, uint_least16_type_node,
29096         uint_least32_type_node, uint_least64_type_node,
29097         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
29098         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
29099         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
29100         uintptr_type_node): Define.
29101         * c-cppbuiltin.c (builtin_define_constants,
29102         builtin_define_type_minmax): New.
29103         (builtin_define_stdint_macros): Define more macros.
29104         (c_cpp_builtins): Define more limit macros.
29105         (type_suffix): New.
29106         (builtin_define_type_max): Define in terms of
29107         builtin_define_type_minmax.  Remove is_long parameter.  All
29108         callers changed.
29109         * config.gcc (use_gcc_stdint): Define.
29110         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
29111         Add newlib-stdint.h for generic targets.
29112         * config/glibc-stdint.h, config/newlib-stdint.h,
29113         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
29114         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
29115         * config/score/score.h (UINTPTR_TYPE): Define.
29116         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
29117         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
29118         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29119         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29120         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29121         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29122         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29123         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29124         * config/spu/spu.h (STDINT_LONG32): Define.
29125         * configure.ac (use_gcc_stdint): Substitute.
29126         * configure: Regenerate.
29127         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
29128         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
29129         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
29130         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
29131         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
29132         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
29133         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
29134         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
29135         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
29136         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
29137         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
29138         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
29139         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
29140         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
29141         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
29142         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
29143         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
29144         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
29145         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
29146         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
29147         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
29148         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
29149         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29150         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29151         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29152         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29153         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29154         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29155         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
29156
29157 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
29158
29159         * loop-iv.c (suitable_set_for_replacement): Renamed from
29160         simplify_using_assignment; changed to return bool and to accept new
29161         args DEST and SRC.  Return true iff we find a source/destination pair
29162         that can be used to make a replacement, and fill SRC and DEST if so.
29163         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
29164         changed.
29165         (simplify_using_initial_values): Deal with altered regs here and track
29166         more precisely the effect they have on the validity of our expression.
29167
29168         * loop-iv.c (simplify_using_condition): A condition of the form
29169         (EQ REG CONST) can be used to simply make a substitution.
29170         (simplify_using_initial_values): Keep track of conditions we have seen
29171         and keep using them to simplify new expressions, while applying the
29172         same substitutions to them as to the expression.
29173
29174         * simplify-rtx.c (simplify_relational_operation_1): Simplify
29175         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
29176         GEU/LTU reversed.
29177
29178         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
29179         changed.  Use this when trying to improve the upper bound.
29180         Generate the comparison by using simplify_gen_relational.
29181
29182         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
29183
29184         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
29185         functions.
29186         (simplify_using_assignment, simplify_using_initial_values): Call
29187         replace_in_expr to make replacements.  Call replace_single_def_regs
29188         once on the initial version of the expression.
29189
29190 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29191
29192         PR target/27237
29193         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
29194
29195 2009-03-31  Richard Guenther  <rguenther@suse.de>
29196
29197         PR middle-end/31029
29198         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
29199         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
29200
29201 2009-03-31  Richard Guenther  <rguenther@suse.de>
29202
29203         * tree.h (div_if_zero_remainder): Declare.
29204         * fold-const.c (div_if_zero_remainder): Export.
29205         * tree-ssa-forwprop.c
29206         (forward_propagate_addr_into_variable_array_index): Handle
29207         constant array index addition outside of the variable index.
29208
29209 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29210
29211         PR target/39592
29212         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
29213         define_splits, floatunssi<mode>2): Require x87 conversions from
29214         DImode to be permitted.
29215
29216 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29217
29218         PR preprocessor/15638
29219         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
29220
29221 2009-03-31  Richard Guenther  <rguenther@suse.de>
29222
29223         PR middle-end/23401
29224         PR middle-end/27810
29225         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
29226         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
29227         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
29228         a separate statement.
29229         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
29230         (lookup_tmp_var): Likewise.
29231         (is_gimple_formal_tmp_or_call_rhs): Remove.
29232         (is_gimple_reg_or_call_rhs): Rename to ...
29233         (is_gimple_reg_rhs_or_call): ... this.
29234         (is_gimple_mem_or_call_rhs): Rename to ...
29235         (is_gimple_mem_rhs_or_call): ... this.
29236         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
29237         DECL_GIMPLE_REG_P only if is_formal is true.
29238         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
29239         for non-proper post-modify expression gimplification.
29240         (gimplify_self_mod_expr): For post-modify expressions gimplify
29241         the lvalue to a minimal lvalue.
29242         (rhs_predicate_for): Remove formal temp case.
29243         (gimplify_modify_expr_rhs): Likewise.
29244         (gimplify_addr_expr): Use is_gimple_reg.
29245         (gimplify_expr): Remove formal temp cases.
29246         (gimple_regimplify_operands): Likewise.
29247         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
29248         and FILTER_EXPR like constants.
29249         * gimple.c (walk_gimple_op): Fix val_only initialization, use
29250         is_gimple_reg.
29251         (is_gimple_formal_tmp_rhs): Remove.
29252         (is_gimple_reg_rhs): Remove special casing.
29253         (is_gimple_mem_rhs): Fix.
29254         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
29255         (is_gimple_formal_tmp_var): Remove.
29256         (is_gimple_formal_tmp_reg): Likewise.
29257         (is_gimple_min_lval): Allow invariant component ref parts.
29258         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
29259         is_gimple_formal_tmp_reg): Remove declarations.
29260         * tree-cfg.c (verify_expr): Verify that variables with address
29261         taken do not have DECL_GIMPLE_REG_P set.
29262         * tree-mudflap.c (mf_build_check_statement_for): Use
29263         force_gimple_operand instead of gimplify_expr.
29264
29265 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
29266
29267         * modulo-sched.c (sms_schedule_by_order): Pass the actual
29268         schedulable rows to compute_split_row.
29269
29270 2009-03-31  Ben Elliston  <bje@au.ibm.com>
29271
29272         PR target/31635
29273         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
29274         OPT_mvrsave.
29275
29276 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29277
29278         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
29279         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
29280         * configure: Regenerate.
29281         * config.in: Regenerate.
29282         * config/rs6000/rs6000.opt (mtls-markers): Add.
29283         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
29284         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
29285         (tls_ld_aix, tls_ld_sysv): Likewise.
29286         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
29287         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
29288
29289 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29290
29291         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
29292
29293 2009-03-30  Jan Hubicka  <jh@suse.cz>
29294
29295         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
29296         out of RESX.
29297         (tree_remove_unreachable_handlers): Cleanup EH predecestor
29298         detection and label handling.
29299
29300 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29301
29302         * ira-int.h (ira_allocno): Rename left_conflicts_num to
29303         left_conflicts_size.
29304         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
29305         ALLOCNO_LEFT_CONFLICTS_SIZE.
29306
29307         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
29308         remove_allocno_from_bucket_and_push,
29309         allocno_spill_priority_compare, push_allocnos_to_stack,
29310         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29311         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
29312         (setup_allocno_left_conflicts_num): Ditto.  Rename to
29313         setup_allocno_left_conflicts_size.
29314         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29315         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
29316         setup_allocno_left_conflicts_size instead of
29317         setup_allocno_left_conflicts_num.
29318
29319         * ira-build.c (ira_create_allocno): Use
29320         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
29321         ALLOCNO_LEFT_CONFLICTS_NUM.
29322
29323 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29324
29325         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29326         instead of DF_LR_OUT.
29327
29328         * ira-lives.c (process_bb_node_lives): Ditto.
29329
29330         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29331         instead of DF_LR_{OUT,IN}.
29332
29333         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29334
29335         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29336
29337 2009-03-30  Jan Hubicka  <jh@suse.cz>
29338
29339         * except.c (label_to_region_map): Fix thinko.
29340
29341 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
29342
29343         PR middle-end/38237
29344         * tree.h (tree_find_value): New declaration.
29345         * tree.c (tree_find_value): New function.
29346         * varasm.c (assemble_external): Avoid duplicate entries on lists.
29347
29348 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
29349
29350         PR debug/39563
29351         * c-decl.c (struct c_binding): Add locus field.
29352         (bind): Add locus argument, set locus field from it.
29353         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
29354         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
29355         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
29356         implicitly_declare, undeclared_variable, lookup_label,
29357         declare_label, c_make_fname_decl, c_builtin_function,
29358         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
29359         bind callers.
29360
29361 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29362
29363         PR target/38781
29364         * config/i386/i386.c (classify_argument): Check total size of
29365         structure.
29366
29367 2009-03-30  Martin Jambor  <mjambor@suse.cz>
29368
29369         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
29370         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
29371         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
29372         respectively.
29373
29374         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
29375         seen_variable_array_ref while also traversing a union.
29376
29377         * tree-inline.c (optimize_inline_calls): Do not call
29378         cgraph_node_remove_callees.
29379         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
29380         (pass_remove_cgraph_callee_edges): New variable.
29381         * passes.c (init_optimization_passes): Add
29382         pass_remove_cgraph_callee_edges after early inlining and before all
29383         late intraprocedural passes.
29384
29385         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
29386
29387 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29388
29389         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
29390         Fix typos in names.
29391
29392 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29393
29394         * combine.c (simplify_comparison): Use have_insn_for.
29395         * dojump.c (do_jump): Likewise.
29396
29397 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29398
29399         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
29400         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
29401         sparc_compare_op0 like sparc_compare_emitted used to be handled.
29402         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
29403         instead of sparc_compare_emitted.
29404         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
29405         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
29406         instead of sparc_compare_emitted.
29407
29408 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29409
29410         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
29411         enter/exit cfglayout mode.
29412         (pass_partition_block): Require it.
29413         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
29414         (combine_instructions): Track basic blocks instead of labels.
29415         (update_cfg_for_uncondjump): New.
29416         (try_combine): Use it.  Update jumps after rescanning.
29417         (pass_combine): Require PROP_cfglayout.
29418         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
29419
29420 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29421
29422         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
29423         Provide/destroy PROP_cfglayout respectively.
29424         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
29425         * tree-pass.h (PROP_cfglayout): New.
29426
29427 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29428
29429         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
29430         fold_convert_const_fixed_from_fixed,
29431         fold_convert_const_fixed_from_int,
29432         fold_convert_const_fixed_from_real, fold_negate_const): Do not
29433         set TREE_CONSTANT_OVERFLOW.
29434         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
29435         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
29436
29437 2009-03-30  Ira Rosen  <irar@il.ibm.com>
29438
29439         * tree-vect-loop-manip.c: New file.
29440         * tree-vectorizer.c: Update documentation and included files.
29441         (vect_loop_location): Make extern.
29442         (rename_use_op): Move to tree-vect-loop-manip.c
29443         (rename_variables_in_bb, rename_variables_in_loop,
29444         slpeel_update_phis_for_duplicate_loop,
29445         slpeel_update_phi_nodes_for_guard1,
29446         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
29447         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
29448         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
29449         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
29450         find_loop_location): Likewise.
29451         (new_stmt_vec_info): Move to tree-vect-stmts.c.
29452         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
29453         get_vectype_for_scalar_type, vect_is_simple_use,
29454         supportable_widening_operation, supportable_narrowing_operation):
29455         Likewise.
29456         (bb_in_loop_p): Move to tree-vect-loop.c.
29457         (new_loop_vec_info, destroy_loop_vec_info,
29458         reduction_code_for_scalar_code, report_vect_op,
29459         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
29460         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
29461         (vect_supportable_dr_alignment): Likewise.
29462         * tree-vectorizer.h (tree-data-ref.h): Include.
29463         (vect_loop_location): Declare.
29464         Reorganize function declarations according to the new file structure.
29465         * tree-vect-loop.c: New file.
29466         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
29467         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
29468         * tree-vect-data-refs.c: New file.
29469         * tree-vect-patterns.c (timevar.h): Don't include.
29470         * tree-vect-stmts.c: New file.
29471         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
29472         tree-vect-slp.c, tree-vect-loop.c.
29473         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
29474         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
29475         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
29476         (tree-vect-analyze.o): Remove.
29477         (tree-vect-transform.o): Likewise.
29478         (tree-vect-data-refs.o): Add rule.
29479         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
29480         tree-vect-slp.o): Likewise.
29481         (tree-vect-patterns.o): Remove redundant dependencies.
29482         (tree-vectorizer.o): Likewise.
29483         * tree-vect-slp.c: New file.
29484
29485 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29486
29487         * optc-gen.awk: Warn if an option flag has multiple different
29488         help strings.
29489
29490 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
29491
29492         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
29493         -floop-block): Document dependences on PPL, CLooG and Graphite.
29494
29495 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29496
29497         PR rtl-optimization/323
29498         * c-common.c (c_fully_fold, convert_and_check,
29499         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
29500         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
29501         * c-common.def (EXCESS_PRECISION_EXPR): New.
29502         * c-cppbuiltin.c (builtin_define_float_constants): Define
29503         constants with enough digits for long double.
29504         * c-lex.c (interpret_float): Interpret constant with excess
29505         precision where appropriate.
29506         * c-opts.c (c_common_post_options): Set
29507         flag_excess_precision_cmdline.  Give an error for
29508         -fexcess-precision=standard for C++ for processors where the
29509         option is significant.
29510         * c-parser.c (c_parser_conditional_expression): Handle excess
29511         precision in condition.
29512         * c-typeck.c (convert_arguments): Handle arguments with excess
29513         precision.
29514         (build_unary_op): Move excess precision outside operation.
29515         (build_conditional_expr): Likewise.
29516         (build_compound_expr): Likewise.
29517         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
29518         (build_modify_expr): Handle excess precision in RHS.
29519         (convert_for_assignment): Handle excess precision in converted
29520         value.
29521         (digest_init, output_init_element, process_init_element): Handle
29522         excess precision in initializer.
29523         (c_finish_return): Handle excess precision in return value.
29524         (build_binary_op): Handle excess precision in operands and add
29525         excess precision as needed for operation.
29526         * common.opt (-fexcess-precision=): New option.
29527         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
29528         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
29529         For standard excess precision, output explicit conversion to and
29530         truncation from XFmode.
29531         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
29532         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
29533         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
29534         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
29535         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
29536         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
29537         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
29538         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
29539         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
29540         define_splits, sqrt<mode>2): Disable where appropriate for
29541         standard excess precision.
29542         * convert.c (convert_to_real): Do not shorten arithmetic to type
29543         for which excess precision would be used.
29544         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
29545         * doc/invoke.texi (-fexcess-precision=): Document option.
29546         (-mfpmath=): Correct index entry.
29547         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
29548         flag_excess_precision): New.
29549         * langhooks.c (lhd_post_options): Set
29550         flag_excess_precision_cmdline.
29551         * opts.c (common_handle_option): Handle -fexcess-precision=.
29552         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
29553         init_excess_precision): New.
29554         (lang_dependent_init_target): Call init_excess_precision.
29555         * tree.c (excess_precision_type): New.
29556         * tree.h (excess_precision_type): Declare.
29557
29558 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29559
29560         PR c/35235
29561         * c-typeck.c (build_component_ref): Do not copy qualifiers from
29562         non-lvalue to component.
29563
29564 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29565
29566         PR preprocessor/34695
29567         * Makefile.in (c-opts.o): Depend on c-tree.h.
29568         * c-common.c: Move down include of diagnostic.h.
29569         (done_lexing, c_cpp_error): New.
29570         * c-common.h (done_lexing): Declare.
29571         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
29572         (parse_in).
29573         * c-opts.c: Include c-tree.h.
29574         (c_common_init_options): Set preprocessor error callback.
29575         (c_common_handle_option): Do not set preprocessor
29576         inhibit_warnings, warnings_are_errors, warn_system_headers,
29577         pedantic_errors or inhibit_warnings flags.
29578         (c_common_post_options): Do not check cpp_errors (parse_in).
29579         (c_common_finish): Do not output dependencies if there were
29580         errors.  Do not check return value of cpp_finish.
29581         * c-ppoutput.c (pp_file_change): Set input_location.
29582         * c-tree.h (c_cpp_error): Declare.
29583         * diagnostic.c (diagnostic_set_info_translated): Also initialize
29584         override_column.
29585         (diagnostic_build_prefix): Check override_column.
29586         * diagnostic.h (diagnostic_info): Add override_column field.
29587         (diagnostic_override_column): Define.
29588
29589 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
29590
29591         * c-common.c (c_expand_expr, c_staticp): Remove.
29592         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
29593         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
29594         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
29595         * c-gimplify.c (gimplify_compound_literal_expr,
29596         optimize_compound_literals_in_ctor): Remove.
29597         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
29598         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
29599         * c-semantics.c (emit_local_var): Remove.
29600
29601         * langhooks-def.h (lhd_expand_expr): Remove.
29602         * langhooks.c (lhd_expand_expr): Remove.
29603         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
29604
29605         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
29606         handling from c-semantics.c; don't call into langhook.
29607         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
29608         * gimplify.c (gimplify_compound_literal_expr,
29609         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
29610         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
29611         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
29612         as was done in c-gimplify.c.
29613         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
29614         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
29615         Move from c-common.h.
29616         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
29617
29618         * tree.c (staticp): Do not call langhook.
29619         * langhooks.c (lhd_staticp): Delete.
29620         * langhooks-def.h (lhd_staticp): Delete prototype.
29621         (LANG_HOOKS_STATICP): Delete.
29622         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
29623
29624         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
29625         instead of DECL_STMTs.
29626
29627 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29628
29629         PR c/456
29630         PR c/5675
29631         PR c/19976
29632         PR c/29116
29633         PR c/31871
29634         PR c/35198
29635         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
29636         void_type_node.
29637         (fold_call_expr): Return a NOP_EXPR from folding rather than the
29638         contained expression.
29639         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
29640         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
29641         conditional expressions for C.
29642         (decl_constant_value_for_optimization): Move from
29643         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
29644         whether optimizing and that the expression is a VAR_DECL not of
29645         array type instead of doing such checks in the caller.  Do not
29646         check pedantic.  Call gcc_unreachable for C++.
29647         * c-common.def (C_MAYBE_CONST_EXPR): New.
29648         * c-common.h (c_fully_fold, c_save_expr,
29649         decl_constant_value_for_optimization): New prototypes.
29650         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
29651         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
29652         EXPR_INT_CONST_OPERANDS): Define.
29653         * c-convert.c (convert): Strip nops from expression.
29654         * c-decl.c (groktypename): Take extra parameters expr and
29655         expr_const_operands.  Update call to grokdeclarator.
29656         (start_decl): Update call to grokdeclarator.  Add statement for
29657         expressions used in type of decl.
29658         (grokparm): Update call to grokdeclarator.
29659         (push_parm_decl): Update call to grokdeclarator.
29660         (build_compound_literal): Add parameter non_const and build a
29661         C_MAYBE_COSNT_EXPR if applicable.
29662         (grokdeclarator): Take extra parameters expr and
29663         expr_const_operands.  Track expressions used in declaration
29664         specifiers and declarators.  Fold array sizes and track whether
29665         they are constant expressions and whether they are integer
29666         constant expressions.
29667         (parser_xref_tag): Set expr and expr_const_operands fields in
29668         return value.
29669         (grokfield): Update call to grokdeclarator.
29670         (start_function): Update call to grokdeclarator.
29671         (build_null_declspecs): Set expr and expr_const_operands fields in
29672         return value.
29673         (declspecs_add_type): Handle expressions in typeof specifiers.
29674         * c-parser.c (c_parser_declspecs): Set expr and
29675         expr_const_operands fields for declaration specifiers.
29676         (c_parser_enum_specifier): Likewise.
29677         (c_parser_struct_or_union_specifier): Likewise.
29678         (c_parser_typeof_specifier): Likewise.  Update call to
29679         groktypename.  Fold expression as needed.  Return expressions with
29680         type instead of adding statements.
29681         (c_parser_attributes): Update calls to c_parser_expr_list.
29682         (c_parser_statement_after_labels): Fold expression before passing
29683         to objc_build_throw_stmt.
29684         (c_parser_condition): Fold expression.
29685         (c_parser_asm_operands): Fold expression.
29686         (c_parser_conditional_expression): Use c_save_expr.  Update call
29687         to build_conditional_expr.
29688         (c_parser_alignof_expression): Update call to groktypename.
29689         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
29690         original_code.  Fold expression argument of va_arg.  Create
29691         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
29692         argument to va_arg.  Update calls to groktypename.  Fold array
29693         index for offsetof.  Verify that first argument to
29694         __builtin_choose_expr has integer type.
29695         (c_parser_postfix_expression_after_paren_type): Update calls to
29696         groktypename and build_compound_literal.  Handle expressions with
29697         side effects in type name.
29698         (c_parser_postfix_expression_after_primary): Update call to
29699         c_parser_expr_list.  Set original_code for calls to
29700         __builtin_constant_p.
29701         (c_parser_expr_list): Take extra parameter fold_p.  Fold
29702         expressions if requested.
29703         (c_parser_objc_type_name): Update call to groktypename.
29704         (c_parser_objc_synchronized_statement): Fold expression.
29705         (c_parser_objc_receiver): Fold expression.
29706         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
29707         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
29708         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
29709         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
29710         (struct c_typespec): Add elements expr and expr_const_operands.
29711         (struct c_declspecs): Add elements expr and expr_const_operands.
29712         (groktypename, build_conditional_expr, build_compound_literal):
29713         Update prototypes.
29714         (in_late_binary_op): Declare.
29715         * c-typeck.c (note_integer_operands): New function.
29716         (in_late_binary_op): New variable.
29717         (decl_constant_value_for_broken_optimization): Move to c-common.c
29718         and rename to decl_constant_value_for_optimization.
29719         (default_function_array_conversion): Do not strip nops.
29720         (default_conversion): Do not call
29721         decl_constant_value_for_broken_optimization.
29722         (build_array_ref): Do not fold result.
29723         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
29724         result when operand is a VLA.
29725         (c_expr_sizeof_type): Update call to groktypename.  Handle
29726         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
29727         result when operand names a VLA type.
29728         (build_function_call): Update call to build_compound_literal.
29729         Only fold result for calls to __builtin_* functions.  Strip
29730         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
29731         the function designator.
29732         (convert_arguments): Fold arguments.  Update call to
29733         convert_for_assignment.
29734         (build_unary_op): Handle increment and decrement of
29735         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
29736         decrement earlier.  Fold operand of increment and decrement.
29737         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
29738         built for integer operand.  Wrap returns that are INTEGER_CSTs
29739         without being integer constant expressions or that have integer
29740         constant operands without being INTEGER_CSTs.
29741         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
29742         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
29743         result is an integer constant expression or can be used in
29744         unevaluated parts of one and avoid folding and wrap as
29745         appropriate.  Fold operands before possibly doing -Wsign-compare
29746         warnings.
29747         (build_compound_expr): Wrap result for C99 if operands can be used
29748         in integer constant expressions.
29749         (build_c_cast): Update call to digest_init.  Do not ignore
29750         overflow from casting floating-point constants to integers.  Wrap
29751         results that could be confused with integer constant expressions,
29752         null pointer constants or floating-point constants.
29753         (c_cast_expr): Update call to groktypename.  Handle expressions
29754         included in type name.
29755         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
29756         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
29757         Update calls to convert_for_assignment.
29758         (convert_for_assignment): Take new parameter
29759         null_pointer_constant.  Do not strip nops or call
29760         decl_constant_value_for_broken_optimization.  Set
29761         in_late_binary_op for conversions to boolean.
29762         (store_init_value): Update call to digest_init.
29763         (digest_init): Take new parameter null_pointer_constant.  Do not
29764         call decl_constant_value_for_broken_optimization.  pedwarn for
29765         initializers not constant expressions.  Update calls to
29766         convert_for_assignment.
29767         (constructor_nonconst): New.
29768         (struct constructor_stack): Add nonconst element.
29769         (really_start_incremental_init, push_init_level, pop_init_level):
29770         Handle constructor_nonconst and nonconst element.
29771         (set_init_index): Call constant_expression_warning for array
29772         designators.
29773         (output_init_element): Fold value.  Set constructor_nonconst as
29774         applicable.  pedwarn for initializers not constant expressions.
29775         Update call to digest_init.  Call constant_expression_warning
29776         where constant initializers are required.
29777         (process_init_element): Use c_save_expr.
29778         (c_finish_goto_ptr): Fold expression.
29779         (c_finish_return): Fold return value.  Update call to
29780         convert_for_assignment.
29781         (c_start_case): Fold switch expression.
29782         (c_process_expr_stmt): Fold expression.
29783         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
29784         ensure statement expression is not evaluated in constant expression.
29785         (build_binary_op): Track whether results are integer constant
29786         expressions or may occur in such, disable folding and wrap results
29787         as applicable.  Fold operands for -Wsign-compare warnings unless
29788         in_late_binary_op.
29789         (c_objc_common_truthvalue_conversion): Handle results folded to
29790         integer constants that are not integer constant expressions.
29791         * doc/extend.texi: Document when typeof operands are evaluated,
29792         that condition of __builtin_choose_expr is an integer constant
29793         expression, and more about use of __builtin_constant_p in
29794         initializers.
29795
29796 2009-03-29  Richard Guenther  <rguenther@suse.de>
29797
29798         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
29799         propagate addresses of array references.
29800
29801 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29802
29803         * regmove.c (perhaps_ends_bb_p): Remove.
29804         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
29805         from INSN and check that the main loop stays within that basic block.
29806         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
29807         (regmove_forward_pass): Split out from regmove_optimize.  Use
29808         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
29809         (regmove_backward_pass): Split out from regmove_optimize.  Use
29810         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
29811         (regmove_optimize): Simplify.
29812
29813 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29814
29815         PR target/39545
29816         * config/i386/i386.c (classify_argument): Ignore flexible array
29817         member in struct and warn ABI change.
29818
29819 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29820
29821         * config/i386/i386-protos.h (ix86_agi_dependent): New.
29822
29823         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
29824         (ix86_adjust_cost): Updated.
29825
29826 2009-03-29  Jan Hubicka  <jh@suse.cz>
29827
29828         PR middle-end/28850
29829         * tree-pass.h (pass_cleanup_eh): New function.
29830         (remove_unreachable_regions): Break code handling RTL
29831         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
29832         that can not be reached by runtime.
29833         (can_be_reached_by_runtime): New function.
29834         (label_to_region_map): New function.
29835         (num_eh_regions): New function.
29836         (rtl_remove_unreachable_regions): New function.
29837         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
29838         (remove_eh_region): New function.
29839         * except.h: Include sbitmap and vecprim.
29840         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
29841         num_eh_regions): Declare.
29842         * passes.c (init_optimization_passes): Schedule cleanup_eh.
29843         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
29844         * tree-eh.c (tree_remove_unreachable_handlers): New function.
29845         (tree_empty_eh_handler_p): New function.
29846         (cleanup_empty_eh): New function.
29847         (cleanup_eh): New function.
29848         (pass_cleanup_eh): New function.
29849
29850 2009-03-29  Jan Hubicka  <jh@suse.cz>
29851
29852         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
29853         for removed regions.
29854
29855 2009-03-29  Jan Hubicka  <jh@suse.cz>
29856
29857         * except.c (dump_eh_tree): Dump all datastructures.
29858
29859 2009-03-29  Jan Hubicka  <jh@suse.cz>
29860
29861         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
29862         (duplicate_eh_regions_1): Likewise.
29863         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
29864         vector; call EH verification.
29865         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
29866         Be ready for region being removed.
29867
29868 2009-03-29  Jan Hubicka  <jh@suse.cz>
29869
29870         * bitmap.c (bitmap_last_set_bit): New function.
29871         * bitmap.h (bitmap_last_set_bit): Declare.
29872
29873 2009-03-29  David Ayers  <ayers@fsfe.org>
29874
29875         PR objc/27377
29876         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
29877         by calling objc_compare_types and surpress warnings about
29878         incompatible C pointers that are compatible ObjC pointers.
29879
29880 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
29881
29882         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
29883         call initialize_inline_failed.
29884         (initialize_inline_failed): Move it from here ...
29885         * cgraph.c (initialize_inline_failed): ... to here.
29886         (cgraph_create_edge): Call initialize_inline_failed rather than
29887         setting inline_failed directly.
29888
29889 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29890
29891         PR target/32542
29892         * sysv4.opt (msdata): Improve comment.
29893         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
29894         * sysv4.h (SVR4_ASM_SPEC): Likewise.
29895
29896 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29897
29898         PR target/30451
29899         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
29900         load and store attributes.
29901
29902 2009-03-29  Ben Elliston  <bje@au.ibm.com>
29903
29904         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
29905         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
29906         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
29907         * doc/extend.texi (X86 Built-in Functions): Add index entries for
29908         __builtin_infq and __builtin_huge_valq.
29909
29910 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
29911
29912         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
29913         atmega8m1 devices.
29914         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29915         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
29916
29917 2009-03-28  Xinliang David Li  <davidxl@google.com>
29918
29919         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
29920         (do_dbg_cnt): New function.
29921
29922 2009-03-28  Jan Hubicka  <jh@suse.cz>
29923
29924         Merge from pretty-ipa:
29925
29926         2009-03-27  Jan Hubicka  <jh@suse.cz>
29927
29928         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
29929         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
29930         * passes.c (function_called_by_processed_nodes_p): New.
29931         * ipa-pure-const.c (check_call): Fix handling of operands.
29932         (analyze_function): Dump debug output for skipped bodies.
29933         (local_pure_const): Use function_called_by_processed_nodes_p.
29934         * dwarf2out.c (reference_to_unused): Use output.
29935         * passes.c (do_per_function_toporder): Likewise.
29936
29937         2008-11-12  Jan Hubicka  <jh@suse.cz>
29938
29939         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
29940         * ipa-pure-const.c (funct_state_d): Add can throw field; make
29941         state_set_in_source enum
29942         (check_decl): Ignore memory tags; do not set fake looping flags;
29943         dump diagnostics.
29944         (check_operand, check_tree, check_rhs_var, check_lhs_var,
29945         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
29946         (check_call, analyze_function): Rewrite.
29947         (check_stmt): New.
29948         (add_new_function): Update call of analyze_function.
29949         (generate_summary): Add call of analyze_function.
29950         (propagate): Propagate can_throw; handle state_set_in_source correctly.
29951         (local_pure_const): New function.
29952         (pass_local_pure_const): New pass.
29953         * ipa-inline.c (inline_transform): Set after_inlining.
29954         * tree-eh.c (stmt_can_throw_external): New.
29955         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
29956         work with aliasing built.
29957         * tree-flow.h (stmt_can_throw_external): New.
29958         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
29959         and local pure/const pass in early and late optimization queue.
29960
29961 2009-03-28  Martin Jambor  <mjambor@suse.cz>
29962
29963         * fold-const.c (get_pointer_modulus_and_residue): New parameter
29964         allow_func_align.
29965         (fold_binary): Allow function decl aligment consideration is the
29966         second argument is integer constant one.
29967         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
29968         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
29969         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
29970
29971 2009-03-28  Jan Hubicka  <jh@suse.cz>
29972
29973         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
29974         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
29975         * function.h (rtl_data): Add nothrow flag.
29976         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
29977         set DECL_NOTHROW for AVAILABLE functions.
29978
29979 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
29980
29981         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
29982         following vector keyword has expansion starting with pixel or bool
29983         keyword, expand vector to __vector and pixel or bool to __pixel or
29984         __bool.
29985
29986         PR c++/39554
29987         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
29988         warn_if_disallowed_function_p): Removed.
29989         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
29990         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
29991         warning_if_disallowed_function_p.
29992         * flags.h (warn_if_disallowed_function_p,
29993         warn_disallowed_functions): Removed.
29994         * common.opt (Wdisallowed-function-list=): Removed.
29995         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
29996
29997 2009-03-28  Richard Guenther  <rguenther@suse.de>
29998
29999         PR tree-optimization/38723
30000         * tree-ssa-pre.c (compute_avail): Add all default definitions to
30001         the entry block.
30002
30003 2009-03-28  Jan Hubicka  <jh@suse.cz>
30004
30005         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
30006         test introduced by my previous patch.
30007
30008 2009-03-28  Richard Guenther  <rguenther@suse.de>
30009
30010         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
30011         the PHIs value undefined.
30012
30013 2009-03-28  Jan Hubicka  <jh@suse.cz>
30014
30015         * tree-pass.h (pass_fixup_cfg): New pass.
30016         * ipa-inline.c (inline_transform): Set
30017         always_inline_functions_inlined/after_inlining.
30018         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
30019         (pass_fixup_cfg): New pass.
30020         * passes.c (init_optimization_passes): Add fixup_cfg.
30021
30022 2009-03-28  Richard Guenther  <rguenther@suse.de>
30023
30024         PR tree-optimization/38458
30025         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
30026         argument use the arguments copy-of value.
30027
30028 2009-03-28  Richard Guenther  <rguenther@suse.de>
30029
30030         PR tree-optimization/38180
30031         * tree-ssa-ccp.c (get_default_value): Simplify.
30032         (likely_value): Likewise.
30033         (surely_varying_stmt_p): Properly handle VOP case.
30034         (ccp_initialize): Likewise.
30035         (ccp_fold): Handle propagating through *&.
30036         (fold_const_aggregate_ref): Also handle decls.
30037
30038 2009-03-28  Jan Hubicka  <jh@suse.cz>
30039
30040         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30041         * cgraph.h (cgraph_node): Likewise.
30042         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
30043         (cgraph_reset_node): Use process flag.
30044         (cgraph_mark_functions_to_output): Likewise.
30045         (cgraph_expand_function): Likewise.
30046         (cgraph_expand_all_functions): Likewise.
30047         (cgraph_output_in_order): Likewise.
30048         * dwarf2out.c (reference_to_unused): Likewise.
30049         * passes.c do_per_function_toporder): Likewise.
30050
30051 2009-03-28  Jan Hubicka  <jh@suse.cz>
30052
30053         Bring from lto-branch:
30054
30055         2008-09-03  Doug Kwan  <dougkwan@google.com>
30056
30057         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
30058         enums instead of reason strings.
30059         * cgraph.c (cgraph_create_edge): Same.
30060         (cgraph_inline_failed_string): New function.
30061         * cgraph.h (cgraph_inline_failed_t): New enum type.
30062         (cgraph_inline_failed_string): New prototype.
30063         (struct cgraph_edge): Change type of INLINED_FAILED from constant
30064         char pointer to cgraph_inline_failed_t.
30065         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
30066         (cgraph_default_inline_p): Ditto.
30067         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
30068         to cgraph_inline_failed_t pointer.
30069         * cif-code.def: New file.
30070         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
30071         reason string.
30072         (cgraph_check_inline_limits): Change type of REASON to pointer to
30073         cgraph_inline_failed_t.  Replace reason strings with enums.
30074         (cgraph_default_inline_p): Ditto.
30075         (cgraph_recursive_inlining_p): Ditto.
30076         (update_caller_keys): Change type of FAILED_REASON to
30077         cgraph_inline_failed_t.
30078         (cgraph_set_inline_failed): Change type of REASON to pointer to
30079         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
30080         convert enums to strings for text output.
30081         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
30082         to be of type cgraph_inline_failed_t.  Replace reason strings with
30083         enums.  Call cgraph_inline_failed_string to covert enums
30084         to strings for text output.
30085         (cgraph_decide_inlining): Replace reason strings with enums.
30086         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
30087         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
30088         for text output.
30089         * tree-inline.c (expand_call_inline): Change type of REASON
30090         to cgraph_inline_failed_t.  Replace reason strings with enums.
30091         Call cgraph_inline_failed_string for text output.
30092         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
30093         (cgraph.o): Ditto.
30094
30095 2009-03-28  Jan Hubicka  <jh@suse.cz>
30096
30097         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
30098         cgraph_clone_node): Remove master clone handling.
30099         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30100         * cgraph.h (master_clone): Remove.
30101         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30102         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
30103         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
30104
30105 2009-03-28  Jan Hubicka  <jh@suse.cz>
30106
30107         * cgraph.c (cgraph_function_body_availability): Functions declared
30108         inline are always safe to assume that it is not going to be replaced.
30109
30110 2009-03-28  Richard Guenther  <rguenther@suse.de>
30111
30112         PR tree-optimization/38513
30113         * tree-ssa-pre.c (eliminate): Remove redundant stores.
30114         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
30115         EXC_PTR_EXPR and FILTER_EXPR.
30116         (get_ref_from_reference_ops): Likewise.
30117
30118 2009-03-28  Richard Guenther  <rguenther@suse.de>
30119
30120         PR tree-optimization/38968
30121         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
30122         Use FLOOR_MOD_EXPR to compute misalignment.
30123
30124 2009-03-28  Richard Guenther  <rguenther@suse.de>
30125
30126         PR tree-optimization/37795
30127         * tree.h (combine_comparisons): Declare.
30128         * fold-const.c (combine_comparisons): Export.
30129         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
30130         comparisons.
30131         (ifcombine_iforif): Use combine_comparisons.
30132
30133 2009-03-28  Jan Hubicka  <jh@suse.cz>
30134
30135         * tree-eh.c (inlinable_call_p): New function.
30136         (make_eh_edges): Use it.
30137         (verify_eh_edges): Use it.
30138         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
30139         * except.c (reachable_next_level): Add inlinable_function argument
30140         (sjlj_find_directly_reachable_regions): Update.
30141         (add_reachable_handler): Do not set saw_any_handlers.
30142         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
30143         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30144         Add new inlinable call parameter.
30145         (can_throw_internal, can_throw_external): Update.
30146         * except.h (can_throw_internal_1, can_throw_external_1,
30147         foreach_reachable_handler): Update declaration.
30148
30149 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
30150
30151         * config/arm/t-arm-coff, config/h8300/coff.h,
30152         config/i386/i386-aout.h, config/i386/i386-coff.h,
30153         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
30154         config/pdp11/2bsd.h, config/rs6000/aix41.h,
30155         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
30156         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
30157         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
30158         sys-types.h: Remove.
30159         * Makefile.in: Remove protoize and fixproto support and references
30160         in comments.
30161         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
30162         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
30163         Remove.
30164         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
30165         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
30166         unprotoize$(exeext).
30167         (rest.encap): Don't depend on $(STMP_FIXPROTO)
30168         (.PHONY): Don't depend on proto.
30169         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
30170         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
30171         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
30172         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
30173         build/gen-protos.o, build/scan.o, xsys-protos.h,
30174         build/fix-header$(build_exeext), build/fix-header.o,
30175         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
30176         stmp-install-fixproto): Remove.
30177         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
30178         SYSCALLS.c or fixproto files.
30179         (install-common): Don't install protoize.
30180         (install-headers-tar, install-headers-cpio, install-headers-cp):
30181         Don't depend on $(STMP_FIXPROTO).
30182         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
30183         install fixproto files or write out fixproto settings.
30184         (uninstall): Don't uninstall protoize.
30185         * config.gcc (use_fixproto): Remove.
30186         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
30187         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
30188         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
30189         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
30190         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
30191         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
30192         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
30193         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
30194         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
30195         * config/t-vxworks (STMP_FIXPROTO): Remove.
30196         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
30197         STMP_FIXPROTO): Remove.
30198         * config.in, configure: Regenerate.
30199         * crtstuff.c (gid_t, uid_t): Don't undefine.
30200         * doc/install.texi: Change m68k-coff to m68k-elf in example.
30201         (arm-*-coff, arm-*-aout: Remove target entries.
30202         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
30203         Remove mention of AIX 4.1.
30204         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
30205         * doc/invoke.texi (Running Protoize): Remove.
30206         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
30207         (Protoize Caveats): Remove.
30208         * tsystem.h: Update comments on headers assumed to exist.
30209
30210 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30211
30212         * genautomata.c: Add a new year to the copyright.  Add a new
30213         reference.
30214         (struct insn_reserv_decl): Add comments for member bypass_list.
30215         (find_bypass): Remove.
30216         (insert_bypass): New.
30217         (process_decls): Use insert_bypass.
30218         (output_internal_insn_latency_func): Output all bypasses with the
30219         same input insn in one switch case.
30220
30221         * rtl.def (define_bypass): Describe bypass choice.
30222         * doc/md.texi (define_bypass): Ditto.
30223
30224 2009-03-27  Richard Guenther  <rguenther@suse.de>
30225
30226         * gimplify.c (mark_addressable): Export.
30227         * tree-flow.h (mark_addressable): Declare.
30228         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
30229         * tree-ssa.c (verify_phi_args): Verify that address taken
30230         variables have TREE_ADDRESSABLE set.
30231
30232 2009-03-27  Richard Guenther  <rguenther@suse.de>
30233
30234         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
30235         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
30236         Do not mark decls TREE_ADDRESSABLE.
30237         (build_fold_addr_expr): Adjust.
30238         (fold_addr_expr): Remove.
30239         (fold_unary): Use build_fold_addr_expr.
30240         (fold_comparison): Likewise.
30241         (split_address_to_core_and_offset): Likewise.
30242         * coverage.c (tree_coverage_counter_addr): Mark the array decl
30243         TREE_ADDRESSABLE.
30244         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
30245         (gimplify_modify_expr_to_memcpy): Mark source and destination
30246         addressable.
30247         * omp-low.c (create_omp_child_function): Mark the object decl
30248         TREE_ADDRESSABLE.
30249         (lower_rec_input_clauses): Mark the var we take the address of
30250         TREE_ADDRESSABLE.
30251         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
30252
30253 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30254
30255         PR middle-end/39315
30256         * cfgexpand.c (expand_one_stack_var_at): Change alignment
30257         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
30258
30259 2009-03-27  Richard Guenther  <rguenther@suse.de>
30260
30261         PR tree-optimization/39120
30262         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
30263         constraints.
30264         (handle_lhs_call): Process return constraints.  Add escape
30265         constraints if necessary.
30266         (handle_const_call): Fill out return constraints.  Make nested
30267         case more precise.  Avoid consttmp if possible.
30268         (handle_pure_call): Fill out return constraints.  Avoid
30269         callused if possible.
30270         (find_func_aliases): Simplify call handling.
30271
30272 2009-03-27  Richard Guenther  <rguenther@suse.de>
30273
30274         PR tree-optimization/39120
30275         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
30276         as a representative.
30277         (solve_graph): Do propagate CALLUSED.
30278         (handle_pure_call): Use a scalar constraint from CALLUSED for
30279         the return value.
30280         (find_what_p_points_to): CALLUSED shall not appear in poins-to
30281         solutions.
30282
30283 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30284
30285         PR c/39323
30286         * c-common.c (handle_aligned_attribute): Properly check alignment
30287         overflow.  Use (1U << i) instead of (1 << i).
30288
30289         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
30290
30291         * expr.h (get_mem_align_offset): Updated.
30292
30293         * tree.h (tree_decl_common): Change align to "unsigned int" and
30294         move it before pointer_alias_set.
30295
30296 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30297             Jakub Jelinek  <jakub@redhat.com>
30298
30299         PR target/38034
30300         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
30301         gr_register_operand with gr_reg_or_0_operand.
30302         (cmpxchg_rel_di): Likewise.
30303         (sync_lock_test_and_set<mode>): Likewise.
30304
30305 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30306
30307         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
30308         (true_regnum): Likewise.
30309
30310         * rtlanal.c (subreg_info): Moved to ...
30311         * rtl.h (subreg_info): Here.  New.
30312         (subreg_get_info): New.
30313
30314         * rtlanal.c (subreg_get_info): Make it extern.
30315
30316 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30317
30318         PR target/39472
30319         * config/i386/i386.c (ix86_abi): New.
30320         (override_options): Handle -mabi=.
30321         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
30322         (ix86_call_abi_override): Likewise.
30323         (init_cumulative_args): Likewise.
30324         (function_arg_advance): Likewise.
30325         (function_arg_64): Likewise.
30326         (function_arg): Likewise.
30327         (ix86_pass_by_reference): Likewise.
30328         (ix86_function_value_regno_p): Likewise.
30329         (ix86_build_builtin_va_list_abi): Likewise.
30330         (setup_incoming_varargs_64): Likewise.
30331         (is_va_list_char_pointer): Likewise.
30332         (ix86_init_machine_status): Likewise.
30333         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
30334         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
30335         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
30336         (ix86_function_abi): Make it static and return enum calling_abi.
30337         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
30338         with ix86_abi.
30339         (ix86_fn_abi_va_list): Updated.
30340
30341         * config/i386/i386.h (ix86_abi): New.
30342         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
30343         (CONDITIONAL_REGISTER_USAGE): Likewise.
30344         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
30345         (machine_function): Likewise.
30346
30347         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
30348         with ix86_abi.
30349         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
30350         (STACK_BOUNDARY): Likewise.
30351         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
30352
30353         * config/i386/i386.opt (mabi=): New.
30354
30355         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
30356         return enum calling_abi.
30357         (ix86_function_type_abi): Likewise.
30358         (ix86_function_abi): Removed.
30359
30360         * doc/invoke.texi: Document -mabi= option for x86.
30361
30362 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30363
30364         * builtins.c (real_dconstp): Delete.
30365         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
30366
30367 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
30368             Jakub Jelinek  <jakub@redhat.com>
30369
30370         PR debug/37959
30371         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
30372         (gen_subprogram_die): When a function is explicit, generate the
30373         DW_AT_explicit attribute.
30374         * langhooks.h (struct lang_hooks_for_decls): Add
30375         function_decl_explicit_p langhook.
30376         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
30377         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
30378
30379 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
30380
30381         * builtins.c (fold_builtin_memory_op): Optimize memmove
30382         into memcpy if we can prove source and destination don't overlap.
30383
30384         * tree-inline.c: Include gt-tree-inline.h.
30385         (clone_fn_id_num): New variable.
30386         (clone_function_name): New function.
30387         (tree_function_versioning): Use it.
30388         * Makefile.in (GTFILES): Add tree-inline.c.
30389
30390 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
30391
30392         * BASE-VER: Change to 4.5.0.
30393
30394 2009-03-27  Xinliang David Li  <davidxl@google.com>
30395
30396         PR tree-optimization/39557
30397         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
30398
30399 2009-03-27  Xinliang David Li  <davidxl@google.com>
30400
30401         PR tree-optimization/39548
30402         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
30403         candidate check.
30404
30405 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30406
30407         * c-common.c (pointer_int_sum): Use %wd on return from
30408         tree_low_cst.
30409
30410 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30411
30412         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
30413         on return from tree_low_cst.
30414
30415 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30416
30417         PR c++/36799
30418         * ginclude/stdarg.h (va_copy): Define also for
30419         __GXX_EXPERIMENTAL_CXX0X__.
30420
30421 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
30422
30423         PR c++/35652
30424         * builtins.h (c_strlen): Do not warn here.
30425         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
30426         * c-common.c (pointer_int_sum): Take an explicit location.
30427         Warn about offsets out of bounds.
30428         * c-common.h (pointer_int_sum): Adjust declaration.
30429
30430 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30431
30432         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
30433         markup glitch.
30434
30435 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
30436
30437         PR c++/39554
30438         * opts.c (warn_if_disallowed_function_p): Don't assume
30439         get_callee_fndecl must return non-NULL.
30440
30441 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
30442
30443         PR rtl-optimization/39522
30444         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
30445         when reg_reloaded_valid is set.
30446
30447 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30448
30449         * config/spu/divv2df3.c: New file.
30450         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
30451         (DPBIT_FUNCS): Filter out _div_df.
30452
30453 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
30454
30455         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
30456         a jump insn, count that jump in the distance to the loop start.
30457
30458 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30459
30460         PR target/39523
30461         * config/sh/sh.c (calc_live_regs): Fix condition for global
30462         registers except PIC_OFFSET_TABLE_REGNUM.
30463
30464 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
30465
30466         PR/39518
30467         * doc/invoke.texi (-mconsole): New.
30468         (-mcygwin): New.
30469         (-mno-cygwin): New.
30470         (-mdll): New.
30471         (-mnop-fun-dllimport): New.
30472         (-mthread): New.
30473         (-mwin32): New.
30474         (-mwindows): New.
30475         (sub section "i386 and x86-64 Windows Options"): New.
30476
30477 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
30478
30479         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
30480         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
30481
30482 2009-03-25  Richard Guenther  <rguenther@suse.de>
30483
30484         PR middle-end/39497
30485         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
30486         of -Wno-error.
30487
30488 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
30489
30490         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
30491         neither of haifa/selective schedulers are working.
30492
30493 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30494
30495         * doc/invoke.texi (Debugging Options): Fix description of
30496         -fno-merge-debug-strings.
30497
30498 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
30499
30500         * config/cris/libgcc.ver: New version-script.
30501         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
30502
30503         * configure.ac <GAS features, nop mnemonic>: Add pattern
30504         crisv32-*-* for "nop".
30505         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
30506         * configure: Regenerate.
30507
30508 2009-03-24  Ira Rosen  <irar@il.ibm.com>
30509
30510         PR tree-optimization/39529
30511         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
30512         mark_sym_for_renaming for the tag copied to the new vector
30513         pointer.
30514
30515 2009-03-24  Arthur Loiret  <aloiret@debian.org>
30516
30517         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
30518         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
30519         EXTRA_SPEC_FUNCTIONS.
30520         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
30521         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
30522         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
30523         -march and -mtune options.
30524
30525 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
30526
30527         * config/m68k/t-rtems: Add m5329 multilib.
30528
30529 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
30530             Jakub Jelinek  <jakub@redhat.com>
30531
30532         PR debug/39524
30533         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
30534         nodes.
30535
30536 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30537
30538         PR c/39495
30539         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
30540         instead of c_parser_expression_conv, if original_code isn't one of the
30541         4 allowed comparison codes, fail.
30542
30543 2009-03-23  Richard Guenther  <rguenther@suse.de>
30544
30545         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
30546         * tree.h (struct tree_type): Likewise.
30547         * reload.h (struct insn_chain): Likewise.
30548         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
30549         * function.h (struct function): Likewise.
30550         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
30551
30552 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30553
30554         PR tree-optimization/39516
30555         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
30556
30557 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
30558
30559         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
30560         should be set true if BITS_PER_WORD of target is bigger than 32
30561
30562 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
30563
30564         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
30565         Translate -B-options to -rpath-link.  Correct existing
30566         rpath-link and conditionalize on !nostdlib.
30567
30568 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30569
30570         * doc/extend.texi (Function Attributes, Variable Attributes):
30571         Fix typos.
30572         * doc/invoke.texi (Debugging Options, Optimize Options)
30573         (i386 and x86-64 Options, MCore Options): Likewise.
30574
30575 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
30576
30577         PR debug/37890
30578         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
30579         it for block local namespace aliases.
30580         (gen_decl_die): Pass context_die to gen_namespace_die.
30581
30582 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30583
30584         PR c/39495
30585         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
30586         minimum or maximum value.
30587
30588 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
30589
30590         * reginfo.c (globalize_reg): Recompute derived reg sets.
30591
30592 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
30593
30594         PR target/39063
30595         * libgcc2.c (mprotect): Do not use signed arguments for
30596         VirtualProtect, use DWORD arguments.  Also fix the 'may
30597         be used uninitialized' warning for the np variable.
30598
30599 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30600
30601         PR target/39496
30602         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
30603         functions using regparm calling conventions when not optimizing.
30604         (ix86_function_sseregparm): Similarly for sseregparm calling
30605         conventions.
30606
30607 2009-03-19  Li Feng  <nemokingdom@gmail.com>
30608
30609         PR middle-end/39500
30610         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
30611         dependence if the first conflict is after niter iterations.
30612
30613 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
30614
30615         PR middle-end/38609
30616         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
30617         functions with dynamic stack-pointer adjustments.
30618
30619 2009-03-19  Ben Elliston  <bje@au.ibm.com>
30620
30621         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
30622         option; change to -msdata=data.
30623
30624 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30625
30626         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
30627         and -fopenmp.
30628
30629 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30630
30631         PR target/35180
30632         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
30633
30634 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
30635
30636         * doc/invoke.texi (Code Gen Options): Expand discussion of
30637         -fno-common.
30638
30639 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
30640
30641         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
30642         * matrix-reorg.c (struct matrix_info): Likewise.
30643         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
30644         * rtl.h (struct mem_attrs): Likewise.
30645         * df.h (struct df): Likewise.
30646         * tree-data-ref.h (struct data_dependence_relation): Likewise.
30647         * ira-int.h (struct ira_allocno): Likewise.
30648         * df-scan.c (struct df_collection_rec): Likewise.
30649         * ira.c (struct equivalence): Likewise.
30650         * function.c (struct temp_slot): Likewise.
30651         * cfgloop.h (struct loop): Likewise.
30652
30653         PR debug/39485
30654         * function.c (use_register_for_decl): When not optimizing, disregard
30655         register keyword for variables with types containing methods.
30656
30657 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
30658
30659         PR middle-end/39447
30660         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
30661         (is_simple_operand): Call contains_component_ref_p before calling data
30662         reference analysis that would fail on COMPONENT_REFs.
30663
30664         * tree-vrp.c (search_for_addr_array): Fix formatting.
30665
30666 2009-03-18  Richard Guenther  <rguenther@suse.de>
30667
30668         * tree-vect-transform.c (vect_loop_versioning): Fold the
30669         generated comparisons.
30670         * tree-vectorizer.c (set_prologue_iterations): Likewise.
30671         (slpeel_tree_peel_loop_to_edge): Likewise.
30672
30673 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30674
30675         PR middle-end/37805
30676         * opts.c (print_specific_help): In addition to `undocumented',
30677         accept `separate' and `joined' flags if passed alone.  Describe
30678         output by the first matched one of those.
30679         (common_handle_option): Skip over empty strings.
30680         * gcc.c (display_help): Fix help string for `--help='.
30681         * doc/invoke.texi (Option Summary, Overall Options): With
30682         `--help=', classes and qualifiers can both be repeated, but
30683         only the latter can be negated.  One should not pass only
30684         negated qualifiers.  Fix markup and examples.
30685
30686         Revert
30687         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
30688         PR middle-end/37805
30689         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
30690         and -fhelp=separate.
30691
30692 2009-03-17  Jing Yu  <jingyu@google.com>
30693
30694         PR middle-end/39378
30695         * function.h (struct rtl_data): Move is_thunk from here...
30696         (struct function): ...to here.
30697         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
30698         * varasm.c (assemble_start_function): Change is_thunk from crtl to
30699         cfun.
30700         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
30701         cfun.
30702         (alpha_does_function_need_gp, alpha_start_function): Likewise.
30703         (alpha_output_function_end_prologue): Likewise.
30704         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
30705         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
30706         (rs6000_output_function_epilogue): Likewise.
30707         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
30708
30709 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
30710
30711         PR target/39482
30712         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
30713         from different units in a single alternative.
30714         (*truncdfsf_i387): Ditto.
30715         (*truncxfsf2_mixed): Ditto.
30716         (*truncxfdf2_mixed): Ditto.
30717
30718 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
30719
30720         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
30721         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
30722
30723         PR debug/39474
30724         * tree-ssa-live.c (remove_unused_locals): Don't remove local
30725         unused non-artificial variables when not optimizing.
30726
30727         PR debug/39471
30728         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
30729         DW_TAG_imported_module even if decl is IMPORTED_DECL with
30730         NAMESPACE_DECL in its DECL_INITIAL.
30731
30732         PR middle-end/39443
30733         * optabs.c (set_user_assembler_libfunc): New function.
30734         * expr.h (set_user_assembler_libfunc): New prototype.
30735         * c-common.c: Include libfuncs.h.
30736         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
30737         for memcmp, memset, memcpy, memmove and abort.
30738         * Makefile.in (c-common.o): Depend on libfuncs.h.
30739
30740         PR debug/39412
30741         * dwarf2out.c (gen_inlined_enumeration_type_die,
30742         gen_inlined_structure_type_die, gen_inlined_union_type_die,
30743         gen_tagged_type_instantiation_die): Removed.
30744         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
30745         do nothing.
30746
30747 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
30748
30749         PR testsuite/38526
30750         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
30751         its use.
30752         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
30753         (check-parallel-%): Ditto.
30754         (check-consistency): Ditto.
30755
30756 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
30757
30758         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
30759         local variable rhs by NULL_TREE.
30760
30761 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30762
30763         PR target/39477
30764         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
30765
30766 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30767
30768         PR target/39476
30769         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
30770
30771 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30772
30773         PR target/39473
30774         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
30775         for ms->sysv ABI calls only in 64bit mode.
30776
30777         * config/i386/i386.md (untyped_call): Support 32bit.
30778
30779 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30780
30781         * doc/extend.texi: Replace x86_65 with x86_64.
30782
30783 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
30784
30785         PR tree-optimization/39455
30786         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
30787         mismatches for POINTER_TYPE_P (type).
30788         (number_of_iterations_le): Likewise.
30789
30790 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30791
30792         * config/picochip/picochip.c: Removed profiling support.
30793         * config/picochip/picochip.md: Removed profiling instruction.
30794         * config/picochip/picochip.h: Removed profiling builtin.
30795
30796 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
30797
30798         * doc/install.texi (--with-host-libstdcxx): Document.
30799
30800 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
30801
30802         PR target/34299
30803         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
30804         generate a warning if the function name does not begin with
30805         "__vector" and the function has either the 'signal' or 'interrupt'
30806         attribute, from here to ...
30807         (avr_declare_function_name): ...here. New function.
30808         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
30809         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
30810
30811 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
30812
30813         PR bootstrap/39454
30814         * cse.c (fold_rtx): Don't modify original const_arg1 when
30815         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
30816         separate variable instead.
30817         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
30818         from out of range shift counts.
30819         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
30820
30821 2009-03-13  Catherine Moore  <clm@codesourcery.com>
30822
30823         * config/i386/x-mingw32 (host-mingw32.o): Replace
30824         diagnostic.h with $(DIAGNOSTIC_H).
30825
30826 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
30827
30828         PR target/39431
30829         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
30830         predicate.
30831         * config/i386/sync.md (sync_compare_and_swap<mode>,
30832         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
30833         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
30834         into a register.
30835         (sync_double_compare_and_swapdi_pic,
30836         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
30837         cmpxchg8b_pic_memory_operand instead of just memory_operand.
30838
30839 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30840
30841         PR target/39445
30842         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
30843
30844 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30845
30846         PR target/39327
30847         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
30848         (avx_addsubv4df3): Likewise.
30849         (*avx_addsubv4sf3): Likewise.
30850         (sse3_addsubv4sf3): Likewise.
30851
30852 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30853
30854         PR target/38824
30855         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
30856
30857 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
30858
30859         PR debug/39432
30860         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
30861         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
30862         registers for allocnos created from user-defined variables.
30863
30864 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30865
30866         PR target/39181
30867         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
30868         of non-integer mode as well.
30869
30870 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
30871
30872         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
30873         for functions for which the parameter types are unknown.
30874
30875 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
30876
30877         PR target/39137
30878         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
30879         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
30880         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
30881         * config/i386/i386.c (ix86_local_alignment): For
30882         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
30883         long long variables on the stack to avoid dynamic realignment.
30884         Allow the first argument to be a decl rather than type.
30885         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
30886
30887 2009-03-11  Nick Clifton  <nickc@redhat.com>
30888
30889         PR target/5362
30890         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
30891         options.
30892         Add description to mno-lsim option.
30893         * config/mcore/mcore.h: Remove comment about deprecated m4align
30894         option.
30895         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
30896         * doc/invoke.texi: Add description of mno-lsim and
30897         mstack-increment options.
30898
30899         * config/fr30/fr30.opt: Document the -mno-lsim option.
30900         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
30901         and -mno-lsim options.
30902
30903 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30904
30905         * fold-const.c (fold_comparison): Only call fold_inf_compare
30906         if the mode supports infinities.
30907
30908 2009-03-11  Jason Merrill  <jason@redhat.com>
30909
30910         PR debug/39086
30911         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
30912         end already did.  Notice GIMPLE_CALL modifications of the result.
30913         Don't copy debug information from an ignored decl or a decl from
30914         another function.
30915
30916 2009-03-10  Richard Guenther  <rguenther@suse.de>
30917             Nathan Froyd  <froydnj@codesourcery.com>
30918
30919         PR middle-end/37850
30920         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
30921         (__divMODE3): Likewise.
30922
30923 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
30924
30925         PR tree-optimization/39394
30926         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
30927         DECL_SIZE_UNIT of variable length FIELD_DECLs.
30928
30929 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30930
30931         * recog.c (verfiy_changes): Disallow renaming of hard regs in
30932         inline asms for register asm ("") declarations.
30933
30934 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
30935
30936         * fold-const.c (fold_unary): Fix comment.
30937
30938 2009-03-07  Jan Hubicka  <jh@suse.cz>
30939
30940         PR target/39361
30941         * tree-inline.c (setup_one_parameter): Do replacement of const
30942         argument by constant in SSA form.
30943
30944 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30945
30946         PR middle-end/38028
30947         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
30948         determine alignment passed to assign_stack_local.
30949         (assign_parms_unsplit_complex): Likewise.
30950         * except.c (sjlj_build_landing_pads): Likewise.
30951
30952 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
30953
30954         PR middle-end/39360
30955         * tree-flow.h (add_referenced_var): Return bool instead of void.
30956         * tree-dfa.c (add_referenced_var): Return result of
30957         referenced_var_check_and_insert call.
30958         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
30959         of referenced_var_check_and_insert.
30960
30961         PR debug/39372
30962         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
30963         (gen_variable_die): Emit DW_AT_location on abstract static variable's
30964         DIE, don't emit it if abstract origin already has it.
30965         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
30966         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
30967
30968 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30969
30970         * genpreds.c (needs_variable): Fix parentheses at variable name
30971         detection.
30972         (write_tm_constrs_h): Indent generated code.
30973
30974 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30975
30976         * doc/extend.texi (Function Attributes): Add documentation
30977         for isr attributes.
30978
30979 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
30980
30981         PR debug/39387
30982         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
30983         take locus from its DECL_SOURCE_LOCATION instead of input_location.
30984
30985 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
30986
30987         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
30988         the loop as bad.
30989
30990 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
30991
30992         PR debug/39379
30993         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
30994         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
30995
30996 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
30997
30998         * config/i386/i386.md (R8_REG, R9_REG): New constants.
30999         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
31000         constants instead of magic numbers.
31001         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
31002         (QI_REG_P): Ditto.
31003         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
31004         (x86_64_ms_abi_int_parameter_registers): Ditto.
31005         (x86_64_int_return_registers): Ditto.
31006         (ix86_maybe_switch_abi): Ditto.
31007         (ix86_expand_call): Ditto for clobbered_registers array.
31008         (ix86_hard_regno_mode_ok): Ditto.
31009         (x86_extended_QIreg_mentioned_p): Ditto.
31010
31011 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
31012
31013         PR tree-optimization/39349
31014         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
31015
31016         * combine.c (gen_lowpart_for_combine): Use omode when generating
31017         clobber.
31018
31019 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
31020
31021         PR rtl-optimization/39235
31022         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
31023
31024 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
31025
31026         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
31027
31028 2009-03-04  Richard Guenther  <rguenther@suse.de>
31029
31030         PR tree-optimization/39362
31031         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
31032         that occur in abnormal PHIs should be varying.
31033
31034 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
31035
31036         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
31037         Extend comments.
31038         (simple_iv):  Take loop as an argument instead of statement.
31039         * tree-scalar-evolution.h (simple_iv): Declaration changed.
31040         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
31041         to simple_iv.
31042         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
31043         Ditto.
31044         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
31045         * matrix-reorg.c (analyze_transpose): Ditto.
31046         * tree-data-ref.c (dr_analyze_innermost): Ditto.
31047         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
31048         * tree-predcom.c (ref_at_iteration): Ditto.
31049         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
31050
31051 2009-03-04  Richard Guenther  <rguenther@suse.de>
31052
31053         PR tree-optimization/39358
31054         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
31055         escaped_id and callused_id.
31056         (solve_graph): Likewise.
31057
31058 2009-03-04  Richard Guenther  <rguenther@suse.de>
31059
31060         PR tree-optimization/39339
31061         * tree-sra.c (try_instantiate_multiple_fields): Make it
31062         no longer ICE on the above.
31063
31064 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
31065
31066         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
31067         that fits within Pmode.
31068
31069 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31070
31071         PR middle-end/10109
31072         * tm.texi (LIBCALL_VALUE): Update description.
31073
31074 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31075
31076         PR middle-end/34443
31077         * doc/extend.texi (section): Update description.
31078
31079 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31080
31081         PR middle-end/39345
31082         * tree-inline.c (remapped_type): New.
31083         (can_be_nonlocal): Call remapped_type instead of remap_type.
31084
31085 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31086
31087         PR fortran/39354
31088         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
31089         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
31090
31091 2009-03-03  Richard Guenther  <rguenther@suse.de>
31092
31093         PR middle-end/39272
31094         * tree.c (tree_nonartificial_location): New function.
31095         * tree.h (tree_nonartificial_location): Declare.
31096         * builtins.c (expand_builtin_memory_chk): Provide location
31097         of the call location for artificial function pieces.
31098         (maybe_emit_chk_warning): Likewise.
31099         (maybe_emit_sprintf_chk_warning): Likewise.
31100         (maybe_emit_free_warning): Likewise.
31101         * expr.c (expand_expr_real_1): Likewise.
31102
31103 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31104
31105         PR tree-optimization/39343
31106         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
31107         COMPONENT_REF t has ARRAY_TYPE.
31108
31109 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
31110
31111         PR middle-end/39335
31112         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
31113         when the type precision of the induction variable should be
31114         larger than the type precision of nit.
31115         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
31116         * graphite.c (graphite_loop_normal_form): Same.
31117         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
31118
31119 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31120
31121         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
31122         (*call_1_rex64_ms_sysv): Use named constants instead of magic
31123         numbers to describe clobbered registers.
31124         (*call_value_0_rex64_ms_sysv): Ditto.
31125         * config/i386/mmx.md (mmx_emms): Ditto.
31126         (mmx_femms): Ditto.
31127
31128 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
31129
31130         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
31131         of ABI_64.
31132
31133 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31134
31135         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
31136         (spu_section_type_flags): New function.
31137
31138 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31139
31140         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
31141         reg_class_contents of FLOAT_REGS into a temporary.
31142
31143 2009-03-02  Richard Guenther  <rguenther@suse.de>
31144             Ira Rosen  <irar@il.ibm.com>
31145
31146         PR tree-optimization/39318
31147         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
31148         information to the vectorized statement.
31149
31150 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
31151
31152         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
31153         variable.  Use defined names instead of magic constants for REX SSE
31154         registers.
31155
31156 2009-03-01  Richard Guenther  <rguenther@suse.de>
31157
31158         PR tree-optimization/39331
31159         * omp-low.c (lower_send_shared_vars): Do not receive new
31160         values for the reference of DECL_BY_REFERENCE parms or results.
31161
31162 2009-03-01  Jan Hubicka  <jh@suse.cz>
31163
31164         PR debug/39267
31165         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
31166         BLOCK_NONLOCALIZED_VAR): New macros.
31167         (tree_block): Add nonlocalized_vars.
31168         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
31169         gen_decl_die): Add origin argument.  Allow generation of die with
31170         origin at hand only.
31171         (gen_member_die, gen_type_die_with_usage, force_decl_die,
31172         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
31173         of gen_*.
31174         (gen_block_die): Fix checking for unused blocks.
31175         (process_scope_var): Break out from .... ; work with origins only.
31176         (decls_for_scope) ... here; process nonlocalized list.
31177         (dwarf2out_ignore_block): Look for nonlocalized vars.
31178         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
31179         vars.
31180         (dump_scope_block): Dump them.
31181         * tree-inline.c (remap_decls): Handle nonlocalized vars.
31182         (remap_block): Likewise.
31183         (can_be_nonlocal): New predicate.
31184         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
31185
31186 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31187
31188         * configure: Regenerate.
31189
31190 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31191
31192         * optc-gen.awk: No need to duplicate option flags twice.
31193         Reuse help texts for duplicate options which do not have any.
31194
31195         * gcc.c (display_help): Document --version.
31196
31197         * gcc.c (main): If print_help_list and verbose_flag, ensure
31198         driver output comes before subprocess output.
31199
31200         * optc-gen.awk: Assign all remaining fields to help string,
31201         space-separated, for multi-line help in *.opt.
31202
31203         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
31204         -Wno-pedantic-ms-format is for MinGW targets only.
31205
31206         * doc/options.texi (Option file format): Fix bad indentation,
31207         restoring dropped sentence.
31208
31209 2009-02-28  Jan Hubicka  <jh@suse.cz>
31210
31211         * tree-inline.c (tree_function_versioning): Output debug info.
31212
31213 2009-02-28  Jan Hubicka  <jh@suse.cz>
31214
31215         PR debug/39267
31216         * tree-inline.c (setup_one_parameter): Do not copy propagate
31217         arguments when not optimizing.
31218
31219 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31220
31221         PR target/39327
31222         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31223         (avx_addsubv4df3): Likewise.
31224         (*avx_addsubv4sf3): Likewise.
31225         (sse3_addsubv4sf3): Likewise.
31226         (*avx_addsubv2df3): Likewise.
31227         (sse3_addsubv2df3): Likewise.
31228         (avx_unpckhps256): Correct item selectors.
31229         (avx_unpcklps256): Likewise.
31230         (avx_unpckhpd256): Likewise.
31231         (avx_unpcklpd256): Likewise.
31232
31233 2009-02-28  Jan Hubicka  <jh@suse.cz>
31234
31235         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
31236         static vars.
31237         (copy_arguments_for_versioning): If var is declared don't declare it.
31238         (tree_function_versioning): First setup substitutions and then copy
31239         args.
31240
31241 2009-02-27  Jan Hubicka  <jh@suse.cz>
31242
31243         PR debug/39267
31244         * cgraph.h (varpool_output_debug_info): Remove.
31245         * cgraphunit.c (varpool_output_debug_info): Remove.
31246         * dwarf2out.c (deferred_locations_struct): New struct
31247         (deferred_locations): New type.
31248         (deferred_locations_list): New static var.
31249         (deffer_location): New function.
31250         (gen_variable_die): Use it.
31251         (decls_for_scope): Output info on local static vars.
31252         (dwarf2out_finish): Process deferred locations.
31253         * varpool.c (varpool_output_debug_info): Remove.
31254
31255 2009-02-27  Jan Hubicka  <jh@suse.cz>
31256
31257         PR debug/39267
31258         * tree.h (TREE_PROTECTED): Fix comment.
31259         (BLOCK_HANDLER_BLOCK): Remove.
31260         (struct tree_block): Remove handler_block add body_block.
31261         (inlined_function_outer_scope_p): New.
31262         (is_body_block): Remove.
31263         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
31264         * dwarf2out.c (is_inlined_entry_point): Remove.
31265         (add_high_low_attributes): Use inlined_function_outer_scope_p.
31266         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
31267         code.
31268         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
31269         * gimplify.c (gimplify_expr): Gimplify body blocks.
31270         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
31271         block with multiple subblocks.
31272         (dump_scope_block): Prettier output; dump more flags and info.
31273         (dump_scope_blocks): New.
31274         (remove_unused_locals): Use dump_scope_blocks.
31275         * tree-flow.h (dump_scope_blocks): Declare.
31276         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
31277         * stmt.c (is_body_block): Remove.
31278         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
31279         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
31280
31281 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
31282
31283         PR middle-end/39308
31284         * graphite.c (graphite_loop_normal_form): Do not call
31285         number_of_iterations_exit from a gcc_assert.
31286
31287 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31288
31289         * config/s390/s390.c (s390_swap_cmp): Look for conditional
31290         jumps if COND is NULL.
31291         (find_cond_jump): New function.
31292         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
31293         * config/s390/s390.md: Remove z10_cobra attribute value.
31294
31295 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
31296
31297         * config/alpha/alpha.h (alpha_expand_mov): Return false if
31298         force_const_mem returns NULL_RTX.
31299
31300 2009-02-26  Jan Hubicka  <jh@suse.cz>
31301
31302         PR debug/39267
31303         * cgraph.h (varpool_output_debug_info): Remove.
31304         * cgraphunit.c (varpool_output_debug_info): Remove.
31305         * dwarf2out.c (deferred_locations_struct): New struct
31306         (deferred_locations): New type.
31307         (deferred_locations_list): New static var.
31308         (deffer_location): New function.
31309         (gen_variable_die): Use it.
31310         (decls_for_scope): Output info on local static vars.
31311         (dwarf2out_finish): Process deferred locations.
31312         * varpool.c (varpool_output_debug_info): Remove.
31313
31314 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31315
31316         PR rtl-optimization/39241
31317         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
31318         to subreg_offset_representable_p.
31319
31320 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31321
31322         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
31323         execute function prototype.  Get f and nregs from max_reg_num
31324         and get_insns.  Remove the first backward pass as it's dead,
31325         guard the forward pass by flag_expensive_optimizations.
31326         (rest_of_handle_regmove): Delete.
31327         (pass_regmove): Replace it with regmove_optimize.
31328
31329 2009-02-25  Martin Jambor  <mjambor@suse.cz>
31330
31331         PR tree-optimization/39259
31332         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
31333         calls_alloca function flags.
31334         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
31335         calls are detected.
31336
31337 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31338
31339         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
31340         flags_set_1_rtx, flags_set_1_set): Delete.
31341         (regmove_optimize): Do not call mark_flags_life_zones.
31342
31343 2009-02-24  Julian Brown  <julian@codesourcery.com>
31344
31345         PR target/35965
31346         * config/arm/arm.c (require_pic_register): Only set
31347         cfun->machine->pic_reg once per function.
31348
31349 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
31350
31351         * doc/invoke.texi (Link Options): Document an easier way to pass
31352         options that take arguments to the GNU linker using -Xlinker and -Wl.
31353
31354 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
31355
31356         PR target/33785
31357         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
31358
31359 2009-02-24  Richard Guenther  <rguenther@suse.de>
31360
31361         PR debug/39285
31362         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
31363
31364 2009-02-24  Richard Guenther  <rguenther@suse.de>
31365             Zdenek Dvorak  <ook@ucw.cz>
31366
31367         PR tree-optimization/39233
31368         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
31369         from converting them to a generic type.
31370
31371 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
31372
31373         PR tree-optimization/39260
31374         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
31375         contains a condition with a real type.
31376         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
31377
31378 2009-02-23  Jason Merrill  <jason@redhat.com>
31379
31380         PR c++/38880
31381         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
31382         narrowing_initializer_constant_valid_p.
31383         (narrowing_initializer_constant_valid_p): Don't return
31384         null_pointer_node for adding a pointer to itself.
31385
31386 2009-02-23  Jan Hubicka  <jh@suse.cz>
31387
31388         PR c/12245
31389         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
31390         resizing.
31391
31392 2009-02-23  Jan Hubicka  <jh@suse.cz>
31393
31394         PR tree-optimization/37709
31395         * tree.c (block_ultimate_origin): Move here from dwarf2out.
31396         * tree.h (block_ultimate_origin): Declare.
31397         * dwarf2out.c (block_ultimate_origin): Move to tree.c
31398         * tree-ssa-live.c (remove_unused_scope_block_p):
31399         Eliminate blocks containig no instructions nor live variables nor
31400         nested blocks.
31401         (dump_scope_block): New function.
31402         (remove_unused_locals): Enable removal of dead blocks by default;
31403         enable dumping at TDF_DETAILS.
31404
31405 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31406
31407         * config/i386/i386.c (classify_argument): Don't allow COImode
31408         and OImode.
31409         (function_arg_advance_32): Don't allow OImode.
31410         (function_arg_32): Likewise.
31411         (function_value_32): Likewise.
31412         (return_in_memory_32): Likewise.
31413         (function_arg_64): Remove OImode comment.
31414
31415 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31416
31417         PR target/39261
31418         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
31419         ix86_expand_vector_set for V4DImode in 64bit mode only.
31420         (ix86_expand_vector_init_one_var): Likewise.
31421
31422 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
31423
31424         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
31425
31426 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31427
31428         PR bootstrap/39257
31429         * loop-iv.c: Revert last change.
31430         * emit-rtl.c: Likewise.
31431
31432 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31433
31434         PR target/39256
31435         * config/i386/i386.c (type_natural_mode): Remove an extra
31436         space in the warning message.
31437         (function_value_32): Handle 32-byte vector modes.
31438         (return_in_memory_32): Likewise.
31439
31440 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31441
31442         * loop-iv.c (truncate_value): New function.
31443         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
31444         of lowpart_subreg.
31445         (lowpart_subreg): Move to...
31446         * emit-rtl.c: ...here.
31447
31448 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
31449
31450         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
31451         accidental and undocumented change at revision 140860.
31452
31453 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
31454
31455         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
31456         take gimple_seq * arguments.
31457         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
31458         types_compatible_p langhook.
31459
31460 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
31461             Joseph Myers  <joseph@codesourcery.com>
31462
31463         * config/arm/arm.c (arm_builtin_va_list): New function.
31464         (arm_expand_builtin_va_start): Likewise.
31465         (arm_gimplify_va_arg_expr): Likewise.
31466         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
31467         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
31468         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
31469         (va_list_type): New variable.
31470         (arm_mangle_type): Mangle va_list_type appropriately.
31471
31472 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31473
31474         PR middle-end/39157
31475         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
31476         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
31477         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
31478         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
31479         parameter to 1000 for -O1 by default.
31480         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
31481         parameter.
31482         * loop-invariant.c: Include params.h.
31483         (move_loop_invariants): Don't call move_single_loop_invariants on
31484         very large loops.
31485
31486 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
31487
31488         * calls.c (emit_library_call_value_1): Use slot_offset instead of
31489         offset when calculating bounds for indexing stack_usage_map.  Fixes
31490         a buffer overflow with certain target setups.
31491
31492 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31493
31494         PR target/39240
31495         * calls.c (expand_call): Clear try_tail_call if caller and callee
31496         disagree in promotion of function return value.
31497
31498 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
31499
31500         PR target/39175
31501         * c-common.c (c_determine_visibility): If visibility changed and
31502         DECL_RTL has been already set, call make_decl_rtl to update symbol
31503         flags.
31504
31505 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
31506
31507         PR c++/39188
31508         * varasm.c (assemble_variable): Don't check DECL_NAME when
31509         globalizing a variable.
31510
31511 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
31512
31513         PR c/38483
31514         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
31515         expression before any __builtin_trap call.
31516         * c-typeck.c (build_function_call): Convert and check function
31517         arguments before generating a call to a trap.  Evaluate the
31518         function arguments before the trap.
31519
31520 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
31521
31522         PR target/39228
31523         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
31524         (UNSPEC_FXAM_MEM): New unspec.
31525         (fxam<mode>2_i387_with_temp): New insn and split pattern.
31526         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
31527         memory using fxam<mode>2_i387_with_temp to remove excess precision.
31528
31529 2009-02-19  Richard Guenther  <rguenther@suse.de>
31530
31531         PR tree-optimization/39207
31532         PR tree-optimization/39074
31533         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
31534         storedanything_tree): New.
31535         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
31536         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
31537         (build_succ_graph): Add edges from STOREDANYTHING to all
31538         non-direct nodes.
31539         (init_base_vars): Initialize STOREDANYTHING.
31540         (compute_points_to_sets): Free substitution info after
31541         building the succ graph.
31542         (ipa_pta_execute): Likewise.
31543
31544         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
31545         field.
31546         (do_ds_constraint): Do not add to special var or non-pointer
31547         field solutions.
31548         (type_could_have_pointers): Split out from ...
31549         (could_have_pointers): ... here.  For arrays use the element type.
31550         (create_variable_info_for): Initialize may_have_pointers.
31551         (new_var_info): Likewise.
31552         (handle_lhs_call): Make the HEAP variable unknown-sized.
31553         (intra_create_variable_infos): Use a type with pointers for
31554         PARM_NOALIAS, make it unknown-sized.
31555
31556 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
31557
31558         PR target/39224
31559         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
31560
31561 2009-02-18  Jason Merrill  <jason@redhat.com>
31562
31563         PR target/39179
31564         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
31565         value if DECL_EXTERNAL.
31566         * tree-sra.c (sra_walk_gimple_assign): Likewise.
31567         * target.h (gcc_target::binds_local_p): Clarify "module".
31568         * tree.h (TREE_PUBLIC): Clarify "module".
31569
31570 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
31571
31572         PR target/38891
31573         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
31574         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
31575
31576 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
31577
31578         PR target/39082
31579         * c.opt (Wabi): Support C and ObjC.
31580         (Wpsabi): New.
31581
31582         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
31583
31584         * config/i386/i386.c (classify_argument): Warn once about the ABI
31585         change when passing union with long double.
31586
31587         * doc/invoke.texi: Update -Wabi for warning psABI changes.
31588
31589 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
31590
31591         PR c/35447
31592         * c-parser.c (c_parser_compound_statement): Always enter and leave
31593         a scope.
31594
31595 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31596
31597         PR target/34587
31598         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
31599
31600 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
31601
31602         PR tree-optimization/36922
31603         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
31604         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
31605         Likewise.
31606
31607 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31608
31609         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
31610         to 0 for EABI64.
31611
31612 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31613
31614         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
31615
31616 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31617
31618         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
31619         tree sharing.
31620
31621 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
31622             Richard Sandiford  <rdsandiford@googlemail.com>
31623
31624         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
31625         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
31626         (loongson_biadd): ...this.
31627
31628 2009-02-17  Richard Guenther  <rguenther@suse.de>
31629
31630         PR tree-optimization/39202
31631         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
31632         a var make sure to follow existing collapses.
31633
31634 2009-02-17  Richard Guenther  <rguenther@suse.de>
31635
31636         PR middle-end/39214
31637         * langhooks.c (lhd_print_error_function): Check for NULL block.
31638
31639 2009-02-17  Richard Guenther  <rguenther@suse.de>
31640
31641         PR tree-optimization/39204
31642         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
31643         of the PHI arg.
31644
31645 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
31646
31647         * config/soft-fp/double.h: Update from glibc CVS.
31648
31649 2009-02-17  Richard Guenther  <rguenther@suse.de>
31650
31651         PR tree-optimization/39207
31652         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
31653         strict-aliasing warnings for pointers pointing to NULL.
31654
31655 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
31656
31657         PR c/35446
31658         * c-parser.c (c_parser_braced_init): Call pop_init_level when
31659         skipping until next close brace.
31660
31661 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
31662
31663         PR target/37049
31664         * config/i386/i386.c (ix86_expand_push): Set memory alignment
31665         to function argument boundary.
31666
31667 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
31668
31669         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
31670         in the lea_add. Reload eventually constraints it properly.
31671         * config/picochip/constraints.md: Remove the target constraint
31672         "b", since it is not needed anymore.
31673
31674 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
31675
31676         * gthr-dce.h: Uglify function parameter and local variable names.
31677         * gthr-gnat.h: Likewise.
31678         * gthr-mipssde.h: Likewise.
31679         * gthr-nks.h: Likewise.
31680         * gthr-posix95.h: Likewise.
31681         * gthr-posix.h: Likewise.
31682         * gthr-rtems.h: Likewise.
31683         * gthr-single.h: Likewise.
31684         * gthr-solaris.h: Likewise.
31685         * gthr-tpf.h: Likewise.
31686         * gthr-vxworks.h: Likewise.
31687         * gthr-win32.h: Likewise.
31688
31689 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
31690
31691         PR target/39196
31692         * config/i386/i386.md: Restrict the new peephole2 to move
31693         between MMX/SSE registers.
31694
31695 2009-02-15  Richard Guenther  <rguenther@suse.de>
31696
31697         Revert
31698         2009-02-13  Richard Guenther  <rguenther@suse.de>
31699
31700         * configure.ac: Enable LFS.
31701         * configure: Re-generate.
31702         * config.in: Likewise.
31703
31704 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31705
31706         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
31707         spu_srqwbyte, spu_srqwbytebc): Define.
31708         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
31709         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
31710         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
31711         "shrqby_<mode>"): New insn-and-split patterns.
31712         * config/spu/spu.c (expand_builtin_args): Determine and return
31713         number of operands using spu_builtin_description data.
31714         (spu_expand_builtin_1): Use it.
31715
31716 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
31717
31718         PR target/38056
31719         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
31720         TARGET_CONST_GP.
31721
31722 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31723
31724         PR target/39149
31725         * config/i386/i386.c (override_options): Correct warning
31726         messages for -malign-loops, -malign-jumps and -malign-functions.
31727
31728 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31729
31730         PR target/39152
31731         * config/i386/i386.md: Restrict the new peephole2 to move
31732         between the general purpose registers.
31733
31734 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31735
31736         PR target/39162
31737         * config/i386/i386.c (type_natural_mode): Add a new argument.
31738         Return the original mode and warn ABI change if vector size is 32byte.
31739         (function_arg_advance): Updated.
31740         (function_arg): Likewise.
31741         (ix86_function_value): Likewise.
31742         (ix86_return_in_memory): Likewise.
31743         (ix86_sol10_return_in_memory): Likewise.
31744         (ix86_gimplify_va_arg): Likewise.
31745         (function_arg_32): Don't warn ABX ABI change here.
31746         (function_arg_64): Likewise.
31747
31748 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
31749
31750         * loop-iv.c (implies_p): In the final case, test that operands 0
31751         of the two comparisons match.
31752
31753         * config/bfin/bfin.c (find_prev_insn_start): New function.
31754         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
31755         (find_next_insn_start): Move.
31756
31757 2009-02-13  Richard Guenther  <rguenther@suse.de>
31758
31759         * configure.ac: Enable LFS.
31760         * configure: Re-generate.
31761         * config.in: Likewise.
31762
31763 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
31764
31765         PR c/35444
31766         * c-parser.c (c_parser_parms_list_declarator): Discard pending
31767         sizes on syntax error after some arguments have been parsed.
31768
31769 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31770
31771         * doc/invoke.texi (-fira): Remove.
31772
31773 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31774
31775         * caller-save.c: Replace regclass.c with reginfo.c in comments.
31776         * recog.c: Likewise.
31777         * rtl.h: Likewise.
31778
31779 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
31780
31781         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
31782         (umul_ppmm): Likewise.
31783         (count_leading_zeros): Likewise.
31784         (count_trailing_zeros): Likewise.
31785         (UMUL_TIME): Likewise.
31786
31787 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31788
31789         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
31790         soft-fp/t-softfp to tmake_file.
31791
31792         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
31793         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
31794         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
31795         IA64_BUILTIN_INFQ]: New.
31796         (ia64_init_builtins): Initialize __builtin_infq,
31797         __builtin_fabsq and __builtin_copysignq if not HPUX.
31798         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
31799         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
31800
31801         * config/ia64/lib1funcs.asm (__divtf3): Define only if
31802         SHARED is defined.
31803         (__fixtfti): Likewise.
31804         (__fixunstfti): Likewise.
31805         (__floattitf): Likewise.
31806
31807         * config/ia64/libgcc-glibc.ver: New.
31808         * config/ia64/t-fprules-softfp: Likewise.
31809         * config/ia64/sfp-machine.h: Likewise.
31810
31811         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
31812         (LIBGCC2_TF_CEXT): Likewise.
31813         (TF_SIZE): Likewise.
31814         (TARGET_INIT_LIBFUNCS): Likewise.
31815
31816         * config/ia64/t-glibc (SHLINB_MAPFILES):
31817         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
31818
31819 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31820
31821         * config/i386/i386.c (construct_container): Rewrite processing
31822         BLKmode with X86_64_SSE_CLASS.
31823
31824 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
31825
31826         PR target/39152
31827         * config/i386/i386.md: Replace simplify_replace_rtx with
31828         replace_rtx in the new peephole2.
31829
31830 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
31831
31832         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
31833         loop unrolling do not happen at -O2.
31834
31835 2009-02-12  Michael Matz  <matz@suse.de>
31836
31837         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
31838
31839 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31840
31841         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
31842         for -g3.
31843
31844 2009-02-12  Ben Elliston  <bje@au.ibm.com>
31845
31846         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
31847         patterns when updating the back chain.  Missed in the 2009-02-10
31848         change.
31849
31850 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
31851
31852         * doc/extend.texi (Decimal Floating Types): Update identifier of
31853         draft TR and list of missing support.
31854
31855 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
31856
31857         PR middle-end/39154
31858         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
31859         bit to variable length decl's flags, add it also to its
31860         pointer replacement variable.
31861
31862 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
31863             Jakub Jelinek  <jakub@redhat.com>
31864
31865         PR target/39118
31866         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
31867         (memory_blockage): New expander.
31868         (*memory_blockage): New insn pattern.
31869         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
31870         instead of general blockage at the end of function prologue when
31871         frame pointer is used to access red zone area.  Do not emit blockage
31872         when profiling, it is emitted in generic code.
31873         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
31874         function epilogue when frame pointer is used to access red zone area.
31875
31876 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
31877
31878         PR target/38824
31879         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
31880         by arithmetic with memory operands.
31881         * config/i386/predicates.md (commutative_operator): New.
31882
31883 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
31884
31885         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
31886         bulleted lists.
31887
31888 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
31889
31890         * alias.h (record_alias_subset): Declare.
31891         * alias.c (record_alias_subset): Make global.
31892
31893 2009-02-10  Nick Clifton  <nickc@redhat.com>
31894
31895         * tree-parloops.c: Change license to GPLv3.
31896         * ipa-struct-reorg.c: Change license to GPLv3.
31897         * ipa-struct-reorg.h: Change license to GPLv3.
31898
31899 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
31900
31901         PR c/39084
31902         * c-decl.c (start_struct): Return NULL on error.
31903
31904 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
31905
31906         PR middle-end/39124
31907         * cfgloopmanip.c (remove_path): Call remove_bbs after
31908         cancel_loop_tree, not before it.
31909
31910         PR target/39139
31911         * function.h (struct function): Add has_local_explicit_reg_vars bit.
31912         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
31913         VAR_DECLs were seen.
31914         * tree-ssa-live.c (remove_unused_locals): Recompute
31915         cfun->has_local_explicit_reg_vars.
31916         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
31917         copies or clearings if cfun->has_local_explicit_reg_vars.
31918
31919 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
31920
31921         PR target/39118
31922         * config/i386/i386.c (expand_prologue): Emit blockage at the end
31923         of function prologue when frame pointer is used to access
31924         red zone area.
31925
31926 2009-02-10  Richard Guenther  <rguenther@suse.de>
31927
31928         PR middle-end/39127
31929         * gimplify.c (gimple_regimplify_operands): Always look if
31930         we need to create a temporary.
31931
31932 2009-02-10  Richard Guenther  <rguenther@suse.de>
31933
31934         PR tree-optimization/39132
31935         * tree-loop-distribution.c (todo): New global var.
31936         (generate_memset_zero): Trigger TODO_rebuild_alias.
31937         (tree_loop_distribution): Return todo.
31938
31939 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
31940
31941         PR target/39119
31942         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
31943         (x86_64_reg_class_name): Removed.
31944         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
31945         first one isn't X86_64_SSE_CLASS or any other ones aren't
31946         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
31947         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
31948         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
31949         and 3 X86_64_SSEUP_CLASS.
31950         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
31951         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
31952
31953 2009-02-10  Ben Elliston  <bje@au.ibm.com>
31954
31955         * config/rs6000/rs6000.md (allocate_stack): Always use an update
31956         form instruction to update the stack back chain word, even if the
31957         user has disabled the generation of update instructions.
31958         (movdi_<mode>_update_stack): New.
31959         (movsi_update_stack): Likewise.
31960         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
31961         always use an update form instruction to update the stack back
31962         chain word.
31963
31964 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
31965
31966         PR middle-end/38953
31967         * graphite.c (if_region_set_false_region): After moving a region in
31968         the false branch of a condition, remove the empty dummy basic block.
31969         (gloog): Remove wrong fix for PR38953.
31970
31971 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31972
31973         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
31974         generation due to implicit sign extension.
31975
31976 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
31977
31978         PR middle-end/38981
31979         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
31980         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
31981
31982 2009-02-09  Richard Guenther  <rguenther@suse.de>
31983
31984         PR middle-end/35202
31985         * convert.c (convert_to_real): Disable (float)fn((double)x)
31986         to fnf(x) conversion if errno differences may occur and
31987         -fmath-errno is set.
31988
31989 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
31990
31991         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
31992         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
31993         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
31994
31995 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
31996
31997         PR c/35434
31998         * c-common.c (handle_alias_attribute): Disallow attribute for
31999         anything not a FUNCTION_DECL or VAR_DECL.
32000
32001 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
32002
32003         PR c/39035
32004         * real.c (do_compare): Special-case compare of zero against
32005         decimal float value.
32006
32007 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
32008
32009         PR c/36432
32010         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
32011         as indicating flexible array members unless the field itself is
32012         being declarared as the incomplete array.
32013
32014 2009-02-06  Jan Hubicka  <jh@suse.cz>
32015
32016         PR tree-optimization/38844
32017         * ipa-inline.c (try_inline): Stop inlining recursion when edge
32018         is already inlined.
32019
32020 2009-02-06  Richard Guenther  <rguenther@suse.de>
32021
32022         PR middle-end/38977
32023         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
32024         fork because we may expand it as __gcov_fork.
32025
32026 2009-02-06  Nick Clifton  <nickc@redhat.com>
32027
32028         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
32029
32030 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
32031
32032         PR tree-optimization/35659
32033         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
32034         vn_phi_eq): Shortcut if hashcode does not match.
32035         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
32036         NULL operands.
32037         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
32038         and avoid iterative_hash_expr.
32039         (FOR_EACH_VALUE_ID_IN_SET): New.
32040         (value_id_compare): Remove.
32041         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
32042         sort expressions by value id.
32043
32044 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
32045
32046         PR target/38991
32047         * config/sh/predicates.md (general_movsrc_operand): Don't check
32048         the subreg of system registers here.
32049
32050 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
32051
32052         PR c++/39106
32053         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
32054         on the copied decl.
32055
32056 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
32057
32058         PR rtl-optimization/39110
32059         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
32060         addresses, not aligned ones.
32061
32062 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
32063             Richard Guenther  <rguenther@suse.de>
32064
32065         PR tree-optimization/39100
32066         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
32067         comment says and add edges.
32068
32069 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
32070
32071         PR c/35435
32072         * c-common.c (handle_tls_model_attribute): Ignore attribute for
32073         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
32074
32075 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
32076
32077         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
32078         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
32079         register_bb_in_sese, new_sese, free_sese): Moved.
32080         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
32081         outermost_loop_in_scop, build_scop_iteration_domain,
32082         expand_scalar_variables_ssa_name, get_vdef_before_scop,
32083         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
32084         Use loop_in_sese_p instead of loop_in_scop_p.
32085         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
32086         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
32087         (scopdet_basic_block_info): Fix bug in scop detection.
32088         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
32089         eq_loop_to_cloog_loop): Remove.
32090         (nb_loops_around_loop_in_scop, nb_loop
32091         ref_nb_loops): Moved here...
32092         * graphite.h (ref_nb_loops): ... from here.
32093         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
32094         (loop_domain_dim, loop_iteration_vector_dim): Remove.
32095         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
32096
32097 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
32098             Hans-Peter Nilsson  <hp@axis.com>
32099
32100         PR rtl-optimization/37889
32101         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
32102         Move offset handling from PLUS to before the switch.  Use new
32103         arguments when considering SYMBOL_REFs too.
32104         (rtx_addr_can_trap_p): Pass dummy offset and size.
32105         (enum may_trap_p_flags): Remove.
32106         (may_trap_p_1): Pass size from MEM_SIZE.
32107
32108         PR rtl-optimization/38921
32109         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
32110         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
32111         * rtlanal.c (may_trap_after_code_motion_p): Delete.
32112         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
32113
32114 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
32115
32116         AVX Programming Reference (January, 2009)
32117         * config/i386/sse.md (*vpclmulqdq): New.
32118
32119 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
32120
32121         PR tree-optimization/38977
32122         PR gcov-profile/38292
32123         * calls.c (special_function_p): Disregard __builtin_ prefix.
32124
32125 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
32126
32127         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
32128         non-indexable addresses even before reload.
32129
32130 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32131
32132         PR c/29129
32133         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
32134         as having variable size.  Do not give an error for unnamed
32135         parameters with [*] declarators.  Give a warning for type names
32136         with [*] declarators and mark them as variable size.
32137         * c-parser.c (c_parser_sizeof_expression): Do not give an error
32138         for sizeof applied to [*] type names.
32139
32140 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32141
32142         PR C++/36607
32143         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
32144
32145 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32146
32147         * gcc.c (process_command): Update copyright notice dates.
32148         * gcov.c (print_version): Likewise.
32149         * gcov-dump.c (print_version): Likewise.
32150         * mips-tfile.c (main): Likewise.
32151         * mips-tdump.c (main): Likewise.
32152
32153 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32154
32155         PR c/35433
32156         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
32157         for composite type involving a zero-length array type.
32158
32159 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32160
32161         PR target/35318
32162         * function.c (match_asm_constraints_1): Skip over
32163         initial optional % in the constraint.
32164
32165         PR inline-asm/39059
32166         * c-parser.c (c_parser_postfix_expression): If fixed point is not
32167         supported, don't accept FIXED_CSTs.
32168         * c-decl.c (finish_declspecs): Error if fixed point is not supported
32169         and _Sat is used without _Fract/_Accum.  Set specs->type to
32170         integer_type_node for cts_fract/cts_accum if fixed point is not
32171         supported.
32172
32173 2009-02-02  Catherine Moore  <clm@codesourcery.com>
32174
32175         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
32176
32177 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32178
32179         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
32180         (ABI_HAS_64BIT_SYMBOLS): Use it.
32181         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
32182
32183 2009-02-02  Paul Brook  <paul@codesourcery.com>
32184
32185         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
32186
32187 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
32188
32189         PR inline-asm/39058
32190         * recog.h (asm_operand_ok): Add constraints argument.
32191         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
32192         recurse on matching constraint.
32193         (check_asm_operands): Pass constraints as 3rd argument to
32194         asm_operand_ok.  Don't look up matching constraint here.
32195         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
32196         to asm_operand_ok.
32197
32198 2009-02-02  Ben Elliston  <bje@au.ibm.com>
32199
32200         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
32201         TARGET_NARROW_VOLATILE_BITFIELD macro names.
32202
32203 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32204
32205         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
32206         information.  Remove some obsolete information.  Reorganize.
32207
32208         * config/pa/fptr.c: Revert license to GPL 2.
32209         * config/pa/milli64.S: Likewise.
32210
32211 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32212
32213         PR target/38904
32214         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
32215         LIBRARY name in, instead of hard-coding it.
32216         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
32217         extra target make frag to tmake_files according to EH model.
32218         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
32219         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
32220         frags that define makefile variable EH_MODEL appropriately.
32221         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
32222         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
32223         to "-sjlj" according to type of EH configured.
32224         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32225         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
32226         to "_sjlj" according to type of EH configured.
32227         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32228         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
32229         (SHLIB_LINK):  Add missing semicolon to if-else construct.
32230         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32231         string value of "pe_dll" command-line option.
32232         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
32233         (SHLIB_SONAME):  Use it when overriding t-cygming default.
32234         (SHLIB_IMPLIB):  Override t-cygming default.
32235         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32236         string value of "pe_dll" command-line option.
32237
32238 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32239
32240         PR target/38952
32241         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
32242         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
32243
32244 2009-01-31  Richard Guenther  <rguenther@suse.de>
32245
32246         PR tree-optimization/38937
32247         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
32248         computing the transitive closure.
32249
32250 2009-01-30  Richard Guenther  <rguenther@suse.de>
32251
32252         PR tree-optimization/39041
32253         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
32254         Propagate variable indices only if the types match for this stmt.
32255
32256 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
32257
32258         PR target/39013
32259         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
32260         inline but never defined.
32261
32262 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
32263
32264         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
32265         (*insv_h_di_reg_extimm): New insn.
32266         (*insv_l<mode>_reg_extimm): New insn.
32267
32268 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32269
32270         * config/picochip/picochip.c (flag_conserve_stack): set
32271         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
32272         fconserve-stack. Reduce call-overhead used by inliner.
32273
32274 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32275
32276         PR/38157
32277         * common.opt (flag_conserve_stack): Initialised to zero.
32278
32279 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
32280
32281         PR/39002
32282         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
32283         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
32284         method.
32285
32286 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
32287
32288         * ira-color.c (allocno_reload_assign): Update comments.
32289         * regmove.c (regmove_optimize): Likewise.
32290
32291         * ra.h: Removed.
32292
32293 2009-01-29  Robert Millan  <rmh@aybabtu.com>
32294
32295         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
32296         * config/i386/kopensolaris-gnu.h: New file.  Undefine
32297         `MD_UNWIND_SUPPORT'.
32298         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
32299
32300 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
32301
32302         PR tree-optimization/39007
32303         * tree-loop-distribution.c (generate_builtin): Use
32304         recompute_dominator to compute the immediate dominator of the
32305         basic block just after the loop.
32306
32307 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32308
32309         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
32310         (ASM_OUTPUT_DWARF_PCREL): Define.
32311
32312 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
32313
32314         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
32315         * doc/passes.texi: Remove entries about regclass, local-alloc, and
32316         global.  Modify entries about regmove and IRA.
32317
32318         * ra-conflict.c: Remove the file.
32319
32320         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
32321
32322         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
32323         (pass_regclass_init): Rename to pass_reginfo_init.
32324
32325         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
32326
32327         * toplev.h (flag_ira): Remove.
32328
32329         * caller-save.c (setup_save_areas): Remove flag_ira.
32330
32331         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
32332
32333         * global.c: Remove the file.
32334
32335         * opts.c (decode_options): Remove flag_ira.
32336
32337         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
32338
32339         * regmove.c: Modify file description.
32340         (find_use_as_address, try_auto_increment): Define them only if
32341         AUTO_INC_DEC is defined.
32342         (replacement_quality, replace_in_call_usage, fixup_match_1,
32343         stable_and_no_regs_but_for_p): Remove.
32344         (reg_set_in_bb): Make it static.
32345         (regmove_optimize): Remove flag_ira and code which worked for
32346         !flag_ira.
32347
32348         * local-alloc.c: Remove the file.
32349
32350         * common.opt (fira): Remove.
32351
32352         * ira.c: Include except.h.
32353         (eliminable_regset): Move from global.c.
32354         (mark_elimination): Ditto.  Remove flag_ira.
32355         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
32356         equiv_mem_modified, validate_equiv_mem_from_store,
32357         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
32358         contains_replace_regs, memref_referenced_p, memref_used_between_p,
32359         no_equiv, recorded_label_ref): Move from local-alloc.c.
32360         (update_equiv_regs): Ditto.  Make it static.
32361         (print_insn_chain, print_insn_chains): Move it from global.c.
32362         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
32363         (build_insn_chain): Ditto.  Make it static.
32364         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
32365         Rename to init_live_subregs.
32366         (gate_ira): Remove flag_ira.
32367
32368         * regclass.c: Rename reginfo.c.  Change file description.
32369         (FORBIDDEN_INC_DEC_CLASSES): Remove.
32370         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
32371         (init_reg_sets_1): Remove code for evaluation of
32372         reg_class_superclasses and losing_caller_save_reg_set.
32373         (init_regs): Remove init_reg_autoinc.
32374         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
32375         ok_for_base_p_nonstrict): Remove.
32376         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
32377         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
32378         corresponding entries.
32379         (dump_regclass, record_operand_costs, scan_one_insn,
32380         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
32381         record_address_regs, auto_inc_dec_reg_p): Remove.
32382         (gt-regclass.h): Rename to gt-reginfo.h.
32383
32384         * rtl.h (dump_global_regs, retry_global_alloc,
32385         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
32386
32387         * Makefile.in (RA_H): Remove.
32388         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
32389         Rename regclass.o to reginfo.o.
32390         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
32391         gt-reginfo.h.
32392         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
32393         (GTFILES): Rename regclass.c to reginfo.c.
32394
32395         * passes.c (init_optimization_passes): Remove pass_local_alloc and
32396         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
32397
32398         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32399         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
32400         Remove flag_ira.
32401         (finish_spills): Ditto.  Remove code for !flag_ira.
32402
32403 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
32404
32405         PR middle-end/35854
32406         * doc/invoke.texi (rtl debug options): Complete rewrite.
32407         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
32408         to auto_inc_dec".
32409         * mode-switching.c (pass_mode_switching): Rename pass from
32410         "mode-sw" to "mode_sw".
32411         * except.c (pass_convert_to_eh_ranges): Rename pass from
32412         "eh-ranges" to "eh_ranges".
32413         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
32414         to "subreg1".
32415
32416
32417 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
32418             Alexander Monakov  <amonakov@ispras.ru>
32419
32420         PR middle-end/38857
32421         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
32422         register.
32423         (move_exprs_to_boundary): Change return type and pass through
32424         should_move from move_op.  Relax assert.  Update usage ...
32425         (schedule_expr_on_boundary): ... here.  Use should_move instead of
32426         cant_move.
32427         (move_op_orig_expr_found): Indicate that insn was disconnected from
32428         stream.
32429         (code_motion_process_successors): Do not call after_merge_succs
32430         callback if original expression was not found when traversing any of
32431         the branches.
32432         (code_motion_path_driver): Change return type.  Update prototype.
32433         (move_op): Update comment.  Add a new parameter (should_move).  Update
32434         prototype.  Set *should_move based on indication provided by
32435         move_op_orig_expr_found.
32436
32437 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
32438
32439         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
32440         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
32441         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
32442         * config/rs6000/rs6000.c (rs6000_override_options): Default
32443         avoid-indexed-addresses on for Power6, off for everything else.
32444         (avoiding_indexed_address_p): New function.
32445         (rs6000_legitimize_address): Use it.
32446         (rs6000_legitimate_address): Likewise.
32447         * config/rs6000/rs6000.md (movXX_updateX): Likewise
32448
32449 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
32450
32451         PR tree-optimization/38997
32452         * tree-loop-distribution.c (generate_memset_zero): Use
32453         POINTER_PLUS_EXPR for a pointer addition.
32454
32455 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
32456
32457         * config/s390/s390.md (bswap<mode>2): New pattern added.
32458
32459 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32460
32461         * config/s390/s390.md (*tls_load_31): Added type attribute.
32462
32463 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32464
32465         * config/s390/s390.md: Fix a few comments.
32466
32467 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32468
32469         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
32470         (*tm<mode>_full): Fixed z10prop attribute.
32471         (*tst<mode>_extimm): Fixed z10prop attribute.
32472         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
32473         (*tstqiCCT_cconly): Fixed z10prop attribute.
32474         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
32475         (*movsi_larl): Fixed z10prop attribute.
32476         (*movsi_zarch): Fixed z10prop attribute.
32477         (*movsi_eas): Fixed z10prop attribute.
32478         (*movhi): Fixed z10prop attribute.
32479         (*movqi): Fixed z10prop attribute.
32480         (*movstrictqi): Fixed z10prop attribute.
32481         (*mov<mode>): Fixed z10prop attribute.
32482         (*movcc): Fixed z10prop attribute.
32483         (*sethighpartdi_64): Fixed z10prop attribute.
32484         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
32485         (*negdi2_sign_cc): Fixed z10prop attribute.
32486         (*negdi2_sign): Fixed z10prop attribute.
32487         (*absdi2_sign_cc): Fixed z10prop attribute.
32488         (*absdi2_sign): Fixed z10prop attribute.
32489         (*negabsdi2_sign_cc): Fixed z10prop attribute.
32490         (*negabsdi2_sign): Fixed z10prop attribute.
32491         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
32492         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
32493         (doloop_si64): Fixed z10prop attribute.
32494         (doloop_si31): Fixed z10prop attribute.
32495         (doloop_long): Fixed z10prop attribute.
32496         (indirect_jump): Fixed z10prop attribute.
32497         (nop): Fixed z10prop attribute.
32498         (main_base_64): Fixed z10prop attribute.
32499         (reload_base_64): Fixed z10prop attribute.
32500
32501 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32502
32503         PR rtl-optimization/38740
32504         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
32505         if !optimize.
32506         * config/mips/mips.c (mips_reorg): Likewise.
32507
32508 2009-01-28  Richard Guenther  <rguenther@suse.de>
32509
32510         PR tree-optimization/38926
32511         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
32512         with the correct value id to a value.
32513         (do_regular_insertion): Use the value number of edoubleprime
32514         for the value number of the expr.
32515
32516         Revert
32517         2008-08-21  Richard Guenther  <rguenther@suse.de>
32518
32519         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
32520         a PHI ask VN if it is already available.
32521         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
32522         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
32523
32524 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32525
32526         PR middle-end/38934
32527         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
32528         set to varying whenever max has TREE_OVERFLOW set, similarly
32529         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
32530
32531 2009-01-28  Richard Guenther  <rguenther@suse.de>
32532
32533         PR middle-end/38908
32534         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
32535         uninitialized aggregate uses in call arguments.
32536
32537 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
32538
32539         PR tree-optimization/38984
32540         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
32541         the nothing_id variable if -fno-delete-null-pointer-checks.
32542
32543 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
32544
32545         PR target/38988
32546         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
32547         (set_got_offset_rex64): Ditto.
32548
32549 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
32550
32551         PR target/38941
32552         * doc/extend.texi: Improve local variable with asm reg.
32553
32554 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
32555
32556         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
32557         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
32558         was not supplied then set warn_packed_bitfield_compat to the
32559         default value of 1.
32560         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
32561         against 1.
32562
32563 2009-01-27  Richard Guenther  <rguenther@suse.de>
32564
32565         PR tree-optimization/38503
32566         * cfgexpand.c (expand_gimple_basic_block): Ignore
32567         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
32568         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
32569         variables that cannot have TBAA applied.
32570         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
32571         statements.
32572
32573 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
32574
32575         PR middle-end/38969
32576         * calls.c (initialize_argument_information): Do not wrap complex
32577         arguments in SAVE_EXPR.
32578
32579 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
32580
32581         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
32582         (INSTALL_LIBGCC): Revert typo commit.
32583
32584 2009-01-26  Richard Guenther  <rguenther@suse.de>
32585
32586         PR tree-optimization/38745
32587         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
32588         from special handling.
32589
32590 2009-01-26  Richard Guenther  <rguenther@suse.de>
32591
32592         PR tree-optimization/38745
32593         * tree-ssa.c (execute_update_addresses_taken): Do not include
32594         variables that cannot possibly be a register in not_reg_needs.
32595         Do not clear TREE_ADDRESSABLE on vars that may not become
32596         registers.
32597         * tree-ssa.c (update_alias_info_1): Include those in the set
32598         of addressable vars.
32599
32600 2009-01-26  Richard Guenther  <rguenther@suse.de>
32601
32602         PR middle-end/38851
32603         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
32604         * tree-ssa-dse.c: Include langhooks.h
32605         (execute_simple_dse): Remove stores with zero size.
32606
32607 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
32608
32609         PR c/38957
32610         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
32611         as PLUS_EXPR.
32612
32613 2009-01-24  Julian Brown  <julian@codesourcery.com>
32614
32615         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
32616         config/arm/linux-atomic.c.
32617         * config/arm/linux-atomic.c: New.
32618
32619 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
32620
32621         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
32622         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
32623         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
32624
32625 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
32626
32627         PR c/38938
32628         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
32629         properly.
32630
32631 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
32632
32633         PR tree-optimization/38953
32634         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
32635         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
32636         (gloog): Split the exit of the scop when the scop exit is a loop exit.
32637         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
32638         changed the CFG.
32639
32640 2009-01-24  Paul Brook  <paul@codesourcery.com>
32641
32642         * config/arm/neon.md (neon_type): Move to arm.md.
32643         (neon_mov<VSTRUCT>): Add neon_type attribute.
32644         * config/arm/arm.md (neon_type): Move to here.
32645         (conds): Add "unconditioal" and use as default for NEON insns.
32646
32647 2009-01-24  Ben Elliston  <bje@au.ibm.com>
32648
32649         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
32650         void *' warning from -Wc++-compat.
32651         * Makefile.in (dominance.o-warn): Remove.
32652
32653 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
32654
32655         PR tree-optimization/38932
32656         * fold-const.c (fold_unary_ignore_overflow): New.
32657         * tree.h (fold_unary_ignore_overflow): Declare.
32658         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
32659         * tree-ssa-sccvn.c (visit_reference_op_load,
32660         simplify_unary_expression): Likewise.
32661
32662 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
32663
32664         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
32665         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
32666         regardless of their type.
32667         * c-common.c (handle_packed_attribute): Don't ignore packed on
32668         bitfields.
32669         * c.opt (Wpacked-bitfield-compat): New warning option.
32670         * stor-layout.c (place_field): Warn if offset of a field changed.
32671         * doc/extend.texi (packed): Mention the ABI change.
32672         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
32673         (Warning Options): Add it to the list.
32674
32675 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
32676
32677         * c-opts.c (c_common_post_options): Fix a typo in comments.
32678
32679 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
32680
32681         PR middle-end/38615
32682         * gimplify.c (gimplify_init_constructor): Fix promotion of const
32683         variables to static.
32684         * doc/invoke.texi (-fmerge-all-constants): Update description.
32685
32686 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
32687
32688         PR target/38931
32689         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
32690         (*movdi_1_rex64): Use type "mmx" for alternative 5.
32691
32692 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
32693
32694         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
32695         a word boundary.
32696         (LOCAL_ALIGNMENT): Similarly.
32697
32698 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32699             Joseph Myers  <joseph@codesourcery.com>
32700
32701         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
32702         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
32703         * config/arm/arm-tune.md: Regenerate.
32704         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
32705         -march=iwmmxt2.
32706
32707 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32708
32709         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
32710         version number to five.
32711
32712 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
32713
32714         PR c++/38930
32715         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
32716         * c-common.c (set_underlying_type): Likewise.
32717         (is_typedef_decl ): Likewise
32718         * tree.h: Likewise
32719         (set_underlying_type): Likewise.
32720         (is_typedef_type): Likewise.
32721
32722 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32723
32724         PR middle-end/38587
32725         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
32726         crossing setjmps.
32727
32728 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
32729
32730         PR bootstrap/37660
32731         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
32732         (LIBGCC_SPEC):  Don't define.
32733         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
32734
32735 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
32736
32737         PR rtl-optimization/38879
32738         * alias.c (base_alias_check): Unaligned access via AND address can
32739         alias all surrounding object types except those with sizes equal
32740         or wider than the size of unaligned access.
32741
32742 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
32743
32744         PR c++/26693
32745         * c-decl.c (clone_underlying_type): Move this ...
32746         * c-common.c (set_underlying_type): ... here.
32747         Also, make sure the function properly sets TYPE_STUB_DECL() on
32748         the newly created typedef variant type.
32749         (is_typedef_decl ): New entry point.
32750         * tree.h: Added a new member member_types_needing_access_check to
32751         struct tree_decl_non_common.
32752         (set_underlying_type): New entry point.
32753         (is_typedef_type): Likewise.
32754
32755 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
32756
32757         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
32758         Check whether two instructions have memory references that
32759         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
32760         are helper functions for traversing.
32761         * alias.h (insn_alias_sets_confilict_p): New prototypes.
32762         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
32763         not to draw dependency edge for instructions with non-conflicting
32764         alias sets.
32765
32766 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
32767
32768         PR other/38758
32769         * longlong.h: Update copyright years.  Use soft-fp license notice.
32770         Sync __clz_tab declaration with glibc.
32771
32772 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
32773
32774         PR target/30687
32775         * doc/extend.texi (syscall_linkage): New.
32776         (version_id): Modify.
32777
32778 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32779             Richard Guenther  <rguenther@suse.de>
32780
32781         PR tree-optimization/38747
32782         PR tree-optimization/38748
32783         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
32784         conversion if the base address is an indirect reference and the
32785         aliasing sets could cause issues.
32786
32787 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32788
32789         * common.opt (fgraphite, fgraphite-identity): Add comment for
32790         explaining why these options are not documented.
32791
32792 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32793
32794         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
32795         gimple_call_lhs is NULL.
32796
32797 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32798
32799         PR target/38868
32800         * emit-rtl.c (adjust_address_1): Make sure memref is never
32801         overwritten.
32802
32803 2009-01-20  Ben Elliston  <bje@au.ibm.com>
32804
32805         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32806         const qualifier from arg parameter. Remove unnecessary cast to char *.
32807         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32808         const qualifier from arg 2.
32809
32810 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32811
32812         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
32813
32814 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
32815
32816         PR c/38869
32817         * rtl.h (reinit_regs): New prototype.
32818         * regclass.c: Include ira.h.
32819         (reinit_regs): New.
32820         * Makefile.in (regclass.o): Add ira.h.
32821         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
32822
32823 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32824
32825         PR target/38736
32826         * c-common.c (handle_aligned_attribute): Use
32827         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
32828         default alignment value.
32829
32830         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
32831
32832         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
32833         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
32834
32835         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
32836         __BIGGEST_ALIGNMENT__.
32837
32838         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
32839
32840 2009-01-18  Richard Guenther  <rguenther@suse.de>
32841
32842         PR tree-optimization/38819
32843         * tree-flow.h (operation_could_trap_helper_p): Declare.
32844         * tree-eh.c (operation_could_trap_helper_p): Export.
32845         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
32846         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
32847         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
32848         are about to insert a possibly trapping instruction and fail
32849         in this case.
32850
32851 2009-01-18  Andreas Schwab  <schwab@suse.de>
32852
32853         * doc/install.texi (Configuration): Remove obsolete paragraph
32854         about use of --with-gnu-ld with --with-gnu-as.
32855
32856 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
32857
32858         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
32859         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
32860         Follow spelling conventions.
32861
32862 2009-01-18  Ben Elliston  <bje@au.ibm.com>
32863
32864         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
32865         C++ warning about implicit conversion from void * to struct
32866         bitmap_head_def *.
32867         (bitmap_obstack_free): Likewise for bitmap_element *.
32868         * Makefile.in (bitmap.o-warn): Remove.
32869
32870 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32871
32872         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
32873
32874 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
32875             Tobias Grosser  <tobi.grosser@amd.com>
32876
32877         * graphite.c (graphite_trans_scop_block): Do not block single
32878         nested loops.
32879
32880 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
32881
32882         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
32883         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
32884         test with assertion.
32885
32886 2009-01-16  Richard Guenther  <rguenther@suse.de>
32887
32888         PR tree-optimization/38835
32889         PR middle-end/36227
32890         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
32891         and INT + PTR -> (INT)(PTR p+ INT) folding.
32892         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
32893
32894 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
32895
32896         PR target/38554
32897         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
32898         the subreg from a lowpart subreg if it is also casting the value.
32899
32900 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
32901             Tobias Grosser  <tobi.grosser@amd.com>
32902
32903         * graphite.c (compare_prefix_loops): New.
32904         (build_scop_canonical_schedules): Rewritten.
32905         (graphite_transform_loops): Move build_scop_canonical_schedules
32906         after build_scop_iteration_domain.
32907
32908 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
32909             Tobias Grosser  <tobi.grosser@amd.com>
32910
32911         * graphite.c (add_conditions_to_domain): Add the loops to
32912         the dimension of the iteration domain.  Do copy the domain
32913         only when it exists.
32914         (build_scop_conditions_1): Do not call add_conditions_to_domain.
32915         (add_conditions_to_constraints): New.
32916         (can_generate_code_stmt, can_generate_code): Removed.
32917         (gloog): Do not call can_generate_code.
32918         (graphite_transform_loops): Call add_conditions_to_constraints
32919         after building the iteration domain.
32920
32921 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
32922
32923         PR tree-optimization/38789
32924         * tree-ssa-threadedge.c
32925         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
32926         __builtin_constant_p.
32927
32928 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
32929
32930         * dce.c (delete_unmarked_insns): Reversed the order that insns are
32931         examined before deleting them.
32932
32933 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
32934
32935         * function.c (aggregate_value_p): Correctly extract the function
32936         type from CALL_EXPR_FN lookup.
32937
32938 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
32939
32940         * config/picochip/picochip.c (picochip_override_options): Revert
32941         CFI asm flag disable commited previously.
32942
32943 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
32944             Tobias Grosser  <tobi.grosser@amd.com>
32945             Jan Sjodin  <jan.sjodin@amd.com>
32946
32947         * graphite.c (scan_tree_for_params): On substractions negate
32948         all the coefficients of the term.
32949         (clast_to_gcc_expression_red): New.  Handle reduction expressions
32950         of more than two operands.
32951         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
32952         (get_vdef_before_scop): Handle also the case of default definitions.
32953
32954 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
32955
32956         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
32957         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
32958         Also use them when walking CALL_INSN_FUNCTION_USAGE.
32959
32960 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
32961             Joey Ye  <joey.ye@intel.com>
32962
32963         PR middle-end/37843
32964         * cfgexpand.c (expand_stack_alignment): Don't update stack
32965         boundary nor check incoming stack boundary here.
32966         (gimple_expand_cfg): Update stack boundary and check incoming
32967         stack boundary here.
32968
32969 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
32970
32971         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
32972
32973 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
32974
32975         PR rtl-optimization/38245
32976         * calls.c (expand_call): Add stack arguments to
32977         CALL_INSN_FUNCTION_USAGE even for pure calls (when
32978         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
32979         in regs and partially in memory or BLKmode arguments.
32980         (emit_library_call_value_1): Add stack arguments to
32981         CALL_INSN_FUNCTION_USAGE even for pure calls (when
32982         ACCUMULATE_OUTGOING_ARGS).
32983         * dce.c: Include tm_p.h.
32984         (find_call_stack_args): New function.
32985         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
32986         argument.
32987         (mark_insn): Call find_call_stack_args for CALL_Ps.
32988         (prescan_insns_for_dce): Walk insns backwards in bb rather than
32989         forwards.  Allocate and free arg_stores bitmap if needed, pass it
32990         down to deletable_insn_p, don't mark stores set in arg_stores
32991         bitmap, clear the bitmap at the beginning of each bb.
32992         * Makefile.in (dce.o): Depend on $(TM_P_H).
32993
32994 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
32995
32996         PR target/22599
32997         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
32998         to make sure the insn is a conditional test (bug 22599).  Reformat a
32999         few long lines.
33000
33001 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
33002
33003         PR middle-end/38431
33004         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
33005         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
33006         (gloog): Do not call cleanup_tree_cfg.
33007         (graphite_transform_loops): Call cleanup_tree_cfg after all
33008         scops have been code generated.
33009
33010 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
33011         * doc/gty.texi (Invoking the garbage collector): Added new node
33012         and section documenting ggc_collect.
33013
33014 2009-01-14  Richard Guenther  <rguenther@suse.de>
33015
33016         PR tree-optimization/38826
33017         PR middle-end/38477
33018         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
33019         initialization notes only if we actually emitted a warning.
33020         (intra_create_variable_infos): Add constraints for a result decl
33021         that is passed by hidden reference.
33022         (build_pred_graph): Mark all related variables non-direct on
33023         address-taking.
33024
33025 2009-01-14  Nick Clifton  <nickc@redhat.com>
33026
33027         * ira-conflicts.c: Include addresses.h for the definition of
33028         base_reg_class.
33029         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
33030         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
33031
33032 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
33033
33034         PR target/38811
33035         * Makefile.in (ira-lives.o): Add except.h.
33036
33037         * ira-lives.c: Include except.h.
33038         (process_bb_node_lives): Process can_throw_internal.
33039
33040 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
33041
33042         PR rtl-optimization/38774
33043         * combine.c (simplify_set): When undoing cc_use change, don't do
33044         PUT_CODE on the newly created comparison, but instead put back the
33045         old comparison.
33046
33047 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
33048
33049         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
33050         values.  Remove duplicate arm8 entry.
33051
33052 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33053
33054         PR tree-optimization/38786
33055         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
33056         the SSA_NAME case of expand_scalar_variables_expr.
33057         Set the type of an expression to the type of its assign statement.
33058         (expand_scalar_variables_expr): Also gather the scalar computation
33059         used to index the memory access.  Do not pass loop_p.
33060         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
33061         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
33062         the gimple_stmt_iterator where it inserts new code.
33063         Do not pass loop_p.
33064         (copy_bb_and_scalar_dependences): Do not pass loop_p.
33065         (translate_clast): Update call to copy_bb_and_scalar_dependences.
33066
33067 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33068
33069         * graphite.h (debug_value): Removed.
33070         * graphite.c (debug_value): Removed.
33071
33072 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33073
33074         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
33075         ldrd/strd with two 32-bit instructions.
33076
33077 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33078
33079         * config/arm/arm.c (struct processors): Pass for speed down into
33080         cost helper functions.
33081         (const_ok_for_op): Handle COMPARE and inequality nodes.
33082         (arm_rtx_costs_1): Rewrite.
33083         (arm_size_rtx_costs): Update prototype.
33084         (arm_rtx_costs): Pass speed down to helper functions.
33085         (arm_slowmul_rtx_costs): Rework cost calculations.
33086         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
33087         (arm_9e_rtx_costs): Likewise.
33088
33089 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
33090
33091         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
33092         relocations of local symbols wider than UNITS_PER_WORD are not valid.
33093         (alpha_legitimize_address): Do not split local symbols wider than
33094         UNITS_PER_WORD into HIGH/LO_SUM parts.
33095
33096 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
33097
33098         PR bootstrap/38580
33099         * gcc.c (process_command): Replace call to execvp with calls
33100         to pex_one and exit.
33101
33102 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
33103
33104         PR target/29141
33105         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
33106         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
33107         variant for devices with 3-byte PC.
33108         (__tablejump_elpm__): New.
33109
33110 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33111
33112         PR c/32041
33113         * c-parser.c (c_parser_postfix_expression): Allow `->' in
33114         offsetof member-designator, handle it as `[0].'.
33115
33116 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33117
33118         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
33119         function when not using named sections on targets with named sections
33120         if branch distance is less than 262132.
33121
33122 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
33123
33124         * combine.c (combine_instructions):  Recompute
33125         optimize_this_for_speed_p  for each BB in the main combine loop.
33126
33127 2009-01-12  Tomas Bily  <tbily@suse.cz>
33128
33129         PR middlend/38385
33130         * tree-loop-distribution.c (prop_phis): New function.
33131         (generate_builtin): Call prop_phis.
33132
33133 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33134
33135         PR tree-optimization/38807
33136         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
33137         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
33138
33139 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
33140
33141         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
33142         subreg of op0 to the original op0.
33143
33144 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
33145
33146         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
33147
33148 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
33149
33150         PR debug/7055
33151         * mips-tfile.c (parse_def): Fix parsing of def strings
33152         starting with digits.
33153
33154 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
33155
33156         PR target/38695
33157         * config/arm/arm.c (arm_is_long_call_p): Don't call
33158         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
33159
33160 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
33161
33162         * regrename.c (regrename_optimize): Fix dumping.
33163         (find_oldest_value_reg): Preserve REG_POINTER.
33164         (copy_hardreg_forward_1): Likewise.
33165
33166 2009-01-09  Diego Novillo  <dnovillo@google.com>
33167
33168         * gimple.h (struct gimple_statement_base) <uid>: Document
33169         the restrictions on its use.
33170         (gimple_uid): Tidy.
33171         (gimple_set_uid): Tidy.
33172
33173 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33174
33175         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
33176         zero guard even if align_bytes != 0 and count is smaller than
33177         size_needed.
33178
33179 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
33180
33181         PR rtl-optimization/38495
33182         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
33183         (add_range_and_copies_from_move_list): Print all added ranges.
33184         Add ranges to memory optimized destination.
33185
33186 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33187
33188         PR target/38686
33189         PR target/38708
33190         * config/i386/i386.c (override_options): Reject
33191         -mstringop-strategy=rep_8byte with -m32.
33192         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
33193         to 1.  Do count comparison against epilogue_size_needed at compile
33194         time even when count_exp was constant forced into register.  For
33195         size_needed don't jump to epilogue, instead just avoid aligning
33196         and invoke the body algorithm.  If need_zero_guard, add zero guard
33197         even if count is non-zero, but smaller than size_needed + number of
33198         bytes that could be stored for alignment.
33199         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
33200         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
33201         but smaller than size_needed + number of bytes that could be stored
33202         for alignment.  Compare size_needed with epilogue_size_needed instead
33203         of desired_align - align, don't adjust size_needed, pass
33204         epilogue_size_needed to the epilogue expanders.
33205
33206         PR c/35742
33207         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
33208
33209 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33210
33211         * pa.c (last_address): Change to unsigned.
33212         (update_total_code_bytes): Change argument to unsigned.  Don't
33213         check if insn addresses are set.
33214         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
33215         addresses are not set.
33216         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
33217
33218 2009-01-09  Nick Clifton  <nickc@redhat.com>
33219
33220         * config/sh/symbian.c: Replace uses of DECL_INLINE with
33221         DECL_DECLARED_INLINE_P.
33222
33223 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33224
33225         PR middle-end/38347
33226         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
33227         GET_MODE (op0) in operand_subword_force calls.
33228
33229         PR middle-end/38771
33230         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
33231         fold_convert arg0 operands to TREE_TYPE (op0) first.
33232
33233 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
33234
33235         * params.def (ira-max-conflict-table-size): Decrease default value
33236         to 1000.
33237
33238 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
33239
33240         PR tree-optimization/37031
33241         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
33242         on parameter_set.
33243         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
33244         allocate it using gc instead of heap, use VEC_quick_push instead of
33245         VEC_safe_push.
33246         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
33247         instead of heap, use VEC_quick_push instead of VEC_safe_push.
33248         * tree-data-ref.h (struct access_matrix): Change matrix to gc
33249         allocated vector from heap allocated.
33250         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
33251         * tree-loop-linear.c (linear_transform_loops): Allocate nest
33252         vector only after perfect_loop_nest_depth call.
33253
33254 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
33255             Jan Sjodin  <jan.sjodin@amd.com>
33256
33257         PR tree-optimization/38559
33258         * graphite.c (debug_value, copy_constraint,
33259         swap_constraint_variables, scale_constraint_variable, ): New.
33260         (get_lower_bound, get_upper_bound): Removed.
33261         (graphite_trans_bb_strip_mine): Clean up this code that works
33262         only for constant number of iterations.  Fully copy upper and
33263         lower bound constraints, not only the constant part of them.
33264         * graphite.h (debug_value): Declared.
33265
33266 2009-01-08  Ira Rosen  <irar@il.ibm.com>
33267
33268         PR tree-optimization/37194
33269         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
33270         Don't add the cost of cost model guard in prologue to scalar
33271         outside cost in case of known number of iterations.
33272
33273 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
33274             Alan Modra  <amodra@bigpond.net.au>
33275
33276         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
33277         non-word-aligned REG+CONST addressing.
33278
33279 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33280
33281         PR target/38706
33282         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
33283         free_after_compilation when outputting a thunk.
33284         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
33285         Do not call free_after_compilation here.
33286
33287 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33288
33289         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
33290         (ix86_valid_target_attribute_inner_p): Ditto.
33291
33292 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
33293
33294         PR tree-optimization/38492
33295         PR tree-optimization/38498
33296         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
33297         * tree-chrec.h (scev_is_linear_expression): Declared.
33298         * graphite.c (graphite_cannot_represent_loop_niter): New.
33299         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
33300         (graphite_loop_normal_form): Use gcc_assert.
33301         (scan_tree_for_params): Use CASE_CONVERT.
33302         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
33303         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
33304         Use gcc_assert.  Discard scops that contain unhandled cases.
33305         (build_scop_conditions): Return a boolean status for unhandled cases.
33306         (strip_mine_profitable_p): Print the loop number, not its depth.
33307         (is_interchange_valid): Pass the depth of the loop nest, don't
33308         recompute it wrongly.
33309         (graphite_trans_bb_block): Same.
33310         (graphite_trans_bb_block): Print tentative of loop blocking.
33311         (graphite_trans_scop_block): Do not print that the loop has been
33312         blocked.
33313         (graphite_transform_loops): Do not handle scops that contain condition
33314         scalar phi nodes.
33315
33316 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
33317
33318         AVX Programming Reference (December, 2008)
33319         * config/i386/avxintrin.h (_mm256_stream_si256): New.
33320         (_mm256_stream_pd): Likewise.
33321         (_mm256_stream_ps): Likewise.
33322
33323         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
33324         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
33325         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
33326         (bdesc_special_args): Add __builtin_ia32_movntdq256,
33327         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
33328         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
33329         (ix86_expand_special_args_builtin): Likewise.
33330
33331         * config/i386/sse.md (AVXMODEDI): New.
33332         (avx_movnt<mode>): Likewise.
33333         (avx_movnt<mode>): Likewise.
33334         (<sse>_movnt<mode>): Remove AVX support.
33335         (sse2_movntv2di): Likewise.
33336
33337 2009-01-07  Richard Guenther  <rguenther@suse.de>
33338
33339         PR middle-end/38751
33340         * fold-const.c (extract_muldiv): Remove obsolete comment.
33341         (fold_plusminus_mult_expr): Undo MINUS_EXPR
33342         to PLUS_EXPR canonicalization for the canonicalization.
33343
33344 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
33345
33346         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
33347         hosted cross-compilers generating less efficient code.
33348
33349 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33350
33351         * function.h (rtl_data): Add a dbr_scheduled_p field.
33352         * reorg.c (dbr_schedule): Set it.
33353         (gate_handle_delay_slots): Check it.
33354         * config/mips/mips.c (mips_base_delayed_branch): Delete.
33355         (mips_reorg): Check flag_delayed_branch instead of
33356         mips_base_delayed_branch.
33357         (mips_override_options): Don't set mips_base_delayed_branch
33358         or flag_delayed_branch.
33359
33360 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33361
33362         PR rtl-optimization/38426.
33363         * ira.c (ira): Set current_function_is_leaf earlier.
33364
33365 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
33366
33367         PR rtl-optimization/38722
33368         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
33369         too early, only set a flag and modify after last possible
33370         undo_all point.
33371
33372 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
33373
33374         PR c/34252
33375         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
33376         * real.c (decimal_single_format): Correct values of emin and emax.
33377         (decimal_double_format): Ditto.
33378         (decimal_quad_format): Ditto.
33379         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
33380         computation of DECnn_MIN and DECnn_MAX for corrected values of
33381         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
33382         __DECnn_MIN__, and adjust its computation for the corrected value
33383         of emin.
33384
33385 2009-01-06  Jan Hubicka  <jh@suse.cz>
33386
33387         PR target/38744
33388         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
33389
33390 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
33391
33392         * doc/contrib.texi (Contributors): Slightly adjust the end note.
33393         Add Robert Clark to the list of testers.
33394
33395 2009-01-06  Jan Hubicka  <jh@suse.cz>
33396             Kai Tietz  <kai.tietz@onevision.com>
33397
33398         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
33399         * config/i386/i386.c (ix86_expand_call): Add clobbers.
33400
33401 2009-01-06  Jan Hubicka  <jh@suse.cz>
33402             Kai Tietz  <kai.tietz@onevision.com>
33403
33404         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
33405         for w64 ABI.
33406         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
33407         (ix86_nsaved_regs): Count only general purpose regs.
33408         (ix86_nsaved_sseregs): New.
33409         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
33410         to 16 for w64; compute padding and size of sse reg save area.
33411         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
33412         general purpose regs.
33413         (ix86_emit_save_sse_regs_using_mov): New.
33414         (ix86_expand_prologue): Save SSE regs if needed.
33415         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
33416         (ix86_emit_restore_sse_regs_using_mov): New.
33417         (ix86_expand_epilogue): Save SSE regs if needed.
33418
33419 2009-01-06  Jan Hubicka  <jh@suse.cz>
33420             Kai Tietz  <kai.tietz@onevision.com>
33421
33422         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
33423         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
33424         functions when accumulate outgoing args is off.
33425
33426 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33427
33428         PR bootstrap/38742
33429         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
33430         before using pseudos_have_intersected_live_ranges_p.
33431
33432         * ira-int.h (ira_assert): Always define.
33433
33434 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33435
33436         AVX Programming Reference (December, 2008)
33437         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
33438         (_mm256_permute2_pd): Likewise.
33439         (_mm_permute2_ps): Likewise.
33440         (_mm256_permute2_ps): Likewise.
33441         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
33442         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
33443
33444         * config/i386/i386.c (ix86_builtins): Remove
33445         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
33446         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
33447         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
33448         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
33449         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
33450         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
33451         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
33452         __builtin_ia32_vpermil2ps256.
33453         (ix86_init_mmx_sse_builtins): Updated.
33454         (ix86_expand_args_builtin): Likewise.
33455
33456 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33457
33458         * pa.c (output_call): Relocate non-jump insns in the delay slot of
33459         long absolute calls when generating PA 2.0 code.
33460
33461 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
33462
33463         PR rtl-optimization/38583
33464         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
33465
33466         * params.def (ira-max-conflict-table-size): New.
33467
33468         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
33469
33470         * ira.h (ira_conflicts_p): New external definition.
33471
33472         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
33473         table.  Report this.  Return result of building.
33474         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
33475         building conflict table.
33476
33477         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
33478         (ira_color): Use ira_conflicts_p.
33479
33480         * global.c: Include ira.h.
33481         (pseudo_for_reload_consideration_p, build_insn_chain): Use
33482         ira_conflicts_p.
33483
33484         * Makefile.in (global.o): Add ira.h.
33485
33486         * ira-build.c (mark_all_loops_for_removal,
33487         propagate_some_info_from_allocno): New.
33488         (remove_unnecessary_allocnos): Call
33489         propagate_some_info_from_allocno.
33490         (remove_low_level_allocnos): New.
33491         (remove_unnecessary_regions): Add parameter.  Call
33492         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
33493         parameter to remove_unnecessary_regions.
33494         (ira_build): Remove all regions but root if the conflict table was
33495         not built.  Update conflict hard regs for allocnos crossing calls.
33496
33497         * ira.c (ira_conflicts_p): New global.
33498         (ira): Define and use ira_conflicts_p.
33499
33500         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33501         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
33502         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
33503
33504 2009-01-06  Ben Elliston  <bje@au.ibm.com>
33505
33506         * gengtype-lex.l (YY_NO_INPUT): Define.
33507
33508 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33509
33510         PR c/34911
33511         * c-common.c (handle_vector_size_attribute): Also reject
33512         BOOLEAN_TYPE types.
33513
33514 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
33515
33516         PR tree-optimization/38492
33517         * graphite.c (rename_map_elt, debug_rename_elt,
33518         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
33519         rename_map_elt_info, eq_rename_map_elts,
33520         get_new_name_from_old_name, bb_in_sese_p): Moved around.
33521         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
33522         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
33523         (sese_build_livein_liveouts): New.
33524         (new_sese, free_sese): New.
33525         (new_scop): Call new_sese.
33526         (free_scop): Call free_sese.
33527         (rename_variables_from_edge, rename_phis_end_scop): Removed.
33528         (register_old_new_names): Renamed register_old_and_new_names.
33529         (register_scop_liveout_renames, add_loop_exit_phis,
33530         insert_loop_close_phis, struct igp,
33531         default_liveout_before_guard, add_guard_exit_phis,
33532         insert_guard_phis, copy_renames): New.
33533         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
33534         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
33535         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
33536         (scop_adjust_phis_for_liveouts): New.
33537         (gloog): Call scop_adjust_phis_for_liveouts.
33538
33539         * graphite.h (struct sese): Documented.  Added fields liveout,
33540         num_ver and livein.
33541         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
33542         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
33543         (struct scop): Added field liveout_renames.
33544         (SCOP_LIVEOUT_RENAMES): New.
33545
33546 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33547
33548         PR tree-optimization/38510
33549         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
33550         (translate_clast): Call recompute_all_dominators before
33551         graphite_verify.
33552         (gloog): Call recompute_all_dominators before graphite_verify.
33553
33554 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33555             Jan Sjodin  <jan.sjodin@amd.com>
33556
33557         PR tree-optimization/38500
33558         * graphite.c (create_sese_edges): Call fix_loop_structure after
33559         splitting blocks.
33560
33561 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
33562
33563         * config.gcc: Add m32r*-*-rtems*.
33564         * config/m32r/rtems.h: New file.
33565
33566 2009-01-05  Ben Elliston  <bje@au.ibm.com>
33567
33568         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
33569         (.po.pox): Likewise.
33570         (po/gcc.pot): Likewise.
33571
33572 2009-01-04  David S. Miller  <davem@davemloft.net>
33573
33574         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
33575         (STARTING_FRAME_OFFSET): Always set to zero.
33576
33577 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33578
33579         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
33580         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
33581         fixed-point types, and vectors of the same.
33582
33583 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33584
33585         * config/mips/sync.md (*mb_barrier): Rename to...
33586         (*memory_barrier): ...this.
33587
33588 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
33589
33590         * doc/extend.texi (Function Attributes): Move @cindex after @item
33591         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
33592         and put in alphabetical order. Fix 'target' name and put in order.
33593         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
33594         typos.
33595
33596 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
33597
33598         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
33599         (memory_barrier): Expand as unspec instead of unspec_volatile.
33600         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33601         (*memory_barrier): Define as unspec instead of unspec_volatile.
33602         Use (match_dup 0) as input operand.
33603
33604         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
33605         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
33606         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
33607         scratch register.  Remove operand 1.
33608         (*stbar): Define as unspec instead of unspec_volatile.
33609         Use (match_dup 0) as input operand, remove (const_int 8).
33610         (*membar): Define as unspec instead of unspec_volatile.
33611         Use (match_dup 0) as input operand, remove input operand 2.
33612
33613         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
33614         (memory_barrier): Expand as unspec instead of unspec_volatile.
33615         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33616         (*memory_barrier): Define as unspec instead of unspec_volatile.
33617         Use (match_dup 0) as input operand.
33618
33619         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
33620         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33621         Set volatile flag on operand 0.
33622         (*memory_barrier): New insn pattern.
33623
33624         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
33625         insn operands.
33626         (*memory_barrier): Use (match_dup 0) as input operand.
33627
33628         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
33629         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33630         Set volatile flag on operand 0.
33631         (*mb_internal): New insn pattern.
33632
33633         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
33634
33635 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33636
33637         PR middle-end/38586
33638         * function.c (struct temp_slot): Move to the section of the file
33639         that deals with temp slots.  Remove field 'address'.
33640         (temp_slot_address_table): New hash table of address -> temp slot.
33641         (struct temp_slot_address_entry): New struct, items for the table.
33642         (temp_slot_address_compute_hash, temp_slot_address_hash,
33643         temp_slot_address_eq, insert_temp_slot_address): Support functions
33644         for the new table.
33645         (find_temp_slot_from_address): Rewrite to use the new hash table.
33646         (remove_unused_temp_slot_addresses): Remove addresses of temp
33647         slots that have been made available.
33648         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
33649         worker function for remove_unused_temp_slot_addresses.
33650         (assign_stack_temp_for_type): Don't clear the temp slot address list.
33651         Add the temp slot address to the address -> temp slot map.
33652         (update_temp_slot_address): Update via insert_temp_slot_address.
33653         (free_temp_slots): Call remove_unused_temp_slot_addresses.
33654         (pop_temp_slots): Likewise.
33655         (init_temp_slots): Allocate the address -> temp slot map, or empty
33656         the map if it is already allocated.
33657         (prepare_function_start): Initialize temp slot processing.
33658
33659 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33660
33661         PR middle-end/38584
33662         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
33663         Calculate the size of all stack vars assuming no packing of stack
33664         vars will happen, replacing a quadratic algorithm with a linear one.
33665
33666 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33667
33668         PR target/38707
33669         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
33670         can't be used.
33671
33672 2009-01-03  Diego Novillo  <dnovillo@google.com>
33673
33674         * doc/contrib.texi: Update contributions.
33675
33676 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33677
33678         PR c++/38705
33679         * builtins.c (fold_builtin_memory_op): Give up if either operand
33680         is volatile.  Set srctype or desttype to non-qualified version
33681         of the other type.
33682
33683         PR c/38700
33684         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
33685         and FUNCTION_DECLs.
33686
33687 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
33688
33689         PR rtl-optimization/35805
33690         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
33691         problem if fast dce is able to remove any instructions.
33692         * dce.c (dce_process_block): Fix dump message.
33693
33694 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
33695
33696         PR 33649
33697         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
33698
33699 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
33700
33701         PR middle-end/38690
33702         * tree-flow.h (op_code_prio, op_prio): New prototypes.
33703         * tree-pretty-print.c (op_code_prio): New function.
33704         (op_prio): No longer static.  Use op_code_prio.
33705         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
33706         Use op_prio and op_code_prio to determine if () should be
33707         printed around operand(s) or not.
33708
33709         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
33710         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
33711         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
33712         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
33713         pp_character instead of pp_string for single letter printing.
33714
33715 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33716
33717         * doc/extend.texi: Fix '#pragma GCC option' typo.
33718
33719 2009-01-02  Richard Guenther  <rguenther@suse.de>
33720
33721         * doc/install.texi (--enable-checking): Mention different
33722         default for stage1.
33723         (--enable-stage1-checking): Document.
33724
33725 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
33726
33727         PR middle-end/30142
33728         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
33729         case to be an error.
33730
33731 2009-01-02  Ben Elliston  <bje@au.ibm.com>
33732
33733         * config/fp-bit.h (pack_d): Constify argument.
33734         * config/fp-bit.c (makenan): Constify return type. Remove casts.
33735         (isnan): Constify argument.
33736         (isinf): Likewise.
33737         (iszero): Likewise.
33738         (pack_d): Likewise.
33739         (_fpadd_parts): Constify return type.
33740         (_fpmul_parts): Likewise.
33741         (_fpdiv_parts): Likewise.
33742
33743 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
33744
33745         PR c/36489
33746         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
33747         warn about overwriting initializer with side-effects or
33748         -Woverride-init if !IMPLICIT.
33749         (output_init_element): Likewise.  Pass IMPLICIT down to
33750         add_pending_init.
33751         (process_init_element): Add IMPLICIT argument.  Pass it down
33752         to output_init_element.
33753         (push_init_element, pop_init_level, set_designator): Adjust
33754         process_init_element callers.
33755         (set_nonincremental_init, set_nonincremental_init_from_string):
33756         Adjust add_pending_init callers.
33757         (output_pending_init_elements): Adjust output_init_element callers.
33758         * c-tree.h (process_init_element): Adjust prototype.
33759         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
33760         process_init_element callers.
33761
33762 \f
33763 Copyright (C) 2009 Free Software Foundation, Inc.
33764
33765 Copying and distribution of this file, with or without modification,
33766 are permitted in any medium without royalty provided the copyright
33767 notice and this notice are preserved.