* pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
[official-gcc.git] / gcc / ChangeLog
blob74d6f75c58d59327513675832d2199d11a0ac057
1 2009-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3         * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
4         * pa-hpux10.h (LIB_SPEC): Likewise.
5         * pa-hpux11.h (LIB_SPEC): Likewise.
7         PR ada/41912
8         * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
9         for signal frames.
10         * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
12 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14         * configure: Regenerate.
16 2009-12-05  Richard Earnshaw  <rearnsha@arm.com>
18         * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
19         for the scratch.
21 2009-12-04  David Daney  <ddaney@caviumnetworks.com>
23         PR rtl-optimization/42164
24         * combine.c (combine_simplify_rtx): Handle truncation of integer
25         constants.
27 2009-12-04  Richard Guenther  <rguenther@suse.de>
29         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
30         Revert previous change.
31         (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
32         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
33         Likewise.
35 2009-12-04  Richard Guenther  <rguenther@suse.de>
37         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
38         BUILT_IN_MALLOC.
39         (call_may_clobber_ref_p_1): Likewise.
41 2009-12-04  Matthias Klose  <doko@ubuntu.com>
42             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
44         PR target/40134
45         * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
46         * config/pa/pa-linux.h (LIB_SPEC): Remove.
48 2009-12-03  Sebastian Pop  <sebastian.pop@amd.com>
49             Richard Henderson  <rth@redhat.com>
51         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
52         * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
53         * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
54         * config/i386/sse.md (fma4_*): Remove alternative with operand 1
55         matching a memory access.  Do not use ix86_fma4_valid_op_p.
56         (xop_*): Same.
57         Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
59 2009-12-03  Richard Henderson  <rth@redhat.com>
61         * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
62         all operands into registers.
64 2009-12-03  Sebastian Pop  <sebastian.pop@amd.com>
66         * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
67         parameter.
68         * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
69         * config/i386/sse.md: Same.
71 2009-12-03  Richard Guenther  <rguenther@suse.de>
73         * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
74         instead of DECL_NAME for the entry point.
76 2009-12-03  Richard Earnshaw  <rearnsha@arm.com>
78         * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
79         before the lock release.
81 2009-12-03  Michael Matz  <matz@suse.de>
83         PR middle-end/38474
84         * cfgexpand.c (struct stack_var): Add conflicts member.
85         (stack_vars_conflict, stack_vars_conflict_alloc,
86         n_stack_vars_conflict): Remove.
87         (add_stack_var): Initialize conflicts member.
88         (triangular_index, resize_stack_vars_conflict): Remove.
89         (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
90         terms of new member.
91         (union_stack_vars): Only run over the conflicts.
92         (partition_stack_vars): Remove special case.
93         (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
94         don't create self-conflicts.
95         (account_used_vars_for_block): Don't create any conflicts.
96         (fini_vars_expansion): Free bitmaps, don't free or clear removed
97         globals.
99 2009-12-03  Bernd Schmidt  <bernd.schmidt@analog.com>
101         PR middle-end/42202
102         * regrename.c (live_in_chains): New variable.
103         (verify_reg_tracked): New static function.
104         (scan_rtx_reg): Update live_in_chains.
105         (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
106         we're already tracking the reg.
107         (build_def_use): Likewise.  Initialize live_in_chains.
109 2009-12-03  Ken Werner  <ken.werner@de.ibm.com>
111         * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
112         startup files.
113         * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
114         * config/spu/spu.c (spu_function_profiler): New function.
115         * config/spu/spu.h (FUNCTION_PROFILER): Invoke
116         spu_function_profiler.
117         (NO_PROFILE_COUNTERS): Define.
118         (PROFILE_BEFORE_PROLOGUE): Likewise.
120 2009-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
122         * ggc-page.c (struct free_object): Pull definition out ...
123         (struct globals): .. from here.
125 2009-12-02  Richard Guenther  <rguenther@suse.de>
127         * fold-const.c (div_if_zero_remainder): Honor that sizetypes
128         are sign-extending.  Simplify.
130 2009-12-02  Richard Henderson  <rth@redhat.com>
132         PR tree-opt/42215
133         * tree-loop-distribution.c (build_size_arg_loc): Tidy.
134         (generate_memset_zero): Convert to sizetype properly.  Tidy.
136 2009-12-02  Richard Guenther  <rguenther@suse.de>
138         * lto-streamer-out.c (pack_ts_decl_common_value_fields):
139         Do not pretend we have value exprs.
141 2009-12-02  Richard Guenther  <rguenther@suse.de>
143         PR middle-end/41491
144         * fold-const.c (try_move_mult_to_index): Do not leak
145         domain types into the IL.
147 2009-12-02  Richard Guenther  <rguenther@suse.de>
149         PR middle-end/42088
150         * tree.c (free_lang_data): Disable if not using LTO.
152 2009-12-02  Richard Guenther  <rguenther@suse.de>
154         PR middle-end/42229
155         * cfgloopmanip.c (remove_path): Avoid cancelling loops
156         twice.
158 2009-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
160         PR middle-end/42224
161         * tree.h (int_or_pointer_precision): Remove.
162         * tree.c (int_or_pointer_precision): Remove.
163         (integer_pow2p): Use TYPE_PRECISION instead.
164         (tree_log2): Likewise.
165         (tree_floor_log2): Likewise.
166         (signed_or_unsigned_type_for): Likewise.
167         * fold-const.c (fit_double_type): Likewise.
168         * varasm.c (initializer_constant_valid_p): Likewise.
170 2009-12-02  Ira Rosen  <irar@il.ibm.com>
172         * doc/invoke.texi (-fdump-tree-slp): Document.
173         (-ftree-vectorizer-verbose): Update.
174         (-ftree-slp-vectorize): Document.
176 2009-12-02  Nick Clifton  <nickc@redhat.com>
178         * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
179         no fixed registers are available for interrupt handlers.  Do not
180         fix normal registers.
181         (MUST_SAVE_ACC_REGISTER): New macro.
182         (rx_get_stack_layout): Create a stack frame for fast interrupt
183         handlers, if necessary.  Push extra registers if needed in order
184         to save the accumulator.
185         (rx_expand_prologue): Create a stack frame for fast interrupt
186         handlers, if necessary.
187         (rx_expand_builtin_mvfc): Handle the case where there is no
188         target.
190 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
192         * config/i386/abmintrin.h (__lzcnt16): New.
193         (__lzcnt): New.
194         (__lzcnt64): New.
195         * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
196         * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
197         (bdesc_special_args): Add __builtin_clzs.
198         (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
200 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
202         * config/i386/abmintrin.h (_mm_popcnt_u32): New.
203         (_mm_popcnt_u64): New.
205 2009-12-01  Sebastian Pop  <sebastian.pop@amd.com>
207         * config/i386/abmintrin.h: New.
208         * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
209         * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
211 2009-12-01  Uros Bizjak  <ubizjak@gmail.com>
213         * config/i386/i386.md (SWI124): Rename from CRC32MODE.
214         (crc32modesuffix): Remove.
215         (crc32modeconstraint): Ditto.
216         (sse4_2_crc32<mode>): Update for renamed mode iterator.  Use
217         imodesuffix instead of crc32modesuffix and <r>m instead of
218         crc32modeconstraint.
220 2009-12-01  Jakub Jelinek  <jakub@redhat.com>
222         PR c++/42234
223         * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
224         contains no statements.
226 2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
227             Joern Rennecke  <amylaar@spamcop.net>
229         * cgraphunit.c (plugin.h): Include.
230         (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
231         PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
232         * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
233         (enum plugin_event): Define by including plugin.def.
234         Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
235         (plugin_event_name): Change type to const char **.
236         (get_event_last, get_named_event_id, unregister_callback): Declare.
237         (register_callback): Change type of event argument to int.
238         (highlev-plugin-common.h): New file.
239         * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
240         $(HASHTAB_H)
241         (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
242         (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
243         (s-header-vars): New rule.
244         (install-plugin): Depend on s-header-vars.  Install b-header-vars.
245         * params.c (get_num_compiler_params): New function.
246         * params.h (get_num_compiler_params): Declare.
247         * passes.c (plugin.h): Include.
248         (make_pass_instance): Invoke PLUGIN_NEW_PASS.
249         (do_per_function_toporder, pass_init_dump_file): No longer static.
250         (pass_fini_dump_file): Likewise.
251         (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
252         PLUGIN_PASS_EXECUTION.
253         (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
254         PLUGIN_EARLY_GIMPLE_PASSES_END.
255         * plugin.c (plugin_event_name_init): New array, defined by
256         including plugin.def.
257         (FMT_FOR_PLUGIN_EVENT): Update.
258         (plugin_event_name): Change type to const char ** and initialize
259         to plugin_event_name_init.
260         (event_tab, event_last, event_horizon): New variable.
261         (get_event_last): New function.
262         (plugin_callbacks_init): New array.
263         (plugin_callbacks: Change type to struct callback_info **.
264         Initialize to plugin_callbacks_init.
265         (htab_event_eq, get_named_event_id, unregister_callback): New function.
266         (invoke_plugin_va_callbacks): Likewise.
267         (register_callback): Change type of event argument to int.
268         Handle new events.  Allow dynamic events.
269         (invoke_plugin_callbacks): Likewise.  Return success status.
270         (plugins_active_p): Allow dynamic callbacks.
271         * plugin.def: New file.
272         * plugin.h (invoke_plugin_callbacks): Update prototype.
273         (invoke_plugin_va_callbacks): Declare.
274         * tree-optimize.c (plugin.h): Include.
275         (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
276         PLUGIN_ALL_PASSES_END.
277         * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
278         (pass_fini_dump_file, do_per_function_toporder): Likewise.
279         * doc/plugin.texi: Document new event types.
281 2009-12-01  Martin Jambor  <mjambor@suse.cz>
283         PR tree-optimization/42237
284         * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
285         in between references into two.
287 2009-12-01  Richard Guenther  <rguenther@suse.de>
289         * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
290         to the block of the call when remapping a type.
292 2009-12-01  Martin Jambor  <mjambor@suse.cz>
294         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
295         unsigned short int.
296         * ipa-prop.h (struct ipa_param_call_note): Likewise.
297         * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
299 2009-12-01  Richard Guenther  <rguenther@suse.de>
301         * final.c (rest_of_clean_state): If -fcompare-debug is
302         given dump final insns without UIDs.
303         * tree-ssa-live.c (remove_unused_scope_block_p): Remove
304         after_inlining checks.
306 2009-11-30  Chao-ying Fu  <fu@mips.com>
308         * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
310 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
312         * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
313         status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
314         * configure: Regenerate.
315         * config.in: Regenerate.
317         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
318         options for Cygwin DLL libstdc++ support wrappers.
319         (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
320         according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
321         (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
322         whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
323         (LINK_SPEC): Include CXX_WRAP_SPEC.
324         * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
325         (i386_find_on_wrapper_list): Check if a function is found on the list
326         of libstdc++ wrapper options.
327         (i386_pe_file_end): If we are importing a wrapped function, also emit
328         an external declaration for the real version.
329         * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
330         Cygwin targets. Update copyright year.
332 2009-11-30  Steve Ellcey  <sje@cup.hp.com>
333             Jakub Jelinek <jakub@redhat.com>
335         * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
336         before forcing mode.
338 2009-11-30  Anatoly Sokolov  <aesok@post.ru>
340         * config/sh/sh.c (sh_promote_prototypes): Make static.
341         (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
342         functions.
343         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
344         * config/sh/sh.h: (FUNCTION_VALUE_REGNO_P): Redefine, use
345         sh_function_value_regno_p.
346         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
347         * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
348         (sh_promote_prototypes) : Remove.
350 2009-11-30  Julian Brown  <julian@codesourcery.com>
352         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
353         reloads to LO_REGS.
355 2009-11-30  Richard Henderson  <rth@redhat.com>
357         * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
358         (bdesc_special_args): Update insn codes.
359         (avx_vpermilp_parallel): Correct range check.
360         (ix86_rtx_costs): Handle vector permutation rtx codes.
361         (struct expand_vec_perm_d): Move earlier.
362         (get_mode_wider_vector): New.
363         (expand_vec_perm_broadcast_1): New.
364         (ix86_expand_vector_init_duplicate): Use it.  Tidy AVX modes.
365         (expand_vec_perm_broadcast): New.
366         (ix86_expand_vec_perm_builtin_1): Use it.
367         * config/i386/i386-protos.h: Update.
368         * config/i386/predicates.md (avx_vbroadcast_operand): New.
369         * config/i386/sse.md (AVX256MODE24P): New.
370         (ssescalarmodesuffix2s): New.
371         (avxhalfvecmode, avxscalarmode): Fill out to all modes.
372         (avxmodesuffixf2c): Add V8SI, V4DI.
373         (vec_dupv4sf): New expander.
374         (*vec_dupv4sf_avx): Add vbroadcastss alternative.
375         (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
376         V4SF and V4SI.  Move C alternatives to front.  Add insertps and
377         pinsrd alternatives.
378         (*vec_set<mode>_0_sse2): Split out from ...
379         (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
380         (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
381         destination; use ix86_vec_interleave_v2df_operator_ok, instead of
382         ix86_fixup_binary_operands.
383         (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
384         (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
385         (*avx_movddup, *sse3_movddup): Remove.  New splitter from
386         vec_select form to vec_duplicate form.
387         (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
388         ix86_vec_interleave_v2df_operator_ok.
389         (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
390         (*avx_unpcklpd256): ... here.
391         (*vec_dupv4si_avx): New.
392         (*vec_dupv2di_avx): Add movddup alternative.
393         (*vec_dupv2di_sse3): New.
394         (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
395         avx_vbroadcastss256; represent with vec_duplicate instead of
396         nested vec_concat operations.
397         (avx_vbroadcastf128_<mode>): Rename from
398         avx_vbroadcastf128_p<avxmodesuffixf2c>256.
399         (*avx_vperm_broadcast_v4sf): New.
400         (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
402 2009-11-30  Martin Jambor  <mjambor@suse.cz>
404         PR middle-end/42196
405         * tree-sra.c (struct access): New field grp_different_types.
406         (dump_access): Dump grp_different_types.
407         (compare_access_positions): Prefer scalars and vectors over other
408         scalar types.
409         (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
410         (sra_modify_expr): Use the original also when dealing with a complex
411          or vector group accessed as multiple types.
413 2009-11-30  Richard Henderson  <rth@redhat.com>
415         * config/i386/i386.c (avx_vperm2f128_parallel): New.
416         * config/i386/i386-protos.h: Declare it.
417         * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
418         avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
419         * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
420         (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
421         (*avx_vperm2f128<mode>_nozero): New.
423 2009-11-30  Richard Henderson  <rth@redhat.com>
425         * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
426         (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
427         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
428         V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
429         (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
430         (bdesc_args): Add them.
431         (ix86_expand_builtin): Expand them.
432         (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
434 2009-11-30  Martin Jambor  <mjambor@suse.cz>
436         PR middle-end/42206
437         * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
439 2009-11-30  Jakub Jelinek  <jakub@redhat.com>
441         * ipa-reference.c (propagate): Only dump bitmaps if computed.
443 2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>
445         PR middle-end/39806
446         * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
447         (new_var_hash): Likewise.
448         (is_in_new_vars_htab): Likewise.
449         (add_to_new_vars_htab): Likewise.
451 2009-11-30  Ira Rosen  <irar@il.ibm.com>
453         * tree-vect-stmts.c (vectorizable_assignment): Support
454         multiple types.
456 2009-11-30  Richard Guenther  <rguenther@suse.de>
458         * doc/contrib.texi (Contributors): Add myself.
460 2009-11-30  Richard Guenther  <rguenther@suse.de>
462         * tree.c (free_lang_data): Do not set debug_info_level to
463         none if terse.
465 2009-11-30  Richard Guenther  <rguenther@suse.de>
467         PR middle-end/42119
468         PR fortran/38530
469         * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
470         of CONST_DECLs.
472 2009-11-30  Richard Guenther  <rguenther@suse.de>
474         * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
475         variable UID order.
477 2009-11-30  Richard Guenther  <rguenther@suse.de>
479         * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
480         * tree-pass.h (TDF_NOUID): Likewise.
481         * print-rtl.c: Include tree-pass.h.
482         (print_mem_expr): Pass dump_flags.
483         (print_rtx): Likewise.
484         * print-tree.c: Include tree-pass.h.
485         (print_node_brief): Handle TDF_NOUID.
486         (print_node): Likewise.
487         * tree-pretty-print.c (dump_decl_name): Likewise.
488         (dump_generic_node): Likewise.
489         * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
490         dependency.
492 2009-11-30  Nick Clifton  <nickc@redhat.com>
494         * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
495         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
496         stormy16-lib2-count-leading-zeros.c.
497         * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
498         __stormy16_count_leading_zeros() into this function.
499         (__ctzhi2): Use __builtin_clz.
500         (__ffshi2): Likewise.
502 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
504         * config/sparc/sparc.c (DF_MODES): Simplify.
505         (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
506         (TF_MODES, OF_MODES): Adjust for above change.
507         (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
508         *  config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
510 2009-11-30  Paolo Bonzini  <bonzini@gnu.org>
512         PR rtl-optimization/41812
513         * fwprop.c (local_md, local_lr): New globals.
514         (process_defs, process_uses): Remove local_md argument.  Never
515         consider dead pseudos to have singleton def-use chains.
516         (single_def_use_enter_block): Perform LR simulation.
517         (build_single_def_use_links): Remove local_md local variable.
518         Add DF_NOTE.  Allocate local_lr.
519         (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
520         * df-problems.c (df_md_scratch): New.
521         (df_md_alloc, df_md_free): Allocate/free it.
522         (df_md_local_compute): Only include live registers in init.
523         (df_md_transfer_function): Prune the in-set computed by
524         the confluence function, and the gen-set too.
526 2009-11-30  Hans-Peter Nilsson  <hp@axis.com>
528         PR rtl-optimization/40086
529         * reorg.c (relax_delay_slots): When looking for redundant insn at
530         the branch target, use next_real_insn, not next_active_insn.
532 2009-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
534         * doc/install.texi: Update minimum MPC version to 0.8.
536 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
538         * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
539         HONOR_SIGNED_ZEROS final condition.
540         (fnmsubsf4_powerpc_1): Same.
541         (fnmadddf4_fpr_1): Same.
542         (fnmsubdf4_fpr_1): Same.
544 2009-11-29  Ira Rosen  <irar@il.ibm.com>
546         PR tree-optimization/42193
547         * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
548         to 1 in case of basic block SLP.
549         (vectorizable_load): Likewise.
551 2009-11-28  Jan Hubicka  <jh@suse.cz>
553         * cgraph.c (same_body_alias_1): Break out of
554         (same_body_alias): ... here; remove comdat check; it is handled
555         in cp already.
556         (cgraph_add_thunk): New.
557         (dump_cgraph_node): Dump aliases and thunks.
558         * cgraph.h (cgraph_thunk_info): New structure.
559         (struct cgraph_node): Add thunk info.
560         (cgraph_add_thunk): New.
561         * cgraphunit.c (cgraph_emit_thunks): Remove.
562         (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
563         (assemble_thunk): New function.
564         (cgraph_expand_function): Handle thunks.
565         (thunk_adjust): New.
566         (init_lowered_empty_function): New.
567         * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
568         Remove.
569         * lto-cgraph.c (lto_output_node): Stream thunk info.
570         (input_node): Likewise.
571         * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
572         * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
573         (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
574         * i386.c (x86_output_mi_thunk): Make output prettier.
576 2009-11-28  Richard Guenther  <rguenther@suse.de>
578         PR tree-optimization/42183
579         * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
580         address taken.  Merge the addressable state of the NRV
581         variable and the result instead of copying it.
583 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
585         * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
586         malloc_fname variable.
587         (check_allocation_function): Remove unused gsi and bb_level_0
588         variables.
589         (transform_access_sites): Remove unused d_type_size and d_type_size_k
590         variables.
591         * omega.c (resurrect_subs): Remove unused n variable.
592         (omega_solve_geq): Remove unused neweqns variable.
593         * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
594         * tree-inline.c (declare_return_variable): Remove USE_P argument,
595         return use instead of var.
596         (remap_decl, remap_block): Remove unused fn variable.
597         (expand_call_inline): Remove unused retvar variable, adjust
598         declare_return_variable caller.
599         (optimize_inline_calls): Remove unused prev_fn variable.
600         * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
601         variable.
602         (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
603         variables.
604         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
605         properly.
606         * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
607         variable.
608         (vect_create_epilog_for_reduction): Remove unused bytesize variable.
609         * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
610         parameter.  Remove unused par_stmt variable.
611         (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
612         (expand_omp_sections): Remove unused l1 variable.
613         (lower_omp_for): Remove unused ilist variable.
614         * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
615         Remove unused has_upstream_mem_write_p variable.
616         * recog.c (decode_asm_operands): Remove unused noperands variable.
617         * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
618         size2 variable.
619         * libgcov.c (__gcov_merge_delta): Remove unused last variable.
620         * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
621         base_nm variable.
622         (gen_conditions_for_pow): Remove unused ec variable.
623         * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
624         variable.
625         * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
626         fndecl variable.
627         * tree-ssa-sink.c (statement_sink_location): Remove unused code
628         variable.
629         * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
630         variables.
631         * tree-complex.c (create_one_component_var): Remove unused inner_type
632         variable.
633         * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
634         unnecessarily when GEN_*CALL omits that argument.
635         * regrename.c (regrename_optimize): Remove unused regs_seen variable.
636         (build_def_use): Remove unused icode variable.
637         * ipa-pure-const.c (check_call): Remove unused callee and avail
638         variables.
639         * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
640         * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
641         variable.
642         (vect_pattern_recog): Remove unused stmt variable.
643         * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
644         new_regions variable.
645         * postreload.c (reload_cse_simplify_operands): Remove unused mode
646         variable.
647         * tree-parloops.c (create_call_for_reduction_1): Remove unused
648         addr_type variable.
649         (create_parallel_loop): Remove unused res variable.
650         (gen_parallel_loop): Remove unused nloop variable.
651         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
652         * value-prof.c (gimple_mod_subtract_transform,
653         gimple_stringops_transform): Remove unused value variable.
654         (gimple_stringops_values_to_profile): Remove unused fcode variable.
655         * tree-vrp.c (register_new_assert_for): Remove unused found variable.
656         (vrp_visit_switch_stmt): Remove unused n variable.
657         * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
658         variable.
659         (vectorizable_operation): Remove unused shift_p variable.
660         (vectorizable_store): Remove unused first_stmt_vinfo variable.
661         * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
662         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
663         variable.
664         (vect_permute_store_chain): Remove unused scalar_dest variable.
665         (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
666         variable.
667         * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
668         local_info variable.
669         * tree-optimize.c (tree_rest_of_compilation): Remove unused node
670         variable.
671         * optabs.c (expand_binop): Remove unused equiv_value variable.
672         (emit_libcall_block): Remove unused prev variable.
673         (init_optabs): Remove unused int_mode variable.
674         * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
675         variable.
676         (do_structure_copy): Remove unused lhsbase and rhsbase variables.
677         (find_func_aliases): Remove unused rhstype variable.
678         (ipa_pta_execute): Remove unused varid variable.
680 2009-11-28  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
682         * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
684 2009-11-28  David Binderman  <dcb314@hotmail.com>
686         * ira-color.c (put_allocno_into_bucket): Remove set but not used
687         local variable hard_regs_num.
688         * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
689         * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
690         * lower-subreg.c (decompose_multiword_subregs): Remove next.
692 2009-11-27  Martin Jambor  <mjambor@suse.cz>
694         PR middle-end/42006
695         * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
696         instead of create_tmp_var.  Set DECL_GIMPLE_REG_P to one manually
697         for vector and complex types.
698         (get_adjustment_for_base): Describe return value in the comment.
700 2009-11-27  Nick Clifton  <nickc@redhat.com>
702         * longlong.h (count_leading_zeros): Define macro for stormy16 target.
703         (COUNT_LEADING_ZEROS_0): Likewise.
704         * config/stormy16/stormy16-lib2.c: Arrange for separate
705         compilation of each function.
706         (__ffshi2): New function.
707         (__stormy16_count_leading_zeros): New function.
708         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
709         compile each function into its own object file.
710         (stormy16-lib2-ashlsi3.c): New stub file.
711         (stormy16-lib2-ashrsi3.c): New stub file.
712         (stormy16-lib2-clzhi2.c): New stub file.
713         (stormy16-lib2-count-leading-zeros.c): New stub file.
714         (stormy16-lib2-ctzhi2.c): New stub file.
715         (stormy16-lib2-divsi3.c): New stub file.
716         (stormy16-lib2-ffshi2.c): New stub file.
717         (stormy16-lib2-lshrsi3.c): New stub file.
718         (stormy16-lib2-modsi3.c): New stub file.
719         (stormy16-lib2-parityhi2.c): New stub file.
720         (stormy16-lib2-popcounthi2.c): New stub file.
721         (stormy16-lib2-udivmodsi4.c): New stub file.
722         (stormy16-lib2-udivsi3.c): New stub file.
723         (stormy16-lib2-umodsi3.c): New stub file.
725 2009-11-27  Richard Henderson  <rth@redhat.com>
727         * config/i386/sse.md (vec_interleave_highv16qi,
728         vec_interleave_lowv16qi, vec_interleave_highv8hi,
729         vec_interleave_lowv8hi, vec_interleave_highv4si,
730         vec_interleave_lowv4si, vec_interleave_highv2di,
731         vec_interleave_lowv2di, vec_interleave_highv4sf,
732         vec_interleave_lowv4sf, vec_interleave_highv2df,
733         vec_interleave_lowv2df): Remove expanders.
734         (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
735         sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
736         sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
737         Rename to their proper vec_interleave equivalent.  Update all users
738         to the new name.
739         * config/i386/i386.c, config/i386/i386.md: Update all users.
741 2009-11-27  Michael Matz  <matz@suse.de>
743         PR rtl-optimization/42084
744         * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
745         use it to stop walking.
746         (expand_gimple_cond): Adjust call to above.
748 2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
750         PR target/41810
751         * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
752         [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
753         __extension__ to allow cast from function pointer to object
754         pointer in C++.
755         * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
757 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
759         * config/ia64/itanium1.md: Remove.
760         * config/ia64/ia64.md: Do not include it.
761         * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
762         "itanium1", and "merced" from the processor alias table.
763         (clocks, add_cycles): Remove global variables.
764         (ia64_sched_reorder2): Don't set/use them.
765         (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
766         (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
768 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
770         * config/s390/s390.c (last_scheduled_insn): New variable.
771         (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
772         functions.
773         (s390_sched_reorder, s390_sched_variable_issue): New functions.
774         (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
775         defined.
777 2009-11-27  Michael Matz  <matz@suse.de>
779         PR c++/41906
780         * tree-eh.c (lower_catch): Stop after expanding a catch-all.
782 2009-11-27  Richard Guenther  <rguenther@suse.de>
784         * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
785         TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
786         * loop-init.c (pass_rtl_move_loop_invariants): Use
787         TV_LOOP_MOVE_INVARIANTS.
788         (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
789         (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
790         (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
792 2009-11-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
794         * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
796 2009-11-27  Jakub Jelinek  <jakub@redhat.com>
798         * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
799         unused insn variable.
800         * genemit.c (output_peephole2_scratches): Only declare and initialize
801         _regs_allocated if it will be ever used.
802         * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
803         succ_bb variable.
804         (create_empty_loop_on_edge): Remove unused freq and cnt variables.
805         * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
806         variable.
808         * opts.c (decode_options): If optimize is bigger than 255,
809         set it to 255.
811 2009-11-26  Richard Henderson  <rth@redhat.com>
813         * config/i386/sse.md (mulv16qi3): Change back from an expander
814         to an insn-and-split.
815         (mulv4si): Mention AVX not XOP for AVX exception.
816         (*sse2_mulv4si3): Likewise.
817         (mulv2di3): Use vmulld not vpmacsdd for XOP expansion.  Tidy.
819 2009-11-26  Bernd Schmidt  <bernd.schmidt@analog.com>
821         * cfgexpand (n_stack_vars_conflict): New static variable.
822         (triangular_index): Reduce likelyhood of overflow by performing
823         the division before the multiplication.
824         (resize_stack_vars_conflict): Call fatal_error if overflow
825         occurred in triangular_index.  Update n_stack_vars_conflict.
827         PR rtl-opt/38582
828         * regrename.c (struct du_chain): Remove member earlyclobber.
829         (scan_rtx_reg): Don't set it.  Remove argument earlyclobber,
830         all callers changed.
831         (scan_rtx): Remove argument earlyclobber, all callers changed.
832         (hide_operands, restore_operands, record_out_operands): New functions,
833         broken out of build_def_use.
834         (build_def_use): Call them as necessary.
836         * regrename.c (struct du_head): New members id, conflicts,
837         hard_conflicts and cannot_rename.
838         (enum scan_actions): Remove terminate_all_read and
839         terminate_overlapping_read; add mark_all_read.
840         (scan_actions_name): Likewise.
841         (du_head_p): New typedef.  Define a vector type for it.
842         (id_to_chain): New static variable.
843         (note_sets, clear_dead_regs): Delete functions.
844         (free_chain_data): New function.
845         (merge_overlapping_regs): Simply walk the conflicts bitmap.
846         Remove argument B, all callers changed.
847         (regrename_optimize): Allocate id_to_chain.  Ignore chains that have
848         the cannot_rename bit set.  Update regno and nregs of a renamed chain.
849         Call free_chain_data when done.
850         (do_replace): Remove death notes when the renamed reg is set in the
851         last insn; add them if not.
852         (mark_conflict, note_sets_clobbers): New static function.
853         (fail_current_block, current_id, open_chains_set, live_hard_regs): New
854         static variables.
855         (scan_rtx_reg): Keep track of conflicts between chains, and between
856         chains and hard regs.  Don't terminate chains when we find a read we
857         can't handle, mark it unrenameable instead.  For terminate_write,
858         terminate chains that are written with an exact match or a superset
859         of registers.  Set fail_current_block if multi-word lifetimes are too
860         complex to handle.
861         (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
862         (build_def_use): Initialize current_id, live_chains and live_hard_regs;
863         free memory for them when done.
864         Rearrange the steps so that earlyclobbers are noted before reads
865         are processed.  Add new steps to keep track of hard register lifetimes
866         outside insn operands.
868 2009-11-26  Richard Guenther  <rguenther@suse.de>
870         * tree-ssa-dce.c (nr_walks): New variable.
871         (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
872         (perform_tree_ssa_dce): Init nr_walks.
874 2009-11-26  Michael Matz  <matz@suse.de>
876         PR tree-optimization/41905
877         * tree-eh.c (lower_eh_constructs_2): Don't add assignments
878         below statements that can't fall thru.
880 2009-11-26  Michael Matz  <matz@suse.de>
882         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
883         expand_builtin_sprintf): Remove.
884         (expand_builtin): Don't call them.
886 2009-11-26  Richard Guenther  <rguenther@suse.de>
888         * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
890 2009-11-26  Nick Clifton  <nickc@redhat.com>
892         * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
893         being used incorrectly.
894         (rx_function_ok_for_sibcall): New function.  Do not allow indirect
895         sibcalls, or sibcalls from interrupt functions.
896         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
897         * config/rx/rx.md (sibcall): Convert to a define_expand.  Check
898         for a MEM inside a MEM.
899         (sibcall_value): Likewise.
900         (sibcall_internal): New pattern containing old sibcall pattern.
901         (sibcall_value_internal): Likewise.
903 2009-11-25  Richard Henderson  <rth@redhat.com>
905         * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
906         optional 3rd argument to define the mode.
907         * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
908         (V2UDI, V4USI, V8UHI, V16UQI): New.
909         (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
910         V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
911         V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
912         * config/i386/i386-modes.def: Rearrange for double-wide AVX.
913         * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
914         * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
915         (bdesc_args): Add the builtin definitions to match.
916         (ix86_expand_builtin): Expand them.
917         (ix86_builtin_vectorization_cost): Rename from
918         x86_builtin_vectorization_cost.
919         (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
920         doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
921         expand_vec_perm_blend, expand_vec_perm_vpermil,
922         expand_vec_perm_pshufb, expand_vec_perm_1,
923         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
924         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
925         expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
926         ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
927         ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
928         ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
929         TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
930         * sse.md (SSEMODE_EO): New.
931         (vec_extract_even<mode>): Use SSEMODE_EO and
932         ix86_expand_vec_extract_even_odd.
933         (vec_extract_odd<mode>): Likewise.
934         (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
935         vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
937 2009-11-25  Richard Henderson  <rth@redhat.com>
939         * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
940         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
941         * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
942         * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
943         the vector constant here...
944         (vect_transform_slp_perm_load): ... do it here instead.  Validate
945         that the permutation vector is implementable by the target.
947 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
949         * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
950         * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
952         * print-rtl.c (print_rtx): When printing newline, append
953         print_rtx_head and indentation after the newline.
955         PR target/42165
956         * config/i386/i386.c (print_operand): For 32-byte memory use
957         YMMWORD in -masm=intel mode.  Use TBYTE instead of XWORD.
958         * config/i386/i386.md (crc32modesuffix): Expand to nothing
959         in -masm=intel mode.
960         (sse4_2_crc32di): Print just crc32 instead of crc32q in
961         -masm=intel mode.
962         * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
963         memory operand in -masm=intel mode.
964         * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
965         *sse2_pinsrw): Likewise.
966         (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
967         q suffix in -masm=intel mode.
969 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
971         PR target/10127
972         PR ada/20548
973         PR middle-end/42004
974         * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
975         (dwarf2out_stack_adjust): ...this.  Do not adjust the arg size for
976         ACCUMULATE_OUTGOING_ARGS targets.  Rename former version to...
977         (dwarf2out_notice_stack_adjust): ...this.  Adjust for above renaming.
978         (dwarf2out_frame_debug_expr): Revert previous change and adjust for
979         above renaming.
980         (dwarf2out_frame_debug): Add ??? comment.  Adjust for above renaming.
982 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
984         * config/i386/predicates.md (emms_operation): New predicate.
985         (vzeroupper_operation): Ditto.
986         (vzeroall_operation): Improve pattern recognition.
987         * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
988         (avx_vzeroupper): Change insn pattern to expander.
989         (*avx_vzeroupper): New insn pattern.  Use vzeroupper_operation
990         predicate.
991         (*avx_vzeroall): Remove operands 1 and 2.
992         * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
993         (mmx_femms): Ditto.
994         (*mmx_emms): New insn pattern.  Use emms_operation predicate.
995         (*mmx_femms): Ditto.
996         * config/i386/i386.c (enum ix86_builtins)
997         <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
998         (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
999         Remove initailization.
1000         <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
1002 2009-11-25  Paul Brook  <paul@codesourcery.com>
1004         * config/arm/arm.md (consttable_4): Handle (high ...).
1006 2009-11-25  Robert Nelson  <robert.nelson@digikey.com>
1007             Richard Earnshaw  <rearnsha@arm.com>
1009         * arm.h (enum vfp_reg_type): Add VFP_NONE.
1010         * arm.c (all_fpus): Use it for floating point units that aren't based
1011         on the VFP architecture.
1012         (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
1013         enum machine_mode.
1015 2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1017         * alias.c: Remove trailing white spaces.
1018         * alloc-pool.c: Likewise.
1019         * alloc-pool.h: Likewise.
1020         * attribs.c: Likewise.
1021         * auto-inc-dec.c: Likewise.
1022         * basic-block.h: Likewise.
1023         * bb-reorder.c: Likewise.
1024         * bt-load.c: Likewise.
1025         * builtins.c: Likewise.
1026         * builtins.def: Likewise.
1027         * c-common.c: Likewise.
1028         * c-common.h: Likewise.
1029         * c-cppbuiltin.c: Likewise.
1030         * c-decl.c: Likewise.
1031         * c-format.c: Likewise.
1032         * c-lex.c: Likewise.
1033         * c-omp.c: Likewise.
1034         * c-opts.c: Likewise.
1035         * c-parser.c: Likewise.
1036         * c-pretty-print.c: Likewise.
1037         * c-tree.h: Likewise.
1038         * c-typeck.c: Likewise.
1039         * caller-save.c: Likewise.
1040         * calls.c: Likewise.
1041         * cfg.c: Likewise.
1042         * cfganal.c: Likewise.
1043         * cfgexpand.c: Likewise.
1044         * cfghooks.c: Likewise.
1045         * cfghooks.h: Likewise.
1046         * cfglayout.c: Likewise.
1047         * cfgloop.c: Likewise.
1048         * cfgloop.h: Likewise.
1049         * cfgloopmanip.c: Likewise.
1050         * cfgrtl.c: Likewise.
1051         * cgraph.c: Likewise.
1052         * cgraph.h: Likewise.
1053         * cgraphbuild.c: Likewise.
1054         * cgraphunit.c: Likewise.
1055         * cif-code.def: Likewise.
1056         * collect2.c: Likewise.
1057         * combine.c: Likewise.
1058         * convert.c: Likewise.
1059         * coverage.c: Likewise.
1060         * crtstuff.c: Likewise.
1061         * cse.c: Likewise.
1062         * cselib.c: Likewise.
1063         * dbgcnt.c: Likewise.
1064         * dbgcnt.def: Likewise.
1065         * dbgcnt.h: Likewise.
1066         * dbxout.c: Likewise.
1067         * dce.c: Likewise.
1068         * ddg.c: Likewise.
1069         * ddg.h: Likewise.
1070         * defaults.h: Likewise.
1071         * df-byte-scan.c: Likewise.
1072         * df-core.c: Likewise.
1073         * df-problems.c: Likewise.
1074         * df-scan.c: Likewise.
1075         * df.h: Likewise.
1076         * dfp.c: Likewise.
1077         * diagnostic.c: Likewise.
1078         * diagnostic.h: Likewise.
1079         * dominance.c: Likewise.
1080         * domwalk.c: Likewise.
1081         * double-int.c: Likewise.
1082         * double-int.h: Likewise.
1083         * dse.c: Likewise.
1084         * dwarf2asm.c: Likewise.
1085         * dwarf2asm.h: Likewise.
1086         * dwarf2out.c: Likewise.
1087         * ebitmap.c: Likewise.
1088         * ebitmap.h: Likewise.
1089         * emit-rtl.c: Likewise.
1090         * et-forest.c: Likewise.
1091         * except.c: Likewise.
1092         * except.h: Likewise.
1093         * expmed.c: Likewise.
1094         * expr.c: Likewise.
1095         * expr.h: Likewise.
1096         * final.c: Likewise.
1097         * flags.h: Likewise.
1098         * fold-const.c: Likewise.
1099         * function.c: Likewise.
1100         * function.h: Likewise.
1101         * fwprop.c: Likewise.
1102         * gcc.c: Likewise.
1103         * gcov-dump.c: Likewise.
1104         * gcov-io.c: Likewise.
1105         * gcov-io.h: Likewise.
1106         * gcov.c: Likewise.
1107         * gcse.c: Likewise.
1108         * genattr.c: Likewise.
1109         * genattrtab.c: Likewise.
1110         * genautomata.c: Likewise.
1111         * genchecksum.c: Likewise.
1112         * genconfig.c: Likewise.
1113         * genflags.c: Likewise.
1114         * gengtype-parse.c: Likewise.
1115         * gengtype.c: Likewise.
1116         * gengtype.h: Likewise.
1117         * genmddeps.c: Likewise.
1118         * genmodes.c: Likewise.
1119         * genopinit.c: Likewise.
1120         * genpreds.c: Likewise.
1121         * gensupport.c: Likewise.
1122         * ggc-common.c: Likewise.
1123         * ggc-page.c: Likewise.
1124         * ggc-zone.c: Likewise.
1125         * ggc.h: Likewise.
1126         * gimple-iterator.c: Likewise.
1127         * gimple-low.c: Likewise.
1128         * gimple-pretty-print.c: Likewise.
1129         * gimple.c: Likewise.
1130         * gimple.def: Likewise.
1131         * gimple.h: Likewise.
1132         * gimplify.c: Likewise.
1133         * graphds.c: Likewise.
1134         * graphite-clast-to-gimple.c: Likewise.
1135         * gthr-nks.h: Likewise.
1136         * gthr-posix.c: Likewise.
1137         * gthr-posix.h: Likewise.
1138         * gthr-posix95.h: Likewise.
1139         * gthr-single.h: Likewise.
1140         * gthr-tpf.h: Likewise.
1141         * gthr-vxworks.h: Likewise.
1142         * gthr.h: Likewise.
1143         * haifa-sched.c: Likewise.
1144         * hard-reg-set.h: Likewise.
1145         * hooks.c: Likewise.
1146         * hooks.h: Likewise.
1147         * hosthooks.h: Likewise.
1148         * hwint.h: Likewise.
1149         * ifcvt.c: Likewise.
1150         * incpath.c: Likewise.
1151         * init-regs.c: Likewise.
1152         * integrate.c: Likewise.
1153         * ipa-cp.c: Likewise.
1154         * ipa-inline.c: Likewise.
1155         * ipa-prop.c: Likewise.
1156         * ipa-pure-const.c: Likewise.
1157         * ipa-reference.c: Likewise.
1158         * ipa-struct-reorg.c: Likewise.
1159         * ipa-struct-reorg.h: Likewise.
1160         * ipa-type-escape.c: Likewise.
1161         * ipa-type-escape.h: Likewise.
1162         * ipa-utils.c: Likewise.
1163         * ipa-utils.h: Likewise.
1164         * ipa.c: Likewise.
1165         * ira-build.c: Likewise.
1166         * ira-color.c: Likewise.
1167         * ira-conflicts.c: Likewise.
1168         * ira-costs.c: Likewise.
1169         * ira-emit.c: Likewise.
1170         * ira-int.h: Likewise.
1171         * ira-lives.c: Likewise.
1172         * ira.c: Likewise.
1173         * jump.c: Likewise.
1174         * lambda-code.c: Likewise.
1175         * lambda-mat.c: Likewise.
1176         * lambda-trans.c: Likewise.
1177         * lambda.h: Likewise.
1178         * langhooks.c: Likewise.
1179         * lcm.c: Likewise.
1180         * libgcov.c: Likewise.
1181         * lists.c: Likewise.
1182         * loop-doloop.c: Likewise.
1183         * loop-init.c: Likewise.
1184         * loop-invariant.c: Likewise.
1185         * loop-iv.c: Likewise.
1186         * loop-unroll.c: Likewise.
1187         * lower-subreg.c: Likewise.
1188         * lto-cgraph.c: Likewise.
1189         * lto-compress.c: Likewise.
1190         * lto-opts.c: Likewise.
1191         * lto-section-in.c: Likewise.
1192         * lto-section-out.c: Likewise.
1193         * lto-streamer-in.c: Likewise.
1194         * lto-streamer-out.c: Likewise.
1195         * lto-streamer.c: Likewise.
1196         * lto-streamer.h: Likewise.
1197         * lto-symtab.c: Likewise.
1198         * lto-wpa-fixup.c: Likewise.
1199         * matrix-reorg.c: Likewise.
1200         * mcf.c: Likewise.
1201         * mode-switching.c: Likewise.
1202         * modulo-sched.c: Likewise.
1203         * omega.c: Likewise.
1204         * omega.h: Likewise.
1205         * omp-low.c: Likewise.
1206         * optabs.c: Likewise.
1207         * optabs.h: Likewise.
1208         * opts-common.c: Likewise.
1209         * opts.c: Likewise.
1210         * params.def: Likewise.
1211         * params.h: Likewise.
1212         * passes.c: Likewise.
1213         * plugin.c: Likewise.
1214         * postreload-gcse.c: Likewise.
1215         * postreload.c: Likewise.
1216         * predict.c: Likewise.
1217         * predict.def: Likewise.
1218         * pretty-print.c: Likewise.
1219         * pretty-print.h: Likewise.
1220         * print-rtl.c: Likewise.
1221         * print-tree.c: Likewise.
1222         * profile.c: Likewise.
1223         * read-rtl.c: Likewise.
1224         * real.c: Likewise.
1225         * recog.c: Likewise.
1226         * reg-stack.c: Likewise.
1227         * regcprop.c: Likewise.
1228         * reginfo.c: Likewise.
1229         * regmove.c: Likewise.
1230         * regrename.c: Likewise.
1231         * regs.h: Likewise.
1232         * regstat.c: Likewise.
1233         * reload.c: Likewise.
1234         * reload1.c: Likewise.
1235         * resource.c: Likewise.
1236         * rtl.c: Likewise.
1237         * rtl.def: Likewise.
1238         * rtl.h: Likewise.
1239         * rtlanal.c: Likewise.
1240         * sbitmap.c: Likewise.
1241         * sched-deps.c: Likewise.
1242         * sched-ebb.c: Likewise.
1243         * sched-int.h: Likewise.
1244         * sched-rgn.c: Likewise.
1245         * sched-vis.c: Likewise.
1246         * sdbout.c: Likewise.
1247         * sel-sched-dump.c: Likewise.
1248         * sel-sched-dump.h: Likewise.
1249         * sel-sched-ir.c: Likewise.
1250         * sel-sched-ir.h: Likewise.
1251         * sel-sched.c: Likewise.
1252         * sel-sched.h: Likewise.
1253         * sese.c: Likewise.
1254         * sese.h: Likewise.
1255         * simplify-rtx.c: Likewise.
1256         * stack-ptr-mod.c: Likewise.
1257         * stmt.c: Likewise.
1258         * stor-layout.c: Likewise.
1259         * store-motion.c: Likewise.
1260         * stringpool.c: Likewise.
1261         * stub-objc.c: Likewise.
1262         * sync-builtins.def: Likewise.
1263         * target-def.h: Likewise.
1264         * target.h: Likewise.
1265         * targhooks.c: Likewise.
1266         * targhooks.h: Likewise.
1267         * timevar.c: Likewise.
1268         * tlink.c: Likewise.
1269         * toplev.c: Likewise.
1270         * toplev.h: Likewise.
1271         * tracer.c: Likewise.
1272         * tree-affine.c: Likewise.
1273         * tree-affine.h: Likewise.
1274         * tree-browser.def: Likewise.
1275         * tree-call-cdce.c: Likewise.
1276         * tree-cfg.c: Likewise.
1277         * tree-cfgcleanup.c: Likewise.
1278         * tree-chrec.c: Likewise.
1279         * tree-chrec.h: Likewise.
1280         * tree-complex.c: Likewise.
1281         * tree-data-ref.c: Likewise.
1282         * tree-data-ref.h: Likewise.
1283         * tree-dfa.c: Likewise.
1284         * tree-dump.c: Likewise.
1285         * tree-dump.h: Likewise.
1286         * tree-eh.c: Likewise.
1287         * tree-flow-inline.h: Likewise.
1288         * tree-flow.h: Likewise.
1289         * tree-if-conv.c: Likewise.
1290         * tree-inline.c: Likewise.
1291         * tree-into-ssa.c: Likewise.
1292         * tree-loop-distribution.c: Likewise.
1293         * tree-loop-linear.c: Likewise.
1294         * tree-mudflap.c: Likewise.
1295         * tree-nested.c: Likewise.
1296         * tree-nomudflap.c: Likewise.
1297         * tree-nrv.c: Likewise.
1298         * tree-object-size.c: Likewise.
1299         * tree-optimize.c: Likewise.
1300         * tree-outof-ssa.c: Likewise.
1301         * tree-parloops.c: Likewise.
1302         * tree-pass.h: Likewise.
1303         * tree-phinodes.c: Likewise.
1304         * tree-predcom.c: Likewise.
1305         * tree-pretty-print.c: Likewise.
1306         * tree-profile.c: Likewise.
1307         * tree-scalar-evolution.c: Likewise.
1308         * tree-ssa-address.c: Likewise.
1309         * tree-ssa-alias.c: Likewise.
1310         * tree-ssa-ccp.c: Likewise.
1311         * tree-ssa-coalesce.c: Likewise.
1312         * tree-ssa-copy.c: Likewise.
1313         * tree-ssa-copyrename.c: Likewise.
1314         * tree-ssa-dce.c: Likewise.
1315         * tree-ssa-dom.c: Likewise.
1316         * tree-ssa-dse.c: Likewise.
1317         * tree-ssa-forwprop.c: Likewise.
1318         * tree-ssa-ifcombine.c: Likewise.
1319         * tree-ssa-live.c: Likewise.
1320         * tree-ssa-live.h: Likewise.
1321         * tree-ssa-loop-ch.c: Likewise.
1322         * tree-ssa-loop-im.c: Likewise.
1323         * tree-ssa-loop-ivcanon.c: Likewise.
1324         * tree-ssa-loop-ivopts.c: Likewise.
1325         * tree-ssa-loop-manip.c: Likewise.
1326         * tree-ssa-loop-niter.c: Likewise.
1327         * tree-ssa-loop-prefetch.c: Likewise.
1328         * tree-ssa-loop-unswitch.c: Likewise.
1329         * tree-ssa-loop.c: Likewise.
1330         * tree-ssa-math-opts.c: Likewise.
1331         * tree-ssa-operands.c: Likewise.
1332         * tree-ssa-operands.h: Likewise.
1333         * tree-ssa-phiopt.c: Likewise.
1334         * tree-ssa-phiprop.c: Likewise.
1335         * tree-ssa-pre.c: Likewise.
1336         * tree-ssa-propagate.c: Likewise.
1337         * tree-ssa-reassoc.c: Likewise.
1338         * tree-ssa-sccvn.c: Likewise.
1339         * tree-ssa-sink.c: Likewise.
1340         * tree-ssa-structalias.c: Likewise.
1341         * tree-ssa-ter.c: Likewise.
1342         * tree-ssa-threadedge.c: Likewise.
1343         * tree-ssa-threadupdate.c: Likewise.
1344         * tree-ssa-uncprop.c: Likewise.
1345         * tree-ssa.c: Likewise.
1346         * tree-ssanames.c: Likewise.
1347         * tree-switch-conversion.c: Likewise.
1348         * tree-tailcall.c: Likewise.
1349         * tree-vect-data-refs.c: Likewise.
1350         * tree-vect-generic.c: Likewise.
1351         * tree-vect-loop-manip.c: Likewise.
1352         * tree-vect-loop.c: Likewise.
1353         * tree-vect-patterns.c: Likewise.
1354         * tree-vect-slp.c: Likewise.
1355         * tree-vect-stmts.c: Likewise.
1356         * tree-vectorizer.c: Likewise.
1357         * tree-vectorizer.h: Likewise.
1358         * tree-vrp.c: Likewise.
1359         * tree.c: Likewise.
1360         * tree.def: Likewise.
1361         * tree.h: Likewise.
1362         * treestruct.def: Likewise.
1363         * unwind-compat.c: Likewise.
1364         * unwind-dw2-fde-glibc.c: Likewise.
1365         * unwind-dw2.c: Likewise.
1366         * value-prof.c: Likewise.
1367         * value-prof.h: Likewise.
1368         * var-tracking.c: Likewise.
1369         * varasm.c: Likewise.
1370         * varpool.c: Likewise.
1371         * vec.c: Likewise.
1372         * vec.h: Likewise.
1373         * vmsdbgout.c: Likewise.
1374         * web.c: Likewise.
1375         * xcoffout.c: Likewise.
1377 2009-11-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1379         * pa.c (output_call): Only use sr4 for long interspace calls if
1380         call binds local and generating non PIC code.
1381         (attr_length_call): Adjust length calculation for above.
1383 2009-11-25  Uros Bizjak  <ubizjak@gmail.com>
1385         * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
1386         (add<mode>3_carry): Change operand order of plus RTX.
1387         (*add<mode>3_carry): Ditto.
1388         (*addsi3_carry_zext): Ditto.
1389         (*add<dwi>3_doubleword): Update for changed operand order.
1390         (*negti2_1 splitter): Ditto.
1391         (*negdi2_1 splitter): Ditto.
1392         (<plusminus_insn><mode>3_carry): Macroize expander from
1393         {add,sub}<mode>3_carry patterns using plusminus code iterator.
1394         (*<plusminus_insn><mode>3_carry): Macroize insn from
1395         *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
1396         (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
1397         patterns using SDWIM mode iterator.
1398         (*neg<dwi>2_doubleword): New insn_and_split pattern.  Macroize
1399         pattern from *neg{di,ti}2_1 patterns and corresponding splitters
1400         using DWIH mode iterator.
1401         (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
1402         using SWI mode iterator.
1403         (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
1404         (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
1405         patterns using SWIM mode iterator.
1406         (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
1407         patterns using SWI248 mode iterator.
1408         (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
1409         patterns using SWI mode iterator.
1410         (*one_cmpl<mode>2_2 splitter): Macroize splitter from
1411         one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
1413 2009-11-24  Michael Matz  <matz@suse.de>
1415         * expr.c (set_storage_via_libcall): Fix build_call_expr call.
1417 2009-11-24  David Binderman  <dcb314@hotmail.com>
1419         * expr.c (store_field): Remove set but not used local variable
1420         width_mask.
1421         (expand_expr_real_2): Remove treeop2.
1422         * gcse.c (update_ld_motion_stores): Remove new_rtx.
1423         * haifa-sched.c (max_issue): Remove points.
1424         (sched_create_recovery_edges): Remove e.
1425         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
1427 2009-11-24  Nick Clifton  <nickc@redhat.com>
1429         * config/v850/v850.c (function_arg): Fix handling of zero-length
1430         function arguments.
1432 2009-11-24  Michael Matz  <matz@suse.de>
1434         * tree.h (union tree_ann_d): Don't declare.
1435         (tree_base): Remove ann field.
1436         (struct var_ann_d): Declare forward.
1437         (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
1438         (DECL_VAR_ANN_PTR): New macro.
1439         * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
1440         accept only VAR, PARM or RESULT decls.
1441         (create_tree_common_ann): Remove.
1442         (remove_referenced_var): Use DECL_VAR_ANN_PTR.
1443         * tree-eh.c (lookup_expr_eh_lp): Remove.
1444         * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
1445         DECL_VAR_ANN_PTR.
1446         (ann_type, tree_common_ann, get_tree_common_ann): Remove.
1447         * tree-flow.h (enum tree_ann_type): Remove.
1448         (struct tree_ann_common_d): Remove.
1449         (struct var_ann_d): Remove common field.
1450         (union tree_ann_d): Remove.
1451         (tree_ann_t, tree_ann_common_t): Remove typedefs.
1452         (tree_common_ann, get_tree_common_ann, ann_type,
1453         create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
1454         * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
1455         * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
1456         * builtins.c (expand_builtin_memcpy): Use
1457         currently_expanding_gimple_stmt instead of tree annotation.
1458         (expand_builtin_memset_args): Ditto.
1459         * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
1460         (expand_call_stmt): Don't set tree annotation.
1461         (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
1462         * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
1463         * gimple.h (currently_expanding_gimple_stmt): Declare.
1465 2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1467         * dwarf2out.c (add_location_or_const_value_attribute): Remove
1468         useless NOTE_VAR_LOCATION_STATUS call.
1469         * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
1471 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
1473         * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
1474         being called recursively.
1476 2009-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1478         * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
1479         $(MD5_H) params.def params.h prefix.h tree-inline.h.
1481 2009-11-24  Paul Brook  <paul@codesourcery.com>
1483         * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
1484         typo.
1486 2009-11-24  Julian Brown  <julian@codesourcery.com>
1487             Paul Brook  <paul@codesourcery.com>
1489         * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
1490         (arm_dwarf_register_span): New function.
1491         (arm_dbx_register_number): Add VFPv3 dwarf numbering.
1493 2009-11-24  David Binderman  <dcb314@hotmail.com>
1495         * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
1496         local variable bb_note.
1497         * dominance.c (get_dominated_by): Likewise local var n.
1498         (output_file_names): Likewise local var idx.
1499         (add_location_or_const_value_attribute): Likewise local var status.
1500         * dwarf2out.c (gen_variable_die): Likewise local var field.
1501         * emit-rtl.c (no_line_numbers): Remove.
1502         (init_emit_once): Remove line_numbers parameter.
1503         * rtl.h (init_emit_once): Adjust prototype.
1504         * toplev.c (backend_init): Adjust init_emit_once call.
1506 2009-11-24  Richard Guenther  <rguenther@suse.de>
1508         PR tree-optimization/42142
1509         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1510         Handle iv-dependent (non-)kills properly.
1511         (mark_aliased_reaching_defs_necessary): Pass the basic-block
1512         of the reference statement to mark_aliased_reaching_defs_necessary_1.
1514 2009-11-24  Martin Jambor  <mjambor@suse.cz>
1516         PR tree-optimization/42154
1517         * tree-sra.c (struct access): Added comments.
1518         (sra_modify_expr): Build references to the old aggregate with
1519         build_ref_for_offset instead of reusing access->expr.
1520         (load_assign_lhs_subreplacements): Likewise.
1522 2009-11-24  Uros Bizjak  <ubizjak@gmail.com>
1524         * config/i386/i386.md (add<mode>3_carry): Change insn pattern
1525         to expander.
1526         (sub<mode>3_carry): Ditto.
1527         (x86_mov<mode>cc_0_m1): Ditto.
1528         (*add<mode>3_carry): New insn pattern.  Use VOIDmode match_operator
1529         for ix86_carry_flag_operator operator predicate.
1530         (*sub<mode>3_carry): Ditto.
1531         (*x86_mov<mode>cc_0_m1): Ditto.
1532         (*addsi3_carry_zext): Use VOIDmode match_operator for
1533         ix86_carry_flag_operator operator predicate.
1534         (*subsi3_carry_zext): Ditto.
1535         (*x86_mov<mode>cc_0_m1_s): Ditto.
1536         (*x86_mov<mode>cc_0_m1_neg): Ditto.
1537         * config/i386/predocates.md (ix86_carry_flag_operator): Do not
1538         check operator sub-expressions for FLAGS_REG and const0_rtx.
1539         * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
1540         (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
1541         (ix86_expand_int_addcc): Update calls to
1542         gen_{add,sub}{qi,hi,si,di}3_carry.  Do not set mode of compare_op.
1543         (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
1544         Do not set mode of compare operation.
1546 2009-11-23  Jan Hubicka  <jh@suse.cz>
1548         PR middle-end/42151
1549         * ipa-inline.c (inline_transform): Avoid ICE when transform is called
1550         twice.
1552 2009-11-23  Jan Hubicka  <jh@suse.cz>
1554         * ipa-cp.c (ipcp_compute_node_scale): Work around completely
1555         wrong profile updates.
1556         * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
1557         having largest frequency.
1558         * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
1559         used uninitalized warning.
1560         * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
1561         frequencies.
1563 2009-11-23  Uros Bizjak  <ubizjak@gmail.com>
1565         * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
1566         of gen_rtx_REG to generate operand 5.
1567         (*cmp_ssub_sidi): Ditto.
1569 2009-11-23  Richard Henderson  <rth@redhat.com>
1571         * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
1572         mismatch.
1574 2009-11-23  Paul Brook  <paul@codesourcery.com>
1576         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
1577         case for noreturn functions.
1578         (arm_compute_save_reg_mask): Remove special noreturn handling.
1580 2009-11-23  Richard Guenther  <rguenther@suse.de>
1582         * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
1583         size for DECL bases.
1585 2009-11-22  Richard Henderson  <rth@redhat.com>
1587         * i386.c (avx_vpermilp_parallel): New function.
1588         * i386-protos.h: Declare it.
1589         * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
1590         avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
1591         * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
1592         (ssescalarnum, ssedoublesizemode): Add AVX modes.
1593         (vpermilbits): Remove.
1594         (avx_vpermil<mode>): Change insns to expanders.
1595         (*avx_vpermil<mode>): New.  Use vec_select.
1597 2009-11-22  Richard Earnshaw  <rearnsha@arm.com>
1599         * opts.c (decode_options): Don't enable flag_schedule_insns
1600         when optimizing for size.
1601         * doc/invoke.texi: Document change.
1603 2009-11-22  Uros Bizjak  <ubizjak@gmail.com>
1605         PR target/42113
1606         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
1607         of scratch register to SImode.
1608         (*cmp_sadd_sidi): Ditto.
1609         (*cmp_ssub_si): Ditto.
1610         (*cmp_ssub_sidi): Ditto.
1612 2009-11-21  Ian Lance Taylor  <iant@google.com>
1614         * Makefile.in (HOST_LIBS): Move higher in file.
1615         (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
1616         is not empty, set to $(CC) and $(CFLAGS).
1618 2009-11-22  Martin Jambor  <mjambor@suse.cz>
1620         * tree-cfg.c (verify_types_in_gimple_reference): Error out on
1621         V_C_E of an SSA_NAME or an invariant if lvalue is required.
1622         (verify_gimple_call): Verify LHS also with with
1623         verify_types_in_gimple_reference.
1625 2009-11-21  Martin Jambor  <mjambor@suse.cz>
1627         PR middle-end/42025
1628         * tree-sra.c (access_precludes_ipa_sra_p): New function.
1629         (splice_param_accesses): Check all accesses by calling
1630         access_precludes_ipa_sra_p.
1631         (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
1632         not convert types if it is true.
1633         (sra_ipa_modify_assign): Convert types in case of mismatch.
1635 2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1637         * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
1638         for operand 1.
1640 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
1642         * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
1643         (mips_mulsidi3_gen_fn): Declare new function.
1644         * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
1645         * config/mips/mips.md (<u>mulsidi3): Change condition to use
1646         mips_mulsidi3_gen_fn.  Use mips_mulsidi3_gen_fn to generate the insn.
1647         (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
1648         (mulsidi3_64bit_dmul): New define_insn.
1650 2009-11-21  Ben Elliston  <bje@au.ibm.com>
1652         * gengtype-lex.l: Enable noinput flex option.
1653         (YY_NO_INPUT): Remove define.
1655 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1657         * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
1658         (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
1659         (insert_debug_temps_for_defs): Handle PHI nodes.
1660         * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
1661         SSA names.
1663 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1665         * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
1666         after remove_phi_node.
1668 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
1670         PR tree-optimization/42078
1671         * gimple.h (gimple_replace_lhs): New declaration.
1672         * gimple.c (gimple_replace_lhs): New function.
1673         * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
1674         modifying the call.
1676 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
1678         * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
1679         (xop_mulv2div2di3_low): Same.
1680         (*xop_pmacsdqh_mem): Same.
1682 2009-11-20  Richard Henderson  <rth@redhat.com>
1684         * config/i386/i386-builtin-types.awk: New file.
1685         * config/i386/i386-builtin-types.def: New file.
1686         * config/i386/t-i386: Use them to build i386-builtin-types.inc.
1687         * config/i386/i386.c: Include it.
1688         (ix86_builtin_type_tab, ix86_get_builtin_type): New.
1689         (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
1690         (struct builtin_isa): Remove GTY marker.  Replace tree type with
1691         ix86_builtin_func_type; add set_and_not_built_p.
1692         (def_builtin): Change type parameter to tcode; use
1693         ix86_get_builtin_func_type; update all callers.  Accept zero mask
1694         to mean the builtin is unconditionally available.
1695         (ix86_add_new_builtins): Use set_and_not_built_p instead of type
1696         being set to NULL.
1697         (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
1698         Update some users to rationalized enumeration codes from new include.
1699         (enum multi_arg_type): Remove.  Replace all enumeration values
1700         with defines to new ix86_builtin_func_type.
1701         (ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
1702         all type resolution to def_builtin.
1703         (ix86_init_builtin_types): Split out from ...
1704         (ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
1706 2009-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1708         PR target/41787
1709         * config/rs6000/rs6000.c (struct machine_function): Revert
1710         2009-10-23 change to set VRSAVE to non-0 if we use VSX.
1711         (rs6000_expand_to_rtl_hook): Ditto.
1712         (rs6000_check_vector_mode): Ditto.
1713         (compute_vrsave_mask): Ditto.
1715 2009-11-20  Paul Brook  <paul@codesourcery.com>
1717         * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
1718         * config/arm/arm-cores.def: Add cortex-a5.
1719         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
1720         * config/arm/arm-tune.md: Regenerate.
1722 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
1724         PR middle-end/39960
1725         * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
1726         (ref_pos): New field in structure.
1727         (insert_new_var_in_stmt): New function.
1730 2009-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1732         * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
1733         * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
1734         (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
1735         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
1736         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1737         INT_LEAST64_TYPE): Define.
1738         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
1739         UINT_LEAST64_TYPE): Define.
1740         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
1741         INT_FAST64_TYPE): Define.
1742         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1743         UINT_FAST64_TYPE): Define.
1744         (INTPTR_TYPE, UINTPTR_TYPE): Define.
1746 2009-11-20  Julian Brown  <julian@codesourcery.com>
1748         * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
1749         specially for Thumb-1.
1750         (ASM_OUTPUT_REG_POP): Likewise.
1752 2009-11-19  Jason Merrill  <jason@redhat.com>
1754         * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
1756 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1757             Rafael Avila de Espindola  <espindola@google.com>
1759         * doc/plugins.texi (Plugin initialization): Added advices for
1760         retrieving the version of GCC at plugin compilation and loading times.
1762 2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1764         * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
1765         (dump_active_plugins): output to file everything. Use
1766         internationalized dump & FMT_FOR_PLUGIN_EVENT.
1768 2009-11-19  Richard Guenther  <rguenther@suse.de>
1770         * gimple.c (canonicalize_cond_expr_cond): Strip conversions
1771         around truth-valued expressions.
1772         * tree.c (free_lang_data): Untangle check for LTO frontend.
1774 2009-11-19  Jakub Jelinek  <jakub@redhat.com>
1776         * tree.c (need_assembler_name_p): Use cgraph_get_node instead
1777         of cgraph_node_for_decl.
1778         * cgraph.h (cgraph_node_for_decl): Remove prototype.
1779         * cgraph.c (cgraph_node_for_decl): Remove.
1780         (cgraph_get_node): Just return NULL if !cgraph_hash.
1782 2009-11-19  Paul Brook  <paul@codesourcery.com>
1784         * config.gcc: Add new ARM --with-fpu options.
1785         * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
1786         * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
1788 2009-11-18  Richard Guenther  <rguenther@suse.de>
1790         * gimple.h (union gimple_statement_d): Add gsmembase member.
1791         (gimple_vuse_op): Use gsmembase for access.
1792         (gimple_vdef_op): Likewise.
1793         (gimple_vuse): Likewise.
1794         (gimple_vdef): Likewise.
1795         (gimple_vuse_ptr): Likewise.
1796         (gimple_vdef_ptr): Likewise.
1797         (gimple_set_vuse): Likewise.
1798         (gimple_set_vdef): Likewise.
1799         * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
1801 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1803         * doc/arm-neon-intrinsics.texi: Regenerated.
1805 2009-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1807         * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
1809 2009-11-18  Paul Brook  <paul@codesourcery.com>
1810             Daniel Jacobowitz  <dan@codesourcery.com>
1812         * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
1813         (arm_arch7em): New variable.
1814         (all_architectures): Add armv7e-m.
1815         (arm_override_options): Set arm_arch7em.
1816         * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
1817         Include arm_arch7em.
1818         (arm_arch7em): Declare.
1820 2009-11-18  Richard Guenther  <rguenther@suse.de>
1822         * lto-streamer-in.c (input_gimple_stmt): Assert that we find
1823         a valid field decl if checking is enabled.
1825 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1827         * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
1828         (lto_ipa_fixup_call_notes): Declare.
1829         * ipa-prop.c (ipa_note_param_call): Store gimple uid.
1830         (update_call_notes_after_inlining): Copy call stmt uid to the new
1831         edge.
1832         (ipa_write_param_call_note): New function.
1833         (ipa_read_param_call_note): New function
1834         (ipa_write_node_info): Write also param call notes.  Removed a bogus
1835         comment, reformatted to fit 80 columns.
1836         (ipa_read_node_info): Read also param call notes. Removed a bogus
1837         comment.  Remove ipa_edge_args_vector growth.
1838         (lto_ipa_fixup_call_notes): New function.
1839         * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
1840         * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
1841         inlining regardless of flag_wpa.
1842         (cgraph_decide_inlining_of_small_functions): Likewise.
1843         (cgraph_decide_inlining): Likewise.
1844         (inline_read_summary): Likewise.
1846 2009-11-18  Jan Hubicka  <jh@suse.cz>
1848         * predict.c (compute_function_frequency): Export.
1849         * predict.h (compute_function_frequency): Declare.
1850         * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
1852 2009-11-18  Martin Jambor  <mjambor@suse.cz>
1854         * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
1855         on all nodes we write summaries for.
1857 2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
1859         PR middle-end/22201
1860         * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
1861         (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
1862         (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
1863         (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
1864         (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
1865         (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
1866         (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
1867         description string.
1869 2009-11-18  Jakub Jelinek  <jakub@redhat.com>
1871         * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
1872         unnecessarily.
1873         (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
1875         PR c++/3187
1876         * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
1877         fields.
1878         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1879         prototypes.
1880         * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
1881         cgraph_materialize_all_clones): Handle same_body aliases.
1882         * cgraph.c (cgraph_allocate_node): New function.
1883         (cgraph_create_node): Use it.
1884         (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
1885         cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
1886         (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
1887         functions.
1888         * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
1889         (input_node): Stream in same_body aliases.
1890         * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
1891         for same_body aliases.
1892         (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
1894 2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1896         PR other/39888
1897         * config/darwin.h: Use the extension stub libraries to access
1898         current libgcc_s features.
1900 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1902         PR debug/41926
1903         * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
1904         (vect_transform_loop): Call it.
1906 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1908         * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
1909         released SSA names.
1911 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1913         PR debug/41888
1914         PR debug/41886
1915         * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
1916         are ok.
1917         * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
1918         (try_generate_gimple_bb): Skip debug stmts when finding data refs.
1919         * sese.c (sese_build_liveouts_bb): Skip debug stmts.
1920         (sese_bad_liveouts_use): New.
1921         (sese_reset_debug_liveouts_bb): New.
1922         (sese_build_liveouts): Use it.
1923         (rename_variables_in_stmt): Reset debug stmts rather than creating
1924         new vars for them.
1925         (expand_scalar_variable_stmt): Likewise.
1927 2009-11-18  Alexandre Oliva  <aoliva@redhat.com>
1929         * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
1930         (df_ref_remove): Likewise.
1932 2009-11-17  Jan Hubicka  <jh@suse.cz>
1934         * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
1935         info.
1937 2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1939         * toplev.c (process_options): Remove dead code.
1940         * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
1942 2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
1944         * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
1945         nodes.
1947 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1949         PR tree-optimization/41857
1950         * tree-ssa-address.c (move_hint_to_base): Use void pointer to
1951         TYPE's address space instead of pointer to TYPE.
1953 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1955         * reload.c (find_reloads_address): Fix typo.
1957 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1959         * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
1960         registers in leaf functions if possible.
1962 2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
1964         * config/m68k/m68k-devices.def: Add MCF5441x family.
1966 2009-11-17  Jan Hubicka  <jh@suse.cz>
1968         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
1969         removed node.
1970         * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
1972 2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
1974         * config/i386/predicates.md (x86_64_szext_general_operand): Do not
1975         nest ior expressions.
1976         (x86_64_szext_nonmemory_operand): Ditto.
1977         (call_insn_operand): Ditto.
1979 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1981         * stmt.c (expand_asm_stmt): Get locus from stmt.
1983 2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
1985         * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
1986         Create the decl label for the new dest block on demand.  Require
1987         a fallthrough edge if no asm labels were redirected.
1989 2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
1991         * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
1992         operand 1 predicate.
1993         (cstoresi4): Ditto for operand 2.
1994         (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
1995         patterns using SDWIM mode iterator.
1996         (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
1997         using SWIM mode iterator.
1998         (cmpdi_1): Rename from cmpdi_1_rex64.
1999         (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
2000         SWI48 mode iterator.
2001         (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
2002         using SWI mode iterator.
2003         (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
2004         (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
2005         (*cmpqi_ext_3_insn): Make private.
2006         (*cmpqi_ext_3_insn_rex64): Make private.
2007         (cmpstrnsi): Update for renamed cmpdi_1_rex64.
2008         * config/i386/predicates.md (cmpsi_operand): Remove.
2010 2009-11-16  Paul Brook  <paul@codesourcery.com>
2012         * doc/invoke.texi: Document ARM VFPv4 based FPUs.
2013         * config/arm/arm.c (all_fpus): Add VFPv4 entries.
2015 2009-11-14  Jan Hubicka  <jh@suse.cz>
2017         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
2018         ENTRY_BLOCK_PTR.
2019         * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
2020         zero out all callees.
2021         * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
2022         frequency and count match.
2023         * ipa-inline.c (update_noncloned_frequencies): New function.
2024         (cgraph_clone_inlined_nodes): Use it.
2025         * tree-inline.c (copy_bb): Fix frequency scaling; output
2026         diagnostic on frequency mismatches to dump file.
2027         (initialize_cfun): Do not scale frequency; fix count scaling;
2028         initialize entry and exit block frequencies; copy profile info.
2029         (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
2030         (copy_body): Use frequency_scale as argument.
2031         (expand_call_inline): Compute frequency scale and output diagnostic
2032         to dump file.
2033         (delete_unreachable_blocks_update_callgrah): Remove checking that
2034         has to be done after edge redirection.
2035         (tree_function_versioning): Update initialize_cfun and copy_body call.
2037 2009-11-14  Jan Hubicka  <jh@suse.cz>
2039         * cgraph.c (cgraph_release_function_body): Update use of
2040         ipa_transforms_to_apply.
2041         (cgraph_remove_node): Remove ipa_transforms_to_apply.
2042         * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
2043         * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
2044         copied body.
2045         (cgraph_materialize_clone): Remove original if dead.
2046         * lto-streamer-in.c (lto_read_body): Remove FIXME and
2047         ipa_transforms_to_apply hack.
2048         * function.h (struct function): Add ipa_transforms_to_apply.
2049         * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
2050         * tree-inline.c (copy_bb): Update sanity check.
2051         (initialize_cfun): Do not copy ipa_transforms_to_apply.
2052         (expand_call_inline): remove dead clone originals.
2053         (tree_function_versioning): Merge transformation queues.
2054         * passes.c (add_ipa_transform_pass): Remove.
2055         (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
2056         tracking.
2057         (execute_all_ipa_transforms): Update.
2058         (execute_one_pass): Update.
2060 2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2062         PR target/21078, 21080
2063         * config/avr/avr.c (avr_return_addr_rtx): New function for
2064         builtin_return_address.
2065         (expand_prologue): Calculate stack usage.
2066         (avr_asm_function_end_prologue): Output stack size and offset label.
2067         * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
2068         (machine_function): Add stack_usage.
2069         * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
2071 2009-11-14  Anatoly Sokolov  <aesok@post.ru>
2073         * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
2074         new 'outgoing' argument.
2075         (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
2076         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2077         * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
2078         iq2000_function_value_regno_p.
2079         (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2080         * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
2081         Declare.
2083 2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
2085         PR target/42031
2086         * arm.md (adddi_sesidi_di): Place tied contraint first.
2087         (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
2088         (subdi_zesidi_di, subdi_sesidi_di): Likewise.
2089         (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
2090         (mulsi3addsi, mulsi3addsi_compare0): Likewise.
2091         (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
2092         (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
2093         (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
2094         (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
2095         (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
2097 2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
2099         * config/i386/predicates.md (call_register_no_elim_operand):
2100         New predicate.  Reject stack register as valid call operand
2101         for 32bit targets.
2102         (call_insn_operand): Use call_register_no_elim_operand.
2104 2009-11-13  Richard Henderson  <rth@redhat.com>
2106         * function.c (stack_protect_prologue): Don't bypass expand_expr
2107         for stack_protect_guard and guard_decl.
2108         (stack_protect_epilogue): Likewise.
2110 2009-11-13  Jan Hubicka  <jh@suse.cz>
2112         * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
2113         when to PUBLIC is set.
2115 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
2117         PR middle-end/42029
2118         * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
2119         tmp_load if needed.
2121 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2123         PR target/41900
2124         * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
2125         *call_value_1): Use "lsm" as operand 1 constraint.
2126         * config/i386/predicates.md (call_insn_operand): Depend on
2127         index_register_operand to avoid %esp register.
2129 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2131         Revert:
2132         2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
2134         PR target/41900
2135         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
2136         (TARGET_CALL_ESP): New define.
2137         * config/i386/i386.c (initial_ix86_tune_features): Initialize
2138         X86_ARCH_CALL_ESP.
2139         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
2140         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
2141         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
2142         TARGET_CALL_ESP.
2143         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
2144         New patterns, use "lsm" as operand 1 constraint.
2145         * config/i386/predicates.md (call_insn_operand): Depend on
2146         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
2148 2009-11-13  Jason Merrill  <jason@redhat.com>
2150         PR debug/26965
2151         * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
2152         Don't emit a second declaration at any scope.
2154 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
2156         PR rtl-optimization/41697
2157         * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
2158         a conditional jump has a single successor.
2160 2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
2162         * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
2163         allocate reg_last when in case lazy_reg_last is true.
2164         (init_deps_reg_last): New.
2165         (free_deps): When max_reg is 0, this context is already freed.
2166         * sched-int.h (init_deps_reg_last): Export.
2167         (init_deps): Update prototype.
2168         * sched-ebb.c (schedule_ebb): Update the call to init_deps.
2169         * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
2170         * ddg.c (build_intra_loop_deps): Likewise.
2171         * sel-sched-ir.c (copy_deps_context, create_deps_context,
2172         reset_deps_context, deps_init_id): Likewise.
2173         (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
2174         (free_data_for_scheduled_insn): New, break down from ...
2175         (free_first_time_insn_data): ... here.
2176         (has_dependence_p): Allocate reg_last now, when it is needed.
2177         (extend_insn_data): When maximal LUID is big enough, allocate
2178         per-insn data in smaller chunks.
2179         * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
2180         * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
2181         in scheduled insn.
2183 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
2185         * config/i386/i386.md (call_value): Fix comment.
2186         (sibcall_value): Ditto.
2188 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2190         * config/i386/linux-unwind.h (x86_frob_update_context): New function.
2191         (MD_FROB_UPDATE_CONTEXT): Define.
2193 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2194             Laurent GUERBY  <laurent@guerby.net>
2196         * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
2197         Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
2198         (sparc_fallback_frame_state): Tidy.  Compensate for RETURN_ADDR_OFFSET.
2200 2009-11-12  Jan Hubicka  <jh@suse.cz>
2202         * ipa.c (function_and_variable_visibility): Fix my accidentail commit
2203         and clear DECL_COMMON on localized declarations.
2205 2009-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2207         PR rtl-opt/38582
2208         * regrename.c (struct du_head): New structure; some elements moved
2209         from...
2210         (struct du_chain): ... this one.
2211         (open_chains, closed_chains): Now of type struct du_head *.
2212         (do_replace): Accept du_head argument, not du_chain.  All callers
2213         changed.  Modified code to match new data structures.
2214         (build_def_use): Return a list of du_head structures.  Modified code
2215         to match new data structures.
2216         (dump_def_use_chain): Accept du_head argument, not du_chain.  All
2217         callers changed.  Modified code to match new data structures.
2218         (merge_overlapping_regs): Accept du_head argument, not du_chain.  All
2219         callers changed.  Modified code to match new data structures.
2220         (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
2221         Allocate a du_head structure as well as a du_chain when creating a
2222         new chain.  Modified other code to match new data structures.
2224 2009-11-12  Jan Hubicka  <jh@suse.cz>
2226         * cgraph.h (varpool_node_name): Declare.
2227         * cgraphunit.c (process_function_and_variable_attributes): Set
2228         force_output flag on used variables.
2229         * ipa.c (function_and_variable_visibility): Dump externally visible
2230         and needed variables.
2231         * varpool.c (varpool_node_name): Export.
2232         (decide_is_variable_needed): Check COMDAT for externally visible vars;
2233         ignore needed flag.
2235 2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
2237         PR middle-end/41930
2238         * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
2239         processing if XEXP (x, i) is NULL.
2241 2009-11-12  Jan Hubicka  <jh@suse.cz>
2243         * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
2244         imply PUBLIC || EXTERNAL.
2246 2009-11-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2248         PR middle-end/41440
2249         * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
2250         single successor block, ending with jump created by RTL expander.
2252 2009-11-11  Jan Hubicka  <jh@suse.cz>
2254         PR middle-end/41729
2255         * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
2256         and WEAK variables at -fwhole-program.
2258         PR middle-end/41735
2259         * ipa.c (whole_program_function_and_variable_visility): COMDAT
2260         functions/variables are not needed even if they are externally visible.
2262 2009-11-11  Jan Hubicka  <jh@suse.cz>
2264         (patch by Richard Guenther)
2265         * lto-streamer-out.c (output_function): Output head of argument list
2266         earlier.
2267         * lto-streamer-in.c (input_function): Re-map arguments into merged
2268         declaration.
2270 2009-11-11  Jan Hubicka  <jh@suse.cz>
2272         * lto-cgraph.c: Include gcov-io.h
2273         (output_profile_summary): New function.
2274         (output_cgraph): Use it.
2275         (input_profile_summary): New function.
2276         (input_cgraph): Use it.
2277         * coverage.c (build_ctr_info_value): Use varpool; initalize
2278         DECL_ASSEMBLER_NAME.
2279         (create_coverage): Likewise.
2280         * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
2281         (tree_init_edge_profiler): Likewise.
2282         * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
2284 2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
2286         * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2287         * c-pragma.c (def_pragma_macro_value): Likewise.
2288         (def_pragma_macro): Likewise.
2289         (pushed_macro_table): Likewise.
2290         (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
2291         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
2293 2009-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
2295         * doc/plugins.texi (Registering custom attributes): section
2296         renamed as (Registering custom attributes or pragmas).
2297         Mentions custom attributes & pragmas, and c_register_pragma, with
2298         a small example.
2299         * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
2300         pragmas.
2301         * doc/extend.texi (Function Attributes): Mentions that plugin can
2302         provide their attributes.
2304 2009-11-11  Jon Beniston  <jon@beniston.com>
2306         * config.gcc: Add lm32 elf and uclinux targets.
2307         * config/lm32: New directory.
2308         * config/lm32/lm32.c: New file.
2309         * config/lm32/lm32.h: New file.
2310         * config/lm32/lm32.md: New file.
2311         * config/lm32/lm32.opt: New file.
2312         * config/lm32/lm32-protos.h: New file.
2313         * config/lm32/constraints.md: New file.
2314         * config/lm32/predicates.md: New file.
2315         * config/lm32/sfp-machine.h: New file.
2316         * config/lm32/t-fprules-softfp: New file.
2317         * config/lm32/uclinux-elf.h: New file.
2318         * doc/invoke.texi: Document lm32 options.
2319         * doc/contrib.texi: Document lm32 porter.
2320         * doc/install.texi: Document lm32 targets.
2322 2009-11-11  Martin Jambor  <mjambor@suse.cz>
2324         PR lto/41932
2325         * ipa-prop.c (ipa_update_after_lto_read): Call
2326         ipa_check_create_node_params and ipa_check_create_edge_args.  Also
2327         call ipa_initialize_node_params instead of ipa_populate_param_decls.
2329 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2331         * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
2332         (neon_expand_vector_init): Use them.  Also handle non-constant
2333         vectors with identical elements and vectors with only one
2334         non-constant element.
2335         (arm_print_operand): Handle 'y' modifier.
2336         * config/arm/arm-protos.h (neon_make_constant): Declare.
2337         * config/arm/neon.md (neon_vdup_n<mode>): Split into two
2338         patterns.  Use VX instead of VDQW for the first one.  Allow
2339         a VFP alternative and V32 modes for the second one.
2340         * config/arm/neon.ml (shape_elt): Add Alternatives.
2341         (ops): Use Alternatives for vdup lane instructions.
2342         * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
2343         * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
2345 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2347         * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
2348         operands.
2349         (movti, mov<mode>): Call force_reg on one operand if required.
2350         * config/arm/vec-common.md (mov<mode>): Likewise.
2352 2009-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2354         * config/arm/arm.c (arm_override_options): Enable scheduling for
2355         Thumb-2.
2357 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2359         PR target/10127
2360         PR ada/20548
2361         * expr.h (anti_adjust_stack_and_probe): Declare.
2362         * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
2363         parameter and rewrite head comment.
2364         (allocate_dynamic_stack_space): Adjust call to above function.
2365         * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
2367         * tree.h (dwarf2out_args_size): Delete.
2368         * dwarf2out.c (dwarf2out_args_size): Make static and move around.
2369         (dwarf2out_args_size_adjust): Delete prototype and move around.
2370         (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
2371         ACCUMULATE_OUTGOING_ARGS targets.
2373 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2375         * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
2376         DECL_SIZE of DECL_RESULT before evaluating it.
2378 2009-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2380         PR tree-optimization/41987
2381         * fold-const.c (const_binop): Avoid using fold_buildN().
2383 2009-11-10  Martin Jambor  <mjambor@suse.cz>
2385         * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
2386         (execute_all_ipa_stmt_fixups): Declare.
2387         * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
2388         * ipa-inline.c (pass_ipa_inline): Likewise.
2389         * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
2390         * ipa-reference.c (pass_ipa_reference): Likewise.
2391         * ipa.c (pass_ipa_whole_program_visibility): Likewise.
2392         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
2393         (pass_ipa_lto_finish_out): Likewise.
2394         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
2395         * passes.c (execute_ipa_stmt_fixups): New function.
2396         (execute_all_ipa_stmt_fixups): New function.
2397         * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
2399 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2401         PR ada/20548
2402         * explow.c (probe_stack_range): Fix typo.
2403         * config/sparc/sparc.md (probe_stack): New expander.
2405 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2407         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
2409 2009-11-09  Jason Merrill  <jason@redhat.com>
2411         * gdbinit.in (pgq): New function for printing gimple sequence.
2413 2009-11-09  Paul Brook  <paul@codesourcery.com>
2414             Daniel Jacobowitz  <dan@codesourcery.com>
2415             Sandra Loosemore  <sandra@codesourcery.com>
2417         * doc/extend.texi (Half-Precision): Update wording to reflect
2418         that there are now multiple -mfpu options that enable fp16
2419         hardware support.
2420         * doc/invoke.texi: Update list of ARM -mfpu= options.
2421         * config.gcc: Update ARM --with-fpu option list.
2422         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
2423         vfpv3xd and vfpv3xd-fp16.
2424         (use_vfp_abi): New function.
2425         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
2426         when undesirable.
2427         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
2428         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
2429         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
2430         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
2431         provides them.
2432         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
2433         NEON.
2434         (arm_print_operand): Handle 'p' modifier.
2435         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
2436         TARGET_FP16.
2437         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
2438         (TARGET_FP16): Define.
2439         * config/arm/vfp.md: Disable double-precision patterns if the FPU
2440         does not provide them.
2441         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
2442         double-precision values on a single-precision FPU.
2443         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
2444         double-precision constants.
2445         (movhf_vfp_neon): New pattern (was movhf_vfp).
2446         (movhf_vfp): Remove NEON instructions.
2447         * config/arm/constraints.md: Add new "Dy" constraint for
2448         double-precision constants.  Update description of "Dv".
2449         * config/arm/arm.md: Disable double-precision patterns if the FPU
2450         does not provide them
2452 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
2454         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
2455         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
2456         diagnostics.
2458 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
2460         * collect2.c (main): Search PLUGIN_LD for plugin linker.
2462         * configure.ac (--with-plugin-ld): New.  Default to ld.
2463         * configure: Regenerated.
2464         * config.in: Likewise.
2466         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
2467         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
2469 2009-11-08  Jonathan Gray  <jsg@openbsd.org>
2471         * config/openbsd-stdint.h: Change to reflect what
2472         c_common_nodes_and_builtins expects.
2474 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
2476         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
2478 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
2480         PR target/41985
2481         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
2482         function contains at least one local dynamic name.
2483         (print_operand) <case '&'>: Instead output operand lossage diagnostics
2484         here if that happens.
2486 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
2487             Joern Rennecke  <amylaar@spamcop.net>
2489         * cfgrtl.c (pass_free_cfg): Add pass name.
2490         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
2491         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
2492         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
2493         * df-core.c (pass_df_initialize_no_opt): Likewise.
2494         * except.c (pass_rtl_eh): Likewise.
2495         * function.c (pass_init_function, pass_leaf_regs): Likewise.
2496         * gcse.c (pass_rtl_pre): Change pass name.
2497         * passes.c (pass_postreload): Add pass name.
2498         (make_pass_instance): Don't use duplicate-tracking logic for
2499         names starting with '*'.
2500         (next_pass_1): Assert that pass has a name.
2501         (register_one_dump_file): If there is an space in the name,
2502         skip past it.
2503         * predict.c (pass_strip_predict_hints): Add pass name.
2504         * reg-stack.c (pass_stack_regs): Likewise.
2505         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2506         * tree-cfg.c (pass_warn_function_return,
2507         pass_warn_function_noreturn): Add pass name.
2508         * tree-dfa.c (pass_referenced_vars): Likewise.
2509         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
2510         Fix whitespace before comment.
2511         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
2512         (pass_init_datastructures): Add pass name.
2513         * tree-ssa-loop.c (pass_record_bounds): Likewise.
2514         * tree-ssa.c (pass_early_warn_uninitialized,
2515         pass_late_warn_uninitialized): Likewise.
2516         * tree.c (pass_ipa_free_lang_data): Likewise.
2517         * doc/passes.texi (pass manager): Document how to disambiguate
2518         pass names.
2520 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
2522         * df-problems.c: Fix documentation for forward simulation of LR.
2523         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
2524         (df_simulate_finalize_forwards): Remove.
2525         * df.h (df_simulate_finalize_forwards): Remove.
2527 2009-11-08  Richard Guenther  <rguenther@suse.de>
2529         * tree-ssa-structalias.c (build_succ_graph): Properly make
2530         variables escape if they are stored to anything.
2532 2009-11-08  Richard Guenther  <rguenther@suse.de>
2534         PR rtl-optimization/41928
2535         * loop-invariant.c (free_loop_data): If we didn't allocate
2536         loop data do not try to free it.
2538 2009-11-07  Jason Merrill  <jason@redhat.com>
2540         * tree.c (reconstruct_complex_type): Preserve attributes.
2542 2009-11-07  Richard Guenther  <rguenther@suse.de>
2544         * tree-ssa-structalias.c (build_succ_graph): Feed stores
2545         to anything only to variables that can take pointers.
2546         (get_constraint_for_ssa_var): Properly exclude full
2547         variables from expanding.
2548         (first_vi_for_offset): Avoid overflow in arithmetic.
2549         (first_or_preceding_vi_for_offset): Likewise.
2550         (count_num_arguments): Fix implementation.
2551         (gate_ipa_pta): Do not run when not optimizing.
2553 2009-11-07  David Binderman <dcb314@hotmail.com>
2555         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
2556         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
2557         set but not used variables.
2558         (apply_args_reg_offset): Comment out as unused.
2559         * calls.c (flags_from_decl_or_type): Likewise.
2560         * genautomata.c (check_regexp_units_distribution): Likewise.
2562 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
2564         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
2565         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
2566         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
2567         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
2568         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
2569         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
2570         operand alternatives.
2572 2009-11-06  Michael Matz  <matz@suse.de>
2574         PR middle-end/41963
2575         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
2576         of a potential reciprocal to really be reciprocals.
2578 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
2580         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
2581         lwpintrin.h after immintrin.h.
2582         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
2583         typedefs.
2585         PR middle-end/41935
2586         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
2587         or non-constant index, allow index one past the last element and
2588         allow exceeding array bound in arrays that might be used as flexible
2589         array members.
2591 2009-11-05  Richard Henderson  <rth@redhat.com>
2593         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
2595 2009-11-05  Paul Brook  <paul@codesourcery.com>
2597         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
2598         (arm_fpu_desc): New.
2599         (all_fpus): Add FPU details.
2600         (fp_model_for_fpu): Remove.
2601         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
2602         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
2603         (arm_file_start): Use arm_fpu_desc.
2604         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
2605         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
2606         arm_fpu_desc.
2607         (TARGET_FPA_EMU2): Define.
2608         (arm_fp_model, fputype, arm_fpu_tune): Remove.
2609         (vfp_reg_type, arm_fpu_desc): New.
2610         * config/arm/arm.md (attr fpu): Simplify.
2611         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
2612         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
2613         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
2614         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
2615         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
2617 2009-11-05  Michael Matz  <matz@suse.de>
2619         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
2620         on TARGET_RECIP.
2621         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
2622         for 1/sqrtf.
2624 2009-11-04  Jason Merrill  <jason@redhat.com>
2626         PR c++/36912
2627         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
2628         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
2629         (output_constant): Avoid crash after error.
2631 2009-11-05  Martin Jambor  <mjambor@suse.cz>
2633         * tree-sra.c (struct access): Changed comment of next_sibling field.
2634         (analyze_modified_params): Loop over accesses of a group rather than
2635         over all with the ame base, pass a common bitmap to
2636         walk_aliased_vdefs.
2637         (unmodified_by_ref_scalar_representative): Build link lists of
2638         accesses of a group.
2639         (splice_param_accesses): Likewise.
2641 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
2643         * df-scan.c (df-uses-record): Add case zero_extract of mem.
2645 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2647         PR target/10127
2648         PR ada/20548
2649         * config/i386/i386.md (probe_stack): New expander.
2650         (logical operation peepholes): Do not split stack checking probes.
2652 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2653             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2655         * doc/invoke.texi (-mlwp): Add documentation.
2656         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
2657         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
2658         (x86_64-*-*): Ditto.
2659         * config/i386/lwpintrin.h: New file, provide x86 compiler
2660         intrinisics for LWP.
2661         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
2662         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
2663         * config/i386/i386-c.c (ix86_target_macros_internal): Check
2664         ISA_FLAG for LWP.
2665         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
2666         * config/i386/i386.opt (-mlwp): New switch for LWP support.
2667         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
2668         (OPTION_MASK_ISA_LWP_UNSET): New.
2669         (ix86_handle_option): Handle -mlwp.
2670         (isa_opts): Handle -mlwp.
2671         (enum pta_flags): Add PTA_LWP.
2672         (override_options): Add LWP support.
2673         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
2674         (IX86_BUILTIN_LLWPCB32): Ditto.
2675         (IX86_BUILTIN_LLWPCB64): Ditto.
2676         (IX86_BUILTIN_SLWPCB16): Ditto.
2677         (IX86_BUILTIN_SLWPCB32): Ditto.
2678         (IX86_BUILTIN_SLWPCB64): Ditto.
2679         (IX86_BUILTIN_LWPVAL16): Ditto.
2680         (IX86_BUILTIN_LWPVAL32): Ditto.
2681         (IX86_BUILTIN_LWPVAL64): Ditto.
2682         (IX86_BUILTIN_LWPINS16): Ditto.
2683         (IX86_BUILTIN_LWPINS32): Ditto.
2684         (IX86_BUILTIN_LWPINS64): Ditto.
2685         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
2686         (builtin_description): Ditto.
2687         (ix86_init_mmx_sse_builtins): Ditto.
2688         (ix86_expand_special_args_builtin): Ditto.
2689         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
2690         LWP support.
2691         (UNSPEC_SLWP_INTRINSIC): Ditto.
2692         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
2693         (UNSPECV_LWPINS_INTRINSIC): Ditto.
2694         (lwp_llwpcbhi1): New lwp pattern.
2695         (lwp_llwpcbsi1): Ditto.
2696         (lwp_llwpcbdi1): Ditto.
2697         (lwp_slwpcbhi1): Ditto.
2698         (lwp_slwpcbsi1): Ditto.
2699         (lwp_slwpcbdi1): Ditto.
2700         (lwp_lwpvalhi3): Ditto.
2701         (lwp_lwpvalsi3): Ditto.
2702         (lwp_lwpvaldi3): Ditto.
2703         (lwp_lwpinshi3): Ditto.
2704         (lwp_lwpinssi3): Ditto.
2705         (lwp_lwpinsdi3): Ditto.
2707 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2708             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2710         PR rtl-opt/41833
2711         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
2712         a vec_duplicate.
2714 2009-11-04  Richard Guenther  <rguenther@suse.de>
2715             Rafael Avila de Espindola  <espindola@google.com>
2717         * gcc.c (process_command): Handle arguments name@offset.
2719 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
2720             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2722         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
2723         (x86_64-*-*): Ditto.
2724         * config/i386/xopintrin.h: New file, provide common x86 compiler
2725         intrinisics for XOP.
2726         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
2727         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
2728         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2729         ISA_FLAG for XOP.
2730         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
2731         * config/i386/i386.opt (-mxop): New switch for XOP support.
2732         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
2733         (UNSPEC_XOP_TRUEFALSE)
2734         (UNSPEC_XOP_PERMUTE)
2735         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
2736         (PPERM_*): New constants for vpperm instruction.
2737         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
2738         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
2739         (OPTION_MASK_ISA_XOP_UNSET): New.
2740         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
2741         (ix86_handle_option): Handle -mxop.
2742         (isa_opts): Handle -mxop.
2743         (enum pta_flags): Add PTA_XOP.
2744         (override_options): Add XOP support.
2745         (print_operand): Add code for XOP compare instructions.
2746         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
2747         (ix86_expand_int_vcond): Extend for XOP compare instruction.
2749         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
2750         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
2751         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
2752         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
2753         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
2754         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
2755         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
2757         (IX86_BUILTIN_VPCMOV256): Ditto.
2758         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
2759         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
2760         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
2761         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
2762         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
2763         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
2765         (IX86_BUILTIN_VPPERM): Ditto.
2767         (IX86_BUILTIN_VPMACSSWW): Ditto.
2768         (IX86_BUILTIN_VPMACSWW): Ditto.
2769         (IX86_BUILTIN_VPMACSSWD): Ditto.
2770         (IX86_BUILTIN_VPMACSWD): Ditto.
2771         (IX86_BUILTIN_VPMACSSDD): Ditto.
2772         (IX86_BUILTIN_VPMACSDD): Ditto.
2773         (IX86_BUILTIN_VPMACSSDQL): Ditto.
2774         (IX86_BUILTIN_VPMACSSDQH): Ditto.
2775         (IX86_BUILTIN_VPMACSDQL): Ditto.
2776         (IX86_BUILTIN_VPMACSDQH): Ditto.
2777         (IX86_BUILTIN_VPMADCSSWD): Ditto.
2778         (IX86_BUILTIN_VPMADCSWD): Ditto.
2780         (IX86_BUILTIN_VPHADDBW): Ditto.
2781         (IX86_BUILTIN_VPHADDBD): Ditto.
2782         (IX86_BUILTIN_VPHADDBQ): Ditto.
2783         (IX86_BUILTIN_VPHADDWD): Ditto.
2784         (IX86_BUILTIN_VPHADDWQ): Ditto.
2785         (IX86_BUILTIN_VPHADDDQ): Ditto.
2786         (IX86_BUILTIN_VPHADDUBW): Ditto.
2787         (IX86_BUILTIN_VPHADDUBD): Ditto.
2788         (IX86_BUILTIN_VPHADDUBQ): Ditto.
2789         (IX86_BUILTIN_VPHADDUWD): Ditto.
2790         (IX86_BUILTIN_VPHADDUWQ): Ditto.
2791         (IX86_BUILTIN_VPHADDUDQ): Ditto.
2792         (IX86_BUILTIN_VPHSUBBW): Ditto.
2793         (IX86_BUILTIN_VPHSUBWD): Ditto.
2794         (IX86_BUILTIN_VPHSUBDQ): Ditto.
2796         (IX86_BUILTIN_VPROTB): Ditto.
2797         (IX86_BUILTIN_VPROTW): Ditto.
2798         (IX86_BUILTIN_VPROTD): Ditto.
2799         (IX86_BUILTIN_VPROTQ): Ditto.
2800         (IX86_BUILTIN_VPROTB_IMM): Ditto.
2801         (IX86_BUILTIN_VPROTW_IMM): Ditto.
2802         (IX86_BUILTIN_VPROTD_IMM): Ditto.
2803         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
2805         (IX86_BUILTIN_VPSHLB): Ditto.
2806         (IX86_BUILTIN_VPSHLW): Ditto.
2807         (IX86_BUILTIN_VPSHLD): Ditto.
2808         (IX86_BUILTIN_VPSHLQ): Ditto.
2809         (IX86_BUILTIN_VPSHAB): Ditto.
2810         (IX86_BUILTIN_VPSHAW): Ditto.
2811         (IX86_BUILTIN_VPSHAD): Ditto.
2812         (IX86_BUILTIN_VPSHAQ): Ditto.
2814         (IX86_BUILTIN_VFRCZSS): Ditto.
2815         (IX86_BUILTIN_VFRCZSD): Ditto.
2816         (IX86_BUILTIN_VFRCZPS): Ditto.
2817         (IX86_BUILTIN_VFRCZPD): Ditto.
2818         (IX86_BUILTIN_VFRCZPS256): Ditto.
2819         (IX86_BUILTIN_VFRCZPD256): Ditto.
2821         (IX86_BUILTIN_VPCOMEQUB): Ditto.
2822         (IX86_BUILTIN_VPCOMNEUB): Ditto.
2823         (IX86_BUILTIN_VPCOMLTUB): Ditto.
2824         (IX86_BUILTIN_VPCOMLEUB): Ditto.
2825         (IX86_BUILTIN_VPCOMGTUB): Ditto.
2826         (IX86_BUILTIN_VPCOMGEUB): Ditto.
2827         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
2828         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
2830         (IX86_BUILTIN_VPCOMEQUW): Ditto.
2831         (IX86_BUILTIN_VPCOMNEUW): Ditto.
2832         (IX86_BUILTIN_VPCOMLTUW): Ditto.
2833         (IX86_BUILTIN_VPCOMLEUW): Ditto.
2834         (IX86_BUILTIN_VPCOMGTUW): Ditto.
2835         (IX86_BUILTIN_VPCOMGEUW): Ditto.
2836         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
2837         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
2839         (IX86_BUILTIN_VPCOMEQUD): Ditto.
2840         (IX86_BUILTIN_VPCOMNEUD): Ditto.
2841         (IX86_BUILTIN_VPCOMLTUD): Ditto.
2842         (IX86_BUILTIN_VPCOMLEUD): Ditto.
2843         (IX86_BUILTIN_VPCOMGTUD): Ditto.
2844         (IX86_BUILTIN_VPCOMGEUD): Ditto.
2845         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
2846         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
2848         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
2849         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
2850         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
2851         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
2852         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
2853         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
2854         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
2855         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
2857         (IX86_BUILTIN_VPCOMEQB): Ditto.
2858         (IX86_BUILTIN_VPCOMNEB): Ditto.
2859         (IX86_BUILTIN_VPCOMLTB): Ditto.
2860         (IX86_BUILTIN_VPCOMLEB): Ditto.
2861         (IX86_BUILTIN_VPCOMGTB): Ditto.
2862         (IX86_BUILTIN_VPCOMGEB): Ditto.
2863         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
2864         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
2866         (IX86_BUILTIN_VPCOMEQW): Ditto.
2867         (IX86_BUILTIN_VPCOMNEW): Ditto.
2868         (IX86_BUILTIN_VPCOMLTW): Ditto.
2869         (IX86_BUILTIN_VPCOMLEW): Ditto.
2870         (IX86_BUILTIN_VPCOMGTW): Ditto.
2871         (IX86_BUILTIN_VPCOMGEW): Ditto.
2872         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
2873         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
2875         (IX86_BUILTIN_VPCOMEQD): Ditto.
2876         (IX86_BUILTIN_VPCOMNED): Ditto.
2877         (IX86_BUILTIN_VPCOMLTD): Ditto.
2878         (IX86_BUILTIN_VPCOMLED): Ditto.
2879         (IX86_BUILTIN_VPCOMGTD): Ditto.
2880         (IX86_BUILTIN_VPCOMGED): Ditto.
2881         (IX86_BUILTIN_VPCOMFALSED): Ditto.
2882         (IX86_BUILTIN_VPCOMTRUED): Ditto.
2884         (IX86_BUILTIN_VPCOMEQQ): Ditto.
2885         (IX86_BUILTIN_VPCOMNEQ): Ditto.
2886         (IX86_BUILTIN_VPCOMLTQ): Ditto.
2887         (IX86_BUILTIN_VPCOMLEQ): Ditto.
2888         (IX86_BUILTIN_VPCOMGTQ): Ditto.
2889         (IX86_BUILTIN_VPCOMGEQ): Ditto.
2890         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
2891         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
2893         (enum multi_arg_type): New enum for describing the various XOP
2894         intrinsic argument types.
2895         (bdesc_multi_arg): New table for XOP intrinsics.
2896         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
2897         (ix86_expand_multi_arg_builtin): New function for creating XOP
2898         intrinsics.
2900         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
2901         (xop_pmacsww): Ditto.
2902         (xop_pmacssww): Ditto.
2903         (xop_pmacsdd): Ditto.
2904         (xop_pmacssdd): Ditto.
2905         (xop_pmacssdql): Ditto.
2906         (xop_pmacssdqh): Ditto.
2907         (xop_pmacsdql): Ditto.
2908         (xop_pmacsdql_mem): Ditto.
2909         (xop_mulv2div2di3_low): Ditto.
2910         (xop_pmacsdqh): Ditto.
2911         (xop_pmacsdqh_mem): Ditto.
2912         (xop_mulv2div2di3_high): Ditto.
2913         (xop_pmacsswd): Ditto.
2914         (xop_pmacswd): Ditto.
2915         (xop_pmadcsswd): Ditto.
2916         (xop_pmadcswd): Ditto.
2917         (xop_pcmov_<mode>): Ditto.
2918         (xop_pcmov_<mode>256): Ditto.
2919         (xop_phaddbw): Ditto.
2920         (xop_phaddbd): Ditto.
2921         (xop_phaddbq): Ditto.
2922         (xop_phaddwd): Ditto.
2923         (xop_phaddwq): Ditto.
2924         (xop_phadddq): Ditto.
2925         (xop_phaddubw): Ditto.
2926         (xop_phaddubd): Ditto.
2927         (xop_phaddubq): Ditto.
2928         (xop_phadduwd): Ditto.
2929         (xop_phadduwq): Ditto.
2930         (xop_phaddudq): Ditto.
2931         (xop_phsubbw): Ditto.
2932         (xop_phsubwd): Ditto.
2933         (xop_phsubdq): Ditto.
2934         (xop_pperm): Ditto.
2935         (rotl<mode>3): Ditto.
2936         (rotr<mode>3): Ditto.
2937         (xop_rotl<mode>3): Ditto.
2938         (xop_rotr<mode>3): Ditto.
2939         (vrotr<mode>3): Ditto.
2940         (vrotl<mode>3): Ditto.
2941         (xop_vrotl<mode>3): Ditto.
2942         (vlshr<mode>3): Ditto.
2943         (vashr<mode>3): Ditto.
2944         (vashl<mode>3
2945         (xop_ashl<mode>3): Ditto.
2946         (xop_lshl<mode>3): Ditto.
2947         (ashlv16qi3): Ditto.
2948         (lshlv16qi3): Ditto.
2949         (ashrv16qi3): Ditto.
2950         (ashrv2di3): Ditto.
2951         (xop_frcz<mode>2): Ditto.
2952         (xop_vmfrcz<mode>2): Ditto.
2953         (xop_frcz<mode>2256): Ditto.
2954         (xop_maskcmp<mode>3): Ditto.
2955         (xop_maskcmp_uns<mode>3): Ditto.
2956         (xop_maskcmp_uns2<mode>3): Ditto.
2957         (xop_pcom_tf<mode>3): Ditto.
2959         * doc/invoke.texi (-mxop): Add documentation.
2960         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
2962 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
2964         PR driver/11810
2965         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
2966         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
2967         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
2969 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
2971         PR target/40835
2972         * arm.md (peephole2 patterns for move and compare): New.
2974 2009-11-04  Nick Clifton  <nickc@redhat.com>
2976         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
2977         Make sure that it does not allow CONST_DOUBLEs.
2978         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
2979         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
2980         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
2981         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
2982         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
2983         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
2984         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
2985         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
2986         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
2987         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
2988         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
2989         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
2990         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
2991         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
2992         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
2994 2009-11-04  Richard Guenther  <rguenther@suse.de>
2996         PR tree-optimization/41919
2997         * tree-vrp.c (test_for_singularity): Properly compare values.
2999 2009-11-04  Revital Eres  <eres@il.ibm.com>
3001         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3002         Consider peeling for alignment only for stores and remove
3003         redundant assignment.
3005 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
3007         PR target/41302
3008         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
3009         (m68k_ok_for_sibcall_p): Handle different result return locations.
3011 2009-11-04  Richard Guenther  <rguenther@suse.de>
3013         * c-opts.c (c_common_post_options): Move LTO option processing
3014         code ...
3015         * opts.c (decode_options): ... here.
3017 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
3019         * c-common.c (fold_offsetof_1): Use %wd instead of
3020         HOST_WIDE_INT_PRINT_DEC.
3022 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
3024         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
3025         __pic__ or __PIC__.
3027 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
3029         * config.gcc (vax-*-linux*): Keep the original contents of
3030         tmake_file while adding vax/t-linux.
3032 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3034         PR target/10127
3035         PR ada/20548
3036         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
3037         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
3038         (STACK_CHECK_MOVING_SP): Likewise.
3039         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
3040         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
3041         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
3042         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
3043         Document PROBE_STACK.
3044         * explow.c (anti_adjust_stack_and_probe): New function.
3045         (allocate_dynamic_stack_space): Do not directly allocate space if
3046         STACK_CHECK_MOVING_SP, instead invoke above function.
3047         (emit_stack_probe): Handle probe_stack insn.
3048         (PROBE_INTERVAL): New macro.
3049         (STACK_GROW_OPTAB): Likewise.
3050         (STACK_GROW_OFF): Likewise.
3051         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
3052         loop condition in the small constant case.  Rewrite in the general
3053         case to be immune to wraparounds.  Make sure the address of probes
3054         is valid.  Try to use [base + disp] addressing mode if possible.
3055         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
3056         checking is enabled and STACK_CHECK_MOVING_SP.
3057         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
3058         return 1 for volatile references to the stack pointer.
3059         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
3060         __builtin_alloca if stack checking is enabled.
3061         * unwind-dw2.c (uw_identify_context): Take into account whether the
3062         context is that of a signal frame or not.
3063         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
3064         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
3066 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
3068         PR rtl-optimization/41917
3069         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
3070         operand isn't known to be 0, return 1.
3072 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
3074         * config/mips/mips.md: Fix typos.
3076 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
3078         * doc/invoke.texi: Fix typo.
3080 2009-11-03  Paul Brook  <paul@codesourcery.com>
3082         * config/arm/neon.ml (vectype): Add T_floatSF.
3083         (string_of_vectype): Ditto.
3084         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
3085         (deftypes): Use float for float32_t.
3086         * config/arm/arm_neon.h: Regenerate.
3088 2009-11-03  Nick Clifton  <nickc@redhat.com>
3089             Kevin Buettner  <kevinb@redhat.com>
3091         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
3092         order of expected registers.
3093         (rx_load_multiple_vector): Likewise.
3094         (rx_rtsd_vector): Likewise.
3095         * config/rx/rx.c (rx_cpu_type): New variable.
3096         (rx_print_operand): Fix bug printing 64-bit constant values.
3097         (rx_emit_stack_pushm): Reverse order of pushed registers.
3098         (gen_rx_store_vector): Likewise.
3099         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
3100         attribute name.
3101         (is_exception_func): Rename to is_interrupt_func and only accept
3102         "interrupt" as the attribute name.
3103         (rx_get_stack_layout): Use new function name.
3104         (rx_func_attr_inlinable): Likewise.
3105         (rx_attribute_table): Remove "exception".
3106         (rx_expand_prologue): If necessary push the accumulator register
3107         in the prologue of interrupt functions.
3108         (rx_expand_epilogue): If necessary pop the accumulator.
3109         (rx_builtins): Add RX_BUILTIN_MVTIPL.
3110         (rx_expand_builtin_stz): Remove.
3111         (rx_expand_builtin_mvtipl): New function.
3112         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
3113         (rx_expand_builtin): Likewise.
3114         (rx_enable_fpu): New variable.
3115         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
3116         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
3117         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
3118         (enum rx_cpu_types): Define.
3119         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
3120         (INCOMING_FRAME_SP_OFFSET): Define.
3121         (ARG_POINTER_CFA_OFFSET): Define.
3122         (FRAME_POINTER_CFA_OFFSET): Define.
3123         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
3124         (ALLOW_RX_FPU_INSNS): Define.
3125         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
3126         fast_math_flags_set_p.
3127         (UNSPEC_BUILTIN_MVTIPL): Define.
3128         (revl): Rename to bswapsi2.
3129         (bswaphi2): New pattern.
3130         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
3131         (mvtaclo): Likewise.
3132         (racw): Likewise.
3133         (mvtc): Remove clobber of cc0.
3134         (mvtcp): Delete.
3135         (opecp): Delete.
3136         * config/rx/rx.opt (mieee): Remove.
3137         (fpu): Add.
3138         (nofpu): Add.
3139         (mcpu=): Add.
3140         (patch=): Add.
3141         (msave-acc-in-interrupts): Add.
3142         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
3143         (MULTILIB_DIRS): Likewise.
3144         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
3145         * doc/extend.texi: Remove description of "exception" function
3146         attribute.
3147         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
3148         -msave-acc-in-interrupts options.
3150 2009-11-03  Richard Guenther  <rguenther@suse.de>
3152         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
3154 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
3156         PR c++/38699
3157         * c-common.c (fold_offsetof_1): Issue errors when the member
3158         designator of the offsetof expression is not legitimate.
3160 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3162         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
3163         names instead of numerical constants.
3164         (sse_prologue_save): Ditto.
3165         (*sse_prologue_save_insn): Ditto.
3167 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
3169         PR target/41900
3170         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3171         (TARGET_CALL_ESP): New define.
3172         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3173         X86_ARCH_CALL_ESP.
3174         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3175         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3176         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
3177         TARGET_CALL_ESP.
3178         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3179         New patterns, use "lsm" as operand 1 constraint.
3180         * config/i386/predicates.md (call_insn_operand): Depend on
3181         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3183 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3185         PR tree-optimization/41857
3186         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
3187         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
3188         to create_mem_ref.
3189         * tree-ssa-address.c (move_hint_to_base): New function.
3190         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
3191         address space associated with TYPE.
3192         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
3193         most_expensive_mult_to_index.  Call move_hint_to_base.
3194         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
3195         TYPE to addr_to_parts.
3197 2009-11-02  Martin Jambor  <mjambor@suse.cz>
3199         PR tree-optimization/41750
3200         * tree-sra.c (analyze_modified_params): Loop over all
3201         representatives of components of a parameter.
3203 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
3205         PR tree-optimization/41841
3206         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
3207         local variables of not yet materialized clones.
3209         PR debug/41893
3210         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
3211         for a VOIDmode variable.
3213         PR c++/41774
3214         * c-pragma.c (visstack): Change into vector of ints rather than
3215         enum symbol_visibility.
3216         (push_visibility): Add kind argument, push default_visibility together
3217         with kind.
3218         (pop_visibility): Add kind argument, return true if successful, fail
3219         if visibility stack is empty or if stack top is of different kind.
3220         (handle_pragma_visibility): Don't check length of visstack, instead
3221         call pop_visibility and issue diagnostics if it failed.  Pass 0
3222         as last argument to push_visibility and pop_visibility.
3223         * c-pragma.h (push_visibility): Add kind argument.
3224         (pop_visibility): Likewise.  Return bool instead of void.
3226 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
3228         * tree.def (TARGET_MEM_REF): Update comment.
3229         * alias.c (get_alias_set): Retrieve the original memory reference for
3230         a TARGET_MEM_REF before proceeding.
3232 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3234         * config/frv/frv.c (frv_function_value, frv_libcall_value,
3235         frv_function_value_regno_p): New functions.
3236         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3237         * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3238         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
3239         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
3241 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
3243         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
3244         new 'outgoing' argument.
3245         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
3246         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
3247         * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3248         LIBCALL_VALUE): Remove.
3249         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
3250         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
3251         (mh10300_function_value_regno_p): Declare.
3253 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3255         * config/arm/cortex-a9.md: New - integer pipeline description.
3257 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
3259         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
3260         aborting if the sizes of the two references don't match.
3262 2009-10-31  Toon Moene  <toon@moene.org>
3264         * ipa-inline.c (cgraph_decide_inlining):
3265         Include reason for not inlining called-once functions in dump file.
3267 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
3269         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
3270         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
3271         (LINK_SPEC): BE_LINK_SPEC added.
3273 2009-10-30  Richard Guenther  <rguenther@suse.de>
3275         PR lto/41858
3276         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
3278 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
3280         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
3281         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
3282         label.
3284 2009-10-30  Martin Jambor  <mjambor@suse.cz>
3286         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
3288 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3290         PR target/40838
3291         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
3292         first.  Move assert on stack_alignment_estimated just before
3293         setting stack_realign_needed.
3294         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
3295         Don't call update_stack_boundary.
3297         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
3298         (verride_options): Don't check ix86_force_align_arg_pointer here.
3299         (ix86_function_ok_for_sibcall): Use it.
3300         (ix86_update_stack_boundary): Likewise.
3302         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
3304 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
3306         * arm.md (QHSI): New mode iterator.
3307         (movqi): If generating for thumb, then truncate any immediate to
3308         8 bits.
3309         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
3310         with...
3311         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
3312         version.
3314 2009-10-29  Cary Coutant  <ccoutant@google.com>
3316         PR debug/41700
3317         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
3318         locations in the source).
3319         (store_vcall_insn): New function.
3320         (lookup_vcall_insn): New function.
3321         (dwarf2out_virtual_call_token): Use store_vcall_insn.
3322         (dwarf2out_copy_call_info): New function.
3323         (dwarf2out_virtual_call): Use lookup_vcall_insn.
3324         * emit-rtl.c (try_split): Call copy_call_info debug hook.
3325         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
3326         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
3327         (debug_nothing_rtx_rtx): New dummy hook.
3328         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
3329         (xcoff_debug_hooks): Likewise.
3330         * sdbout.c (sdb_debug_hooks): Likewise.
3331         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3333 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
3335         * doc/invoke.texi (mmcount-ra-address): Document new command line
3336         option.
3337         * config/mips/mips.opt (mmcount-ra-address): New option.
3338         * config/mips/mips-protos.h (mips_function_profiler): Declare new
3339         function.
3340         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
3341         member.
3342         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
3343         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
3344         rewritten.
3345         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
3346         mips_function_profiler.
3348 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
3350         PR middle-end/37565
3351         PR target/38018
3352         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
3353         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3354         * optc-gen.awk (cl_target_option_restore): Include call to
3355         targetm.override_options_after_change.
3356         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3357         * target.h (override_options_after_change): New.
3358         * c-common.c (parse_optimize_options): Call
3359         targetm.override_options_after_change.
3360         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3361         (ia64_override_options_after_change): New.
3362         (ia64_override_options) Add call to above.
3364 2009-10-29  Michael Matz  <matz@suse.de>
3366         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
3367         (gate_convert_to_rsqrt): Ditto.
3368         (pass_convert_to_rsqrt): Ditto.
3369         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
3370         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
3371         to pass list.
3373         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
3375 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3377         * config/arm/arm.c (find_best_start): Fix type of remainder to be
3378         unsigned.
3380 2009-10-29  Martin Jambor  <mjambor@suse.cz>
3382         PR tree-optimization/41775
3383         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
3384         (generate_subtree_copies): Do not unshare agg.
3385         (load_assign_lhs_subreplacements): Do not unshare rhs.
3386         (sra_modify_assign): Do not unshare exprs.
3387         (propagate_subacesses_accross_link): Renamed to
3388         propagate_subaccesses_across_link.
3390 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
3392         * arm.c (count_insns_for_constant): Rework to support counting for
3393         thumb2 immediates as well.
3394         (find_best_start): Split out from arm_gen_constant.
3395         (arm_gen_constant): Rework to support XOR with immediate.
3397 2009-10-29  Chao-ying Fu  <fu@mips.com>
3399         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
3400         functions.
3401         (mips_expand_synci_loop):  Use the length rtx to control the
3402         synci loop from the begin rtx that points to the first byte of
3403         the cache line.
3405 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3407         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
3409 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3411         * dbxout.c (dbxout_common_check): Accept non public trees.
3412         * dwarf2out.c (fortran_common): Accept non public trees.
3414 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
3416         * common.opt (fuse-linker-plugin): New option.
3417         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
3418         fuse-linker-plugin.
3419         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
3421 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3423         PR rtl-optimization/39715
3424         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
3425         (gen_cstoresi_ltu_thumb1): New splitter.
3427 2009-10-28  Richard Guenther  <rguenther@suse.de>
3429         PR lto/41808
3430         PR lto/41839
3431         * tree-ssa.c (useless_type_conversion_p): Do not treat
3432         conversions to pointers to incomplete types as useless.
3433         * gimple.c (gimple_types_compatible_p): Compare struct tags,
3434         not typedef names.
3436 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
3438         * var-tracking.c (emit_note_insn_var_location): Don't call the second
3439         vt_expand_loc unnecessarily when location is not a register nor
3440         memory.
3442         PR middle-end/41837
3443         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
3444         fields don't have DECL_NAME.
3446         PR debug/41801
3447         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
3448         call convert_memory_address on addr.
3450         PR target/41762
3451         * config/i386/i386.c (ix86_pic_register_p): Don't call
3452         rtx_equal_for_cselib_p for VALUEs discarded as useless.
3454 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
3456         * var-tracking.c (emit_note_insn_var_location): Get the mode of
3457         a variable part from its REG, MEM or VALUE.
3459 2009-10-28  Richard Guenther  <rguenther@suse.de>
3461         * gimple.c (gimple_get_alias_set): Fix comment typo.
3463 2009-10-28  Richard Guenther  <rguenther@suse.de>
3465         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
3466         (free_lang_data): Unconditionally compute alias sets for all
3467         standard integer types.  Bail out if gate bailed out previously.
3468         Do not reset the types_compatible_p langhook.
3469         (gate_free_lang_data): Remove.
3470         (struct pass_ipa_free_lang_data): Enable unconditionally.
3471         * gimple.c (gimple_get_alias_set): Use the same alias-set for
3472         all pointer types.
3474 2009-10-28  Richard Guenther  <rguenther@suse.de>
3476         PR middle-end/41855
3477         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
3478         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
3479         (call_may_clobber_ref_p_1): Likewise.
3480         * tree-ssa-structalias.c (find_func_aliases): Likewise.
3481         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
3483 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3485         PR rtl-optimization/41812
3487         Revert:
3488         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3490         * df-problems.c (df_md_scratch): New.
3491         (df_md_alloc, df_md_free): Allocate/free it.
3492         (df_md_local_compute): Only include live registers in init.
3493         (df_md_transfer_function): Prune the in-set computed by
3494         the confluence function, and the gen-set too.
3496 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3498         PR rtl-optimization/39715
3499         * combine.c (simplify_comparison): Use extensions to
3500         widen comparisons.  Try an ANDing first.
3502 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3504         PR rtl-optimization/40741
3505         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
3506         a small constant is cheap.
3507         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
3508         force_reg on the LHS.
3509         (xorsi3): Likewise, and split the XOR if the constant is complex
3510         and not in Thumb mode.
3512 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3514         * expmed.c (emit_store_flag): Check costs before
3515         transforming to the opposite representation.
3517 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3519         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
3520         cstore result to DImode.
3522 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3524         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
3525         inside the unspec vector.
3527 2009-10-27  Richard Henderson  <rth@redhat.com>
3529         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
3531 2009-10-27  Richard Henderson  <rth@redhat.com>
3533         PR c++/41819
3534         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
3535         eh_region_may_contain_throw; update users.
3536         (eh_region_may_contain_throw): New function.
3537         (lower_catch): Check flag_exceptions before creating exception region.
3538         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
3539         (lower_cleanup): Tidy existing flag_exceptions check to match.
3541 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
3543         PR/41799
3544         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
3545         * config/i386/mingw.opt: Add fset-stack-executable.
3546         * config/i386/i386.c (ix86_trampoline_init): Make call to
3547         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
3548         defined and its value is not zero.
3549         * doc/invoke.texi
3551 2009-10-27  Richard Guenther  <rguenther@suse.de>
3553         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
3554         handle calls to externally visible functions like in regular mode.
3555         (create_variable_info_for): Do not create function infos here.
3556         (have_alias_info): Remove write-only variable.
3557         (solve_constraints): New function split out from common code
3558         in compute_points_to_sets and ipa_pta_execute.
3559         (compute_points_to_sets): Adjust.
3560         (ipa_pta_execute): Likewise.  Handle clones and externally visible
3561         functions like in non-IPA mode.
3563 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
3565         PR c/41842
3566         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
3567         error_mark_node.
3569 2009-10-27  Richard Guenther  <rguenther@suse.de>
3571         * tree-complex.c (expand_complex_div_wide): Check for
3572         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
3574 2009-10-27  Revital Eres  <eres@il.ibm.com>
3576         PR tree-optimization/40648
3577         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3578         Change decision of when to peel for alignment.
3580 2009-10-27  Richard Guenther  <rguenther@suse.de>
3582         PR lto/41821
3583         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
3585 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
3587         PR bootstrap/41451
3588         * fold-const.c (fold_binary_loc): Do not call
3589         protected_set_expr_location.
3591 2009-10-27  Wei Guozhi  <carrot@google.com>
3593         PR target/41705
3594         * target.h (have_conditional_execution): Add a new target hook
3595         function.
3596         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
3597         * targhooks.h (default_have_conditional_execution): Likewise.
3598         * targhooks.c (default_have_conditional_execution): Likewise.
3599         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
3600         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
3601         (arm_have_conditional_execution): New function.
3602         * ifcvt.c (noce_process_if_block, find_if_header,
3603         cond_exec_find_if_block, dead_or_predicable): Change the usage of
3604         macro HAVE_conditional_execution to a target hook call.
3605         * recog.c (peephole2_optimize): Likewise.
3606         * sched-rgn.c (add_branch_dependences): Likewise.
3607         * final.c (asm_insn_count, final_scan_insn): Likewise.
3608         * bb-reorder.c (HAVE_conditional_execution): Remove it.
3610 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3611             Michael Meissner  <meissner@linux.vnet.ibm.com>
3612             Ulrich Weigand  <uweigand@de.ibm.com>
3614         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
3615         * config/spu/spu_cache.h: New file.
3617         * config/spu/cachemgr.c: New file.
3618         * config/spu/cache.S: New file.
3620         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
3621         (ADDR_SPACE_EA): Define.
3622         (TARGET_ADDR_SPACE_KEYWORDS): Define.
3623         * config/spu/spu.c (EAmode): New macro.
3624         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3625         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3626         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
3627         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3628         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3629         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3630         (TARGET_ASM_SELECT_SECTION): Likewise.
3631         (TARGET_ASM_UNIQUE_SECTION): Likewise.
3632         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3633         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3634         (ea_symbol_ref): New function.
3635         (spu_legitimate_constant_p): Handle __ea qualified addresses.
3636         (spu_addr_space_legitimate_address_p): New function.
3637         (spu_addr_space_legitimize_address): Likewise.
3638         (cache_fetch): New global.
3639         (cache_fetch_dirty): Likewise.
3640         (ea_alias_set): Likewise.
3641         (ea_load_store): New function.
3642         (ea_load_store_inline): Likewise.
3643         (expand_ea_mem): Likewise.
3644         (spu_expand_mov): Handle __ea qualified memory references.
3645         (spu_addr_space_pointer_mode): New function.
3646         (spu_addr_space_address_mode): Likewise.
3647         (spu_addr_space_subset_p): Likewise.
3648         (spu_addr_space_convert): Likewise.
3649         (spu_section_type_flags): Handle "._ea" section.
3650         (spu_select_section): New function.
3651         (spu_unique_section): Likewise.
3652         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
3653         and __EA64__ predefined macros.
3654         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
3655         -matomic-updates switches.
3657         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
3658         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
3659         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
3660         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
3661         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
3662         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
3663         $(T)cache128k.o): Likewise.
3664         ($(T)libgcc_%.a): Likewise.
3666         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
3667         * config/spu/spu.opt (-mea32/-mea64): Add switches.
3668         (-maddress-space-conversion): Likewise.
3669         (-mcache-size=): Likewise.
3670         (-matomic-updates): Likewise.
3671         * doc/invoke.texi (-mea32/-mea64): Document.
3672         (-maddress-space-conversion): Likewise.
3673         (-mcache-size=): Likewise.
3674         (-matomic-updates): Likewise.
3676 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3677             Michael Meissner  <meissner@linux.vnet.ibm.com>
3678             Ulrich Weigand  <uweigand@de.ibm.com>
3680         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
3682         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
3683         defined, add the named address space keywords.
3684         (c_addr_space_name): New function.
3685         (complete_array_type): Preserve named address space.
3686         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
3687         instead of targetm.valid_pointer_mode.
3689         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
3690         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
3691         (ADDR_SPACE_KEYWORD): New macro.
3692         (c_addr_space_name): Add prototype.
3694         * c-tree.h (struct c_declspecs): Add address_space member.
3695         (declspecs_add_addrspace): Add prototype.
3697         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
3699         * c-parser.c (c_parse_init): Add assertion.
3700         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
3701         (c_lex_one_token): Handle address space keywords.
3702         (c_token_starts_typename): Likewise.
3703         (c_token_starts_declspecs): Likewise.
3704         (c_parser_declspecs): Likewise.
3705         (c_parser_postfix_expression_after_paren_type): Diagnose compound
3706         literal within function qualified with named address space.
3708         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
3709         address space qualifiers.
3710         (shadow_tag_warned): Warn about useless address space qualifiers.
3711         (quals_from_declspecs): Handle address space qualifiers.
3712         (grokdeclarator): Likewise.
3713         (build_null_declspecs): Likewise.
3714         (declspecs_add_addrspace): New function.
3716         * c-typeck.c (addr_space_superset): New function.
3717         (qualify_type): Handle named address spaces.
3718         (composite_type): Likewise.
3719         (common_pointer_type): Likewise.
3720         (comp_target_types): Likewise.
3721         (build_conditional_expr): Likewise.
3722         (handle_warn_cast_qual): Likewise.
3723         (build_c_cast): Likewise.
3724         (convert_for_assignment): Likewise.
3725         (build_binary_op): Likewise.
3726         (pointer_diff): Handle named address spaces.  Use intermediate
3727         integer type of sufficient size if required.
3729 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3730             Michael Meissner  <meissner@linux.vnet.ibm.com>
3731             Ulrich Weigand  <uweigand@de.ibm.com>
3733         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
3734         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3735         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3737         * target.h (struct target_def): Add pointer_mode, address_mode,
3738         and valid_pointer_mode to addr_space substructure.
3739         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
3740         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
3741         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
3742         (TARGET_ADDR_SPACE_HOOKS): Add them.
3743         * targhooks.c (target_default_pointer_address_modes_p): New function.
3744         * target.h (target_default_pointer_address_modes_p): Add prototype.
3745         * targhooks.c (default_addr_space_pointer_mode): New function.
3746         (default_addr_space_address_mode): Likewise.
3747         (default_addr_space_valid_pointer_mode): Likewise.
3748         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
3749         (default_addr_space_address_mode): Likewise.
3750         (default_addr_space_valid_pointer_mode): Likewise.
3751         * output.h (default_valid_pointer_mode): Move to ...
3752         * targhooks.h (default_valid_pointer_mode): ... here.
3753         * varasm.c (default_valid_pointer_mode): Move to ...
3754         * targhooks.c (default_valid_pointer_mode): ... here.
3756         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
3757         instead of targetm.valid_pointer_mode.
3759         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
3760         * tree.c (integer_pow2p): Likewise.
3761         (tree_log2): Likewise.
3762         (tree_floor_log2): Likewise.
3763         (signed_or_unsigned_type_for): Support pointer type of different size.
3764         (int_or_pointer_precision): New function.
3765         * tree.h (int_or_pointer_precision): Add prototype.
3766         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
3767         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
3768         incoming pointer type instead of POINTER_SIZE.
3770         * tree.c (build_pointer_type): Use appropriate pointer mode
3771         instead of ptr_mode.
3772         (build_reference_type): Likewise.
3773         * expr.c (store_expr): Likewise.
3774         (expand_expr_addr_expr): Likewise.
3775         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
3776         * cfgexpand.c (expand_debug_expr): Likewise.
3778         * auto-inc-dec.c: Include "target.h".
3779         (try_merge): Use appropriate address mode instead of Pmode.
3780         (find_inc): Likewise.
3781         * combine.c (find_split_point): Likewise.
3782         * cselib.c (cselib_record_sets): Likewise.
3783         * dse.c (replace_inc_dec): Likewise.
3784         (canon_address): Likewise.
3785         * var-tracking.c (replace_expr_with_values): Likewise.
3786         (count_uses): Likewise.
3787         (add_uses): Likewise.
3788         (add_stores): Likewise.
3789         * emit-rtl.c: Include "target.h".
3790         (adjust_address_1): Use appropriate address mode instead of Pmode.
3791         (offset_address): Likewise.
3792         * explow.c (break_out_memory_refs): Likewise.
3793         (memory_address_addr_space): Likewise.
3794         (promote_mode): Likewise.
3795         * expr.c (move_by_pieces): Likewise.
3796         (emit_block_move_via_loop): Likewise.
3797         (store_by_pieces): Likewise.
3798         (store_by_pieces_1): Likewise.
3799         (expand_assignment): Likewise.
3800         (store_constructor): Likewise.
3801         (expand_expr_addr_expr): Likewise.
3802         (expand_expr_real_1): Likewise.
3803         * cfgexpand.c (expand_debug_expr): Likewise.
3804         * ifcvt.c (noce_try_cmove_arith): Likewise.
3805         * regcprop.c (kill_autoinc_value): Likewise.
3806         * regmove.c (try_auto_increment): Likewise.
3807         * reload.c (find_reloads): Likewise.
3808         (find_reloads_address): Likewise.
3809         (find_reloads_address_1): Likewise.
3810         * sched-deps.c: Include "target.h".
3811         (sched_analyze_1): Use appropriate address mode instead of Pmode.
3812         (sched_analyze_2): Likewise.
3813         * sel-sched-dump.c: Include "target.h".
3814         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
3815         * stor-layout.c (layout_type): Likewise.
3816         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3817         (multiplier_allowed_in_address_p): Likewise.
3818         (get_address_cost): Likewise.
3819         * varasm.c (make_decl_rtl): Likewise.
3821         * expr.c (expand_assignment): Always convert offsets to appropriate
3822         address mode.
3823         (store_expr): Likewise.
3824         (store_constructor): Likewise.
3825         (expand_expr_real_1): Likewise.
3827         * reload.h (form_sum): Add MODE argument.
3828         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
3829         Update recursive calls.
3830         (subst_indexed_address): Update calls to form_sum.
3832         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
3833         * tree-ssa-address.c: Include "target.h".
3834         (templates): Replace by ...
3835         (mem_addr_template_list): ... this new vector.
3836         (TEMPL_IDX): Handle address space numbers.
3837         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
3838         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
3839         instead of global cache.  Update call to gen_addr_rtx.
3840         (valid_mem_ref_p): Update call to addr_for_mem_ref.
3841         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
3843         * rtl.h (convert_memory_address_addr_space): Add prototype.
3844         (convert_memory_address): Define as macro.
3845         * explow.c (convert_memory_address): Rename to ...
3846         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3847         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
3848         Update recursive calls.
3849         (memory_address_addr_space): Call convert_memory_address_addr_space.
3850         * expmed.c (make_tree): Likewise.
3851         * expr.c (expand_assignment): Likewise.
3852         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
3853         (expand_expr_addr_expr): Likewise.  Also, update call.
3855         * alias.c (find_base_value): Guard pointer size optimizations.
3856         (find_base_term): Likewise.
3857         * rtlanal.c (nonzero_bits1): Likewise.
3858         (num_sign_bit_copies1): Likewise.
3859         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3861         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
3862         (emit-rtl.o): Likewise.
3863         (auto-inc-dec.o): Likewise.
3864         (sched-deps.o): Likewise.
3866 2009-10-26  Ben Elliston  <bje@au.ibm.com>
3867             Michael Meissner  <meissner@linux.vnet.ibm.com>
3868             Ulrich Weigand  <uweigand@de.ibm.com>
3870         * doc/extend.texi (Named Address Spaces): New section.
3871         * coretypes.h (addr_space_t): New type.
3872         (ADDR_SPACE_GENERIC): New define.
3873         (ADDR_SPACE_GENERIC_P): New macro.
3875         * doc/tm.texi (Named Address Spaces): New section.
3876         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
3877         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
3878         (TARGET_ADDR_SPACE_SUBSET_P): Document.
3879         (TARGET_ADDR_SPACE_CONVERT): Document.
3880         * target.h (struct gcc_target): Add addr_space substructure.
3881         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3882         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
3883         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
3884         (TARGET_ADDR_SPACE_CONVERT): Likewise.
3885         (TARGET_ADDR_SPACE_HOOKS): Likewise.
3886         (TARGET_INITIALIZER): Initialize addr_space hooks.
3887         * targhooks.c (default_addr_space_legitimate_address_p): New function.
3888         (default_addr_space_legitimize_address): Likewise.
3889         (default_addr_space_subset_p): Likewise.
3890         (default_addr_space_convert): Likewise.
3891         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
3892         (default_addr_space_legitimize_address): Likewise.
3893         (default_addr_space_subset_p): Likewise.
3894         (default_addr_space_convert): Likewise.
3896         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
3897         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
3898         (MEM_ADDR_SPACE): New macro.
3899         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
3900         address space memory attribute.
3901         (mem_attrs_htab_hash): Handle address space memory attribute.
3902         (mem_attrs_htab_eq): Likewise.
3903         (set_mem_attributes_minus_bitpos): Likewise.
3904         (set_mem_alias_set): Likewise.
3905         (set_mem_align): Likewise.
3906         (set_mem_expr): Likewise.
3907         (set_mem_offset): Likewise.
3908         (set_mem_size): Likewise.
3909         (adjust_address_1): Likewise.
3910         (offset_address): Likewise.
3911         (widen_memoy_address): Likewise.
3912         (get_spill_slot_decl): Likewise.
3913         (set_mem_attrs_for_spill): Likewise.
3914         (set_mem_addr_space): New function.
3915         * emit-rtl.h (set_mem_addr_space): Add prototype.
3916         * print-rtl.c (print_rtx): Print address space memory attribute.
3917         * expr.c (expand_assignment): Set address space memory attribute
3918         of generated MEM RTXes as appropriate.
3919         (expand_expr_real_1): Likewise.
3920         * cfgexpand.c (expand_debug_expr): Likewise.
3921         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
3923         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
3924         size of "spare" bitfield.
3925         (TYPE_ADDR_SPACE): New macro.
3926         (ENCODE_QUAL_ADDR_SPACE): Likewise.
3927         (DECODE_QUAL_ADDR_SPACE): Likewise.
3928         (CLEAR_QUAL_ADDR_SPACE): Likewise.
3929         (KEEP_QUAL_ADDR_SPACE): Likewise.
3930         (TYPE_QUALS): Encode type address space.
3931         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
3932         * tree.c (set_type_quals): Set type address space.
3933         (build_array_type): Inherit array address space from element type.
3934         * print-tree.c (print_node_brief): Print type address space.
3935         (print_node): Likewise.
3936         * tree-pretty-print.c (dump_generic_node): Likewise.
3938         * explow.c (memory_address): Rename to ...
3939         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
3940         Use address-space aware variants of memory address routines.
3941         * recog.c (memory_address_p): Rename to ...
3942         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3943         Use address-space aware variants of memory address routines.
3944         (offsettable_address_p): Rename to ...
3945         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
3946         Use address-space aware variants of memory address routines.
3947         * reload.c (strict_memory_address_p): Rename to ...
3948         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3949         Use address-space aware variants of memory address routines.
3950         (maybe_memory_address_p): Rename to ...
3951         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
3952         Use address-space aware variants of memory address routines.
3953         * expr.h (memory_address_addr_space): Add prototype.
3954         (memory_address): Define as macro.
3955         * recog.h (memory_address_addr_space_p): Add prototype.
3956         (memory_address_p): Define as macro.
3957         (offsettable_address_addr_space_p): Add prototype.
3958         (offsettable_address_p): Define as macro.
3959         (strict_memory_address_addr_space_p): Add prototype.
3960         (strict_memory_address_p): Define as macro.
3962         * combine.c (find_split_point): Use address-space aware variants
3963         of memory address routines.
3964         * emit-rtl.c (operand_subword): Likewise.
3965         (change_address_1): Likewise.
3966         (adjust_address_1): Likewise.
3967         (offset_address): Likewise.
3968         * expr.c (emit_move_insn): Likewise.
3969         (expand_assignment): Likewise.
3970         (expand_expr_real_1): Likewise.
3971         * recog.c (verify_changes): Likewise.
3972         (general_operand): Likewise.
3973         (offsettable_memref_p): Likewise.
3974         (offsettable_nonstrict_memref_p): Likewise.
3975         (constrain_operands): Likewise.
3976         * reload.c (get_secondary_mem): Likewise.
3977         (find_reloads_toplev): Likewise.
3978         (find_reloads_address): Likewise.
3979         (find_reloads_subreg_address): Likewise.
3980         * reload1.c (reload): Likewise.
3981         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3982         * rtl.h (address_cost): Add ADDRSPACE argument.
3983         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
3984         aware variant of memory address routines.
3985         * loop-invariant.c (create_new_invariant): Update address_cost call.
3986         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3987         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
3988         Use address-space aware variant of memory address routines.
3989         (propagate_rtx_1): Update call to should_replace_address.
3990         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
3991         argument.
3992         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
3993         ADDRSPACE argument.  Use per-address-space instead of global cache.
3994         Use address-space aware variant of memory address routines.
3995         (get_address_cost): Likewise.
3996         (get_computation_cost_at): Update calls.
3997         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
3998         Use address-space aware variant of memory address routines.
3999         (create_mem_ref_raw): Update call to valid_mem_ref_p.
4000         (most_expensive_mult_to_index): Update call to
4001         multiplier_allowed_in_address_p.
4003         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
4004         attribute to indicate named address spaces.
4006         * varasm.c (get_variable_section): DECLs in named address spaces
4007         cannot be "common".
4009         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
4010         for addresses in a non-generic address space.
4012         * expr.c (emit_block_move_hints): Do not use libcalls for
4013         memory in non-generic address spaces.
4014         (clear_storage_hints): Likewise.
4015         (expand_assignment): Likewise.
4017         * fold-const.c (operand_equal_p): Expressions refering to different
4018         address spaces are not equivalent.
4020         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
4021         spaces are not equivalent.
4022         (rtx_equal_p): Likewise.
4023         * cse.c (exp_equiv_p): Likewise.
4024         * jump.c (rtx_renumbered_equal_p): Likewise.
4025         * reload.c (operands_match_p): Likewise.
4027         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
4028         address spaces may alias.
4029         (true_dependence): Likewise.
4030         (canon_true_dependence): Likewise.
4031         (write_dependence_p): Likewise.
4033         * dse.c (canon_address): Handle named address spaces.
4034         * ifcvt.c (noce_try_cmove_arith): Likewise.
4036         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
4037         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
4038         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
4039         to handle conversions between different address spaces.
4040         * fold-const.c (fold_convert_loc): Likewise.
4041         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
4042         * tree-pretty-print.c (dump_generic_node): Likewise.
4043         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
4044         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
4045         * tree-inline.c (estimate_operator_cost): Likewise.
4046         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
4047         to different address spaces are not useless.
4049 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
4051         PR bootstrap/41345
4052         * cfgcleanup.c (trivially_empty_bb_p): New function.
4053         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
4055         PR debug/41828
4056         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
4057         add_name_and_src_coords_attributes, gen_namespace_die,
4058         dwarf2out_set_name): Handle dwarf2_name returning NULL.
4060 2009-10-26  Nick Clifton  <nickc@redhat.com>
4062         * config.gcc: Add support for RX target.
4063         * config/rx: New directory.
4064         * config/rx/constraints.md: New file.
4065         * config/rx/predicates.md: New file.
4066         * config/rx/rx.c: New file.
4067         * config/rx/rx.h: New file.
4068         * config/rx/rx.md: New file.
4069         * config/rx/rx.opt: New file.
4070         * config/rx/rx-protos.h: New file.
4071         * config/rx/t-rx: New file.
4072         * doc/extend.texi: Document RX function attributes.
4073         * doc/invoke.texi: Document RX specific command line options.
4074         * doc/contrib.texi: Document RX contribution.
4075         * doc/md.texi: Document RX constraints.
4076         * doc/install.texi: Document RX support.
4078 2009-10-26  Michael Matz  <matz@suse.de>
4080         PR tree-optimization/41783
4081         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
4082         case for simple diamonds.
4083         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
4084         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
4085         argument, use alias oracle to skip some vdefs.
4086         (phi_translate_1): Change call to above, don't allocate new
4087         value ids if they can stay the same.
4088         (compute_avail): Allow vuse walking when looking up references.
4090 2009-10-26  Richard Guenther  <rguenther@suse.de>
4092         PR tree-optimization/41826
4093         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
4094         access to re-allocated vector fields.
4096 2009-10-26  Richard Guenther  <rguenther@suse.de>
4098         * graphite-sese-to-poly.c (check_poly_representation): Fix
4099         compile without checking.
4101 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
4103         PR fortran/41714
4104         * gimple.h (tree_annotate_all_with_location): Remove prototype.
4105         * gimplify.c (tree_should_carry_location_p,
4106         tree_annotate_one_with_location,tree_annotate_all_with_location):
4107         Remove obsolete functions.
4109 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4111         PR target/41813
4112         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
4114 2009-10-25  Richard Guenther  <rguenther@suse.de>
4116         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4117         Stream DECL_RESTRICTED_P.
4118         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4120 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
4122         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
4123         a note when expanding to nothing.
4125 2009-10-25  Richard Guenther  <rguenther@suse.de>
4127         PR middle-end/41814
4128         * tree.c (find_decls_types_r): Deal with Java overloading
4129         BINFO_VIRTUALS for its own purpose.
4131 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
4133         * config/mips/predicates.md (hilo_operand): New predicate.
4134         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
4135         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
4136         splitter part from here ...:
4137         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
4138         op0 and op4 to match the DINS case.
4139         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
4141 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4143         PR middle-end/19154
4144         * avr.md (QIDI): Add new mode iterator.
4145         (sbrx_branch<mode>): Create new zero extract bit, test and jump
4146         patterns for all QI thru DI modes combinations.
4147         (sbrx_and_branch<mode>): Create new and based bit test and jump
4148         patterns for QI thru SI modes.
4149         avr.c (avr_out_sbxx_branch): Use only bit number.
4151 2009-10-24  Jan Hubicka  <jh@suse.cz>
4153         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
4154         to memory.
4155         (analyze_function): When analyzing noreturn nothrow call, do not
4156         compute written stats; free bitmaps of vars early if possible.
4157         (generate_summary): Only update bitmaps if computed.
4158         (propagate): Only dump bitmaps if computed.
4159         (ipa_reference_read_summary): Fix pasto.
4161 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
4163         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
4164         (aliasing_component_refs_p): ...this.  Return true if there is no
4165         common base and the base access types have the same alias set.
4166         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
4167         (indirect_refs_may_alias_p): Likewise.
4169 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4171         PR c/40033
4172         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
4173         a C_MAYBE_CONST_EXPR.
4175 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4177         PR target/41787
4178         * config/rs6000/rs6000.c (struct machine_function): Add
4179         vsx_or_altivec_used_p to record if vector types are used.
4180         (rs6000_expand_to_rtl_hook): Rename from
4181         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
4182         any vector operations, so if there are, we can set VRSAVE to
4183         non-zero when only floating point vector registers are used.
4184         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
4185         (rs6000_check_vector_mode): Inner function to check if vector
4186         types are used in the code.
4187         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
4188         vector instructions are used.
4190         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
4191         Indicate that VSX registers which overlap floating point
4192         registers, can't be used across a call, since the ABI only states
4193         the scalar part of the register will be saved and restored.
4195 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
4197         PR c/41673
4198         * alias.c (get_alias_set): Call langhook before returning 0 for
4199         types with structural equality.
4200         * c-common.c (c_common_get_alias_set): Use alias set of element
4201         type for arrays with structural comparison.
4203 2009-10-23  Richard Guenther  <rguenther@suse.de>
4205         PR middle-end/41805
4206         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
4207         gimple_call_nothrow_p.
4209 2009-10-23  Richard Guenther  <rguenther@suse.de>
4211         PR tree-optimization/41778
4212         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
4213         redundancy along a path in the CFG we want to optimize for speed
4214         is going to be removed.
4215         (execute_pre): Do partial-PRE only if the function is to be
4216         optimized for speed.
4217         (gate_pre): Do not turn off all of PRE when not optimizing a
4218         function for speed.
4220 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4222         * builtins.c (fold_builtin_cabs): Use validate_arg().
4223         (fold_builtin_cexp): Fix if-logic.
4224         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
4226 2009-10-22  Jeff Law  <law@redhat.com>
4228         * ira-lives.c (process_single_reg_class_operands): Update the
4229         hard reg costs for all the hard registers desired by the
4230         single reg class operand.
4232 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4234         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
4235         for rtxes that aren't handled specially.
4237 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
4239         * rtl.h (shallow_copy_rtvec): Declare.
4240         * rtl.c (shallow_copy_rtvec): New function.
4241         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
4242         rtx field if the subrtx has changed.
4244 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
4246         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
4247         (m32c_function_value): Make static, add new 'outgoing' argument.
4248         (m32c_libcall_value): Make static, add new 'fun' argument.
4249         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4250         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4251         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
4252         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
4253         (m32c_function_value, m32c_libcall_value): Delete declaration.
4255 2009-10-22  Diego Novillo  <dnovillo@google.com>
4257         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
4259 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4261         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
4262         space.
4264 2009-10-22  Richard Guenther  <rguenther@suse.de>
4266         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
4267         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
4268         (lto_symtab_merge): Do not merge cgraph nodes here.
4269         (lto_symtab_resolve_can_prevail_p): Simplify.
4270         (lto_symtab_resolve_symbols): Store cgraph node.
4271         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
4272         functions from the symtab.
4273         (lto_symtab_merge_cgraph_nodes_1): New function.
4274         (lto_symtab_merge_cgraph_nodes): Likewise.
4276 2009-10-22  Richard Guenther  <rguenther@suse.de>
4278         PR lto/41791
4279         * lto-streamer-out.c (lto_output_location): Stream the
4280         system header flag.
4281         * lto-streamer-in.c (lto_input_location): Likewise.
4283 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
4285         * cfgloopmanip.c (duplicate_subloops): Export.
4286         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
4287         (transform_to_exit_first_loop): Duplicate bbs starting from
4288         header up to loop->latch instead of exit->src.
4289         Initialize control variable to the correct number of iterations.
4290         (gather_scalar_reductions): Do not register double reductions.
4291         (parallelize_loops): Dump which loop is tested.
4292         Indicate whether the parallelized loop is inner or not.
4293         Remove the innermost-loop requirement.
4294         * cfgloop.h (duplicate_subloops): Export.
4295         * tree-cfg.c (add_phi_args_after_redirect): New function.
4296         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
4297         Call duplicate_subloops.
4298         Update number of iterations at the exit condition.
4299         Don't redirect nexits always to the loop exit.
4300         Redirect copied edges from latch to the loop exit.
4302 2009-10-22  Jan Hubicka  <jh@suse.cz>
4304         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
4305         flag_ltrans check.
4306         * ipa-inline.c (cgraph_mark_inline_edge,
4307         cgraph_decide_inlining_of_small_function,
4308         cgraph_decide_inlining, inline_read_summary): Disable indirect
4309         inlining for WPA for time being.
4311         PR tree-optimize/40556
4312         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
4314 2009-10-22  Richard Guenther  <rguenther@suse.de>
4316         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
4317         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
4319 2009-10-22  Jan Hubicka  <jh@suse.cz>
4321         PR lto/41730
4322         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
4323         global vars.
4324         (check_call): Handle only indirect calls.
4325         (propagate_bits): Update comment.
4326         (write_node_summary_p): Turn bogus check to assert.
4327         (ipa_reference_write_summary): Stream calls_read_all properly.
4328         (ipa_reference_read_summary): Stream in calls_read_all properly.
4329         (read_write_all_from_decl): New function.
4330         (propagate): Handle OVERWRITABLE nodes and external calls here.
4331         * ipa-pre-const.c (check_call): In IPA mode handle indirect
4332         calls only.
4333         (analyze_function): Do not check visibility here.
4334         (add_new_function): We summary OVERWRITABLE too.
4335         (generate_summary): Stream OVERWRITABLE nodes too.
4336         (propagate): Handle external calls and OVERWRITABLE nodes here.
4337         (local_pure_const): Check visibility here.
4339 2009-10-22  Jan Hubicka  <jh@suse.cz>
4341         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
4342         (pass_ipa_cp): Register them.
4343         (ipcp_init_stage): Analyze all functions for whopr/lto.
4344         (ipcp_propagate_stage): Skip external calls.
4345         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
4346         * ipa-reference.c (write_node_summary_p): Fix thinko about
4347         availability.
4348         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
4349         when in ltrans, skip executing of ipa passes since everything
4350         should've been done.
4351         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
4352         (inline_generate_summary): Likewise.
4353         (inline_read_summary): New function.
4354         (inline_write_summary): New function.
4355         (pass_ipa_inline): Register new hooks.
4356         * ipa-prop.c: Inlcude lto-streamer.h
4357         (ipa_edge_args_vector): Update declaration.
4358         (ipa_count_arguments, ipa_compute_jump_functions,
4359         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
4360         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
4361         ipa_read_node_info): New static functions.
4362         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
4363         (duplicate_array): Use xmalloc.
4364         (duplicate_ggc_array): New.
4365         (ipa_edge_duplication_hook): Use it.
4366         (ipa_update_after_lto_read): New function.
4367         * ipa-prop.h (ipa_prop_write_jump_functions,
4368         ipa_prop_read_jump_functions): Declare.
4369         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
4370         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
4371         (ipa_edge_args_vector): Move into GGC.
4372         (ipa_check_create_edge_args): Update.
4373         (ipa_update_after_lto_read): New.
4374         * passes.c (ipa_write_summaries_1): When in wpa, do not write
4375         summaries.
4376         (ipa_read_summaries): When in ltrans, so not read summaries.
4377         * lto-streamer.c (lto_get_section_name): Add
4378         LTO_section_jump_functions.
4379         * lto-streamer.h (LTO_section_jump_functions): New section.
4380         (produce_asm): Declare.
4381         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
4382         * lto-streamer-out.c (produce_asm): Export.
4383         * lto-streamer-in.c: Include tree-pass.h
4384         (input_function): Free dominance info when done.
4385         (lto_read_body): Push ipa_inline in ltrans stage.
4386         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
4387         * Makefile.in (GTFILES): Add ipa-prop.h
4389 2009-10-22  Matthias Klose  <doko@ubuntu.com>
4391         * doc/install.texi: Document --enable-browser-plugin.
4393 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
4395         * doc/invoke.texi (fira-loop-pressure): Update default value.
4396         * opts.c (decode_options): Remove default value setting for
4397         flag_ira_loop_pressure.
4398         * config/ia64/ia64.c (ia64_override_options): Set
4399         flag_ira_loop_pressure up for -O3.
4400         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
4402 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
4404         PR tree-optimization/41497
4405         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
4406         chrec_dont_know if the evolution function returned by follow_ssa_edge
4407         is constant in the analyzed loop and is not compatible with the
4408         initial value before the loop.
4409         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
4411 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
4413         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
4415 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
4417         PR other/25507
4418         * doc/invoke.texi: Document -print-multi-os-directory.
4420 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
4422         PR c++/41313
4423         * gcc/config/darwin10.h: Use default_emit_unwind_label.
4424         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
4425         when darwin_emit_unwind_label is used.
4427 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4429         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
4430         order of checks.
4432 2009-10-20  Richard Henderson  <rth@redhat.com>
4434         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
4435         before emit_post_landing_pad.
4437 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
4439         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
4440         Use when calling rtx_costs.
4441         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
4442         global optimize_size.  Pass speed to mips_binary_cost.
4444 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4446         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
4447         of TREE_CONSTANT.
4449 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
4451         * rtl.h (simplify_replace_fn_rtx): Declare.
4452         (wrap_constant, unwrap_constant): Delete.
4453         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
4454         (expand_debug_expr): Don't call wrap_constant.
4455         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
4456         (auto_adjust_pair): Fold into...
4457         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
4458         Just return a new value.
4459         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
4460         otherwise use simplify_replace_rtx.
4461         * cselib.c (wrap_constant): Reinstate old definition.
4462         (cselib_expand_value_rtx_1): Don't wrap constants.
4463         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
4464         simplify_replace_rtx.
4465         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
4466         * reload1.c (reload): Skip all uses for an insn before adjusting it.
4467         Use simplify_replace_rtx.
4468         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
4469         adapted from...
4470         (simplify_replace_rtx): ...here.  Turn into a wrapper for
4471         simplify_replace_fn_rtx.
4472         (simplify_unary_operation): Don't unwrap CONSTs.
4473         * var-tracking.c (check_wrap_constant): Delete.
4474         (vt_expand_loc_callback): Don't call it.
4475         (vt_expand_loc): Likewise.
4477 2009-10-20  Pascal Obry  <obry@adacore.com>
4478             Eric Botcazou  <ebotcazou@adacore.com>
4480         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
4482 2009-10-20  Michael Matz  <matz@suse.de>
4484         * loop-invariant.c (create_new_invariant): Use different magic number.
4486 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
4488         PR target/39247
4489         * arm.c (arm_override_options): Forcibly disable hot/cold block
4490         partitioning.
4492 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4494         PR debug/41739
4495         * haifa-sched.c (try_ready): Skip debug deps updating speculation
4496         status.
4498 2009-10-20  Richard Guenther  <rguenther@suse.de>
4500         * ggc-page.c: Include cfgloop.h.
4501         (struct max_alignment): Drop long double, add void *.
4502         (extra_order_size_table): Add low non-power-of-two multiples
4503         of MAX_ALIGNMENT.  Drop small type-based entries, add
4504         tree_type, cgraph_node and loop.
4505         * alloc-pool.c (struct allocation_object_def): Drop long double
4506         aligning element.
4508 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
4510         PR debug/41340
4511         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
4512         referenced just in DEBUG_INSNs.
4514 2009-10-20  Richard Guenther  <rguenther@suse.de>
4516         PR lto/41761
4517         * gimple.c (gimple_register_type): Make sure we register
4518         the types main variant first.
4520 2009-10-20  Richard Guenther  <rguenther@suse.de>
4522         * gimple.c (gimple_types_compatible_p): Simplify.  Move
4523         cheap checks before hashtable queries.  Add checks for
4524         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
4526 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4528         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
4529         without size or with size that can't be represented as a host integer.
4531 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
4533         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
4534         the removal of a debug stmt as a significant change.
4536 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
4538         * config/s390/s390.md: Added agen condition to operand
4539         forwarding bypasses.  Added bypass for early address generation
4540         use of int results.  Updated comments.
4542 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
4544         * config/i386/i386.c: Remove signal.h #include.
4546 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
4548         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
4549         * doc/rtl.texi: Document ss_abs.
4551 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4553         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
4554         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
4555         instead of C_LEX_RAW_STRINGS.
4556         (lex_string): Handle CPP_UTF8STRING.
4557         * c-parser.c (c_parser_postfix_expression): Likewise.
4558         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
4559         (C_LEX_STRING_NO_JOIN): ... this.
4561 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
4563         * config/cris/cris.c (cris_function_value, cris_libcall_value,
4564         cris_function_value_regno_p): New functions.
4565         (cris_promote_function_mode): Update comment.
4566         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4567         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4568         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
4569         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
4571 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4573         * unwind-dw2.c (execute_stack_op): Fix operand order for
4574         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
4576 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
4578         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
4579         (lower_stmt) <GIMPLE_BIND>: Add comment.
4580         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
4581         and return.
4582         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
4583         Otherwise lower it and set cannot_fallthru to true.
4584         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
4585         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
4586         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
4587         to true for a noreturn call.  Do not remove statements.
4588         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
4589         Set cannot_fallthru to false on function exit.
4590         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
4591         <GIMPLE_ASSIGN>: Remove.
4593 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4595         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
4597 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4599         * config/s390/s390.c (s390_z10_optimize_cmp): Use
4600         next/prev_active_insn to skip DEBUG_INSNs as well.
4602 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
4604         * config/arm/arm.c (output_move_neon): Use DImode in call to
4605         adjust_address.
4607 2009-10-19  Matthias Klose  <doko@ubuntu.com>
4609         PR target/40134
4610         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
4612 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
4614         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
4616 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
4618         PR middle-end/41738
4619         * optabs.c (expand_binop): Make mode of shift count expression mode
4620         of shift count not target.
4621         Remove indent nit.
4623 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4625         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
4626         case.  Force using values to replace references within the statement.
4627         (convert_local_reference_stmt): Likewise.
4629 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4631         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
4632         remove a subsequent GOTO or RETURN statement.
4634 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
4636         * config/avr.md (*movqi): Add zero as equally preferable constraint
4637         as general register.
4638         (*movhi): Ditto.
4640 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4642         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
4644 2009-10-17  Richard Guenther  <rguenther@suse.de>
4646         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
4648 2009-10-17  Richard Guenther  <rguenther@suse.de>
4650         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
4651         operands in COMPONENT_REFs.
4653 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
4655         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
4656         if not defined. Change type of second argument to const_rtx.
4657         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
4658         macro not defined.
4659         * targhooks.h (default_libcall_value): Update prototype.
4660         * target.h (struct gcc_target): Change type of second argument of
4661         libcall_value to const_rtx.
4662         * config/arm/arm.c (arm_libcall_value): Change type of second argument
4663         to const_rtx.
4664         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
4665         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
4667 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
4669         PR debug/40521
4670         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
4671         * cgraphunit.c (cgraph_optimize): Call it.
4672         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
4673         (dwarf2out_assembly_start): ... here.  New hook.
4674         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
4675         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
4676         hook.
4677         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4678         * sdbout.c (sdb_debug_hooks): Likewise.
4679         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
4680         (vmsdbgout_assembly_start): New hook.
4682 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4684         * rtl.h (RTL_LOCATION): Fix typo.
4686 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4688         * print-rtl.c (print_rtx): Print locators in asm_operands
4689         and asm_input.
4691 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
4693         PR debug/41535
4694         * sched-deps.c (depl_on_debug_p): New.
4695         (attach_dep_link): Reject debug deps before nondebug deps.
4696         (add_to_deps_list): Insert debug deps after nondebug deps.
4697         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
4698         deps.
4699         (sd_add_dep): Do not reject debug deps.
4700         (add_insn_mem_dependence): Don't count debug deps.
4701         (remove_from_deps): Likewise.
4702         (sched_analyze_2): Set up mem deps on debug insns.
4703         (sched_analyze_insn): Record reg uses for deps on debug insns.
4704         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
4705         try_ready nondebug insn after debug insn.
4706         * ddg.c (create_ddg_dep_from_intra_loop_link,
4707         create_ddg_dep_no_link): Don't reject debug deps.
4709 2009-10-16  Richard Guenther  <rguenther@suse.de>
4711         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
4712         (maybe_merge_incomplete_and_complete_type): Likewise.
4713         (lto_symtab_merge): Do not call them.  Do not warn for
4714         complete vs. incomplete compatible types.
4715         (lto_symtab_merge_decls_2): Simplify.
4716         * gimple.c (gimple_force_type_merge): Remove.
4717         (gimple_types_compatible_p): Make it static.
4718         * gimple.h (gimple_force_type_merge): Remove.
4719         (gimple_types_compatible_p): Likewise.
4721 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
4723         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
4724         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
4726 2009-10-16  Richard Guenther  <rguenther@suse.de>
4728         PR tree-optimization/41728
4729         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
4730         if fold_stmt did anything.
4732 2009-10-16  Richard Guenther  <rguenther@suse.de>
4734         PR lto/41715
4735         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
4736         (maybe_fixup_handled_component): New function.
4737         (input_gimple_stmt): Fixup mismatched decl replacements.
4739 2009-10-16  Richard Guenther  <rguenther@suse.de>
4741         PR lto/41713
4742         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
4743         the same as VAR_DECL.
4745 2009-10-16  Richard Guenther  <rguenther@suse.de>
4747         * gimple.c (iterative_hash_gimple_type): For integer types
4748         also hash their minimum and maximum values and the string flag.
4749         For array types hash their domain and the string flag.
4751 2009-10-16  Richard Guenther  <rguenther@suse.de>
4753         * gimple.c (gimple_types_compatible_p): Restrict completing
4754         types to record or unions.  Simplify completion.
4755         Do not merge records or unions with different
4756         TYPE_STRUCTURAL_EQUALITY_P tag.
4757         (iterative_hash_gimple_type): Restrict non-recursing into
4758         pointer targets for records and unions.
4760 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4762         PR debug/41717
4763         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
4764         * dwarf2out.c (mem_loc_descriptor): Don't handle
4765         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
4766         punt if it is not lowpart subreg or if inner mode isn't
4767         MODE_INT.
4769 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4771         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
4772         investigating previous or next insns.
4774 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4776         * tree-sra.c (build_ref_for_offset_1): Update comment.
4778 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
4780         * config/s390/s390.md (atype): Added missing values.
4782 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4784         PR target/41702
4785         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
4786         (casesi64p): Update pattern to reflect above.
4788 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
4790         PR rtl-optimization/41697
4791         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
4793 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4795         PR target/23983
4796         * config/rs6000/predicates.md: Update copyright year.
4797         * config/rs6000/altivec.md: Ditto.
4799         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
4800         (MD_INCLUDES): Add a2.md.
4802         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
4803         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
4804         (builtin_classify): New static vector to classify various builtins
4805         to get the tree attributes correct.
4806         (def_builtin): Set the attributes of builtins based on what the
4807         builtin does (i.e. memory operation, floating point, saturation
4808         need special attributes, others are pure functions).
4810         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
4811         the builtins.
4812         (enum rs6000_builtins): Include rs6000-builtin.def to define the
4813         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
4814         RS6000_BUILTIN_COUNT.
4815         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
4816         MAX_RS6000_BUILTINS.
4818         * config/rs6000/rs6000-builtin.def: New file that combines the
4819         builtin enumeration name and attributes.
4821 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4823         * config/i386/linux.h (ASM_SPEC): Add --32.
4825 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4827         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
4828         and DW_TAG_template_alias.
4829         (dwarf_attr_name): Handle DW_AT_main_subprogram,
4830         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
4831         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
4832         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
4833         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
4834         and DW_AT_GNU_odr_signature.
4835         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
4836         DW_FORM_flag_present and DW_FORM_ref_sig8.
4837         (output_signature): Only print name on the first byte.
4838         (output_die): Likewise for dw_val_class_data8.
4840 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
4842         * doc/invoke.texi: Clarify that most optimizations are not enabled
4843         without -O.
4845 2009-10-15  Richard Guenther  <rguenther@suse.de>
4847         PR lto/41668
4848         * gimple.c (compare_type_names_p): Handle anonymous names
4849         differently based on new mode argument.
4850         (gimple_types_compatible_p): For structs also compare the tags.
4851         (iterative_hash_type_name): Rename to ...
4852         (iterative_hash_name): ... this.  Hash all names.
4853         (iterative_hash_gimple_type): Fix hashing the struct tag of
4854         pointer targets.  Hash field decl names.
4856 2009-10-15  Richard Guenther  <rguenther@suse.de>
4858         PR lto/41669
4859         * gimple.c (gimple_get_alias_set): Avoid recursing on
4860         invalid type topology.
4862 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4864         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
4866 2009-10-15  Richard Guenther  <rguenther@suse.de>
4868         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
4870 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
4872         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
4873         add --with-tune{,-32,-64} configured default for -mtune if explicit
4874         -mcpu is used.
4876 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
4878         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
4880 2009-10-14  DJ Delorie  <dj@redhat.com>
4882         * config/h8300/h8300.c (F): New.
4883         (Fpa): New.
4884         (h8300_emit_stack_adjustment): Call them.
4885         (push): Likewise.
4886         (h8300_push_pop): Likewise.
4887         (h8300_expand_prologue): Likewise.
4888         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
4889         (MUST_USE_SJLJ_EXCEPTIONS): Define.
4890         (INCOMING_RETURN_ADDR_RTX): Define.
4891         (INCOMING_FRAME_SP_OFFSET): Define.
4892         (DWARF_CIE_DATA_ALIGNMENT): Define.
4894 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4896         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
4897         fields in builtin structs.
4898         (finalize_record_size): Likewise.
4900 2009-10-14  Richard Guenther  <rguenther@suse.de>
4902         * gimple.c (gtc_ob): New global.
4903         (struct type_pair_d): Replace pointers with type UIDs.
4904         (type_pair_hash): Adjust.
4905         (type_pair_eq): Likewise.
4906         (lookup_type_pair): Likewise.  Allocate from an obstack.
4907         (gimple_force_type_merge): Adjust.
4908         (gimple_types_compatible_p): Likewise.
4909         (free_gimple_type_tables): Free the obstack.
4911 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
4913         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
4914         stmts setting DEBUG_EXPR_DECLs.
4916         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
4917         Don't crash if mode1 is VOIDmode.
4919 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
4921         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
4922         * params.h (IRA_LOOP_RESERVED_REGS): New.
4923         * tree-pass.h (pass_subregs_of_mode_init,
4924         pass_subregs_of_mode_finish): Remove.
4925         * passes.c (pass_subregs_of_mode_init,
4926         pass_subregs_of_mode_finish): Remove.
4927         (pass_reginfo_init): Move before loop optimizations.
4928         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
4929         * common.opt (fira-loop-pressure): New.
4930         * toplev.h (flag_ira_loop_pressure): New.
4931         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
4932         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
4933         Make external and void type functions.
4934         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
4935         pass_subregs_of_mode_finish): Remove.
4936         * ira-costs.c (init_costs): Call init_subregs_of_mode.
4937         * regmove.c: Include ira.h.
4938         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
4939         register pressure calculation in loops.
4940         * loop-invariant.c: Include REGS_H and ira.h.
4941         (struct loop_data): New members max_reg_pressure, regs_ref, and
4942         regs_live.
4943         (struct invariant): New member orig_regno.
4944         (curr_loop): New variable.
4945         (find_exits): Initialize regs_ref and regs_live.
4946         (create_new_invariant): Initialize orig_regno.
4947         (get_cover_class_and_nregs): New.
4948         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
4949         array.  Add code for flag_ira_loop_pressure.
4950         (gain_for_invariant): Make new_regs an array.  Add code for
4951         flag_ira_loop_pressure.
4952         (best_gain_for_invariant): Ditto.
4953         (set_move_mark): New parameter gain.  Use it for debugging output.
4954         (find_invariants_to_move): Make regs_needed and new_regs an array.
4955         Add code for flag_ira_loop_pressure.
4956         (move_invariant_reg): Set up orig_regno.
4957         (move_invariants): Set up reg classes for pseudos for
4958         flag_ira_loop_pressure.
4959         (free_loop_data): Clear regs_ref and regs_live.
4960         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
4961         get_regno_cover_class, change_pressure, mark_regno_live,
4962         mark_regno_death, mark_reg_store, mark_reg_clobber,
4963         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
4964         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
4965         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
4966         register pressure calculation in loops if new regs were added.
4967         Call finish_subregs_of_mode.
4968         * opts.c (decode_options): Set up flag_ira_loop_pressure.
4969         * Makefile.in (loop-invariant.o): Add ira.h.
4970         (regmove.o): Ditto.
4971         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
4972         Describe.
4973         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
4975 2009-10-14  Richard Guenther  <rguenther@suse.de>
4977         * lto-symtab.c (lto_symtab_compatible): Fold in ...
4978         (lto_symtab_merge): ... here.  Rewrite both to take the
4979         prevailing and a to-be-merged entry and to queue diagnostics properly.
4980         (lto_symtab_resolve_replaceable_p): New predicate for
4981         symbol resolution.
4982         (lto_symtab_resolve_can_prevail_p): Likewise.
4983         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
4984         handles merging commons by choosing the largest decl.  Fold
4985         in code that gives ODR errors.
4986         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
4987         diagnostics here.
4988         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
4989         case of no prevailing decl here.  Diagnose mismatches
4990         in object types here.  Drop all but the prevailing decls.
4991         (lto_symtab_prevailing_decl): Return the single prevailing decl.
4992         * lto-streamer-in.c (lto_input_tree_ref): Deal with
4993         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
4995 2009-10-14  Richard Guenther  <rguenther@suse.de>
4997         PR lto/41521
4998         * lto-streamer-in.c (input_bb): Replace debug stmts with
4999         nops instead of dropping them.
5001 2009-10-14  Nick Clifton  <nickc@redhat.com>
5003         * gcc/doc/extended.texi: Replace the dash character with @minus{}
5004         in situations where it is being used as a minus symbol.
5005         * gcc/doc/tm.texi: Likewise.
5006         * gcc/doc/md.texi: Likewise.
5008 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
5010         PR preprocessor/41543
5011         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
5012         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
5013         * tree.c: Include intl.h.
5014         (expand_location): Handle BUILTINS_LOCATION.
5015         * Makefile.in (tree.o): Depend on intl.h.
5017         PR debug/41695
5018         * dwarf2out.c (dwarf2out_var_location): Always clear
5019         last_postcall_label when changing last_label.
5021 2009-10-14  Pascal Obry  <obry@adacore.com>
5023         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
5024         (process_command): Handle -E as done with -c and -S.  Do not add
5025         the target executable suffix to the output file when -E is used.
5026         (main): Adjust error message accordingly.
5028 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
5030         PR debug/41343
5031         PR debug/41447
5032         PR debug/41264
5033         PR debug/41338
5034         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
5035         decl with rtl.
5036         (tree_code_size): Likewise.
5038 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5040         * builtins.c (fold_builtin_1): Support complex "arc" functions.
5041         * real.h (HAVE_mpc_arc): Define.
5043 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5045         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
5046         (struct builtin_description): Add fndecl field.
5047         (bdesc): Remove const qualifier.  Update initializer.
5048         (sh_media_init_builtins): Remove const qualifier for d.  Record
5049         the result of add_builtin_function to the fndecl field.
5050         (sh_builtin_decl): New.
5051         (sh_media_builtin_decl): New.
5053 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
5055         PR target/38948
5056         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
5057         requests between special registers.
5059 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5061         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
5063 2009-10-13  Richard Henderson  <rth@redhat.com>
5065         PR tree-optimization/41377
5066         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
5067         (cleanup_empty_eh_merge_phis): New change_region parameter;
5068         pass it on to redirect_eh_edge_1.  Update callers.
5069         (cleanup_empty_eh_unsplit): Don't require an existing EH label
5070         at the destination block.
5072 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
5074         * passes.c (register_pass): Replaced gcc_unreachable by
5075         fatal_error on failure. Mentions plugins in comments & messages.
5077 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
5079         PR target/41693
5080         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
5081         * sched-vis.c (print_value): Use it.
5082         * cselib.c (cselib_hash_rtx): Likewise.
5083         * print-rtl.c (print_rtx): Likewise.
5084         * cfgexpand.c (expand_debug_rtx): Likewise.
5085         * var-tracking.c (vt_expand_loc_callback): Likewise.
5087 2009-10-13  Richard Guenther  <rguenther@suse.de>
5089         PR lto/41565
5090         * opts.c (handle_option): Split out code to handle setting
5091         the options flag var ...
5092         (set_option): ... here.
5093         * opts.h (set_option): Declare.
5094         * lto-opts.c (register_user_option_p): Include -fexceptions
5095         and all position independent code variants.
5096         (handle_common_option): Remove.
5097         (lto_reissue_options): Use set_option.
5099 2009-10-13  Martin Jambor  <mjambor@suse.cz>
5101         PR tree-optimization/41661
5102         * ipa-prop.c (compute_complex_pass_through): Allow only operations
5103         that are tcc_comparisons or do not change the type in any
5104         un-usleless way.
5105         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
5106         folding tcc_comparison operations.
5108 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5110         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
5111         properly.
5113 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
5115         PR debug/41343
5116         PR debug/41447
5117         PR debug/41264
5118         PR debug/41338
5119         * tree.def (DEBUG_EXPR_DECL): New.
5120         * rtl.def (DEBUG_EXPR): New.
5121         * gengtype.c (adjust_field_rtx_def): Handle it.
5122         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
5123         (insert_debug_temp_for_var_def): ... this.  Drop support for
5124         moving.  Take iterator for def stmt; insert debug stmt before it.
5125         Scan early for use count and kind in debug stmts.
5126         (propagate_defs_into_debug_stmts): Rename to...
5127         (insert_debug_temps_for_defs): ... this.  Likewise.
5128         * tree.h (DEBUG_TEMP_UID): New.
5129         * tree.c (next_debug_decl_uid): New.
5130         (make_node_stat): Count debug decls separately.
5131         (copy_node_stat): Likewise.
5132         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
5133         * var-tracking.c (dv_is_decl_p): Recognize it.
5134         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
5135         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
5136         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
5137         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
5138         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
5139         (cselib_hash_rtx): Likewise.
5140         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
5141         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
5142         debug bind stmts.
5143         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
5144         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
5145         * rtl.c (copy_rtx): Likewise.
5146         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
5147         * print-rtl.c (print_rtx): Likewise.
5148         * sched-vis.c (print_value): Likewise.
5149         (print_insn): Handle DEBUG_EXPR_DECL.
5150         * tree-dump.c (dequeue_and_dump): Likewise.
5151         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
5152         * gimple-iterator (gsi_replace): Check for same lhs.
5153         (gsi_remove): Insert debug temps.
5154         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
5155         (move_computations_stmt): Drop explicit propagation into debug stmts.
5156         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
5157         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
5158         * tree-ssa-sink.c (statement_sink_location): Likewise.
5159         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
5160         * tree-ssanames.c (release_ssa_name): Adjust for rename.
5161         * tree-flow.h: Likewise.
5162         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
5163         debug temps without values.
5164         (eliminate_unnecessary_stmts): Don't discard just-inserted
5165         debug stmts.
5167 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
5169         PR target/26515
5170         * config/cris/cris.md (andu): Check that operand 1 is one of the
5171         general registers.  Fix typo in head comment.
5173 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
5175         * config/i386/i386.md (vswapmov): New.
5176         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
5177         (ix86_function_ms_hook_prologue): New.
5178         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
5179         * configure.ac: Test for swap suffix support in as.
5180         * configure: Rebuild.
5182 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
5184         PR target/41680
5185         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
5186         paradoxical subregs to prevent partial register stalls if the inner
5187         mode is integer mode.
5189 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5191         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
5193 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
5195         PR c++/41570
5196         * gcc/dwarf2out.c (template_parameter_pack_die,
5197         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
5199 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
5201         PR debug/41616
5202         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
5203         on updates too.
5204         (maybe_register_def): Likewise.  Take stmt iterator.
5205         (rewrite_update_stmt): Take stmt iterator and pass it on.
5206         (rewrite_update_enter_block): Pass stmt iterator.
5208 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5210         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
5211         (spu_builtin_decl): New function.
5213 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
5215         * config/i386/i386.md (SWIM): New mode iterator.
5216         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
5217         using SWIM mode iterator.
5218         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
5219         patterns using SWI48 mode iterator.
5220         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
5221         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
5222         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
5223         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
5224         patterns using SWI248 mode iterator.
5225         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
5226         gen_x86_movdicc_0_m1_rex64 for renamed function
5228 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
5229             Eric Botcazou  <ebotcazou@adacore.com>
5231         PR target/33743
5232         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
5233         * config/sparc/sol2-unwind.h: New file.
5235 2009-10-11  Olivier Hainque  <hainque@adacore.com>
5236             Eric Botcazou  <ebotcazou@adacore.com>
5238         PR target/33743
5239         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
5240         * config/i386/sol2-unwind.h: New file.
5242 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5244         PR target/41665
5245         * config/i386/i386.md (addsi_1_zext): Get the proper second
5246         operand for lea.
5248 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
5250         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
5251         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
5252         replacement value.
5254 2009-10-11  Richard Guenther  <rguenther@suse.de>
5256         * gimple.c (iterative_hash_type_name): Do not handle special
5257         anonymous names.
5259 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
5261         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
5262         (*setcc_si_1_and): Ditto.
5263         (*setcc_si_1_movzbl): Ditto.
5264         (*setcc_<mode>_2): Ditto.
5265         (*setcc_qi): Rename from *setcc_1.
5266         (*setcc_qi_slp): Rename from *setcc_2.
5268         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
5269         (*zero_extendqisi2_movzbw_and splitter): Ditto.
5271         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
5272         "if" condition, there is already assert with reload_completed present.
5274 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
5276         * plugin.c (try_init_one_plugin): Improve constness of variable err.
5278 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
5280         * doc/install.texi (Final install): Refer to
5281         http://gcc.gnu.org/bugs/ for bug reporting.
5283 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
5285         * configure.ac: Add test for dci instruction.
5286         * configure: Regenerate.
5287         * config.in: Likewise.
5288         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
5289         * doc/invoke.texi: Add cpu_type 476 and 476fp.
5290         (-mmulhw): Add 476 to description.
5291         (-mdlmzb): Likewise.
5292         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
5293         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
5294         (processor_target_table): Add 476 and 476fp entries.
5295         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
5296         (rs6000_issue_rate): Add CPU_PPC476.
5297         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
5298         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
5299         (processor_type): Add PROCESSOR_PPC476.
5300         (EXTRA_SPECS): Add asm_cpu_476 string.
5301         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
5302         (define_attr "cpu"): Add ppc476.
5303         Include 476.md.
5304         Update comments for 476.
5305         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
5306         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
5307         Update copyright year.
5308         * config/rs6000/476.md: New file.
5309         * config/rs6000/40x.md: Add description for "isel" attribute.
5310         Update copyright year.
5311         * config/rs6000/440.md: Likewise.
5312         * config/rs6000/603.md: Likewise.
5313         * config/rs6000/6xx.md: Likewise.
5314         * config/rs6000/7450.md: Likewise.
5315         * config/rs6000/7xx.md: Likewise.
5316         * config/rs6000/8540.md: Likewise.
5317         * config/rs6000/cell.md: Likewise.
5318         * config/rs6000/e300c2c3.md: Likewise.
5319         * config/rs6000/e500mc.md: Likewise.
5320         * config/rs6000/mpc.md: Likewise.
5321         * config/rs6000/power4.md: Likewise.
5322         * config/rs6000/power5.md: Likewise.
5323         * config/rs6000/power6.md: Likewise.
5324         * config/rs6000/power7.md: Likewise.
5325         * config/rs6000/rios1.md: Likewise.
5326         * config/rs6000/rios2.md: Likewise.
5327         * config/rs6000/rs64.md: Likewise.
5329 2009-10-10  Richard Guenther  <rguenther@suse.de>
5331         PR tree-optimization/41654
5332         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
5333         a cond expr before calling gimple_cond_set_condition_from_tree.
5334         (ifcombine_iforif): Likewise.
5336 2009-10-09  Ian Lance Taylor  <iant@google.com>
5338         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
5339         * configure: Rebuild.
5341 2009-10-09  Neil Vachharajani <nvachhar@google.com>
5343         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
5344         deprecated.
5346 2009-10-09  Richard Guenther  <rguenther@suse.de>
5348         PR lto/41638
5349         * target-def.h (TARGET_BUILTIN_DECL): Define.
5350         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
5351         * target.h (struct gcc_target): Add builtin_decl target hook.
5352         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
5353         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
5354         target builtins.
5355         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
5356         not gcc_unreachable.
5357         (lto_output_builtin_tree): Sorry if the target does not support
5358         streaming target builtins.
5359         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
5360         (rs6000_builtin_decl): New function.
5361         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
5362         (ix86_builtin_decl): New function.
5364 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
5366         PR preprocessor/41445
5367         * c-ppoutput.c (do_line_change): New function.
5368         (cb_line_change): Use it.
5369         (scan_translation_unit): Call do_line_change if
5370         avoid_paste or PREV_WHITE and token location is on a different line
5371         than print.src_line.
5373         PR debug/40521
5374         * dwarf2out.c (dwarf2out_init): Test whether
5375         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
5376         it is defined.
5378         PR rtl-optimization/41646
5379         * calls.c (expand_call): For BLKmode types returned in registers
5380         avoid likely spilled hard regs in copy_blkmode_from_reg generated
5381         insns.
5383 2009-10-09  Richard Guenther  <rguenther@suse.de>
5385         PR tree-optimization/41634
5386         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
5387         we remove the correct elements.
5388         (optimize_stmt): Make sure to update stmt operands before
5389         optimizing redundancies.
5391 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5393         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
5395 2009-10-09  Richard Guenther  <rguenther@suse.de>
5397         PR driver/41637
5398         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
5399         globals.
5400         (lto_wrapper_exit): New function.
5401         (fatal): Use it.
5402         (fatal_perror): Likewise.
5403         (fork_execute): Use global args_name, do not free it.
5404         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
5405         * lto-streamer.h: Remove duplicate prototypes.
5407 2009-10-09  Richard Guenther  <rguenther@suse.de>
5409         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
5410         before calling stmt_can_throw_external.
5412 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5414         PR tree-optimization/40071
5415         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
5416         pointer if the original data reference doesn't conflict with the
5417         created vector data reference.  Fix long line.
5419 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
5421         * config/i386/i386.md (any_div): New code iterator.
5422         (u): Handle div and udiv.
5423         (sgnprefix): Ditto.
5424         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
5425         code iterator.
5426         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
5427         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
5428         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
5429         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
5431 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
5433         * gcc.c (main): Remove trailing "." from diagnostics.
5435 2009-10-08  Cary Coutant  <ccoutant@google.com>
5437         Add support for debugging with ICF (Identical Code Folding).
5438         * calls.c (debug.h): New #include.
5439         (emit_call_1): Call virtual_call_token debug hook.
5440         * common.opt (-fenable-icf-debug): New option.
5441         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
5442         locations in the source).
5443         (poc_label_num): New variable.
5444         (dcall_entry, vcall_entry): New typedefs.
5445         (dcall_table, vcall_table): New variables.
5446         (struct vcall_insn): New type.
5447         (vcall_insn_table): New variable.
5448         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
5449         (size_of_dcall_table): New function.
5450         (output_dcall_table): New function.
5451         (size_of_vcall_table): New function.
5452         (output_vcall_table): New function.
5453         (dwarf2out_direct_call): New function.
5454         (vcall_insn_table_hash): New function.
5455         (vcall_insn_table_eq): New function.
5456         (dwarf2out_virtual_call_token): New function.
5457         (dwarf2out_virtual_call): New function.
5458         (dwarf2out_init): Allocate new tables and sections.
5459         (prune_unused_types): Mark DIEs referenced from direct call table.
5460         (dwarf2out_finish): Output direct and virtual call tables.
5461         * final.c (final_scan_insn): Call direct_call and virtual_call
5462         debug hooks.
5463         * debug.h (struct gcc_debug_hooks): Add direct_call,
5464         virtual_call_token, virtual_call hooks.
5465         (debug_nothing_uid): New function.
5466         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
5467         (debug_nothing_uid): New function.
5468         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
5469         (xcoff_debug_hooks): Likewise.
5470         * sdbout.c (sdb_debug_hooks): Likewise.
5471         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5472         * doc/invoke.texi (-fenable-icf-debug): New option.
5474 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
5476         PR debug/41353
5477         * regmove.c (regmove_backward_pass): Replace src with dst in the
5478         debug insn, and check for dst before rather than after.
5480 2009-10-08  Janis Johnson <janis187@us.ibm.com>
5482         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
5483         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
5485 2009-10-08  Jan Hubicka  <jh@suse.cz>
5487         PR middle-end/41626
5488         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
5489         do not mark cgraph nodes as needed.
5490         (record_references_in_initializer): Add new only_vars parameter.
5491         * cgraph.h (record_references_in_initializer): New parameter.
5492         * varasm.c (assemble_variable): Update call.
5493         * varpool.c (varpool_analyze_pending_decls): Always look for
5494         referenced vars.
5496 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
5498         * config/avr/avr.c (last_insn_address) Remove variable.
5499         (expand_prologue): Don't initialise last_insn_address variable.
5500         (final_prescan_insn): Don't output insn size.
5501         * config/avr/avr.opt (msize): Remove switch.
5502         * doc/invoke.texi (AVR Options): Remove documentation of -msize
5503         switch.
5505 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
5507         * combine.c (label_tick_ebb_start): Fix comment.
5508         (combine_instructions): Set label_tick and label_tick_ebb_start before
5509         calling setup_incoming_promotions.  Start them from 1.  Increment
5510         label_tick instead of deriving it from the BB index.  Rather than
5511         comparing ticks use the block from the previous iteration to decide
5512         whether to start a new EBB.  Remove empty lines before function.
5514 2009-10-08  Michael Matz  <matz@suse.de>
5516         PR middle-end/41573
5517         * builtins.c (fold_builtin_isascii): Use fold_build2.
5518         (fold_builtin_isdigit): Ditto.
5519         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
5520         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
5521         remove_useless_stmts_cond, remove_useless_stmts_tf,
5522         remove_useless_stmts_tc, remove_useless_stmts_bind,
5523         remove_useless_stmts_goto, remove_useless_stmts_label,
5524         remove_useless_stmts_1, remove_useless_stmts,
5525         pass_remove_useless_stmts): Remove.
5526         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
5527         * passes.c (init_optimization_passes): Don't add
5528         pass_remove_useless_stmts.
5529         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
5530         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
5531         static constants.
5532         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
5533         for static constants.
5534         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
5535         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
5537 2009-10-08  Richard Guenther  <rguenther@suse.de>
5539         * gimple.c (free_gimple_type_tables): New function.
5540         * gimple.h (free_gimple_type_tables): Declare.
5542 2009-10-07  Mark Heffernan  <meheff@google.com>
5544         * ipa-prop.c (ipa_print_node_params) Only print
5545         names of named arguments.
5547 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
5549         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
5550         being statically linked.
5552 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5554         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
5556 2009-10-08  Jan Hubicka  <jh@suse.cz>
5558         PR bootstrap/41620
5559         * ipa.c (cgraph_externally_visible_p,
5560         function_and_variable_visibility,
5561         whole_program_function_and_variable_visibility): Skip non-finalized
5562         nodes.
5564 2009-10-08  Nick Clifton  <nickc@redhat.com>
5566         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
5567         CONST_DOUBLEs.
5569 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
5571         PR bootstrap/37739
5572         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
5574 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
5576         PR c/41182
5577         * c-common.c (c_fully_fold_internal): Strip nops from the result
5578         of recursive calls to c_fully_fold_internal.
5579         (c_wrap_maybe_const): New.
5580         (c_save_expr): Use c_wrap_maybe_const.
5581         * c-common.h (c_wrap_maybe_const): Declare.
5582         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
5583         build_binary_op): Use c_wrap_maybe_const.
5585 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5587         * real.c: Fix comment to reflect actual exponent size.
5589 2009-10-08  Ben Elliston  <bje@au.ibm.com>
5591         * config/rs6000/a2.md: Add FSF comment header.
5593 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
5595         * config/i386/i386.md (any_extend): New code iterator.
5596         (u, s): New code attributes.
5597         (sgnprefix): Ditto.
5598         (DWIH): Rewrite as code iterator for SI and DI modes.
5599         (DWI): Rewrite as mode attribute.
5600         (dwi): New mode attribute.
5601         (di): Depend on SI mode and DI mode.
5602         (doubleint_general_operand): Remove mode attribute.
5604         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
5605         DWIH mode iterator.
5607         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
5608         (*sub<mode>3_doubleword): Ditto.
5610         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
5611         using SWIM248 mode iterator.
5612         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
5613         using SWI48 mode iterator.
5614         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
5615         patterns using DWIH mode iterator and any_extend code iterator.
5616         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
5617         using any_extend code iterator.
5618         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
5619         patterns using DWIH mode iterator and any_extend code iterator.
5620         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
5621         using any_extend code iterator.
5622         (<s>mul<mode>3_highpart): Macroize expander from
5623         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
5624         and any_extend code iterator.
5625         (*<s>muldi3_highpart_1): Macroize insn from
5626         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
5627         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
5628         patterns using any_extend code iterator.
5629         (*<s>mulsi3_highpart_zext): Macroize insn from
5630         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
5632 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
5634         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
5635         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
5636         refering to a DIE with DW_AT_const_value.
5638 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
5640         PR middle-end/22072
5641         * ira-lives.c (check_and_make_def_conflict): Process all operands.
5643 2009-10-06  Jan Hubicka  <jh@suse.cz>
5645         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
5646         correctly.
5648 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5650         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
5651         *lea_2_rex64): Move before *add<mode>_1 pattern.
5653 2009-10-07  Jan Hubicka  <jh@suse.cz>
5655         * collect2.c (main): Add -fno-whole-program.
5656         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
5658 2009-10-07  Jan Hubicka  <jh@suse.cz>
5660         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
5661         has no address taken.
5662         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
5663         never needed.
5664         (cgraph_clone_node): Clear externally_visible flag for clones.
5665         * cgraph.h (cgraph_only_called_directly_p,
5666         cgraph_can_remove_if_no_direct_calls_p): New predicates.
5667         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
5668         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
5669         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
5670         ipcp_insert_stage): Likwise.
5671         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
5672         externally_visible flag.
5673         (verify_cgraph_node): Verify that inline clones look right.
5674         (process_function_and_variable_attributes): Do not set
5675         externally_visible flags.
5676         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
5677         been already run.
5678         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
5679         boundaries.
5680         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
5681         clear externally_visible when turning into inline clones
5682         (cgraph_mark_inline_edge): Use new predicates.
5683         (cgraph_estimate_growth): Likewise.
5684         (cgraph_decide_inlining): Likewise.
5685         * ipa.c (cgraph_postorder): Likewise.
5686         (cgraph_remove_unreachable_nodes): Likewise; sanity check
5687         that inline clones are not needed.
5688         (cgraph_externally_visible_p): New predicate.
5689         (function_and_variable_visibility): Add whole_program parameter;
5690         always set externally_visible flag; handle COMDAT function
5691         privatization.
5692         (local_function_and_variable_visibility): New function.
5693         (gate_whole_program_function_and_variable_visibility): New function.
5694         (whole_program_function_and_variable_visibility): New function.
5695         (pass_ipa_whole_program_visibility): New function.
5696         * passes.c  (init_optimization_passes): Add whole program visibility
5697         pass.
5698         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
5699         not care about needed/reachable flags.
5700         * varpool.c: Include flags.h
5701         (decide_is_variable_needed): When doing LTO assume whole-program mode.
5702         (varpool_finalize_decl): When we are in LTO read-back, all variables
5703         are analyzed.
5704         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
5706 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5708         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
5709         add MASK_HARD_DFP.
5711 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5713         * config.gcc: Don't include the makefile fragments intended for
5714         libgcc.
5715         * config/s390/fixdfdi.h: File removed.
5716         * config/s390/libgcc-glibc.ver: File removed.
5717         * config/s390/s390.h: Remove the fixdfdi.h hack.
5718         * config/s390/t-crtstuff: File moved to libgcc dir.
5719         * config/s390/t-linux: Likewise.
5720         * config/s390/t-tpf: libgcc specific parts removed.
5721         * config/s390/t-linux64: Likewise.
5723 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5725         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
5726         (lto-compress.o): Likewise.
5728 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
5730         PR target/41512
5731         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
5732         dllexport to class members here.
5733         (i386_pe_determine_dllimport_p): Only check static class data for
5734         definition.
5735         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
5736         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
5737         functions for vague linkage.
5738         (i386_pe_type_dllexport_p): Fix formatting.
5739         (maybe_add_dllexport) New function.
5740         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
5741         to class members.
5743 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5745         * config/rs6000/a2.md: Remove duplicated lines.
5747 2009-10-07  Ben Elliston  <bje@au.ibm.com>
5749         * config.gcc (powerpc*-*-*): Handle a2.
5750         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
5751         * config/rs6000/a2.md: New file.
5752         * config/rs6000/rs6000.opt (mno-update): New.
5753         (mupdate): Return to using a mask, not a var.
5754         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
5755         (enum processor_type): Add PROCESSOR_PPCA2.
5756         * config/rs6000/rs6000.c (ppca2_cost): New costs.
5757         (rs6000_override_options): Add "a2" to processor_target_table.
5758         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
5759         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
5761 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5763         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5764         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
5765         reference to nonexistent gen_truncxfxf2 function.
5767 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
5769         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
5770         (DWIH, g, di, doubleint_general_operand): New mode attributes.
5771         (general_operand): Handle TI mode.
5772         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
5773         using SDWIM mode iterator.
5774         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
5775         pattern from *add{di,ti}3_1 patterns and corresponding splitters
5776         using DWI mode iterator.
5777         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
5778         patterns using SWI mode iterator.
5779         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
5780         using SWI48 mode iterator.
5781         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
5782         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
5783         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
5784         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
5785         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
5786         using SDWIM mode iterator.
5787         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
5788         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
5789         using DWI mode iterator.
5790         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
5791         patterns using SWI mode iterator.
5792         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
5793         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
5794         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
5795         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
5796         patterns using plusminus code iterator.
5797         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
5798         sub<mode>3 patterns using plusminus code iterator.
5799         * config/i386/i386.c (override_options): Update the call to
5800         gen_subdi_carry_rex64 for renamed function.
5801         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
5802         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
5803         calls to instruction expanders.
5805 2009-10-06  Martin Jambor  <mjambor@suse.cz>
5807         PR bootstrap/41395
5808         * opts.c (decode_options): Run IPA-SRA at -O2.
5810 2009-10-06  Richard Guenther  <rguenther@suse.de>
5812         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
5814 2009-10-06  Tobias Burnus  <burnus@net-b.de>
5816         PR lto/41591
5817         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
5818         -flto and -fwhole-program flags can be combined.
5820 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
5822         PR driver/41217
5823         * gcc.c (process_command): Check that -o argument was specified.
5825 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
5827         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
5829 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5831         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
5832         * doc/invoke.texi (Warning Options): Annotate allowed languages
5833         for -Wunsuffixed-float-constants.
5835 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
5837         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
5838         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
5839         same name and isn't the main variant.
5841         PR debug/41558
5842         * dwarf2out.c (loc_by_reference): Removed.
5843         (dw_loc_list_1): New function.
5844         (dw_loc_list): Remove toplev argument, add want_address argument.
5845         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
5846         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
5847         want_address == 2 to dw_loc_list.  For successful dw_loc_list
5848         set have_address to 1 only if want_address is not 0.
5850 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5852         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
5853         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
5854         a code block followed by two pointers.
5855         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
5856         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
5857         (MIPS_MOVE): Likewise.
5858         (MIPS_LUI): Likewise.
5859         (MIPS_JR): Likewise.
5860         (MIPS_BAL): Likewise.
5861         (MIPS_NOP): Likewise.
5862         (mips_asm_trampoline_template): Delete.
5863         (mips_trampoline_code_size): New function.
5864         (mips_trampoline_init): Add shorter sequences for all cases
5865         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
5866         Calculate the opcodes directly, rather than copying from a template.
5867         Only flush the code part of the trampoline.
5868         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
5870 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
5872         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
5873         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
5874         (INCOMING_RETURN_ADDR_RTX): Likewise.
5875         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
5876         with AT_REGNUM.
5877         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
5878         with RETURN_ADDR_REGNUM.
5879         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
5880         * config/mips/mips.c (mips16_build_call_stub): Replace
5881         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
5882         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
5883         (mips_print_operand_punctuation): Likewise.
5884         (mips_frame_set): Likewise.
5885         (mips16e_output_save_restore): Likewise.
5886         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5887         (mips_save_reg_p): Likewise.
5888         (mips_return_addr): Likewise.
5889         (mips_set_return_address): Likewise.
5890         (mips_direct_save_slot_move_p): Likewise.
5891         (mips_output_function_prologue): Likewise.
5892         (mips_restore_reg): Likewise.
5893         (mips_expand_epilogue): Likewise.
5894         (mips_epilogue_uses): Likewise.
5895         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
5896         (*mov<mode>_ra): Use it instead of a hard-coded 31.
5897         (clear_hazard_<mode>): Likewise.
5898         (call_internal): Likewise.
5899         (call_internal_direct): Likewise.
5900         (call_direct_split): Likewise.
5901         (call_value_internal): Likewise.
5902         (call_value_split): Likewise.
5903         (call_value_internal_direct): Likewise.
5904         (call_value_direct_split): Likewise.
5905         (call_value_multiple_internal): Likewise.
5906         (call_value_multiple_split): Likewise.
5908 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
5909             Jakub Jelinek  <jakub@redhat.com>
5911         PR rtl-optimization/41511
5912         * combine.c (record_value_for_reg): Pass explicit values as argument
5913         to get_last_value_validate.
5914         (get_last_value_validate): Document INSN parameter.
5915         For non-readonly MEMs, assume they might have been modified if INSN
5916         was in another basic block.
5917         (get_last_value): Minor reformatting.
5919 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5921         PR tree-opt/40992
5922         * final.c (asm_str_count): Split out from asm_insn_count.
5923         * rtl.h (asm_str_count): New prototype.
5924         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
5925         asm_str_count.
5927 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
5929         * doc/plugins.texi: Change plugin_pass to register_pass_info.
5931 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
5932             Rafael Espindola  <espindola@google.com>
5934         * gengtype.c (write_types): Moved call to write_func_for_structure
5935         into seperate loops.
5937 2009-10-05  Richard Guenther  <rguenther@suse.de>
5939         PR lto/41281
5940         * lto-cgraph.c (output_cgraph): Output toplevel asms.
5941         (input_cgraph_1): Input toplevel asms.
5943 2009-10-05  Richard Guenther  <rguenther@suse.de>
5945         PR lto/40902
5946         * lto-symtab.c (lto_compatible_attributes_p): Remove.
5947         (external_aggregate_decl_p): Likewise.
5948         (lto_symtab_compatible): Re-structure.  Remove dead code.
5949         For variables ignore toplevel qualifiers when comparing types.
5950         Issue warnings, not errors for mismatched user-alignment.
5952 2009-10-05  Richard Guenther  <rguenther@suse.de>
5954         PR lto/41552
5955         PR lto/41487
5956         * lto-symtab.c (struct lto_symtab_base_def): Remove.
5957         (struct lto_symtab_identifier_def): Likewise.
5958         (struct lto_symtab_decl_def): Likewise.
5959         (struct lto_symtab_entry_def): New.
5960         (lto_symtab_identifier_t): Rename to ...
5961         (lto_symtab_entry_t): ... this.
5962         (lto_symtab_decls): Remove.
5963         (lto_symtab_base_hash): Rename to ...
5964         (lto_symtab_entry_hash): ... this.
5965         (lto_symtab_base_eq): Rename to ...
5966         (lto_symtab_entry_eq): ... this.
5967         (lto_symtab_base_marked_p): Rename to ...
5968         (lto_symtab_entry_marked_p): ... this.
5969         (lto_symtab_identifier_marked_p): Remove.
5970         (lto_symtab_decl_marked_p): Likewise.
5971         (lto_symtab_maybe_init_hash_tables): Rename to ...
5972         (lto_symtab_maybe_init_hash_table): ... this.
5973         (lto_symtab_set_resolution_and_file_data): Remove.
5974         (lto_symtab_register_decl): New function.
5975         (lto_symtab_get_identifier): Remove.
5976         (lto_symtab_get): New function.
5977         (lto_symtab_get_resolution): Adjust.
5978         (lto_symtab_get_identifier_decl): Remove.
5979         (lto_symtab_set_identifier_decl): Likewise.
5980         (lto_symtab_merge_decl): Rename to ...
5981         (lto_symtab_merge): ... this.  Rewrite.
5982         (lto_symtab_merge_var): Remove.
5983         (lto_symtab_merge_fn): Likewise.
5984         (lto_symtab_prevailing_decl): Adjust.
5985         (lto_cgraph_replace_node): New function.
5986         (lto_symtab_merge_decls_2): Likewise.
5987         (lto_symtab_merge_decls_1): Likewise.
5988         (lto_symtab_fixup_var_decls): Likewise.
5989         (lto_symtab_resolve_symbols): Likewise.
5990         (lto_symtab_merge_decls): Likewise.
5991         (lto_symtab_prevailing_decl): Adjust.
5992         (lto_symtab_get_symtab_def): Remove.
5993         (lto_symtab_get_file_data): Likewise.
5994         (lto_symtab_clear_resolution): Adjust.
5995         (lto_symtab_clear_resolution): Likewise.
5996         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
5997         (input_cgraph_1): Likewise.
5998         * lto-streamer-in.c (get_resolution): Do not provide fake
5999         symbol resolutions here.
6000         (deferred_global_decls): Remove.
6001         (lto_register_deferred_decls_in_symtab): Likewise.
6002         (lto_register_var_decl_in_symtab): Change signature, register
6003         variable via lto_symtab_register_decl.
6004         (lto_register_function_decl_in_symtab): Likewise.
6005         (lto_read_tree): Adjust.
6006         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
6007         (lto_symtab_merge_var): Likewise.
6008         (lto_symtab_merge_fn): Likewise.
6009         (lto_symtab_register_decl): Declare.
6010         (lto_symtab_merge_decls): Likewise.
6012 2009-10-05  Richard Guenther  <rguenther@suse.de>
6014         PR tree-optimization/23821
6015         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
6016         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
6017         simple IV increments.
6019 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6021         * config/arm/arm.c (arm_override_options): Really initialize
6022         flag_dwarf2_cfi_asm to 0.
6024 2009-10-05  Doug Kwan  <dougkwan@google.com>
6026         PR rtl-optimization/41574
6027         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
6028         floating point and we are not doing unsafe math optimizations.
6030 2009-10-03  Simon Baldwin  <simonb@google.com>
6031             Cary Coutant  <ccoutant@google.com>
6032             Rafael Espindola  <espindola@google.com>
6033             Richard Guenther  <rguenther@suse.de>
6034             Jan Hubicka  <jh@suse.cz>
6035             Doug Kwan <dougkwan@google.com>
6036             H.J. Lu  <hongjiu.lu@intel.com>
6037             Bill Maddox  <maddox@google.com>
6038             Ryan Mansfield  <rmansfield@qnx.com>
6039             Diego Novillo  <dnovillo@google.com>
6040             Ollie Wild  <aaw@google.com>
6041             Kenneth Zadeck <zadeck@naturalbridge.com>
6043         * lto-cgraph.c: New file.
6044         * lto-compress.c: New file.
6045         * lto-compress.h: New file.
6046         * lto-opts.c: New file.
6047         * lto-section-in.c: New file.
6048         * lto-section-out.c: New file.
6049         * lto-streamer-in.c: New file.
6050         * lto-streamer-out.c: New file.
6051         * lto-streamer.c: New file.
6052         * lto-streamer.h: New file.
6053         * lto-symtab.c: New file.
6054         * lto-wpa-fixup.c: New file.
6055         * lto-wrapper.c: New file.
6057 2009-10-03  Simon Baldwin  <baldwin@google.com>
6058             Ben Elliston  <bje@au.ibm.com>
6059             Rafael Espindola  <espindola@google.com>
6060             Nathan Froyd  <froydnj@codesourcery.com>
6061             Jan Hubicka  <jh@suse.cz>
6062             Doug Kwan  <dougkwan@google.com>
6063             Diego Novillo  <dnovillo@google.com>
6064             Kenneth Zadeck  <zadeck@naturalbridge.com>
6066         * Makefile.in (enable_lto): New.
6067         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
6068         (LINKER_PLUGIN_API_H): Define.
6069         (LTO_SYMTAB_H): Define.
6070         (LTO_STREAMER_H): Define.
6071         (TREE_VECTORIZER_H): Define.
6072         (INCLUDES): Add LIBELFINC.
6073         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
6074         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
6075         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
6076         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
6077         (native): Add lto-wrapper$(exeext)
6078         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
6079         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
6080         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
6081         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
6082         (varasm.o): Add dependency on tree-iterator.h.
6083         (cgraph.o): Add dependency on cif-code.def.
6084         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
6085         (ipa-pure-const.o): Likewise.
6086         (GTFILES): Add lto-symtab.c.
6087         (install-lto-wrapper): New.
6088         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
6089         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
6090         * config.in: Regenerate.
6092 2009-10-03  Rafael Espindola  <espindola@google.com>
6093             Diego Novillo  <dnovillo@google.com>
6095         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
6096         ipa_write_summaries.
6097         Call execute_ipa_summary_passes for all_regular_ipa_passes and
6098         all_lto_gen_passes.
6099         (cgraph_optimize): Make extern.
6101 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
6102             Kenneth Zadeck <zadeck@naturalbridge.com>
6104         * toplev.c (in_lto_p): Declare.
6105         * collect2.c (scan_prog_file): Read all the output when reading
6106         information for LTO.
6107         (enum lto_mode_d): Declare.
6109 2009-10-03  Richard Guenther  <rguenther@suse.de>
6110             Diego Novillo  <dnovillo@google.com>
6112         * gimple.c: Include target.h and alias.h.
6113         (gimple_types): Declare.
6114         (type_hash_cache): Declare.
6115         (gimple_alloc_stat): Make extern.
6116         (gimple_build_eh_must_not_throw): Call
6117         gimple_eh_must_not_throw_set_fndecl.
6118         (struct type_pair_d): Declare.
6119         (type_pair_t): Declare.
6120         (type_pair_hash): New.
6121         (type_pair_eq): New.
6122         (lookup_type_pair): New.
6123         (gimple_force_type_merge): New.
6124         (compare_type_names_p): New.
6125         (compare_field_offset): New.
6126         (gimple_types_compatible_p): New.
6127         (struct sccs): Declare.
6128         (next_dfs_num): Declare.
6129         (iterative_hash_gimple_type): New.
6130         (visit): New.
6131         (iterative_hash_type_name): New.
6132         (iterative_hash_gimple_type): New.
6133         (gimple_type_hash): New.
6134         (gimple_type_eq): New.
6135         (gimple_register_type): New.
6136         (print_gimple_types_stats): New.
6137         (gimple_signed_or_unsigned_type): New.
6138         (gimple_unsigned_type): New.
6139         (gimple_signed_type): New.
6140         (gimple_get_alias_set): New.
6141         (gimple_decl_printable_name): Do not use DMGL_TYPES.
6142         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
6143         (gimple_force_type_merge): Declare.
6144         (gimple_types_compatible_p): Declare.
6145         (gimple_register_type): Declare.
6146         (print_gimple_types_stats): Declare.
6147         (gimple_unsigned_type): Declare.
6148         (gimple_signed_type): Declare.
6149         (gimple_get_alias_set): Declare.
6150         (gimple_eh_must_not_throw_set_fndecl): New.
6152 2009-10-03  Jan Hubicka  <jh@suse.cz>
6153             Kenneth Zadeck <zadeck@naturalbridge.com>
6155         * ipa-pure-const.c: Include lto-streamer.h.
6156         (register_hooks): Factor out of ...
6157         (generate_summary): ... here.
6158         (pure_const_write_summary): New.
6159         (pure_const_read_summary): New.
6160         (pass_ipa_pure_const): Add pure_const_write_summary and
6161         pure_const_read_summary.
6162         * ipa-reference.c: Include lto-streamer.h.
6163         (add_new_function): New.
6164         (remove_node_data): New.
6165         (duplicate_node_data): New.
6166         (ipa_init): Guard against multiple calls.
6167         Move hook setup from analyze_function.
6168         (write_node_summary_p): New.
6169         (ipa_reference_write_summary): New.
6170         (ipa_reference_read_summary): New.
6171         (pass_ipa_reference): Add ipa_reference_write_summary and
6172         ipa_reference_read_summary.
6173         * cgraph.h (cgraph_local_info): Add field lto_file_data.
6174         (struct cgraph_edge): Add fields lto_stmt_uid and
6175         call_stmt_cannot_inline_p.
6176         (cgraph_optimize): Declare.
6177         (cgraph_decide_is_function_needed): Declare.
6178         (reset_inline_failed): Declare.
6179         (enum LTO_cgraph_tags): Declare.
6180         (LTO_cgraph_tag_names): Declare.
6181         (LCC_NOT_FOUND): Define.
6183 2009-10-03  Doug Kwan  <dougkwan@google.com>
6184             Rafael Espindola  <espindola@google.com>
6185             Jan Hubicka  <jh@suse.cz>
6186             Diego Novillo  <dnovillo@google.com>
6187             Kenneth Zadeck  <zadeck@naturalbridge.com>
6189         * passes.c (all_regular_ipa_passes): New.
6190         (all_ipa_passes): Rename to all_small_ipa_passes.
6191         (init_optimization_passes): Init all_regular_ipa_passes.
6192         * tree-pass.h (all_regular_ipa_passes): New.
6193         (all_ipa_passes): Rename to all_small_ipa_passes.
6194         * passes.c (all_lto_gen_passes): New.
6195         (init_optimization_passes): Initialize all_lto_gen_passes.
6196         (execute_ipa_summary_passes): Make non-static.
6197         (ipa_write_summaries_1): New.
6198         (ipa_write_summaries_2): New.
6199         (ipa_write_summaries): New.
6200         (ipa_write_summaries_of_cgraph_node_set): New.
6201         (ipa_read_summaries_1): New.
6202         (ipa_read_summaries): New.
6203         (execute_ipa_pass_list): Call cgraph_process_new_functions.
6204         (execute_regular_ipa_pass_list): Remove.
6205         (init_optimization_passes): Schedule
6206         pass_rebuild_cgraph_edges and pass_early_inline outside
6207         of pass_all_early_optimizations.  Document reason.
6208         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
6209         pass_ipa_lto_finish_out): New pass.
6210         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
6211         (execute_all_ipa_transforms): New.
6212         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
6213         (dump_properties, debug_properties): New.
6214         * tree-optimize.c (gate_all_early_local_passes): Return
6215         false if we are in lto1.
6216         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
6217         * tree-pass.h (execute_all_ipa_transforms): Declare.
6218         (pass_ipa_function_and_variable_visibility): Declare.
6219         (pass_ipa_early_inline): Declare.
6220         (pass_ipa_lto_gimple_out): Declare.
6221         (pass_ipa_lto_wpa_fixup): Declare.
6222         (pass_ipa_lto_finish_out): Declare.
6223         (all_small_ipa_passes, all_regular_ipa_passes,
6224         all_lto_gen_passes): Declare.
6225         (execute_ipa_summary_passes): Declare.
6226         (execute_all_ipa_transforms): Declare.
6227         (ipa_write_summaries): Declare
6228         (ipa_write_summaries_of_cgraph_node_set): Declare.
6229         (ipa_read_summaries): Declare.
6231 2009-10-03  Doug Kwan  <dougkwan@google.com>
6232             Ollie Wild  <aaw@google.com>
6234         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
6236         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
6237         (lto_mode): New variable.
6238         (maybe_run_lto_and_relink): Handle the -fwpa option.
6239         (main): Handle the -fwpa option.
6240         (maybe_unlink_list): New function.
6241         * gcc.c (link_lto_options): Replace -flto with -fwpa.
6242         * common.opt (flto): New flag.
6243         * toplev.c (flag_generate_lto): Declare.
6245 2009-10-03  Simon Baldwin  <simonb@google.com>
6247         * common.opt (flto-compression-level): New flag.
6249         * opts.c: Include lto-opts.h.
6250         (handle_option): Call lto_register_user_option for each
6251         valid option handled.
6252         (decode_options): Clear registered options before the options
6253         handling loop.
6255 2009-10-03  Cary Coutant  <ccoutant@google.com>
6257         * collect2.c (is_elf): New function.
6258         (scan_prog_file): Require LTO object to be in ELF format.
6260 2009-10-03  Rafael Espindola  <espindola@google.com>
6262         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
6263         libgcc to the linker.
6265         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
6267         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
6268         (collect_execute): Add flags argument. Pass flags to pex_run. Update
6269         all callers.
6270         * collect2.h (collect_execute): Add flags argument.
6271         * tlink.c (tlink_execute): Update call to collect_execute.
6272         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
6273         (use_linker_plugin): New.
6274         (use_linker_plugin_spec_function): New.
6275         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
6276         (linker_plugin_file_spec): New.
6277         (lto_wrapper_spec): New.
6278         (lto_gcc_spec): New.
6279         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
6280         (static_spec_functions): Add use-linker-plugin.
6281         (process_command): Handle -use-linker-plugin.
6282         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
6283         linker_plugin_file_spec and lto_gcc_spec.
6284         (use_linker_plugin_spec_function): New.
6286 2009-10-03  Richard Guenther  <rguenther@suse.de>
6288         PR lto/41547
6289         PR lto/41548
6290         * tree.h (is_lang_specific): Include LANG_TYPE.
6291         * tree.c (find_decls_types_r): Manually add interesting parts
6292         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
6294         * gimple.c (type_pair_hash): Make symmetric.
6295         (type_pair_eq): Likewise.
6296         (lookup_type_pair): Increase initial hashtable size.
6297         (gimple_force_type_merge): Rely on type-pair symmetry.
6298         (visit): Remove excessive checking code.
6299         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
6300         (gimple_register_type): Remove getenv calls, shrink initial
6301         hashtable size.
6303         PR middle-end/41502
6304         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
6305         inline functions if not generating lto output.
6307         PR lto/41379
6308         * toplev.c (finalize): In WPA mode remove the asm file.
6310 2009-10-03  Doug Kwan  <dougkwan@google.com>
6312         * ipa-inline.c (cgraph_mark_inline): Check
6313         edge->call_stmt_cannot_inline_p instead of calling
6314         gimple_call_cannot_inline_p.
6315         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
6316         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
6317         (inline_generate_summary): Do nothing in LTRANS.
6318         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
6319         exists before calling gimple_call_cannot_inline_p.
6320         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
6321         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
6322         Update new_edge->lto_stmt_uid.
6323         * cgraphbuild.c (reset_inline_failed): New.
6325         * common.opt (fwpa): New flag.
6326         (fltrans): New option.
6327         * gcc.c (gcc_lto_option_t): New type.
6328         (current_lto_option): New variable.
6329         (lto_single_spec_function): Remove and is replaced by ..
6330         (lto_option_spec_function): New function.
6331         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
6332         passing the -flto flag.
6333         (cc1_options): Separate non-LTO related parts into ..
6334         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
6335         (lto1_options): New spec for lto FE.
6336         (link_lto_options): New spec for handling LTO flags in linker.
6337         (invoke_lto_single): Re-format to fit in 80 column.  Replace
6338         lto-single with lto-option.
6339         (static_specs): Add cc1_non_lto_options, lto1_options and
6340         link_lto_options.
6341         (static_spec_function): Replace lto-single with lto-option.
6342         (process_command): Handle -flto, -fwpa and -fltran by setting
6343         current_lto_option and not passing it to subprocess unconditionally.
6345 2009-10-03  Bill Maddox  <maddox@google.com>
6347         Add `gcc' driver support for link-time code generation (LTO).
6349         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
6350         (lto_flag, lto_objects, lto_o_file): New variables.
6351         (struct lto_object, struct lto_object_list): New structures.
6352         (collect_exit, handler): Remove LTO temporary output file on exit.
6353         (add_lto_object): New function.
6354         (maybe_run_lto_and_relink): New function. Perform link time code
6355         generation and relinking for object files containing LTO information.
6356         (main): Invoke maybe_run_lto_and_relink().
6357         (dump_argv): New function.  For debugging, currently disabled.
6358         (scan_prog_file): Add LTO information pass.
6359         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
6360         collect2.
6361         * toplev.c (compile_file): Emit assembler directive to create
6362         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
6364 2009-10-03  Diego Novillo  <dnovillo@google.com>
6366         * c.opt: Add LTO to warn_abi and warn_psabi.
6368         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
6369         inline function.  Ignore language-specific nodes.  Update all users.
6370         (find_decls_types_r): Do not traverse the subtrees of
6371         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
6372         * tree.h (is_lang_specific): New.
6373         * langhooks.h (struct lang_hooks_for_decls): Remove
6374         may_need_assembler_name_p.  Update all users.
6376         * c-common.c (set_builtin_user_assembler_name): Move ...
6377         * builtins.c (set_builtin_user_assembler_name): ... here.
6378         (is_builtin_name): Add comment
6379         (is_builtin_fn): New.
6380         * except.c (output_ttype): Only call
6381         lookup_type_for_runtime if TYPE is not a runtime type.
6383         * passes.c (register_pass): Call position_pass on
6384         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
6385         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
6386         (TV_IPA_LTO_DECL_IO): Define.
6387         (TV_IPA_LTO_CGRAPH_IO): Define.
6388         (TV_LTO): Define.
6389         (TV_WHOPR_WPA): Define.
6390         (TV_WHOPR_WPA_IO): Define.
6391         (TV_WHOPR_LTRANS): Define.
6392         (TV_WHOPR_WPA_FIXUP): Define.
6393         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
6394         * tree-cfg.c (tree_node_can_be_shared): Make extern.
6395         * tree-flow.h (tree_node_can_be_shared): Declare.
6396         * tree-inline.c (tree_can_inline_p): Check that E has a
6397         statement associated with it.
6398         * tree.c (free_lang_data_in_binf): Factor out of ...
6399         (free_lang_data_in_type): ... here.
6400         Call RECORD_OR_UNION_TYPE_P.
6401         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
6402         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
6403         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
6404         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
6405         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
6406         (gate_free_lang_data): Return true if flag_generate_lto is set.
6407         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
6408         * c-common.h (set_builtin_user_assembler_name): Move ...
6409         * tree.h (set_builtin_user_assembler_name): ... here.
6411         * common.opt (flto-report): New flag.
6412         * opts.c (complain_wrong_lang): Do not complain if running lto1.
6413         * collect2.c (scan_prog_file): Send the error output of
6414         'nm' to HOST_BIT_BUCKET.
6416 2009-10-03  Ollie Wild  <aaw@google.com>
6418         * langhooks-def.h (lhd_begin_section): New function declaration.
6419         (lhd_write_section): New function declaration.
6420         (lhd_end_section): New function declaration.
6421         (LANG_HOOKS_BEGIN_SECTION): New macro.
6422         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
6423         (LANG_HOOKS_END_SECTION): New macro.
6424         (LANG_HOOKS_LTO): New macro.
6425         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
6426         * langhooks.c (output.h): Add include.
6427         (saved_section): New static variable.
6428         (lhd_begin_section): New function.
6429         (lhd_write_section_data): New function.
6430         (lhd_end_section): New function.
6431         * langhooks.h (struct lang_hooks_for_lto): New structure.
6432         (struct lang_hooks): Add member lto.
6433         * Makefile.in (langhooks.o): Add dependency on output.h.
6435         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
6437 2009-10-03  Richard Guenther  <rguenther@suse.de>
6439         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6440         Handle LTO.
6442 2009-10-03  Simon Baldwin  <simonb@google.com>
6443             Richard Guenther  <rguenther@suse.de>
6444             Janis Johnson  <janis187@us.ibm.com>
6445             Doug Kwan  <dougkwan@google.com>
6446             Diego Novillo  <dnovillo@google.com>
6447             Ramana Radhakrishnan  <ramana.r@gmail.com>
6448             Ollie Wild  <aaw@google.com>
6450         * doc/install.texi: Add documentation for libelf and --enable-lto.
6451         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
6452         -flto-report, -flto-compression-level and -use-linker-plugin.
6453         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
6454         Add section for LTO Testing.
6456 2009-10-02  Cary Coutant  <ccoutant@google.com>
6458         Add support for comdat type sections for DWARF v4.
6459         Merge from dwarf4 branch.
6461         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
6462         (dw_die_ref): Define vector type.
6463         (enum dw_val_class): Add dw_val_class_data8.
6464         (struct dw_val_struct): Add v.val_data8.
6465         (comdat_type_node_ref): New type.
6466         (struct die_struct): Move die_symbol into a union; add new field
6467         die_type_node.  Change all uses.
6468         (comdat_type_node): New type.
6469         (skeleton_chain_node): New type.
6470         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
6471         (comdat_type_list): New variable.
6472         (dwarf_tag_name): Add DW_TAG_type_unit.
6473         (dwarf_attr_name): Add DW_AT_signature.
6474         (add_AT_data8): New function.
6475         (replace_child): New function.
6476         (move_all_children): New function.
6477         (print_signature): New function.
6478         (print_die): Print signature information; add dw_val_class_data8.
6479         (attr_checksum): Support dw_val_class_data8.
6480         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
6481         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
6482         (checksum_sleb128, checksum_uleb128): New functions.
6483         (checksum_die_context): New function.
6484         (loc_checksum_ordered): New function.
6485         (attr_checksum_ordered): New function.
6486         (struct checksum_attributes): New structure.
6487         (collect_checksum_attributes): New function.
6488         (die_checksum_ordered): New function.
6489         (generate_type_signature): New function.
6490         (same_dw_val_p): Add dw_val_class_data8.
6491         (is_symbol_die): Use new is_declaration_die function.
6492         (is_declaration_die): New function.
6493         (should_move_die_to_comdat): New function.
6494         (clone_die): New function.
6495         (clone_tree): New function.
6496         (clone_as_declaration): New function.
6497         (copy_declaration_context): New function.
6498         (generate_skeleton_ancestor_tree): New function.
6499         (generate_skeleton_bottom_up): New function.
6500         (generate_skeleton): New function.
6501         (remove_child_or_replace_with_skeleton): New function.
6502         (break_out_comdat_types): New function.
6503         (struct decl_table_entry): New type.
6504         (htab_decl_hash): New function.
6505         (htab_decl_eq): New function.
6506         (htab_decl_del): New function.
6507         (copy_ancestor_tree): New function.
6508         (copy_decls_walk): New function.
6509         (copy_decls_for_unworthy_types): New function.
6510         (build_abbrev_table): Don't assert on missing die_symbol when doing
6511         comdat type sections.
6512         (size_of_die): Use DW_FORM_sig8 for external references.  Add
6513         dw_val_class_data8.
6514         (unmark_dies): Don't assert for unmarked dies when doing comdat
6515         type sections.
6516         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
6517         (output_signature): New function.
6518         (output_die): Likewise.
6519         (output_compilation_unit_header): Mark output as DWARF version 3
6520         even if generating DWARF 4.
6521         (output_comdat_type_unit): New function.
6522         (output_line_info): Mark output as DWARF version 3 even if generating
6523         DWARF 4.
6524         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
6525         DWARF-4.
6526         (dwarf2out_end_source_file): Likewise.
6527         (prune_unused_types_walk_attribs): Don't follow references into
6528         comdat type sections.
6529         (prune_unused_types_mark): When generating type units, do not mark
6530         children of non-defining declarations of types; do mark children of
6531         type entries.
6532         (prune_unused_types): Process comdat type sections.
6533         (htab_ct_hash): New function.
6534         (htab_ct_eq): New function.
6535         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
6536         Add a pointer to the line table from type unit entries so
6537         DW_AT_decl_file has meaning.
6538         * varasm.c (default_elf_asm_named_section): Use identifier name as
6539         comdat key instead of lang hook.
6541 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
6543         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
6545 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
6547         * config/i386/i386.md (SWIM248): New mode iterator.
6548         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
6549         divmodhi4 patterns using SWIM248 macro.
6550         (*divmod<mode>4): Macroize insn_and_split pattern from
6551         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
6552         and their corresponding splitters usign SWIM248 macro.  Split SImode
6553         insn to generate cltd and DImode insn to generate cqto instead of
6554         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
6555         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
6556         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
6557         *divmodsi_noext patterns using SWIM248 macro.
6558         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
6559         udivmodhi4 patterns using SWIM248 macro.
6560         (*udivmod<mode>4): Macroize insn_and_split pattern from
6561         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
6562         corresponding splitters using SWIM248 macro.
6563         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
6564         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
6566 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
6568         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
6569         of zero-sized element is zero-sized regardless of its extent.
6571 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
6573         PR debug/40521
6574         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
6575         * configure: Regenerated.
6576         * config.in: Regenerated.
6577         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
6578         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
6579         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
6580         not emitting .eh_frame, emit .cfi_sections .debug_frame
6581         directive.
6583         PR debug/41404
6584         PR debug/41353
6585         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
6586         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
6587         with '\0'.
6588         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
6589         vars use DECL_RTL with resetting it back to NULL afterwards.
6590         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
6591         rtx_equal_p instead of asserting it is a SYMBOL_REF.
6592         (value_format): For dw_val_class_addr only use DW_FORM_addr if
6593         the attribute type allows it, otherwise use DW_FORM_dataN.
6594         (mem_loc_descriptor): Handle CONST_STRING.
6595         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
6596         Handle MEM with CONST_STRING address using add_AT_string.
6597         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
6598         CONST_STRING for const arrays initialized with a string literal.
6599         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
6600         (dwarf2out_finish): Call resolve_addr.
6602 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
6603             Maxim Kuvyrkov  <maxim@codesourcery.com>
6605         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
6607 2009-10-02  Nick Clifton  <nickc@redhat.com>
6609         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
6610         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
6612 2009-10-01  Jan Hubicka  <jh@suse.cz>
6614         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
6615         (cgraph_create_virtual_clone): Just pass redirect_callers
6616         around.
6617         * cgraph.h (cgraph_clone_node): Update prototype.
6618         * ipa-pure-const.c (self_recursive_p): New function.
6619         (propagate): Use it.
6620         * ipa-inline.c (cgraph_clone_inlined_nodes,
6621         cgraph_decide_recursive_inlining): Update.
6623 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
6625         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
6626         instructions for TARGET_OCTEON.
6628 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6630         * config/arm/arm.c (arm_override_options): Turn off
6631         flag_dwarf2_cfi_asm for AAPCS variants.
6633 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6635         PR middle-end/12392
6636         * tree-sra.c (convert_callers): Do not call
6637         compute_inline_parameters on one caller more than once.
6639 2009-10-01  Nick Clifton  <nickc@redhat.com>
6641         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
6642         an empty string if not already defined.
6644 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6646         PR bootstrap/41395
6647         * tree-sra.c (is_va_list_type): New function.
6648         (find_var_candidates): Call is_va_list_type.
6649         (find_param_candidates): Check that the type or the type pointed
6650         to are not va_list types.
6652 2009-10-01  Martin Jambor  <mjambor@suse.cz>
6654         PR c++/41503
6655         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
6656         DECL_ARTIFICIAL (param_decl) is true.
6658 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
6660         * tree.h (tree_decl_common::lang_flag_8): New.
6661         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
6662         keyword.
6663         * c-common.h (RID_CONSTEXPR): New.
6665 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6667         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
6668         Use ref-all pointers.
6669         (alpha_gimplify_va_arg): Ditto.
6671 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
6673         PR target/41279
6674         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
6675         before insn counting loop now that BB_END (bb) is counted.  Ensure
6676         the return value isn't zero.
6678 2009-09-30  Nick Clifton  <nickc@redhat.com>
6680         * config.gcc (sh-symbianelf): Replace definition of extra_objs
6681         with separate definitions of c_target_objs and cxx_target_objs.
6682         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
6683         and symbian-base.o.
6684         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
6685         sh_symbian_import_export_class.
6686         * config/sh/sh-protos.h: Fix names of exported symbian functions.
6687         * config/sh/symbian.c: Delete, moving code into...
6688         * config/sh/symbian-base.c: ... here
6689         * config/sh/symbian-c.c: ... and here
6690         * config/sh/symbian-cxx.c: ... and here.
6692 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
6694         PR target/22093
6695         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
6696         of plus RTX into register.
6698 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6700         * doc/install.texi: Linguistic and markup fixes.
6701         (Configuration) <--disable-cpp>: Remove description.
6702         <--enable-maintainer-mode>: Autotools files are affected, too.
6703         <--with-sysroot>: Improve description.
6704         (Building): Bump required GNU make version.
6706 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6708         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
6709         (x86_64-*-*): Ditto.
6711         * config/i386/fma4intrin.h: New file, provide common x86 compiler
6712         intrinisics for FMA4.
6713         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
6714         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
6715         Add FMA4 check and fma4intrin.h.
6716         * config/i386/i386-c.c(ix86_target_macros_internal): Check
6717         ISA_FLAG for FMA4.
6718         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
6719         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
6720         constant for FMA4 support.
6721         (UNSPEC_FMA4_FMADDSUB): Ditto.
6722         (UNSPEC_FMA4_FMSUBADD): Ditto.
6723         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
6724         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
6725         (ix86_expand_fma4_multiple_memory): Ditto.
6726         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
6727         (OPTION_MASK_ISA_FMA4_UNSET): New.
6728         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
6729         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
6730         (ix86_handle_option): Handle -mfma4.
6731         (isa_opts): Handle -mfma4.
6732         (enum pta_flags): Add PTA_FMA4.
6733         (override_options): Add FMA4 support.
6734         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
6735         (IX86_BUILTIN_VFMADDSD): Ditto.
6736         (IX86_BUILTIN_VFMADDPS): Ditto.
6737         (IX86_BUILTIN_VFMADDPD): Ditto.
6738         (IX86_BUILTIN_VFMSUBSS): Ditto.
6739         (IX86_BUILTIN_VFMSUBSD): Ditto.
6740         (IX86_BUILTIN_VFMSUBPS): Ditto.
6741         (IX86_BUILTIN_VFMSUBPD): Ditto.
6742         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
6743         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
6744         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
6745         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
6746         (IX86_BUILTIN_VFNMADDSS): Ditto.
6747         (IX86_BUILTIN_VFNMADDSD): Ditto.
6748         (IX86_BUILTIN_VFNMADDPS): Ditto.
6749         (IX86_BUILTIN_VFNMADDPD): Ditto.
6750         (IX86_BUILTIN_VFNMSUBSS): Ditto.
6751         (IX86_BUILTIN_VFNMSUBSD): Ditto.
6752         (IX86_BUILTIN_VFNMSUBPS): Ditto.
6753         (IX86_BUILTIN_VFNMSUBPD): Ditto.
6754         (IX86_BUILTIN_VFMADDPS256): Ditto.
6755         (IX86_BUILTIN_VFMADDPD256): Ditto.
6756         (IX86_BUILTIN_VFMSUBPS256): Ditto.
6757         (IX86_BUILTIN_VFMSUBPD256): Ditto.
6758         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
6759         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
6760         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
6761         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
6762         (IX86_BUILTIN_VFNMADDPS256): Ditto.
6763         (IX86_BUILTIN_VFNMADDPD256): Ditto.
6764         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
6765         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
6766         (enum multi_arg_type): New enum for describing the various FMA4
6767         intrinsic argument types.
6768         (bdesc_multi_arg): New table for FMA4 intrinsics.
6769         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
6770         (ix86_expand_multi_arg_builtin): New function for creating FMA4
6771         intrinsics.
6772         (ix86_expand_builtin): Add FMA4 intrinsic support.
6773         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
6774         operand instructions.
6775         (ix86_expand_fma4_multiple_memory): New function to split the
6776         second memory reference from FMA4 instructions.
6777         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
6778         (ssemodesuffixf2s): Ditto.
6779         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
6780         instructions.
6781         (fma4_fmsub<mode>4): Ditto.
6782         (fma4_fnmadd<mode>4): Ditto.
6783         (fma4_fnmsub<mode>4): Ditto.
6784         (fma4_vmfmadd<mode>4): Ditto.
6785         (fma4_vmfmsub<mode>4): Ditto.
6786         (fma4_vmfnmadd<mode>4): Ditto.
6787         (fma4_vmfnmsub<mode>4): Ditto.
6788         (fma4_fmadd<mode>4256): Ditto.
6789         (fma4_fmsub<mode>4256): Ditto.
6790         (fma4_fnmadd<mode>4256): Ditto.
6791         (fma4_fnmsub<mode>4256): Ditto.
6792         (fma4_fmaddsubv8sf4): Ditto.
6793         (fma4_fmaddsubv4sf4): Ditto.
6794         (fma4_fmaddsubv4df4): Ditto.
6795         (fma4_fmaddsubv2df4): Ditto.
6796         (fma4_fmsubaddv8sf4): Ditto.
6797         (fma4_fmsubaddv4sf4): Ditto.
6798         (fma4_fmsubaddv4df4): Ditto.
6799         (fma4_fmsubaddv2df4): Ditto.
6800         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
6801         instructions for intrinsics.
6802         (fma4i_fmsub<mode>4): Ditto.
6803         (fma4i_fnmadd<mode>4): Ditto.
6804         (fma4i_fnmsub<mode>4): Ditto.
6805         (fma4i_vmfmadd<mode>4): Ditto.
6806         (fma4i_vmfmsub<mode>4): Ditto.
6807         (fma4i_vmfnmadd<mode>4): Ditto.
6808         (fma4i_vmfnmsub<mode>4): Ditto.
6809         (fma4i_fmadd<mode>4256): Ditto.
6810         (fma4i_fmsub<mode>4256): Ditto.
6811         (fma4i_fnmadd<mode>4256): Ditto.
6812         (fma4i_fnmsub<mode>4256): Ditto.
6813         (fma4i_fmaddsubv8sf4): Ditto.
6814         (fma4i_fmaddsubv4sf4): Ditto.
6815         (fma4i_fmaddsubv4df4): Ditto.
6816         (fma4i_fmaddsubv2df4): Ditto.
6817         (fma4i_fmsubaddv8sf4): Ditto.
6818         (fma4i_fmsubaddv4sf4): Ditto.
6819         (fma4i_fmsubaddv4df4): Ditto.
6820         (fma4i_fmsubaddv2df4): Ditto.
6822         * doc/invoke.texi (-mfma4): Add documentation.
6823         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
6825 2009-09-29  Richard Henderson  <rth@redhat.com>
6827         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
6828         an edge to the new destination block.
6830 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6832         PR target/41393
6833         * pa.c (hppa_profile_hook): Use
6834         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
6836 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
6837             Alexander Monakov  <amonakov@ispras.ru>
6839         PR target/41365
6840         * config/ia64/predicates.md (not_postinc_destination_operand): New.
6841         (not_postinc_memory_operand): New.
6842         (not_postinc_move_operand): New.
6843         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
6844         (*cmovsi_internal): Ditto.
6846 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
6848         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
6849         restrict issue_rate in first pass when scheduling for register
6850         pressure.
6852 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
6853             Rafael Avila de Espindola  <espindola@google.com>
6855         * gengtype.c (plugin_output): New.
6856         (get_output_file_with_visibility): Return plugin_output for plugins.
6857         (main): Parse and use the -P option.
6858         * gty.texi: Update the command line format.
6860 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
6862         PR debug/41438
6863         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
6864         functions.
6865         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
6866         out if !const_ok_for_output.
6868         PR debug/41474
6869         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
6870         case VAR_LOCATION>: Remove gcc_unreachable ().
6872 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
6874         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
6875         (x86_64-*-*): Ditto.
6876         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
6877         back to smmintrin.h.
6878         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
6879         * config/i386/x86intrin.h: Remove SSE5.
6880         * config/i386/mmintrin-common.h: Delete file.
6881         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
6883 2009-09-29  Richard Guenther  <rguenther@suse.de>
6885         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
6886         resulting from stack temporaries on STRICT_ALIGNMENT targets.
6888 2009-09-29  Nick Clifton  <nickc@redhat.com>
6890         * function.c (current_function_name): If there is no current
6891         function just return "<none>".
6893 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
6895         * tree-pass.h (register_pass_info): New structure.
6896         (pass_positioning_ops): Move enum from gcc-plugin.h.
6897         (register_pass): New function.
6898         * gcc-plugin.h (plugin_pass): Delete structure.
6899         (pass_positioning_ops): Delete enum.
6900         * plugin.c (regsiter_pass): Delete function.
6901         (position_pass): Delete function.
6902         (added_pass_nodes): Delete variable.
6903         (prev_added_pass_nodes): Delete variable.
6904         (pass_list_node): Delete structure.
6905         * passes.c (make_pass_instance): New function.
6906         (next_pass_1): Change to call make_pass_instance.
6907         (pass_list_node): Move structure from gcc-plugin.h.
6908         (added_pass_nodes): Move variable from plugin.c.
6909         (prev_added_pass_nodes): Move variable from plugin.c.
6910         (position_pass): New function.
6911         (register_pass): New function.
6913 2009-09-28  Easwaran Raman  <eraman@google.com>
6915         * ifcvt.c (noce_try_abs): Recognize pattern and call
6916         expand_one_cmpl_abs_nojump.
6917         * optabs.c (expand_one_cmpl_abs_nojump): New function.
6918         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
6920 2009-09-28  Ian Lance Taylor  <iant@google.com>
6922         PR middle-end/40500
6923         * c-opts.c (c_common_handle_option): Don't set
6924         warn_jump_misses_init for -Wall.
6925         * doc/invoke.texi (Warning Options): Update documentation.
6927 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6929         * Makefile.in ($(out_object_file)): Depend on
6930         gt-$(basename $(notdir $(out_file))).h.
6932 2009-09-28  Richard Henderson  <rth@redhat.com>
6934         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
6935         * except.c (gen_eh_region): Set it.
6936         (duplicate_eh_regions_1): Copy it.
6937         * tree-eh.c (lower_resx): Use it to determine which function
6938         to call to resume.
6940         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
6941         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
6942         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
6943         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
6944         BUILT_IN_CXA_END_CLEANUP if necessary.
6946         * c-common.c (c_define_builtins): Update call to
6947         build_common_builtin_nodes.
6949 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6951         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
6953 2009-09-28  Michael Matz  <matz@suse.de>
6955         * builtins.c (interclass_mathfn_icode): New helper.
6956         (expand_builtin_interclass_mathfn): Use it here, and split folding
6957         into ...
6958         (fold_builtin_interclass_mathfn): ... this new folder.
6959         (build_call_nofold_loc): New static helper.
6960         (build_call_nofold): New wrapper macro for above.
6961         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
6962         (expand_builtin_pow): Ditto.
6963         (expand_builtin_memset_args): Ditto.
6964         (expand_builtin_printf): Ditto.
6965         (expand_builtin_fprintf): Ditto.
6966         (expand_builtin_sprintf): Ditto.
6967         (expand_builtin_memory_chk): Ditto.
6968         (expand_builtin_mempcpy_args): Ditto and don't call folders.
6969         (expand_builtin_stpcpy): Ditto.
6970         (expand_builtin_strcmp): Ditto.
6971         (expand_builtin_strncmp): Ditto.
6972         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
6973         (expand_builtin_strcpy_args): Don't call folders.
6974         (expand_builtin_memcmp): Ditto.
6975         (expand_builtin_strncpy): Ditto, and use target.
6976         (expand_builtin_memcpy): Ditto.
6977         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
6978         expand_builtin_strpbrk, expand_builtin_memmove,
6979         expand_builtin_memmove_args, expand_builtin_bcopy,
6980         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
6981         expand_builtin_strspn, expand_builtin_strcspn,
6982         expand_builtin_fputs): Remove these.
6983         (expand_builtin): Don't call the above, change calls to other
6984         expanders that changed prototype.
6985         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
6986         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
6987         fold_builtin_interclass_mathfn.
6988         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
6989         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
6991         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
6992         * passes.c (init_optimization_passes): Move pass_fold_builtins
6993         after last phiopt pass.
6994         * tree-inline.c (fold_marked_statements): When folding builtins
6995         iterate over all instruction potentially generated.
6996         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
6997         earlier.
6998         (fold_gimple_call): Use it to always fold calls (into potentially
6999         multiple instructions).
7000         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
7001         calls into zero at this time.
7002         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
7003         statements generated by builtin folding.
7005 2009-09-28  Nick Clifton  <nickc@redhat.com>
7007         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
7009 2009-09-28  Duncan Sands  <baldrick@free.fr>
7011         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
7012         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
7013         (register_callback): Dispatch it.
7014         (invoke_plugin_callbacks): Incorporate in sanity check.
7015         * ggc.h (ggc_register_cache_tab): Add declaration.
7016         * ggc-common.c (ggc_register_root_tab): Simplify.
7017         (const_ggc_cache_tab_t): New typedef.
7018         (extra_cache_vec): New vector of dynamically added cache tables.
7019         (ggc_register_cache_tab): New function.
7020         (ggc_scan_cache_tab): New function.
7021         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
7022         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
7024 2009-09-27  Richard Henderson  <rth@redhat.com>
7026         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
7027         which we remove __builtin_stack_restore.
7029 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
7031         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
7032         to test for GRD_INVARIANT.
7033         (simple_rhs_p): Anything that's function_invariant_p is fine.
7035 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
7037         * gengtype.c (main): Use plunge_files instead of plugin_output.
7039 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
7040             Rafael Avila de Espindola  <espindola@google.com>
7042         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
7043         Don't print pch related info if it is false.
7044         (main): Don't print pch info in plugin mode.
7046 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
7048         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
7049         with dw_val_class_const_double.
7050         (struct dw_val_struct): Replace val_long_long with val_double and
7051         adjust for above change.
7052         (output_loc_operands): Likewise.
7053         (add_AT_long_long): Rename into...
7054         (add_AT_double): ...this.
7055         (print_die): Replace dw_val_class_long_long with
7056         dw_val_class_const_double and adjust.
7057         (attr_checksum): Likewise.
7058         (same_dw_val_p): Likewise.
7059         (size_of_die): Likewise.
7060         (value_format): Likewise.
7061         (output_die): Likewise.
7062         (loc_descriptor) <CONST_DOUBLE>: Likewise.
7063         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
7064         instead of add_AT_long_long.
7065         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
7066         value with the precision of its type.
7068 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
7070         PR c/41476
7071         * c-typeck.c (build_conditional_expr): Use the readonly and
7072         volatile flags of the operand types, not of the operands itself.
7074 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
7076         * collect2.c (main): Look for -brtl before adding libraries.
7078 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
7080         * config.gcc: Update OpenBSD targets.
7081         * config/openbsd-stdint.h: New file.
7082         * config/openbsd-libpthread.h: New file.
7083         * config/openbsd.h: Update and break out LIB_SPEC definition.
7084         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
7085         * config/i386/openbsdelf.h: Correct types.
7086         * config/m68k/openbsd.h: Likewise.
7087         * config/mips/openbsd.h: Likewise.
7088         * config/vax/openbsd.h: Likewise.
7090 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
7092         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
7093         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
7094         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
7095         of the length and zero.
7097 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7099         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
7100         (FLAGS_H): Add options.h $(REAL_H).
7101         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
7102         (TREE_VECTORIZER_H): New.
7103         (EBITMAP_H): Renamed from EBIMAP_H.
7104         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
7105         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
7106         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
7107         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
7108         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
7109         (graphite-clast-to-gimple.o, graphite-dependences.o)
7110         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
7111         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
7112         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
7113         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
7114         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
7115         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
7116         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
7117         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
7118         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
7119         updated and fixed as per above changes and per
7120         check_makefile_deps.sh output.
7122         PR bootstrap/40928
7123         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
7124         * configure: Regenerate.
7126 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7128         * doc/install.texi: Update minimum MPC version to 0.7.
7130 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
7132         * doc/install.texi (Binaries): Remove reference to the binary
7133         distribution CD-ROM from the FSF.
7135 2009-09-26  Michael Matz  <matz@suse.de>
7137         PR lto/40758
7138         PR middle-end/41470
7139         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
7140         that are mentioned in the body.
7142 2009-09-26  Michael Matz  <matz@suse.de>
7144         PR tree-optimization/41454
7145         * tree-ssa-dom (stmts_to_rescan): Remove variable.
7146         (tree_ssa_dominator_optimize): Don't allocate and free it.
7147         (dom_opt_leave_block): Don't iterate over it.
7148         (eliminate_redundant_computations): Don't return a value.
7149         (cprop_operand, cprop_into_stmt): Ditto.
7150         (optimize_stmt): Don't defer updating stmts.
7152 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
7154         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
7155         generic_parameter_die, template_parameter_pack_die,
7156         gen_formal_parameter_die, gen_subprogram_die): Adjust after
7157         renaming DW_TAG_formal_parameter_pack and
7158         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
7159         and DW_TAG_GNU_template_parameter_pack.
7161 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
7163         * config/v850/v850.h (FUNCTION_VALUE): Remove.
7164         * config/v850/v850.c (v850_function_value): New function.
7165         (TARGET_FUNCTION_VALUE): Define.
7167 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
7169         * tree-vect-stmts.c (vectorizable_call): Call
7170         mark_symbols_for_renaming after vect_finish_stmt_generation.
7172         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
7173         to loc_descriptor_from_tree.
7174         (add_location_or_const_value_attribute): Pass 0 instead of 2
7175         for decl_by_reference_p decls.
7177 2009-09-25  Richard Guenther  <rguenther@suse.de>
7179         PR middle-end/41463
7180         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
7181         arrays again.
7183 2009-09-25  Ben Elliston  <bje@au.ibm.com>
7185         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
7186         after `power7'.
7188 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
7190         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
7191         form of instruction.
7193 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7195         PR middle-end/41435
7196         * fold-const.c (const_binop): Handle complex int division.
7197         * tree-complex.c (expand_complex_div_straight,
7198         expand_complex_div_wide): Update comments.
7200 2009-09-24  DJ Delorie  <dj@redhat.com>
7202         PR target/41456
7203         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
7204         (reg_class): Likewise.
7205         (REG_CLASS_NAMES): Likewise.
7206         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
7207         (m32c_override_options): Disable -fivopts for M32C.
7209 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7211         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7212         Delete VSX load/store with update support.
7213         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
7214         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
7215         (vsx_movti): Ditto.
7216         (VSX_U): Delete.
7217         (VSbit): Ditto.
7218         (VStype_load_update): Ditto.
7219         (VStype_store_update): Ditto.
7220         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7221         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
7223         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
7224         load/store with update builtins.
7226 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
7228         * libgcc2.c (L_trampoline): Prototype for getpagesize
7229         and mprotect in WINNT case.
7231 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
7233         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
7234         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
7235         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
7236         'outgoing' argument.
7237         (TARGET_FUNCTION_VALUE): Define.
7239 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7241         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
7243 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7245         PR bootstrap/41405
7246         * common.opt: Initialize dwarf_strict to -1.
7247         * toplev.c (process_options): Catch unset dwarf_strict
7248         and set to 0 for all targets not overriding.
7249         * config/darwin.c (darwin_override_options): Catch unset
7250         dwarf_strict and override to 1.
7252 2009-09-24  Jeff Law  <law@redhat.com>
7254         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
7256 2009-09-24  Richard Guenther  <rguenther@suse.de>
7258         PR tree-optimization/36143
7259         PR tree-optimization/38747
7260         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
7261         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
7263 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7265         PR bootstrap/41457
7266         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
7267         return false instead of gcc_unreachable ().  For CONST return the
7268         value returned by recursive call instead of always returning true.
7269         (tree_add_const_value_attribute): Return the value returned by
7270         add_const_value_attribute instead of always returning true if rtl
7271         is non-NULL.
7273 2009-09-23  Justin Seyster  <jrseys@gmail.com>
7275         * Makefile.in (PLUGIN_HEADERS): Include real.h.
7277 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
7279         * cgraphunit.c (cgraph_lower_function): Revert last change.
7280         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
7281         instead of DECL_NO_STATIC_CHAIN.
7282         * tree-cfg.c (verify_gimple_call): Likewise.
7283         * tree-nested.c (get_chain_decl, get_chain_field,
7284         convert_tramp_reference_op, convert_gimple_call): Likewise.
7285         (convert_all_function_calls): Likewise.  Always set or clear
7286         DECL_STATIC_CHAIN initially, for !n->outer clear it.
7287         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
7288         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
7289         if nested.
7290         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
7291         DECL_NO_STATIC_CHAIN.
7292         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
7293         instead of DECL_NO_STATIC_CHAIN.
7294         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
7295         decl_function_context.
7296         * varasm.c (initializer_constant_valid_p): Likewise.
7297         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
7298         (DECL_STATIC_CHAIN): ... this.
7299         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
7300         instead of DECL_NO_STATIC_CHAIN.
7302 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
7303             Rafael Avila de Espindola  <espindola@google.com>
7305         * gengtype.c (nb_plugin_files): Make it unsigned to match
7306         num_gt_files. Adjust other variables to avoid warnings.
7307         (main): Allocate an all zero lang_bitmap before each plugin file name
7308         to match regular file names.
7310 2009-09-23  Richard Henderson  <rth@redhat.com>
7312         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7313         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
7314         static chain passed in memory.
7315         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
7316         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
7317         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
7318         STATIC_CHAIN_REGNUM defined.
7320         * config/picochip/picochip-protos.h: s/class/klass/.
7321         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
7322         (picochip_static_chain): New.
7323         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
7324         (STATIC_CHAIN_INCOMING): Remove.
7326         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
7327         (xtensa_static_chain): New.
7328         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
7329         (STATIC_CHAIN_INCOMING): Remove.
7331 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7333         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
7334         * config/pa/pa-protos.h (function_value): Remove.
7335         * config/pa/pa.c (pa_function_value): Rename from function_value.
7336         Make static, add 'outgoing' argument.
7337         (TARGET_FUNCTION_VALUE): Define.
7339 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
7341         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
7342         instead of cfun->machine->is_leaf.
7343         * config/avr/avr.h (machine_function): Remove is_leaf field.
7345 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7347         PR debug/41439
7348         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
7349         DW_OP_piece after DW_OP_stack_value, adjust size calculations
7350         for it, when DW_OP_stack_value and DW_OP_implicit_value has
7351         the same size, prefer DW_OP_stack_value.
7352         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
7353         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
7355 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7357         PR debug/41353
7358         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
7360 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
7362         PR debug/41248
7363         * cfgexpand.c (convert_debug_memory_address): New.
7364         (expand_debug_expr): Convert base address and offset to the same
7365         mode.  Use it to convert addresses to other modes.  Accept
7366         ptr_mode addresses.
7368 2009-09-23  Dodji Seketeli <dodji@redhat.com>
7370         PR debug/41065
7371         * function.h (types_used_by_vars_hash): Declare new hash table.
7372         (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
7373         equality and hash function for the hash table.
7374         (types_used_by_cur_var_decl): Declare a new global chained list.
7375         (types_used_by_var_decl_insert): Declare new function.
7376         * function.c (types_used_by_vars_hash): Define the hashtable ...
7377         (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
7378         its equality and hash functions.
7379         (hash_types_used_by_vars_entry): New hash helper.
7380         (types_used_by_cur_var_decl): Define the global chained list.
7381         (used_types_insert): Update the list of types used by the global
7382         variable being parsed.
7383         (types_used_by_var_decl_insert): Define new function.
7384         * c-common.h (record_types_used_by_current_var_decl): Declare ...
7385         * c-common.c (record_types_used_by_current_var_decl): ... new
7386         function.
7387         * c-decl.c (finish_decl): Record the types used by the global
7388         variable declaration we've just parsed.
7389         * dwarf2out.c (premark_used_types): Insert a new line between
7390         comment and function.
7391         (premark_used_types_helper): Fix comment.
7392         (premark_types_used_by_global_vars_helper,
7393         premark_types_used_by_global_vars): New functions.
7394         (prune_unused_types): Do not prune types used by global variables.
7396 2009-09-23  Richard Guenther  <rguenther@suse.de>
7398         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
7399         produced for bigendian targets with promoted subregs.
7401 2009-09-23  Richard Guenther  <rguenther@suse.de>
7403         * value-prof.c (gimple_ic): Purge old EH edges only after building
7404         the new ones.
7406 2009-09-23  Nick Clifton  <nickc@redhat.com>
7408         * config/arc/arc.c (arc_trampoline_init): Fix typo.
7410 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7412         PR bootstrap/41405
7413         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
7415         PR bootstrap/41436
7416         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
7417         on non-nested functions.
7419 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
7420             Jan Hubicka  <jh@suse.cz>
7422         * dwarf2out.c (loc_list_plus_const): Only define if
7423         DWARF2_DEBUGGING_INFO.
7424         (address_of_int_loc_descriptor): Likewise.
7426         PR debug/41411
7427         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
7429 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
7431         PR c/39779
7432         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
7433         constant is more than zero.
7435 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
7437         PR target/40473
7438         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7439         call final to emit non-scheduled prologue, instead insert at entry.
7441 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7442             Joseph S. Myers  <joseph@codesourcery.com>
7444         * doc/install.texi (*-*-freebsd*): Add proper format codes.
7446 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7447             Rafael Avila de Espindola  <espindola@google.com>
7449         * gengtype.c (is_file_equal): New function.
7450         (close_output_files): Use is_file_equal. Free of->buf.
7452 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
7453             Rafael Avila de Espindola  <espindola@google.com>
7455         * gengtype.c (write_types, write_local): Add the output_header
7456         argument. Update all callers.
7458 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
7460         * dwarf2out.c (template_parameter_pack_die,
7461         gen_formal_parameter_pack_die ): New functions.
7462         (make_ith_pack_parameter_name): Remove this function.
7463         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
7464         DW_TAG_formal_parameter_pack.
7465         (gen_generic_params_dies): Represent each template parameter pack
7466         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
7467         represented by usual DW_TAG_template_*_parameter DIEs that are
7468         children of the DW_TAG_template_parameter_pack element DIE.
7469         (generic_parameter_die): This doesn't deal with parameter pack
7470         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
7471         of parameter pack DIEs.
7472         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
7473         in certain cases, e.g. for pack elements.
7474         (gen_formal_types_die, gen_decl_die): Adjust usage of
7475         gen_formal_parameter_die.
7476         (gen_subprogram_die): Represent each function parameter pack by a
7477         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
7478         represented by usual DW_TAG_formal_parameter DIEs that are children
7479         of the DW_TAG_formal_parameter_pack DIE. Remove references to
7480         ____builtin_va_alist decls as no part of the compiler uses those
7481         anymore.
7482         * langhooks.h (struct lang_hooks_for_decls): Add
7483         function_parm_expanded_from_pack_p, get_generic_function_decl
7484         and function_parameter_pack_p hooks.  Fix comment for
7485         get_innermost_generic_parms hook.
7486         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
7487         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
7488         macros and use them to initialize lang_hook.
7490 2009-09-22  Richard Henderson  <rth@redhat.com>
7492         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
7493         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
7494         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
7495         on TRAMPOLINE_TEMPLATE.
7496         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
7497         TRAMPOLINE_ADJUST_ADDRESS.
7498         * targhooks.c (default_asm_trampoline_template): Remove.
7499         (default_trampoline_adjust_address): Remove.
7500         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
7501         * targhooks.h: Update decls.
7503 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7505         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
7506         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
7507         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7509 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
7511         PR debug/41295
7512         * reload1.c (reload): Reset debug insns with pseudos without
7513         equivalences.
7515 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
7517         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
7518         unconditional true for decimal float modes.
7519         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
7520         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
7522 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
7524         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
7525         Enable a new case for __FreeBSD__ >= 7.
7526         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
7527         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
7528         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
7529         and USE_LD_AS_NEEDED.
7531         * doc/install.texi (*-*-freebsd*): Update target information.
7533 2009-09-22  Richard Guenther  <rguenther@suse.de>
7535         PR middle-end/41395
7536         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
7537         arrays really properly.
7539 2009-09-22  Richard Henderson  <rth@redhat.com>
7541         PR target/41246
7542         * target.h (struct gcc_target): Add asm_out.trampoline_template,
7543         calls.static_chain, calls.trampoline_init,
7544         calls.trampoline_adjust_address.
7545         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7546         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7547         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7548         * builtins.c (expand_builtin_setjmp_receiver): Use
7549         targetm.calls.static_chain; only clobber registers.
7550         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
7551         set up memory attributes properly for the trampoline block.
7552         (expand_builtin_adjust_trampoline): Use
7553         targetm.calls.trampoline_adjust_address.
7554         * calls.c (prepare_call_address): Add fndecl argument.  Use
7555         targetm.calls.static_chain.
7556         * df-scan.c (df_need_static_chain_reg): Remove.
7557         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
7558         consolodate static chain handling.
7559         * doc/tm.texi: Document new hooks.
7560         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
7561         (init_emit_regs): Don't initialize them.
7562         * expr.h (prepare_call_address): Update decl.
7563         * final.c (profile_function): Use targetm.calls.static_chain.
7564         * function.c (expand_function_start): Likewise.
7565         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
7566         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
7567         only clobber registers.
7568         * targhooks.c (default_static_chain): New.
7569         (default_asm_trampoline_template, default_trampoline_init): New.
7570         (default_trampoline_adjust_address): New.
7571         * targhooks.h: Declare them.
7572         * varasm.c (assemble_trampoline_template): Use
7573         targetm.asm_out.trampoline_template.  Make the memory block const
7574         and set its size.
7576         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
7577         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
7578         differences into the TARGET_ABI_OPEN_VMS code block.
7579         (TARGET_TRAMPOLINE_INIT): New.
7580         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
7581         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
7582         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
7583         (INITIALIZE_TRAMPOLINE): Remove.
7585         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
7586         (TRAMPOLINE_TEMPLATE): Merge with ...
7587         (INITIALIZE_TRAMPOLINE): ... this and move ...
7588         * config/arc/arc.c (arc_trampoline_init): ... here.
7589         (TARGET_TRAMPOLINE_INIT): New.
7591         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7592         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7593         (arm_asm_trampoline_template): New.
7594         (arm_trampoline_init, arm_trampoline_adjust_address): New.
7595         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
7596         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
7597         code to arm_asm_trampoline_template.
7598         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
7599         arm_trampoline_adjust_address.
7600         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
7601         adjust for target hook parameters.
7603         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
7604         Remove.
7606         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
7607         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
7608         (bfin_trampoline_init): Rename from initialize_trampoline;
7609         make static; update for target hook parameters.
7610         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7611         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
7612         bfin_asm_trampoline_template.
7613         (INITIALIZE_TRAMPOLINE): Remove.
7615         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7616         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
7617         cris_trampoline_init): New.
7618         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
7619         cris_asm_trampoline_template.
7620         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
7621         adjust for target hook parameters.
7623         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
7625         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7626         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
7627         fr30_trampoline_init): New.
7628         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
7629         fr30_asm_trampoline_template.
7630         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
7631         adjust for target hook parameters.
7633         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
7634         (frv_trampoline_init): Rename from frv_initialize_trampoline;
7635         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
7636         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
7637         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
7639         * config/h8300/h8300.c (h8300_trampoline_init): New.
7640         (TARGET_TRAMPOLINE_INIT): New.
7641         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
7642         to h8300_trampoline_init and adjust for hook parameters.
7644         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
7645         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
7646         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
7647         make static; adjust for hook parameters.
7648         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
7650         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7651         (TARGET_TRAMPOLINE_INIT): New.
7652         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
7653         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
7654         iq2000_asm_trampoline_template.
7655         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
7656         (TRAMPOLINE_CODE_SIZE): New.
7657         (TRAMPOLINE_SIZE): Use it.
7658         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
7660         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
7661         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
7662         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
7663         adjust for hook parameters.
7664         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
7666         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
7667         (m32r_trampoline_init): New.
7668         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
7669         m32r_trampoline_init.
7671         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
7672         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
7673         make static; update for hook parameters.
7674         * config/m68hc11/m68hc11-protos.h: Update.
7675         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
7677         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7678         (TARGET_TRAMPOLINE_INIT): New.
7679         (mcore_function_value): Fix typo.
7680         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
7681         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
7682         to mcore_asm_trampoline_template.
7683         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
7685         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
7686         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
7687         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
7688         update for hook parameters.
7689         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
7691         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7692         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7693         mips_trampoline_init): New.
7694         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
7695         mips_asm_trampoline_template.
7696         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
7697         update for hook parameters.
7699         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7700         (TARGET_TRAMPOLINE_INIT): New.
7701         (mmix_trampoline_size): Remove.
7702         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
7703         make static.  Remove out-of-date tetra vs octa comment.
7704         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
7705         make static; update for hook parameters.
7706         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
7707         (INITIALIZE_TRAMPOLINE): Remove.
7708         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
7709         (TRAMPOLINE_ALIGNMENT): New.
7710         * gcc/config/mmix/mmix-protos.h: Update.
7712         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7713         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7714         mn10300_trampoline_init): New.
7715         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
7716         mn10300_asm_trampoline_template.
7717         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
7719         * config/moxie/moxie.c (moxie_static_chain,
7720         moxie_asm_trampoline_template, moxie_trampoline_init,
7721         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
7722         TARGET_TRAMPOLINE_INIT): New.
7723         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
7724         moxie_trampoline_init.
7725         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
7726         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
7728         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
7729         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
7730         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
7731         pa_trampoline_adjust_address): New.
7732         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
7733         pa_asm_trampoline_template.
7734         (TRAMPOLINE_ALIGNMENT): New.
7735         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
7736         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
7737         adjust for hook parameters.
7738         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
7740         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
7741         (TARGET_TRAMPOLINE_INIT): New.
7742         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
7743         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
7745         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
7747         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
7748         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
7749         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
7750         make static; adjust parameters for the hook.
7751         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
7753         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
7754         s390_trampoline_template; make static.
7755         (s390_trampoline_init): Rename from s390_initialize_trampoline;
7756         make static; adjust for target hook.
7757         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
7758         * config/s390/s390-protos.h: Remove trampoline decls.
7759         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
7760         (TRAMPOLINE_TEMPLATE): Remove.
7761         (TRAMPOLINE_ALIGNMENT): New.
7763         * config/score/score-protos.h (score_initialize_trampoline): Remove.
7764         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7765         (TARGET_TRAMPOLINE_INIT): New.
7766         (score_asm_trampoline_template): New.
7767         (score_trampoline_init): Rename from score_initialize_trampoline;
7768         make static; adjust for hook parameters.
7769         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
7770         score[37]_asm_trampoline_template.
7771         (INITIALIZE_TRAMPOLINE): Remove.
7772         * config/score/score3.c (score3_asm_trampoline_template): New.
7773         (score3_trampoline_init): Rename from score3_initialize_trampoline;
7774         adjust for target hook.
7775         * config/score/score7.c (score7_asm_trampoline_template): New.
7776         (score7_trampoline_init): Rename from score7_initialize_trampoline;
7777         adjust for target hook.
7778         * config/score/score3.h, config/score/score7.h: Update.
7780         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
7781         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
7782         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
7783         (sh_trampoline_init): Rename from sh_initialize_trampoline;
7784         make static; adjust for target hook parameters.
7785         (sh_trampoline_adjust_address): New.
7786         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
7787         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
7789         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
7790         (sparc32_initialize_trampoline): Rename from
7791         sparc_initialize_trampoline; make static; replace tramp parameter
7792         with m_tramp and update memory accesses.
7793         (sparc64_initialize_trampoline): Similarly.
7794         (sparc_trampoline_init): New.
7795         * config/sparc/sparc-protos.h: Remove trampoline decls.
7796         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
7797         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
7799         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
7800         (array_to_constant): Make ARR parameter const.
7801         (spu_trampoline_init): Rename from spu_initialize_trampoline;
7802         make static; update for hook parameters.
7803         * config/spu/spu-protos.h: Update decls.
7804         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
7806         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
7807         from xstormy16_initialize_trampoline; make static; update for
7808         hook parameters.
7809         (TARGET_TRAMPOLINE_INIT): New.
7810         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
7812         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7813         (TARGET_TRAMPOLINE_INIT): New.
7814         (v850_can_eliminate): Make static.
7815         (v850_asm_trampoline_template, v850_trampoline_init): New.
7816         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
7817         v850_asm_trampoline_template.
7818         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
7819         and adjust for target hook parameters.
7821         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7822         (TARGET_TRAMPOLINE_INIT): New.
7823         (vax_asm_trampoline_template, vax_trampoline_init): New.
7824         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
7825         vax_asm_trampoline_template.
7826         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
7828         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
7829         (TARGET_TRAMPOLINE_INIT): New.
7830         (xtensa_asm_trampoline_template): Rename from
7831         xtensa_trampoline_template; make static.
7832         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
7833         make static; update for hook parameters.
7834         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
7835         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
7836         (INITIALIZE_TRAMPOLINE): Remove.
7838         * config/i386/i386.c (ix86_function_regparm): Do not issue an
7839         error for nested functions with regparm=3.
7840         (ix86_compute_frame_layout): Adjust frame pointer offset for
7841         ix86_static_chain_on_stack.
7842         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
7843         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
7844         don't reset to UNITS_PER_WORD.
7845         (ix86_emit_leave): Adjust ix86_cfa_state.
7846         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
7847         (ix86_static_chain): New.
7848         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
7849         make static; update for target hook parameters; use ix86_static_chain.
7850         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
7851         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
7852         (INITIALIZE_TRAMPOLINE): Remove.
7853         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
7854         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
7855         to the end.  Add static_chain_on_stack.
7856         (ix86_static_chain_on_stack): New.
7858         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
7859         (m68k_output_mi_thunk): Don't use static_chain_rtx.
7860         (m68k_trampoline_init): New.
7861         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
7862         m68k_trampoline_init and adjust for hook parameters.
7863         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
7864         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
7866 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7868         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
7869         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
7871         * reload1.c (reload): Call wrap_constant when substituting
7872         reg for equiv inside of DEBUG_INSNs.
7874         PR bootstrap/41405
7875         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
7876         add_call_src_coords_attributes, add_high_low_attributes,
7877         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
7878         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
7879         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
7880         when -gdwarf-2 -gstrict-dwarf.
7881         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
7882         -gdwarf-[23] -gstrict-dwarf.
7883         (address_of_int_loc_descriptor, loc_descriptor,
7884         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
7885         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
7886         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
7888 2009-09-22  Richard Guenther  <rguenther@suse.de>
7890         PR tree-optimization/41428
7891         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
7892         (ccp_finalize): Pass it to substitute_and_fold.
7894 2009-09-22  Richard Guenther  <rguenther@suse.de>
7896         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
7897         (substitute_and_fold): Adjust prototype.
7898         * tree-vrp.c (vrp_evaluate_conditional): Make static.
7899         (simplify_stmt_using_ranges): Likewise.
7900         (fold_predicate_in): Move here from tree-ssa-propagate.c.
7901         (vrp_fold_stmt): New function.
7902         (vrp_finalize): Pass it to substitute_and_fold.
7903         * tree-flow.h (vrp_evaluate_conditional): Remove.
7904         (simplify_stmt_using_ranges): Likewise.
7905         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
7906         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7907         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
7908         member.
7909         (fold_predicate_in): Move to tree-vrp.c.
7910         (substitute_and_fold): Use the callback instead of calling into
7911         tree-vrp.c functions directly.
7913 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
7915         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
7916         comparison warning on rs6000.
7918         PR middle-end/41429
7919         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
7920         GIMPLE_EH_MUST_NOT_THROW cleanup.
7921         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7923 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
7925         PR middle-end/41260
7926         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
7927         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
7928         LIB_SPEC for darwin10 and later since it always uses the unwinder in
7929         libSystem which is derived from the gcc 4.2.1 unwinder.
7931 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7933         PR middle-end/41357
7934         * varasm.c (default_encode_section_info): Copy TLS model into
7935         sym_ref flags regardless of backend support for TLS, for all
7936         model types except TLS_MODEL_EMULATED.
7938 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
7940         PR bootstrap/41404
7941         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
7942         we can handle it correctly.
7944 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7946         * doc/install.texi (os2): Remove section.
7948 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
7950         * doc/standards.texi (Objective-C): Adjust two URLs.
7952 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
7954         * tree-tailcall.c (process_assignment): Don't check if a
7955         multiplication or an addition are already present.
7956         (find_tail_calls): Combine multiple additions and multiplications.
7957         (adjust_accumulator_values): Emit accumulators.
7959 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
7961         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
7962         xmm register restore.
7964 2009-09-21  Jan Hubicka  <jh@suse.cz>
7966         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
7967         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
7968         restore at the end.
7970 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
7972         * stor-layout.c (layout_type): Remove obsolete code.
7974 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
7976         PR middle-end/41395
7977         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
7979 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7981         PR middle-end/30789
7982         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
7983         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
7984         (fold_builtin_2, do_mpc_arg1): Update accordingly.
7985         * fold-const.c (const_binop): Likewise.
7986         * real.h (do_mpc_arg2): Update prototype.
7988 2009-09-20  Jan Hubicka  <jh@suse.cz>
7990         * dwarf2out.c (add_const_value_attribute): Return true if successful.
7991         (add_location_or_const_value_attribute): Rewrite using
7992         loc_list_from_tree.
7993         (tree_add_const_value_attribute): Return true if successful.
7994         (tree_add_const_value_attribute_for_decl): Likewise.
7996         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
7997         (loc_descriptor): ... here;
7998         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
7999         (cst_pool_loc_descr): Break out from ...; do not reffer constant
8000         pool items that was not marked for output.
8001         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
8002         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8003         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8004         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
8005         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
8006         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
8007         DW_OP_stack_value to get address of items that are not available
8008         as addresses.
8009         (dw_loc_list): Handle single element lists correctly.
8011 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
8012             Pascal Obry  <obry@adacore.com>
8014         * unwind-dw2-fde.c (classify_object_over_fdes):
8015         Cast the constant 1 to _Unwind_Ptr.
8016         (add_fdes): Likewise.
8017         (linear_search_fdes): Likewise.
8019 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8021         * stor-layout.c (set_sizetype): Avoid useless type copy.
8023 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
8025         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
8026         feature check.
8027         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
8028         * configure, config.in: Regenerate.
8029         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
8030         DW_EH_PE_absptr.
8031         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
8032         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
8033         for global data if the output could be used in a shared library.
8034         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8035         to 0 if TARGET_WRITABLE_EH_FRAME.
8037 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
8039         PR rtl-optimization/39886
8040         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
8041         just when insn is equal to BB_END (bb).
8043 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
8045         * config/mips/mips.opt (mrelax-pic-calls): New option.
8046         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
8047         the file.
8048         (mips_unspec_call): Change "unspec_call" expander into this.
8049         (mips_strip_unspec_call): New function.
8050         (mips_got_load): Call mips_unspec_call instead of
8051         gen_unspec_call<mode>.
8052         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
8053         MIPS_CALL.
8054         (mips_cfg_in_reorg): New function.
8055         (mips16_lay_out_constants): Use it to decide whether to call
8056         CFG-aware insn splitting.
8057         (r10k_insert_cache_barriers): Move CFG set-up code from here to
8058         mips_reorg.  Move DF set-up code from here ...
8059         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
8060         from here.
8061         (mips_reorg): Call mips_df_reorg instead of
8062         r10k_insert_cache_barriers.  Move CFG set-up code here from
8063         r10k_insert_cache_barriers.
8064         (mips_call_expr_from_insn): New function.
8065         (mips_pic_call_symbol_from_set): Likewise.
8066         (mips_find_pic_call_symbol): Likewise.
8067         (mips_annotate_pic_call_expr): Likewise.
8068         (mips_get_pic_call_symbol): Likewise.
8069         (mips_annotate_pic_calls): Likewise.
8070         (mips_override_options): Disable -mrelax-pic-calls unless PIC
8071         calls are used.
8072         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
8073         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
8074         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
8075         directive.
8076         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
8077         (unspec_call<mode>): Remove it.
8078         (sibcall_internal, sibcall_value_internal,
8079         sibcall_value_multiple_internal, call_internal, call_split,
8080         call_value_internal, call_value_split,
8081         call_value_multiple_internal, call_value_multiple_split): Pass
8082         SIZE_OPNO to MIPS_CALL.
8083         (call_internal_direct, call_direct_split,
8084         call_value_internal_direct, call_value_direct_split): Pass -1 as
8085         SIZE_OPNO to MIPS_CALL.
8086         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
8087         * configure: Regenerate.
8088         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
8089         and -mno-relax-pic-calls.
8090         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
8092 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8094         PR bootstrap/35619
8095         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
8096         in the directory this rule is called from, rather than the
8097         toplevel 'gcc' directory, to fix in-tree build.
8099 2009-09-19  Chris Demetriou  <cgd@google.com>
8101         PR preprocessor/28435:
8102         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
8103         to cpplib that the preprocessor output is needed.
8105 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
8107         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
8108         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
8109         *return_and_restore_fpregs_<mode>,
8110         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
8112         PR bootstrap/41397
8113         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
8114         instead of assuming it has always a REG inside of it.
8116 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
8118         * config/freebsd.h: Update comment on types.
8119         (WINT_TYPE): Define.
8121 2009-09-18  Jason Merrill  <jason@redhat.com>
8123         * c.opt: Add -fno-deduce-init-list.
8125 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
8127         * value-prof.c (interesting_stringop_to_profile_p): Added output
8128         argument to indicate which parameter is the size parameter.
8129         * value-prof.c (gimple_stringop_fixed_value): Use
8130         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
8131         * value-prof.c (gimple_stringops_transform): Update call sites to
8132         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
8134 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
8136         PR target/38288
8137         From David Binderman <dcb314@hotmail.com>:
8138         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
8139         local variable f.  Remove stale comments.
8140         (ix86_compute_frame_layout): Remove useless local variable total_size.
8141         Remove #if 0'd code.
8142         (legitimate_address_p): Remove useless local variables
8143         reason_rtx and reason.
8144         (ix86_split_copysign_const): Remove useless local variable op1.
8145         (scale_counter): Remove useless local variable piece_size_mask.
8147 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
8149         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
8150         output decl.
8152 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8154         PR target/40913
8155         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
8157 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
8159         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
8160         TYPE_STUB_DECL.
8162 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
8164         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
8165         DW_OP_implicit_value even without dwarf_version 4.
8167 2009-09-17  Jan Hubicka  <jh@suse.cz>
8169         * dwarf2out.c: Include tree-pass.h and gimple.h.
8170         (loc_list_plus_const): New function.
8171         (loc_descriptor_from_tree_1): Rename to ...
8172         (loc_descriptor_from_tree): ... remove original.
8173         (loc_list_from_tree): New function.
8174         (add_AT_location_description): Accept location list.
8175         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
8176         (concatn_mem_loc_descriptor): Remove.
8177         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
8178         returning NULL.
8179         (secname_for_decl): Move up.
8180         (hidden_reference_p): New function; break out from ...
8181         (loc_by_refernece): ... here; move up.
8182         (dw_loc_list): New function.
8183         (single_element_loc_list): New function.
8184         (single_element_loc_list_p): New function.
8185         (add_loc_descr_to_each): New function.
8186         (add_loc_list): New function.
8187         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
8188         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
8189         add diagnostics why expansion failed.
8190         (add_location_or_const_value_attribute): Support location lists.
8191         (add_bound_info): Likewise.
8192         (descr_info_loc): Update call of loc_descriptor_from_tree.
8193         (gen_variable_die): Work on location lists.
8194         * final.c (pass_final): Add dump file.
8195         * Makefile.in (dwarf2out.o): Add new dependencies.
8197 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
8199         PR c/41049
8200         * real.c decimal_from_integer, decimal_integer_string): New.
8201         (real_from_integer): Use them as special case for decimal float.
8202         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
8203         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
8204         Do not append zero after the decimal point in string to convert.
8206 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
8208         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
8209         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
8211 2009-09-17  Martin Jambor  <mjambor@suse.cz>
8213         * common.opt (fipa-sra): New switch.
8214         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
8215         * timevar.def (TV_IPA_SRA): New timevar.
8216         * params.def (ipa-sra-ptr-growth-factor): New parameter.
8217         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
8218         * tree-sra.c: Include cgraph.c.
8219         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
8220         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
8221         and grp_not_necessarilly_dereferenced.
8222         (func_param_count): New variable.
8223         (encountered_apply_args): New variable.
8224         (bb_dereferences): New variable.
8225         (final_bbs): New variable.
8226         (no_accesses_representant): New variable.
8227         (no_accesses_p): New function.
8228         (dump_access): Dump the new fields.
8229         (sra_initialize): Set encountered_apply_args to false.
8230         (get_ssa_base_param): New function.
8231         (mark_parm_dereference): New function.
8232         (create_access): Caring for INIDRECT_REFs and different handling of
8233         varialble length accesses in early IPA SRA.  Store the stmt - a new
8234         parameter - to the new access.
8235         (build_access_from_expr_1): New parameter stmt, passed to
8236         create_access.  Handle INDIRECT_REFs.
8237         (build_access_from_expr): Pass the current statement to
8238         build_access_from_expr_1.
8239         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
8240         passes.
8241         (build_accesses_from_assign): Pass the current statement to
8242         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
8243         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
8244         final_bbs when necessary.  Check for calls to __builtin_apply_args.
8245         Fixup EH info if anythng was changed.
8246         (is_unused_scalar_param): New function.
8247         (ptr_parm_has_direct_uses): New function.
8248         (find_param_candidates): New function.
8249         (mark_maybe_modified): New function.
8250         (analyze_modified_params): New function.
8251         (propagate_dereference_distances): New function.
8252         (dump_dereferences_table): New function.
8253         (analyze_caller_dereference_legality): New function.
8254         (unmodified_by_ref_scalar_representative): New function.
8255         (splice_param_accesses): New function.
8256         (decide_one_param_reduction): New function.
8257         (enum ipa_splicing_result): New type.
8258         (splice_all_param_accesses): New function.
8259         (get_param_index): New function.
8260         (turn_representatives_into_adjustments): New function.
8261         (analyze_all_param_acesses): New function.
8262         (get_replaced_param_substitute): New function.
8263         (get_adjustment_for_base): New function.
8264         (replace_removed_params_ssa_names): New function.
8265         (sra_ipa_reset_debug_stmts): New function.
8266         (sra_ipa_modify_expr): New function.
8267         (sra_ipa_modify_assign): New function.
8268         (convert_callers): New function.
8269         (modify_function): New function.
8270         (ipa_sra_preliminary_function_checks): New function.
8271         (ipa_early_sra): New function.
8272         (ipa_early_sra_gate): New function.
8273         (pass_early_ipa_sra): New variable.
8274         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
8276 2009-09-17  Michael Matz  <matz@suse.de>
8278         PR middle-end/41347
8279         * tree.c (build_type_attribute_qual_variant): Export.
8280         * tree.h (build_type_attribute_qual_variant): Declare.
8281         * tree-inline.c (remap_type_1): Use it to build variants with
8282         the original qualifiers and attributes.
8284 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8286         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
8287         without a fallthrough edge.
8289 2009-09-16  DJ Delorie  <dj@redhat.com>
8291         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
8292         chip and ignore the "fast_interrupt" attribute if so.
8294 2009-09-16  Richard Henderson  <rth@redhat.com>
8296         PR middle-end/41360
8297         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
8298         barrier fix.
8300 2009-09-16  Richard Henderson  <rth@redhat.com>
8302         PR target/41246
8303         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
8304         is set only if DECL_NO_STATIC_CHAIN is unset.
8305         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
8306         (FOR_EACH_NEST_INFO): New.
8307         (walk_all_functions): Use it.
8308         (finalize_nesting_tree): Likewise.
8309         (unnest_nesting_tree): Likewise.
8310         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
8311         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
8312         (convert_gimple_call): Early out if gimple_call_chain already set.
8313         (convert_all_function_calls): Iterate until no new functions
8314         require a static chain.
8315         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
8316         when building a trampoline.  Use dump_function_to_file instead
8317         of dump_function.
8318         (lower_nested_functions): Open dump_file.  Validate that decls
8319         that have DECL_NO_STATIC_CHAIN from the front end don't have that
8320         bit reset by this pass.
8322 2009-09-16  Michael Matz  <matz@suse.de>
8324         PR fortran/41212
8325         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
8326         shorten decl_common_unused.
8327         (DECL_RESTRICTED_P): New accessor.
8328         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
8329         to disambiguate marked decls and restrict pointers.
8331 2009-09-16  Richard Henderson  <rth@redhat.com>
8333         PR middle-end/41360
8334         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
8336 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
8338         * integrate.c (set_block_abstract_flags): Call
8339         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
8341 2009-09-16  Richard Guenther  <rguenther@suse.de>
8343         PR middle-end/34011
8344         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
8345         as non-aliased.
8347 2009-09-16  DJ Delorie  <dj@redhat.com>
8348             Kaz Kojima  <kkojima@gcc.gnu.org>
8350         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
8351         (sh_expand_prologue): Update calls to output_stack_adjust.
8352         (sh_expand_epilogue): Likewise.
8354 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
8356         PR bootstrap/41349
8357         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
8358         trying to limit the extent of searches in the insn stream.
8360 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
8361             Jakub Jelinek  <jakub@redhat.com>
8363         PR target/41175
8364         PR target/40677
8365         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
8366         problem.
8367         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
8368         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
8369         (rs6000_savres_strategy): Always save FP registers inline if the
8370         target doesn't support hardware double-precision.  Set the above
8371         bits in return value when needed.
8372         (rs6000_savres_routine_sym): Fix computation for cache selector.
8373         Mark the generated symbol as a function.  Rename exitp argument to
8374         lr.  Move code for determining the name of the symbol...
8375         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
8376         getting the names right on AIX and 64-bit Linux.
8377         (savres_routine_name): New variable.
8378         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
8379         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
8380         on what the target routine uses as a base register.  If savep && lr
8381         describe saving of r0 into memory slot.
8382         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
8383         line calls for AIX ABI.
8384         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
8385         determine FP save/restore functions.
8386         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
8387         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
8388         gen_addsi3.
8389         (rs6000_emit_epilogue): Adjust computation of restore_lr.
8390         Duplicate restoration of LR and execute the appropriate one
8391         depending on whether GPRs are being restored inline.  Set r11 from
8392         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
8393         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
8394         Fix out of line calls for AIX ABI.
8395         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
8396         New insn.
8397         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
8398         register 11.
8399         (*restore_gpregs_spe): Likewise.
8400         (*return_and_restore_gpregs_spe): Likewise.
8401         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8402         Define to empty string unconditionally.
8403         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
8404         Define to empty string unconditionally.
8405         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
8406         !TARGET_64BIT.
8408 2009-09-15  Jan Hubicka  <jh@suse.cz>
8410         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
8411         * params.def (inline-insns-auto): Likewise.
8413 2009-09-15  Martin Jambor  <mjambor@suse.cz>
8415         * ipa-inline.c (estimate_function_body_sizes): Dump info about
8416         individual statements only at TDF_DETAILS dump level.  Format
8417         source for 80 characters per line.
8419 2009-09-15  Christian Bruel  <christian.bruel@st.com>
8421         * regrename.c (do_replace): Update REG_DEAD notes.
8423 2009-09-15  Revital Eres  <eres@il.ibm.com>
8425         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
8426         * targhooks.c (default_builtin_support_vector_misalignment):
8427         New builtin function.
8428         * targhooks.h (default_builtin_support_vector_misalignment):
8429         Declare.
8430         * target.h (builtin_support_vector_misalignment):
8431         New field in struct gcc_target.
8432         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
8433         new builtin function.
8434         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
8435         Define.
8436         * config/rs6000/rs6000.c
8437         (rs6000_builtin_support_vector_misalignment): New function.
8438         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
8440 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
8442         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
8443         instead of INSN_P.
8444         (bfin_optimize_loop): Likewise.
8445         (bfin_gen_bundles): Likewise.
8446         (workaround_speculation): Likewise.
8447         (find_load): Return NULL_RTX for debug_insn.
8449 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
8451         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
8452         (sminsf3): Ditto.
8454 2009-09-14  DJ Delorie  <dj@redhat.com>
8456         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
8457         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
8458         VLIW mode.
8460 2009-09-14  Richard Henderson  <rth@redhat.com>
8461             Jakub Jelinek  <jakub@redhat.com>
8463         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
8464         * cfgbuild.c (make_edges): Handle asm goto.
8465         * cfglayout.c (fixup_reorder_chain): Likewise.
8466         * cfgrtl.c (patch_jump_insn): Likewise.
8467         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
8468         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
8469         (gimple_build_asm_vec): Add and use labels parameter.
8470         (gimple_build_asm): Remove.
8471         (walk_gimple_asm): Walk labels too.
8472         * gimple.def (GIMPLE_ASM): Update docs.
8473         * gimple.h: Update decls.
8474         (struct gimple_statement_asm): Change nc to use unsigned char;
8475         add nl member.
8476         (gimple_asm_nlabels): New.
8477         (gimple_asm_label_op, gimple_asm_set_label_op): New.
8478         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
8479         into gimple_build_asm_vec.
8480         * jump.c (mark_jump_label_asm): New.
8481         (mark_jump_label): Use it.
8482         (redirect_jump_1): Handle asm goto.
8483         (invert_jump_1): Soft fail if X is null.
8484         * recog.c (extract_asm_operands): New.
8485         (asm_noperands): Use it; handle asm labels.
8486         (decode_asm_operands): Use extract_asm_operands.
8487         (asm_operand_ok): Properly handle empty string.
8488         * reg-stack.c (get_asm_operands_in_out): Rename from
8489         get_asm_operand_n_inputs; use extract_asm_operands; return both
8490         inputs and outputs by reference; update all callers.
8491         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
8492         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
8493         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
8494         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
8495         (extract_asm_operands): Declare.
8496         * stmt.c (expand_asm_operands): Add and use labels parameter.
8497         (check_unique_operand_names): Likewise.
8498         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
8499         (expand_asm_stmt): Handle asm labels.
8500         * tree-cfg.c (make_gimple_asm_edges): New.
8501         (make_edges): Use it.
8502         (cleanup_dead_labels): Handle asm labels.
8503         (is_ctrl_altering_stmt): Likewise.
8504         (gimple_redirect_edge_and_branch): Likewise.
8505         * tree.def (ASM_EXPR): Add 5th operand.
8506         * tree.h (ASM_LABELS): New.
8507         (resolve_asm_operand_names): Update decl.
8509         * c-parser.c (c_parser_asm_statement): Parse asm goto.
8510         (c_parser_asm_goto_operands): New.
8511         * c-tree.h (build_asm_expr): Update decl.
8512         * c-typeck.c (build_asm_expr): Add and use labels parameter.
8513         * doc/extend.texi: Document asm goto.
8515 2009-09-14  Richard Henderson  <rth@redhat.com>
8517         * except.h: Update declarations.
8518         (struct pointer_map_t): Forward declare.
8519         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
8520         (struct eh_landing_pad_d, eh_landing_pad): New.
8521         (struct eh_catch_d, eh_catch): New.
8522         (struct eh_region_d): Remove next_region_sharing_label, aka,
8523         label, tree_label, landing_pad, post_landing_pad, resume,
8524         may_contain_throw.  Rename region_number to index.  Remove
8525         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
8526         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
8527         (VEC(eh_landing_pad,gc)): New.
8528         (struct eh_status): Remove last_region_number.  Add lp_array,
8529         throw_stmt_table, ttype_data, ehspec_data.
8530         (ehr_next, FOR_ALL_EH_REGION_AT): New.
8531         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
8532         * except.c (lang_protect_cleanup_actions): Return tree.
8533         (struct ehl_map_entry): Remove.
8534         (init_eh_for_function): Push zero entries for region and lp_array.
8535         (gen_eh_region): Add to region_array immediately.
8536         (gen_eh_region_catch): Operate on eh_catch objects.
8537         (gen_eh_landing_pad): New.
8538         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
8539         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
8540         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
8541         (get_eh_landing_pad_from_number_fn): New.
8542         (get_eh_landing_pad_from_number): New.
8543         (get_eh_region_from_lp_number_fn): New.
8544         (get_eh_region_from_lp_number): New.
8545         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
8546         (get_exception_pointer, get_exception_filter): Remove.
8547         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
8548         (current_function_has_exception_handlers): Simplify.
8549         (bring_to_root, eh_region_replaceable_by_p): Remove.
8550         (replace_region, hash_type_list, hash_eh_region): Remove.
8551         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
8552         (label_to_region_map, num_eh_regions): Remove.
8553         (get_next_region_sharing_label, must_not_throw_labels): Remove.
8554         (find_exception_handler_labels): Remove.
8555         (duplicate_eh_regions_0, find_prev_try): Remove.
8556         (struct duplicate_eh_regions_data): New.
8557         (duplicate_eh_regions_1): Rewrite.
8558         (duplicate_eh_regions): Return a pointer map instead of an
8559         integer offset.
8560         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
8561         (redirect_eh_edge_to_label): Remove.
8562         (eh_region_outermost): Rewrite using eh_region pointers
8563         instead of integers.
8564         (add_ttypes_entry): Update for ttype_data move to eh_status.
8565         (add_ehspec_entry): Rewrite with VEC instead of varray.
8566         (assign_filter_values): Likewise.  Export.
8567         (build_post_landing_pads, connect_post_landing_pads): Remove.
8568         (dw2_build_landing_pads): Rewrite to use lp_array.
8569         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
8570         (sjlj_assign_call_site_values): Rewrite to use lp_array.
8571         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
8572         (sjlj_mark_call_sites): Update for landing pad numbers.
8573         (finish_eh_generation): Rewrite.
8574         (gate_handle_eh): Do nothing for no eh tree.
8575         (pass_rtl_eh): Move up near finish_eh_generation.
8576         (remove_eh_landing_pad): New.
8577         (remove_eh_handler): Export.
8578         (remove_eh_region, remove_eh_handler_and_replace): Remove.
8579         (for_each_eh_label): Rewrite to use lp_array.
8580         (make_reg_eh_region_note): New.
8581         (make_reg_eh_region_note_nothrow_nononlocal): New.
8582         (insn_could_throw_p): New.
8583         (copy_reg_eh_region_note_forward): New.
8584         (copy_reg_eh_region_note_backward): New.
8585         (check_handled, add_reachable_handler): Remove.
8586         (reachable_next_level, foreach_reachable_handler): Remove.
8587         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
8588         (get_eh_region_and_lp_from_rtx): New.
8589         (get_eh_region_from_rtx): New.
8590         (can_throw_internal_1, can_throw_external_1): Remove.
8591         (can_throw_internal): Use get_eh_region_from_rtx.
8592         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
8593         (insn_nothrow_p, can_nonlocal_goto): New.
8594         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
8595         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
8596         (add_action_record): Use VEC not varray.
8597         (collect_one_action_chain): Update for eh_region changes.
8598         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
8599         Use get_eh_region_and_lp_from_rtx.
8600         (gate_convert_to_eh_region_ranges): New.
8601         (pass_convert_to_eh_region_ranges): Use it.
8602         (push_uleb128, push_sleb128): Use VEC not varray.
8603         (output_one_function_exception_table): Likewise.
8604         (dump_eh_tree): Update for eh_region changes.
8605         (verify_eh_tree): Likewise.
8606         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
8607         * tree-eh.c: Include target.h.
8608         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
8609         Don't disallow GIMPLE_RESX; adjust argument check.
8610         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
8611         (record_stmt_eh_region): Update for landing pad numbers;
8612         generate a landing pad if necessary.
8613         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
8614         (remove_stmt_from_eh_lp_fn): Similarly.
8615         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
8616         Update for lp numbers; don't special case missing throw_stmt_table.
8617         (lookup_expr_eh_lp): Similarly.
8618         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
8619         (eh_seq, eh_region_may_contain_throw): New.
8620         (struct leh_state): Add ehp_region.
8621         (struct leh_tf_state): Remove eh_label.
8622         (emit_post_landing_pad): New.
8623         (emit_resx, emit_eh_dispatch): New.
8624         (note_eh_region_may_contain_throw): New.
8625         (frob_into_branch_around): Take eh_region not eh label;
8626         emit eh code into eh_seq.
8627         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
8628         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
8629         lower_eh_must_not_throw.  Emit code to eh_seq.
8630         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
8631         (lower_try_finally_onedest): Likewise.
8632         (lower_try_finally_copy): Likewise.
8633         (lower_try_finally_switch): Likewise.
8634         (lower_try_finally): Initialize ehp_region.
8635         (lower_catch): Update for eh_catch objects.
8636         (lower_eh_filter): Don't handle must_not_throw.
8637         (lower_eh_must_not_throw): New.
8638         (lower_cleanup): Don't set eh_label.
8639         (lower_eh_constructs_2): Resolve eh builtins.
8640         Handle GIMPLE_EH_MUST_NOT_THROW.
8641         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
8642         Add eh_seq to the end of the function body.
8643         (make_eh_dispatch_edges): New.
8644         (make_eh_edge): Remove.
8645         (make_eh_edges): Simplify for landing pads.
8646         (redirect_eh_edge_1): New.
8647         (redirect_eh_edge): Use it.
8648         (redirect_eh_dispatch_edge): New.
8649         (stmt_could_throw_p): Use a switch.  Allow RESX.
8650         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
8651         (stmt_can_throw_internal): Likewise.
8652         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
8653         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
8654         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
8655         (gate_refactor_eh): New.
8656         (pass_refactor_eh): Use it.
8657         (lower_resx, execute_lower_resx, pass_lower_resx): New.
8658         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
8659         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
8660         (remove_unreachable_handlers): Rename from
8661         tree_remove_unreachable_handlers; rewrite for landing pads;
8662         call remove_eh_handler directly.
8663         (remove_unreachable_handlers_no_lp): New.
8664         (unsplit_eh, unsplit_all_eh): New.
8665         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
8666         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
8667         (cleanup_empty_eh_unsplit): New.
8668         (cleanup_empty_eh): Rewrite.
8669         (cleanup_all_empty_eh): New.
8670         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
8671         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
8672         (gate_cleanup_eh): New.
8673         (pass_cleanup_eh): Use it.
8674         (verify_eh_edges): Move later in file.  Expect one EH edge.
8675         (verify_eh_dispatch_edge): New.
8677         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
8678         (gtype-desc.o): Add TARGET_H.
8679         (tree.o): Use EXCEPT_H, not except.h.
8680         (cfgbuild.o): Add EXPR_H.
8681         (GTFILES): Add vecprim.h.
8682         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
8683         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
8684         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
8685         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
8686         * calls.c (emit_call_1): Use make_reg_eh_region_note.
8687         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
8688         calls to can_throw_internal.
8689         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
8690         (make_edges): Don't handle RESX; use can_nonlocal_goto.
8691         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
8692         (expand_gimple_stmt): Use make_reg_eh_region_note.
8693         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
8694         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
8695         or find_exception_handler_labels.
8696         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
8697         there is exacly one EH edge.  Use can_nonlocal_goto and
8698         can_throw_internal.
8699         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
8700         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
8701         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
8702         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
8703         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
8704         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
8705         * dse.c (scan_insn): Use insn_could_throw_p.
8706         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
8707         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
8708         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
8709         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
8710         EXC_PTR_EXPR or FILTER_EXPR.
8711         (tree_expr_nonzero_warnv_p): Likewise.
8712         * function.h: Include vecprim.h, not varray.h
8713         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
8714         move ttype_data and ehspec_data members to struct eh_status; change
8715         action_record_data member to a VEC.
8716         * gcse.c (hash_scan_set): Use can_throw_internal.
8717         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
8718         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
8719         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8720         (block_may_fallthru): Don't handle RESX_EXPR.
8721         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
8722         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
8723         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
8724         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
8725         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
8726         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
8727         (gimple_size): Likewise.
8728         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
8729         (gimple_build_resx): Use gimple_build_with_ops.
8730         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
8731         (is_gimple_val): Likewise.
8732         (is_gimple_stmt): Remove RESX_EXPR.
8733         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
8734         (GIMPLE_RESX): Reorder with other EH constructs.
8735         * gimple.h (struct gimple_statement_eh_mnt): New.
8736         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
8737         (gimple_eh_filter_must_not_throw): Remove.
8738         (gimple_eh_filter_set_must_not_throw): Remove.
8739         (gimple_eh_must_not_throw_fndecl): New.
8740         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
8741         (is_gimple_resx): New.
8742         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
8743         Don't copy EH_FILTER_MUST_NOT_THROW.
8744         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
8745         * ipa-inline.c (estimate_function_body_sizes): Don't try to
8746         handle must_not_throw_labels specially.
8747         * ipa-pure-const.c (check_call): Update debug statement for LP.
8748         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
8749         * ipa-utils.c (get_base_var): Likewise.
8750         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
8751         * lower-subreg.c (move_eh_region_note): Remove.
8752         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
8753         * omp-low.c (new_omp_context): Update for eh_lp_nr.
8754         (create_task_copyfn): Likewise.
8755         (maybe_catch_exception): Use gimple_build_eh_filter.
8756         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
8757         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
8758         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
8759         and pass_lower_resx.
8760         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
8761         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
8762         can_throw_internal, can_nonlocal_goto.
8763         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
8764         copy_reg_eh_region_note_forward.
8765         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
8766         (emit_output_reload_insns): Likewise.
8767         (copy_eh_notes): Remove.
8768         * rtl.def (RESX): Remove.
8769         * rtl.h: Update declarations.
8770         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
8771         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
8772         (update_eh_label): Remove.
8773         (cleanup_dead_labels_eh): New.
8774         (cleanup_deal_labels): Use it instead of update_eh_label.
8775         (gimple_merge_blocks): Update landing pad data structure when
8776         removing a landing pad label.
8777         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
8778         test; handle GIMPLE_EH_MUST_NOT_THROW.
8779         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
8780         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
8781         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
8782         (verify_stmt): Likewise.  Verify landing pads.
8783         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
8784         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
8785         (struct move_stmt_d): Add eh_map.
8786         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
8787         (move_stmt_r): Remap eh region numbers in builtin calls,
8788         resx and eh_dispatch.
8789         (move_block_to_fn): Remove eh_offset parameter.  Use
8790         maybe_duplicate_eh_stmt_fn.
8791         (find_outermost_region_in_block): Operate on eh_region pointers
8792         instead of region numbers.
8793         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
8794         duplicate_eh_regions.
8795         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
8796         test earlier.  Disallow EH landing pads.
8797         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
8798         * tree-flow.h: Update declarations.
8799         (struct tree_ann_common_d): Replace rn with lp_nr.
8800         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
8801         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
8802         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
8803         resx and eh_dispatch.
8804         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
8805         (copy_edges_for_bb): Use make_eh_dispatch_edges.
8806         (copy_cfg_body): Expect eh_map instead of eh_region_offset
8807         from duplicate_eh_regions.
8808         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
8809         update RESX; handle EH_DISPATCH.
8810         (expand_call_inline): Set eh_lp_nr, not eh_region.
8811         (maybe_inline_call_in_expr): Likewise.
8812         * tree-inline.h (struct copy_body_data): Replace eh_region with
8813         eh_lp_nr, eh_region_offset with eh_map.
8814         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
8815         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
8816         * tree-pretty-print.c (dump_generic_node): Don't handle
8817         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
8818         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
8819         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
8820         EXC_PTR_EXPR, FILTER_EXPR.
8821         * tree-ssa-operands.c (get_expr_operands): Likewise.
8822         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
8823         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8824         (ao_ref_init_from_vn_reference): Likewise.
8825         * tree-ssa-sink.c (statement_sink_location): Likewise.
8826         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8827         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
8828         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
8829         EXC_PTR_EXPR, FILTER_EXPR.
8830         (is_exception_related): Remove.
8831         (compute_avail): Don't call it.
8832         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
8833         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
8834         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
8835         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
8836         Build EH builtins.
8837         (build_resx): Remove.
8838         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
8839         * tree.h: Update declarations.
8840         (EH_FILTER_MUST_NOT_THROW): Remove.
8841         (struct tree_label_decl): Add eh_landing_pad_nr.
8842         (EH_LANDING_PAD_NR): New.
8843         * value-prof.c (gimple_ic): Tidy variable names.  Update for
8844         landing pad numbers.
8845         (gimple_stringop_fixed_value): Tidy variable names.  Assert
8846         that neither call stmt can throw.
8847         * vecprim.h (uchar): New.
8848         (VEC(uchar,heap), VEC(uchar,gc)): New.
8850         * c-common.c (c_define_builtins): Update call to
8851         build_common_builtin_nodes.
8852         * c-parser.c (c_parse_file): Don't call
8853         default_init_unwind_resume_libfunc.
8855 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8857         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
8858         (mips_cprestore_address_p): Likewise.
8859         (mips_save_gp_to_cprestore_slot): Likewise.
8860         (mips_restore_gp): Rename to...
8861         (mips_restore_gp_from_cprestore_slot): ...this.
8862         (mips_must_initialize_gp_p): Declare.
8863         (mips_emit_save_slot_move): Likewise.
8864         (mips_output_load_label): Return nothing.
8865         (mips_eh_uses): Declare.
8866         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
8867         (TARGET_CPRESTORE_DIRECTIVE): New macro.
8868         (TARGET_ABSOLUTE_JUMPS): Likewise.
8869         (EH_USES): Likewise.
8870         (FIRST_PSEUDO_REGISTER): Update comment.
8871         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
8872         (MIPS_CALL): ...here.
8873         (REGISTER_NAMES): Add $cprestore.
8874         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
8875         Add load_label_length, has_inflexible_gp_insn_p,
8876         has_flexible_gp_insn_p, must_initialize_gp_p and
8877         must_restore_gp_when_clobbered_p.
8878         (mips_expand_call): Don't generate split instructions here.
8879         (mips_split_call): Update the call to mips_restore_gp after
8880         the above name change.
8881         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
8882         (mips_find_gp_ref): New function.
8883         (mips_insn_has_inflexible_gp_ref_p): Likewise.
8884         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
8885         (mips_insn_has_flexible_gp_ref_p): Likewise.
8886         (mips_cfun_has_flexible_gp_ref_p): Likewise.
8887         (mips_function_has_gp_insn): Delete.
8888         (mips_global_pointer): Drop the df_regs_ever_live_p check.
8889         Use the new functions above.  Only return INVALID_REGNUM
8890         for TARGET_ABSOLUTE_JUMPS.
8891         (mips_must_initialize_gp_p): New function.
8892         (mips_get_cprestore_base_and_offset): New function, extracted from...
8893         (mips_cprestore_slot): ...here.  Take a bool parameter.
8894         (mips_cfun_has_cprestore_slot_p): New function.
8895         (mips_cprestore_address_p): Likewise.
8896         (mips_save_gp_to_cprestore_slot): Likewise.
8897         (mips_restore_gp): Rename to...
8898         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
8899         epilogue_completed.  Update the call to mips_cprestore_slot.
8900         Test cfun->machine->must_restore_gp_when_clobbered_p.
8901         (mips_direct_save_slot_move_p): New function.
8902         (mips_emit_save_slot_move): Likewise.
8903         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
8904         of cfun->machine->global_pointer.
8905         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
8906         (mips_save_reg): Use mips_emit_save_slot_move.
8907         (mips_expand_prologue): Set must_initialize_gp_p.
8908         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
8909         for all cprestore saves.  Emit a use_cprestore instruction after
8910         setting up the cprestore slot.
8911         (mips_restore_reg): Use mips_emit_save_slot_move.
8912         (mips_process_load_label): New function.
8913         (mips_load_label_length): Likewise.
8914         (mips_output_load_label): Don't return asm: output it here instead.
8915         Use mips_process_load_label.
8916         (mips_adjust_insn_length): Adjust the length of branch instructions
8917         that have length MAX_PIC_BRANCH_LENGTH.
8918         (mips_output_conditional_branch): Update the call to
8919         mips_output_load_label.  Assume the branch target is OPERANDS[0]
8920         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
8921         (mips_output_order_conditional_branch): Swap the meaning of
8922         OPERANDS[0] and OPERANDS[1].
8923         (mips_variable_issue): Don't count ghost instructions.
8924         (mips_expand_ghost_gp_insns): New function.
8925         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
8926         (mips_output_mi_thunk): Set must_initialize_gp_p.
8927         (mips_eh_uses): New function.
8928         * config/mips/predicates.md (cprestore_save_slot_operand)
8929         (cprestore_load_slot_operand): New predicates.
8930         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
8931         (UNSPEC_MOVE_GP): Likewise.
8932         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
8933         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
8934         (CPRESTORE_SLOT_REGNUM): New register.
8935         (MAX_PIC_BRANCH_LENGTH): New constant.
8936         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
8937         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
8938         branches.  Fix commentary.
8939         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
8940         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
8941         Change type to "ghost".
8942         (loadgp_absolute_<mode>): Likewise.
8943         (loadgp_rtp_<mode>): Likewise.
8944         (copygp_mips16): Likewise.
8945         (loadgp_blockage): Remove redundant mode attribute.
8946         (potential_cprestore): New instruction.
8947         (cprestore): Turn into an unspec set.
8948         (use_cprestore): New instruction.
8949         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
8950         (*branch_fp_inverted): Likewise.
8951         (*branch_order<mode>): Likewise.
8952         (*branch_order<mode>_inverted): Likewise.
8953         (*branch_equality<mode>): Likewise.
8954         (*branch_equality<mode>_inverted): Likewise.
8955         (*branch_bit<bbv><mode>): Likewise.
8956         (*branch_bit<bbv><mode>_inverted): Likewise.
8957         (*branch_equality<mode>_mips16): Remove redundant mode.
8958         (jump): Turn into a define_expand.
8959         (*jump_absolute): New instruction.
8960         (*jump_pic): Likewise.
8961         (*jump_mips16): Rename previously-unnamed pattern.  Remove
8962         redundant mode attribute.
8963         (restore_gp): Split on epilogue_completed rather than
8964         reload_completed.  Change type to "ghost".
8965         (move_gp<mode>): New instruction.
8966         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
8967         Remove redundant mode attribute.
8968         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
8969         (bc1any4f, bc1any2t, bc1any2f): Likewise.
8970         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
8972 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8974         PR target/41210
8975         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
8976         are returned in the same register (vs34 or v2) that Altivec vector
8977         types are returned in.
8978         (rs6000_libcall_value): Ditto.
8980         PR target/41331
8981         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
8982         instead of explicit addsi3/adddi3 calls.
8983         (rs6000_split_multireg_move): Ditto.
8984         (rs6000_emit_allocate_stack): Ditto.
8985         (rs6000_emit_prologue): Ditto.
8986         (rs6000_output_mi_thunk): Ditto.
8988         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
8989         size is 64 bits if we can use 64-bit registers.
8991 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
8993         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
8994         symbols.
8996         From Jie Zhang <jie.zhang@analog.com>:
8997         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
8998         save FP and RETS with saveall attribute.
8999         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
9000         with saveall attribute.
9002         * config/bfin/bfin.c (bfin_expand_builtin,
9003         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
9004         operands.
9006         From Jie Zhang <jie.zhang@analog.com>:
9007         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
9008         before use in two places.
9009         * config/bfin/bfin.md (AREG): Define mode iterator.
9010         (reload_in, reload_out): Use mode iterator AREG.
9012 2009-09-14  Richard Guenther  <rguenther@suse.de>
9014         PR middle-end/41350
9015         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
9016         EH personality path.
9018 2009-09-13  Richard Guenther  <rguenther@suse.de>
9019             Rafael Avila de Espindola  <espindola@google.com>
9021         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
9022         (LANG_HOOKS_EH_PERSONALITY): Likewise.
9023         (LANG_HOOKS_INITIALIZER): Adjust.
9024         (lhd_pass_through_t): Declare.
9025         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
9026         eh_personality.
9027         * langhooks.c (lhd_pass_through_t): New function.
9028         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
9029         dwarf2out_begin_prologue): Use personality from current_function_decl.
9030         * expr.h (get_personality_function): Declare.
9031         * expr.c (get_personality_function): New function.
9032         (build_personality_function): Likewise.
9033         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
9034         (eh_personality_libfunc): Remove.
9035         * optabs.c (build_libfunc_function): New function split out from ...
9036         (init_one_libfunc): ... here.
9037         * tree.h (DECL_FUNCTION_PERSONALITY): New.
9038         (tree_function_decl): Add personality.
9039         (lhd_gcc_personality): Declare.
9040         (build_personality_function): Likewise.
9041         * tree.c (gcc_eh_personality_decl): New.
9042         (lhd_gcc_personality): New function.
9043         * except.h (lang_eh_runtime_type): Remove.
9044         (enum eh_personality_kind): New.
9045         (build_personality_function): Declare.
9046         (function_needs_eh_personality): Declare.
9047         * except.c (lang_eh_runtime_type): Remove.
9048         (function_needs_eh_personality): New function.
9049         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
9050         (sjlj_emit_function_enter, output_function_exception_table):
9051         Use personality from current_function_decl.
9052         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
9053         * tree-inline.c (tree_can_inline_p): Do not inline across different
9054         EH personalities.
9055         (expand_call_inline): Likewise.  Adjust the callers EH personality.
9056         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
9057         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
9058         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
9059         (c-parser.o): Likewise
9060         * c-tree.h (c_eh_initialized_p): Remove.
9061         (c_maybe_initialize_eh): Likewise.
9062         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
9063         (finish_decl): Don't call c_maybe_initialize_eh.
9064         (c_eh_initialized_p): Remove.
9065         (c_maybe_initialize_eh): Likewise.
9066         * c-parser.c (c_parser_omp_construct): Likewise.
9067         (c_parse_file): Initialize exception handling.
9069 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
9071         * config.gcc (tm_file): Remove i386/biarch32.h
9072         for i?86-w64-mingw* case.
9073         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
9074         support.
9075         * config.host: Set for x64 mingw the option
9076         use_long_long_for_widest_fast_int to yes.
9078 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
9080         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
9081         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
9082         (dbxout_begin_function): Likewise.
9083         * final.c (dwarf2_debug_info_emitted_p): New predicate.
9084         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
9085         set on the function.
9086         (final_end_function): Likewise.
9087         (final_scan_insn): Likewise.
9088         (rest_of_handle_final): Likewise.
9089         * varasm.c (assemble_start_function): Likewise.
9090         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9092 2009-09-12  Jason Merrill  <jason@redhat.com>
9094         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
9095         * opts.c (common_handle_option): constify.
9097 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
9099         * doc/install.texi (avr): Remove obsolete reference site.
9101 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
9103         * doc/install.texi (Binaries): Adjust AIX link.
9105 2009-09-12  Akim Demaille  <demaille@gostai.com>
9107         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
9108         Use an imperative sentence.
9110 2009-09-11  Richard Henderson  <rth@redhat.com>
9112         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
9113         structure-name and has-tree-operands arguments; update all entries.
9114         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
9115         update all entries.
9116         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
9117         (gsstruct_code_size): New.
9118         (gss_for_code_): New.
9119         (gss_for_code): Remove.
9120         (gimple_size): Rewrite using gsstruct_code_size.
9121         (gimple_statement_structure): Move to gimple.h.
9122         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
9123         (gss_for_code, gimple_statement_structure): New.
9124         (gimple_ops): Use new arrays; tidy.
9126 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9128         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
9129         operand to be a PLUS expression.
9130         * config/pa/pa.c (pa_secondary_reload): Likewise.
9132 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
9134         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
9136         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
9137         XEXP (in_rtx, 8).
9139 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9141         From Jie Zhang <jie.zhang@analog.com>:
9142         * doc/extend.texi (node Function Attributes): Document l2
9143         function attribute.
9144         (node Blackfin Variable Attributes): Document l2 variable attributes.
9146 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
9148         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
9149         to match the system compiler's configuration at inflection point.
9150         Add comment to remark a remaining difference with system compiler.
9152         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
9153         * configure: Regenerate.
9155 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9157         From Jie Zhang <jie.zhang@analog.com>:
9158         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
9159         (bfin_handle_l2_attribute): New.
9160         (bfin_attribute_table): Add l2 attribute.
9162 2009-09-11  Michael Matz  <matz@suse.de>
9164         PR middle-end/41275
9165         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
9166         on the local_decls list.
9168 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
9170         PR debug/41276
9171         PR debug/41307
9172         * cselib.c (cselib_expand_value_rtx_cb): Document callback
9173         interface.
9174         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
9175         for VALUEs, to implement the documented interface.
9176         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
9177         Adjust for VALUEs and anything else, to implement the
9178         documented interface.
9180 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
9182         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
9183         with actual SPE/paired vector modes before using 64-bit alignment.
9184         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
9186 2009-09-10  DJ Delorie  <dj@redhat.com>
9188         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
9189         emitted.
9191         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
9192         * config/mep/mep.c (mep_legitimate_constant_p): New.
9193         * config/mep/mep-protos.h: Prototype it.
9195 2009-09-10  Richard Henderson  <rth@redhat.com>
9197         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
9199 2009-09-10  Jason Merrill  <jason@redhat.com>
9201         * tree.c (chain_index): New fn.
9202         * tree.h: Declare it.
9204 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9206         * config/sol2-c.c (cmn_err_length_specs): Initialize
9207         scalar_identity_flag.
9209 2009-09-10  Richard Henderson  <rth@redhat.com>
9211         * tree.h (struct tree_decl_common): Move align member earlier;
9212         move label_decl_uid member ...
9213         (struct tree_label_decl): ... here.
9214         (LABEL_DECL_UID): Update to match.
9216         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
9217         not TDF_DETAILS.
9219         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
9220         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
9222         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
9223         dest_prev if the edge is complex.
9225         * tree-cfg.c (is_ctrl_stmt): Use a switch.
9227         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
9228         loop latch tests earlier.
9230         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
9231         before GIMPLE_RETURN, not after its predecessor; insert
9232         before GIMPLE_RESX.
9234         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
9235         gimple_seq_empty_p to test for no PHI nodes.
9236         * tree-cfg.c (split_critical_edges): Likewise.
9238         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
9240 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9242         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
9243         introduced by the VTA branch merge.
9245 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9247         * ira-conflicts.c: Use fputs or putc instead of fprintf
9248         where appropriate.
9249         * cfg.c: Ditto.
9250         * toplev.c: Ditto.
9251         * tree-switch-conversion.c: Ditto.
9253 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
9255         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
9256         introduced by the VTA branch merge.
9258 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
9260         Revert:
9261         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9263         PR rtl-optimization/39779
9264         * expr.c (convert_modes): Return when mode == oldmode after
9265         CONST_INTs are processed.
9267 2009-09-10  Nick Clifton  <nickc@redhat.com>
9269         * config/mep/mep.c (mep_encode_section_info): Copy weakness
9270         attribute and referring decl when creating renamed symbol.
9272 2009-09-10  Richard Guenther  <rguenther@suse.de>
9274         PR middle-end/41257
9275         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
9276         reachable nodes.
9277         (cgraph_finalize_compilation_unit): Compute reachability
9278         before emitting thunks.  Properly process aliases before
9279         possibly removing unreachable nodes.
9281 2009-09-10  Richard Guenther  <rguenther@suse.de>
9283         PR middle-end/41254
9284         * tree.c (struct free_lang_data_d): Add worklist member.
9285         (find_decls_types_r): Push onto the worklist instead of recursing.
9286         Handle TREE_BINFOs properly.
9287         (find_decls_types): New function wrapped around find_decls_types_r
9288         to process the worklist.
9289         (find_decls_types_in_eh_region): Use it.
9290         (find_decls_types_in_node): Likewise.
9291         (find_decls_types_in_var): Likewise.
9292         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
9293         * tree.h (RECORD_OR_UNION_TYPE_P): New.
9294         (AGGREGATE_TYPE_P): Adjust.
9296 2009-09-09  Jason Merrill  <jason@redhat.com>
9298         * configure.ac: Check glibc version even if we have an in-tree
9299         assembler.
9301 2009-09-09  Anthony Green  <green@moxielogic.com>
9303         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
9304         the constant 0 when appropriate.
9305         * config/moxie/constraints.md: Add constraint O.
9307         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
9308         to pass up to 6 32-bit argument values in registers.
9309         (moxie_function_arg): Ditto.
9310         (moxie_arg_partial_bytes): Ditto.
9311         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
9312         (REG_PARM_STACK_SPACE): Ditto.
9313         (FUNCTION_ARG_REGNO_P): Ditto.
9315         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9316         instruction to allocate stack space.
9318 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
9320         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
9321         unnecessarily stringent constraints.  Fix address
9322         calculation in the splitters.
9324 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
9326         PR rtl-optimization/39779
9327         * expr.c (convert_modes): Return when mode == oldmode after
9328         CONST_INTs are processed.
9330 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
9332         PR/41315
9333         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
9334         (ix86_expand_prologue): Take frame.padding0 into logic of
9335         to_allocate checks.
9336         (ix86_expand_epilogue): Likewise.
9338 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
9340         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
9341         New variables.
9342         (SHLIB_LINK, SHLIB_INSTALL): Use them.
9343         * config/t-slibgcc-libgcc: New file.
9344         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
9346 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9348         PR tree-optimization/41089
9349         * tree-sra.c (find_var_candidates): Do not consider va_lists in
9350         early SRA.
9352 2009-09-09  Richard Henderson  <rth@redhat.com>
9354         * gimple.h (CASE_GIMPLE_OMP): New.
9355         (is_gimple_omp): Use it.
9356         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
9357         (verify_gimple_debug): Likewise.
9359 2009-09-09  Richard Guenther  <rguenther@suse.de>
9361         PR tree-optimization/41101
9362         * tree-ssa-pre.c (maximal_set): Remove.
9363         (compute_antic_aux): Treat the maximal set as implicitly all ones.
9364         Defer all blocks we didn't visit at least one successor.
9365         (add_to_exp_gen): Do not add to the maximal set.
9366         (make_values_for_phi): Likewise.
9367         (compute_avail): Likewise.
9368         (init_pre): Do not allocate the maximal set.
9369         (execute_pre): Do not dump it.
9371 2009-09-09  Martin Jambor  <mjambor@suse.cz>
9373         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
9374         an SSA_NAME rather than a is_gimple_variable.
9376 2009-09-09  Richard Guenther  <rguenther@suse.de>
9378         PR middle-end/41317
9379         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
9380         code dealing with plain pointer bases.
9381         (maybe_fold_offset_to_reference): Likewise.
9382         (maybe_fold_stmt_addition): Adjust.
9384 2009-09-09  Richard Guenther  <rguenther@suse.de>
9386         * tree.c (free_lang_data_in_type): Do not free the type variant
9387         chains.
9388         (free_lang_data): Merge char_type_node with its properly signed
9389         variant.
9390         (pass_ipa_free): Collect after freeing language specific data.
9392 2009-09-09  Michael Matz  <matz@suse.de>
9394         PR middle-end/41268
9395         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
9396         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
9397         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
9398         to reflect reality.
9400 2009-09-08  DJ Delorie  <dj@redhat.com>
9402         * config/mep/mep.c (conversions[]): Add "ml" pattern.
9404 2009-09-04  Jason Merrill  <jason@redhat.com>
9406         * tree.c (tree_find_value): Remove.
9407         * tree.h: Remove prototype.
9408         * varasm.c (assemble_external): Use value_member instead.
9410 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9412         * toplev.c (process_options): Choose default debugging type when
9413         gtoggle enables debug info and type is unset.
9415 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9417         PR debug/41276
9418         PR debug/41307
9419         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
9420         invalid subreg.
9422 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9424         * configure: Rebuilt with modified libtool.m4.
9426 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9428         PR debug/41229
9429         PR debug/41291
9430         PR debug/41300
9431         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
9433 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9435         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
9436         (remove_statement): Likewise.
9437         (rewrite_use_nonlinear_expr): Adjust.
9438         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
9439         * tree-ssa.c (release_defs_bitset): ... this.  New.
9440         * tree-flow.h (release_defs_bitset): Declare.
9442 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
9444         PR debug/41232
9445         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
9446         in the middle block.
9448 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
9450         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
9451         via intptr_t to long type.
9452         (insert_operand_rank): Cast long type via intptr_t to
9453         pointer type.
9454         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
9455         pointer to scalar.
9456         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
9457         from pointer to unsigned via uintptr_t.
9459         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
9460         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
9461         and HAVE_INTPTR_T.
9462         * configure: Regenerated.
9463         * config.in: Regenerated
9464         * system.h (stdint.h): Add include.
9465         (inttypes.h): Likewise.
9466         * Makefile.in (aclocal): Add config/stdint.m4.
9467         * aclocal.m4: Regenerated.
9469 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
9471         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
9472         variables.
9473         (note_np_check_stores): New function.
9474         (harmless_null_pointer_p): New function.
9475         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
9476         changed.  Take into account whether we're in the shadow of a condjump
9477         that tested NP_REG for NULL.
9478         Lose all code that tested for SEQUENCEs.
9479         (workaround_speculation): Avoid inserting NOPs for loads that are
9480         either always executed or a NULL pointer.
9482 2009-09-08  Jan Hubicka  <jh@suse.cz>
9484         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
9485         * params.def (early-inlining-insns): Likewise.
9487 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
9489         PR rtl-optimization/41239
9490         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
9491         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
9492         lists.
9493         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
9494         across calls, as the calls might not always return normally.
9495         (call_may_noreturn_p): New function.
9496         (deps_analyze_insn): Update last_function_call_may_noreturn list.
9497         (init_deps): Initialize it.
9498         (remove_from_deps): Also remove calls from
9499         last_function_call_may_noreturn list.
9501 2009-09-07  Richard Henderson  <rth@redhat.com>
9503         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
9504         more VR->OPERANDS than LHS operands.  Free LHS before returning.
9506 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9508         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
9509         (attr "addrtype"): New member "spreg".
9510         Use it if mem_spfp_address_operand is true for the address.
9511         (attr "type"): New entry "stall".
9512         (cpu_unit "load"): New.
9513         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
9514         "load".
9515         (insn_reservation "loadsp"): New.
9516         (insn_reservation "load_stall1"): New.
9517         (insn_reservation "load_stall3"): New.
9518         (stall): New insn.
9519         * config/bfin/predicates.md (const1_operand, const3_operand): New.
9520         (mem_p_address_operand): Exclude stack and frame pointer based
9521         addresses.
9522         (mem_spfp_address_operand): New; match them here.
9523         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
9524         (bfin_reorg): Call it if scheduling insns.
9525         (bfin_gen_bundles): Remove dummy insns created by
9526         add_sched_insns_for_speculation.
9528         From Jie Zhang <jie.zhang@analog.com>:
9529         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
9530         bfin_si_revision, bfin_workarounds): Move these ...
9531         * config/bfin/bfin.h: ... here.
9533         From Mike Frysinger  <michael.frysinger@analog.com>
9534         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
9535         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
9536         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
9537         bf547m, bf548m, and bf549m.
9538         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
9539         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
9540         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
9541         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
9542         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9543         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
9544         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9545         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9546         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
9547         bf542m, bf544m, bf547m, bf548m, and bf549m.
9549         From Jie Zhang <jie.zhang@analog.com>:
9550         * config/bfin/predicates.md (p_register_operand): New predicate.
9551         (dp_register_operand): New predicate.
9552         * config/bfin/bfin-protos.h (WA_05000074): Define.
9553         (ENABLE_WA_05000074): Define.
9554         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
9555         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
9556         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
9557         (define_attr addrtype): Allow load/store register to be P register.
9558         (define_attr storereg): New.
9559         (define_cpu_unit anomaly_05000074): New.
9560         (define_insn_reservation dsp32shiftimm): New.
9561         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
9562         (define_insn_reservation loadp): Cannot use slot2.
9563         (define_insn_reservation loadsp): Cannot use slot2.
9564         (define_insn_reservation storep): Cannot use slot2. Does not
9565         apply when working around 05000074.
9566         (define_insn_reservation storep_anomaly_05000074): New.
9567         (define_insn_reservation storei): Does not apply when working
9568         around 05000074.
9569         (define_insn_reservation storei_anomaly_05000074): New.
9570         (define_attr length): Add dsp32shiftimm case.
9571         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
9572         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
9573         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
9574         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
9575         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
9577 2009-09-07  Martin Jambor  <mjambor@suse.cz>
9579         PR middle-end/41282
9580         * tree-sra.c (create_artificial_child_access): Return NULL if
9581         build_ref_for_offset fails.
9582         (propagate_subacesses_accross_link): Allow build_ref_for_offset
9583         and create_artificial_child_access to fail.
9585 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
9587         PR c++/41214
9588         * unwind-dw2.c (uw_init_context_1): Mark noinline.
9589         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
9590         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
9592 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9594         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
9595         block, ensure it has an exit edge.  Emit a barrier after a jump.
9597 2009-09-07  Nick Clifton  <nickc@redhat.com>
9599         * gcc.c (this_is_linker_script): New variable.  Like
9600         this_is_library_file but for the %T constructor.
9601         (end_going_arg): If this_is_linker_script is set then locate the
9602         script and insert a --script switch before it
9603         (do_spec_2): Initialise this_is_linker_script.
9604         (do_spec_1): Likewise.  Handle %T construct.
9605         (eval_spec_function): Preserve this_is_linker_script.
9606         * doc/invoke.texi: Document %T construct in spec files.
9607         * config/m32c/m32c.h (LIB_SPEC): Use it.
9609 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9611         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
9612         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
9613         when volatile flag is set.
9614         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
9616 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9618         PR bootstrap/41241
9619         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
9620         (combine_stack_adjustments_for_block): Allow insns between stack
9621         adjustments and stores with corresponding pre-(dec|inc)rement or
9622         pre-modify operation.
9624 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
9626         PR bootstrap/41241
9627         * combine-stack-adj.c (struct csa_memlist): Rename to...
9628         (struct csa_reflist): ... this.  Rename mem field to ref.
9629         (free_csa_memlist): Rename to...
9630         (free_csa_reflist): ... this.
9631         (record_one_stack_memref): Rename to...
9632         (record_one_stack_ref): ... this.  Handle also REG_P.
9633         (try_apply_stack_adjustment): Handle also REG_P.
9634         (struct record_stack_memrefs_data): Rename to...
9635         (struct record_stack_refs_data): ... this.  Rename memlist field to
9636         reflist.
9637         (record_stack_memrefs): Rename to...
9638         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
9639         subexpressions instead of failing when a MEM contains SP references.
9640         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
9641         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
9643 2009-09-06  Richard Guenther  <rguenther@suse.de>
9645         PR middle-end/41144
9646         * tree.c (build_array_type): Do not record types marked
9647         with structural equality in the canonical type hashtable.
9649 2009-09-06  Richard Guenther  <rguenther@suse.de>
9651         PR middle-end/41261
9652         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
9654 2009-09-05  Richard Guenther  <rguenther@suse.de>
9656         PR middle-end/41181
9657         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
9659 2009-09-05  Richard Guenther  <rguenther@suse.de>
9661         PR debug/41273
9662         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
9664 2009-09-05  Richard Guenther  <rguenther@suse.de>
9666         PR middle-end/41271
9667         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
9668         before comparing function argument types.
9670 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9672         PR target/41024
9673         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
9674         the assembler.
9676 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9678         Revert:
9679         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9681         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9682         locators before emit_insn is called.
9684 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
9686         PR bootstrap/41241
9687         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
9688         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
9689         (reginfo_init): Don't call allocate_reg_info.
9691 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
9693         PR target/41262
9694         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
9695         NONDEBUG_INSN_P instead of INSN_P.
9697 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9699         PR debug/41225
9700         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
9702 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9704         PR target/41252
9705         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
9706         pattern of the split.
9708 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9710         * toplev.c (process_options): Move setter of flag_var_tracking
9711         before other tests that depend on it.  Move down setter of
9712         flag_rename_registers.  Don't enable var-tracking-assignments
9713         by default if selective scheduling is enabled.  Warn if both
9714         are enabled.
9716 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
9718         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
9719         comment.  Use switch statement to catch overlaps between rtx
9720         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
9721         (IS_DECL_CODE): ... here. Remove.
9722         (check_value_is_not_decl): Remove.
9723         (dv_from_decl, dv_from_value): Check after conversion.
9725 2009-09-04  Richard Guenther  <rguenther@suse.de>
9727         PR middle-end/41257
9728         * (cgraph_finalize_compilation_unit): Move finalizing aliases
9729         after emitting tunks.  Move emitting thunks and ctors from ...
9730         (cgraph_optimize): ... here.  Remove redundant
9731         cgraph_analyze_functions.
9732         * varasm.c (find_decl_and_mark_needed): Remove no longer
9733         necessary check.
9734         (finish_aliases_1): Adjust check for thunk aliases.
9736 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
9738         * config/arm/arm.md (ctzsi2): Added braces
9739         to avoid warning that broke booststrap.
9741 2009-09-04  Martin Jambor  <mjambor@suse.cz>
9743         PR tree-optimization/41112
9744         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
9745         handle variable-bounded arrays.
9746         (expr_with_var_bounded_array_refs_p): New function.
9747         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
9749 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
9751         * config/s390/2097.md: Removed two incorrect bypasses.
9752         (z10_fsimpdf): Fixed latency.
9753         (z10_fhex): New insn_reservation.
9754         (z10_floaddf): Fixed latency.
9755         (z10_floadsf): Fixed latency.
9756         (z10_ftrunctf): Fixed latency.
9757         (z10_ftruncdf): Fixed latency.
9758         * config/s390/s390.c (z10_cost): Fixed values.
9759         (s390_adjust_priority): Added z10 path.
9760         * config/s390/s390.md (type): Added fhex.
9761         (*mov<mode>_64dfp): Updated type attribute.
9762         (*mov<mode>_64): Updated type attribute.
9763         (*mov<mode>_31): Updated type attribute.
9764         (*mov<mode>"): Likewise.
9765         * config/s390/2084.md (x_fsimpdf): Updated condition.
9767 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
9769         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
9770         RTXs in the predicate for operand 1.
9772 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
9774         * config/arm/arm.md (UNSPEC_RBIT): New constant.
9775         (rbitsi2): New insn.
9776         (ctzsi2): New expand.
9777         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
9779 2009-09-03  Martin Jambor  <mjambor@suse.cz>
9781         * tree-sra.c (duplicate_expr_for_different_base): Removed.
9782         (create_artificial_child_access): Use build_ref_for_offset instead
9783         of duplicate_expr_for_different_base.
9784         (propagate_subacesses_accross_link): Likewise.
9786 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
9788         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
9789         of INSN_P.
9790         (mips16e_collect_argument_saves): Skip debug instructions.
9791         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
9792         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
9793         (r10k_insert_cache_barriers): Likewise.
9794         (mips_reorg_process_insns): Likewise.
9796 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
9798         PR bootstrap/41241
9799         * ira.c (update_equiv_reg): Remove check on class likely spill.
9801 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
9803         PR debug/41236
9804         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
9805         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
9806         it or SUBREG.
9808         PR debug/41238
9809         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
9810         the stack slot if it is passed by invisible reference.
9811         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
9812         by invisible reference.
9814 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
9816         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9817         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
9818         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
9819         0.
9820         * config/bfin/sync.md: New file.
9821         * config/bfin/bfin.md: Include it.
9822         (UNSPEC_ATOMIC): New.
9823         (UNSPEC_ONES): Provide a unique number.
9825         From Jie Zhang <jie.zhang@analog.com>:
9826         * config/bfin/bfin.c (ret_regs): New.
9827         (must_save_fp_p): Don't return true because of frame_pointer_needed.
9828         (must_save_rets_p): New.
9829         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
9830         current_function_is_leaf.
9831         (do_link): Likewise.
9832         (do_unlink): Likewise.
9833         (expand_interrupt_handler_prologue): Use ret_regs array.
9834         (expand_interrupt_handler_epilogue): Use ret_regs array and
9835         pass return register to gen_return_internal.
9836         (bfin_expand_epilogue): Pass return register to
9837         gen_return_internal.
9838         (bfin_expand_call): Explicitly clobber RETS.
9839         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
9840         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
9841         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
9842         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
9843         RETS.
9844         (return_internal): Take a reg rtx rather than the register number.
9846 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
9848         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
9849         when comparing against estimated_loop_iterations_int return.
9851 2009-09-03  Richard Guenther  <rguenther@suse.de>
9853         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
9854         eh_personality_libfunc.
9856 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9858         * tree-parloops.c (separate_decls_in_region): Add space.
9860 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9862         * tree-parloops.c (separate_decls_in_region): Change the condition
9863         checking if there are reductions in the loop.
9865 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
9867         PR tree-optimization/38275
9868         * tree-parloops.c (parallelize_loops): Replace profitability condition
9869         for expected number of iterations.
9871 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9873         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
9874         (bootstrap-debug): Explain conditions in which it becomes default.
9875         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
9876         make it add to it.
9878 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
9880         * doc/invoke.texi (Optimize Options): Move
9881         -finline-small-functions to the -O2 list.
9883 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
9885         * toplev.c (process_options): Enable var-tracking-assignments
9886         by default if var-tracking is enabled.
9888 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
9890         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
9891         barrier.
9892         * emit-rtl.c (prev_nonnote_insn_bb): New function.
9893         * rtl.h (prev_nonnote_insn_bb): Declare it.
9895 2009-09-03  Diego Novillo  <dnovillo@google.com>
9897         * cgraph.c (cgraph_node_for_decl): New.
9898         * cgraph.h (cgraph_node_for_decl): Declare.
9899         * tree.c (host_integerp): Return 0 if T is NULL.
9901 2009-09-03  Diego Novillo  <dnovillo@google.com>
9903         * tree.h (struct alias_pair): Move from varasm.c.
9904         (alias_pairs): Likewise.
9905         (TYPE_MAXVAL): Define.
9906         (TYPE_MINVAL): Define.
9907         (iterative_hash_host_wide_int): Declare.
9908         (remove_unreachable_alias_pairs): Declare.
9909         * tree-pass.h (pass_ipa_free_lang_data): Declare.
9910         * diagnostic.c (default_diagnostic_starter): Make extern.
9911         (default_diagnostic_finalizer): Make extern.
9912         * diagnostic.h (default_diagnostic_starter): Declare.
9913         (default_diagnostic_finalizer): Declare.
9914         (default_tree_printer): Declare.
9915         * toplev.c (default_tree_printer): Make extern.
9917 2009-09-03  Richard Guenther  <rguenther@suse.de>
9918             Diego Novillo  <dnovillo@google.com>
9920         * cgraph.c (cgraph_add_new_function): Remove gimplification.
9921         * cgraphunit.c (cgraph_expand_function): Do not emit
9922         associated thunks from here.
9923         (cgraph_emit_thunks): New.
9924         (cgraph_optimize): Call it.
9925         Return if any IPA pass finds an error.
9926         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
9927         by thunks.
9929 2009-09-03  Simon Baldwin  <simonb@google.com>
9930             Rafael Espindola  <espindola@google.com>
9931             Richard Guenther  <rguenther@suse.de>
9932             Doug Kwan  <dougkwan@google.com>
9933             Diego Novillo  <dnovillo@google.com>
9935         * tree.c: Include tree-pass.h, langhooks-def.h,
9936         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
9937         (free_lang_data_in_type): New.
9938         (need_assembler_name_p): New.
9939         (free_lang_data_in_block): New.
9940         (free_lang_data_in_decl): New.
9941         (struct free_lang_data_d): New.
9942         (add_tree_to_fld_list): New.
9943         (find_decls_types_r): New.
9944         (get_eh_types_for_runtime): New.
9945         (find_decls_types_in_eh_region): New.
9946         (find_decls_types_in_node): New.
9947         (find_decls_types_in_var): New.
9948         (free_lang_data_in_cgraph): New.
9949         (free_lang_data): New.
9950         (gate_free_lang_data): New.
9951         (pass_ipa_free_lang_data): New.
9953 2009-09-03  Diego Novillo  <dnovillo@google.com>
9955         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
9956         * langhooks.h (struct lang_hooks): Add field free_lang_data.
9957         (lang_hooks): Remove const qualifier.
9958         * ipa.c (cgraph_remove_unreachable_nodes): Call
9959         remove_unreachable_alias_pairs.
9960         * except.c (add_type_for_runtime): Check if TYPE has
9961         already been converted.
9962         (lookup_type_for_runtime): Likewise.
9963         (check_handled): Handle converted types.
9964         * varasm.c (remove_unreachable_alias_pairs): New.
9965         * gimple.c: Include demangle.h.
9966         (gimple_decl_printable_name): New.
9967         (gimple_fold_obj_type_ref): New.
9968         * gimple.h (gimple_decl_printable_name): Declare.
9969         (gimple_fold_obj_type_ref): Declare.
9970         * passes.c (init_optimization_passes): Add pass
9971         pass_ipa_free_lang_data.
9972         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
9973         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
9975 2009-09-03  Diego Novillo  <dnovillo@google.com>
9977         * c-lang.c (lang_hooks): Remove const qualifier.
9979 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
9981         * doc/install.texi (*-*-freebsd*): Update target information.
9983 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
9985         * hard-reg-set.h (call_fixed_regs): Remove.
9986         * reginfo.c (call_fixed_regs): Remove.
9987         (init_reg_sets_1): Remove initialization of call_fixed_regs.
9988         (globalize_reg): Don't use call_fixed_regs.
9989         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
9990         call_fixed_regs.
9992 2009-09-01  Michael Matz  <matz@suse.de>
9994         * expr.h (emit_storent_insn, expand_expr_real_1,
9995         expand_expr_real_2): Declare.
9996         * expr.c (emit_storent_insn, expand_expr_real_1,
9997         expand_expr_real_2): Export.
9998         (store_expr): Setting and evaluating dont_return_target is useless.
9999         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
10000         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
10001         * except.c (expand_resx_expr): Rename to ...
10002         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
10003         * except.h (expand_resx_stmt): Declare.
10004         * stmt.c: Add include gimple.h
10005         (expand_asm_expr): Rename to ...
10006         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
10007         (expand_case): Rewrite to take gimple statement.
10008         * tree.h (expand_asm_stmt): Declare.
10009         (expand_case): Change prototype.
10010         * Makefile.in (stmt.o): Depend on gimple.h.
10011         * builtins.c (expand_builtin_synchronize): Build gimple asm
10012         statement, not an ASM_EXPR.
10013         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
10014         gimple_to_tree, release_stmt_tree): Remove.
10015         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
10016         ggc_free, but hold comparison code and operands separately.
10017         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
10018         (expand_call_stmt, expand_gimple_stmt_1,
10019         expand_gimple_stmt): New helpers.
10020         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
10021         release_stmt_tree.  Call expand_gimple_stmt instead.
10022         (expand_gimple_basic_block): Ditto.
10024         * calls.c (emit_call_1): Don't look at EH regions here, make
10025         fntree parameter useless.
10026         (expand_call): New local rettype for TREE_TYPE(exp), use it
10027         throughout.  Remove local p, use addr instead.
10028         Don't look at EH regions here.
10030 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
10032         * doc/invoke.texi (-fsched-pressure): Document it.
10033         (-fsched-reg-pressure-heuristic): Remove it.
10035         * reload.c (ira.h): Include.
10036         (find_reloads): Add choosing reload on number of small spilled
10037         classes.
10039         * haifa-sched.c (ira.h): Include.
10040         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
10041         saved_reg_pressure, curr_reg_live, saved_reg_live,
10042         region_ref_regs): New variables.
10043         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
10044         initiate_reg_pressure_info, setup_ref_regs,
10045         initiate_bb_reg_pressure_info, save_reg_pressure,
10046         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
10047         functions.
10048         (setup_insn_reg_pressure_info): New function.
10049         (rank_for_schedule): Add pressure checking and insn issue time.
10050         Remove comparison of insn reg weights.
10051         (ready_sort): Set insn reg pressure info.
10052         (update_register_pressure, setup_insn_max_reg_pressure,
10053         update_reg_and_insn_max_reg_pressure,
10054         sched_setup_bb_reg_pressure_info): New functions.
10055         (schedule_insn): Add code for printing and updating reg pressure info.
10056         (find_set_reg_weight, find_insn_reg_weight): Remove.
10057         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
10058         (debug_ready_list): Print reg pressure info.
10059         (schedule_block): Ditto.  Check insn issue time.
10060         (sched_init): Set up sched_pressure_p.  Allocate and set up some
10061         reg pressure related info.
10062         (sched_finish): Free some reg pressure related info.
10063         (fix_tick_ready): Make insn always ready if pressure_p.
10064         (init_h_i_d): Don't call find_insn_reg_weight.
10065         (haifa_finish_h_i_d): Free insn reg pressure info.
10067         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10068         ira_memory_move_cost, ira_class_hard_regs,
10069         ira_class_hard_regs_num, ira_no_alloc_regs,
10070         ira_available_class_regs, ira_reg_class_cover_size,
10071         ira_reg_class_cover, ira_class_translate): Move to ira.h.
10073         * ira-lives.c (single_reg_class): Check mode to find how many
10074         registers are necessary for operand.
10075         (ira_implicitly_set_insn_hard_regs): New.
10077         * common.opt (fsched-pressure): New options.
10078         (fsched-reg-pressure-heuristic): Remove.
10080         * ira.c (setup_eliminable_regset): Rename to
10081         ira_setup_eliminable_regset.  Make it external.
10082         (expand_reg_info): Pass cover class to setup_reg_classes.
10083         (ira): Call resize_reg_info instead of allocate_reg_info.
10085         * sched-deps.c: Include ira.h.
10086         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
10087         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
10088         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
10089         mark_insn_hard_regno_birth, mark_insn_reg_birth,
10090         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
10091         mark_insn_reg_store, mark_insn_reg_clobber,
10092         setup_insn_reg_pressure_info): New.
10093         (sched_analyze_1): Update implicit_reg_pending_uses.
10094         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
10095         Use them to create dependencies.  Set insn reg uses and pressure
10096         info.  Process reg_pending_uses in one place.
10097         (free_deps): Free implicit sets.
10098         (remove_from_deps): Remove implicit sets if necessary.  Check
10099         implicit sets when clearing reg_last_in_use.
10100         (init_deps_global): Clear implicit_reg_pending_clobbers and
10101         implicit_reg_pending_uses.
10103         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
10104         ira_memory_move_cost, ira_class_hard_regs,
10105         ira_class_hard_regs_num, ira_no_alloc_regs,
10106         ira_available_class_regs, ira_reg_class_cover_size,
10107         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
10108         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
10109         ira_implicitly_set_insn_hard_regs): New prototypes.
10111         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
10112         cost_elements_num): New variables.
10113         (allocno_costs, total_costs): Rename to costs and
10114         total_allocno_costs.
10115         (COSTS_OF_ALLOCNO): Rename to COSTS.
10116         (allocno_pref): Rename to pref.
10117         (allocno_pref_buffer): Rename to pref_buffer.
10118         (common_classes): Rename to regno_cover_class.
10119         (COST_INDEX): New.
10120         (record_reg_classes): Set allocno attributes only if allocno_p.
10121         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
10122         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
10123         and COSTS_OF_ALLOCNO.
10124         (print_costs): Rename to print_allocno_costs.
10125         (print_pseudo_costs): New.
10126         (process_bb_node_for_costs): Split into 2 functions with new
10127         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
10128         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
10129         new parameter dump_file.  Use cost_elements_num instead of
10130         ira_allocnos_num.  Make one iteration if preferred classes were
10131         already calculated for scheduler.  Make 2 versions of code
10132         depending on allocno_p.
10133         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
10134         regno_cover_class and COSTS instead of common_classes and
10135         COSTS_OF_ALLOCNO.
10136         (init_costs, finish_costs): New.
10137         (ira_costs): Set up allocno_p and cost_elements_num.  Call
10138         init_costs and finish_costs.
10139         (ira_set_pseudo_classes): New.
10141         * rtl.h (allocate_reg_info): Remove.
10142         (resize_reg_info): Change return type.
10143         (reg_cover_class): New.
10144         (setup_reg_classes): Add new parameter.
10146         * sched-int.h (struct deps_reg): New member implicit_sets.
10147         (sched_pressure_p, sched_regno_cover_class): New external definitions.
10148         (INCREASE_BITS): New macro.
10149         (struct reg_pressure_data, struct reg_use_data): New.
10150         (struct _haifa_insn_data): Remove reg_weight.  Add members
10151         reg_pressure, reg_use_list, reg_set_list, and
10152         reg_pressure_excess_cost_change.
10153         (struct deps): New member implicit_sets.
10154         (pressure_p): New variable.
10155         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
10156         (struct reg_pressure_data, struct reg_use_data): New.
10157         (INSN_REG_WEIGHT): Remove.
10158         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
10159         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
10160         (sched_init_region_reg_pressure_info,
10161         sched_setup_bb_reg_pressure_info): New prototypes.
10163         * reginfo.c (struct reg_pref): New member coverclass.
10164         (reg_cover_class): New function.
10165         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
10166         (reg_info_size): New variable.
10167         (allocate_reg_info): Make static.  Setup reg_info_size.
10168         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
10169         (setup_reg_classes): Add a new parameter.  Setup cover class too.
10171         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
10172         the dependencies.
10174         * sched-rgn.c (deps_join): Set up implicit_sets.
10175         (schedule_region): Set up region and basic blocks pressure
10176         relative info.
10178         * passes.c (init_optimization_passes): Move
10179         pass_subregs_of_mode_init before pass_sched.
10181 2009-09-02  Martin Jambor  <mjambor@suse.cz>
10183         * tree-sra.c (struct access): New field grp_hint.
10184         (dump_access): Dump grp_hint.
10185         (sort_and_splice_var_accesses): Set grp_hint if a group is read
10186         multiple times.
10187         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
10188         those which have been specifically read and somehow written to.
10189         (propagate_subacesses_accross_link): Set grp_hint of right child and
10190         also possibly of the left child.
10192 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
10194         * tree-object-size.c (addr_object_size): Always use object_size_type
10195         0 or 2 when determining the pointer pointed object size.
10197 2009-09-02  Richard Guenther  <rguenther@suse.de>
10199         Revert
10200         2009-08-31  Richard Guenther  <rguenther@suse.de>
10202         * builtins.c (fold_builtin_memory_op): Use the alias oracle
10203         to query if the memory regions for memmove overlap.
10204         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
10205         asserts on pointers, instead deal with odd trees.
10206         (ptr_derefs_may_alias_p): Likewise.
10207         (refs_may_alias_p_1): Constructor bases also never alias.
10209 2009-08-01  Christian Bruel  <christian.bruel@st.com>
10211         Revert:
10212         2009-07-31  Christian Bruel  <christian.bruel@st.com>
10213         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10215 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
10217         * doc/invoke.texi (-fvar-tracking-assignments): New.
10218         (-fvar-tracking-assignments-toggle): New.
10219         (-fdump-final-insns=file): Mark filename as optional.
10220         (--param min-nondebug-insn-uid): New.
10221         (-gdwarf-@{version}): Mention version 4.
10222         * opts.c (common_handle_option): Accept it.
10223         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
10224         * regrename.c (regrename_optimize): Drop last.  Don't count debug
10225         insns as uses.  Don't reject change because of debug insn.
10226         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
10227         from the chain starter, and check for inexact matches in DEBUG_INSNS.
10228         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
10229         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
10230         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
10231         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
10232         * doc/gimple.texi (is_gimple_debug): New.
10233         (gimple_debug_bind_p): New.
10234         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
10235         * doc/install.texi (bootstrap-debug): More details.
10236         (bootstrap-debug-big, bootstrap-debug-lean): Document.
10237         (bootstrap-debug-lib): More details.
10238         (bootstrap-debug-ckovw): Update.
10239         (bootstrap-time): New.
10240         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
10241         (insert_phi_nodes_for): Insert debug stmts.
10242         (rewrite_stmt): Take iterator.  Insert debug stmts.
10243         (rewrite_enter_block): Adjust.
10244         (maybe_replace_use_in_debug_stmt): New.
10245         (rewrite_update_stmt): Use it.
10246         (mark_use_interesting): Return early for debug stmts.
10247         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
10248         stmts before replacing stmt.
10249         (move_computations_stmt): Likewise.
10250         * ira-conflicts.c (add_copies): Skip debug insns.
10251         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
10252         (regstat_bb_compute_ri): Skip debug insns.
10253         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
10254         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
10255         check_loop_closed_ssa_stmt): Skip debug stmts.
10256         * tree-tailcall.c (find_tail_calls): Likewise.
10257         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10258         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
10259         (build_var_debug_value_stat): Declare.
10260         (build_var_debug_value): Define.
10261         (target_for_debug_bind): Declare.
10262         * reload.c (find_equiv_reg): Skip debug insns.
10263         * rtlanal.c (reg_used_between_p): Skip debug insns.
10264         (side_effects_p): Likewise.
10265         (canonicalize_condition): Likewise.
10266         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
10267         insns never depend on debug insns.
10268         (create_ddg_dep_no_link): Likewise.
10269         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
10270         Don't add inter-loop dependencies for debug insns.
10271         (build_intra_loop_deps): Likewise.
10272         (create_ddg): Count debug insns.
10273         * ddg.h (struct ddg::num_debug): New.
10274         (num_backargs): Pair up with previous int field.
10275         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
10276         -fcompare-debug-second.
10277         * final.c (get_attr_length_1): Skip debug insns.
10278         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
10279         * gcc.c (invoke_as): Call compare-debug-dump-opt.
10280         (driver_self_specs): Map -fdump-final-insns to
10281         -fdump-final-insns=..
10282         (get_local_tick): New.
10283         (compare_debug_dump_opt_spec_function): Test for . argument and
10284         compute output name.  Compute temp output spec without flag name.
10285         Compute -frandom-seed.
10286         (OPT): Undef after use.
10287         * cfgloopanal.c (num_loop_insns): Skip debug insns.
10288         (average_num_loop_insns): Likewise.
10289         * params.h (MIN_NONDEBUG_INSN_UID): New.
10290         * gimple.def (GIMPLE_DEBUG): New.
10291         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
10292         * auto-inc-dec.c (merge_in_block): Skip debug insns.
10293         (merge_in_block): Fix whitespace.
10294         * toplev.c (flag_var_tracking): Update comment.
10295         (flag_var_tracking_assignments): New.
10296         (flag_var_tracking_assignments_toggle): New.
10297         (process_options): Don't open final insns dump file if we're not
10298         going to write to it.  Compute defaults for var_tracking.
10299         * df-scan.c (df_insn_rescan_debug_internal): New.
10300         (df_uses_record): Handle debug insns.
10301         * haifa-sched.c (ready): Initialize n_debug.
10302         (contributes_to_priority): Skip debug insns.
10303         (dep_list_size): New.
10304         (priority): Use it.
10305         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
10306         they're ready.  Disregard previous debug insns to make decisions.
10307         (queue_insn): Never queue debug insns.
10308         (ready_add, ready_remove_first, ready_remove): Count debug insns.
10309         (schedule_insn): Don't reject debug insns because of issue rate.
10310         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
10311         (queue_to_ready): Skip and discount debug insns.
10312         (choose_ready): Let debug insns through.
10313         (schedule_block): Check boundary debug insns.  Discount debug
10314         insns, schedule them early.  Adjust whitespace.
10315         (set_priorities): Check for boundary debug insns.
10316         (add_jump_dependencies): Use dep_list_size.
10317         (prev_non_location_insn): New.
10318         (check_cfg): Use it.
10319         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
10320         stmts.
10321         (remove_unused_ivs): Reset debug stmts.
10322         * modulo-sched.c (const_iteration_count): Skip debug insns.
10323         (res_MII): Discount debug insns.
10324         (loop_single_full_bb_p): Skip debug insns.
10325         (sms_schedule): Likewise.
10326         (sms_schedule_by_order): Likewise.
10327         (ps_has_conflicts): Likewise.
10328         * caller-save.c (refmarker_fn): New.
10329         (save_call_clobbered_regs): Replace regs with saved mem in
10330         debug insns.
10331         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
10332         Call refmarker_fn mark for hardregnos.
10333         (mark_reg_as_referenced): New.
10334         (replace_reg_with_saved_mem): New.
10335         * ipa-pure-const.c (check_stmt): Skip debug stmts.
10336         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
10337         searching back.
10338         (cse_extended_basic_block): Skip debug insns.
10339         (count_reg_usage): Likewise.
10340         (is_dead_reg): New, split out of...
10341         (set_live_p): ... here.
10342         (insn_live_p): Use it for debug insns.
10343         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
10344         (execute_optimize_stdarg): Likewise.
10345         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10346         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
10347         changes in debug stmts as changes.
10348         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
10349         (moveup_expr): Don't move across debug insns.  Don't move
10350         debug insn if it would create a bookkeeping block.
10351         (moveup_expr_cached): Don't use cache for debug insns that
10352         are heads of blocks.
10353         (compute_av_set_inside_bb): Skip debug insns.
10354         (sel_rank_for_schedule): Schedule debug insns first.  Remove
10355         dead code.
10356         (block_valid_for_bookkeeping_p); Support lax searches.
10357         (create_block_for_bookkeeping): Adjust block numbers when
10358         encountering debug-only blocks.
10359         (find_place_for_bookkeeping): Deal with debug-only blocks.
10360         (generate_bookkeeping_insn): Accept no place to insert.
10361         (remove_temp_moveop_nops): New argument full_tidying.
10362         (prepare_place_to_insert): Deal with debug insns.
10363         (advance_state_on_fence): Debug insns don't start cycles.
10364         (update_boundaries): Take fence as argument.  Deal with
10365         debug insns.
10366         (schedule_expr_on_boundary): No full_tidying on debug insns.
10367         (fill_insns): Deal with debug insns.
10368         (track_scheduled_insns_and_blocks): Don't count debug insns.
10369         (need_nop_to_preserve_insn_bb): New, split out of...
10370         (remove_insn_from_stream): ... this.
10371         (fur_orig_expr_not_found): Skip debug insns.
10372         * rtl.def (VALUE): Move up.
10373         (DEBUG_INSN): New.
10374         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
10375         (nearest_common_dominator_of_uses): Take debug_stmts argument.
10376         Set it if debug stmts are found.
10377         (statement_sink_location): Skip debug stmts.  Propagate
10378         moving defs into debug stmts.
10379         * ifcvt.c (first_active_insn): Skip debug insns.
10380         (last_active_insns): Likewise.
10381         (cond_exec_process_insns): Likewise.
10382         (noce_process_if_block): Likewise.
10383         (check_cond_move_block): Likewise.
10384         (cond_move_convert_if_block): Likewise.
10385         (block_jumps_and_fallthru_p): Likewise.
10386         (dead_or_predicable): Likewise.
10387         * dwarf2out.c (debug_str_hash_forced): New.
10388         (find_AT_string): Add comment.
10389         (gen_label_for_indirect_string): New.
10390         (get_debug_string_label): New.
10391         (AT_string_form): Use it.
10392         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
10393         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
10394         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
10395         several operations that cannot be represented with DWARF opcodes.
10396         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
10397         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
10398         (dwarf2out_var_location): Take during-call mark into account.
10399         (output_indirect_string): Update comment.  Output if there are
10400         label and references.
10401         (prune_indirect_string): New.
10402         (prune_unused_types): Call it if debug_str_hash_forced.
10403         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
10404         (dw_long_long_const): Remove.
10405         (struct dw_val_struct): Change val_long_long type to rtx.
10406         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
10407         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
10408         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
10409         component instead of HOST_BITS_PER_LONG.
10410         (output_loc_operands): Likewise.  For const8* assert
10411         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
10412         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
10413         rather than HOST_BITS_PER_LONG is >= 64.
10414         (add_AT_long_long): Remove val_hi and val_lo arguments, add
10415         val_const_double.
10416         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
10417         HOST_BITS_PER_LONG for dw_val_class_long_long.
10418         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
10419         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
10420         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
10421         DW_OP_stack_value.
10422         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10423         Handle DW_OP_implicit_value.
10424         (extract_int): Move prototype earlier.
10425         (mem_loc_descriptor): For SUBREG punt if inner
10426         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
10427         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
10428         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
10429         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
10430         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
10431         instead of Pmode size.
10432         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
10433         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
10434         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
10435         (concat_loc_descriptor, concatn_loc_descriptor,
10436         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
10437         (add_location_or_const_value_attribute): Likewise.  For single
10438         location loc_lists attempt to use add_const_value_attribute
10439         for constant decls.  Add DW_AT_const_value even if
10440         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
10441         in its expression.
10442         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
10443         (control_flow_insn_p): Likewise.
10444         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
10445         (separate_decls_in_region_debug_bind): New.
10446         (separate_decls_in_region): Process debug bind stmts afterwards.
10447         * recog.c (verify_changes): Handle debug insns.
10448         (extract_insn): Likewise.
10449         (peephole2_optimize): Skip debug insns.
10450         * dse.c (scan_insn): Skip debug insns.
10451         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
10452         Pass it on.
10453         (setup_id_for_insn): Handle debug insns.
10454         (maybe_tidy_empty_bb): Adjust whitespace.
10455         (tidy_control_flow): Skip debug insns.
10456         (sel_remove_insn): Adjust for debug insns.
10457         (sel_estimate_number_of_insns): Skip debug insns.
10458         (create_insn_rtx_from_pattern): Handle debug insns.
10459         (create_copy_of_insn_rtx): Likewise.
10460         * sel-sched-.h (sel_bb_end): Declare.
10461         (sel_bb_empty_or_nop_p): New.
10462         (get_all_loop_exits): Use it.
10463         (_eligible_successor_edge_p): Likewise.
10464         (return_nop_to_pool): Adjust.
10465         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
10466         * ira-lives.c (process_bb_node_lives): Skip debug insns.
10467         * gimple-pretty-print.c (dump_gimple_debug): New.
10468         (dump_gimple_stmt): Use it.
10469         (dump_bb_header): Skip gimple debug stmts.
10470         * regmove.c (optimize_reg_copy_1): Discount debug insns.
10471         (fixup_match_2): Likewise.
10472         (regmove_backward_pass): Likewise.  Simplify combined
10473         replacement.  Handle debug insns.
10474         * function.c (instantiate_virtual_regs): Handle debug insns.
10475         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
10476         * print-rtl.h: Include cselib.h.
10477         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
10478         * df.h (df_inns_rescan_debug_internal): Declare.
10479         * gcse.c (alloc_hash_table): Estimate n_insns.
10480         (cprop_insn): Don't regard debug insns as changes.
10481         (bypass_conditional_jumps): Skip debug insns.
10482         (one_pre_gcse_pass): Adjust.
10483         (one_code_hoisting_pass): Likewise.
10484         (compute_ld_motion_mems): Skip debug insns.
10485         (one_cprop_pass): Adjust.
10486         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
10487         (if_convertible_stmt_p): Handle debug stmts.
10488         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
10489         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
10490         * ira-build.c (create_bb_allocnos): Skip debug insns.
10491         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
10492         (has_single_use): Likewise.
10493         (single_imm_use): Likewise.
10494         (num_imm_uses): Likewise.
10495         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
10496         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
10497         (create_outofssa_var_map): Likewise.
10498         * lower-subreg.c (adjust_decomposed_uses): New.
10499         (resolve_debug): New.
10500         (decompose_multiword_subregs): Use it.
10501         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
10502         * emit-rtl.c: Include params.h.
10503         (cur_debug_insn_uid): Define.
10504         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
10505         (copy_rtx_if_shared_1): Handle debug insns.
10506         (reset_used_flags): Likewise.
10507         (set_used_flags): LIkewise.
10508         (get_max_insn_count): New.
10509         (next_nondebug_insn): New.
10510         (prev_nondebug_insn): New.
10511         (make_debug_insn_raw): New.
10512         (emit_insn_before_noloc): Handle debug insns.
10513         (emit_jump_insn_before_noloc): Likewise.
10514         (emit_call_insn_before_noloc): Likewise.
10515         (emit_debug_insn_before_noloc): New.
10516         (emit_insn_after_noloc): Handle debug insns.
10517         (emit_jump_insn_after_noloc): Likewise.
10518         (emit_call_insn_after_noloc): Likewise.
10519         (emit_debug_insn_after_noloc): Likewise.
10520         (emit_insn_after): Take loc from earlier non-debug insn.
10521         (emit_jump_insn_after): Likewise.
10522         (emit_call_insn_after): Likewise.
10523         (emit_debug_insn_after_setloc): New.
10524         (emit_debug_insn_after): New.
10525         (emit_insn_before): Take loc from later non-debug insn.
10526         (emit_jump_insn_before): Likewise.
10527         (emit_call_insn_before): Likewise.
10528         (emit_debug_insn_before_setloc): New.
10529         (emit_debug_insn_before): New.
10530         (emit_insn): Handle debug insns.
10531         (emit_debug_insn): New.
10532         (emit_jump_insn): Handle debug insns.
10533         (emit_call_insn): Likewise.
10534         (emit): Likewise.
10535         (init_emit): Take min-nondebug-insn-uid into account.
10536         Initialize cur_debug_insn_uid.
10537         (emit_copy_of_insn_after): Handle debug insns.
10538         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
10539         location of single rhs in place.
10540         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
10541         (floor_sdiv_adjust): New.
10542         (cell_sdiv_adjust): New.
10543         (cell_udiv_adjust): New.
10544         (round_sdiv_adjust): New.
10545         (round_udiv_adjust): New.
10546         (wrap_constant): Moved from cselib.
10547         (unwrap_constant): New.
10548         (expand_debug_expr): New.
10549         (expand_debug_locations): New.
10550         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
10551         debug bind stmts.
10552         (gimple_expand_cfg): Expand debug locations.
10553         * cselib.c: Include tree-pass.h.
10554         (struct expand_value_data): New.
10555         (cselib_record_sets_hook): New.
10556         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
10557         (cselib_clear_table): Move, and implemnet in terms of...
10558         (cselib_reset_table_with_next_value): ... this.
10559         (cselib_get_next_unknown_value): New.
10560         (discard_useless_locs): Don't discard preserved values.
10561         (cselib_preserve_value): New.
10562         (cselib_preserved_value_p): New.
10563         (cselib_preserve_definitely): New.
10564         (cselib_clear_preserve): New.
10565         (cselib_preserve_only_values): New.
10566         (new_cselib_val): Take rtx argument.  Dump it in details.
10567         (cselib_lookup_mem): Adjust.
10568         (expand_loc): Take regs_active in struct.  Adjust.  Silence
10569         dumps unless details are requested.
10570         (cselib_expand_value_rtx_cb): New.
10571         (cselib_expand_value_rtx): Rename and reimplment in terms of...
10572         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
10573         without details.  Copy more subregs.  Try to resolve values
10574         using a callback.  Wrap constants.
10575         (cselib_subst_to_values): Adjust.
10576         (cselib_log_lookup): New.
10577         (cselib_lookup): Call it.
10578         (cselib_invalidate_regno): Don't count preserved values as useless.
10579         (cselib_invalidate_mem): Likewise.
10580         (cselib_record_set): Likewise.
10581         (struct set): Renamed to cselib_set, moved to cselib.h.
10582         (cselib_record_sets): Adjust.  Call hook.
10583         (cselib_process_insn): Reset table when it would be cleared.
10584         (dump_cselib_val): New.
10585         (dump_cselib_table): New.
10586         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
10587         (remove_forwarder_block): Support moving debug stmts.
10588         * cselib.h (cselib_record_sets_hook): Declare.
10589         (cselib_expand_callback): New type.
10590         (cselib_expand_value_rtx_cb): Declare.
10591         (cselib_reset_table_with_next_value): Declare.
10592         (cselib_get_next_unknown_value): Declare.
10593         (cselib_preserve_value): Declare.
10594         (cselib_preserved_value_p): Declare.
10595         (cselib_preserve_only_values): Declare.
10596         (dump_cselib_table): Declare.
10597         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
10598         (try_crossjump_to_edge): Likewise.
10599         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
10600         dominated blocks when debug stmts are present.
10601         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
10602         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
10603         (set_var_live_on_entry): Likewise.
10604         * loop-invariant.c (find_invariants_bb): Skip debug insns.
10605         * cfglayout.c (curr_location, last_location): Make static.
10606         (set_curr_insn_source_location): Don't avoid bouncing.
10607         (get_curr_insn_source_location): New.
10608         (get_curr_insn_block): New.
10609         (duplicate_insn_chain): Handle debug insns.
10610         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
10611         into debug stmts.
10612         * common.opt (fcompare-debug): Move to sort order.
10613         (fdump-unnumbered-links): Likewise.
10614         (fvar-tracking-assignments): New.
10615         (fvar-tracking-assignments-toggle): New.
10616         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
10617         because of debug stmts.
10618         (mark_stmt_if_obviously_necessary): Mark debug stmts.
10619         (eliminate_unnecessary_stmts): Walk dominated blocks before
10620         dominators.
10621         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
10622         * ira.c (memref_used_between_p): Skip debug insns.
10623         (update_equiv_regs): Likewise.
10624         * sched-deps.c (sd_lists_size): Accept empty list.
10625         (sd_init_insn): Mark debug insns.
10626         (sd_finish_insn): Unmark them.
10627         (sd_add_dep): Reject non-debug deps on debug insns.
10628         (fixup_sched_groups): Give debug insns group treatment.
10629         Skip debug insns.
10630         (sched_analyze_reg): Don't mark debug insns for sched before call.
10631         (sched_analyze_2): Handle debug insns.
10632         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
10633         insns.
10634         (deps_analyze_insn): Handle debug insns.
10635         (deps_start_bb): Skip debug insns.
10636         (init_deps): Initialize last_debug_insn.
10637         * tree-ssa.c (target_for_debug_bind): New.
10638         (find_released_ssa_name): New.
10639         (propagate_var_def_into_debug_stmts): New.
10640         (propagate_defs_into_debug_stmts): New.
10641         (verify_ssa): Skip debug bind stmts without values.
10642         (warn_uninialized_vars): Skip debug stmts.
10643         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
10644         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
10645         (rtx_equal_p): Likewise.
10646         * ira-costs.c (scan_one_insn): Skip debug insns.
10647         (process_bb_node_for_hard_reg_moves): Likewise.
10648         * rtl.h (DEBUG_INSN_P): New.
10649         (NONDEBUG_INSN_P): New.
10650         (MAY_HAVE_DEBUG_INSNS): New.
10651         (INSN_P): Accept debug insns.
10652         (RTX_FRAME_RELATED_P): Likewise.
10653         (INSN_DELETED_P): Likewise
10654         (PAT_VAR_LOCATION_DECL): New.
10655         (PAT_VAR_LOCATION_LOC): New.
10656         (PAT_VAR_OCATION_STATUS): New.
10657         (NOTE_VAR_LOCATION_DECL): Reimplement.
10658         (NOTE_VAR_LOCATION_LOC): Likewise.
10659         (NOTE_VAR_LOCATION_STATUS): Likewise.
10660         (INSN_VAR_LOCATION): New.
10661         (INSN_VAR_LOCATION_DECL): New.
10662         (INSN_VAR_LOCATION_LOC): New.
10663         (INSN_VAR_LOCATION_STATUS): New.
10664         (gen_rtx_UNKNOWN_VAR_LOC): New.
10665         (VAR_LOC_UNKNOWN_P): New.
10666         (NOTE_DURING_CALL_P): New.
10667         (SCHED_GROUP_P): Accept debug insns.
10668         (emit_debug_insn_before): Declare.
10669         (emit_debug_insn_before_noloc): Declare.
10670         (emit_debug_insn_beore_setloc): Declare.
10671         (emit_debug_insn_after): Declare.
10672         (emit_debug_insn_after_noloc): Declare.
10673         (emit_debug_insn_after_setloc): Declare.
10674         (emit_debug_insn): Declare.
10675         (make_debug_insn_raw): Declare.
10676         (prev_nondebug_insn): Declare.
10677         (next_nondebug_insn): Declare.
10678         (delegitimize_mem_from_attrs): Declare.
10679         (get_max_insn_count): Declare.
10680         (wrap_constant): Declare.
10681         (unwrap_constant): Declare.
10682         (get_curr_insn_source_location): Declare.
10683         (get_curr_insn_block): Declare.
10684         * tree-inline.c (insert_debug_decl_map): New.
10685         (processing_debug_stmt): New.
10686         (remap_decl): Don't create new mappings in debug stmts.
10687         (remap_gimple_op_r): Don't add references in debug stmts.
10688         (copy_tree_body_r): Likewise.
10689         (remap_gimple_stmt): Handle debug bind stmts.
10690         (copy_bb): Skip debug stmts.
10691         (copy_edges_for_bb): Likewise.
10692         (copy_debug_stmt): New.
10693         (copy_debug_stmts): New.
10694         (copy_body): Copy debug stmts at the end.
10695         (insert_init_debug_bind): New.
10696         (insert_init_stmt): Take id.  Skip and emit debug stmts.
10697         (setup_one_parameter): Remap variable earlier, register debug mapping.
10698         (estimate_num_insns): Skip debug stmts.
10699         (expand_call_inline): Preserve debug_map.
10700         (optimize_inline_calls): Check for no debug_stmts left-overs.
10701         (unsave_expr_now): Preserve debug_map.
10702         (copy_gimple_seq_and_replace_locals): Likewise.
10703         (tree_function_versioning): Check for no debug_stmts left-overs.
10704         Init and destroy debug_map as needed.  Split edges unconditionally.
10705         (build_duplicate_type): Init and destroy debug_map as needed.
10706         * tree-inline.h: Include gimple.h instead of pointer-set.h.
10707         (struct copy_body_data): Add debug_stmts and debug_map.
10708         * sched-int.h (struct ready_list): Add n_debug.
10709         (struct deps): Add last_debug_insn.
10710         (DEBUG_INSN_SCHED_P): New.
10711         (BOUNDARY_DEBUG_INSN_P): New.
10712         (SCHEDULE_DEBUG_INSN_P): New.
10713         (sd_iterator_cond): Accept empty list.
10714         * combine.c (create_log_links): Skip debug insns.
10715         (combine_instructions): Likewise.
10716         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
10717         return value is always unshared.
10718         (struct rtx_subst_pair): New.
10719         (auto_adjust_pair): New.
10720         (propagate_for_debug_subst): New.
10721         (propagate_for_debug): New.
10722         (try_combine): Skip debug insns.  Propagate removed defs into
10723         debug insns.
10724         (next_nonnote_nondebug_insn): New.
10725         (distribute_notes): Use it.  Skip debug insns.
10726         (distribute_links): Skip debug insns.
10727         * tree-outof-ssa.c (set_location_for_edge): Likewise.
10728         * resource.c (mark_target_live_regs): Likewise.
10729         * var-tracking.c: Include cselib.h and target.h.
10730         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
10731         MO_VAL_SET.
10732         (micro_operation_type_name): New.
10733         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
10734         (struct micro_operation_def): Update comments.
10735         (decl_or_value): New type.  Use instead of decls.
10736         (struct emit_note_data_def): Add vars.
10737         (struct attrs_def): Use decl_or_value.
10738         (struct variable_tracking_info_def): Add permp, flooded.
10739         (struct location_chain_def): Update comment.
10740         (struct variable_part_def): Use decl_or_value.
10741         (struct variable_def): Make var_part a variable length array.
10742         (valvar_pool): New.
10743         (scratch_regs): New.
10744         (cselib_hook_called): New.
10745         (dv_is_decl_p): New.
10746         (dv_is_value_p): New.
10747         (dv_as_decl): New.
10748         (dv_as_value): New.
10749         (dv_as_opaque): New.
10750         (dv_onepart_p): New.
10751         (dv_pool): New.
10752         (IS_DECL_CODE): New.
10753         (check_value_is_not_decl): New.
10754         (dv_from_decl): New.
10755         (dv_from_value): New.
10756         (dv_htab_hash): New.
10757         (variable_htab_hash): Use it.
10758         (variable_htab_eq): Support values.
10759         (variable_htab_free): Free from the right pool.
10760         (attrs_list_member, attrs_list_insert): Use decl_or_value.
10761         (attrs_list_union): Adjust.
10762         (attrs_list_mpdv_union): New.
10763         (tie_break_pointers): New.
10764         (canon_value_cmp): New.
10765         (unshare_variable): Return possibly-modified slot.
10766         (vars_copy_1): Adjust.
10767         (var_reg_decl_set): Adjust.  Split out of...
10768         (var_reg_set): ... this.
10769         (get_init_value): Adjust.
10770         (var_reg_delete_and_set): Adjust.
10771         (var_reg_delete): Adjust.
10772         (var_regno_delete): Adjust.
10773         (var_mem_decl_set): Split out of...
10774         (var_mem_set): ... this.
10775         (var_mem_delete_and_set): Adjust.
10776         (var_mem_delete): Adjust.
10777         (val_store): New.
10778         (val_reset): New.
10779         (val_resolve): New.
10780         (variable_union): Adjust.  Speed up merge of 1-part vars.
10781         (variable_canonicalize): Use unshared slot.
10782         (VALUED_RECURSED_INTO): New.
10783         (find_loc_in_1pdv): New.
10784         (struct dfset_merge): New.
10785         (insert_into_intersection): New.
10786         (intersect_loc_chains): New.
10787         (loc_cmp): New.
10788         (canonicalize_loc_order_check): New.
10789         (canonicalize_values_mark): New.
10790         (canonicalize_values_star): New.
10791         (variable_merge_over_cur): New.
10792         (variable_merge_over_src): New.
10793         (dataflow_set_merge): New.
10794         (dataflow_set_equiv_regs): New.
10795         (remove_duplicate_values): New.
10796         (struct dfset_post_merge): New.
10797         (variable_post_merge_new_vals): New.
10798         (variable_post_merge_perm_vals): New.
10799         (dataflow_post_merge_adjust): New.
10800         (find_mem_expr_in_1pdv): New.
10801         (dataflow_set_preserve_mem_locs): New.
10802         (dataflow_set_remove_mem_locs): New.
10803         (dataflow_set_clear_at_call): New.
10804         (onepart_variable_different_p): New.
10805         (variable_different_p): Use it.
10806         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
10807         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
10808         if not needed.
10809         (track_loc_p): Pass it true.
10810         (struct count_use_info): New.
10811         (find_use_val): New.
10812         (replace_expr_with_values): New.
10813         (log_op_type): New.
10814         (use_type): New, partially split out of...
10815         (count_uses): ... this.  Count new micro-ops.
10816         (count_uses_1): Adjust.
10817         (count_stores): Adjust.
10818         (count_with_sets): New.
10819         (VAL_NEEDS_RESOLUTION): New.
10820         (VAL_HOLDS_TRACK_EXPR): New.
10821         (VAL_EXPR_IS_COPIED): New.
10822         (VAL_EXPR_IS_CLOBBERED): New.
10823         (add_uses): Adjust.  Generate new micro-ops.
10824         (add_uses_1): Adjust.
10825         (add_stores): Generate new micro-ops.
10826         (add_with_sets): New.
10827         (find_src_status): Adjust.
10828         (find_src_set_src): Adjust.
10829         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
10830         Handle new micro-ops.  Canonicalize value equivalances.
10831         (vt_find_locations): Compute total size of hash tables for
10832         dumping.  Perform merge for var-tracking-assignments.  Don't
10833         disregard single-block loops.
10834         (dump_attrs_list): Handle decl_or_value.
10835         (dump_variable): Take variable.  Deal with decl_or_value.
10836         (dump_variable_slot): New.
10837         (dump_vars): Use it.
10838         (dump_dataflow_sets): Adjust.
10839         (set_slot_part): New, extended to support one-part variables
10840         after splitting out of...
10841         (set_variable_part): ... this.
10842         (clobber_slot_part): New, split out of...
10843         (clobber_variable_part): ... this.
10844         (delete_slot_part): New, split out of...
10845         (delete_variable_part): .... this.
10846         (check_wrap_constant): New.
10847         (vt_expand_loc_callback): New.
10848         (vt_expand_loc): New.
10849         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
10850         EMIT_NOTE_AFTER_CALL_INSN.
10851         (emit_notes_for_differences_1): Adjust.  Handle values.
10852         (emit_notes_for_differences_2): Likewise.
10853         (emit_notes_for_differences): Adjust.
10854         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
10855         Adjust.  Handle new micro-ops.
10856         (vt_add_function_parameters): Adjust.  Create and bind values.
10857         (vt_initialize): Adjust.  Initialize scratch_regs and
10858         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
10859         operations.  Move some code to count_with_sets and add_with_sets.
10860         (delete_debug_insns): New.
10861         (vt_debug_insns_local): New.
10862         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
10863         cselib.
10864         (var_tracking_main): If var-tracking-assignments is enabled
10865         but var-tracking isn't, delete debug insns and leave.  Likewise
10866         if we exceed limits or fail the stack adjustments tests, and
10867         after all var-tracking processing.
10868         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
10869         (dataflow_set): Add traversed_vars.
10870         (value_chain, const_value_chain): New typedefs.
10871         (value_chain_pool, value_chains): New variables.
10872         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
10873         add_value_chains, add_cselib_value_chains, remove_value_chain,
10874         remove_value_chains, remove_cselib_value_chains): New functions.
10875         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
10876         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
10877         static inlines.
10878         (shared_hash_find_slot_unshare, shared_hash_find_slot,
10879         shared_hash_find_slot_noinsert, shared_hash_find): Update.
10880         (dst_can_be_shared): New variable.
10881         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
10882         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
10883         different from set->vars, look up slot again instead of using the
10884         passed in slot.
10885         (dataflow_set_init): Initialize traversed_vars.
10886         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
10887         lookup if set->vars is shared.  Don't keep slot cleared before
10888         calling unshare_variable.  Unshare set->vars if needed.  Adjust
10889         unshare_variable callers.  Clear dst_can_be_shared if needed.
10890         Even ->refcount == 1 vars must be unshared if set->vars is shared
10891         and var needs to be modified.
10892         (dataflow_set_union): Set traversed_vars during canonicalization.
10893         (VALUE_CHANGED, DECL_CHANGED): Define.
10894         (set_dv_changed, dv_changed_p): New static inlines.
10895         (track_expr_p): Clear DECL_CHANGED.
10896         (dump_dataflow_sets): Set it.
10897         (variable_was_changed): Call set_dv_changed.
10898         (emit_note_insn_var_location): Likewise.
10899         (changed_variables_stack): New variable.
10900         (check_changed_vars_1, check_changed_vars_2): New functions.
10901         (emit_notes_for_changes): Do nothing if changed_variables is
10902         empty.  Traverse changed_variables with check_changed_vars_1,
10903         call check_changed_vars_2 on each changed_variables_stack entry.
10904         (emit_notes_in_bb): Add SET argument.  Just clear it at the
10905         beginning, use it instead of local &set, don't destroy it at the end.
10906         (vt_emit_notes): Call dataflow_set_clear early on all
10907         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
10908         computed set, dataflow_set_clear also VTI(bb)->in when we are
10909         done with the basic block.  Initialize changed_variables_stack,
10910         free it afterwards.  If ENABLE_CHECKING verify that after noting
10911         differences to an empty set value_chains hash table is empty.
10912         (vt_initialize): Initialize value_chains and value_chain_pool.
10913         (vt_finalize): Delete value_chains htab, free value_chain_pool.
10914         (variable_tracking_main): Call dump_dataflow_sets before calling
10915         vt_emit_notes, not after it.
10916         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
10917         (propagate_var_def_into_debug_stmts): Declare.
10918         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
10919         (df_set_note): Reject debug insns.
10920         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
10921         add notes to debug insns.
10922         (df_note_bb_compute): Adjust.  Likewise.
10923         (df_simulate_uses): Skip debug insns.
10924         (df_simulate_initialize_backwards): Likewise.
10925         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
10926         (subst_stack_regs_pat): Reject debug insns.
10927         (convert_regs_1): Handle debug insns.
10928         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
10929         (print-rtl.o): Depend on cselib.h.
10930         (cselib.o): Depend on TREE_PASS_H.
10931         (var-tracking.o): Depend on cselib.h and TARGET_H.
10932         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
10933         (init_ready_list): Skip boundary debug insns.
10934         (add_branch_dependences): Skip debug insns.
10935         (free_block_dependencies): Check for blocks with only debug insns.
10936         (compute_priorities): Likewise.
10937         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
10938         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
10939         all callers.
10940         (gimple_build_debug_bind_stat): New.
10941         (empty_body_p): Skip debug stmts.
10942         (gimple_has_side_effects): Likewise.
10943         (gimple_rhs_has_side_effects): Likewise.
10944         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
10945         (gimple_build_debug_bind_stat): Declare.
10946         (gimple_build_debug_bind): Define.
10947         (is_gimple_debug): New.
10948         (gimple_debug_bind_p): New.
10949         (gimple_debug_bind_get_var): New.
10950         (gimple_debug_bind_get_value): New.
10951         (gimple_debug_bind_get_value_ptr): New.
10952         (gimple_debug_bind_set_var): New.
10953         (gimple_debug_bind_set_value): New.
10954         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
10955         (gimple_debug_bind_reset_value): New.
10956         (gimple_debug_bind_has_value_p): New.
10957         (gsi_next_nondebug): New.
10958         (gsi_prev_nondebug): New.
10959         (gsi_start_nondebug_bb): New.
10960         (gsi_last_nondebug_bb): New.
10961         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
10962         (print_insn): Handle DEBUG_INSN.
10963         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
10964         of first insn prevail.
10965         (first_stmt): Skip debug stmts.
10966         (first_non_label_stmt): Likewise.
10967         (last_stmt): Likewise.
10968         (has_zero_uses_1): New.
10969         (single_imm_use_1): New.
10970         (verify_gimple_debug): New.
10971         (verify_types_in_gimple_stmt): Handle debug stmts.
10972         (verify_stmt): Likewise.
10973         (debug_loop_num): Skip debug stmts.
10974         (remove_edge_and_dominated_blocks): Remove dominators last.
10975         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
10976         (linearize_expr): Likewise.
10977         * config/i386/i386.c (ix86_delegitimize_address): Call
10978         default implementation.
10979         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
10980         (group_barrier_needed): Skip debug insns.
10981         (emit_insn_group_barriers): Likewise.
10982         (emit_all_insn_group_barriers): Likewise.
10983         (ia64_variable_issue): Handle debug insns.
10984         (ia64_dfa_new_cycle): Likewise.
10985         (final_emit_insn_group_barriers): Skip debug insns.
10986         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
10987         def cfa without frame.
10988         (process_set): Likewise.
10989         (process_for_unwind_directive): Pass frame on.
10990         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10991         (rs6000_delegitimize_address): New.
10992         (rs6000_debug_adjust_cost): Handle debug insns.
10993         (is_microcoded_insn): Likewise.
10994         (is_cracked_insn): Likewise.
10995         (is_nonpipeline_insn): Likewise.
10996         (insn_must_be_first_in_group): Likewise.
10997         (insn_must_be_last_in_group): Likewise.
10998         (force_new_group): Likewise.
10999         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
11000         contains only debug insns.
11001         (rtl_merge_blocks): Skip debug insns.
11002         (purge_dead_edges): Likewise.
11003         (rtl_block_ends_with_call_p): Skip debug insns.
11004         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
11005         (mark_reg_dependencies): Skip debug insns.
11006         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
11007         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
11008         * tree-ssa-threadedge.c
11009         (record_temporary_equivalences_from_stmts): Skip debug stmts.
11010         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
11011         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
11012         (copyprop_hardreg_forward_1): Handle debug insns.
11013         * reload1.c (reload): Skip debug insns.  Replace unassigned
11014         pseudos in debug insns with their equivalences.
11015         (eliminate_regs_in_insn): Skip debug insns.
11016         (emit_input_reload_insns): Skip debug insns at first, adjust
11017         them later.
11018         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
11019         (get_indirect_ref_operands): Pass opf_no_vops on.
11020         (get_expr_operands): Likewise.  Skip debug stmts.
11021         (parse_ssa_operands): Scan debug insns with opf_no_vops.
11023 2009-09-01  Richard Henderson  <rth@redhat.com>
11025         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
11026         stmt_ends_pp_p statements at least once.
11027         * tree-vrp.c (vrp_initialize): Likewise.
11028         (vrp_visit_stmt): Be prepared for non-interesting stmts.
11030 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
11032         PR bootstrap/41205
11033         Fix AIX bootstrap after PR debug/30161
11034         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
11035         that is a GNU extension.
11036         (tmpl_value_parm_die_table): Move the definition of this global
11037         outside #ifdef DWARF2_DEBUGGING_INFO region.
11039 2009-09-01  Richard Guenther  <rguenther@suse.de>
11041         * tree.c (tree_expr_size): New function.
11042         * tree.h (tree_expr_size): Declare.
11043         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
11044         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
11045         * langhooks.c (lhd_expr_size): Remove.
11046         * langhooks.h (struct lang_hooks): Remove expr_size.
11047         * explow.c (expr_size): Use tree_expr_size.
11048         (int_expr_size): Likewise.
11049         * langhooks-def.h (lhd_expr_size): Remove.
11050         (LANG_HOOKS_EXPR_SIZE): Likewise.
11051         (LANG_HOOKS_INITIALIZER): Adjust.
11053 2009-09-01  Richard Guenther  <rguenther@suse.de>
11055         * tree-flow.h (mark_addressable): Move declaration ...
11056         * tree.h (mark_addressable): ... here.
11057         * stmt.c (expand_asm_operands): Use mark_addressable, not
11058         lang_hooks.mark_addressable.
11059         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
11060         LANG_HOOKS_MARK_ADDRESSABLE.
11061         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
11062         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
11064 2009-08-31  Chris Demetriou  <cgd@google.com>
11066         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
11067         vectorize if not TARGET_SSE2.
11069 2009-08-31  DJ Delorie  <dj@redhat.com>
11071         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
11072         registers if no coprocessor is enabled.
11074 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
11076         PR debug/30161
11077         * cgraph.h (cgraph_get_node): Declare ...
11078         * cgraph.c (cgraph_get_node): ... new function.
11079         * dwarf2out.c (gen_generic_params_dies,
11080         generic_parameter_die, tree_add_const_value_attribute_for_decl,
11081         make_ith_pack_parameter_name,
11082         append_entry_to_tmpl_value_parm_die_table,
11083         gen_remaining_tmpl_value_param_die_attribute): New functions.
11084         (gen_subprogram_die): Generate debug info for template parameters
11085         if debug info level is higher than DINFO_LEVEL_TERSE.
11086         Use tree_add_const_value_attribute_for_decl instead of
11087         tree_add_const_value_attribute.
11088         (gen_const_die): Use tree_add_const_value_attribute_for_decl
11089         instead of tree_add_const_value_attribute.
11090         (gen_struct_or_union_type_die): Generate debug
11091         info for template parameters if debug info level is higher than
11092         DINFO_LEVEL_TERSE.
11093         (tree_add_const_value_attribute): Handle integral and pointer
11094         constants. Update comment.
11095         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
11096         (dwarf_attr_name): Support DW_AT_GNU_template_name.
11097         (reference_to_unused): Fix thinko. Remove redundant predicates from
11098         tests.
11099         (tree_add_const_value_attribute): Make this work for constant
11100         expressions only.
11101         tree_add_const_value_attribute_for_decl is to be used for variable
11102         DECLs now.
11103         (add_location_or_const_value_attribute): Use
11104         tree_add_const_value_attribute_for_decl now.
11105         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
11106         DW_TAG_template_value_param DIEs after function DIEs have been
11107         emitted.
11108         * langhooks.h (lang_hooks_for_types): Add
11109         get_argument_pack_elems.
11110         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
11111         (lang_hooks): Added get_innermost_generic_parms,
11112         get_innermost_generic_args.
11113         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
11114         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
11115         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
11116         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
11118 2009-08-31  DJ Delorie  <dj@redhat.com>
11120         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
11121         it once we start generating the prologue or epilogue.
11122         (mep_call_saves_register): If the frame is locked, re-use
11123         cached values.
11124         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
11125         (mep_expand_prologue): Call it.
11126         (mep_expand_epilogue): Likewise.
11127         (mep_start_function): Use the same logic as mep_expand_prologue.
11128         (mep_pass_by_reference): Make logic more readable.
11129         (mep_return_in_memory): Zero-sized objects are passed in memory.
11130         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
11132 2009-08-31  Richard Guenther  <rguenther@suse.de>
11134         * builtins.c (fold_builtin_memory_op): Use the alias oracle
11135         to query if the memory regions for memmove overlap.
11136         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11137         asserts on pointers, instead deal with odd trees.
11138         (ptr_derefs_may_alias_p): Likewise.
11139         (refs_may_alias_p_1): Constructor bases also never alias.
11141 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
11143         * doc/install.texi (Final install): Adjust reference on where to
11144         order printed manuals.
11146 2009-08-30  Olivier Hainque  <hainque@adacore.com>
11148         * dwarf2out.c (switch_to_frame_table_section): Move
11149         definition prior to first use.
11151 2009-08-30  Richard Guenther  <rguenther@suse.de>
11153         PR tree-optimization/41186
11154         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
11155         (ao_ref_init_from_ptr_and_size): New function.
11156         (ref_maybe_used_by_call_p_1): Be more precise tracking
11157         used ranges for builtin functions.
11158         (ref_maybe_used_by_call_p): Adjust.
11159         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
11160         ranges for builtin functions.
11161         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
11163 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
11165         PR target/41081
11166         * fwprop.c (get_reg_use_in): Delete.
11167         (free_load_extend): New function.
11168         (forward_propagate_subreg): Use it.
11170 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11172         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
11174 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
11176         PR/41184
11177         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
11178         padding.
11180 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
11182         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
11183         fini or fini_array section.
11185 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11187         * graphite-dependences.c (graphite_legal_transform_bb): Call
11188         pbb_remove_duplicate_pdrs.
11189         * graphite-poly.c (can_collapse_pdr): Removed.
11190         (pdr_find_duplicate): Removed.
11191         (can_collapse_pdrs): New.
11192         (pbb_remove_duplicate_pdrs): New.
11193         (new_poly_dr): Do not look for duplicates.
11194         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
11195         (PBB_PDR_DUPLICATES_REMOVED): New.
11196         (pbb_remove_duplicate_pdrs): Declared.
11198 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11200         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
11201         the strides by multiplying by PDR_NB_REFS.
11202         * graphite-poly.c (can_collapse_pdr): New.
11203         (pdr_find_duplicate): New.
11204         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
11205         Initialize PDR_NB_REFS.
11206         * graphite-poly.h (struct poly_dr): Add field nb_refs.
11207         (PDR_NB_REFS): New.
11208         (new_poly_dr): Number of subscripts is a graphite_dim_t.
11210 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11212         PR middle-end/40965
11213         * graphite-poly.c (apply_poly_transforms): Remove legality test before
11214         any transform.
11216 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11218         * graphite-dependences.c (pddr_original_scattering): Return NULL
11219         for read-read dependence relations.
11220         * graphite-poly.h (enum poly_dr_type): Fix comment.
11221         (pdr_read_p): New.
11222         (pdr_write_p): New.
11223         (pdr_may_write_p): New.
11225 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11227         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
11228         (struct poly_dr): Same.
11229         (new_poly_dr): Same.
11230         * graphite-poly.c (new_poly_dr): Same.
11231         * graphite-dependences.c (dot_deps): Disable call to system.
11233 2009-08-28  Cary Coutant  <ccoutant@google.com>
11235         PR debug/41063
11236         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
11237         struct/union/enum types local to a function.
11239 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11240             Sebastian Pop  <sebastian.pop@amd.com>
11242         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
11243         pbb_strip_mine_time_depth.  Changed the implementation so that
11244         transformation is expressed as a transformation on
11245         time (scatttering) dimensions.  Also, ensures that the 2d+1
11246         scheduling format is preserved.
11247         (pbb_strip_mine_profitable_p): Profitability is based on the
11248         iteration number of a given time (scattering) dimension,
11249         and not on a original loop depth dimension.
11250         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
11251         (pbb_do_strip_mine): Call psct_dynamic_dim.
11252         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
11253         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
11254         (pbb_nb_dynamic_scattering_transform): New.
11255         (psct_dynamic_dim): New.
11257 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
11259         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11260         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
11261         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
11262         * graphite-interchange.c (build_linearized_memory_access): Same.
11263         (memory_stride_in_loop): Same.
11265 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11267         * graphite-dependences.c (pddr_original_scattering): New.
11268         (graphite_legal_transform_dr): Call pddr_original_scattering.
11269         (dot_deps_1): New.
11270         (dot_deps): New.
11271         * graphite-dependences.h (dot_deps): Declared.
11272         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
11273         (print_pdr): Print PDR_ID.
11274         * graphite-poly.h (struct poly_dr): Add field id.
11275         (PDR_ID): New.
11276         (pbb_index): New.
11277         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
11279 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11281         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
11282         not delete the original dependence relation.
11284 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11286         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
11287         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
11288         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
11289         (free_poly_ddr): New.
11290         (pddr_is_empty): New.
11291         (dependence_polyhedron_1): Now returns a poly_ddr_p.
11292         (dependence_polyhedron): Same.  Remove useless gcc_assert.
11293         Remove fprintfs.
11294         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
11295         (graphite_carried_dependence_level_k): Call pddr_is_empty.
11296         * graphite-dependences.h (enum poly_dependence_kind): New.
11297         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
11298         (PDRP_SOURCE): Renamed PDDR_SOURCE.
11299         (PDRP_SINK): Renamed PDDR_SINK.
11300         (PDRP_DDP): Renamed PDDR_DDP.
11301         (PDDR_KIND): New.
11302         (free_poly_ddr): Declared.
11303         * graphite-poly.c (new_scop): Use the new hash function names.
11304         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
11305         into original_pddrs.
11306         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
11308 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11310         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
11311         bounds with LT_EXPR to make niter analysis more precise on code
11312         generated by Graphite.
11314 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
11316         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
11317         (graphite_legal_transform_bb): Same.
11318         (poly_drs_may_alias_p): Same.
11320 2009-08-28  Richard Guenther  <rguenther@suse.de>
11322         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
11324 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11326         * config/i386/netware.c: Include langhooks.h.
11327         (i386_nlm_encode_section_info): Simplify.
11328         (netware_override_options): Delete.
11329         * config/i386/netware.h (netware_override_options): Delete
11330         declaration.
11331         (OVERRIDE_OPTIONS): Delete definition.
11332         (SUBTARGET_OVERRIDE_OPTIONS): Define.
11333         (ASM_COMMENT_START): Define.
11334         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
11336 2009-08-28  Jan Beulich  <jbeulich@novell.com>
11338         * configure.ac: For in-tree ld, do a plain version check to
11339         determine whether comdat groups are supported.
11340         * configure: Regenerate.
11342 2009-08-28  Olivier Hainque  <hainque@adacore.com>
11344         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
11345         always defined.  Reflect definition or absence of such for
11346         COLLECT_EXPORT_LIST.  Readability helper.
11347         (scanfilter): New enum, to help control what symbols
11348         are to be considered or ignored by scan_prog_file.
11349         (enum pass): Rename as "scanpass", moved together with scanfilter
11350         prior to scan_prog_file's prototype.
11351         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
11352         Group prototype with the scanpass/scanfilter definitions, factorize
11353         head comments for the several implementations at the prototype.
11354         (main): Reorganize the first pass link control to let AIX
11355         drag only the needed frame tables in executables.  Prevent
11356         frame tables collection during the scan aimed at static ctors.
11357         Pre-link and scan for frame tables later to compensate.
11358         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
11359         A C statement to issue assembly directives that create a reference
11360         to the given DWARF table identifier label from the current function
11361         section.
11362         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
11363         to differentiate first time section entry.  Only emit a .data
11364         tables start identifier label the first time around.
11365         (switch_to_frame_table_section): New function.  Helper for
11366         output_call_frame_info to switch possibly BACK into the eh_frame
11367         or the debug_frame section depending on FOR_EH.
11368         (output_call_frame_info): Use helper to first enter the proper
11369         frame section.
11370         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
11371         emit a link to the frame table start label from each function
11372         section.
11373         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
11374         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
11375         * config/rs6000/rs6000-protos.h: Declare it.
11376         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
11378 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11380         * config/sh/sh.c (split_branches): Check the result of
11381         next_active_insn.
11383 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
11385         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
11386         using -pthread -fopenmp
11388 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
11390         * doc/service.texi (service directory): Update URL.
11392 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
11394         PR rtl-optimization/40861
11395         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
11396         extract word from a multi-word subreg for negative byte positions.
11398 2009-08-27  Tristan Gingold  <gingold@adacore.com>
11399             Douglas B Rupp  <rupp@gnat.com>
11401         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
11402         (SECTION_VMS_OVERLAY): Define.
11403         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
11404         attribute.
11405         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
11406         for common_object.
11407         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
11408         common_object declarations.
11409         (ia64_section_type_flags): Set section flag for common_object.
11410         * config/ia64/ia64-protos.h
11411         (ia64_vms_output_aligned_decl_common): Declare.
11412         (ia64_vms_elf_asm_named_section): Declare.
11414 2009-08-27  Michael Matz  <matz@suse.de>
11416         * expr.c (expand_expr_real_2): New function taking exploded
11417         unary or binary expression, split out from ...
11418         (expand_expr_real_1): ... here.  Move over all unary/binary
11419         switch parts to above function, in particular these codes:
11420         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
11421         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
11422         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
11423         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
11424         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
11425         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
11426         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
11427         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
11428         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
11429         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
11430         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
11431         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
11432         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
11433         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
11434         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
11435         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
11436         VEC_PACK_FIX_TRUNC_EXPR.
11437         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
11438         full expression.
11440 2009-08-27  Richard Guenther  <rguenther@suse.de>
11442         * gengtype.c (main): Handle uint64_t.
11443         * ipa-utils.c (get_base_var): Indent properly.
11444         * tree-ssa-live.c (debug_scope_block): New function.
11445         * tree-flow.h (debug_scope_block): Declare.
11446         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
11447         * basic-block.h (enum profile_status): Rename to
11448         enum profile_status_d.
11449         (x_profile_status): Adjust type.
11451 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
11453         PR debug/41170
11454         * dwarf2out.c (get_context_die): Declare this static function.
11455         (gen_type_die_with_usage): Make sure a DIE is a generated for
11456         the context of a typedef.
11458 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
11460         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
11461         switch.
11463 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11465         * config/mips/mips-protos.h (mips_output_sync): Declare.
11466         (mips_sync_loop_insns): Likewise.
11467         (mips_output_sync_loop): Replace first two parameters with an rtx.
11468         * config/mips/mips.c (mips_multi_member): New structure.
11469         (mips_multi_members): New variable.
11470         (mips_multi_start): New function.
11471         (mips_multi_add): Likewise.
11472         (mips_multi_add_insn): Likewise.
11473         (mips_multi_add_label): Likewise.
11474         (mips_multi_last_index): Likewise.
11475         (mips_multi_copy_insn): Likewise.
11476         (mips_multi_set_operand): Likewise.
11477         (mips_multi_write): Likewise.
11478         (mips_print_operand_punctuation): Remove '%|' and '%-'.
11479         (mips_init_print_operand_punct): Update accordingly.
11480         (mips_start_ll_sc_sync_block): New function.
11481         (mips_end_ll_sc_sync_block): Likewise.
11482         (mips_output_sync): Likewise.
11483         (mips_sync_insn1_template): Likewise.
11484         (mips_sync_insn2_template): Likewise.
11485         (mips_get_sync_operand): Likewise.
11486         (mips_process_sync_loop): Likewise.
11487         (mips_output_sync_loop): Use mips_process_sync_loop.
11488         (mips_sync_loop_insns): New function.
11489         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
11490         (MIPS_COMPARE_AND_SWAP_12): Likewise.
11491         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
11492         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
11493         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
11494         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
11495         (MIPS_SYNC_OLD_OP_12): Likewise.
11496         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
11497         (MIPS_SYNC_NEW_OP_12): Likewise.
11498         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
11499         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
11500         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
11501         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
11502         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
11503         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
11504         * config/mips/mips.md (sync_mem): New attribute.
11505         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
11506         (sync_exclusive_mask, sync_required_oldval): Likewise.
11507         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
11508         (sync_release_barrier): Likewise.
11509         (length): Handle sync loops.
11510         (sync): Use mips_output_sync.
11511         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
11512         (sync_compare_and_swap<mode>): Set the new sync_* attributes
11513         and use mips_output_sync_loop.
11514         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
11515         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
11516         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
11517         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
11518         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
11519         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
11520         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
11521         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
11522         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
11524 2009-08-26  Richard Guenther  <rguenther@suse.de>
11526         PR middle-end/41163
11527         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
11528         the types to not match.
11529         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
11530         verification.
11531         * tree-ssa.c (useless_type_conversion_p): Conversions to
11532         pointers to unprototyped functions are useless.
11534 2009-08-26  Richard Guenther  <rguenther@suse.de>
11536         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
11537         whole-program condition, prepare to be called for non-globals.
11538         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
11539         params build a representative with known type and track its fields.
11541 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
11543         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
11544         clearing by a taken branch.
11545         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
11546         effectively after bbro pass.
11547         (sync_nand<mode>): Ditto.
11548         (sync_old_<fetchop_name><mode>): Ditto.
11549         (sync_old_nand<mode>): Ditto.
11550         (sync_new_<fetchop_name><mode>): Dito.
11551         (sync_new_nand<mode>): Ditto.
11552         (sync_compare_and_swap<mode>_1): Ditto.
11553         (*sync_compare_and_swap<mode>): Ditto.
11554         (sync_lock_test_and_set<mode>_1): Ditto.
11555         ("sync_lock_test_and_set<mode>): Ditto.
11557 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
11559         * hwint.h (HOST_LONG_FORMAT): New macro
11560         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
11561         Use HOST_PTR_PRINTF.
11562         * system.h (HOST_PTR_PRINTF): Resurrect old macro
11563         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
11564         (HOST_PTR_PRINTF): Document.
11566 2009-08-25 Jan Hubicka  <jh@suse.cz>
11568         * config/i386/bmmintrin.h: Replace by #error.
11570         Revert:
11571         Michael Meissner  <michael.meissner@amd.com>
11572         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11573         Tony Linthicum  <tony.linthicum@amd.com>
11575         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
11576         (TARGET_ROUND): New macro for the round/ptest instructions which
11577         are shared between SSE4.1 and SSE5.
11578         (OPTION_MASK_ISA_ROUND): Ditto.
11579         (OPTION_ISA_ROUND): Ditto.
11580         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
11581         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
11583         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
11584         (-mfused-madd): New switch to give users control over whether the
11585         compiler optimizes to use the multiply/add SSE5 instructions.
11587         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
11588         (ix86_handle_option): Turn off 3dnow if -msse5.
11589         (override_options): Add SSE5 support.
11590         (print_operand): %Y prints comparison codes for SSE5 com/pcom
11591         instructions.
11592         (ix86_expand_sse_movcc): Add SSE5 support.
11593         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
11594         vector type to the next largest size.
11595         (ix86_expand_sse5_pack): New function to use pperm to pack a
11596         vector type to the next smallest size.
11597         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
11598         (IX86_BUILTIN_FMADDSD): Ditto.
11599         (IX86_BUILTIN_FMADDPS): Ditto.
11600         (IX86_BUILTIN_FMADDPD): Ditto.
11601         (IX86_BUILTIN_FMSUBSS): Ditto.
11602         (IX86_BUILTIN_FMSUBSD): Ditto.
11603         (IX86_BUILTIN_FMSUBPS): Ditto.
11604         (IX86_BUILTIN_FMSUBPD): Ditto.
11605         (IX86_BUILTIN_FNMADDSS): Ditto.
11606         (IX86_BUILTIN_FNMADDSD): Ditto.
11607         (IX86_BUILTIN_FNMADDPS): Ditto.
11608         (IX86_BUILTIN_FNMADDPD): Ditto.
11609         (IX86_BUILTIN_FNMSUBSS): Ditto.
11610         (IX86_BUILTIN_FNMSUBSD): Ditto.
11611         (IX86_BUILTIN_FNMSUBPS): Ditto.
11612         (IX86_BUILTIN_FNMSUBPD): Ditto.
11613         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
11614         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
11615         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
11616         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
11617         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
11618         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
11619         (IX86_BUILTIN_PPERM): Ditto.
11620         (IX86_BUILTIN_PERMPS): Ditto.
11621         (IX86_BUILTIN_PERMPD): Ditto.
11622         (IX86_BUILTIN_PMACSSWW): Ditto.
11623         (IX86_BUILTIN_PMACSWW): Ditto.
11624         (IX86_BUILTIN_PMACSSWD): Ditto.
11625         (IX86_BUILTIN_PMACSWD): Ditto.
11626         (IX86_BUILTIN_PMACSSDD): Ditto.
11627         (IX86_BUILTIN_PMACSDD): Ditto.
11628         (IX86_BUILTIN_PMACSSDQL): Ditto.
11629         (IX86_BUILTIN_PMACSSDQH): Ditto.
11630         (IX86_BUILTIN_PMACSDQL): Ditto.
11631         (IX86_BUILTIN_PMACSDQH): Ditto.
11632         (IX86_BUILTIN_PMADCSSWD): Ditto.
11633         (IX86_BUILTIN_PMADCSWD): Ditto.
11634         (IX86_BUILTIN_PHADDBW): Ditto.
11635         (IX86_BUILTIN_PHADDBD): Ditto.
11636         (IX86_BUILTIN_PHADDBQ): Ditto.
11637         (IX86_BUILTIN_PHADDWD): Ditto.
11638         (IX86_BUILTIN_PHADDWQ): Ditto.
11639         (IX86_BUILTIN_PHADDDQ): Ditto.
11640         (IX86_BUILTIN_PHADDUBW): Ditto.
11641         (IX86_BUILTIN_PHADDUBD): Ditto.
11642         (IX86_BUILTIN_PHADDUBQ): Ditto.
11643         (IX86_BUILTIN_PHADDUWD): Ditto.
11644         (IX86_BUILTIN_PHADDUWQ): Ditto.
11645         (IX86_BUILTIN_PHADDUDQ): Ditto.
11646         (IX86_BUILTIN_PHSUBBW): Ditto.
11647         (IX86_BUILTIN_PHSUBWD): Ditto.
11648         (IX86_BUILTIN_PHSUBDQ): Ditto.
11649         (IX86_BUILTIN_PROTB): Ditto.
11650         (IX86_BUILTIN_PROTW): Ditto.
11651         (IX86_BUILTIN_PROTD): Ditto.
11652         (IX86_BUILTIN_PROTQ): Ditto.
11653         (IX86_BUILTIN_PROTB_IMM): Ditto.
11654         (IX86_BUILTIN_PROTW_IMM): Ditto.
11655         (IX86_BUILTIN_PROTD_IMM): Ditto.
11656         (IX86_BUILTIN_PROTQ_IMM): Ditto.
11657         (IX86_BUILTIN_PSHLB): Ditto.
11658         (IX86_BUILTIN_PSHLW): Ditto.
11659         (IX86_BUILTIN_PSHLD): Ditto.
11660         (IX86_BUILTIN_PSHLQ): Ditto.
11661         (IX86_BUILTIN_PSHAB): Ditto.
11662         (IX86_BUILTIN_PSHAW): Ditto.
11663         (IX86_BUILTIN_PSHAD): Ditto.
11664         (IX86_BUILTIN_PSHAQ): Ditto.
11665         (IX86_BUILTIN_FRCZSS): Ditto.
11666         (IX86_BUILTIN_FRCZSD): Ditto.
11667         (IX86_BUILTIN_FRCZPS): Ditto.
11668         (IX86_BUILTIN_FRCZPD): Ditto.
11669         (IX86_BUILTIN_CVTPH2PS): Ditto.
11670         (IX86_BUILTIN_CVTPS2PH): Ditto.
11671         (IX86_BUILTIN_COMEQSS): Ditto.
11672         (IX86_BUILTIN_COMNESS): Ditto.
11673         (IX86_BUILTIN_COMLTSS): Ditto.
11674         (IX86_BUILTIN_COMLESS): Ditto.
11675         (IX86_BUILTIN_COMGTSS): Ditto.
11676         (IX86_BUILTIN_COMGESS): Ditto.
11677         (IX86_BUILTIN_COMUEQSS): Ditto.
11678         (IX86_BUILTIN_COMUNESS): Ditto.
11679         (IX86_BUILTIN_COMULTSS): Ditto.
11680         (IX86_BUILTIN_COMULESS): Ditto.
11681         (IX86_BUILTIN_COMUGTSS): Ditto.
11682         (IX86_BUILTIN_COMUGESS): Ditto.
11683         (IX86_BUILTIN_COMORDSS): Ditto.
11684         (IX86_BUILTIN_COMUNORDSS): Ditto.
11685         (IX86_BUILTIN_COMFALSESS): Ditto.
11686         (IX86_BUILTIN_COMTRUESS): Ditto.
11687         (IX86_BUILTIN_COMEQSD): Ditto.
11688         (IX86_BUILTIN_COMNESD): Ditto.
11689         (IX86_BUILTIN_COMLTSD): Ditto.
11690         (IX86_BUILTIN_COMLESD): Ditto.
11691         (IX86_BUILTIN_COMGTSD): Ditto.
11692         (IX86_BUILTIN_COMGESD): Ditto.
11693         (IX86_BUILTIN_COMUEQSD): Ditto.
11694         (IX86_BUILTIN_COMUNESD): Ditto.
11695         (IX86_BUILTIN_COMULTSD): Ditto.
11696         (IX86_BUILTIN_COMULESD): Ditto.
11697         (IX86_BUILTIN_COMUGTSD): Ditto.
11698         (IX86_BUILTIN_COMUGESD): Ditto.
11699         (IX86_BUILTIN_COMORDSD): Ditto.
11700         (IX86_BUILTIN_COMUNORDSD): Ditto.
11701         (IX86_BUILTIN_COMFALSESD): Ditto.
11702         (IX86_BUILTIN_COMTRUESD): Ditto.
11703         (IX86_BUILTIN_COMEQPS): Ditto.
11704         (IX86_BUILTIN_COMNEPS): Ditto.
11705         (IX86_BUILTIN_COMLTPS): Ditto.
11706         (IX86_BUILTIN_COMLEPS): Ditto.
11707         (IX86_BUILTIN_COMGTPS): Ditto.
11708         (IX86_BUILTIN_COMGEPS): Ditto.
11709         (IX86_BUILTIN_COMUEQPS): Ditto.
11710         (IX86_BUILTIN_COMUNEPS): Ditto.
11711         (IX86_BUILTIN_COMULTPS): Ditto.
11712         (IX86_BUILTIN_COMULEPS): Ditto.
11713         (IX86_BUILTIN_COMUGTPS): Ditto.
11714         (IX86_BUILTIN_COMUGEPS): Ditto.
11715         (IX86_BUILTIN_COMORDPS): Ditto.
11716         (IX86_BUILTIN_COMUNORDPS): Ditto.
11717         (IX86_BUILTIN_COMFALSEPS): Ditto.
11718         (IX86_BUILTIN_COMTRUEPS): Ditto.
11719         (IX86_BUILTIN_COMEQPD): Ditto.
11720         (IX86_BUILTIN_COMNEPD): Ditto.
11721         (IX86_BUILTIN_COMLTPD): Ditto.
11722         (IX86_BUILTIN_COMLEPD): Ditto.
11723         (IX86_BUILTIN_COMGTPD): Ditto.
11724         (IX86_BUILTIN_COMGEPD): Ditto.
11725         (IX86_BUILTIN_COMUEQPD): Ditto.
11726         (IX86_BUILTIN_COMUNEPD): Ditto.
11727         (IX86_BUILTIN_COMULTPD): Ditto.
11728         (IX86_BUILTIN_COMULEPD): Ditto.
11729         (IX86_BUILTIN_COMUGTPD): Ditto.
11730         (IX86_BUILTIN_COMUGEPD): Ditto.
11731         (IX86_BUILTIN_COMORDPD): Ditto.
11732         (IX86_BUILTIN_COMUNORDPD): Ditto.
11733         (IX86_BUILTIN_COMFALSEPD): Ditto.
11734         (IX86_BUILTIN_COMTRUEPD): Ditto.
11735         (IX86_BUILTIN_PCOMEQUB): Ditto.
11736         (IX86_BUILTIN_PCOMNEUB): Ditto.
11737         (IX86_BUILTIN_PCOMLTUB): Ditto.
11738         (IX86_BUILTIN_PCOMLEUB): Ditto.
11739         (IX86_BUILTIN_PCOMGTUB): Ditto.
11740         (IX86_BUILTIN_PCOMGEUB): Ditto.
11741         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
11742         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
11743         (IX86_BUILTIN_PCOMEQUW): Ditto.
11744         (IX86_BUILTIN_PCOMNEUW): Ditto.
11745         (IX86_BUILTIN_PCOMLTUW): Ditto.
11746         (IX86_BUILTIN_PCOMLEUW): Ditto.
11747         (IX86_BUILTIN_PCOMGTUW): Ditto.
11748         (IX86_BUILTIN_PCOMGEUW): Ditto.
11749         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
11750         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
11751         (IX86_BUILTIN_PCOMEQUD): Ditto.
11752         (IX86_BUILTIN_PCOMNEUD): Ditto.
11753         (IX86_BUILTIN_PCOMLTUD): Ditto.
11754         (IX86_BUILTIN_PCOMLEUD): Ditto.
11755         (IX86_BUILTIN_PCOMGTUD): Ditto.
11756         (IX86_BUILTIN_PCOMGEUD): Ditto.
11757         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
11758         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
11759         (IX86_BUILTIN_PCOMEQUQ): Ditto.
11760         (IX86_BUILTIN_PCOMNEUQ): Ditto.
11761         (IX86_BUILTIN_PCOMLTUQ): Ditto.
11762         (IX86_BUILTIN_PCOMLEUQ): Ditto.
11763         (IX86_BUILTIN_PCOMGTUQ): Ditto.
11764         (IX86_BUILTIN_PCOMGEUQ): Ditto.
11765         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
11766         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
11767         (IX86_BUILTIN_PCOMEQB): Ditto.
11768         (IX86_BUILTIN_PCOMNEB): Ditto.
11769         (IX86_BUILTIN_PCOMLTB): Ditto.
11770         (IX86_BUILTIN_PCOMLEB): Ditto.
11771         (IX86_BUILTIN_PCOMGTB): Ditto.
11772         (IX86_BUILTIN_PCOMGEB): Ditto.
11773         (IX86_BUILTIN_PCOMFALSEB): Ditto.
11774         (IX86_BUILTIN_PCOMTRUEB): Ditto.
11775         (IX86_BUILTIN_PCOMEQW): Ditto.
11776         (IX86_BUILTIN_PCOMNEW): Ditto.
11777         (IX86_BUILTIN_PCOMLTW): Ditto.
11778         (IX86_BUILTIN_PCOMLEW): Ditto.
11779         (IX86_BUILTIN_PCOMGTW): Ditto.
11780         (IX86_BUILTIN_PCOMGEW): Ditto.
11781         (IX86_BUILTIN_PCOMFALSEW): Ditto.
11782         (IX86_BUILTIN_PCOMTRUEW): Ditto.
11783         (IX86_BUILTIN_PCOMEQD): Ditto.
11784         (IX86_BUILTIN_PCOMNED): Ditto.
11785         (IX86_BUILTIN_PCOMLTD): Ditto.
11786         (IX86_BUILTIN_PCOMLED): Ditto.
11787         (IX86_BUILTIN_PCOMGTD): Ditto.
11788         (IX86_BUILTIN_PCOMGED): Ditto.
11789         (IX86_BUILTIN_PCOMFALSED): Ditto.
11790         (IX86_BUILTIN_PCOMTRUED): Ditto.
11791         (IX86_BUILTIN_PCOMEQQ): Ditto.
11792         (IX86_BUILTIN_PCOMNEQ): Ditto.
11793         (IX86_BUILTIN_PCOMLTQ): Ditto.
11794         (IX86_BUILTIN_PCOMLEQ): Ditto.
11795         (IX86_BUILTIN_PCOMGTQ): Ditto.
11796         (IX86_BUILTIN_PCOMGEQ): Ditto.
11797         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
11798         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
11799         (enum multi_arg_type): New enum for describing the various SSE5
11800         intrinsic argument types.
11801         (bdesc_multi_arg): New table for SSE5 intrinsics.
11802         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
11803         (ix86_expand_multi_arg_builtin): New function for creating SSE5
11804         intrinsics.
11805         (ix86_expand_builtin): Add SSE5 intrinsic support.
11806         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
11807         operand instructions.
11808         (ix86_expand_sse5_multiple_memory): New function to split the
11809         second memory reference from SSE5 instructions.
11810         (type_has_variadic_args_p): Delete in favor of stdarg_p.
11811         (ix86_return_pops_args): Use stdarg_p to determine if the function
11812         has variable arguments.
11813         (ix86_setup_incoming_varargs): Ditto.
11814         (x86_this_parameter): Ditto.
11816         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
11817         declaration.
11818         (ix86_expand_sse5_pack): Ditto.
11819         (ix86_sse5_valid_op_p): Ditto.
11820         (ix86_expand_sse5_multiple_memory): Ditto.
11822         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
11823         constant for SSE5 support.
11824         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
11825         (UNSPEC_SSE5_TRUEFALSE): Ditto.
11826         (UNSPEC_SSE5_PERMUTE): Ditto.
11827         (UNSPEC_SSE5_ASHIFT): Ditto.
11828         (UNSPEC_SSE5_LSHIFT): Ditto.
11829         (UNSPEC_FRCZ): Ditto.
11830         (UNSPEC_CVTPH2PS): Ditto.
11831         (UNSPEC_CVTPS2PH): Ditto.
11832         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
11833         (PCOM_TRUE): Ditto.
11834         (COM_FALSE_S): Ditto.
11835         (COM_FALSE_P): Ditto.
11836         (COM_TRUE_S): Ditto.
11837         (COM_TRUE_P): Ditto.
11838         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
11839         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
11840         types.
11841         (memory attribute): Ditto.
11842         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11843         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
11844         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
11845         (floor<mode>2): Ditto.
11846         (ceil<mode>2): Ditto.
11847         (btrunc<mode>2): Ditto.
11848         (nearbyintdf2): Ditto.
11849         (nearbyintsf2): Ditto.
11850         (sse_setccsf): Disable if SSE5.
11851         (sse_setccdf): Ditto.
11852         (sse5_setcc<mode>): New support for SSE5 conditional move.
11853         (sse5_pcmov_<mode>): Ditto.
11855         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
11856         (SSEMODEF4): Ditto.
11857         (SSEMODEF2P): Ditto.
11858         (ssemodesuffixf4): New mode attribute for SSE5.
11859         (ssemodesuffixf2s): Ditto.
11860         (ssemodesuffixf2c): Ditto.
11861         (sserotatemax): Ditto.
11862         (ssescalarmode): Ditto.
11863         (sse_maskcmpv4sf3): Disable if SSE5.
11864         (sse_maskcmpv2df3): Ditto.
11865         (sse_vmmaskcmpv4sf3): Ditto.
11866         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
11867         (sse5_vmfmadd<mode>4): Ditto.
11868         (sse5_fmsub<mode>4): Ditto.
11869         (sse5_vmfmsub<mode>4): Ditto.
11870         (sse5_fnmadd<mode>4): Ditto.
11871         (sse5_vmfnmadd<mode>4): Ditto.
11872         (sse5_fnmsub<mode>4): Ditto.
11873         (sse5_vmfnmsub<mode>4): Ditto.
11874         (sse5i_fmadd<mode>4): Ditto.
11875         (sse5i_fmsub<mode>4): Ditto.
11876         (sse5i_fnmadd<mode>4): Ditto.
11877         (sse5i_fnmsub<mode>4): Ditto.
11878         (sse5i_vmfmadd<mode>4): Ditto.
11879         (sse5i_vmfmsub<mode>4): Ditto.
11880         (sse5i_vmfnmadd<mode>4): Ditto.
11881         (sse5i_vmfnmsub<mode>4): Ditto.
11882         (mulv16qi3): Add SSE5 support.
11883         (mulv4si3): Ditto.
11884         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
11885         (sse2_mulv4si3): Disable if SSE5.
11886         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
11887         (sse4_1_roundps): Ditto.
11888         (sse4_1_roundsd): Ditto.
11889         (sse4_1_roundss): Ditto.
11890         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
11891         be generated.
11892         (sse_maskcmpsf3): Ditto.
11893         (sse_vmmaskcmpv4sf3): Ditto.
11894         (sse2_maskcmpv2df3): Ditto.
11895         (sse2_maskcmpdf3): Ditto.
11896         (sse2_vmmaskcmpv2df3): Ditto.
11897         (sse2_eq<mode>3): Ditto.
11898         (sse2_gt<mode>3): Ditto.
11899         (sse5_pcmov_<mode>): Add SSE5 support.
11900         (vec_unpacku_hi_v16qi): Ditto.
11901         (vec_unpacks_hi_v16qi): Ditto.
11902         (vec_unpacku_lo_v16qi): Ditto.
11903         (vec_unpacks_lo_v16qi): Ditto.
11904         (vec_unpacku_hi_v8hi): Ditto.
11905         (vec_unpacks_hi_v8hi): Ditto.
11906         (vec_unpacku_lo_v8hi): Ditto.
11907         (vec_unpacks_lo_v8hi): Ditto.
11908         (vec_unpacku_hi_v4si): Ditto.
11909         (vec_unpacks_hi_v4si): Ditto.
11910         (vec_unpacku_lo_v4si): Ditto.
11911         (vec_unpacks_lo_v4si): Ditto.
11912         (sse5_pmacsww): New SSE5 intrinsic insn.
11913         (sse5_pmacssww): Ditto.
11914         (sse5_pmacsdd): Ditto.
11915         (sse5_pmacssdd): Ditto.
11916         (sse5_pmacssdql): Ditto.
11917         (sse5_pmacssdqh): Ditto.
11918         (sse5_pmacsdqh): Ditto.
11919         (sse5_pmacsswd): Ditto.
11920         (sse5_pmacswd): Ditto.
11921         (sse5_pmadcsswd): Ditto.
11922         (sse5_pmadcswd): Ditto.
11923         (sse5_pcmov_<move>): Conditional move support on SSE5.
11924         (sse5_phaddbw): New SSE5 intrinsic insn.
11925         (sse5_phaddbd): Ditto.
11926         (sse5_phaddbq): Ditto.
11927         (sse5_phaddwd): Ditto.
11928         (sse5_phaddwq): Ditto.
11929         (sse5_phadddq): Ditto.
11930         (sse5_phaddubw): Ditto.
11931         (sse5_phaddubd): Ditto.
11932         (sse5_phaddubq): Ditto.
11933         (sse5_phadduwd): Ditto.
11934         (sse5_phadduwq): Ditto.
11935         (sse5_phaddudq): Ditto.
11936         (sse5_phsubbw): Ditto.
11937         (sse5_phsubwd): Ditto.
11938         (sse5_phsubdq): Ditto.
11939         (sse5_pperm): Ditto.
11940         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
11941         (sse5_pperm_zero_v16qi_v8hi): Ditto.
11942         (sse5_pperm_sign_v8hi_v4si): Ditto.
11943         (sse5_pperm_zero_v8hi_v4si): Ditto.
11944         (sse5_pperm_sign_v4si_v2di): Ditto.
11945         (sse5_pperm_sign_v4si_v2di): Ditto.
11946         (sse5_pperm_pack_v2di_v4si): Ditto.
11947         (sse5_pperm_pack_v4si_v8hi): Ditto.
11948         (sse5_pperm_pack_v8hi_v16qi): Ditto.
11949         (sse5_perm<mode>): New SSE5 intrinsic insn.
11950         (rotl<mode>3): Ditto.
11951         (sse5_rotl<mode>3): Ditto.
11952         (sse5_ashl<mode>3): Ditto.
11953         (sse5_lshl<mode>3): Ditto.
11954         (sse5_frcz<mode>2): Ditto.
11955         (sse5s_frcz<mode>2): Ditto.
11956         (sse5_cvtph2ps): Ditto.
11957         (sse5_cvtps2ph): Ditto.
11958         (sse5_vmmaskcmp<mode>3): Ditto.
11959         (sse5_com_tf<mode>3): Ditto.
11960         (sse5_maskcmp<mode>3): Ditto.
11961         (sse5_maskcmp_uns<mode>3): Ditto.
11962         (sse5_maskcmp_uns2<mode>3): Ditto.
11963         (sse5_pcom_tf<mode>3): Ditto.
11965         * config/i386/predicates.md (sse5_comparison_float_operator):
11966         New predicate to match the comparison operators supported by
11967         the SSE5 com instruction.
11968         (ix86_comparison_int_operator): New predicate to match just the
11969         signed int comparisons.
11970         (ix86_comparison_uns_operator): New predicate to match just the
11971         unsigned int comparisons.
11973         * doc/invoke.texi (-msse5): Add documentation.
11974         (-mfused-madd): Ditto.
11976         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
11978         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
11979         mmintrin-common.h.
11980         (x86_64-*-*): Ditto.
11982         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
11984         * config/i386/bmmintrin.h: New file, provide common x86 compiler
11985         intrinisics for SSE5.
11987         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
11988         mmintrin-common.h.
11990         * config/i386/mmintrin-common.h: New file, to contain common
11991         instructions between SSE4.1 and SSE5.
11993         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
11994         FOREACH_FUNCTION_ARGS to iterate over the argument list.
11995         (gen_regparm_prefix): Ditto.
11997         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
11998         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
11999         prototype_p to determine if a function is prototyped.
12001 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
12003         * c-common.c (c_common_reswords) add the alignof keyword,
12004         with same RID as __alignof and __alignof__
12006 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
12008         * hooks.h (hook_bool_const_int_const_int_true): Declare.
12009         * hooks.c (hook_bool_const_int_const_int_true): New function.
12010         * target.h (struct gcc_target): Add can_eliminate field.
12011         * target-def.h (TARGET_CAN_ELIMINATE): Define.
12012         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
12013         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
12014         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
12015         (elim_table): Revise comment.
12016         * system.h (CAN_ELIMINATE): Poison.
12017         * defaults.h (CAN_ELIMINATE): Remove.
12018         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12020         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
12021         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
12022         Define macro.
12023         (alpha_vms_can_eliminate): Declare as static, change return type to
12024         bool.
12025         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
12027         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
12028         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
12029         (arm_can_eliminate): New function.
12031         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
12032         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
12033         (avr_can_eliminate): Declare as static.
12034         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
12036         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
12037         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
12038         (bfin_can_eliminate): New function.
12040         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
12041         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
12042         (crx_can_eliminate): New function.
12044         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
12045         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
12046         (fr30_can_eliminate): New function.
12048         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
12049         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
12050         (frv_can_eliminate): New function.
12052         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
12053         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
12054         (h8300_can_eliminate): New function.
12056         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
12057         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
12058         (i386_can_eliminate): Declare as static, change return type to bool.
12059         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
12061         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
12062         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
12063         (ia64_can_eliminate): New function.
12065         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
12066         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
12067         (iq2000_can_eliminate): New function.
12069         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
12070         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
12071         (m32r_can_eliminate): New function.
12073         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
12074         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
12075         (m68hc11_can_eliminate): New function.
12077         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
12078         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
12079         (m68k_can_eliminate): New function.
12081         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
12082         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
12083         (mep_can_eliminate): New function.
12085         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
12086         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
12087         (mips_can_eliminate): New function.
12089         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
12090         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
12091         (rs6000_can_eliminate): New function.
12093         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
12094         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
12095         (s390_can_eliminate): Declare as static.
12096         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
12098         * config/score/score.h (CAN_ELIMINATE): Remove macro.
12099         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
12100         (score_can_eliminate): New function.
12102         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
12103         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
12104         (sparc_can_eliminate): Declare as static.
12105         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
12107         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
12108         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
12109         (xstormy16_can_eliminate): New function.
12111         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
12112         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
12113         (v850_can_eliminate): New function.
12115 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
12117         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
12118         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
12119         (*movdfcc_ext[1234]): Disable for IEEE mode.
12121 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
12123         * gimplify.c (prepare_gimple_addressable): New static function.
12124         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
12125         it addressable.
12126         (gimplify_addr_expr): Invoke it similarly on the operand instead of
12127         manually fiddling with it.
12129 2009-08-25  Michael Matz  <matz@suse.de>
12131         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
12132         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
12133         full expression.
12134         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
12135         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
12136         (do_jump): Split out code for simple binary comparisons into ...
12137         (do_jump_1): ... this, taking the individual operands and code.
12138         Change callers to helper function above accordingly.
12139         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
12140         comparisons.
12142 2009-08-25  Michael Matz  <matz@suse.de>
12144         * expr.h (struct separate_ops, sepops): New type for passing
12145         around an exploded simple expression.
12146         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
12147         Use this structure instead of expression tree.
12148         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
12149         expression, only its type.
12150         (expand_vec_cond_expr): Take type and individual operands instead
12151         of full expression.
12152         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
12153         expand_vec_shift_expr): Change prototype accordingly.
12154         * tree-vect-stmts.c (vectorizable_condition): Change call of
12155         expand_vec_cond_expr_p to pass only type.
12156         * expr.c (do_store_flags): Change prototype and implementation
12157         to take an exploded expression.
12158         (expand_expr_real_1): New local ops initialized with details
12159         of the full expression.  Use it instead of full
12160         expression in calls to do_store_flags, expand_vec_cond_expr,
12161         expand_widen_pattern_expr and expand_vec_shift_expr.
12163 2009-08-25  Michael Matz  <matz@suse.de>
12165         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
12166         treeop2 initialized with first three operands of the full expression.
12167         Substitute all TREE_OPERAND (exp, [012]) calls with them.
12169 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
12171         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
12172         (__gthread_objc_condition_allocate): Mark arguments as unused.
12173         (__gthread_objc_condition_deallocate): Likewise.
12174         (__gthread_objc_condition_wait): Likewise.
12175         (__gthread_objc_condition_broadcast): Likewise.
12176         (__gthread_objc_condition_signal): Likewise.
12177         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
12178         (__gthread_objc_thread_id): Likewise.
12180 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
12182         PR middle-end/41149
12183         * tree-pretty-print.c (print_call_name): Print the correct call name
12184         for procedure pointer components.
12186 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
12188         * config/ia64/ia64.c (ia64_promote_function_mode): Call
12189         default_promote_function_mode when not VMS.
12191 2009-08-24  Olivier Hainque  <hainque@adacore.com>
12193         * convert.c (convert_to_integer): Don't assume an input pointer is
12194         POINTER_SIZE wide.  Fetch from the type instead.
12196 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12198         * configure.ac (AC_PREREQ): Bump to 2.64.
12200 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
12202         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
12203         (process_command): Don't search standard_exec_prefix_1 and
12204         standard_exec_prefix_2.
12206 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12208         * config/arm/arm.c (output_return_instruction): Handle for
12209         unified syntax.
12211 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12213         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
12215 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12217         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
12218         (*arm_movdf_vfp): Likewise.
12220 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12222         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
12223         (vashr<mode>3): Rename from ashr<mode>3.
12224         (vlshr<mode>3): Rename from lshr<mode>3.
12226 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
12228         PR/40786
12229         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
12230         (check_format_info_main): Use scalar_identify_flag.
12231         (check_format_types): Check for scalar size identity if
12232         scalar_identify_flag is set.
12233         (printf_length_specs): Extend by new field.
12234         (asm_fprintf_length_specs): Likewise.
12235         (gcc_diag_length_specs): Likewise.
12236         (scanf_length_specs): Likewise.
12237         (strfmon_length_specs): Likewise.
12238         (gcc_gfc_length_specs): Likewise.
12239         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
12240         (ms_printf_flag_specs): Likewise.
12241         * c-format.h (format_length_info): Add new member scalar_identity_flag.
12243 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
12245         PR target/40718
12246         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
12247         (*call_value_pop_1): Ditto.
12248         (*sibcall_pop_1): New insn pattern.
12249         (*sibcall_value_pop_1): Ditto.
12251 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12253         PR target/41081
12254         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
12255         ashrsi3_64): New.
12257 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
12259         PR target/41081
12260         * fwprop.c (try_fwprop_subst): Allow multiple sets.
12261         (get_reg_use_in): New function.
12262         (forward_propagate_subreg): Propagate through subreg of zero_extend
12263         or sign_extend.
12265 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12267         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
12268         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
12270 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12272         * configure.ac: Remove --with-datarootdir, --with-docdir,
12273         --with-htmldir switches.  No need to call AC_SUBST for
12274         datarootdir, docdir, htmldir any more.
12275         * configure: Regenerate.
12276         * doc/install.texi (Configuration): Document --datarootdir,
12277         --docdir, --htmldir, --pdfdir; update documentation for
12278         --infodir, --mandir.
12279         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
12280         M4 to 1.4.6.
12282         * aclocal.m4: Regenerate.
12283         * config.in: Regenerate.
12284         * configure: Regenerate.
12286 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
12287             Olivier Hainque  <hainque@adacore.com>
12289         * config/ia64/ia64.c: Include libfuncs.h.
12290         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
12291         (ia64_expand_call): Use reg 25 on VMS.
12292         (ia64_initialize_trampoline): Fix for VMS ABI.
12293         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
12294         (ia64_function_arg): Initialize reg 25 on VMS.
12295         Fix OpenVMS ABI issues for varargs.
12296         For OpenVMS, emit the Argument Information register set in the
12297         incoming/sibcall case as well.
12298         (ia64_arg_type): New function.
12299         (ia64_function_arg_advance): Keep track of cum->words.
12300         Fix OpenVMS ABI issues for varargs.
12301         (ia64_function_value): On VMS, promote mode of non-aggregate types.
12302         (ia64_override_options): Set flag_no_common on VMS.
12303         (ia64_init_builtins): Disable FWRITE builtin.
12304         (ia64_asm_output_external): Call DO_CRTL_NAMES.
12305         (ia64_vms_init_libfuncs): Add decc$ routines.
12306         (ia64_vms_valid_pointer_mode): New function.
12307         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
12308         (ia64_promote_function_mode): New function
12309         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
12310         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
12311         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
12312         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
12313         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
12314         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
12315         Suppress trailing '#' if VALUE is numeric.
12316         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
12317         ia64_promote_function_mode.
12318         (TARGET_VALID_POINTER_MODE): Define.
12320 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12322         PR target/40671
12323         * config/rs6000/rs6000.c (rs6000_override_options): Use
12324         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
12326         PR target/41145
12327         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
12328         reporting of vector + decimal/boolean/complex error.
12330 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
12332         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
12333         __vector double TYPE_DECL.
12335 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
12337         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
12338         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
12339         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
12340         to pointer to enum machine_mode.  Update all callers as needed.
12342 2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
12344         * config/alpha/alpha.md (exception_receiver): Emit alternative
12345         GP load sequence if flag_reorder_blocks_and_partition is set.
12346         (*exception_receiver_2): Also enable when
12347         flag_reorder_blocks_and_partition is set.
12349 2009-08-20  Matt Rice  <ratmice@gmail.com>
12350             Diego Novillo  <dnovillo@google.com>
12352         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
12353         tree-ssa-sccvn.h.
12355 2009-08-20  Richard Guenther  <rguenther@suse.de>
12357         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
12358         * c-tree.h (c_dup_lang_specific_decl): Remove.
12359         (struct lang_decl, struct lang_type): Move definitions ...
12360         * c-lang.h: ... here.  New file.
12361         * c-decl.c: Include c-lang.h.
12362         (c_dup_lang_specific_decl): Remove.
12363         * c-typeck.c: Include c-lang.h.
12364         * Makefile.in (c-decl.o): Add c-lang.h dependency.
12365         (c-typeck.o): Likewise.
12366         * c-config-lang.in (gtfiles): Add c-lang.h.
12367         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
12368         like c-tree.h.
12370 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
12372         * config/alpha/alpha.c (alpha_end_function): Do not clear
12373         crtl->emit structure and free insn locators if cfun->is_thunk is true,
12374         this is now handled in generic code.
12376 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12378         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
12379         (s390_z10_fix_long_loop_prediction): New function.
12380         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
12381         (s390_reorg): Walk over the INSNs and invoke
12382         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
12384 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
12386         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
12387         "*brx_64bit", "*brx_31bit"): New patterns.
12388         * config/s390/s390.c ('E'): New output modifier.
12390 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12391             Richard Earnshaw  <richard.earnshaw@arm.com>
12393         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
12394         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
12396 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12398         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
12399         patterns.
12400         * pa.c (emit_move_sequence): Check if address of operand1 is valid
12401         for mode mode of operand0 when doing secondary reload for SAR.
12403 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12405         PR middle-end/41123
12406         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
12407         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
12409 2009-08-19  Jason Merrill  <jason@redhat.com>
12411         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
12412         supported template depth in C++0x.
12414 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
12416         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
12417         free_after_compilation.
12418         * config/score/score7.c (score7_output_mi_thunk): Likewise.
12419         * config/score/score3.c (score3_output_mi_thunk): Likewise.
12420         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12421         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12422         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12423         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12424         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12426 2009-08-19  Ian Lance Taylor  <iant@google.com>
12428         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
12429         of (plus (mult (neg B) C) A).
12431 2009-08-18  Michael Matz  <matz@suse.de>
12433         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
12434         instead of comparing TYPE_MAIN_VARIANT for equality.
12435         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
12436         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
12437         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
12438         * gimplify.c (goa_lhs_expr_p): Ditto and use
12439         STRIP_USELESS_TYPE_CONVERSION.
12441 2009-08-18  Michael Matz  <matz@suse.de>
12443         * tree-ssa-structalias.c (create_variable_info_for): Also mark
12444         first field in a struct.
12445         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
12447 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
12449         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
12450         locators before emit_insn is called.  Remove assert that
12451         cfun->is_thunk.
12452         (alpha_end_function): Clear crtl->emit structure and free insn
12453         locators if cfun->is_thunk is true.
12455 2009-08-18  Jason Merrill  <jason@redhat.com>
12457         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12458         type if available.
12459         * configure.ac: Test for it.
12460         * configure, config.in: Regenerate.
12461         * doc/install.texi: Document --enable-gnu-unique-object.
12463 2009-08-18  Richard Guenther  <rguenther@suse.de>
12465         PR middle-end/41094
12466         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
12467         pow(x,y*z) only if x is nonnegative.
12469 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
12471         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
12472         on jumps.
12474         PR target/40971
12475         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
12476         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
12478 2009-08-17  DJ Delorie  <dj@redhat.com>
12480         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
12481         * config/m32c/prologue.md (epilogue_freit): New.
12482         (fset_b): New.
12483         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
12484         (bank_switch_p): Likewise.
12485         (fast_interrupt_p): Likewise.
12486         (interrupt_p): Likewise.
12487         (m32c_conditional_register_usage): Round memregs size up.
12488         (need_to_save): We only need to save $a0 when we use ENTER.
12489         (interrupt_p): Check for fast_interrupt too.
12490         (bank_switch_p): New.
12491         (fast_interrupt_p): New.
12492         (m32c_attribute_table): Add bank_switch and fast_interrupt.
12493         (m32c_emit_prolog): Support bank switching and fast interrupts.
12494         * doc/extend.texi (Function Attributes): Add bank_switch and
12495         fast_interrupt.
12497 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
12499         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
12500         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
12502 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
12504         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
12505         (menu): Add IA-64/VMS Options.
12506         (IA-64/VMS Options): Likewise.
12508 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12510         PR target/38599
12511         * config/mips/mips.md (*lwxs): Use :P for pointer values.
12513 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
12515         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
12516         (mips_pop_asm_switch): Likewise.
12517         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
12518         with...
12519         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12520         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
12521         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
12522         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
12523         instead of set_noreorder.
12524         (mips_output_function_prologue): Use the new functions.
12525         (mips_output_function_epilogue): Likewise.
12526         (mips_need_noat_wrapper_p): New function, split out from...
12527         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
12528         Use mips_push_asm_switch and mips_pop_asm_switch.
12529         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
12530         and mips_pop_asm_switch.
12531         (ASM_OUTPUT_REG_POP): Likewise.
12532         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
12533         Use mips_pop_asm_switch.
12534         (mips_asm_switch): New structure.
12535         (set_noreorder, set_nomacro): Replace with...
12536         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
12537         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
12538         instead of set_nomacro.
12539         (fix_truncsfsi2_macro): Likewise.
12540         (cprestore): Likewise.
12541         (hazard): Use mips_noreorder instead of set_noreorder.
12542         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
12544 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
12546         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
12547         from prev_active_insn.
12549 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
12551         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
12552         * config/avr/avr.c (avr_override_options): Initialize
12553         avr_current_arch variable.
12554         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
12555         __AVR_HAVE_16BIT_SP__ according to the device type.
12556         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
12557         TARGET_TINY_STACK.
12558         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
12559         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
12561 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
12563         PR debug/37801
12564         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
12565         generating inlined subroutine die only. We shouldn't be
12566         called for anything else.
12567         (gen_block_die): Don't generate inline subroutine debug info for
12568         abstract blocks.
12570 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12572         * graphite-poly.c (print_pbb): Print PBB index.
12574 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
12576         PR middle-end/40981
12577         * graphite-interchange.c (ppl_max_for_le): Moved...
12578         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
12579         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
12580         ppl_Pointset_Powerset_C_Polyhedron_maximize.
12581         * graphite-ppl.h (ppl_max_for_le): Declared.
12583 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
12585         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
12586         supported on all platforms.
12587         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
12588         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
12589         * c-pragma.c: Likewise.
12590         * target-def.h (TARGET_INITIALIZER): Remove
12591         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12592         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
12594 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12596         * config/ia64/fde-vms.c: New file.
12597         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
12598         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
12599         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
12600         (uw_frame_state_for): Only register a personality routine if it is
12601         known to be compatible with our expectations.
12602         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
12603         Declare unw_table_entry stack variable and
12604         mod all calls to _Unwind_FindTableEntry to add arg.
12605         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
12606         (_Unwind_FindTableEntry): Add arg to prototype.
12608 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
12610         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
12611         field 'signal_pfs_loc'.
12612         (uw_frame_state_for): Remove duplicate code dealing with leaf
12613         procedures without unwind info.
12614         If in the frame after unwinding through a signal handler, restore
12615         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
12616         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
12617         'pfs_loc' to the AR.PFS location in the signal context; instead
12618         set 'signal_pfs_loc'.
12619         Manually generate the unwind info for the AR.PFS register.
12620         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
12621         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
12622         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
12623         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
12624         instead set 'signal_pfs_loc'.
12625         Remove code preventing the AR.PFS register from being restored
12626         from the signal context.
12628 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
12629             Tristan Gingold  <gingold@adacore.com>
12631         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
12632         * config/ia64/t-vms: New file.
12633         * config/ia64/vms64.h: New file.
12634         * config/ia64/vms.h: New file.
12635         * config/ia64/vms-crtinit.asm: New file.
12636         * config/ia64/vms_symvec_libgcc_s.opt: New file.
12637         * config/ia64/vms-unwind.h: New file.
12639 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12641         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
12642         TFmode compares.
12644 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12646         PR middle-end/30789
12647         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
12648         Move declaration...
12649         * real.h (do_mpc_arg2): ... here.
12650         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
12651         and RDIV_EXPR.
12653 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
12655         * final.c (add_debug_prefix_map): Don't use GC memory for
12656         old_prefix and new_prefix.
12658 2009-08-14  Richard Guenther  <rguenther@suse.de>
12660         * ipa-prop.c (compute_complex_pass_through): If we cannot
12661         compute a non-varying offset for IPA_JF_ANCESTOR punt.
12663 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12665         * c-lex.c (c_lex_with_flags): Increase size of local variable
12666         to avoid memory clobber.
12668 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
12670         PR target/40934
12671         * config/i386/i386.c (ix86_fp_comparison_strategy):
12672         Only enable/disable sahf at function granularity.
12674 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
12676         PR rtl-optimization/41064
12677         * reload1.c (reload_as_needed): Don't call extract_insn
12678         for known invalid replacements after calling
12679         validate_replace_rtx_group and verify_changes.
12681 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
12683         PR target/41019
12684         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
12685         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
12686         ix86_expand_fp_vcond.
12687         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
12688         Assert that operation is supported by ix86_expand_int_vcond.
12689         (vcondu<SSEMODE124C8:mode>): Ditto.
12691 2009-08-13  DJ Delorie  <dj@redhat.com>
12693         * config/i386/djgpp-stdint.h: New.
12694         * config.gcc (djgpp): Use it.
12696 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
12698         * config/sh/sh.c (sh_override_options): When flag_exceptions or
12699         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
12701 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12703         * tree-ssa-loop-prefetch.c
12704         (prune_ref_by_group_reuse): Enhance probabilistic analysis
12705         for long-stride pruning.
12706         (compute_miss_rate): New function to compute the probability
12707         that two memory references access different cache lines.
12709 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
12711         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
12713 2009-08-13  Richard Guenther  <rguenther@suse.de>
12715         PR middle-end/41047
12716         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
12717         use the constant pointer type.
12718         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
12719         of CV qualifiers on the target pointer type.
12720         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
12721         conversion check before restrict check.
12723 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12725         PR target/41029
12726         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
12728 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12730         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
12732 2009-08-12  Richard Guenther  <rguenther@suse.de>
12734         PR tree-optimization/41011
12735         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
12736         and reference constructing.
12738 2009-08-12  Xinliang David Li  <davidxl@google.com>
12740         PR tree-optimization/41012
12741         * tree-flow.h : New external interface.
12742         * gimple-low.c (check_call_arg): Change to public function.
12743         Remove argument mismatch check in lowering.
12744         * tree-inline.h (tree_can_inline_p): Interface change.
12745         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
12746         into this function.
12747         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
12748         Call change to tree_can_inline_p function.
12749         (cgraph_decide_inlining_incrementally): Ditto.
12751 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
12753         PR tree-optimization/41031
12754         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
12755         on the partition variable rather than promote_mode on the source
12756         type.  Assert that the partition variable's type has the same
12757         mode as the source value's.
12759 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
12761         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
12762         for for_return == 2.
12763         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
12764         comments.
12765         * calls.c (expand_call): Fix typo.
12766         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
12767         and PARM_DECL.
12768         * stmt.c (expand_value_return): Use promote_function_mode to copy out
12769         of pseudo.
12770         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
12771         * config/cris/cris.c (cris_promote_function_mode): Likewise.
12772         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
12773         * config/pa/pa.c (pa_promote_function_mode): Likewise.
12775 2009-08-12  Andrew Haley  <aph@redhat.com>
12777         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
12779 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12781         PR bootstrap/40103
12782         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12784 2009-08-12  Richard Guenther  <rguenther@suse.de>
12786         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
12787         * gimplify.c (gimplify_modify_expr): Do not use
12788         lang_hooks.types_compatible_p.
12789         * tree-ssa.c (useless_type_conversion_p): For aggregates
12790         just return false if the canonical types differ.
12792 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12794         PR middle-end/40980
12795         * sese.c (convert_for_phi_arg): New.
12796         (add_guard_exit_phis): Use convert_for_phi_arg.
12798 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12800         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
12801         unknown subscript upper bounds.
12803 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12804             Pranav Garg  <pranav.garg2107@gmail.com>
12806         * graphite-interchange.c (gather_access_strides): Removed.
12807         (ppl_max_for_le): New.
12808         (build_linearized_memory_access): New.
12809         (memory_stride_in_loop): New.
12810         (pbb_interchange_profitable_p): Reimplemented.
12811         * graphite-ppl.h (ppl_new_id_map): New.
12812         (ppl_interchange): New.
12814 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12816         * graphite-interchange.c (compute_subscript): Removed.
12817         (compute_array_size_cstr): Removed.
12818         (compute_array_size_poly): Removed.
12819         (compute_array_size): Removed.
12820         (gather_access_strides_poly): Removed.
12821         (gather_access_strides): Empty.
12823 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12825         * graphite-dependences.c (dependence_polyhedron_1): Replace
12826         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
12827         (graphite_legal_transform_dr): Same.
12828         (graphite_carried_dependence_level_k): Same.
12829         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
12830         Initialize PDR_NB_SUBSCRIPTS.
12831         (print_pdr_access_layout): Replace pdr_nb_subscripts with
12832         PDR_NB_SUBSCRIPTS.
12833         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
12834         (PDR_NB_SUBSCRIPTS): New.
12835         (pdr_nb_subscripts): Removed.
12836         (pdr_dim): Simplified.
12837         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
12838         with PDR_NB_SUBSCRIPTS.
12840 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12842         * graphite-interchange.c (compute_array_size): Remove use of
12843         PDR_DATA_CONTAINER.
12844         * graphite-poly.c (new_poly_dr): Remove argument data_container.
12845         Do not initialize PDR_DATA_CONTAINER.
12846         (print_pdr): Do not print PDR_DATA_CONTAINER.
12847         * graphite-poly.h (struct poly_dr): Remove data_container field.
12848         (PDR_DATA_CONTAINER): Removed.
12849         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
12850         PDR_DATA_CONTAINER.
12851         (build_poly_dr): Same.
12853 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
12854             Sebastian Pop  <sebastian.pop@amd.com>
12856         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
12857         copy of the dependence polyhedron.  Free the temporary objects.
12858         (graphite_carried_dependence_level_k): Free unused objects before
12859         returning.
12861 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12863         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
12864         Early return without analyzing the data dependences if no
12865         transform has been done.  Call restore_scattering if the transform
12866         is not legal.
12867         (graphite-interchange.c): Same.
12868         * graphite-poly.c (print_scattering_function): Test for
12869         PBB_TRANSFORMED.
12870         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
12871         (apply_poly_transforms): Do not gcc_assert that
12872         the transform is legal.
12873         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
12874         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
12875         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
12876         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
12877         * graphite-poly.h (struct poly_scattering): New.
12878         (struct poly_bb): Add original, transformed, and saved fields.
12879         Remove transformed_scattering, original_scattering,
12880         nb_local_variables and nb_scattering_transform fields.
12881         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
12882         (poly_scattering_new): New.
12883         (poly_scattering_free): New.
12884         (poly_scattering_copy): New.
12885         (store_scattering_pbb): New.
12886         (store_scattering): New.
12887         (restore_scattering_pbb): New.
12888         (restore_scattering): New.
12889         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12890         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
12892 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12894         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
12895         (print_scop): Same.
12897 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12899         * Makefile.in (graphite.o): Depends on PREDICT_H.
12900         * graphite.c: Include predict.h.
12901         (graphite_finalize): Call tree_estimate_probability.
12902         * predict.c (predict_loops): Do not call scev_initialize and
12903         scev_finalize.
12904         (tree_estimate_probability_bb): New.
12905         (tree_estimate_probability): Do not initialize loops: move that
12906         code to the driver.  Call tree_estimate_probability_bb.
12907         (tree_estimate_probability_driver): New.
12908         (pass_profile): Use tree_estimate_probability_driver.
12909         * predict.h (tree_estimate_probability): Declared.
12911 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
12913         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
12914         * graphite-dependences.c (graphite_legal_transform): Add time to
12915         TV_GRAPHITE_DATA_DEPS.
12916         (dependency_between_pbbs_p): Same.
12917         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
12919 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
12921         PR rtl-optimization/41033
12922         * alias.c (nonoverlapping_component_refs_p): Punt when strict
12923         aliasing is disabled.
12925 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12927         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
12928         si_mask_operand, and_load_operand, low_bitmask_operand,
12929         and_reg_operand, and_operand): New predicates.
12930         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
12931         * config/mips/mips.c (and_operands_ok): New function.
12932         * config/mips/mips-protos.h (and_operands_ok): Declare it.
12933         * config/mips/mips.md (move_type): Add ext_ins and logical.
12934         (type): Handle them.
12935         (and<mode>3): Use and_reg_operand as the second operand's predicate.
12936         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
12937         shift_shift.  Remove commutative constraint modifier.
12938         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
12939         shift_shift.
12940         (*clear_upper32_dext): Remove define_insn_and_split.
12941         (*clear_upper32): Turn this define_insn_and_split ...
12942         (splitter for ANDing register with 0xffff_ffff): .. into this.
12944 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
12946         * combine.c (try_widen_shift_mode): Factor out code to check if an
12947         integer constant is a low-order bitmask from here ...
12948         * rtlanal.c (low_bitmask_len): ... to here.
12949         * rtl.h (low_bitmask_len): Declare.
12951 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
12953         PR target/8603
12954         * config/alpha/alpha.md (addsi3): Remove expander.
12955         (addsi3): Rename from *addsi3_internal insn pattern.
12956         (subsi3): Remove expander.
12957         (subsi3): Rename from *subsi3_internal insn pattern.
12959 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
12961         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
12962         FWRITE_UNLOCKED.
12964 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
12965             Eric Botcazou  <botcazou@adacore.com>
12966             Douglas B Rupp  <rupp@gnat.com>
12968         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
12969         that records that fit in 64 bits are returned by immediate value,
12970         as required by OpenVMS Calling Standard.
12971         (function_value): Adjust for above modification.
12972         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
12973         virtual_incoming_args_rtx as base object, not next_arg.
12974         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12976 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12978         * reload.c (find_reloads_subreg_address): Check the original
12979         req_equiv_mem address to detect the case where an address is
12980         not valid in the outer mode.
12982 2009-08-11  Richard Guenther  <rguenther@suse.de>
12984         PR bootstrap/40788
12985         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
12987 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
12989         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
12990         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
12992 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
12993             Douglas B Rupp  <rupp@gnat.com>
12995         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
12996         PT_STACK when frame_pointer_needed on OpenVMS.
12997         (alpha_pv_save_size, alpha_using_fp): Remove.
12998         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
12999         with proper processing for PT_NULL.
13000         (alpha_vms_initial_elimination_offset): New function. Support for
13001         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
13002         (alpha_sa_size): Force procedure type to PT_STACK when
13003         frame_pointer_needed on OpenVMS.
13004         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
13005         (alpha_using_fp): Likewise.
13006         (alpha_vms_can_eliminate): Add prototype.
13007         (alpha_vms_initial_elimination_offset): Likewise.
13008         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
13009         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
13011 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
13012             Douglas B Rupp  <rupp@gnat.com>
13014         * config/alpha/alpha.c (common_object_handler): New function.
13015         (vms_attribute_table): Declare a single attribute "common_object".
13016         (vms_output_aligned_decl_common): New global function.
13017         (SECTION_VMS_OVERLAY): Delete.
13018         (SECTION_VMS_GLOBAL): Likewise.
13019         (SECTION_VMS_INITIALIZE): Likewise.
13020         (vms_asm_named_section): Remove support for above flags.
13021         (vms_section_type_flags): Delete.
13022         (TARGET_SECTION_TYPE_FLAGS): Likewise.
13023         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
13024         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
13025         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
13027 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13029         PR target/41015
13030         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
13031         (sub_ddmmss): Likewise.
13033 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
13035         PR bootstrap/41018
13036         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
13037         year.
13039 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13041         PR target/37053
13042         * reload1.c (reload_as_needed): Use cancel_changes to completely
13043         undo a failed replacement attempt.
13045 2009-08-10  Richard Guenther  <rguenther@suse.de>
13047         PR middle-end/41006
13048         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
13049         (useless_type_conversion_p): ... here.  Require pointer targets
13050         to be compatible.
13052 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
13054         PR c++/40866
13055         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
13056         loose the original type of the statement list.
13058 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13060         * config/alpha/alpha.c: Include libfuncs.h
13061         (avms_asm_output_extern): New function.
13062         (alpha_init_libfuncs): Init some decc libfuncs.
13063         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
13064         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
13065         (DO_CRTL_NAMES): Define.
13066         (LIB_SPEC): Remove.
13067         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
13068         (LONG_TYPE_SIZE): Define.
13069         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
13070         (SUBTARGET_SWITCHES): Define malloc64 switch.
13071         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
13072         (MASK_RETURN_ADDR): Define.
13073         doc/invoke.texi (mmalloc64): Document switch.
13075 2009-08-09  Olivier Hainque  <hainque@adacore.com>
13076             Douglas B Rupp  <rupp@gnat.com>
13078         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
13079         uses_condition_handler.
13080         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
13081         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
13082         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
13083         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
13084         (code_for_builtin): New insn codes for the new alpha_builtins.
13085         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
13086         (alpha_sa_size): Account for uses_condition_handler.
13087         (alpha_expand_prologue): Likewise.
13088         (alpha_start_function): Likewise.
13089         (alpha_expand_epilogue): Likewise.
13090         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
13091         establish/revert expanders.
13092         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
13093         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
13094         New expander, resorting to the alpha.c associated function.
13095         (builtin_revert_vms_condition_handler): Likewise.
13096         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
13097         __gcc_shell_handler, the static VMS condition handler used as
13098         an indirection wrapper to the current dynamically established
13099         handler.
13100         * config/alpha/vms-unwind.h: Complete rewrite.
13101         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
13102         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
13104 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
13105             Douglas B Rupp  <rupp@gnat.com>
13107         * config/alpha/alpha.c (alpha_links): Add 'target' field.
13108         (alpha_need_linkage): Handle aliases.  Return function symbol.
13109         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
13110         Use ultimate alias target for the linkage name.
13111         * config/alpha/alpha.md (movmemdi): Use the symbol returned
13112         by alpha_need_linkage for the function symbol.
13113         (setmemdi): Likewise.
13115 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13117         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
13118         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
13119         (ASM_WEAKEN_LABEL): Define.
13120         (CRT_CALL_STATIC_FUNCTION): Define.
13121         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
13122         (ENDFILE_SPEC): Define.
13123         (INIT_SECTION_ASM_OP): Define.
13124         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
13125         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
13126         crtend.o crtendS.o.
13127         (MULTILIB_OSDIRNAMES): Define.
13128         (shlib_version): Define.
13129         (SHLIB_EXT): Define.
13130         (SHLIB_OBJS): Define.
13131         (SHLIB_NAME): Define.
13132         (SHLIB_MULTILIB): Define.
13133         (SHLIB_INSTALL): Define.
13134         (SHLIB_SYMVEC): Define.
13135         (SHLIB_SYMVECX2): Define.
13136         (SHLIB_LINK): Define.
13138 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13140         * config/alpha/alpha.c (alpha_initialize_trampoline):
13141         Initialize VMS trampoline IAW ABI for bounded procedure calls.
13142         (alpha_start_function): Emit transfer address on nested functions
13143         for VMS trampoline call.
13144         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
13145         since no longer used.
13146         * config/alpha/vms-tramp.asm: Remove.
13147         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
13148         since now only data initialized at runtime.
13150 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13152         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
13153         (LINK_GCC_C_SEQUENCE_SPEC): Define.
13154         (MD_EXEC_PREFIX): Remove, no longer used.
13155         (MD_STARTFILE_PREFIX): Likewise.
13156         (INCLUDE_DEFAULTS): Likewise.
13157         * config/alpha/t-vms:
13158         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
13160 2009-08-09  Richard Guenther  <rguenther@suse.de>
13162         PR tree-optimization/41016
13163         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
13164         (operand_precision): Remove.
13165         (integral_operand_p): Likewise.
13166         (recognize_single_bit_test): Adjust.
13168 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13170         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
13171         operation overflows.  Likewise non-cast unary arithmetic.
13172         If one arm of a conditional expression is always taken,
13173         inhibit evaluation warnings for the other arm.  Likewise inhibit
13174         evaluation warnings for the second && or || operand if the first
13175         operand is enough to determine the result.
13176         * c-typeck.c (build_conditional_expr): Apply the same inhibition
13177         rules here.
13178         (build_binary_op): Prevent duplicate evaluation warnings.
13180 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
13182         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
13183         and destination have different modes, Use promote_mode to
13184         determine the signedness of the conversion.  Assert that the
13185         promoted source mode matches the destination mode.  Don't pass
13186         the destination and destination mode to expand_expr if the source
13187         mode is different.  Simplify conversion logic.
13189 2009-08-09  Ira Rosen  <irar@il.ibm.com>
13191         PR tree-optimization/41008
13192         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
13193         from condition only in case it's a comparison. Adjust checks.
13195 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
13197         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
13198         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
13199         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
13200         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
13201         (dump_cand): Handle them.
13202         (struct iv_cand): New members COST_STEP and AINC_USE.
13203         (stmt_after_increment): Likewise.
13204         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
13205         callers changed.  Use gimple_uid comparison instead of scanning.
13206         (add_candidate_1): When looking for identical candidates, take
13207         AINC_USE into account.  Set it for new candidates.
13208         (force_expr_to_var_cost): Cast target_spill_cost to int.
13209         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
13210         All callers changed.  Check for availability of autoinc addressing
13211         modes, both in general for a given mode, and in the specific use case.
13212         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
13213         changed.
13214         (get_computation_cost): Likewise.
13215         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
13216         add_autoinc_candidates): New static functions.
13217         (add_candidate): Call add_autoinc_candidates for candidates based on
13218         a USE_ADDRESS use.
13219         (find_iv_candidates): Call set_autoinc_for_original_candidates.
13220         (determine_use_iv_cost_address): If we have an autoinc candidate at
13221         the matching use, verify autoinc is possible and subtract the cost
13222         of the candidate's step from the cost.
13223         (determine_iv_cost): Record the cost of the increment in the COST_STEP
13224         member of the candidate.
13225         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
13226         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
13228 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
13230         * config.build (ia64-hp-*vms*): New target.
13231         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13232         with ia64-hp-*vms*.
13233         * config.gcc (ia64-hp-*vms*): New target.
13234         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13235         with ia64-hp-*vms*.
13236         * config.host (ia64-hp-*vms*): New target.
13237         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
13238         with ia64-hp-*vms*.
13240 2009-08-08  Richard Guenther  <rguenther@suse.de>
13242         PR tree-optimization/40991
13243         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
13245 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
13247         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
13248         mode check.  Do truncations in an integer mode.
13249         (force_to_mode): Handle subregs for all mode types.  Only do
13250         arithmetic simplifications on integer modes.
13252 2009-08-07  Richard Guenther  <rguenther@suse.de>
13254         PR tree-optimization/40999
13255         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
13256         (maybe_fold_reference): Lookup constant initializers.
13257         (fold_gimple_assign): Likewise.
13259 2009-08-07  Richard Guenther  <rguenther@suse.de>
13261         * tree-ssa.c (useless_type_conversion_p_1): Only for types
13262         that require structural equality defer to the langhook.
13264 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13266         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
13267         comments.
13268         (struct ipa_pass_through_data): New type.
13269         (struct ipa_ancestor_jf_data): New type.
13270         (union jump_func_value): Removed field formal_id, added fields
13271         pass_through and ancestor.
13272         (struct ipa_param_call_note): Changed type of formal_id to int from
13273         unsigned.
13274         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
13275         operations jump functions and ancestor jump functions.
13276         (compute_complex_pass_through): New function.
13277         (compute_scalar_jump_functions): Call compute_complex_pass_through,
13278         reflect changes in the jump function strucutre.
13279         (update_jump_functions_after_inlining): Ignore complex pass-through
13280         and ancestor jump functions.
13281         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
13282         polynomial pass-through with operation jump functions.
13284 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
13286         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
13287         fde->dw_fde_begin as begin label instead of hot/cold label.
13288         Use LLSDAC label instead of LLSDA for second section lsda.
13289         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
13290         label instead of LLSDA if it is true.
13291         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
13292         callers.
13293         * except.c (add_call_site, dw2_size_of_call_site_table): Add
13294         SECTION argument.  Use it as index into crtl->eh.call_site_record
13295         array.
13296         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
13297         use it to determine how to print table entries instead of using
13298         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
13299         label instead of normal begin label as base.
13300         (sjlj_assign_call_site_values): Adjust add_call_site caller.
13301         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
13302         ensure no EH range spans between sections and that landing pads
13303         are always in the corresponding section.
13304         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
13305         for crtl->eh.call_site_record being an array rather than scalar.
13306         (output_one_function_exception_table): New function, copied
13307         from output_function_exception_table.  Adjust
13308         dw2_size_of_call_site_table, dw2_output_call_site_table
13309         callers.  For SECOND section use *C suffixed labels.
13310         (output_function_exception_table): Call
13311         output_one_function_exception_table and, when doing hot/cold
13312         partitioning, also another time for the second section.
13313         * opts.c: Include except.h.
13314         (decode_options): Allow -freorder-blocks-and-partition with
13315         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
13316         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
13317         * function.h (struct rtl_eh): Change call_site_record from
13318         scalar into array of 2 elements.
13320 2009-08-07  Martin Jambor  <mjambor@suse.cz>
13322         * ipa-prop.c (count_formal_params_1): New function.
13323         (ipa_get_vector_of_formal_parms): New function.
13324         (get_vector_of_formal_parm_types): New function.
13325         (ipa_modify_formal_parameters): New function.
13326         (ipa_modify_call_arguments): New function.
13327         (index_in_adjustments_multiple_times_p): New function.
13328         (ipa_combine_adjustments): New function.
13329         (ipa_dump_param_adjustments): New function.
13330         * ipa-prop.h (struct ipa_parm_adjustment): New type.
13331         (ipa_get_vector_of_formal_parms): Declare.
13332         (ipa_modify_formal_parameters): Declare.
13333         (ipa_modify_call_arguments): Declare.
13334         (ipa_combine_adjustments): Declare.
13335         (ipa_dump_param_adjustments): Declare.
13336         (build_ref_for_offset): Declare.
13337         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
13338         * tree-sra.c: Include ipa-prop.c.
13339         (build_ref_for_offset): Make public.
13341 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
13343         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
13345 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
13347         * gcc/doc/extend.texi (__builtin_extract_return_address)
13348         (__builtin_frob_return_address): Document.
13350 2009-08-06  Paul Brook  <paul@codesourcery.com>
13352         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
13353         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
13354         implementation on ARMv6-M.
13356 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13358         * doc/extend.texi (pcs): Document new attribute for ARM.
13360 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13362         * arm.c (pcs_attribute_args): Comment out unsupported attribute
13363         variants.
13365 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13367         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
13368         warning ().
13370 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13372         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
13374 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
13376         Merge ARM/hard_vfp_branch to trunk.
13378         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
13380         * arm.c (libcall_eq): New function.
13381         (libcall_hash): New function.
13382         (add_libcall): New function.
13383         (arm_libcall_uses_aapcs_base): New function.
13384         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
13385         libcalls using the base PCS.
13386         (arm_init_cumulative_args): Likewise.
13388         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
13390         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
13391         Use base ABI for conversion libfuncs between HFmode and SFmode.
13393         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13395         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
13396         V4SImode as representatives of all 64-bit and 128-bit vector
13397         types.  Allow vector types without vector modes.
13398         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
13399         without vector modes like BLKmode.
13400         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
13401         BLKmode.  Avoid unsupported vector modes or TImode moves for
13402         non-TARGET_NEON.
13403         (aapcs_vfp_allocate_return_reg): Likewise.
13404         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
13405         V8QImode if TARGET_NEON || TARGET_IWMMXT.
13407         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13409         * config/arm/arm.c (arm_handle_pcs_attribute): New.
13410         (arm_get_pcs_model): Pass attribute arguments to
13411         arm_pcs_from_attribute.
13412         (arm_init_cumulative_args): Use base AAPCS for conversions from
13413         floating-point types to DImode.
13414         (arm_attribute_table): Add pcs attribute.
13415         (arm_handle_pcs_attribute): New.
13416         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
13417         conversions from floating-point types to DImode, also declare them
13418         to use base AAPCS and declare functions they call to use base
13419         AAPCS and their RTABI names.
13421         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
13423         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
13424         -mfloat-abi=hard not being supported for VFP.
13426         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
13428         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
13429         SYMBOL_REF to hard_libcall_value.
13431         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13432             Richard Earnshaw  <rearnsha@arm.com>
13434         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
13435         has been put on the stack, all remaining co-processory arguments for
13436         that co-processor also go on the stack.
13438         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
13440         * config/arm/arm.c (arm_return_in_memory): Handle returning
13441         vectors of suitable size in registers also for AAPCS case.
13443         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
13445         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
13447         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
13449         ARM Hard-VFP calling convention
13450         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
13451         * target.h (gcc_target): Add libcall_value to table of call hooks.
13452         * targhooks.h (default_libcall_value): Default implementation.
13453         * targhooks.c (default_libcall_value): Likewise.
13454         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
13455         * optabs.c (expand_unop): Use it.
13456         * expr.h (hard_libcall_value): Pass the function RTX through.
13457         * calls.c (emit_library_call_value_1): Update call to
13458         hard_libcall_value.
13459         * explow.c (hard_libcall_value): Use new target hook.
13460         * config/arm/arm.c: Include cgraph.h
13461         (TARGET_FUNCTION_VALUE): Override default hook.
13462         (arm_pcs_default): New variable.
13463         (arm_override_options): Don't fault hard calling convention with VFP.
13464         Add support for AAPCS variants.
13465         (arm_function_value): Make static.  Handle AAPCS variants.
13466         (arm_libcall_value): New function.
13467         (arm_apply_result_size): Handle VFP registers in results.
13468         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
13469         conventions.
13470         (pcs_attribute_args): New variable.
13471         (arm_pcs_from_attribute): New function.
13472         (arm_get_pcs_model): New function.
13473         (aapcs_vfp_cum_init): New function.
13474         (aapcs_vfp_sub_candidate): New function.
13475         (aapcs_vfp_is_return_candidate): New function.
13476         (aapcs_vfp_is_call_candidate): New function.
13477         (aapcs_vfp_allocate): New function.
13478         (aapcs_vfp_allocate_return_reg): New function.
13479         (aapcs_vfp_advance): New function.
13480         (aapcs_cp_arg_layout): New variable.
13481         (aapcs_select_call_coproc): New function.
13482         (aapcs_select_return_coproc): New function.
13483         (aapcs_allocate_return_reg): New function.
13484         (aapcs_libcall_value): New function.
13485         (aapcs_layout_arg): New function.
13486         (arm_init_cumulative_args): Initialize AAPCS args data.
13487         (arm_function_arg): Handle AAPCS variants using new interface.
13488         (arm_arg_parital_bytes): Likewise.
13489         (arm_function_arg_advance): New function.
13490         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
13491         calling conventions.
13492         (arm_setup_incoming_varargs): Handle new AAPCS args data.
13493         * arm.h (NUM_VFP_ARG_REGS): Define.
13494         (LIBCALL_VALUE): Update.
13495         (FUNCTION_VALUE): Delete.
13496         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
13497         (arm_pcs): New enum.
13498         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
13499         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
13500         (FUNCTION_ARG_REGNO_P): Add VFP regs.
13501         * arm-protos.h (arm_function_arg_advance): Add.
13502         (aapcs_libcall_value): Add.
13503         (arm_function_value): Delete.
13505 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
13506             H.J. Lu  <hongjiu.lu@intel.com>
13508         PR target/40957
13509         * config/i386/i386.c (standard_sse_mode_p): Remove.
13510         (standard_sse_constant_p): Return 2 for integer mode
13511         vector_all_ones_operand when SSE2 is enabled.
13512         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
13513         (ix86_expand_vector_move): Do not check for negative values from
13514         standard_sse_constant_p.
13516 2009-08-06  Richard Guenther  <rguenther@suse.de>
13518         * tree-ssa.c (useless_type_conversion_p_1): Make function and
13519         array type comparisons frontend independent.
13520         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
13521         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
13522         out array reference lower bound and element size operands.
13523         (ao_ref_init_from_vn_reference): Properly compute the offset
13524         for ARRAY_RANGE_REF.
13525         (vn_reference_fold_indirect): Fill out array reference lower
13526         bound and element size operands.
13527         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
13528         a non gimple valued reference operand which can happen for
13529         array reference lower bound or element size.
13530         (create_component_ref_by_pieces_1): Properly generate the
13531         element size operand for array references.
13533 2009-08-06  Richard Guenther  <rguenther@suse.de>
13535         PR tree-optimization/40964
13536         * tree.c (iterative_hash_host_wide_int): Export.
13537         * tree.h (iterative_hash_host_wide_int): Declare.
13538         * tree-ssa-structalias.c (heapvar_map): New struct.
13539         (heapvar_map_eq): New function.
13540         (heapvar_map_hash): Likewise.
13541         (heapvar_lookup): Adjust.
13542         (heapvar_insert): Likewise.
13543         (make_constraint_from_heapvar): Allow multiple heap variables
13544         per decl at different offsets.
13545         (init_alias_heapvars): Adjust.
13547 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13549         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
13550         * mips_output_sync_loop (mips_output_sync_loop): Only emit
13551         trailing sync if TARGET_SYNC_AFTER_SC.
13553 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
13555         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
13556         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
13557         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
13558         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
13559         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
13560         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
13561         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13562         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
13563         test_and_set_12): Rewrite calls to mips_output_sync_loop.
13564         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
13565         the prototype declaration match the definition.
13566         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
13567         instructions explicitly.  Add barrier_before and operands
13568         parameters.
13569         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
13570         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
13571         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
13572         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
13573         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
13574         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
13576 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
13578         * tree-ssa-alias.c: Fix intervals to use [) syntax.
13580 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
13581             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13583         PR target/40906
13584         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
13585         source operand.
13587 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
13589         PR rtl-optimization/40924
13590         * dse.c (canon_address): Before calling cselib_expand_value_rtx
13591         make sure canon_rtx (mem_address) isn't simpler than
13592         canon_rtx (expanded_mem_address).
13594 2009-08-05  Li Feng  <nemokingdom@gmail.com>
13596         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
13597         for each poly_bb_p.
13598         (build_scop_drs): Build alias set for each SCoP.
13600 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
13602         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
13603         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
13604         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
13605         (MIPS_ARCH_FLOAT_SPEC): Likewise.
13606         (BASE_DRIVER_SELF_SPECS): Likewise.
13608 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
13610         * tree-ssa-alias.c: Fix some comment typos.
13612 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13614         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
13615         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
13617 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
13619         PR c/39902
13620         * simplify-rtx.c (simplify_binary_operation_1): Disable
13621         simplifications for decimal float operations.
13623 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
13625         PR middle-end/40943
13626         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
13627         operand of INDIRECT_REF.
13629 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
13631         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
13632         constants referencing TLS symbols.
13634 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
13636         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
13637         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
13639 2009-08-03  Richard Guenther  <rguenther@suse.de>
13641         * tree.c (make_vector_type): Build a main variant first,
13642         get the canonical one and then build the variant.
13643         * tree-ssa.c (useless_type_conversion_p_1): Handle
13644         fixed-point types.
13645         (useless_type_conversion_p): Conversions to pointers to
13646         incomplete record types are useless.
13648 2009-08-03  Richard Guenther  <rguenther@suse.de>
13650         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
13651         file will be created.
13652         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
13653         * toplev.c (compile_file): Adjust comment.
13655 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13657         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
13658         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
13659         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13660         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13661         (sh_promote_function_mode): Fix typo.
13663 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
13665         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
13667 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13669         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
13670         declaration arguments.
13672 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
13674         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
13675         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
13676         (ix86_split_ashl): Ditto.
13677         (ix86_expand_vector_init_one_nonzero): Ditto.
13678         (ix86_expand_vector_set): Ditto.
13679         (ix86_expand_reduc_v4sf): Ditto.
13681 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13683         * explow.c (promote_function_mode): Remove assert.
13684         * config/sh/sh.c (sh_promote_function_mode): Declare.
13686 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13688         * config/pa/pa.c (pa_promote_function_mode): Declare.
13689         Change to static.  Fix promote_mode call.
13691         * gthr-dce.h (CONST_CAST2): Define if not defined.
13692         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
13694         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
13696 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
13698         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13699         now write-only variable unsignedp.
13700         (expand_expr_real_1): Use promote_decl_mode.
13701         * expr.h (promote_function_mode, promote_decl_mode): New.
13702         (promote_mode): Remove last argument.
13703         * function.c (assign_temp): Drop last argument of promote_mode.
13704         (assign_parm_find_data_types): Use promote_function_mode.
13705         (assign_parm_setup_reg): Likewise.
13706         (expand_function_end): Use promote_function_mode.
13707         * calls.c (initialize_argument_information): Use promote_function_mode.
13708         (precompute_arguments): Use promote_mode instead of checking if
13709         only PROMOTE_FUNCTION_MODE is defined.
13710         (expand_call): When making sibcall decisions, use promote_function_mode.
13711         Below, remove an if for targetm.calls.promote_function_return and
13712         and use promote_function_mode.
13713         (emit_library_call_value_1): Use promote_function_mode, fix bug
13714         where promote_mode was passed FOR_CALL == 0 for a return value in an
13715         assertion.
13716         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13717         * explow.c (promote_function_mode, promote_decl_mode): New.
13718         (promote_mode): Keep only the FOR_CALL == 0 case.
13719         * combine.c (setup_incoming_promotion): Remove test of
13720         promote_function_args.  Use promote_function_mode.
13721         * stmt.c (expand_value_return): Use promote_decl_mode.
13722         (expand_decl): Use promote_decl_mode.
13724         * expr.c (store_constructor): Use promote_decl_mode.  Remove
13725         now write-only variable unsignedp.
13726         (expand_expr_real_1): Use promote_decl_mode.
13727         * expr.h (promote_function_mode, promote_decl_mode): New.
13728         (promote_mode): Remove last argument.
13729         * function.c (assign_temp): Drop last argument of promote_mode.
13730         (assign_parm_find_data_types): Use promote_function_mode.
13731         (assign_parm_setup_reg): Likewise.
13732         (expand_function_end): Use promote_function_mode.
13733         * calls.c (initialize_argument_information): Use promote_function_mode.
13734         (precompute_arguments): Use promote_mode instead of checking if
13735         only PROMOTE_FUNCTION_MODE is defined.
13736         (expand_call): When making sibcall decisions, use promote_function_mode.
13737         Below, remove an if for targetm.calls.promote_function_return and
13738         and use promote_function_mode.
13739         (emit_library_call_value_1): Use promote_function_mode, fix bug
13740         where promote_mode was passed FOR_CALL == 0 for a return value in an
13741         assertion.
13742         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
13743         * explow.c (promote_function_mode, promote_decl_mode): New.
13744         (promote_mode): Keep only the FOR_CALL == 0 case.
13745         * combine.c (setup_incoming_promotion): Remove test of
13746         promote_function_args.  Use promote_function_mode.
13747         * stmt.c (expand_value_return): Use promote_decl_mode.
13748         (expand_decl): Use promote_decl_mode.
13750         * explow.c (promote_function_mode): Just call the target hook.
13751         * targhooks.c (default_promote_function_mode,
13752         default_promote_function_mode_always_promote): New.
13753         * targhooks.h (default_promote_function_mode,
13754         default_promote_function_mode_always_promote): Declare.
13755         * target.h (promote_function_args, promote_function_return): Remove.
13756         (promote_function_mode): New.
13757         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
13758         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13759         (TARGET_PROMOTE_FUNCTION_MODE): New.
13760         (TARGET_CALLS): Adjust.
13761         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
13762         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
13764         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
13765         * config/s390/s390.c (s390_promote_function_mode): ... here,
13766         with pointer handling.
13767         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13768         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13770         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
13771         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
13772         with pointer handling.
13773         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13774         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13776         * config/sh/sh-protos.h (sh_promote_function_mode): New.
13777         * config/sh/sh.c (sh_promote_function_mode): New.
13778         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13779         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13781         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
13782         * config/cris/cris.c (cris_promote_function_mode): ... here.
13783         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13784         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13786         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
13787         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
13788         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13789         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
13791         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
13792         * config/arm/arm.c (arm_promote_function_mode): ... here, without
13793         complex type handling.
13794         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13795         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13797         * config/pa/pa.c (pa_promote_function_mode): New.
13798         (TARGET_PROMOTE_FUNCTION_MODE): Define.
13799         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13801         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
13802         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
13803         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
13804         * config/xtensa/xtensa.c: Likewise.
13805         * config/stormy16/stormy16.c: Likewise.
13806         * config/iq2000/iq2000.c: Likewise.
13807         * config/rs6000/rs6000.c: Likewise.
13808         * config/picochip/picochip.c: Likewise.
13809         * config/arc/arc.c: Likewise.
13810         * config/mcore/mcore.c: Likewise.
13811         * config/score/score.c: Likewise.
13812         * config/mips/mips.c: Likewise.
13813         * config/bfin/bfin.c: Likewise.
13814         * config/ia64/ia64.c: Likewise (disabled though).
13816         * config/frv/frv.h: Remove pointless remark.
13818         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
13819         TARGET_PROMOTE_FUNCTION_ARGS,
13820         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
13821         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
13823 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13825         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
13826         -floop-parallelize-all.
13827         * toplev.c (process_options): Rename flag_graphite_force_parallel to
13828         flag_loop_parallelize_all.
13829         * tree-ssa-loop.c (gate_graphite_transforms): Same.
13830         * graphite.c (graphite_transform_loops): Same.
13831         * common.opt: Same.
13832         * graphite-poly.c (apply_poly_transforms): Same.
13834 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
13836         PR tree-optimization/40914
13837         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
13838         if set, then check the delta field of the PMF record.
13839         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
13840         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
13841         call is stored in the delta.
13843 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
13845         * config/mips/mips.md (*clear_upper32_dext): New pattern.
13847 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
13849         * config/i386/bsd.h (ASM_BYTE): New define.
13850         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
13851         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
13852         .byte.  Use fputs or putc instead of fprintf where appropriate.
13853         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
13854         fputs or putc instead of fprintf where appropriate.
13855         * config/i386/i386elf.h: Ditto.
13856         * config/i386/sysv4.h: Ditto.
13858         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
13859         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
13860         (*tls_global_dynamic_64): Ditto.
13862 2009-07-31  Christian Bruel  <christian.bruel@st.com>
13864         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
13866 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13868         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
13869         Remove dead code for MINUS.
13871 2009-07-31  Anthony Green  <green@moxielogic.com>
13873         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
13874         $r12 in prologue.
13875         (moxie_expand_epilogue): Ditto for epilogue.
13876         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
13877         incoming arguments.
13878         (moxie_function_arg): Ditto.
13879         (moxie_pass_by_reference): Ditto.
13880         (moxie_arg_partial_bytes): Ditto.
13881         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
13882         (FUNCTION_ARG_ADVANCE) Ditto.
13883         (REG_PARM_STACK_SPACE) Ditto.
13884         (FUNCTION_ARG_REGNO_P) Dito.
13886         * config.gcc: Add moxie linux config support.
13887         * gcc/config/moxie/uclinux.h: New file.
13889 2009-07-31  DJ Delorie  <dj@redhat.com>
13891         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13892         (UNSPECV_SP_SWITCH_E): New.
13893         (sp_switch_1): Change to an unspec.
13894         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13895         replace $r15.
13896         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
13897         reference the new stack's address
13899 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13901         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
13902         graphite-clast-to-gimple.o, graphite-dependences.o,
13903         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13904         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
13905         (graphite-blocking.o,
13906         graphite-clast-to-gimple.o, graphite-dependences.o,
13907         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
13908         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
13909         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
13910         * cfgloop.h (struct loop): Add can_be_parallel field.
13911         * common.opt (fgraphite-identity): Moved up.
13912         (fgraphite-force-parallel): New flag.
13913         * graphite.c: Rewrite.
13914         * graphite.h: Rewrite.
13915         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
13916         after Graphite.
13917         * toplev.c (graphite_out_file): New file descriptor.
13918         (graphite_in_file): New.
13919         (process_options): flag_graphite_force_parallel cannot be used without
13920         Graphite.
13921         * tree-ssa-loop.c: Include toplev.h.
13922         (gate_graphite_transforms): Enable flag_graphite for
13923         flag_graphite_force_parallel.
13925 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13927         * ChangeLog.graphite: New.
13928         * graphite-blocking.c: New.
13929         * graphite-clast-to-gimple.c: New.
13930         * graphite-clast-to-gimple.h: New.
13931         * graphite-dependences.c: New.
13932         * graphite-dependences.h: New.
13933         * graphite-interchange.c: New.
13934         * graphite-poly.c: New.
13935         * graphite-poly.h: New.
13936         * graphite-ppl.c: New.
13937         * graphite-ppl.h: New.
13938         * graphite-scop-detection.c: New.
13939         * graphite-scop-detection.h: New.
13940         * graphite-sese-to-poly.c: New.
13941         * graphite-sese-to-poly.h: New.
13942         * sese.c: New.
13943         * sese.h: New.
13945 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13947         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
13948         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
13950 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13952         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
13953         (scev_is_linear_expression): Return false if the evolution is not
13954         affine multivariate.
13956 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13958         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
13959         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
13961 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13963         * tree-data-ref.c (debug_data_references): New.
13964         (debug_data_reference): New.
13965         * tree-data-ref.h (debug_data_references): Declared.
13966         (debug_data_reference): Declared.
13968 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13970         * tree-data-ref.c (stmt_simple_memref_p: Removed.
13971         * tree-data-ref.h (scop_p): Removed.
13972         (struct data_reference): Remove field scop.
13973         (DR_SCOP): Removed.
13974         (stmt_simple_memref_p): Removed.
13976 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13978         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
13979         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
13980         basic block empty.
13982 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13984         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
13986 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13988         * doc/invoke.texi (-fgraphite-identity): Documented.
13990 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13992         * tree-scalar-evolution.c: Fix comment.
13993         (instantiate_scev_1): Return unknow from scev instantiation if the
13994         result is not above instantiate_below.
13996 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
13998         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
13999         static anymore.  Instantiate the symbols that may have been introduced
14000         by chrec_apply.
14001         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
14002         Declared.
14004 2009-07-30  DJ Delorie  <dj@redhat.com>
14006         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
14007         .vliw directive to VLIW sections.
14009 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14011         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
14012         New variables.
14013         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
14014         (AUTOHEADER): New variable.
14015         ($(srcdir)/cstamp-h.in): Use it.
14017 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
14018             Pat Haugen  <pthaugen@us.ibm.com>
14019             Revital Eres <ERES@il.ibm.com>
14021         * config/rs6000/vector.md (VEC_F): Add VSX support.
14022         (VEC_A): Ditto.
14023         (VEC_N): Ditto.
14024         (mov<mode>): Ditto.
14025         (vector_load_<mode>): Ditto.
14026         (vector_store_<mode>): Ditto.
14027         (vector GPR move split): Ditto.
14028         (vec_reload_and_plus_<mptrsize>): Ditto.
14029         (vec_reload_and_reg_<mptrsize>): Ditto.
14030         (add<mode>3): Ditto.
14031         (sub<mode>3): Ditto.
14032         (mul<mode>3): Ditto.
14033         (neg<mode>2): Ditto.
14034         (abs<mode>2): Ditto.
14035         (smin<mode>3): Ditto.
14036         (smax<mode>3): Ditto.
14037         (vector_eq<mode>): Ditto.
14038         (vector_gt<mode>): Ditto.
14039         (vector_ge<mode>): Ditto.
14040         (vector_gtu<mode>): Ditto.
14041         (vector_select_<mode>_uns): Ditto.
14042         (vector_eq_<mode>_p): Ditto.
14043         (vector_gt_<mode>_p): Ditto.
14044         (vector_ge_<mode>_p): Ditto.
14045         (vector_gtu_<mode>_p): Ditto.
14046         (cr6_test_for_zero): Ditto.
14047         (cr6_test_for_zero_reverse): Ditto.
14048         (cr6_test_for_lt): Ditto.
14049         (cr6_test_for_lt_reverse): Ditto.
14050         (xor<mode>3): Ditto.
14051         (ior<mode>3): Ditto.
14052         (and<mode>3): Ditto.
14053         (one_cmpl<mode>2): Ditto.
14054         (nor<mode>2): Ditto.
14055         (andc<mode>2): Ditto.
14056         (float<VEC_int<mode>2): Ditto.
14057         (unsigned_float<VEC_int><mode>2): Ditto.
14058         (fix_trunc<mode><VEC_int>2): Ditto.
14059         (fixuns_trunc<mode><VEC_int>2): Ditto.
14060         (vec_init<mode>):
14061         (vec_set<mode>): Ditto.
14062         (vec_extract<mode>): Ditto.
14063         (vec_interleave_highv4sf): Ditto.
14064         (vec_interleave_lowv4sf): Ditto.
14065         (vec_realign_load_<mode>): Ditto.
14066         (vec_shl_<mode>): Ditto.
14067         (vec_shr_<mode>): Ditto.
14068         (div<mode>3): New patterns for VSX.
14069         (vec_interleave_highv2df): Ditto.
14070         (vec_interleave_lowv2df): Ditto.
14071         (vec_pack_trunc_v2df): Ditto.
14072         (vec_pack_sfix_trunc_v2df): Ditto.
14073         (vec_pack_ufix_trunc_v2df): Ditto.
14074         (vec_unpacks_hi_v4sf): Ditto.
14075         (vec_unpacks_lo_v4sf): Ditto.
14076         (vec_unpacks_float_hi_v4si): Ditto.
14077         (vec_unpacks_float_lo_v4si): Ditto.
14078         (vec_unpacku_float_hi_v4si): Ditto.
14079         (vec_unpacku_float_lo_v4si): Ditto.
14080         (movmisalign<mode>): Ditto.
14081         (vector_ceil<mode>2): New patterns for vectorizing math library.
14082         (vector_floor<mode>2): Ditto.
14083         (vector_btrunc<mode>2): Ditto.
14084         (vector_copysign<mode>3): Ditto.
14086         * config/rs6000/predicates.md (easy_vector_constant_msb): New
14087         predicate for setting the high bit in each word, used for copysign.
14089         * config/rs6000/ppc-asm.h (f19): Whitespace.
14090         (f32-f63): Define if VSX.
14091         (v0-v31): Define if Altivec.
14092         (vs0-vs63): Define if VSX.
14094         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
14096         * config/rs6000/power7.md: New file, provide tuning parameters for
14097         -mcpu=power7.
14099         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
14100         (rs6000_cpu_cpp_builtins): Ditto.
14101         (altivec_overloaded_builtins): Ditto.
14102         (altivec_resolve_overloaded_builtin): Ditto.
14104         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
14105         debug switch to disable vectorizing simple math builtin
14106         functions.
14108         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14109         Vectorize simple math builtin functions.
14110         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14111         hook to vectorize math builtins.
14112         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
14113         (rs6000_builtin_conversion): Add VSX/power7 support.
14114         (rs6000_builtin_vec_perm): Ditto.
14115         (vsplits_constant): Add support for loading up a vector constant
14116         with just the high bit set in each part.
14117         (rs6000_expand_vector_init): Add VSX/power7 support.
14118         (rs6000_expand_vector_set): Ditto.
14119         (rs6000_expand_vector_extract): Ditto.
14120         (rs6000_emit_move): Ditto.
14121         (bdesc_3arg): Ditto.
14122         (bdesc_2arg): Ditto.
14123         (bdesc_1arg): Ditto.
14124         (rs6000_expand_ternop_builtin): Ditto.
14125         (altivec_expand_builtin): Ditto.
14126         (rs6000_expand_unop_builtin): Ditto.
14127         (rs6000_init_builtins): Ditto.
14128         (altivec_init_builtins): Ditto.
14129         (builtin_function_type): Ditto.
14130         (rs6000_common_init_builtins): Ditto.
14131         (rs6000_handle_altivec_attribute); Ditto.
14132         (rs6000_mangle_type): Ditto.
14133         (rs6000_vector_mode_supported_p): Ditto.
14134         (rs6000_mode_dependent_address): Altivec addresses with AND -16
14135         are mode dependent.
14137         * config/rs6000/vsx.md: New file for VSX support.
14139         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
14140         identifing values with just the most significant bit set.
14141         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
14142         vectorized builtins.
14144         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
14145         (UNSPEC_VRFIM): Delete.
14146         (splitter for loading up vector with most significant bit): New
14147         splitter for vectorizing copysign.
14148         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
14149         vectorizing simple math functions.
14150         (altivec_vrfip): Add support for vectorizing simple math functions.
14151         (altivec_vrfim): Ditto.
14152         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
14154         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
14155         (power7.md, vsx.md): Include for power7 support.
14156         (copysigndf3): Use VSX instructions if -mvsx.
14157         (negdf2_fpr): Ditto.
14158         (absdf2_fpr): Ditto.
14159         (nabsdf2_fpr): Ditto.
14160         (adddf3_fpr): Ditto.
14161         (subdf3_fpr): Ditto.
14162         (muldf3_fpr): Ditto.
14163         (divdf3_fpr): Ditto.
14164         (fix_truncdfdi2_fpr): Ditto.
14165         (cmpdf_internal1): Ditto.
14166         (fred, fred_fpr): Convert into expander/insn to add VSX support.
14167         (btruncdf2, btruncdf2_fpr): Ditto.
14168         (ceildf2, ceildf2_fpr): Ditto.
14169         (floordf2, floordf2_fpr): Ditto.
14170         (floatdidf2, floatdidf2_fpr): Ditto.
14171         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
14172         (fmsubdf4_fpr): Ditto.
14173         (fnmadddf4_fpr_1): Ditto.
14174         (fnmadddf4_fpr_2): Ditto.
14175         (fnmsubdf4_fpr_1): Ditto.
14176         (fnmsubdf4_fpr_2): Ditto.
14177         (fixuns_truncdfdi2): Add expander for VSX support.
14178         (fix_truncdfdi2): Ditto.
14179         (fix_truncdfsi2): Ditto.
14180         (ftruncdf2): Ditto.
14181         (btruncsf2): Whitespace.
14182         (movdf_hardfloat32): Add support for VSX registers.
14183         (movdf_softfloat32): Ditto.
14184         (movdf_hardfloat64): Ditto.
14185         (movdf_hardfloat64_mfpgpr): Ditto.
14186         (movdf_softfloat64): Ditto.
14187         (movti splitters): Add check for vector registers supporting
14188         TImode in the future.
14189         (bpermd): Add power7 bpermd instruction.
14191         * config/rs6000/altivec.h (vec_div): Define if VSX.
14192         (vec_mul): Ditto.
14193         (vec_msub): Ditto.
14194         (vec_nmadd): Ditto.
14195         (vec_nearbyint): Ditto.
14196         (vec_rint): Ditto.
14197         (vec_sqrt): Ditto.
14198         (all predicates): Use the generic builtin function, and not the V4SF
14199         specific function so that the predicates will work with VSX's V2DF.
14200         (vec_all_*): Ditto.
14201         (vec_any_*): Ditto.
14203         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
14204         Document new VSX functions and types.
14206         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
14207         switches.
14209         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
14210         "wa", and "j" constraints.  Modify "v" to talk about Altivec
14211         instead of just vector.
14213 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
14215         PR debug/26475
14216         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
14217         location for phi arguments.
14218         (rewrite_update_phi_arguments): Find locations for reaching defs.
14219         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
14220         Add location to add_phi_arg calls.
14221         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
14222         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
14223         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
14224         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
14225         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
14226         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
14227         * tree-phinodes.c (make_phi_node): Initialize location.
14228         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
14229         (add_phi_arg): Add location parameter.
14230         (remove_phi_arg_num): Move location when moving phi argument.
14231         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
14232         location.
14233         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
14234         slpeel_update_phi_nodes_for_guard1,
14235         slpeel_update_phi_nodes_for_guard2,
14236         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
14237         vect_loop_versioning): Set locations.
14238         * tree-parloops.c (create_phi_for_local_result,
14239         transform_to_exit_first_loop, create_parallel_loop): Add locations.
14240         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
14241         * tree-vect-loop.c (get_initial_def_for_induction,
14242         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
14243         locations.
14244         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
14245         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
14246         (gimple_phi_arg_set_location): New.  Set locus.
14247         (gimple_phi_arg_has_location): New.  Check for locus.
14248         (redirect_edge_var_map_location): New.  Return locus from var_map.
14249         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
14250         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
14251         combining PHI arguments.
14252         (cond_store_replacement): Set location.
14253         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
14254         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
14255         scop_add_exit_phis_edge): Add locations.
14256         * tree-cfgcleanup.c (remove_forwarder_block,
14257         remove_forwarder_block_with_phi): Add locations.
14258         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
14259         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
14260         locations.
14261         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
14262         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
14263         flush_pending_stmts): Add source location.
14264         * lambda-code.c (perfect_nestify): Maintain location stack with argument
14265         stack to preserve locations.
14266         * tree-vect-stmts.c (vectorizable_load): Add location.
14267         * tree-inline.c (copy_phis_for_bb): Copy locus.
14268         (setup_one_parameter): Add call locus to inlined parameter stmts.
14269         (initialize_inlined_parameters): Pass in call location as parameter
14270         assignment locus.
14271         (tree_function_versioning): Pass location to setup_one_parameter.
14272         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
14273         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
14274         copy and edge lists.
14275         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
14276         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
14277         locus parameter and override the stmt default if provided.
14278         (new_elim_graph, clear_elim_graph, delete_elim_graph,
14279         elim_graph_add_edge, elim_graph_remove_succ_edge,
14280         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
14281         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
14282         eliminate_phi):  Add locus info in elimination graph for each edge and
14283         value copy.
14284         (insert_backedge_copies): Copy locus if present.
14285         * tree-flow.h (struct _edge_var_map): Add locus field.
14286         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
14287         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
14288         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
14289         locations.
14290         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
14292 2009-07-30  Martin Jambor  <mjambor@suse.cz>
14294         PR tree-optimization/40570
14295         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
14296         use inlining loops.
14298 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
14300         * ssa-loop-manip.c: Include langhooks.h.
14301         (rewrite_phi_with_iv): New.
14302         (rewrite_all_phi_nodes_with_iv): New.
14303         (canonicalize_loop_ivs): Move here from tree-parloops.c.
14304         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
14305         * tree-parloops.c (loop_parallel_p): Move out all conditions
14306         except dependency check.
14307         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
14308         (gen_parallel_loop): Call canonicalize_loop_ivs without
14309         reduction_list argument.
14310         (build_new_reduction): New.
14311         (gather_scalar_reductions): New.
14312         (try_get_loop_niter): New.
14313         (try_create_reduction_list): New.
14314         (parallleize_loops): Change the parallel conditions check.
14315         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
14316         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
14318 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14320         * opt-functions.awk (opt_args): Allow argument to be enclosed in
14321         curly braces.
14322         * doc/options.texi (Option properties):  Mention new quoting syntax.
14324 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14326         * config/alpha/alpha.c (alpha_start_function):
14327         Handle VMS_DEBUG_MAIN_POINTER
14328         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
14329         * doc/invoke.texi: Document -mdebug-main switch.
14331 2009-07-29  Richard Henderson  <rth@redhat.com>
14333         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
14334         (cgraph_create_edge_including_clones): Likewise.
14335         * tree-inline.c (copy_bb): Operate on the correct edges
14336         when updating the callgraph.
14338 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14340         * config/alpha/vms-cc.c: Deleted.
14341         * config/alpha/vms-ld.c: Deleted.
14342         * config/alpha/t-vms64: Moved to config/vms
14343         * config/alpha/vms-crt0-64.c: Moved to config/vms
14344         * config/alpha/vms-crt0.c: Moved to config/vms
14345         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
14346         * config/alpha/vms-psxcrt0.c: Moved to config/vms
14347         * config/alpha/xm-vms.h: Moved to config/vms
14348         * config/alpha/x-vms: Moved to config/vms
14349         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
14350         config/vms/t-vms.
14351         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
14352         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
14353         (version): Set.
14354         * config/vms/t-vms64: Moved here from config/alpha
14355         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
14356         (argc,argv,envp): Enforce 32bit malloc'ing.
14357         * config/vms/vms-psxcrt0-64.c: Likewise.
14358         * config/vms/vms-crt0.c: Moved here from config/alpha.
14359         * config/vms/vms-psxcrt0.c: Likewise.
14360         * config/vms/vms-crtl-64.h: New file.
14361         * config/vms/vms-crtl.h: New file.
14362         * config/vms/vms.opt: New file.
14363         * config/vms/xm-vms64.h: New file.
14364         * config/vms/xm-vms.h: Moved here from config/alpha.
14365         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
14366         Set.
14367         * config/vms/x-vms: Moved here from config/alpha.
14368         (version, VMS_EXTRA_PARTS): Moved to t-vms.
14369         (vms-ld.o, vms-cc.o): Removed.
14370         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
14372 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14374         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
14375         correct stack (obvious VMS fix).
14377 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
14379         * dwarf2out.c (output_file_names): Output VMS style file name, size,
14380         date, version info if VMS_DEBUGGING_INFO defined.
14381         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
14382         size, date calculating code moved here.
14384 2009-07-29  Paul Brook  <paul@codesourcery.com>
14386         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
14387         do_push/do_pop.
14389 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
14391         PR target/40577
14392         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
14393         to DImode when generating insq_le insn.
14395 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14397         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
14398         New macro set for VMS_DEBUGGGING_INFO.
14399         (AT_string_form): Use it.
14401 2009-07-28  DJ Delorie  <dj@redhat.com>
14403         * config/mep/mep.c (vtext_section): New.
14404         (vftext_section): New.
14405         (ftext_section): New.
14406         (mep_select_section): Add support for functions.
14407         (mep_unique_section): Likewise.
14408         (mep_asm_init_sections): Likewise.
14409         (mep_encode_section_info): Remove it from here.
14411         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
14413 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
14415         * tree.h (TREE_DEPRECATED): Document it is used for types too.
14416         (TYPE_VECTOR_OPAQUE): Use default_def_flag
14418 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
14420         * dwarf2out.c (output_file_names): Test new macro
14421         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
14422         (add_comp_dir_attribute): Likewise.
14424 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
14426         * config/i386/mingw-w64.h (LINK_SPEC): Add
14427         separating space between commands.
14429 2009-07-28  Jan Hubicka  <jh@suse.cz>
14431         PR tree-optimization/40759
14432         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
14433         for renaming.
14435 2009-07-27  DJ Delorie  <dj@redhat.com>
14437         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
14438         types are dword-aligned.
14439         (mep_expand_va_start): Likewise.
14441 2009-07-27  Olivier Hainque  <hainque@adacore.com>
14442             Douglas B Rupp  <rupp@gnat.com>
14444         * convert.c (convert_to_pointer): Don't assume the target
14445         pointer type is POINTER_SIZE long. Fetch its precision instead.
14447 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
14449         * system.h (fopen): Undefine if macro.
14451 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
14453         * dwarf2out.c (output_cfi_p): Removed.
14454         (output_cfis): New function.
14455         (output_fde): New function, split from output_call_frame_info.
14456         (output_call_frame_info): Use it.
14457         (dwarf2out_switch_text_section): Use output_cfis.
14459 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14461         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
14462         TARGET_BI_ARCH is specified without enabling SJLJ.
14463         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
14464         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
14466 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
14468         * arm.md (negdi2): Use DImode if forcing a value into a register.
14470 2009-07-26  Ira Rosen  <irar@il.ibm.com>
14472         PR tree-optimization/40801
14473         * tree-vect-stmts.c (vectorizable_call): Get previous copy
14474         of vector operand from the previous copy of vector statement.
14475         Pass the correct definition type value to
14476         vect_get_vec_def_for_stmt_copy().
14478 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14480         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
14481         const char ** conversion.
14483 2009-07-25 David Daney <ddaney@caviumnetworks.com>
14485         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
14486         fancy_abort() if !ENABLE_ASSERT_CHECKING.
14487         (gcc_unreachable): Invoke __builtin_unreachable() if
14488         !ENABLE_ASSERT_CHECKING.
14490 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14492         PR rtl-optimization/40445
14493         * emit-rtl.c (next_nonnote_insn_bb): New function.
14494         * rtl.h (next_nonnote_insn_bb): Declare new function.
14495         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
14496         with no successors that is the successor of the ENTRY_BLOCK.
14497         Continue from the top after removing an empty fallthrough block.
14498         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
14499         of next_nonnote_insn.
14501 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
14503         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
14505 2009-07-25  Martin Jambor  <mjambor@suse.cz>
14507         * c-common.c (c_common_attribute_table): New element for noclone.
14508         (handle_noclone_attribute): New function. Forward-declare.
14509         * tree-inline.c (tree_versionable_function_p): Check for noclone
14510         attribute.
14511         * doc/extend.texi (Labels as Values): Document need for noclone.
14512         (Function Attributes): Document noclone attribute.
14514 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
14516         PR rtl-optimization/34999
14517         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
14518         and dw_fde_switched_cold_to_hot fields.
14519         (output_cfi_p): New function.
14520         (output_call_frame_info): If fde->dw_fde_switched_sections,
14521         output 2 FDEs instead of one with corrupted header.
14522         (dwarf2out_do_cfi_startproc): New function.
14523         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
14524         and fde->dw_fde_switched_cold_to_hot.
14525         (dwarf2out_switch_text_section): Compute
14526         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
14527         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
14528         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
14529         Otherwise, compute fde->dw_fde_switch_cfi.
14531 2009-07-24  Cary Coutant  <ccoutant@google.com>
14533         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
14535 2009-07-24  Cary Coutant  <ccoutant@google.com>
14537         * cfghooks.c (split_block): Copy discriminator to new block.
14538         * tree-cfg.c (assign_discriminator): Check location of last
14539         instruction in block as well as first.
14541 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
14543         * config/i386/linux.c: Use fputs or putc instead of fprintf
14544         where appropriate.
14545         * config/i386/gas.h: Ditto.
14546         * config/i386/x86-64.h: Ditto.
14547         * config/i386/att.h: Ditto.
14549 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14551         * expmed.c (emit_store_flag): Use a recursive call to optimize the
14552         xor case.
14554 2009-07-24  Martin Jambor  <mjambor@suse.cz>
14556         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
14557         (ipa_push_func_to_list_1): Declare.
14558         (ipa_push_func_to_list): New function.
14560         * ipa-prop.c (ipa_push_func_to_list_1): New function.
14561         (ipa_init_func_list): Call ipa_push_func_to_list_1.
14562         (ipa_push_func_to_list): Removed.
14563         (ipa_pop_func_from_list): Clear node_enqueued flag.
14565 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14567         * config/s390/s390.c (override_options): Default
14568         max-unrolled-insns to 100 for z10 tuning.
14570 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
14572         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
14573         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
14574         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
14575         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
14576         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
14577         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
14578         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
14580 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
14582         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
14583         use default set in mingw32.h header.
14584         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
14585         64-bit /mingw/include path.
14586         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
14587         path.
14589 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
14591         PR rtl-optimization/40209
14592         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
14594 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14596         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
14597         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
14598         with the rest of string where appropriate.  Use fputs or putc
14599         instead of fprintf where appropriate.
14601 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14602             Pat Haugen  <pthaugen@us.ibm.com>
14603             Revital Eres <ERES@il.ibm.com>
14605         * config/rs6000/vector.md: New file.  Move most of the vector
14606         expander support here from altivec.md to allow for the VSX vector
14607         unit in the future.  Add support for secondary_reload patterns.
14608         Rewrite the patterns for vector comparison, and vector comparison
14609         predicate instructions so that the RTL expresses the desired
14610         behavior, instead of using unspec.
14612         * config/rs6000/constraints.md ("f" constraint): Use
14613         rs6000_constraints to hold the precalculated register class.
14614         ("d" constraint): Ditto.
14615         ("wd" constraint): New constraint for VSX.
14616         ("wf" constraint): Ditto.
14617         ("ws" constraint): Ditto.
14618         ("wa" constraint): Ditto.
14619         ("wZ" constraint): Ditto.
14620         ("j" constraint): Ditto.
14622         * config/rs6000/predicates.md (vsx_register_operand): New
14623         predicate for VSX.
14624         (vfloat_operand): New predicate for vector.md.
14625         (vint_operand): Ditto.
14626         (vlogical_operand): Ditto.
14627         (easy_fp_constant): If VSX, 0.0 is an easy constant.
14628         (easy_vector_constant): Add VSX support.
14629         (altivec_indexed_or_indirect_operand): New predicate for
14630         recognizing Altivec style memory references with AND -16.
14632         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
14633         for vector secondary reload support.
14634         (rs6000_vector_reg_class): Delete, replacing it with
14635         rs6000_constraints.
14636         (rs6000_vsx_reg_class): Ditto.
14637         (rs6000_constraints): New array to hold the register classes of
14638         each of the register constraints that can vary at runtime.
14639         (builtin_mode_to_type): New static array for builtin function type
14640         creation.
14641         (builtin_hash_table): New static hash table for builtin function
14642         type creation.
14643         (TARGET_SECONDARY_RELOAD): Define target hook.
14644         (TARGET_IRA_COVER_CLASSES): Ditto.
14645         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
14646         registers are 128 bits if VSX memory reference instructions are used.
14647         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
14648         unit is being used.
14649         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
14650         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
14651         Print several of the scheduling related parameters.
14652         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
14653         rs6000_constraints instead of rs6000_vector_reg_class.  Move
14654         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
14655         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
14656         Altivec.  Add VSX support.  Setup for secondary reload support on
14657         Altivec/VSX registers.
14658         (rs6000_override_options): Make power7 set the scheduling groups
14659         like the power5.  Add support for new debug switches to override
14660         the scheduling defaults.  Temporarily disable -mcpu=power7 from
14661         setting -mvsx.  Add support for debug switches -malways-hint,
14662         -msched-groups, and -malign-branch-targets.
14663         (rs6000_buitlin_conversion): Add support for returning unsigned
14664         vector conversion functions to fix regressions due to stricter
14665         type checking.
14666         (rs6000_builtin_mul_widen_even): Ditto.
14667         (rs6000_builtin_mul_widen_odd): Ditto.
14668         (rs6000_builtin_vec_perm): Ditto.
14669         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
14670         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
14671         to zero a register.
14672         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
14673         generated upstream.
14674         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
14675         VSX types for bit operations.  Changes to accomidate vector.md.
14676         (bdesc_2arg): Ditto.
14677         (bdesc_1arg): Ditto.
14678         (struct builtin_description_predicates): Rewrite predicate
14679         handling so that RTL describes the operation, instead of passing
14680         the instruction to be used as a string argument.
14681         (bdesc_altivec_preds): Ditto.
14682         (altivec_expand_predicate_builtin): Ditto.
14683         (altivec_expand_builtin): Ditto.
14684         (rs6000_expand_ternop_builtin): Use a switch instead of an if
14685         statement for vsldoi support.
14686         (altivec_expand_ld_builtin): Change to use new names from vector.md.
14687         (altivec_expand_st_builtin): Ditto.
14688         (paired_expand_builtin): Whitespace changes.
14689         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
14690         builtin_mode_to_type table for secondary reload.  Call
14691         builtin_function_type to build random builtin functions.
14692         (altivec_init_builtins): Change to use builtin_function_type to
14693         create builtin function types dynamically as we need them.
14694         (builtin_hash_function): New support for hashing the tree types
14695         for builtin function as we need it, rather than trying to build
14696         all of the trees that we need.  Add initial preliminary VSX support.
14697         (builtin_function_type): Ditto.
14698         (builtin_function_eq): Ditto.
14699         (builtin_hash_struct): Ditto.
14700         (rs6000_init_builtins): Ditto.
14701         (rs6000_common_init_builtins): Ditto.
14702         (altivec_init_builtins): Ditto.
14703         (rs6000_common_init_builtins): Ditto.
14704         (enum reload_reg_type): New enum for simplifing reg classes.
14705         (rs6000_reload_register_type): Simplify register classes into GPR,
14706         Vector, and other registers.  Altivec and VSX addresses in reload.
14707         (rs6000_secondary_reload_inner): Ditto.
14708         (rs6000_ira_cover_classes): New target hook, that returns the
14709         appropriate cover classes, based on -mvsx being used or not.
14710         (rs6000_secondary_reload_class): Add VSX support.
14711         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
14712         (get_vsel_insn): Ditto.
14713         (rs6000_emit_vector_compare): Rewrite vector conditional support
14714         so that where we can, we use RTL operators, instead of blindly use
14715         UNSPEC.
14716         (rs6000_emit_vector_select): Ditto.
14717         (rs6000_emit_vector_cond_expr): Ditto.
14718         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
14719         (create_TOC_reference): Add -mdebug=addr support.
14720         (emit_frame_save): VSX loads/stores need register indexed addressing.
14722         * config/rs6000/rs6000.md: Include vector.md.
14724         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
14726         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14727         support for V2DI, V2DF in logical, permute, select operations.
14729         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
14730         switch for vsx/power7.
14731         (-mvsx-scalar-memory): Ditto.
14732         (-mvsx-align-128): Ditto.
14733         (-mallow-movmisalign): Ditto.
14734         (-mallow-df-permute): Ditto.
14735         (-msched-groups): Ditto.
14736         (-malways-hint): Ditto.
14737         (-malign-branch-targets): Ditto.
14739         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
14740         hook instead.
14741         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
14742         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
14743         (rs6000_vector_reg_class): Delete.
14744         (rs6000_vsx_reg_class): Ditto.
14745         (enum rs6000_reg_class_enum): New enum for the constraints that
14746         vary based on target switches.
14747         (rs6000_constraints): New array to hold the register class for all
14748         of the register constraints that vary based on the switches used.
14749         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
14750         (enum rs6000_builtins): Add unsigned varients for the builtin
14751         declarations returned by target hooks for expanding multiplies,
14752         select, and permute operations.  Add VSX builtins.
14753         (enum rs6000_builtin_type_index): Add entries for VSX.
14754         (V2DI_type_node): Ditto.
14755         (V2DF_type_node): Ditto.
14756         (unsigned_V2DI_type_node): Ditto.
14757         (bool_long_type_node): Ditto.
14758         (intDI_type_internal_node): Ditto.
14759         (uintDI_type_internal_node): Ditto.
14760         (double_type_internal_node): Ditto.
14762         * config/rs6000/altivec.md (whole file): Move all expanders to
14763         vector.md from altivec.md.  Rename insn matching functions to be
14764         altivec_foo.
14765         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
14766         (altivec_vcmp*): Ditto.
14767         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
14768         (VM): New iterator for moves that includes the VSX types.
14769         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
14770         (altivec_vperm_<mode>_uns): New, for unsigned types.
14771         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
14772         (altivec_eq<mode>): Ditto.
14773         (altivec_gt<mode>): Ditto.
14774         (altivec_gtu<mode>): Ditto.
14775         (altivec_eqv4sf): Ditto.
14776         (altivec_gev4sf): Ditto.
14777         (altivec_gtv4sf): Ditto.
14778         (altivec_vcmpbfp_p): Ditto.
14780 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
14782         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
14783         unsigned HWI.
14785 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
14787         PR target/40832
14788         * config/i386/i386.c (output_387_ffreep): Rewrite to use
14789         ASM_SHORT instead of .word.
14790         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
14791         instead of .word in asm template.
14793 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
14795         PR target/37488
14796         * ira-lives.c (bb_has_abnormal_call_pred): New function.
14797         (process_bb_node_lives): Use it.
14799         * ira.c (setup_cover_and_important_classes): Don't setup
14800         ira_important_class_nums.  Add cover classes to the end of
14801         important classes.
14802         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
14803         New.
14804         (find_reg_class_closure): Use reorder_important_classes.
14806         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
14808         * config/i386/i386.c (i386_ira_cover_classes): New function.
14809         (TARGET_IRA_COVER_CLASSES): Redefine.
14811         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
14812         importance of order of cover classes in the array.
14814 2009-07-22  Diego Novillo  <dnovillo@google.com>
14816         * tree-pass.h (TDF_EH): Define.
14817         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
14818         contains TDF_EH, print the EH region number holding GS.
14819         * tree-dump.c (dump_options): Add "eh".
14820         * doc/invoke.texi: Document it.
14822 2009-07-22  Doug Kwan  <dougkwan@google.com>
14824         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
14826 2009-07-22  Michael Matz  <matz@suse.de>
14828         PR tree-optimization/35229
14829         PR tree-optimization/39300
14831         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
14832         (inhibit_phi_insertion): New function.
14833         (insert_into_preds_of_block): Call it for REFERENCEs.
14834         (init_pre): Initialize and finalize scalar evolutions.
14835         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
14837 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
14839         * config/i386/predicates.md (zero_extended_scalar_load_operand):
14840         Use CONST_VECTOR_NUNITS to determine number of elements.
14842 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
14844         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
14845         (U, W): Constraints are now deprecated and will be removed if we
14846         run out of letters.
14847         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
14848         the file.
14849         ("prefetch"): Add the stcmh instruction for prefetching.
14850         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
14851         changes.
14852         (s390_short_displacement): Return always true if compiling for
14853         machines not providing the long displacement facility.
14854         (s390_mem_constraint): Support the new constraint letter Z.
14855         (s390_check_qrst_address): New function.
14857 2009-07-21  DJ Delorie  <dj@redhat.com>
14859         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
14860         alone too.
14862 2009-07-21  Jason Merrill  <jason@redhat.com>
14864         * c-common.c (max_tinst_depth): Increase default to 1024.
14866 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14868         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
14869         (vec_unpacku_float_lo_v4si): Ditto.
14871 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
14873         PR target/40811
14874         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
14875         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
14876         (builtin_description): Add __builtin_ia32_cvtudq2ps.
14877         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
14879 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
14881         PR tree-optimization/40813
14882         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
14883         it.
14885 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
14887         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
14888         with a NOP_EXPR if needed.
14890 2009-07-21  Paul Brook <paul@codesourcery.com>
14892         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
14893         Terminate debug dump with newline.
14895 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14897         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
14898         Cast "1" to unsigned HOST_WIDE_INT.
14899         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
14900         deposit length to the maximum length - lsb.  Extend length if
14901         HOST_BITS_PER_WIDE_INT is 32.
14903 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
14905         * cgraph.h (constant_pool_htab): New function.
14906         (constant_descriptor_tree): Move from varasm.c.
14907         * varasm.c (constant_pool_htab): New function.
14908         (constant_descriptor_tree): Move to cgraph.h.
14910 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
14912         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
14914 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
14916         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
14917         $(VARRAY_H).
14919 2009-07-20  Xinliang David Li  <davidxl@google.com>
14921         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
14923 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14925         * config/mips/mips.md (move_type): Add arith.
14926         (type): Handle arith.
14927         (zero_extendsidi2): Rename this into ...
14928         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
14929         (zero_extendsidi2): New expander.
14930         (*zero_extendsidi2_dext): New pattern.
14932 2009-07-20  Nick Clifton  <nickc@redhat.com>
14934         * config.gcc (mips64-*-*): Add definition of tm_defines in order
14935         to set MIPS_ABI_DEFAULT.
14936         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
14938 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
14940         * tree-object-size.c (addr_object_size): Handle unions with
14941         array in it as last field of structs in __bos (, 1) as __bos (, 0).
14943         PR tree-optimization/40792
14944         * tree.c (build_function_type_skip_args): Remove bogus assert.
14946 2009-07-20  Jan Hubicka  <jh@suse.cz>
14947             Martin Jambor  <mjambor@suse.cz>
14949         * cgraph.h (combined_args_to_skip): New field.
14950         * cgraph.c (cgraph_create_virtual_clone): Properly handle
14951         combined_args_to_skip and args_to_skip.
14952         * tree-inline.c (update_clone_info): New function.
14953         (tree_function_versioning): Call update_clone_info.
14954         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
14955         functions.
14956         (cgraph_materialize_all_clones): More extensive dumping, working
14957         with combined_args_to_skip rather than args_to_skip.
14959 2009-07-20  Ira Rosen  <irar@il.ibm.com>
14961         * tree-vectorizer.h (vectorizable_condition): Add parameters.
14962         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
14963         (get_initial_def_for_reduction): Likewise.
14964         (vectorizable_reduction): Skip the check of first operand in case
14965         of COND_EXPR. Add check that it is outer loop vectorization if
14966         nested cycle was detected. Call vectorizable_condition() for
14967         COND_EXPR. If reduction epilogue cannot be created do not fail for
14968         nested cycles (if it is not double reduction). Assert that there
14969         is only one type in the loop in case of COND_EXPR. Call
14970         vectorizable_condition() to vectorize COND_EXPR.
14971         * tree-vect-stmts.c (vectorizable_condition): Update comment.
14972         Add parameters. Allow nested cycles if called from
14973         vectorizable_reduction(). Use reduction vector variable if provided.
14974         (vect_analyze_stmt): Call vectorizable_reduction() before
14975         vectorizable_condition().
14976         (vect_transform_stmt): Update call to vectorizable_condition().
14978 2009-07-20  Christian Bruel  <christian.bruel@st.com>
14980         * config/sh/sh.opt (-mfmovd): Resurrect and document.
14981         * doc/invoke.texi (-mfmovd): Likewise.
14982         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
14984 2009-07-20  Jan Hubicka  <jh@suse.cz>
14986         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
14987         when handling SSA name.
14989 2009-07-19  Jan Hubicka  <jh@suse.cz>
14991         PR tree-optimization/40676
14992         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
14993         virtual PHIs in empty BBs.
14995 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
14997         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
14998         re-expanded the compound use gen_lowpart instead to convert to the
14999         desired mode.
15001 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15003         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
15004         OUTER_CONST arguments.
15005         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
15006         the new wider mode will be masked off.
15007         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
15009 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15011         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
15012         high-order bits are zero.
15014 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
15016         * combine.c (simplify_shift_const_1): Split code to determine
15017         shift_mode into ...
15018         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
15019         new bits shifted in are identical to the old sign bit.
15021 2009-07-18  Richard Guenther  <rguenther@suse.de>
15023         PR c/40787
15024         * gimplify.c (gimplify_call_expr): Reject code using results from
15025         functions returning void.
15027 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
15029         * doc/md.texi: Document the new PowerPC "es" constraint.
15030         Document that "m" can include automodified addresses on this target,
15031         and explain how %U must be used.  Extend the "Q" and "Z" documentation
15032         to suggest "es" as well as "m".
15033         * config/rs6000/constraints.md (es): New memory constraint.
15034         (Q, Z): Update strings to match new documentation.
15036 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
15038         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
15039         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
15040         * config/rs6000/predicates.md (volatile_mem_operand): Use
15041         offsettable_nonstrict_memref_p.
15042         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
15043         (*floatunssidf2_internal): Likewise.
15044         (*fix_truncdfsi2_internal): Likewise.
15045         (*fix_trunctfsi2_internal): Likewise.
15047 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
15049         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
15050         atmega32u2 devices.
15051         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15053 2009-07-17  Richard Guenther  <rguenther@suse.de>
15055         PR c/40401
15056         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
15057         (pass_warn_unused_result): Likewise.
15058         (TODO_set_props): Remove.
15059         * omp-low.c (diagnose_omp_structured_block_errors): Change to
15060         run as a pass.
15061         (pass_diagnose_omp_blocks): Define.
15062         * c-decl.c (pop_file_scope): Do not finalize the CU here.
15063         (c_gimple_diagnostics_recursively): Remove.
15064         (finish_function): Do not call it.
15065         (c_write_global_declarations): Continue after errors.
15066         Finalize the CU here.
15067         * c-gimplify.c (c_genericize): Do not gimplify here.
15068         * c-common.c (c_warn_unused_result): Move ...
15069         * tree-cfg.c (do_warn_unused_result): ... here.
15070         (run_warn_unused_result): New function.
15071         (gate_warn_unused_result): New function.
15072         (pass_warn_unused_result): New pass.
15073         * c-common.h (c_warn_unused_result): Remove.
15074         * flags.h (flag_warn_unused_result): Declare.
15075         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
15076         * opts.c (flag_warn_unused_result): Initialize to false.
15077         * toplev.c (compile_file): Add comment.
15078         * omp-low.c (create_omp_child_function): Do not register
15079         the function with the frontend.
15080         (diagnose_omp_structured_block_errors): Prepare to be
15081         called as optimization pass.
15082         (gate_diagnose_omp_blocks): New function.
15083         (pass_diagnose_omp_blocks): New pass.
15084         * cgraph.h (cgraph_optimize): Remove.
15085         (cgraph_analyze_function): Likewise.
15086         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
15087         * cgraphunit.c (cgraph_lower_function): Lower nested functions
15088         before their parents here.
15089         (cgraph_finalize_function): Not here.
15090         (cgraph_analyze_function): Gimplify functions here.
15091         (cgraph_finalize_compilation_unit): Continue after errors.
15092         Optimize the callgraph from here.
15093         (cgraph_optimize): Make static.
15094         * langhooks.c (write_global_declarations): Finalize the CU.
15095         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
15096         (gimplify_function_tree): Assert we gimplify only once.
15097         Set PROP_gimple_any property.
15098         * tree-nested.c (gimplify_all_functions): New function.
15099         (lower_nested_functions): Gimplify all nested functions.
15100         * gimple.h (diagnose_omp_structured_block_errors): Remove.
15101         * passes.c (init_optimization_passes): Add pass_warn_unused_result
15102         and pass_diagnose_omp_blocks after gimplification.  Do not
15103         set TODO_set_props on all_lowering_passes.
15104         (execute_one_pass): Do not handle TODO_set_props.
15105         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
15106         (gimplify.o): Add tree-pass.h dependency.
15107         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
15108         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
15109         (unsave_r): Likewise.
15110         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
15111         temporary variable.
15113 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
15115         * doc/service.texi (Service): Restore previously removed link,
15116         which isn't broken after all.
15118 2009-07-17  Richard Guenther  <rguenther@suse.de>
15120         PR tree-optimization/40321
15121         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
15122         PHI nodes to the maximal set.
15123         (make_values_for_phi): Add PHI arguments to the maximal set.
15124         (execute_pre): Dump PHI_GEN and the maximal set.
15126 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
15128         PR c++/40780
15129         * gimplify.c (gimplify_conversion): Don't change non-conversions into
15130         VIEW_CONVERT_EXPR.
15132 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
15134         * doc/extend.texi (Nested Functions): Replace broken link with
15135         textual reference.
15136         * doc/service.texi (Service): Remove broken link.
15138 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
15140         PR bootstrap/40781
15141         * builtins.c (expand_builtin_memcmp): Use loc instead of
15142         EXPR_LOCATION (exp).
15143         (expand_builtin_strncmp): Likewise.
15145 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
15146             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15148         PR 40435
15149         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
15150         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
15151         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
15152         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
15153         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
15154         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
15155         tree-inline.c, c-common.c, c-common.h, gimple.c,
15156         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
15157         convert.c: Add location argument to fold_{unary,binary,ternary},
15158         fold_build[123], build_call_expr, build_size_arg,
15159         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
15160         fold_build1_initializer, fold_build2_initializer,
15161         fold_build3_initializer, fold_build_call_array,
15162         fold_build_call_array_initializer, fold_single_bit_test,
15163         omit_one_operand, omit_two_operands, invert_truthvalue,
15164         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
15165         combine_comparisons, fold_builtin_*, fold_call_expr,
15166         build_range_check, maybe_fold_offset_to_address, round_up,
15167         round_down.
15169 2009-07-16  Jason Merrill  <jason@redhat.com>
15171         PR libstdc++/37907
15172         * c-common.c (c_common_reswords): Add __is_standard_layout
15173         and __is_trivial.
15174         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
15175         * doc/implement-cxx.texi: New.
15176         * doc/gcc.texi: Include it.
15178 2009-07-16  DJ Delorie  <dj@redhat.com>
15180         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
15181         compares that may be indirectly affected by previous instructions.
15183 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15185         * builtins.c (do_mpc_arg2): New.
15186         (fold_builtin_2): Fold builtin cpow.
15187         * real.h (HAVE_mpc_pow): New.
15189 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
15191         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
15192         comparison to skip unprofitable schedule
15194 2009-07-16  Simon Baldwin  <simonb@google.com>
15196         * gcc.c (option_map): New flag -no-canonical-prefixes.
15197         * (display_help): Print help text for new flag.
15198         * (process_command): Move options translation and language specifics
15199         and handle new flag early.  Use it to set a function pointer to a
15200         prefix builder.  Replace make_relative_prefix calls with calls to
15201         the function pointed to.  Ignore new flag in regular options handling.
15202         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
15204 2009-07-15  DJ Delorie  <dj@redhat.com>
15206         * config/mep/mep.md (sibcall_internal): Change register to avoid
15207         argument registers.
15208         (sibcall_value_internal): Likewise.
15210 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15212         PR rtl-optimization/40710
15213         * resource.c (mark_target_live_regs): Reset DF problem to LR.
15215 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
15217         * config/mips/mips.md (*extenddi_truncate<mode>,
15218         *extendsi_truncate<mode>): Change type attribute to move_type
15219         with shift_shift.  Split out code handling exts from here ...
15220         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
15221         pattern.
15222         (*extendhi_truncateqi): Change type attribute to move_type with
15223         shift_shift.  Split out code handling exts from here ...
15224         (*extendhi_truncateqi_exts): ... to this new pattern.
15226 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
15228         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
15229         instead of "and" with inverted sign bit mask value.  Use
15230         "nonimmediate_operand" for operand 1 and operand 2 predicate.
15231         Allocate registers only for operand 4 and operand 5.
15233 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
15235         PR middle-end/40747
15236         * fold-const.c (fold_cond_expr_with_comparison): When folding
15237         < and <= to MIN, make sure the MIN uses the same type as the
15238         comparison's operands.
15240 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
15242         * arm.md (ior_xor): New code iterator.
15243         (split for ior/xor with shift and zero-extend): New split pattern.
15244         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
15246 2009-07-15  Richard Guenther  <rguenther@suse.de>
15248         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
15249         offset member.
15251 2009-07-15  Richard Guenther  <rguenther@suse.de>
15253         PR middle-end/40753
15254         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
15256 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15258         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
15259         handle 2.6.30 kernel.
15261 2009-07-15  DJ Delorie  <dj@redhat.com>
15263         * config/mep/mep.md (sibcall_internal): Change register to allow
15264         for 24-bit addresses.
15265         (sibcall_value_internal): Likewise.
15267 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15269         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
15270         that are enabled/disabled by the flags introduced by a previous patch.
15272 2009-07-14  DJ Delorie  <dj@redhat.com>
15274         * config/mep/mep.md (sibcall_internal): Include non-toggling
15275         non-jmp case.
15276         (sibcall_value_internal): Likewise.
15278 2009-07-14  Taras Glek  <tglek@mozilla.com>
15279             Rafael Espindola  <espindola@google.com>
15281         * doc/sourcebuild.texi: Document install-plugin target.
15282         * configure.ac: Added install-plugin target to language makefiles.
15283         * configure: Regenerate.
15284         * Makefile.in (install-plugin): Install more headers,
15285         depend on lang.install-plugin.
15287 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15289         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
15290         translation.
15292 2009-07-14  DJ Delorie  <dj@redhat.com>
15294         * config/mep/mep.c (mep_vliw_jmp_match): New function.
15295         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
15296         * config/mep/mep.md (sibcall_internal): Change test from
15297         mep_vliw_mode_match to mep_vliw_jmp_match.
15298         (sibcall_value_internal): Likewise.
15300 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
15302         * config/i386/sse.md (copysign<mode>3): New expander.
15303         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
15304         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
15305         Use ix86_build_const_vector.
15306         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
15307         IX86_BUILTIN_CPYSGNPD.
15308         (builtin_description): Add __builtin_ia32_copysignps and
15309         __builtin_ia32_copysignpd.
15310         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
15311         and BUILT_IN_COPYSIGNF.
15313 2009-07-13  Jason Merrill  <jason@redhat.com>
15315         * builtins.c (can_trust_pointer_alignment): New fn.
15316         (get_pointer_alignment): Factor it out from here.
15317         * tree.h: Declare it.
15319 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
15321         * config/rs6000/predicates.md (offsettable_mem_operand): Test
15322         RTX_AUTOINC class.
15324 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
15326         PR debug/40705
15327         PR c++/403057
15328         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
15330 2009-07-14  Richard Guenther  <rguenther@suse.de>
15331             Andrey Belevantsev <abel@ispras.ru>
15333         PR middle-end/40745
15334         * cfgexpand.c (partition_stack_vars): Do not bother to update
15335         alias information when not optimizing.
15337 2009-07-14  Richard Guenther  <rguenther@suse.de>
15338             Andrey Belevantsev <abel@ispras.ru>
15340         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
15341         (pt_solution_set): Likewise.
15342         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
15343         * tree-ssa-structalias.c (pt_solution_set): New function.
15344         * final.c (rest_of_clean_state): Free SSA data structures.
15345         * print-rtl.c (print_decl_name): Remove.
15346         (print_mem_expr): Implement in terms of print_generic_expr.
15347         * alias.c (ao_ref_from_mem): New function.
15348         (rtx_refs_may_alias_p): Likewise.
15349         (true_dependence): Query alias-export info.
15350         (canon_true_dependence): Likewise.
15351         (write_dependence_p): Likewise.
15352         * tree-dfa.c (get_ref_base_and_extent): For void types leave
15353         size unknown.
15354         * emit-rtl.c (component_ref_for_mem_expr): Remove.
15355         (mem_expr_equal_p): Use operand_equal_p.
15356         (set_mem_attributes_minus_bitpos): Do not use
15357         component_ref_for_mem_expr.
15358         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
15359         (update_alias_info_with_stack_vars): Likewise.
15360         (partition_stack_vars): Call update_alias_info_with_stack_vars.
15361         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
15362         explicitly nor clear stmt operands.
15363         Free the decl-to-pointer map.
15364         * tree-optimize.c (execute_free_datastructures): Do not free
15365         SSA data structures here.
15366         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
15367         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
15368         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
15369         dependencies.
15370         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
15372 2009-07-13  DJ Delorie  <dj@redhat.com>
15374         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
15375         unrolling at the right iteration count.
15377         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
15378         calculations.
15380 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15382         * haifa-sched.c (rank_for_schedule): Introduced flags to
15383         enable/disable individual scheduling heuristics.
15384         * common.opt: Introduced flags to enable/disable individual
15385         heuristics in the scheduler.
15386         * doc/invoke.texi: Introduced flags to enable/disable individual
15387         heuristics in the scheduler.
15389 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
15391         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
15392         config/i386/mingw-tls.c.
15393         * config/i386/mingw-tls.c: Removed.
15395 2009-07-13  Ira Rosen  <irar@il.ibm.com>
15397         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
15398         checks access only relevant statements.
15399         (vectorizable_reduction): Likewise.
15401 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
15403         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
15404         just for 32-bit case.
15406 2009-07-12  Jan Hubicka  <jh@suse.cz>
15408         PR tree-optimization/40585
15409         * except.c (expand_resx_expr): When there already is resume
15410         instruction, produce linked list.
15411         (build_post_landing_pads): Assert that resume is empty.
15412         (connect_post_landing_pads): Handle resume lists.
15413         (dump_eh_tree): Dump resume list.
15415 2009-07-12  Ira Rosen  <irar@il.ibm.com>
15417         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15418         with additional argument.
15419         * tree-vectorizer.h (enum vect_def_type): Add
15420         vect_double_reduction_def.
15421         (vect_is_simple_reduction): Add argument.
15422         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
15423         indentation.
15424         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
15425         vect_is_simple_reduction with additional argument.
15426         (vect_analyze_loop_operations): Handle exit phi nodes in case of
15427         double reduction.
15428         (reduction_code_for_scalar_code): Handle additional codes by
15429         returning ERROR_MARK for them. Fix comment and indentation.
15430         (vect_is_simple_reduction): Fix comment, add argument to specify
15431         double reduction. Detect double reduction.
15432         (get_initial_def_for_induction): Fix indentation.
15433         (get_initial_def_for_reduction): Fix comment and indentation.
15434         Handle double reduction. Create initial definitions that do not
15435         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
15436         (vect_create_epilog_for_reduction): Fix comment, add argument to
15437         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
15438         epilogue result extraction. Create double reduction phi node and
15439         replace relevant uses.
15440         (vectorizable_reduction): Call vect_is_simple_reduction with
15441         additional argument. Fix indentation. Update epilogue code treatment
15442         according to the changes in reduction_code_for_scalar_code. Check
15443         for double reduction. Call vect_create_epilog_for_reduction with
15444         additional argument.
15445         * tree-vect-stmts.c (process_use): Handle double reduction, update
15446         documentation.
15447         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
15448         (vect_get_vec_def_for_operand): Likewise.
15450 2009-07-12  Danny Smith  <dansmister@gmail.com>
15452         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
15453         dllexport if !TREE_PUBLIC.
15454         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
15456 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
15458         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
15459         (avr_extra_arch_macro) Remove declatation.
15460         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
15461         (avr_extra_arch_macro) Declare as static.
15462         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
15464 2009-07-11  Jan Hubicka  <jh@suse.cz>
15466         PR middle-end/48388
15467         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
15469 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
15471         PR debug/40713
15472         * dwarf2out.c (dw_fde_struct): Add in_std_section and
15473         cold_in_std_section bits.
15474         (dwarf2out_begin_prologue): Initialize them.
15475         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
15476         if already covered by text_section or cold_text_section range.
15478         PR rtl-optimization/40667
15479         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
15480         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
15481         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
15482         * config/i386/i386.c (ix86_minimum_alignment): New function.
15483         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
15484         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
15485         * emit-rtl.c (gen_reg_rtx): Likewise.
15486         * function.c (assign_parms): Likewise.  If nominal_type needs
15487         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
15488         rather than passed_type's alignment.
15490         PR target/40668
15491         * function.c (assign_parm_setup_stack): Adjust
15492         MEM_OFFSET (data->stack_parm) if promoted_mode is different
15493         from nominal_mode on big endian.
15495 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
15497         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
15499 2009-07-10  DJ Delorie  <dj@redhat.com>
15501         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
15503 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
15505         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
15506         attribute.
15507         (thumb2_cbnz): Likewise.
15509 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
15511         PR target/39079
15512         * config.gcc (supported_defaults): Add synci.
15513         (with_synci): Add validation.
15514         (all_defaults): Add synci.
15515         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
15516         ISA_HAS_SYNCI.
15517         (synci): Same.
15518         * config/mips/mips.opt (msynci): New option.
15519         * config/mips/mips.c (mips_override_options): Warn on use of
15520         -msynci for targets that do now support it.
15521         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15522         msynci.
15523         * gcc/doc/invoke.texi (-msynci): Document the new option.
15524         * doc/install.texi (--with-synci): Document the new option.
15526 2009-07-10  Richard Guenther  <rguenther@suse.de>
15528         PR tree-optimization/40496
15529         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
15530         the PHI result with a compatible type.
15532 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15534         PR 25509
15535         PR 40614
15536         * c.opt (Wunused-result): New.
15537         * doc/invoke.texi: Document it.
15538         * c-common.c (c_warn_unused_result): Use it.
15540 2009-07-09  DJ Delorie  <dj@redhat.com>
15542         * targhooks.c (default_target_can_inline_p): Rename from
15543         default_target_option_can_inline_p.
15544         * targhooks.h (default_target_can_inline_p): Likewise.
15545         * target-def.h (TARGET_CAN_INLINE_P): Rename from
15546         TARGET_OPTION_CAN_INLINE_P.
15547         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
15548         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
15549         (mep_target_can_inline_p): Rename from
15550         mep_target_option_can_inline_p.
15552         PR target/40626
15553         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
15554         registers used to pass vectors.
15556         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
15558 2009-07-09  Tom Tromey  <tromey@redhat.com>
15560         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
15561         * config/mmix/mmix.c: Include dwarf2.h.
15562         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
15563         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
15564         * config/sh/sh.c: Include dwarf2.h.
15565         * config/i386/i386.c: Include dwarf2.h.
15566         * Makefile.in (DWARF2_H): Remove 'elf'.
15567         * except.c: Include dwarf2.h.
15568         * unwind-dw2.c: Include dwarf2.h.
15569         * dwarf2out.c: Include dwarf2.h.
15570         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
15571         * unwind-dw2-fde.c: Include dwarf2.h.
15572         * dwarf2asm.c: Include dwarf2.h.
15574 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15576         * haifa-sched.c (insn_finishes_cycle_p): New static function.
15577         (max_issue): Use it.
15578         * sched-int.h (struct sched_info: insn_finishes_block_p): New
15579         scheduler hook.
15580         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
15581         (region_sched_info): Update.
15582         * sched-ebb.c (ebb_sched_info): Update.
15583         * modulo-sched.c (sms_sched_info): Update.
15584         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
15586 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15588         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
15590 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
15592         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
15594 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
15596         PR middle-end/40692
15597         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
15598         arg1 with arg01 if arg1 is already INTEGER_CST.
15600 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15602         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
15603         Transform (and (truncate)) into (truncate (and)).
15605 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
15607         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
15608         creating LHS paradoxical subregs.  Fix surrounding returns to
15609         use NULL_RTX rather than 0.
15611 2009-07-08  DJ Delorie  <dj@redhat.com>
15613         * config/mep/mep.c (mep_option_can_inline_p): New.
15614         (TARGET_OPTION_CAN_INLINE_P): Define.
15616 2009-07-08  Mark Wielaard  <mjw@redhat.com>
15618         PR debug/40659
15619         * dwarf2out.c (add_data_member_location_attribute): When we have
15620         only a constant offset don't emit a new location description using
15621         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
15622         dwarf_version > 2.
15624 2009-07-08  Richard Henderson  <rth@redhat.com>
15626         PR target/38900
15627         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
15628         (enum reg_class): Add CLOBBERED_REGS.
15629         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
15630         * config/i386/i386.c (ix86_conditional_register_usage): Moved
15631         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
15632         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
15633         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
15634         force 64-bit sibcalls into R11.
15635         * config/i386/constraints.md (U): New constraint.
15636         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
15637         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
15638         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
15640 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
15642         * basic-block.h (dump_regset, debug_regset): Remove duplicate
15643         prototypes.
15644         * c-objc-common.h (c_initialize_diagnostics): Ditto.
15645         * ebitmap.h (dump_ebitmap): Ditto.
15646         * optabs.h (optab_libfunc): Ditto.
15647         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
15648         * tree-flow.h (vect_can_force_dr_alignment_p,
15649         get_vectype_for_scalar_type): Ditto.
15650         (vectorize_loops): Move prototype to ...
15651         * tree-vectorizer.h: ... here. Also, adjust comment.
15652         (vect_set_verbosity_level): Remove duplicate prototype.
15653         * tree-ssa-loop.c: Include tree-vectorizer.h.
15654         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
15656 2009-07-08  Nick Clifton  <nickc@redhat.com>
15658         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
15659         forward slash.
15661 2009-07-08  DJ Delorie  <dj@redhat.com>
15663         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
15664         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
15665         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
15666         written to.
15667         * config/mep/intrinsics.md: Regenerated.
15668         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
15669         registers when asm() or calls are detected.
15671 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15673         PR c++/31246
15674         * gimplify.c (gimplify_expr): Propagate no_warning flag when
15675         gimplifying.
15676         * gimple (gimple_build_call_from_tree): Likewise.
15677         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
15678         no_warning flag before warning.
15680 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15682         * tree.c (set_expr_locus): Remove.
15683         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
15684         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
15685         EXPR_LOCATION.
15686         * gimplify.c (internal_get_tmp_var): Likewise.
15687         (gimplify_call_expr): Likewise.
15688         (gimplify_one_sizepos): Likewise.
15690 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
15692         PR debug/40666
15693         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
15694         to variables for debugging purposes.
15696 2009-06-23  Mark Loeser  <mark@halcy0n.com>
15698         PR build/40010
15699         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
15701 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15703         * pretty-print.c (pp_base_format): Remove %J.
15704         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15705         gcc_cxxdiag_char_table): Likewise.
15706         (init_dynamic_diag_info): Likewise.
15708 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15710         * pretty-print.c (pp_base_format): Remove %H.
15711         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
15712         gcc_cxxdiag_char_table): Likewise.
15713         (init_dynamic_diag_info): Likewise.
15714         * config/mep/mep.c (mep_select_section): Likewise.
15716 2009-07-07  Duncan Sands  <baldrick@free.fr>
15718         * final.c (pass_clean_state): Give the pass a name.
15719         * passes.c (pass_rest_of_compilation): Likewise.
15720         * tree-optimize.c (pass_all_optimizations): Likewise.
15722 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15724         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
15725         an extra 'decl' for error_at.
15727 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
15729         PR middle-end/40669
15730         * tree-tailcall.c (adjust_return_value_with_ops,
15731         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
15732         if it has complex or vector type.
15734 2009-07-07  Olivier Hainque  <hainque@adacore.com>
15736         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
15737         pthread symbols.
15739 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
15741         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
15743 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15745         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
15746         * c-decl.c: Likewise.
15747         * function.c: Likewise.
15748         * varasm.c: Likewise.
15749         * tree-ssa.c: Likewise.
15750         * c-common.c: Likewise.
15751         * tree-cfg.c: Likewise.
15752         * config/spu/spu.c: Likewise.
15753         * config/ia64/ia64.c: Likewise.
15754         * config/v850/v850.c: Likewise.
15756 2009-07-06  DJ Delorie  <dj@redhat.com>
15758         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
15759         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
15760         unspecified accesses to control registers.
15761         * config/mep/intrinsics.md: Regenerate.
15762         * config/mep/intrinsics.h: Regenerate.
15763         * config/mep/mep-intrin.h: Regenerate.
15765 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15767         * c-lex.c: Replace %H by an explicit location. Update all calls.
15768         * c-common.c: Likewise.
15769         * c-decl.c: Likewise.
15770         * c-typeck.c: Likewise.
15771         * fold-const.c: Likewise.
15772         * gimplify.c: Likewise.
15773         * stmt.c: Likewise.
15774         * tree-cfg.c: Likewise.
15775         * tree-ssa-loop-niter.c: Likewise.
15776         * tree-vrp.c: Likewise.
15777         * value-prof.c: Likewise.
15779 2009-07-06  Diego Novillo  <dnovillo@google.com>
15781         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
15782         if it has one.  Handle cases where VAR does not have an
15783         annotation or cfun is NULL.
15785 2009-07-06  Diego Novillo  <dnovillo@google.com>
15787         * tree.c: Include debug.h.
15788         (initialize_tree_contains_struct): New.
15789         (init_ttree): Call it.
15790         (tree_node_structure_for_code): Factor out of ...
15791         (tree_node_structure): ... here.
15792         * treestruct.def (TS_PHI_NODE): Remove.
15793         (TS_GIMPLE_STATEMENT): Remove.
15795 2009-07-06  Diego Novillo  <dnovillo@google.com>
15797         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
15798         (debug_tree_chain): Handle cycles.
15800 2009-07-06  Nick Clifton  <nickc@redhat.com>
15801             DJ Delorie  <dj@redhat.com>
15803         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
15804         __FMOVD_ENABLED__ is defined.
15805         * config/sh/sh.h
15806         (TARGET_FMOVD): Provide a default definition.
15807         (MASK_FMOVD): Likewise.
15808         (TARGET_CPU_CPP_BUILTINS): Define
15809         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
15810         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
15811         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
15812         (split for DF load from memory into register): Also handle
15813         MEMs which consist of REG+DISP addressing.
15814         (split for DF store from register to memory): Likewise.
15815         (movsf_ie): Always use single fp_mode.
15816         * config/sh/sh.c (sh_override_options): Do not automatically
15817         enable TARGET_MOVD for the SH2A when supporting doubles - leave
15818         that to the -mfmovd command line switch.
15819         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
15820         (fldi_ok): Always allow.
15821         * config/sh/sh.opt (mfmovd): Remove this switch.
15822         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
15824 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
15825             Kaz Kojima  <kkojima@gcc.gnu.org>
15827         PR rtl-optimization/30807
15828         * postreload.c (reload_combine): For every new use of REG_SUM,
15829         record the use of BASE.
15831 2009-07-06  Jan Hubicka  <jh@suse.cz>
15833         * params.def: Revert my accidental commit at 2009-06-30.
15835 2009-07-04  Ian Lance Taylor  <iant@google.com>
15837         PR target/40636
15838         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
15839         EXPORTED_CONST.
15840         (mingw_format_attribute_overrides): Likewise.
15842 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
15844         PR debug/40596
15845         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
15846         don't check cfa.reg.  Instead of cfa.indirect use
15847         fde && fde->drap_reg != INVALID_REGNUM test.
15849 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
15851         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
15853 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
15855         PR target/40587
15856         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
15858 2009-07-03  Richard Guenther  <rguenther@suse.de>
15860         PR tree-optimization/40640
15861         * tree-switch-conversion.c (build_arrays): Perform arithmetic
15862         in original type.
15864 2009-07-03  Jan Hubicka  <jh@suse.cz>
15866         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
15867         for size, reduce amount of inlining.
15869 2009-07-03  Richard Guenther  <rguenther@suse.de>
15871         PR middle-end/34163
15872         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
15873         if t +- x is known to not overflow and the conversion widens the
15874         operation.
15875         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
15877 2009-07-03  Jan Hubicka  <jh@suse.cz>
15879         * ipa-pure-const.c (analyze): Update loop optimizer init.
15880         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
15881         try_remove_empty_loop, remove_empty_loops): Remove.
15882         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
15883         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
15884         to mark regular loops as neccesary.
15885         (degenerate_phi_p): New function.
15886         (propagate_necessity, remove_dead_phis): Use it.
15887         (forward_edge_to_pdom): Likewise.
15888         (eliminate_unnecessary_stmts): Take care to remove uses of results of
15889         virtual PHI nodes that became unreachable.
15890         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
15891         * tree-flow.h (remove_empty_loops): Remove.
15892         * passes.c (init_optimization_passes): Remove.
15894 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
15896         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
15897         can_create_pseudo_p.
15898         (*fix_trunc<mode>_i387_1): Ditto.
15899         (*floathi<mode>2_1): Ditto.
15900         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
15901         (*fistdi2_1): Ditto.
15902         (*fist<mode>2_1): Ditto.
15903         (frndintxf2_floor): Ditto.
15904         (*fist<mode>2_floor_1): Ditto.
15905         (frndintxf2_ceil): Ditto.
15906         (*fist<mode>2_ceil_1): Ditto.
15907         (frndintxf2_trunc): Ditto.
15908         (frndintxf2_mask_pm): Ditto.
15909         (fxam<mode>2_i387_with_temp): Ditto.
15910         * config/i386/sse.md (mulv16qi3): Ditto.
15911         (*sse2_mulv4si3): Ditto.
15912         (mulv2di3): Ditto.
15913         (sse4_2_pcmpestr): Ditto.
15914         (sse4_2_pcmpistr): Ditto.
15916 2009-07-03  Jan Hubicka  <jh@suse.cz>
15918         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
15919         (mark_stmt_necessary): Set it.
15920         (mark_operand_necessary): Set it.
15921         (mark_control_dependent_edges_necessary): Set it.
15922         (mark_virtual_phi_result_for_renaming): New function.
15923         (get_live_post_dom): New function.
15924         (forward_edge_to_pdom): New function.
15925         (remove_dead_stmt): Fix handling of control dependences.
15926         (tree_dce_init): Init new bitmap.
15927         (tree_dce_done): Free it.
15929 2009-07-02  Richard Guenther  <rguenther@suse.de>
15931         PR bootstrap/40617
15932         * tree-ssa-structalias.c (new_var_info): Initialize
15933         is_restrict_var.
15935 2009-07-02  Jan Hubicka  <jh@suse.cz>
15937         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
15938         local.
15940 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
15942         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
15943         instead of recomputing it.  Adjust calls.
15944         (emit_store_flag): Adjust recursive calls.
15946 2009-07-02  Richard Guenther  <rguenther@suse.de>
15948         * tree-ssa-live.c (remove_unused_locals): Do not remove
15949         heap variables.
15950         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
15951         of DECL_EXTERNAL for HEAP variables.
15952         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
15953         HEAP variables.  Do not adjust RESTRICT vars.
15954         (find_what_var_points_to): Nobody cares if something
15955         points to READONLY.
15957 2009-07-02  Ben Elliston  <bje@au.ibm.com>
15959         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
15960         pc_low and pc_high declarations to the top of the function.
15962 2009-07-01  DJ Delorie  <dj@redhat.com>
15964         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
15965         registers as fixed.
15966         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
15967         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
15968         unspecified accesses to control registers.
15969         * config/mep/intrinsics.md: Regenerate.
15970         * config/mep/intrinsics.h: Regenerate.
15971         * config/mep/mep-intrin.h: Regenerate.
15973 2009-07-01  Anthony Green  <green@moxielogic.com>
15975         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
15976         instruction when possible.
15977         (moxie_expand_prologue): Ditto.  Also, save an instruction and
15978         some complexity by popping off of $r12 instead of $sp.
15979         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
15980         operands.
15982 2009-07-01  Richard Henderson  <rth@redhat.com>
15984         PR bootstrap/40347
15985         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
15986         contained no insns, reposition note before last insn.
15988 2009-07-01  Richard Henderson  <rth@redhat.com>
15990         PR debug/40431
15991         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
15992         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
15994 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
15996         PR bootstrap/40558
15997         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
15998         darwin9 for printing reg addresses with %y.
16000 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
16002         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
16003         truncation from operands in binary operations.
16005 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
16007         Revert:
16008         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
16009         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16010         subreg of op0 to the original op0.
16012         * expmed.c (store_bit_field_1): Use a temporary as the destination
16013         instead of a paradoxical subreg when we need to truncate the result.
16015 2009-07-01  DJ Delorie  <dj@redhat.com>
16017         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
16018         names to VLIW variants.
16019         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
16020         * config/mep/intrinsics.md: Regenerate.
16021         * config/mep/intrinsics.h: Regenerate.
16022         * config/mep/mep-intrin.h: Regenerate.
16024 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
16026         PR debug/40462
16027         * jump.c (returnjump_p): Revert last patch.
16028         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
16030 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16032         PR target/40575
16033         * pa.md (casesi32p): Use jump table label to determine the offset
16034         of the jump table.
16035         (casesi64p): Likewise.
16037         * pa.c (forward_branch_p): Return bool type.  Use instruction
16038         addresses when available.  Assert that INSN has a jump label.
16039         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
16040         have a jump label.
16042 2009-07-01  Richard Guenther  <rguenther@suse.de>
16044         PR tree-optimization/19831
16045         * tree-ssa-dce.c (propagate_necessity): Calls to functions
16046         that only act as barriers do not make any previous stores necessary.
16047         * tree-ssa-structalias.c (handle_lhs_call): Delay making
16048         HEAP variables global, do not add a constraint from nonlocal.
16049         (find_func_aliases): Handle escapes through return statements.
16050         (compute_points_to_sets): Make escaped HEAP variables global.
16052 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
16054         PR bootstrap/40597
16055         * expmed.c (emit_store_flag): Perform a conversion if necessary,
16056         after reducing a DImode cstore to SImode.
16058 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
16060         * expr.c (expand_expr_real_1): Reinstate fallthrough to
16061         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
16063 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
16065         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
16066         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
16067         to 0.
16068         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
16069         and umod_optab if TARGET_BSD_DIVMOD.
16070         * config/vax/lib1funcs.asm: New file.
16071         * config/vax/t-linux: New file.
16072         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
16074 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
16076         PR c++/40566
16077         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
16078         to type arguments that have void type.
16080         PR debug/40573
16081         * dwarf2out.c (gen_formal_parameter_die): Call
16082         equate_decl_number_to_die if node is different from origin.
16084 2009-06-30  Anthony Green  <green@moxielogic.com>
16086         Clean up moxie port for --enable-build-with-cxx.
16087         * config/moxie/moxie.c (moxie_function_value): First two
16088         parameters are const_tree, not tree.
16089         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
16090         (REG_CLASS_NAMES): Ditto.
16091         (REGNO_REG_CLASS): Ditto.
16092         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
16093         (moxie_function_value): Fix constyness of arguments.
16095 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
16097         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
16098         finalize_size_functions before further processing.
16099         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
16100         (variable_size): Call self_referential_size on size expressions
16101         that contain a PLACEHOLDER_EXPR.
16102         (size_functions): New static variable.
16103         (copy_self_referential_tree_r): New static function.
16104         (self_referential_size): Likewise.
16105         (finalize_size_functions): New global function.
16106         * tree.c: Include tree-inline.h.
16107         (push_without_duplicates): New static function.
16108         (find_placeholder_in_expr): New global function.
16109         (substitute_in_expr) <tcc_declaration>: Return the replacement object
16110         on equality.
16111         <tcc_expression>: Likewise.
16112         <tcc_vl_exp>: If the replacement object is a constant, try to inline
16113         the call in the expression.
16114         * tree.h (finalize_size_functions): Declare.
16115         (find_placeholder_in_expr): Likewise.
16116         (FIND_PLACEHOLDER_IN_EXPR): New macro.
16117         (substitute_placeholder_in_expr): Update comment.
16118         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
16119         is true.
16120         (copy_tree_body_r): Likewise.
16121         (copy_tree_body): New static function.
16122         (maybe_inline_call_in_expr): New global function.
16123         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
16124         (maybe_inline_call_in_expr): Declare.
16125         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
16126         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
16127         GIMPLE_H.
16129 2009-06-30  Richard Guenther  <rguenther@suse.de>
16131         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
16132         continue walking.
16133         (propagate_necessity): Do not mark reaching defs of stores
16134         as necessary.
16136 2009-06-30  Jan Hubicka  <jh@suse.cz>
16138         * cfgloopanal.c (check_irred): Move into ...
16139         (mark_irreducible_loops): ... here; return true if ireducible
16140         loops was found.
16141         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
16142         (analyze_function): Try to prove loop finiteness.
16143         * cfgloop.h (mark_irreducible_loops): Update prototype.
16144         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
16146 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
16148         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
16150 2009-06-30  Ira Rosen  <irar@il.ibm.com>
16152         PR tree-optimization/40542
16153         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
16154         types.
16156 2009-06-30  Martin Jambor  <mjambor@suse.cz>
16158         PR tree-optimization/40582
16159         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
16160         than useless_type_conversion_p.
16161         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
16162         proper place.
16164 2009-06-30  Martin Jambor  <mjambor@suse.cz>
16166         PR middle-end/40554
16167         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
16169 2009-06-30  Richard Guenther  <rguenther@suse.de>
16171         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
16172         use ao_ref references.
16173         (walk_aliased_vdefs): Likewise.
16174         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
16175         * tree-ssa-dce.c (struct ref_data): Remove.
16176         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
16177         (mark_aliased_reaching_defs_necessary): Adjust.
16178         (mark_all_reaching_defs_necessary_1): Likewise.
16180 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
16182         PR boostrap/40597
16183         * expmed.c (emit_cstore): New name of emit_store_flag_1.
16184         (emit_store_flag_1): Extract from emit_store_flag, adjust
16185         calls to (what now is) emit_cstore.
16186         (emit_store_flag): Call emit_store_flag_1 and also use it
16187         for what used to be recursive calls.
16189 2009-06-30  Wei Guozhi  <carrot@google.com>
16191         PR/40416
16192         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
16193         if the target bb post dominates from bb.
16194         * config/i386/i386.c (memory_address_length): Check existence of base
16195         register before using it.
16197 2009-06-30  Nick Clifton  <nickc@redhat.com>
16198             DJ Delorie  <dj@redhat.com>
16200         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16201         __FMOVD_ENABLED__ is defined.
16202         * config/sh/sh.h
16203         (TARGET_FMOVD): Provide a default definition.
16204         (MASK_FMOVD): Likewise.
16205         (TARGET_CPU_CPP_BUILTINS): Define
16206         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16207         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
16208         two fmov instructions depending upon whether TARGET_FMOVD is
16209         enabled.
16210         (split for DF load from memory into register): Also handle
16211         MEMs which consist of REG+DISP addressing.
16212         (split for DF store from register to memory): Likewise.
16213         * config/sh/sh.opt (mfmovd): Remove this switch.
16214         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16215         * config/sh/sh.c (sh_override_options): Do not automatically
16216         enable TARGET_MOVD for the SH2A when supporting doubles - leave
16217         that to the -mfmovd command line switch.
16219         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
16220         the SH4 and SH4A.
16221         (fldi_ok): Always allow.
16222         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
16224 2009-06-29  DJ Delorie  <dj@redhat.com>
16226         * doc/install.texi (mep-x-elf): Correct chip's full name.
16228 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
16230         * doc/extend.texi: Fix typo.
16232 2009-06-29  Tom Tromey  <tromey@redhat.com>
16234         * dwarf2.h: Remove.
16235         * Makefile.in (DWARF2_H): New variable.
16236         (except.o): Use it.
16237         (dwarf2out.o): Likewise.
16238         (dwarf2asm.o): Likewise.
16239         * config/i386/t-i386: Use DWARF2_H.
16240         * except.c: Include elf/dwarf2.h.
16241         * unwind-dw2.c: Include elf/dwarf2.h.
16242         * dwarf2out.c: Include elf/dwarf2.h.
16243         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
16244         <dtprel>: New field.
16245         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
16246         (size_of_loc_descr): Likewise.
16247         (output_loc_operands_raw): Likewise.
16248         (output_loc_operands): Handle new dtprel field.
16249         (loc_checksum): Update.
16250         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
16251         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
16252         * unwind-dw2-fde.c: Include elf/dwarf2.h.
16253         * dwarf2asm.c: Include elf/dwarf2.h.
16254         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
16255         * config/mmix/mmix.c: Include elf/dwarf2.h.
16256         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
16257         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
16258         * config/sh/sh.c: Include elf/dwarf2.h.
16259         * config/i386/i386.c: Include elf/dwarf2.h.
16261 2009-06-29  DJ Delorie  <dj@redhat.com>
16263         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
16265         * doc/extend.texi: Add MeP attributes and pragmas.
16266         * doc/invoke.text: Add MeP Options.
16267         * doc/contrib.texi: Add MeP contribution.
16268         * doc/md.texi: Add MeP constraints.
16269         * doc/install.texi: Add MeP target.
16271 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
16273         * target.h (struct gcc_target): Add frame_pointer_required field.
16274         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
16275         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
16276         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
16277         hook.
16278         * reload1.c (update_eliminables): (Ditto.).
16279         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
16280         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
16281         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
16283         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
16285         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
16286         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16287         (arm_frame_pointer_required): New function.
16289         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
16290         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16291         (avr_frame_pointer_required_p): Declare as static.
16292         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
16294         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
16295         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16296         (bfin_frame_pointer_required): Make as static, change return type
16297         to bool.
16298         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
16300         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
16301         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16302         (cris_frame_pointer_required): New function.
16304         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
16306         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
16307         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16308         (fr30_frame_pointer_required): New function.
16310         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
16311         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16312         (frv_frame_pointer_required): Make as static, change return type
16313         to bool.
16314         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
16316         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
16317         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16318         (ix86_frame_pointer_required): Make as static, change return type to
16319         bool.
16320         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
16322         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
16323         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16325         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
16327         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
16329         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
16331         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
16332         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16333         (mips_frame_pointer_required): Make as static.
16334         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
16336         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
16337         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16338         (mmix_frame_pointer_required): Mew function.
16340         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
16341         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16343         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
16345         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
16347         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
16349         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
16350         (CAN_ELIMINATE): Redefine.
16351         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
16352         (sparc_frame_pointer_required): New function.
16353         (sparc_can_eliminate): New function.
16354         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
16356         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
16357         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16359         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
16360         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
16361         (xtensa_frame_pointer_required): Make as static, change return type
16362         to bool.
16363         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
16364         Remove.
16366 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
16368         * doc/plugins.texi: Document PLUGIN_START_UNIT.
16369         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
16370         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
16371         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
16372         (register_callback): Handle PLUGIN_START_UNIT.
16373         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
16375 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
16377         * tree.c (process_call_operands): Propagate TREE_READONLY from the
16378         operands.
16379         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
16380         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
16382 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
16384         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
16385         move cost.
16387 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
16389         * doc/extend.texi (Additional Floating Types): __float128 is also
16390         supported on i386 targets.
16392 2009-06-29  Richard Guenther  <rguenther@suse.de>
16394         PR middle-end/14187
16395         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16396         flag.
16397         (pt_solutions_same_restrict_base): Declare.
16398         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
16399         flag.
16400         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
16401         (make_constraint_from, make_copy_constraint): Move earlier.
16402         (make_constraint_from_heapvar): New function.
16403         (make_constraint_from_restrict): Likewise.
16404         (handle_lhs_call): Use it.
16405         (find_func_aliases): Use it to track conversions to restrict
16406         qualified pointers.
16407         (struct fieldoff): Add only_restrict_pointers flag.
16408         (push_fields_onto_fieldstack): Initialize it.
16409         (create_variable_info_for): Track global restrict qualified pointers.
16410         (intra_create_variable_infos): Use make_constraint_from_heapvar.
16411         Track restrict qualified pointer arguments.
16412         (set_uids_in_ptset): Use varinfo is_global_var flag.
16413         (find_what_var_points_to): Set the vars_contains_restrict flag.
16414         Always create the points-to solution for sets including restrict tags.
16415         (pt_solutions_same_restrict_base): New function.
16416         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
16417         qualified pointers use pt_solutions_same_restrict_base as
16418         additional source for disambiguation.
16420 2009-06-29  Richard Guenther  <rguenther@suse.de>
16422         PR middle-end/38212
16423         * alias.c (find_base_decl): Remove.
16424         (get_deref_alias_set_1): Remove restrict handling.
16425         * c-common.c (c_apply_type_quals_to_decl): Do not set
16426         DECL_POINTER_ALIAS_SET.
16427         * gimplify.c (find_single_pointer_decl_1): Remove.
16428         (find_single_pointer_decl): Likewise.
16429         (internal_get_tmp_var): Remove restrict handling.
16430         (gimple_regimplify_operands): Likewise.
16431         * omp-low.c (expand_omp_atomic_pipeline): Do not set
16432         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
16433         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
16434         * tree.c (restrict_base_for_decl): Remove.
16435         (init_ttree): Do not allocate it.
16436         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
16437         LABEL_DECL_UID for label decls.
16438         (copy_node_stat): Do not copy restrict information.
16439         (decl_restrict_base_lookup): Remove.
16440         (decl_restrict_base_insert): Likewise.
16441         (print_restrict_base_statistics): Likewise.
16442         (dump_tree_statistics): Do not call print_restrict_base_statistics.
16443         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
16444         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
16445         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
16446         (LABEL_DECL_UID): Adjust.
16447         (DECL_BASED_ON_RESTRICT_P): Remove.
16448         (DECL_GET_RESTRICT_BASE): Likewise.
16449         (SET_DECL_RESTRICT_BASE): Likewise.
16450         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
16452         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
16453         instead of DECL_POINTER_ALIAS_SET.
16454         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
16455         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16456         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16458 2009-06-29  Richard Guenther  <rguenther@suse.de>
16460         PR tree-optimization/40579
16461         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
16462         the IL to simplify has constants that overflowed.
16464 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
16466         PR tree-optimization/40550
16467         * tree-vect-generic.c (expand_vector_operations_1): Compute in
16468         vector_compute_type only when the size of vector_compute_type is
16469         less than the size of type.
16471 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
16473         * fold-const.c (contains_label_1): Fix comments.
16474         (contains_label_p): Do not walk trees multiple time.
16476 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16478         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
16479         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
16480         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
16481         ix86_fp_comparison_operator.
16482         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
16483         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
16484         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
16485         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
16486         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
16487         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
16488         (related splits): Change predicate to ix86_fp_comparison_operator.
16489         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
16490         instead of ix86_fp_comparison_codes.
16491         (ix86_trivial_fp_comparison_operator,
16492         ix86_fp_comparison_operator): New.
16493         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
16494         (ix86_expand_compare): Eliminate last two parameters.
16495         (ix86_fp_jump_nontrivial_p): Kill.
16496         * config/i386/i386.c (put_condition_code): Eliminate call to
16497         ix86_fp_comparison_codes and subsequent assertion.
16498         (ix86_fp_comparison_codes): Eliminate.
16499         (ix86_fp_swap_condition): New.
16500         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
16501         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
16502         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
16503         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
16504         and ix86_fp_swap_condition.
16505         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
16506         Use ix86_fp_comparison_strategy.
16507         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
16508         (ix86_fp_jump_nontrivial_p): Eliminate.
16509         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
16510         call to ix86_expand_compare.
16511         (ix86_split_fp_branch, ix86_expand_setcc,
16512         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
16513         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
16515 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16517         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
16518         related to jump_clobbers.
16519         * config/arm/arm.md (conds): Remove jump_clob case.
16520         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
16521         splits): Change comparison_operator to arm_comparison_operator.
16522         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
16523         Eliminate.
16525 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16527         * dojump.c (do_compare_rtx_and_jump): Try swapping the
16528         condition for floating point modes.
16529         * expmed.c (emit_store_flag_1): Move here a bigger part
16530         of emit_store_flag.
16531         (emit_store_flag): Try swapping the condition for floating point
16532         modes.
16533         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
16535 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16537         * expr.c (expand_expr_real_1): Just use do_store_flag.
16538         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
16539         emit_store_flag_force.
16540         * expmed.c (emit_store_flag_force): Copy here trick
16541         previously in expand_expr_real_1.  Try reversing the comparison.
16542         (emit_store_flag_1): Work if target is NULL.
16543         (emit_store_flag): Work if target is NULL, using the result mode
16544         from the comparison.  Use split_comparison, restructure final part
16545         to simplify conditionals.
16547 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
16549         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
16550         * dojump.c (do_jump): Change handling of floating-point
16551         ops to use just do_compare_and_jump.
16552         (split_comparison): New.
16553         (do_compare_rtx_and_jump): Add here logic coming previously
16554         in do_jump, using split_comparison.
16556 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
16558         PR target/40489
16559         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
16561 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16563         * tree-ssa-alias.c: Fix unintentional commit.
16565 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16567         * passes.c (execute_one_pass): Fix unintentional commit.
16569 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16571         * df-problems.c (df_set_seen, df_unset_seen): Delete.
16572         (df_rd_local_compute, df_md_local_compute): Inline them.
16574         (df_md_scratch): New.
16575         (df_md_alloc, df_md_free): Allocate/free it.
16576         (df_md_local_compute): Only include live registers in init.
16577         (df_md_transfer_function): Prune the in-set computed by
16578         the confluence function, and the gen-set too.
16580 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16582         PR rtl-optimization/26854
16583         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
16584         * df-problems.c (df_rd_add_problem): Fix comment.
16585         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
16586         df_md_simulate_artificial_defs_at_top,
16587         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
16588         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
16589         df_md_transfer_function, df_md_init, df_md_confluence_0,
16590         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
16591         problem_MD, df_md_add_problem): New.
16592         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
16593         df_md_get_bb_info): New.
16594         (DF_LAST_PROBLEM_PLUS1): Adjust.
16596         * Makefile.in (fwprop.o): Include domwalk.h.
16597         * fwprop.c: Include domwalk.h.
16598         (reg_defs, reg_defs_stack): New.
16599         (bitmap_only_bit_between): Remove.
16600         (process_defs): New.
16601         (process_uses): Use reg_defs and local_md instead of
16602         bitmap_only_bit_between and local_rd.
16603         (single_def_use_enter_block): New, from build_single_def_use_links.
16604         (single_def_use_leave_block): New.
16605         (build_single_def_use_links): Remove code moved to
16606         single_def_use_enter_block, invoke domwalk.
16607         (use_killed_between): Adjust comment.
16609 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16611         * bitmap.h (bitmap_ior_and_into): New.
16612         * bitmap.c (bitmap_ior_and_into): New.
16614 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16616         * domwalk.h (struct dom_walk_data): Remove all callbacks except
16617         before_dom_children_before_stmts and after_dom_children_after_stmts.
16618         Rename the two remaining callbacks to just before_dom_children and
16619         after_dom_children. Remove other GIMPLE statement walking bits.
16620         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
16621         * graphite.c: Do not include domwalk.h.
16622         * tree-into-ssa.c (interesting_blocks): New global.
16623         (struct mark_def_sites_global_data): Remove it and names_to_rename.
16624         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
16625         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
16626         now that they're not domwalk callbacks.
16627         (rewrite_initialize_block): Rename to...
16628         (rewrite_enter_block): ... this, place after called functions.  Test
16629         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
16630         (rewrite_finalize_block): Rename to...
16631         (rewrite_leave_block): ... this, place after called functions.
16632         (rewrite_update_init_block): Rename to...
16633         (rewrite_update_enter_block): ... this, place after called functions.
16634         Test interesting_blocks, call rewrite_update_stmt and
16635         rewrite_update_phi_arguments.
16636         (rewrite_update_fini_block): Rename to...
16637         (rewrite_leave_block): ... this, place after called functions.
16638         (rewrite_blocks): Remove last argument, simplify initialization of
16639         walk_data.
16640         (mark_def_sites_initialize_block): Rename to...
16641         (mark_def_sites_block): ... this, call mark_def_sites.
16642         (mark_def_sites_blocks): Remove argument, simplify initialization of
16643         walk_data.
16644         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
16645         (update_ssa): Likewise.
16646         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
16647         callback.
16648         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
16649         (dom_opt_initialize_block): Rename to...
16650         (dom_opt_enter_block): ... this, place after called functions.  Walk
16651         statements here, inline propagate_to_outgoing_edges.
16652         (dom_opt_finalize_block): Rename to...
16653         (dom_opt_leave_block): ... this, place after called functions.
16654         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
16655         domwalk callback.
16656         (dse_enter_block, dse_record_phi): New.
16657         (dse_record_phis): Delete.
16658         (dse_finalize_block): Rename to...
16659         (dse_leave_block): ... this.
16660         (tree_ssa_dse): Simplify initialization of walk_data.
16661         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
16662         Adjust initialization of walk_data.
16663         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
16664         * tree-ssa-loop-phiopt.c (get_non_trapping):
16665         Adjust initialization of walk_data.
16666         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
16667         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
16668         it's not a domwalk callback.
16669         (uncprop_initialize_block): Rename to...
16670         (dse_enter_block): ... this, call uncprop_into_successor_phis.
16671         (dse_finalize_block): Rename to...
16672         (dse_leave_block): ... this.
16673         (tree_ssa_uncprop): Simplify initialization of walk_data.
16674         * Makefile.in: Adjust dependencies.
16676 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
16678         * arm.md (casesi): Fix test for Thumb1.
16679         (thumb1_casesi_internal_pic): Likewise.
16680         (thumb1_casesi_dispatch): Likewise.
16682 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
16684         * config/arm/arm-cores.def: Added core cortex-m0.
16685         * config/arm/arm-tune.md: Regenerated.
16686         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
16688 2009-06-26  DJ Delorie  <dj@redhat.com>
16690         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
16692         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
16693         the scheduler doesn't tag jump insns.
16695 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
16697         * c-decl.c (merge_decls): Re-indent.
16699 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
16701         PR c/39902
16702         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
16703         Special-case decimal float constants.
16705 2009-06-26  Richard Henderson  <rth@redhat.com>
16707         * function.h (struct function): Add cannot_be_copied_reason,
16708         and cannot_be_copied_set.
16709         * tree-inline.c (has_label_address_in_static_1): Rename from
16710         inline_forbidden_p_2; don't set inline_forbidden_reason here.
16711         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
16712         don't set inline_forbidden_reason.
16713         (copy_forbidden): New function, split out of inline_forbidden_p.
16714         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
16715         (inline_forbidden_p): Use copy_forbidden.
16716         (tree_versionable_function_p): Likewise.
16717         (inlinable_function_p): Merge into tree_inlinable_function_p.
16718         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
16719         * ipa-cp.c (ipcp_versionable_function_p): New function.
16720         (ipcp_cloning_candidate_p): Use it.
16721         (ipcp_node_modifiable_p): Likewise.
16723 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
16725         * builtins.c (expand_builtin_alloca): Handle builtin alloca
16726         that is marked not to be inlined. Remove flag_mudflap use.
16727         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
16728         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
16730 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
16732         PR bootstrap/40338
16733         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
16734         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
16736 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
16738         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
16739         shared libgcc.
16740         (__mingwthr_remove_key_dtor): Likewise.
16742 2009-06-26  Richard Guenther  <rguenther@suse.de>
16744         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
16746 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
16748         PR middle-end/40525
16749         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
16750         try the non-cond_exec path also.
16752 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16754         PR target/40468
16755         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
16756         (output_cbranch): Use new functions.
16757         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
16758         Likewise.
16760 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16761             Pat Haugen  <pthaugen@us.ibm.com>
16762             Revital Eres <ERES@il.ibm.com>
16764         * config/rs6000/rs6000.c (print_operand): Correct lossage message
16765         for %c error.  Add %x support to print VSX registers as a unified
16766         register set, instead of separate float and altivec registers.
16767         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
16768         %y case, and add support for VSX pre-modify addresses.
16769         (output_toc): Add assert for CONST containing an integer constant
16770         in the PLUS case.
16771         (rs6000_adjust_cost): Add POWER7 support.
16772         (insn_must_be_first_in_group): Ditto.
16773         (insn_must_be_last_in_group): Ditto.
16774         (rs6000_emit_popcount): Ditto.
16775         (rs6000_vector_mode_supported_p): Ditto.
16777         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
16778         Change some of the functions called by macros to being called
16779         through a pointer, so debug functions can be inserted if
16780         -mdebug=addr or -mdebug=cost.
16781         (rs6000_preferred_reload_class_ptr): Ditto.
16782         (rs6000_secondary_reload_class_ptr): Ditto.
16783         (rs6000_secondary_memory_needed_ptr): Ditto.
16784         (rs6000_cannot_change_mode_class_ptr): Ditto.
16785         (rs6000_secondary_reload_inner): Ditto.
16786         (rs6000_legitimize_reload_address): Ditto.
16787         (rs6000_legitimize_reload_address_ptr): Ditto.
16788         (rs6000_mode_dependent_address): Ditto.
16789         (rs6000_mode_dependent_address_ptr): Ditto.
16791         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
16792         function to return true if the mode allows reg + integer
16793         addresses.
16794         (virtual_stack_registers_memory_p): New function to return true if
16795         the address refers to a virtual stack register.
16796         (rs6000_legitimate_offset_address_p): Move code to say whether a
16797         mode supports reg+int addressing to reg_offset_addressing_ok_p and
16798         call it.
16799         (rs6000_legitimate_address_p): Add checks for modes that only can
16800         do reg+reg addressing.  Start adding VSX support.
16801         (rs6000_legitimize_reload_address): Ditto.
16802         (rs6000_legitimize_address): Ditto.
16803         (rs6000_debug_legitimate_address_p): New debug functions for
16804         -mdebug=addr and -mdebug=cost.
16805         (rs6000_debug_rtx_costs): Ditto.
16806         (rs6000_debug_address_costs): Ditto.
16807         (rs6000_debug_adjust_cost): Ditto.
16808         (rs6000_debug_legitimize_address): Ditto.
16809         (rs6000_legitimize_reload_address_ptr): Point to call normal
16810         function or debug function.  Make functions called via pointer
16811         static.
16812         (rs6000_mode_dependent_address_ptr): Ditto.
16813         (rs6000_secondary_reload_class_ptr): Ditto.
16814         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
16815         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
16816         into a friendlier error.
16817         (rs6000_init_builtins): Add initial VSX support.
16818         (rs6000_adjust_cost): Fix some spacing issues.
16820         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
16821         (REG_CLASS_NAMES): Ditto.
16822         (REG_CLASS_CONTENTS): Ditto.
16823         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
16824         pointer, to add -mdebug=addr support.
16825         (CANNOT_CHANGE_MODE_CLASS): Ditto.
16826         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
16827         -mdebug=addr support.
16828         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
16829         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
16830         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
16832         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
16833         16-bit values.
16834         (bswapsi*): Set attribute types for load/store.  Add combiner
16835         patterns to eliminate zero extend on 64-bit.
16836         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
16837         stdbrx if the hardware supports those instructions.
16839 2009-06-25  Ian Lance Taylor  <iant@google.com>
16841         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
16842         (Link Options): Document -static-libstdc++.
16844 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16846         PR target/38731
16847         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
16848         DATA_ALIGNMENT instead.
16850 2009-06-25  Richard Guenther  <rguenther@suse.de>
16852         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
16853         indirect references against the callused/escaped solutions.
16854         (call_may_clobber_ref_p_1): Likewise.
16856 2009-06-25  Martin Jambor  <mjambor@suse.cz>
16858         PR tree-optimization/40493
16859         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
16860         (enum unscalarized_data_handling): New type.
16861         (handle_unscalarized_data_in_subtree): Return what has been done.
16862         (load_assign_lhs_subreplacements): Handle left flushes differently.
16863         (sra_modify_assign): Use unscalarized_data_handling, simplified
16864         condition determining whether to remove the statement.
16866 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
16868         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
16869         excerpt - @ should be doubled for texinfo.
16871 2009-06-24  Ian Lance Taylor  <iant@google.com>
16873         * config/arc/arc.c: Include "df.h".
16874         (arc_attribute_table): Make static.  Move higher in file.
16875         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
16876         (output_shift): Initialize n later to avoid warning.
16877         * config/arm/arm.c (arm_attribute_table): Make static.  Move
16878         higher in file.
16879         * config/avr/avr.c (avr_attribute_table): Make static.  Move
16880         higher in file.
16881         (reg_class_tab): Change array type from int to enum reg_class.
16882         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
16883         LABEL_REF.
16884         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
16885         (lshrhi3_out): Likewise.
16886         (class_likely_spilled_p): Change return type to bool.
16887         (avr_rtx_costs): Use local code variable with enum type.
16888         * config/avr/avr.md (movmemhi): Use add_reg_note.
16889         (andhi3, andsi3): Don't use AS2 with "and".
16890         (iorhi3, iorsi3): Don't use AS2 with "or".
16891         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
16892         * config/crx/crx.c: Include "df.h".
16893         (crx_attribute_table): Make static.
16894         * config/m32r/m32r.c: Include "df.h".
16895         (m32r_attribute_table): Make static.  Move higher in file.
16896         (pop): Use add_reg_note.
16897         (block_move_call): Change 0 to LCT_NORMAL in function call.
16898         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
16899         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
16900         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
16901         declare, not just when TREE_CODE is defined.
16902         * config/m68hc11/m68hc11.c: Include "expr.h".
16903         (m68hc11_attribute_table): Make static.  Move higher in file.
16904         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
16905         function call.
16906         (m68hc11_register_indirect_p): Likewise.
16907         (m68hc11_function_arg_padding): Change return type to enum
16908         direction.
16909         (emit_move_after_reload): Use add_reg_note.
16910         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
16911         (m68hc11_split_logical): Likewise.
16912         (m68hc11_rtx_costs): Add local code_and outer_code variables with
16913         enum type.
16914         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
16915         to VOIDmode in function call.
16916         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
16917         tree is defined.
16918         (m68hc11_split_logical): Update declaration.
16919         (m68hc11_function_arg_padding): Update declaration.
16920         * config/mcore/mcore.c (regno_reg_class): Change form array of int
16921         to array of enum reg_class.
16922         (mcore_attribute_table): Make static.  Move higher in file.
16923         (mcore_rtx_costs): Add cast to enum type.
16924         * config/mcore/mcore.h (regno_reg_class): Update declaration.
16925         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
16926         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
16927         in file.
16928         * config/sh/predicates.md (trapping_target_operand): Rename and to
16929         and_expr.
16930         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
16931         higher in file.
16932         * config/spu/spu.c (spu_attribute_table): Make static.  Move
16933         higher in file.
16934         * config/v850/v850.c (v850_attribute_table): Make static.  Move
16935         higher in file.
16936         (v850_rtx_costs): Use local code with enum type.
16937         (expand_epilogue): Add cast.
16938         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
16940 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
16942         PR target/40515
16943         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
16944         -m2a-single-only and -m2a-nofpu.
16945         * config/sh/sh.opt: Document m2a generates FPU code.
16947 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
16949         * defaults.h (CAN_ELIMINATE): Provide default.
16950         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
16951         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
16952         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
16953         * config/spu/spu.h (CAN_ELIMINATE): Delete.
16954         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
16955         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
16956         * config/cris/cris.h (CAN_ELIMINATE): Delete.
16957         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
16958         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
16959         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
16961 2009-06-24  DJ Delorie  <dj@redhat.com>
16963         * mep-ext-cop.cpu: Fix copyright notice.
16964         * mep-default: Fix copyright notice.
16965         * mep-core: Fix copyright notice.
16966         * mep: Fix copyright notice.
16967         * mep-ivc2: Fix copyright notice.
16968         * mep-c5: Fix copyright notice.
16970 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
16972         * doc/contrib.texi (Contributors):
16974 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16976         PR middle-end/40501
16977         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
16978         src and dst operands if necessary.
16980 2009-06-23  DJ Delorie  <dj@redhat.com>
16982         Add MeP port.
16983         * config.gcc: Add mep support.
16984         * recog.c: Resurrect validate_replace_rtx_subexp().
16985         * recog.h: Likewise.
16986         * config/mep/: Add new port:
16987         * config/mep/constraints.md: New file.
16988         * config/mep/default.h: New file.
16989         * config/mep/intrinsics.h: New file.
16990         * config/mep/intrinsics.md: New file.
16991         * config/mep/ivc2-template.h: New file.
16992         * config/mep/mep-c5.cpu: New file.
16993         * config/mep/mep-core.cpu: New file.
16994         * config/mep/mep-default.cpu: New file.
16995         * config/mep/mep-ext-cop.cpu: New file.
16996         * config/mep/mep-intrin.h: New file.
16997         * config/mep/mep-ivc2.cpu: New file.
16998         * config/mep/mep-lib1.asm: New file.
16999         * config/mep/mep-lib2.c: New file.
17000         * config/mep/mep-pragma.c: New file.
17001         * config/mep/mep-protos.h: New file.
17002         * config/mep/mep-tramp.c: New file.
17003         * config/mep/mep.c: New file.
17004         * config/mep/mep.cpu: New file.
17005         * config/mep/mep.h: New file.
17006         * config/mep/mep.md: New file.
17007         * config/mep/mep.opt: New file.
17008         * config/mep/predicates.md: New file.
17009         * config/mep/t-mep: New file.
17011 2009-06-23  Ian Lance Taylor  <iant@google.com>
17013         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
17014         from loose_warn into c_loose_warn and from strict_warn into
17015         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
17016         --enable-build-with-cxx.  Set and substitute
17017         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
17018         * Makefile.in (CXXFLAGS): New variable.
17019         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
17020         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
17021         the default is the same as $(STRICT_WARN).
17022         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
17023         (CXX): New variable.
17024         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
17025         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
17026         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
17027         (HOST_LIBS): New variable.
17028         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
17029         (ALL_CXXFLAGS): New variable.
17030         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
17031         * doc/install.texi (Configuration): Document
17032         --enable-build-with-cxx, --with-stage1-ldflags,
17033         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
17034         * configure: Rebuild.
17036 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17038         * config/arm/arm.c (arm_override_options): Fix braces and formatting
17039         from previous commit.
17041 2009-06-23  Ian Lance Taylor  <iant@google.com>
17043         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
17045 2009-06-23  Ian Lance Taylor  <iant@google.com>
17047         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
17048         with ATTRIBUTE_UNUSED.
17050 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
17051             Pat Haugen  <pthaugen@us.ibm.com>
17052             Revital Eres  <eres@il.ibm.com>
17054         * config.in (HAVE_AS_POPCNTD): Add default definition.
17055         (HAVE_AS_LWSYNC): Ditto.
17057         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
17058         release number.
17059         (gcc_cv_as_powerpc_cmpb): Ditto.
17060         (gcc_cv_as_powerpc_dfp): Ditto.
17061         (gcc_cv_as_powerpc_vsx): Ditto.
17062         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
17063         supporting the popcntd/lwsync instructions.
17064         (gcc_cv_as_powerpc_lwsync): Ditto.
17065         * configure: Regenerate.
17067         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
17068         -mcpu=native and -mcpu=power7.
17069         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
17071         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
17072         a variable instead of a mask to reduce the number of mask bits.
17073         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
17074         (-mbit-word): Ditto.
17075         (-mregnames): Ditto.
17076         * config/rs6000/rs6000.opt (-mupdate): Ditto.
17077         (-mfused-madd): Ditto.
17079         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
17080         2.06 instructions.
17081         (-mvsx): New switch for VSX instructions.
17082         (-misel): Move from a variable to a mask to allow it to be set by
17083         -mcpu=.
17085         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
17086         function declaration to an array declaration.
17087         (rs6000_hard_regno_nregs): New external array declaration.
17089         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
17090         files included by rs6000.md.
17092         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17093         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
17095         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
17096         a target mask.
17097         (rs6000_debug_reg): New -mdebug= variables.
17098         (rs6000_debug_addr): Ditto.
17099         (rs6000_debug_cost): Ditto.
17100         (rs6000_pmode): New variable to hold Pmode.
17101         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
17102         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
17103         calculated at compiler start.
17104         (rs6000_hard_regno_nregs): Change function to an array which holds
17105         HARD_REGNO_NREGS calculated at compiler start.
17106         (rs6000_explicit_options): Delete isel field.
17107         (rs6000_vector_unit): New array to hold which vector unit
17108         supports arithmetic options for a given type.
17109         (rs6000_vector_mem): New array to hold which vector unit supports
17110         memory reference operations for a given type.
17111         (rs6000_vector_align): New array to given the alignment of each
17112         vector type.
17113         (power7_cost): New basic costs for power7.
17114         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
17115         (rs6000_hard_regno_nregs_internal): New function, moved from
17116         HARD_REGNO_NREGS, to calculate the number of registers each hard
17117         register takes for each type.
17118         (rs6000_debug_reg_print): New function for -mdebug=reg support.
17119         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
17120         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
17121         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
17122         unit information here so it is calculated once at compiler startup
17123         time.
17124         (rs6000_override_options): Make -misel a target mask.  Add more
17125         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
17126         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
17127         -mdebug=cost.
17128         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
17129         (rs6000_handle_option): Move -misel from variable to target mask.
17130         (rs6000_builtin_mask_for_load): Add VSX support.
17131         (rs6000_conditional_register_usage): Ditto.
17132         (USE_ALTIVEC_FOR_ARG_P): Ditto.
17133         (function_arg_boundary): Ditto.
17134         (rs6000_expand_builtin): Ditto.
17135         (def_builtin): Make abort message a little friendlier.
17136         (rs6000_emit_int_cmove): Add support for 64-bit isel.
17138         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
17139         assembler support the popcntd instruction instead of a vsx
17140         instruction to enable power7 support.
17141         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
17142         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
17143         option to the assembler if -mcpu=native.
17144         (ASM_CPU_NATIVE_SPEC): Ditto.
17145         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
17146         ISA 2.06 features.
17147         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
17148         the lwsync instruction.
17149         (enum processor_type): Add PROCESSOR_POWER7.
17150         (rs6000_debug_reg): New -mdebug= options.
17151         (rs6000_debug_addr): Ditto.
17152         (rs6000_debug_cost): Ditto.
17153         (rs6000_isel): Delete.
17154         (enum rs6000_vector): New enum to say what vector unit we have.
17155         (VECTOR_UNIT_*): New macros to say which vector unit has
17156         arithmetic operations for a given type.
17157         (VECTOR_MEM_*): New macros to say which vector unit has memory
17158         operations for a given type.
17159         (TARGET_LDBRX): Whether the machine supports the ldbrx
17160         instruction.
17161         (TARGET_ISEL): Delete, -misel moved to be a mask.
17162         (TARGET_ISEL64): New macro for 64-bit isel support.
17163         (UNITS_PER_VSX_WORD): New macro.
17164         (POINTER_SIZE): Move to be an external variable, rather than
17165         calculating whether we are generating 32 ot 64-bit code.
17166         (Pmode): Ditto.
17167         (STACK_BOUNDARY): Add VSX support.
17168         (LOCAL_ALIGNMENT): Ditto.
17169         (SLOW_UNALIGNED_ACCESS): Ditto.
17170         (VSX_REGNO_P): New macro for VSX support.
17171         (VFLOAT_REGNO_P): Ditto.
17172         (VINT_REGNO_P): Ditto.
17173         (VLOGICAL_REGNO_P): Ditto.
17174         (VSX_VECTOR_MODE): Ditto.
17175         (VSX_SCALAR_MODE): Ditto.
17176         (VSX_MODE): Ditto.
17177         (VSX_MOVE_MODE): Ditto.
17178         (VSX_REG_CLASS_P): Ditto.
17179         (HARD_REGNO_NREGS): Instead of calling a function, use an array
17180         lookup.
17181         (UNITS_PER_SIMD_WORD): Add VSX support.
17182         (MODES_TIEABLE_P): Ditto.
17183         (STARTING_FRAME_OFFSET): Ditto.
17184         (STACK_DYNAMIC_OFFSET): Ditto.
17185         (EPILOGUE_USES): Ditto.
17186         (REGNO_REG_CLASS): Move to array lookup.
17187         (CLASS_MAX_NREGS): Ditto.
17188         (rs6000_vector_reg_class): Add declaration.
17189         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
17190         overlap with the floating point and Altivec registers.
17192         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
17194         * config/rs6000/driver-rs6000.c (asm_names): New static array to
17195         give the appropriate asm switches if -mcpu=native.
17196         (host_detect_local_cpu): Add support for "asm".
17197         (host_detect_local_cpu): Follow GNU code guidelines for name.
17199         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
17200         -mbit-word to a variable instead of being a target mask.
17202         * config/rs6000/sync.md (lwsync): If the assembler supports it,
17203         emit the lwsync instruction instead of emitting the instruction as
17204         an integer constant.
17206         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
17207         fixuns_trundfsi2, move expander into rs6000.md.
17209         * config/rs6000/rs6000.md (cpu): Add power7.
17210         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
17211         (logical predicate patterns): Change the single instruction
17212         primitives that set CR0 to be fast_compare instead of compare.
17213         (norsi*): Ditto.
17214         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
17215         (popcntddi2): Ditto.
17216         (popcount<mode>): Ditto.
17217         (floating multiply/add insns): Name the floating point
17218         multiply/add insns.
17219         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
17220         (isel_unsigned_<mode>): Ditto.
17221         (fixuns_trundfsi2): Move expander here from spe.md.
17222         (smindi3): Define if we have -misel on 64-bit systems.
17223         (smaxdi3): Ditto.
17224         (umindi3): Ditto.
17225         (umaxdi3): Ditto.
17227 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
17229         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
17230         extra_objs.
17231         * config/avr/avr.c (avr_current_device): New variable.
17232         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
17233         (avr_arch, mcu_type_s): Move to avr.h.
17234         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
17235         default_data_section_start fields.
17236         (avr_arch): Moved from avr.c.
17237         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
17238         library_name fields.
17239         (avr_current_device, avr_mcu_types, avr_arch_types,
17240         avr_device_to_arch, avr_device_to_data_start,
17241         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
17242         (EXTRA_SPEC_FUNCTIONS): Define.
17243         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
17244         options mapping. Use device_to_arch and device_to_data_start insted.
17245         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
17246         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
17247         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
17248         * config/avr/driver-avr.c: New file.
17249         * config/avr/avr-devices.c: New file.
17251 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
17253         * var-tracking.c (unshare_variable): Force initialized to
17254         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
17255         (set_variable_part): Likewise.
17256         (struct variable_union_info): Remove pos_src field.
17257         (vui_vec, vui_allocated): New variables.
17258         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
17259         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
17260         == 1 use a simpler sorting algorithm.  Compute pos field right
17261         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
17262         Avoid quadratic comparison if !flag_var_tracking_uninit.
17263         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
17264         unshare_variable unconditionally.
17265         (dataflow_set_different_2): Removed.
17266         (dataflow_set_different): Don't traverse second hash table.
17267         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
17268         unconditionally to var_reg_set or var_mem_set.
17269         (emit_notes_in_bb): Likewise.
17270         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
17271         unshare_variable.
17272         (emit_note_insn_var_location): Don't set initialized to
17273         VAR_INIT_STATUS_INITIALIZED early.
17274         (vt_finalize): Free vui_vec if needed, clear vui_vec and
17275         vui_allocated.
17276         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
17278         * tree-object-size.c (addr_object_size): Instead of checking
17279         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
17280         are no FIELD_DECLs following it.
17282 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17284         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
17285         order to match bswaps with signed source operands.
17287 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17289         * sdbout.c (sdbout_one_type): Fix braces in switch.
17291 2009-06-23  Richard Guenther  <rguenther@suse.de>
17293         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
17294         member.
17295         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
17296         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
17297         var_callused, callused_tree, var_storedanything, storedanything_tree,
17298         var_integer, integer_tree): Remove global variables.
17299         (new_var_info): Do not pass new id, append the new var to the
17300         global variable vector.
17301         (do_ds_constraint): Use is_global_var member of the variable-info.
17302         (new_scalar_tmp_constraint_exp): Adjust.
17303         (create_function_info_for): Likewise.
17304         (create_variable_info_for): Likewise.
17305         (find_what_var_points_to): Remove dead code.
17306         (init_base_vars): Simplify.
17307         (compute_points_to_sets): Adjust.
17309 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17311         * combine.c (try_combine): Dump information about the insns we're
17312         combining.
17314 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
17316         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
17317         check when calling force_to_mode on TRUNCATE's operand.
17319 2009-06-22  Ian Lance Taylor  <iant@google.com>
17321         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
17323 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17325         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
17327 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17329         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
17330         override library linkage flags such as -static-libgcc or
17331         -shared-libgcc.
17333 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17335         * config/m68k/m68k-devices.def: Add line for MCF5221x.
17337 2009-06-22  Ian Lance Taylor  <iant@google.com>
17339         * config/linux.opt: Put mglibc ahead of muclibc.
17341         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
17342         for duplicate decls.
17344 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17346         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
17348 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
17350         PR objc/28050
17351         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
17352         instead of NULL if a parser error occurs.
17354 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17356         * dwarf2out.c (dwarf2_debug_hooks): Initialize
17357         non-DWARF2_DEBUGGING_INFO version.
17359 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
17361         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
17362         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
17364         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
17365         (LIBGCC2_TF_CEXT): Define.
17366         (TF_SIZE): Define.
17368 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17370         PR target/40463
17371         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
17373 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17375         * config/arm/arm.c (arm_override_options): Disable
17376         -mcaller-super-interworking and -mcallee-super-interworking.
17377         * doc/invoke.texi (ARM Options): Document this.
17379 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17381         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
17382         * config/arm/constraints.md (j): New constraint for movw operands.
17383         (N): Remove thumb2 meaning.
17384         * config/arm/arm.md (*arm_movw): Delete.
17385         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
17386         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
17387         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
17389 2009-06-22  Martin Jambor  <mjambor@suse.cz>
17391         PR tree-optimization/40492
17392         * tree-sra.c (sra_modify_assign): Pass zero offsets to
17393         build_ref_for_offset.
17395 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
17397         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
17398         JUMP_TABLE_DATA_P predicates where applicable.
17399         * auto-inc-dec.c: Ditto.
17400         * builtins.c: Ditto.
17401         * caller-save.c: Ditto.
17402         * calls.c: Ditto.
17403         * cfgcleanup.c: Ditto.
17404         * cfglayout.c: Ditto.
17405         * cfgrtl.c: Ditto.
17406         * combine.c: Ditto.
17407         * combine-stack-adj.c: Ditto.
17408         * cse.c: Ditto.
17409         * cselib.c: Ditto.
17410         * dbxout.c: Ditto.
17411         * df-scan.c: Ditto.
17412         * dse.c: Ditto.
17413         * dwarf2asm.c: Ditto.
17414         * dwarf2out.c: Ditto.
17415         * emit-rtl.c: Ditto.
17416         * except.c: Ditto.
17417         * explow.c: Ditto.
17418         * expmed.c: Ditto.
17419         * expr.c: Ditto.
17420         * final.c: Ditto.
17421         * function.c: Ditto.
17422         * fwprop.c: Ditto.
17423         * gcse.c: Ditto.
17424         * genpreds.c: Ditto.
17425         * genrecog.c: Ditto.
17426         * ifcvt.c: Ditto.
17427         * ira-costs.c: Ditto.
17428         * ira-lives.c: Ditto.
17429         * jump.c: Ditto.
17430         * loop-iv.c: Ditto.
17431         * lower-subreg.c: Ditto.
17432         * modulo-sched.c: Ditto.
17433         * optabs.c: Ditto.
17434         * postreload.c: Ditto.
17435         * print-rtl.c: Ditto.
17436         * recog.c: Ditto.
17437         * reginfo.c: Ditto.
17438         * regmove.c: Ditto.
17439         * reload1.c: Ditto.
17440         * reload.c: Ditto.
17441         * reorg.c: Ditto.
17442         * rtlanal.c: Ditto.
17443         * rtl.c: Ditto.
17444         * sched-vis.c: Ditto.
17445         * sdbout.c: Ditto.
17446         * sel-sched-ir.c: Ditto.
17447         * simplify-rtx.c: Ditto.
17448         * targhooks.c: Ditto.
17449         * var-tracking.c: Ditto.
17450         * vmsdbgout.c: Ditto.
17452 2009-06-22  Matthias Klose  <doko@ubuntu.com>
17454         * Makefile.in (install-plugin): Always use DESTDIR.
17456 2009-06-22  Olivier Hainque  <hainque@adacore.com>
17458         * config/pa/pa.c (output_call): Don't optimize post call jumps
17459         into return address adjustments if the call may throw.
17461 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
17463         * arm.c (thumb1_output_casesi): New function.
17464         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
17465         optimizing for size or PIC.
17466         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
17467         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
17468         (casesi): Handle Thumb-1 when optimizing for size or PIC.
17469         (thumb1_casesi_internal_pic): New expand rule.
17470         (thumb1_casesi_dispatch): New pattern.
17471         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
17472         thumb-1 mode.
17473         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
17474         in the text seciton when PIC or optimizing for size.
17475         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17476         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
17477         preservation properties of code.
17478         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
17479         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
17480         (__gnu_thumb1_case_si): New function.
17481         * t-arm (LIB1ASMSRC): Define here.
17482         (LIB1ASMFUNCS): Add some common functions.
17483         * t-arm-elf (LIB1ASMSRC): Delete.
17484         (LIB1ASMFUNCS): Append to existing set.
17485         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17486         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17487         * t-symbian (LIB1ASMFUNCS): Likewise.
17488         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17489         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
17491 2009-06-21  Richard Guenther  <rguenther@suse.de>
17493         PR tree-optimization/38729
17494         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
17495         to loops with a single exit if -fno-expensive-optimizations.
17497 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
17499         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
17500         (dataflow_set): Change vars type from htab_t to shared_hash.
17501         (shared_hash_pool, empty_shared_hash): New variables.
17502         (vars_clear): Removed.
17503         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
17504         shared_hash_find_slot_unshare, shared_hash_find_slot,
17505         shared_hash_find_slot_noinsert, shared_hash_find): New
17506         static inlines.
17507         (shared_hash_unshare, shared_hash_destroy): New functions.
17508         (unshare_variable): Unshare set->vars if shared, use
17509         shared_hash_htab.
17510         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
17511         (get_init_value, find_src_set_src, dump_dataflow_set,
17512         clobber_variable_part, emit_notes_for_differences): Use
17513         shared_hash_htab.
17514         (dataflow_set_init): Remove second argument, set vars to
17515         empty_shared_hash instead of creating a new htab.
17516         (dataflow_set_clear): Call shared_hash_destroy and set vars
17517         to empty_shared_hash instead of calling vars_clear.
17518         (dataflow_set_copy): Don't call vars_copy, instead just share
17519         the src htab with dst.
17520         (variable_union): Use shared_hash_*, use initially NO_INSERT
17521         lookup if set->vars is shared.  Don't keep slot cleared before
17522         calling unshare_variable.  Unshare set->vars if needed.
17523         Even ->refcount == 1 vars must be unshared if set->vars is shared
17524         and var needs to be modified.
17525         (variable_canonicalize): New function.
17526         (dataflow_set_union): If dst->vars is empty, just share src->vars
17527         with dst->vars and traverse with variable_canonicalize to canonicalize
17528         and unshare what is needed.
17529         (dataflow_set_different): If old_set and new_set use the same shared
17530         htab, they aren't different.  If number of htab elements is different,
17531         htabs are different.  Use shared_hash_*.
17532         (dataflow_set_destroy): Call shared_hash_destroy instead of
17533         htab_delete.
17534         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
17535         second argument to dataflow_set_init.
17536         (vt_initialize): Likewise.  Initialize shared_hash_pool and
17537         empty_shared_hash, move bb in/out initialization afterwards.
17538         Use variable_htab_free instead of NULL as changed_variables del hook.
17539         (variable_was_changed): Change type of second argument to pointer to
17540         dataflow_set.  When inserting var into changed_variables, bump
17541         refcount.  Unshare set->vars if set is shared htab and slot needs to
17542         be cleared.
17543         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
17544         lookup if set->vars is shared.  Unshare set->vars if needed.
17545         Even ->refcount == 1 vars must be unshared if set->vars is shared
17546         and var needs to be modified.  Adjust variable_was_changed caller.
17547         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
17548         vars must be unshared if set->vars is shared and var needs to be
17549         modified.  Adjust variable_was_changed caller.
17550         (emit_note_insn_var_location): Don't pool_free var.
17551         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
17552         instead of 1.
17553         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
17554         free_alloc_pool on shared_hash_pool.
17556 2009-06-20  Anthony Green  <green@moxielogic.com>
17558         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
17559         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
17561 2009-06-20  Richard Guenther  <rguenther@suse.de>
17563         * tree-ssa-structalias.c (find_func_aliases): For memset use
17564         a constraint from NULL if we memset to zero.
17565         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
17566         we explicitly handle that do not read from memory.
17567         (call_may_clobber_ref_p_1): Properly handle builtins that may
17568         set errno.
17570 2009-06-20  Richard Guenther  <rguenther@suse.de>
17572         PR tree-optimization/40495
17573         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
17574         (new_scalar_tmp_constraint_exp): New function.
17575         (process_constraint): Do not create temporary decls.
17576         (process_all_all_constraints): Likewise.
17577         (handle_const_call): Likewise.
17578         (create_function_info_for): Do not set decl.
17580 2009-06-19  Ian Lance Taylor  <iant@google.com>
17582         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
17583         (rs6000_attribute_table): Make static; move before use.
17585 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
17587         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
17588         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
17589         Propagate the TREE_READONLY flag without overwriting it.
17590         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
17591         Propagate the TREE_READONLY flag onto the result.
17592         (process_call_operands): Move around.  Use correct constant value.
17594 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17596         PR target/40482
17597         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
17598         * config/arm/arm.md: Likewise.
17600 2009-06-19  Ian Lance Taylor  <iant@google.com>
17602         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
17603         to GIMPLE_ERROR_MARK.
17605         * c-typeck.c (build_conditional_expr): Add op1_original_type and
17606         op2_original_type parameters.  Warn about using different enum types.
17607         * c-parser.c (c_parser_conditional_expression): Pass original
17608         types to build_conditional_expr.
17609         * c-tree.h (build_conditional_expr): Update declaration.
17611 2009-06-19  Ian Lance Taylor  <iant@google.com>
17613         * config/i386/i386.c (ix86_function_specific_save): Test that
17614         fields match values, rather than testing the values are in a
17615         certain range.
17617 2009-06-19  Richard Guenther  <rguenther@suse.de>
17619         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17620         ADDR_EXPR pointers.
17621         (ptr_derefs_may_alias_p): Likewise.
17622         (ptr_deref_may_alias_ref_p_1): New function.
17623         (ptr_deref_may_alias_ref_p): Likewise.
17624         (ref_maybe_used_by_call_p_1): Handle builtins that are not
17625         covered by looking at the ESCAPED solution.
17626         (call_may_clobber_ref_p_1): Likewise.
17627         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17628         Handle NULL_TREE offset.  Do not produce redundant constraints.
17629         (process_all_all_constraints): New helper function.
17630         (do_structure_copy): Use it.
17631         (handle_lhs_call): Likewise.
17632         (find_func_aliases): Handle some builtins with pointer arguments
17633         and/or return values explicitly.
17635 2009-06-19  Ian Lance Taylor  <iant@google.com>
17637         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
17639 2009-06-19  Ian Lance Taylor  <iant@google.com>
17641         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
17643 2009-06-19  Ian Lance Taylor  <iant@google.com>
17645         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
17646         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
17647         version.
17649         * c-decl.c (finish_decl): If -Wc++-compat, warn about
17650         uninitialized const.
17652 2009-06-19  Ian Lance Taylor  <iant@google.com>
17654         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
17655         all uses.
17657         * c-decl.c (in_struct, struct_types): Remove.
17658         (struct c_binding): Add in_struct field.
17659         (c_binding_ptr): Define type, along with VEC.
17660         (struct c_struct_parse_info): Define.
17661         (struct_parse_info): New static variable.
17662         (bind): Initialize in_struct field.
17663         (start_struct): Remove enclosing_in_struct and
17664         enclosing_struct_types parameters.  Add
17665         enclosing_struct_parse_info parameter.  Change all callers.  Set
17666         struct_parse_info rather than in_struct and struct_types.
17667         (grokfield): If -Wc++-compat and there is a symbol binding for the
17668         field name, set the in_struct flag and push it on the
17669         struct_parse_info->fields vector.
17670         (warn_cxx_compat_finish_struct): New static function.
17671         (finish_struct): Remove enclosing_in_struct and
17672         enclosing_struct_types parameters.  Add
17673         enclosing_struct_parse_info parameter.  Change all callers.  Don't
17674         set C_TYPE_DEFINED_IN_STRUCT here.  Call
17675         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
17676         parameter.  Only push on struct_types if warn_cxx_compat.
17677         (finish_enum): Only push on struct_types if warn_cxx_compat.
17678         (declspecs_add_type): Add loc parameter.  Change all callers.
17679         Change all error calls to error_at.  Pass loc, not input_location,
17680         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
17681         defined in a struct.  If -Wc++-compat and parsing a struct, record
17682         that a typedef name was used.
17683         * c-parser.c (c_parser_declspecs): Get location to pass to
17684         declspecs_add_type.
17685         (c_parser_struct_or_union_specifier): Update calls to start_struct
17686         and finish_struct.
17687         * c-tree.h (struct c_struct_parse_info): Declare.
17688         (finish_struct, start_struct): Update declarations.
17689         (declspecs_add_type): Update declaration.
17691 2009-06-19  Ian Lance Taylor  <iant@google.com>
17693         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
17694         variable with an anonymous type.
17696 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17698         * see.c: Remove for real.
17700 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
17702         * optabs.h (enum optab_index): Add new OTI_significand.
17703         (significand_optab): Define corresponding macro.
17704         * optabs.c (init_optabs): Initialize significand_optab.
17705         * genopinit.c (optabs): Implement significand_optab using
17706         significand?f2 patterns.
17707         * builtins.c (expand_builtin_mathfn): Handle
17708         BUILT_IN_SIGNIFICAND{,F,L}.
17709         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
17710         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
17712         * config/i386/i386.md (significandxf2, significand<mode>2): New
17713         expanders to implement significandf, significand and significandl
17714         built-ins as inline x87 intrinsics.
17716 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
17718         * config/avr/avr.c (avr_override_options): Remove setting value of
17719         PARAM_INLINE_CALL_COST.
17721 2009-06-18  Richard Henderson  <rth@redhat.com>
17723         PR 40488
17724         * tree-pass.h (TDF_ASMNAME): New.
17725         * tree-dump.c (dump_options): Add asmname.
17726         * doc/invoke.texi: Document it.
17728         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
17729         (dump_decl_name): ...here.
17730         (dump_function_name): New flags arg; mind TDF_ASMNAME.
17731         (dump_generic_node): Update dump_function_name calls.
17732         (print_call_name): New flags arg; update all dump calls.
17733         * diagnostic.h (print_call_name): Update.
17734         * gimple-pretty-print.c (dump_gimple_call): Update.
17736 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17738         PR target/40470
17739         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
17741 2009-06-18  Diego Novillo  <dnovillo@google.com>
17743         * doc/plugins.texi: Document plugin_is_GPL_compatible.
17744         * plugin.c (str_license): Declare.
17745         (try_init_one_plugin): Assert that the symbol
17746         'plugin_is_GPL_compatible' exists.
17748 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
17750         * see.c: Remove.
17751         * Makefile.in (OBJS-common): Remove see.o.
17752         (see.o): Remove.
17753         * common.opt (fsee): Mark as preserved for backward compatibility.
17754         * opts.c (common_handle_option): Add OPT_fsee to the backward
17755         compatibility section.
17756         * passes.c (init_optimization_passes, pass_see): Remove pass.
17757         * timevar.def (TV_SEE): Remove.
17758         * tree-pass.h (pass_see): Remove declaration.
17759         * doc/invoke.texi (-fsee): Remove documentation.
17761 2009-06-18  Martin Jambor  <mjambor@suse.cz>
17763         * tree-sra.c: Include statistics.h
17764         (sra_stats): New variable.
17765         (sra_initialize): Clear sra_stats.
17766         (create_access_replacement): Increment sra_stats.replacements.
17767         (get_access_replacement): Do not return twice.
17768         (analyze_all_variable_accesses): Increment statistics counter by the
17769         number of scalarized aggregates.
17770         (generate_subtree_copies): Increment sra_stats.subtree_copies.
17771         (sra_modify_expr): Increment sra_stats.exprs.
17772         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
17773         (sra_modify_assign): Increment sra_stats.exprs,
17774         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
17775         (perform_intra_sra): Update statistics counters.
17776         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
17778 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17780         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
17781         (arm_scalar_mode_supported_p): New function.
17783 2009-06-18  Paul Brook  <paul@codesourcery.com>
17784             Sandra Loosemore  <sandra@codesourcery.com>
17786         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
17787         (__extendhfsf2, __truncsfhf2): Define.
17788         * config/arm/fp16.c: New file.
17789         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
17790         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
17792 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
17794         * doc/extend.texi (Half-Precision): New section.
17795         * doc/invoke.texi (Option Summary): List -mfp16-format.
17796         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
17797         * config/arm/arm.opt (mfp16-format=): New.
17798         * config/arm/arm.c: Include intl.h.
17799         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
17800         (TARGET_INVALID_RETURN_TYPE): Redefine.
17801         (TARGET_PROMOTED_TYPE): Redefine.
17802         (TARGET_CONVERT_TO_TYPE): Redefine.
17803         (arm_fp16_format): Define.
17804         (all_fpus): Add entry for neon-fp16.
17805         (fp_model_for_fpu): Likewise.
17806         (struct fp16_format): Declare.
17807         (all_fp16_formats): Define.
17808         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
17809         functions.
17810         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
17811         and no ldrh.
17812         (arm_legitimate_index_p): Treat HFmode like HImode.
17813         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
17814         (coproc_secondary_reload_class): Special-case HFmode.
17815         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
17816         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
17817         (arm_init_fp16_builtins): New.
17818         (arm_init_builtins): Call it.
17819         (arm_invalid_parameter_type): New.
17820         (arm_invalid_return_type): New.
17821         (arm_promoted_type): New.
17822         (arm_convert_to_type).
17823         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
17824         format.
17825         (arm_emit_fp16_const): New function.
17826         (arm_mangle_type): Mangle __fp16 as "Dh".
17827         * config/arm/arm.h (TARGET_VFPD32): Make it know about
17828         FPUTYPE_NEON_FP16.
17829         (TARGET_NEON_FP16): New.
17830         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
17831         (enum fputype): Add FPUTYPE_NEON_FP16.
17832         (enum arm_fp16_format_type): Declare.
17833         (arm_fp16_format): Declare.
17834         (LARGEST_EXPONENT_IS_NORMAL): Define.
17835         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
17836         * config/arm/arm-modes.def (HFmode): Define.
17837         * config/arm/vfp.md (*movhf_vfp): New.
17838         (extendhfsf2): New.
17839         (truncsfhf2): New.
17840         * config/arm/arm.md (fpu): Add neon_fp16.
17841         (floatsihf2, floatdihf2): New.
17842         (fix_trunchfsi2, fix_trunchfdi2): New.
17843         (truncdfhf2): New.
17844         (extendhfdf2): New.
17845         (movhf): New.
17846         (*arm32_movhf): New.
17847         (*thumb1_movhf): New.
17848         (consttable_2): Add check for HFmode constants.
17849         (consttable_4): Handle HFmode constants.
17851 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
17853         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
17855 2009-06-17  Olivier Hainque  <hainque@adacore.com>
17857         * collect2.c (main): Use CONST_CAST2 to perform char ** to
17858         const char ** conversion in AIX specific section.
17860 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
17862         * config/i386/i386.c (ix86_special_builtin_type): Remove
17863         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
17864         (bdesc_special_args): Updated.
17865         (ix86_init_mmx_sse_builtins): Likewise.
17866         (ix86_expand_special_args_builtin): Likewise.
17868 2009-06-17  Richard Henderson  <rth@redhat.com>
17870         * tree-pretty-print.c (maybe_dump_asm_name): New.
17871         (dump_decl_name): Use it.
17872         (PRINT_FUNCTION_NAME): Merge into...
17873         (dump_function_name): ... here.  Use maybe_dump_asm_name.
17875 2009-06-17  Cary Coutant  <ccoutant@google.com>
17877         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
17878         Change caller.
17879         * debug.c (struct gcc_debug_hooks): Change placeholder for
17880         source_line hook.
17881         (debug_nothing_int_charstar_int): Replaced by...
17882         (debug_nothing_int_charstar_int_bool): ...this.
17883         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
17884         source_line prototype.
17885         (debug_nothing_int_charstar_int): Replaced by...
17886         (debug_nothing_int_charstar_int_bool): ...this.
17887         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
17888         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
17889         Output is_stmt operand when necessary.
17890         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
17891         (notice_source_line): Add is_stmt parameter.
17892         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
17893         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
17894         Change callers.
17895         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
17896         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
17898 2009-06-17  Ian Lance Taylor  <iant@google.com>
17900         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
17901         Change all uses.
17902         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
17903         call uses.
17905 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
17907         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
17908         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
17909         tree_strip_sign_nop_conversions and
17910         tree_ssa_strip_useless_type_conversions rather than stripping
17911         the operations here.
17912         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
17913         Declare them.
17914         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
17915         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
17916         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
17917         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
17918         functions.
17920 2009-06-17  Michael Eager  <eager@eagercon.com>
17922         * config/rs6000/constraints.md (register_constraint "d"): New.
17923         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
17924         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17925         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
17926         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
17927         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17928         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
17929         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
17930         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
17931         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
17932         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
17933         __fctiwz): Same.
17934         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
17935         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
17936         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
17937         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
17938         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
17939         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
17940         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
17941         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
17942         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
17943         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
17944         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
17945         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
17946         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
17947         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
17949 2009-06-16  Ian Lance Taylor  <iant@google.com>
17951         * profile.c (total_num_never_executed): Don't define.
17952         (compute_branch_probabilities): Don't count or print
17953         num_never_executed.
17954         (init_branch_prob): Don't set total_num_never_executed.
17955         (end_branch_prob): Don't print total_num_never_executed.
17957 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
17959         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
17961 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
17963         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
17964         (nabstd2_fpr): Same.
17966 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
17968         * expr.c (expand_assignment): Change complex type check.
17970 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
17972         * doc/plugins.texi (Building GCC plugins): Added new section.
17974 2009-06-17  Ian Lance Taylor  <iant@google.com>
17976         * c-pch.c (get_ident): Don't set size of templ array.
17977         (pch_init): Don't set size of partial_pch array.
17979         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
17980         string constant to intialize an array whose size is the length of
17981         the string.
17983 2009-06-17  Richard Guenther  <rguenther@suse.de>
17985         PR tree-optimization/40389
17986         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
17987         to addressable types.
17988         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
17990 2009-06-17  Richard Guenther  <rguenther@suse.de>
17992         PR middle-end/40460
17993         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
17994         if there is no evolution of left in the loop bail out.
17995         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
17996         chrec_fold_multiply.
17998 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
17999             Janis Johnson  <janis187@us.ibm.com>
18001         PR target/39254
18002         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
18003         for the symbol ref of a constant that is the source of a move
18004         - nor for any other not-obvious-label-ref constants.
18006 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
18008         * plugin.c (position_pass): Skip newly inserted pass during list
18009         traversal to avoid repeated insertion.
18011 2009-06-16  Ian Lance Taylor  <iant@google.com>
18013         * vec.h (VEC_stack_alloc): Define different version if
18014         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
18015         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
18016         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
18017         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18019 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
18021         * config.gcc (extra_headers): Add ia32intrin.h for x86.
18023         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
18024         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
18025         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
18026         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
18027         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
18028         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18029         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18030         (bdesc_special_args): Add __builtin_ia32_rdtsc and
18031         __builtin_ia32_rdtscp.
18032         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
18033         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
18034         and __builtin_ia32_rorhi.
18035         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
18036         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
18037         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
18038         (ix86_expand_args_builtin): Likewise.
18039         (ix86_expand_special_args_builtin): Likewise.
18041         * config/i386/i386.md (UNSPECV_RDTSCP): New.
18042         (UNSPECV_RDTSC): Likewise.
18043         (UNSPECV_RDPMC): Likewise.
18044         (*bsr): Renamed to ...
18045         (bsr): This
18046         (*bsr_rex64): Renamed to ...
18047         (bsr_rex64): This.
18048         (rdpmc): New.
18049         (*rdpmc): Likewise.
18050         (*rdpmc_rex64): Likewise.
18051         (rdtsc): Likewise.
18052         (*rdtsc): Likewise.
18053         (*rdtsc_rex64): Likewise.
18054         (rdtscp): Likewise.
18055         (*rdtscp): Likewise.
18056         (*rdtscp_rex64): Likewise.
18058         * config/i386/ia32intrin.h: New.
18060         * config/i386/x86intrin.h: Include <ia32intrin.h>.
18062 2009-06-16  Ian Lance Taylor  <iant@google.com>
18064         * ira-build.c (copy_info_to_removed_store_destinations):
18065         Initialize parent_a.
18067 2009-06-16  Ian Lance Taylor  <iant@google.com>
18069         * c-decl.c (grokdeclarator): Change size_varies to bool.
18071 2009-06-16  Ian Lance Taylor  <iant@google.com>
18073         * sel-sched.c: Make forward declarations of move_op_hooks and
18074         fur_hooks explicitly extern.
18076 2009-06-16  Ian Lance Taylor  <iant@google.com>
18078         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
18079         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
18081 2009-06-16  Ian Lance Taylor  <iant@google.com>
18083         * resource.c (mark_referenced_resources): Change
18084         include_delayed_effects parameter to bool.  Change all callers.
18085         (mark_end_of_function_resources): Likewise.
18086         * reorg.c (insn_references_resource_p): Likewise.
18087         (insn_sets_resource_p): Likewise.
18088         * resource.h (mark_referenced_resources): Update declaration.
18089         (mark_end_of_function_resources): Update declaration.
18091 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
18093         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
18095 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
18097         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
18098         GCC can bootstrap on AIX with GNU Binutils 2.20.
18100 2009-06-16  Ian Lance Taylor  <iant@google.com>
18102         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
18104 2009-06-16  Ian Lance Taylor  <iant@google.com>
18106         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
18107         inline, not extern inline.
18108         (exact_log2): Likewise.
18109         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
18110         test CLZ_HWI.
18111         (exact_log2): Likewise, but don't test CTZ_HWI.
18113 2009-06-16  Ian Lance Taylor  <iant@google.com>
18115         * bitmap.c (bitmap_clear): Don't declare as inline.
18116         * gimple.c (gimplify_assign): Likewise.
18117         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18118         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
18119         (sched_scan_info): Remove duplicate definition.
18121 2009-06-16  Ian Lance Taylor  <iant@google.com>
18123         * c-common.c (skip_evaluation): Don't define.
18124         (c_inhibit_evaluation_warnings): Define global variable.
18125         (overflow_warning): Check c_inhibit_evaluation_warnings rather
18126         than skip_evaluation.
18127         (convert_and_check, warn_for_div_by_zero): Likewise.
18128         * c-common.h (skip_evaluation): Don't declare.
18129         (c_inhibit_evaluation_warnings): Declare.
18130         * c-parser.c (c_parser_typeof_specifier): Set
18131         c_inhibit_evaluation_warnings rather than skip_evaluation.
18132         (c_parser_conditional_expression): Likewise.
18133         (c_parser_binary_expression): Likewise.
18134         (c_parser_sizeof_expression): Likewise.
18135         (c_parser_alignof_expression): Likewise.
18136         * c-typeck.c (build_indirect_ref): Check
18137         c_inhibit_evaluation_warnings rather than skip_evaluation.
18138         (build_conditional_expr, build_binary_op): Likewise.
18140 2009-06-16  Richard Guenther  <rguenther@suse.de>
18142         * tree-ssa-alias.c (is_escape_site): Remove.
18143         * tree-ssa-alias.h (enum escape_type): Remove.
18144         (is_escape_site): Likewise.
18145         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
18146         via casts and asms without deferring to is_escape_site.
18148 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
18150         PR middle-end/40446
18151         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
18152         use gen_lowpart if op0 has complex mode.
18154 2009-06-16  Richard Guenther  <rguenther@suse.de>
18156         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
18157         variables add them to ESCAPED.
18158         (find_func_aliases): Do not make all indirectly stored values escaped.
18160 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
18162         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
18163         make_decl_one_only.
18165 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18167         PR tree-optimization/40432
18168         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
18169         check whether we need to force gimple register operand.
18171 2009-06-16  Martin Jambor  <mjambor@suse.cz>
18173         PR tree-optimization/40413
18174         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
18175         build_ref_for_offset.
18176         (propagate_subacesses_accross_link): Fix a typo in a comment.
18178 2009-06-16  Ira Rosen  <irar@il.ibm.com>
18180         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
18181         with additional parameter.
18182         * tree-vectorizer.h (enum vect_def_type): Add new value
18183         vect_nested_cycle.
18184         (enum vect_relevant): Add comments.
18185         (vect_is_simple_reduction): Add new argument.
18186         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
18187         Detect nested cycles.
18188         (vect_is_simple_reduction): Update documentation, add an argument to
18189         distinguish inner-loop reduction from nested cycle, detect nested
18190         cycles, fix printings and indentation, don't swap operands in case
18191         of nested cycle.
18192         (get_initial_def_for_reduction): Handle subtraction.
18193         (vect_create_epilog_for_reduction): Add new argument to specify
18194         reduction variable.
18195         (vect_finalize_reduction): Handle subtraction, fix comments.
18196         (vectorizable_reduction): Handle nested cycles. In case of nested
18197         cycle keep track of the reduction variable position. Call
18198         vect_is_simple_reduction with additional parameter. Use original
18199         statement code in reduction epilogue for nested cycle. Call
18200         vect_create_epilog_for_reduction with additional parameter.
18201         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
18202         inner-loop vectorization.
18203         (vect_recog_widen_sum_pattern): Likewise.
18204         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
18205         and reductions.
18206         (vect_mark_stmts_to_be_vectorized): Likewise.
18207         (vect_get_vec_def_for_operand): Handle nested cycles.
18209 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18211         * doc/invoke.texi (Debugging Options): Fix option index entries
18212         for -fdump-statistics, -frandom-seed add entries for
18213         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
18214         (FRV Options): Fix entries for -mTLS, -mtls.
18215         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
18216         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
18217         (M68hc1x Options): Fix @itemx for -mnominmax.
18218         (MCore Options): Fix entry for -mno-lsim.
18219         (MMIX Options): Fix entry for -mabi=mmixware.
18220         (PDP-11 Options): Fix entry for -mbcopy-builtin.
18222 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
18224         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
18225         Mention the plugin mode of gengtype.
18226         * doc/gty.texi (Source Files Containing Type Information): Likewise.
18227         * gengtype.c: Updated copyright.
18228         (plugin_files, nb_plugin_files) Added new static variables.
18229         (measure_input_list) Care about plugin_files.
18230         (write_rtx_next): Added early return in plugin mode.
18231         (create_file): Updated copyright year in generated file. Added
18232         asserts.
18233         (oprintf): Added early return if NULL outf.
18234         (get_output_file_with_visibility): Care of plugin_files.
18235         (get_output_file_name): May return null.
18236         (write_local): Added early return.
18237         (put_mangled_filename): Ditto.
18238         (finish_root_table): Added check for base_files.
18239         (write_roots): Care about null when plugins.
18240         (main): Added plugin mode.
18242 2009-06-15  Ian Lance Taylor  <iant@google.com>
18244         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
18245         * gcov.c (read_count_file): Add braces around variables declared
18246         before label.
18248         * c.opt (Wjump-misses-init): New warning.
18249         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
18250         -Wall and -Wc++-compat if not already set.
18251         (c_common_post_options): Clear warn_jump_misses_init if it was not
18252         set.
18253         * c-decl.c (struct c_binding): Change type field to a union with
18254         new label field.  Make it the first field in the struct.  Update
18255         references to type to use u.type instead.
18256         (struct c_spot_bindings): Define.
18257         (struct c_goto_bindings): Define.
18258         (c_goto_bindings_p): Define, along with VECs.
18259         (struct c_label_vars): Define.
18260         (struct c_scope): Add has_label_bindings field.
18261         (bind_label, set_spot_bindings): New static functions.
18262         (decl_jump_unsafe, update_spot_bindings): New static functions.
18263         (update_label_decls): New static function.
18264         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
18265         Update binding u.label field to shadowed field.
18266         (c_binding_start_stmt_expr): New function.
18267         (c_binding_end_stmt_expr): New function.
18268         (pushdecl): Don't call c_begin_vm_scope.
18269         (make_label): Add defining and p_label_vars parameters.  Change
18270         all callers.
18271         (lookup_label): Correct test for whether a label has not yet been
18272         defined.  Call bind_label rather than bind.
18273         (warn_about_goto): New static function.
18274         (lookup_label_for_goto): New function.
18275         (declare_label): Call bind_label rather than bind.
18276         (check_earlier_gotos): New static function.
18277         (define_label): Don't give errors about jumping into statement
18278         expressions or scopes of variably modified types.  Call
18279         set_spot_bindings and check_earlier_gotos.  Call bind_label
18280         instead of bind.  Don't set label_context_stack_se or
18281         label_context_stack_vm.
18282         (c_get_switch_bindings): New function.
18283         (c_release_switch_bindings): New function.
18284         (c_check_switch_jump_warnings): New function.
18285         (start_function): Don't set label_context_stack_se or
18286         label_context_stack_vm.
18287         (finish_function): Likewise.
18288         * c-typeck.c (label_context_stack_se): Don't define.
18289         (label_context_stack_vm): Don't define.
18290         (c_finish_goto_label): Call lookup_label_for_goto rather than
18291         lookup_label.  Don't give errors about jumping into a statement
18292         expression or the scope of a variably modified type.  Don't set
18293         label_context_stack_se or label_context_stack_vm.
18294         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
18295         fields.  Add bindings field.
18296         (c_start_case): Don't set deleted fields.  Set bindings field.
18297         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
18298         or blocked_vm.  Call c_check_switch_jump_warnings.
18299         (c_finish_case): Don't test blocked_stmt_expr field.  Call
18300         c_release_switch_bindings.
18301         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
18302         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18303         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
18304         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
18305         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
18306         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
18307         (c_begin_vm_scope, c_end_vm_scope): Don't define.
18308         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
18309         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
18310         (C_DECL_UNJUMPABLE_VM): Don't define.
18311         (C_DECL_UNDEFINABLE_VM): Don't define.
18312         (struct c_label_list): Don't define.
18313         (struct c_label_context_se): Don't define.
18314         (struct c_label_context_vm): Don't define.
18315         (struct c_spot_bindings): Declare.
18316         (c_bindings_start_stmt_expr): Declare.
18317         (c_bindings_end_stmt_expr): Declare.
18318         (lookup_label_for_goto): Declare.
18319         (c_get_switch_bindings, c_release_switch_bindings): Declare.
18320         (c_check_switch_jump_warnings): Declare.
18321         (label_context_stack_se, label_context_stack_vm): Don't declare.
18322         (c_finish_goto_label): Update declaration.
18323         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
18324         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
18325         (Warning Options): Document -Wjump-misses-init.
18327 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
18329         * tree-object-size.c (addr_object_size): Fix a pasto in the last
18330         change.
18332 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18334         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
18336 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18338         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
18340 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
18342         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
18344 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
18346         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
18347         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18348         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
18349         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
18350         * dwarf2asm.c (dw2_force_const_mem): Update call to
18351         make_decl_one_only.
18352         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
18353         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
18354         * langhooks.c (lhd_comdat_group): Remove.
18355         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
18356         * tree.h (DECL_COMDAT_GROUP): New.
18357         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
18358         (tree_decl_with_vis): Add comdat_group. Remove one_only.
18359         (make_decl_one_only): Change signature.
18360         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
18361         make_decl_one_only.
18362         (make_decl_one_only): Change signature.
18363         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
18365 2009-06-15  Richard Guenther  <rguenther@suse.de>
18367         PR middle-end/40439
18368         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
18370 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18372         * tree-ssa-math-opts.c: Remove extra divide.
18374 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18376         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
18378 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18380         * passes.c: Add bswap pass.
18381         * tree-pass.h: Add pass_optimize_bswap declaration.
18382         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
18383         Include rtl.h, expr.h and optabs.h for optab_handler check.
18384         (struct symbolic_number, pass_optimize_bswap): New definition.
18385         (do_shift_rotate, verify_symbolic_number_p): New functions.
18386         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
18387         (gate_optimize_bswap): New function.
18388         * tree.c (widest_int_cst_value): New function.
18389         * tree.h (widest_int_cst_value): Prototype added.
18391 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
18393         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
18394         REG_EQUAL/REG_EQUIV notes.
18396 2009-06-14  Richard Guenther  <rguenther@suse.de>
18398         PR middle-end/40389
18399         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
18400         has its address taken if NRV was applied and it is addressable.
18401         * tree-ssa-structalias.c (get_constraint_for_address_of): New
18402         function split out from ...
18403         (get_constraint_for_1): ... here.
18404         (handle_rhs_call): Use it to mark the return slot escaped if
18405         it is addressable and NRV was applied.
18407 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18409         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
18410         Change first argument type to location_t.
18411         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
18412         Do not set input_location.
18413         Use loc instead of input_location throughout.
18415 2009-06-13  Richard Guenther  <rguenther@suse.de>
18417         PR tree-optimization/40421
18418         * tree-predcom.c (should_unroll_loop_p): Remove.
18419         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
18421 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18423         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18424         Add location argument.
18426 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
18428         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
18429         build_decl.
18430         * config/s390/s390.c (s390_build_builtin_va_list): Same.
18431         (s390_gimplify_va_arg): Pass location to create_artificial_label.
18432         * config/spu/spu-protos.h: Add location to
18433         spu_resolve_overloaded_builtin.
18434         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
18435         spu_build_builtin_va_list.
18436         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
18437         argument.  Pass location to build_function_call_vec.
18438         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
18439         build_decl.
18440         (emit_fpu_switch): Same.
18441         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
18442         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
18443         to build_decl and create_artificial_label.
18444         (xtensa_gimplify_va_arg_expr): Same.
18445         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
18446         (xstormy16_gimplify_va_arg_expr): Same.
18447         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
18448         * config/arm/arm.c (arm_build_builtin_va_list): Same.
18449         * config/mips/mips.c (mips_build_builtin_va_list): Same.
18450         (mips16_build_function_stub): Same.
18451         (mips16_build_call_stub): Same.
18453 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
18455         PR target/40327
18456         * arm/constraints.md (Pa, Pb): New constraints.
18457         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
18458         split pattern to deal with them.
18460 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
18462         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
18463         fix index entry for -Xpreprocessor.
18465 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18467         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18468         Add location argument to build_decl call.
18469         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
18470         (rs6000_init_builtins): Same.
18471         (spe_init_builtins): Same.
18472         (rs6000_gimplify_va_arg): Add location argument to
18473         create_artificial_label call.
18475 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
18477         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
18478         * combine-stack-adj.c (pass_stack_adjustments): Use it.
18479         * Makefile.in: Fix GGC dependency for gcse.o.
18481 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
18483         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
18484         * gimple-pretty-print.c (dump_gimple_stmt): Same.
18485         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
18486         created.
18487         * c-parser.c (c_parser_binary_expression): Use current column while
18488         building binary operations.
18489         * common.opt (fshow-column): Enable by default.
18490         * tree-vrp.c (check_array_ref): Use warning_at.
18491         (check_array_bounds): Use location from call back if expr has no
18492         location.
18493         * tree.h: Add location argument to maybe_fold_*.
18494         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
18495         (maybe_fold_offset_to_array_ref): Add location argument and use it.
18496         (maybe_fold_offset_to_component_ref): Same.
18497         (maybe_fold_offset_to_reference): Same.
18498         (maybe_fold_offset_to_address): Same.
18499         (maybe_fold_stmt_indirect): Same.
18500         (maybe_fold_stmt_addition): Same.
18501         (fold_stmt_r): Pass location to maybe_fold_*.
18502         (fold_gimple_assign): Same.
18503         * c-tree.h: Add location argument to finish_decl,
18504         default_function_array_conversion, store_init_value.
18505         * c-decl.c (define_label): Use error_at.
18506         (c_make_fname_decl): Pass location to finish_decl.
18507         (finish_decl): New location argument.
18508         (build_compound_literal): Pass location to store_init_value.
18509         (grokdeclarator): Pass location to finish_decl.
18510         (grokfield): Same.
18511         * c-typeck.c (array_to_pointer_conversion): New location argument.
18512         (function_to_pointer_conversion): Same.
18513         (default_function_array_conversion): Same.
18514         (parser_build_unary_op): Pass location to overflow_warning.
18515         (parser_build_binary_op): Same.  Use warning_at.
18516         (build_unary_op): Pass location to array_to_pointer_conversion.
18517         (build_c_cast): Pass location to digest_init.
18518         (build_modify_expr): New location argument.
18519         (convert_for_assignment): Same.
18520         (store_init_value): Same.
18521         (digest_init): Same.
18522         (output_init_element): Pass location to digest_init and
18523         array_to_pointer_conversion.
18524         (c_finish_return): Pass location to convert_for_assignment.
18525         * gimplify.c (gimplify_conversion): Pass location to
18526         maybe_fold_offset_to_address.
18527         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
18528         to maybe_fold_stmt_addition.
18529         * c-omp.c (c_finish_omp_atomic): Pass new location to
18530         build_modify_expr.
18531         (c_finish_omp_for): Same.
18532         * c-common.c (overflow_warning): New argument.
18533         * c-common.h: New argument to build_modify_expr, overflow_warning.
18534         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
18535         finish_decl.
18536         (c_parser_initializer): Pass location to
18537         default_function_array_conversion.
18538         (c_parser_initelt): Same.
18539         (c_parser_initval): Same.
18540         (c_parser_asm_operands): Same.
18541         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
18542         (c_parser_conditional_expression): Same.
18543         (c_parser_binary_expression): Add location info to stack.  Use it.
18544         (c_parser_unary_expression): Pass location to
18545         default_function_array_conversion, parser_build_unary_op,
18546         build_indirect_ref, c_parser_postfix_expression_after_primary.
18547         (c_parser_postfix_expression_after_primary): New location argument.
18548         Use it.
18549         (c_parser_expression_conv): Pass location to
18550         default_function_array_conversion.
18551         (c_parser_expr_list): Same.
18552         (c_parser_omp_atomic): Same.
18553         (c_parser_omp_for_loop): Same.
18554         * c-tree.h (struct c_declarator): Add comment to id_loc.
18555         (build_array_declarator): New argument.
18556         * c-decl.c (build_array_declarator): Add location argument.
18557         (grokdeclarator): Set id_loc for cdk_array.
18558         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
18559         build_array_declarator.
18560         * tree.c (build_omp_clause): Add location argument.
18561         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
18562         (OMP_CLAUSE_LOCATION): New macro.
18563         (struct tree_omp_clause): Add location field.
18564         (build_omp_clause): Add argument.
18565         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
18566         build_omp_clause.
18567         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
18568         (cp_parser_omp_clause_collapse): Same.
18569         (cp_parser_omp_clause_default): Same.
18570         (cp_parser_omp_clause_if): Same.
18571         (cp_parser_omp_clause_nowait): Same.
18572         (cp_parser_omp_clause_num_threads): Same.
18573         (cp_parser_omp_clause_ordered): Same.
18574         (cp_parser_omp_clause_schedule): Same.
18575         (cp_parser_omp_clause_untied): Same.
18576         (cp_parser_omp_for_loop): Same.
18577         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18578         * c-tree.h (c_start_case): Add location argument.
18579         (c_process_expr_stmt): Same.
18580         (c_finish_goto_*): Same.
18581         * tree-parloops.c (initialize_reductions): Pass location to
18582         build_omp_clause.
18583         (create_parallel_loop): Same.
18584         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
18585         (gfc_trans_omp_reduction_list): Same.
18586         (gfc_trans_omp_clauses): Same.
18587         (gfc_trans_omp_do): Same.
18588         * c-typeck.c (c_finish_goto_label): Same.
18589         (c_finish_goto_ptr): New location argument.
18590         (c_start_case): Same.
18591         (emit_side_effect_warnings): Same.
18592         (c_process_expr_stmt): Same.
18593         (c_finish_stmt_expr): Same.
18594         (c_finish_omp_clauses): Use error_at instead of error.
18595         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
18596         build_omp_clause.
18597         * c-omp.c (c_split_parallel_clauses): New location argument.
18598         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
18599         to build_omp_clause.
18600         (convert_local_reference_stmt): Same.
18601         (convert_gimple_call): Same.
18602         * c-common.h (c_split_parallel_clauses): New argument.
18603         * c-parser.c (c_parser_statement_after_labels): Pass location to
18604         c_finish_goto_label.
18605         (c_parser_switch_statement): Pass location to c_start_case.
18606         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
18607         and c_process_expr_stmt.
18608         (c_parser_omp_variable_list): Add location argument.
18609         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
18610         (c_parser_omp_clause_default): Same.
18611         (c_parser_omp_clause_if): Same.
18612         (c_parser_omp_clause_num_threads): Same.
18613         (-c_parser_omp_clause_ordered): Same.
18614         (c_parser_omp_clause_reduction): Pass location to
18615         c_parser_omp_variable_list.
18616         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
18617         (c_parser_omp_clause_untied): Same.
18618         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
18619         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
18621         * c-tree.h (check_for_loop_decls, undeclared_variable,
18622         build_component_ref, build_array_ref, build_external_ref,
18623         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
18624         build_conditional_expr, build_compound_expr, c_cast_expr,
18625         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
18626         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
18627         argument.
18628         * c-semantics.c (build_stmt): Same.
18629         (build_case_label): Same.
18630         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
18631         (undeclared_variable): New argument.
18632         (make_label): Same.
18633         (lookup_label): Pass location on down.
18634         (define_label): Same.
18635         (finish_decl): Same.
18636         (build_compound_literal): Same.
18637         (finish_struct): Same.
18638         (finish_function): Do not set location here.
18639         (check_for_loop_decls): New argument.
18640         * tree.c (save_expr): Set location.
18641         (build_empty_stmt): New argument.
18642         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
18643         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
18644         * builtins.c (gimplify_va_arg_expr): Use locations.
18645         (expand_builtin_sync_operation): Same.
18646         * c-typeck.c (build_component_ref): New argument.
18647         (build_array_ref): Same.
18648         (build_external_ref): Same.
18649         (c_expr_sizeof_expr): Same.
18650         (c_expr_sizeof_type): Same.
18651         (parser_build_unary_op): Same.
18652         (build_conditional_expr): Same.
18653         (build_compound_expr): Pass location on down.
18654         (build_compound_expr): New argument.
18655         (build_c_cast): Same.
18656         (c_cast_expr): Same.
18657         (build_asm_expr): Same.
18658         (c_finish_return): Same.
18659         (c_process_expr_stmt): Pass location on down.
18660         (c_finish_stmt_expr): New argument.
18661         (push_clenaup): Same.
18662         (c_finish_omp_parallel): Same.
18663         (c_finish_omp_task): Same.
18664         * gimplify.c (gimplify_call_expr): Pass location on down.
18665         * c-omp.c (c_finish_omp_master): New argument.
18666         (c_finish_omp_critical): Same.
18667         (c_finish_omp_ordered): Same.
18668         (c_finish_omp_barrier): Same.
18669         (-c_finish_omp_taskwait): Same.
18670         (c_finish_omp_atomic): Same.
18671         (c_finish_omp_flush): Same.
18672         * tree-inline.c (copy_tree_body_r): Pass location on down.
18673         (inline_forbidden_p): Remove use of input_location.
18674         * c-gimplify.c (c_build_bind_expr): New argument.
18675         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
18676         (c_sizeof_or_alignof_type): New argument.
18677         (c_alignof_expr): Same.
18678         (build_va_arg): Same.
18679         (c_add_case_label): Same.
18680         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
18681         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
18682         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
18683         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
18684         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
18685         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
18686         New argument.
18687         * stub-objc.c (objc_build_selector_expr): Same.
18688         (objc_build_throw_stmt): Same.
18689         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
18690         (c_parser_initelt): Same.
18691         (c_parser_compound_statement): Same.
18692         (c_parser_compound_statement_nostart): Same.
18693         (c_parser_label): Same.
18694         (c_parser_statement_after_labels): Same.
18695         (c_parser_if_body): Same.
18696         (c_parser_else_body): Same.
18697         (c_parser_if_statement): Same.
18698         (c_parser_switch_statement): Same.
18699         (c_parser_while_statement): Same.
18700         (c_parser_do_statement): Same.
18701         (c_parser_for_statement): Same.
18702         (c_parser_asm_statement): Same.
18703         (c_parser_conditional_expression): Same.
18704         (c_parser_binary_expression): Same.
18705         (c_parser_cast_expression): Same.
18706         (c_parser_unary_expression): Same.
18707         (c_parser_sizeof_expression): Same.
18708         (c_parser_alignof_expression): Same.
18709         (c_parser_postfix_expression): Same.
18710         (c_parser_expression): Same.
18711         (c_parser_objc_receiver): Same.
18712         (c_parser_omp_variable_list): Same.
18713         (c_parser_omp_structured_block): Same.
18714         (c_parser_omp_atomic): New argument.
18715         (c_parser_omp_barrier): Same.
18716         (c_parser_omp_critical): Same.
18717         (c_parser_omp_flush): Pass location on down.
18718         (c_parser_omp_for_loop): New argument.
18719         (c_parser_omp_for): Same.
18720         (c_parser_omp_master): Same.
18721         (c_parser_omp_ordered): Same.
18722         (c_parser_omp_sections_scope): Same.
18723         (c_parser_omp_sections): Same.
18724         (c_parser_omp_parallel): Same.
18725         (c_parser_omp_single): Same.
18726         (c_parser_omp_task): Same.
18727         (c_parser_omp_taskwait): Pass location on down.
18728         (c_parser_omp_construct): Same.
18729         (c_parser_omp_threadprivate): Same.
18730         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
18731         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
18732         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
18733         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
18734         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
18735         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
18736         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
18737         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
18738         config/i386/i386.c, stmt.c:
18739         Add location argument to the following function definitions and/or
18740         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
18741         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
18742         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
18743         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
18744         do_case, c_finish_bc_stmt, build_compound_literal,
18745         build_function_call.
18746         * c-decl.c (build_compound_literal): Add location argument.
18747         Make all diagnostic calls use location.
18748         (start_struct): Same.
18749         (finish_struct): Same.
18750         (start_enum): Same.
18751         (build_enumerator): Same.
18752         (start_function): Same.
18753         (grokdeclarator): Make all diagnostic calls use location.
18754         (store_parm_decls_oldstyle): Same.
18755         * c-typeck.c (build_function_call): Add location argument.
18756         Make all diagnostic calls use location.
18757         (do_case): Same.
18758         (c_finish_bc_stmt): Same.
18759         * tree-nested.c (get_trampoline_type): Add argument.
18760         Pass location to build_decl.
18761         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
18762         * rtl.h (RTL_LOCATION): New.
18763         * c-common.c (c_add_case_label): Add location argument.
18764         Make all diagnostic calls use location.
18765         * c-common.h: Add location argument to make_fname_decl, do_case,
18766         c_add_case_label, build_function_call, resolve_overloaded_builtin.
18767         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
18768         Set it appropriately for every case.  Pass enum_loc to start_enum
18769         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
18770         parser_xref_tag.
18771         (c_parser_struct_or_union_specifier): Save location.  Use it for
18772         start_struct, finish_struct, and parser_xref_tag.
18774 2009-06-12  Ian Lance Taylor  <iant@google.com>
18776         * fold-const.c (fold_unary): Rename local variable and to and_expr.
18778         * c-opts.c (c_common_handle_option): For -Wc++-compat set
18779         cpp_opts->warn_cxx_operator_names.
18781 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18783         PR tree-opt/38865
18784         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
18785         is returns NULL and OP is a VCE, look through the VCE.
18787 2009-06-12  Ian Lance Taylor  <iant@google.com>
18789         PR bootstrap/40430
18790         * collect2.c (main): Use CONST_CAST2 in code inside #if
18791         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
18793 2009-06-12  Joey Ye  <joey.ye@intel.com>
18795         PR middle-end/39146
18796         * cfgexpand.c (get_decl_align_unit): Update
18797         max_used_stack_slot_alignment with align instead of
18798         stack_alignment_needed.
18800         * function.c (assign_stack_local_1): Update
18801         max_used_stack_slot_alignment with alignment_in_bits instead
18802         of stack_alignment_needed.
18803         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
18804         here.
18806 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
18808         * dwarf2out.c (last_var_location_insn): New variable.
18809         (dwarf2out_end_epilogue): Clear last_var_location_insn.
18810         (dwarf2out_var_location): Don't record anything after last real
18811         insn.  Only change labels if there were any real instructions
18812         in between last note and this one, or if changed sections.
18814 2009-06-11  Richard Henderson  <rth@redhat.com>
18816         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
18817         note when storing the frame pointer in a register.
18818         (FRP): Don't redefine to nothing for epilogue.
18819         (alpha_expand_epilogue): Mark register and sp restores.
18820         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
18822         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
18823         when gen_lowpart is needed.
18825 2009-06-11  Richard Henderson  <rth@redhat.com>
18827         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
18829         * dwarf2out.c (need_data_align_sf_opcode): New.
18830         (div_data_align): Move earlier.
18831         (def_cfa_1, reg_save): Use it.
18833 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
18835         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
18836         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
18837         (ix86_handle_option): Handle OPT_mcrc32.
18838         (ix86_target_string): Add -mcrc32.
18839         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
18841         * config/i386/i386.h (TARGET_CRC32): New.
18843         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
18844         (sse4_2_crc32di): Likewise.
18846         * config/i386/i386.opt (mcrc32): New.
18848         * doc/invoke.texi: Document -mcrc32.
18850 2009-06-11  Richard Henderson  <rth@redhat.com>
18852         * common.opt (gdwarf-): Accept a version number.
18853         * doc/invoke.texi (gdwarf-): Update docs.
18854         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
18855         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
18856         version level, and record it.
18858         * dwarf2.h (DW_CIE_VERSION): Remove.
18859         * dwarf2out.c (DWARF_VERSION): Remove.
18860         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
18861         (output_call_frame_info): Use CIE version 3 for dwarf3,
18862         or if the return register column is out of range for version 1.
18863         (dwarf_stack_op_name): Add all dwarf3 values.
18864         (DEBUG_PUBTYPES_SECTION): New.
18865         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
18866         encoding change for dwarf3.
18867         (output_die) [dw_val_class_die_ref]: Likewise.
18868         (output_compilation_unit_header): Emit correct version for dwarf3.
18869         (output_line_info): Likewise.
18870         (output_pubnames): Update for DWARF_VERSION removal.
18871         (output_aranges): Likewise.
18872         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
18873         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
18874         (dwarf2out_finish): Likewise.
18876 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18878         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
18879         in r148403.
18881 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
18883         PR c/39252
18884         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
18885         * builtins.c (expand_builtin_unreachable): New function.
18886         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
18887         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
18888         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
18889         successors.
18890         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
18891         searching for missing barriers.
18893 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18895         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
18896         when -fprofile-generate* was passed.
18897         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
18899 2009-06-11  Anthony Green  <green@moxielogic.com>
18901         * config/moxie/moxie.md: Define length attribute for all instructions.
18902         (rCC): Define.
18903         (*b<cond:code>): Support limited branch ranges for new PC-relative
18904         branch instructions.
18905         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
18907 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
18909         * config/i386/i386.c (min_insn_size): Use get_attr_length
18910         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
18911         For __asm return 0.
18913         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
18914         instead of emit_insn_before.
18916 2009-06-10  Ian Lance Taylor  <iant@google.com>
18918         PR bootstrap/40408
18919         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
18920         GIMPLE_SWITCH.
18922 2009-06-10  Revital Eres  <eres@il.ibm.com>
18924         * passes.c (init_optimization_passes): Reschedule
18925         predictive-commoning pass before complete unroll pass.
18927 2009-06-10  Martin Jambor  <mjambor@suse.cz>
18929         * cgraph.c (cgraph_node_can_be_local_p): New function.
18930         (cgraph_make_node_local): New function.
18931         * cgraph.h (cgraph_node_can_be_local_p): Declare.
18932         (cgraph_make_node_local): Declare.
18934 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
18936         * tree.h (tree_base): Add packed_flag and user_align fields.
18937         Decrease size of spare field.
18938         (TYPE_USER_ALIGN): Use user_align from tree_base.
18939         (DECL_USER_ALIGN): Likewise.
18940         (TYPE_PACKED): Use packed_flag from tree_base.
18941         (DECL_PACKED): Likewise.
18942         (tree_type): Delete packed_flag and user_align fields.  Widen
18943         precision field.  Widen mode field and shuffle fields to align
18944         mode on an 8-bit boundary.
18945         (tree_decl_common): Delete decl_flag_1 and user_align fields.
18946         Renumber decl_flag_* fields.  Fix comments.  Widen
18947         decl_common_unused field.
18948         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
18949         (DECL_EXTERNAL): Likewise.
18950         (DECL_BIT_FIELD): Likewise.
18951         (DECL_NONADDRESSABLE_P): Likewise.
18952         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
18953         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
18955 2009-06-10  Ian Lance Taylor  <iant@google.com>
18957         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
18958         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
18959         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
18960         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
18961         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
18962         DEF_VEC_ALLOC_FUNC_P.
18963         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
18964         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
18965         DEF_VEC_ALLOC_FUNC_O.
18966         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
18967         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
18968         DEF_VEC_ALLOC_FUNC_I.
18969         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
18970         (vec_stack_p_reserve_exact_1): Declare.
18971         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
18972         (vec_stack_free): Declare.
18973         (VEC_stack_alloc): Define.
18974         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
18975         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
18976         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
18977         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
18978         for void_p.
18979         (stack_vecs): New static variable.
18980         (vec_stack_p_reserve_exact_1): New function.
18981         (vec_stack_o_reserve_1): New static function.
18982         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
18983         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
18984         (vec_stack_free): New function.
18985         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
18986         (VEC_df_ref_stack_alloc): Define.
18987         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
18988         DEF_VEC_ALLOC_P_STACK.
18989         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
18990         (struct df_collection_rec): Change _vec fields to VEC.  Remove
18991         _use fields.
18992         (df_free_collection_rec): Adjust for new fields.
18993         (df_insn_rescan): Use new df_collection_rec fields.
18994         (df_notes_rescan, df_canonize_collection_rec): Likewise.
18995         (df_ref_create_structure, df_ref_record): Likewise.
18996         (df_get_conditional_uses, df_get_call_refs): Likewise.
18997         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
18998         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
18999         (df_record_exit_block_uses, df_bb_verify): Likewise.
19000         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
19001         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
19002         Remove count parameter.  Change return type to void.  Change all
19003         callers.
19004         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
19005         Remove count parameter.  Change return type to void.  Change all
19006         callers.
19007         (df_install_refs): Change old_vec parameter to VEC.  Remove count
19008         parameter.  Change all callers.
19009         (df_install_mws): Change old_vec parameter to VEC.  Remove count
19010         parameter.  Change all callers.
19011         (df_refs_verify): Change new_rec parameter to VEC.  Change call
19012         callers.
19013         (df_mws_verify): Likewise.
19015 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
19017         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
19019 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
19021         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
19023 2009-06-10  Anthony Green  <green@moxielogic.com>
19025         * config/moxie/crti.asm: New file.
19026         * config/moxie/crtn.asm: New file.
19027         * config/moxie/moxie.c: New file.
19028         * config/moxie/moxie.h: New file.
19029         * config/moxie/sfp-machine.h: New file.
19030         * config/moxie/moxie-protos.h: New file.
19031         * config/moxie/t-moxie: Created.
19032         * config/moxie/t-moxie-softfp: Created.
19033         * config/moxie/moxie.md: Created.
19034         * config/moxie/constraints.md: Created.
19035         * config.gcc: Add moxie support.
19036         * doc/md.texi (Machine Constraints): Add moxie constraints.
19037         * doc/contrib.texi (Contributors): Mention moxie port.
19038         * doc/install.texi (Specific): Mention the moxie port.
19040 2009-06-09  Ian Lance Taylor  <iant@google.com>
19042         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
19043         compiling with C++.
19044         * optabs.c (optab_table): Only use designated initializers if
19045         HAVE_DESIGNATED_INITIALIZERS is defined.
19046         (convert_optab_table): Likewise.
19047         (init_optabs): Always call init_insn_codes if
19048         HAVE_DESIGNATED_INITIALIZERS is not defined.
19050 2009-06-09  Ian Lance Taylor  <iant@google.com>
19052         * targhooks.c (default_builtin_vectorized_function): Change fn
19053         parameter to unsigned int.
19054         (default_builtin_vectorized_conversion): Change code parameter to
19055         unsigned int.
19056         (default_builtin_reciprocal): Change fn parameter to unsigned int.
19057         * targhooks.h: Update declarations.
19058         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
19059         parameter to unsigned int.
19061         * c-typeck.c (comptypes_check_enum_int): New static function.
19062         (comptypes_internal): Add enum_and_int_p parameter.  Change all
19063         callers.
19064         (comp_target_types): Add location parameter.  Change all callers.
19065         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
19066         Change all callers.
19067         (function_types_compatible_p, type_lists_compatible_p): Likewise.
19068         (build_conditional_expr): Add colon_loc parameter.  Change all
19069         callers.
19070         (convert_for_assignment): Add location parameter.  Change all callers.
19071         * c-parser.c (c_parser_conditional_expression): Pass location of
19072         colon to build_conditional_expr.
19073         * c-tree.h (build_conditional_expr): Update declaration.
19075 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
19077         * graphite.c: Revert previous patch.
19079 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
19081         PR bootstrap/40103
19082         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
19084 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
19086         * tree-ssa-loop-prefetch.c
19087         (loop_prefetch_arrays): Fixed a portability problem in printf format
19088         string.
19090 2009-06-09  Martin Jambor  <mjambor@suse.cz>
19092         PR tree-optimization/40351
19093         * tree-sra.c (propagate_subacesses_accross_link): Check that a
19094         refrence to a potential artifical subaccess can be constructed.
19096 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
19098         * config/sh/sh-protos.h (sh_optimization_options): Declare.
19099         (sh_override_options): Likewise.
19100         * config/sh/sh.c: Include params.h.
19101         (sh_optimization_options): New.
19102         (sh_override_options): Likewise.
19103         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
19104         (OVERRIDE_OPTIONS): Use sh_override_options.
19106 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
19108         * dwarf2out.c (emit_cfa_remember): New variable.
19109         (add_fde_cfi): If emit_cfa_remember, recurse to add
19110         DW_CFA_remember_state first.
19111         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
19112         instead just set emit_cfa_remember.
19114 2009-06-08  Jan Hubicka  <jh@suse.cz>
19116         PR debug/40126
19117         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
19119 2009-06-08  Jan Hubicka  <jh@suse.cz>
19121         PR middle-end/39834
19122         * cgraphunit.c (save_inline_function_body): Do not copy transform
19123         hooks for saved inline bodies.
19124         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
19125         for given function.
19127 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
19129         * jump.c (returnjump_p): Handle delayed branches.  Add missing
19130         function comment.
19132 2009-06-08  Jan Hubicka  <jh@suse.cz>
19134         PR middle-end/40102
19135         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
19136         original node might've been modified.
19137         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
19139 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
19141         * tree-object-size.c (addr_object_size): Add OSI argument.
19142         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
19143         (compute_builtin_object_size, expr_object_size): Adjust callers.
19144         (plus_stmt_object_size): Call addr_object_size instead of
19145         compute_builtin_object_size.
19147 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
19148             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
19150         * tree-ssa-loop-prefetch.c
19151         (gather_memory_references): Introduced a counter for the number of
19152         memory references.
19153         (anything_to_prefetch_p): Introduced a counter for the number of
19154         prefetches.
19155         (is_loop_prefetching_profitable): New function with a cost model
19156         for prefetching.
19157         (loop_prefetch_arrays): Use the new cost model to determine if
19158         prefetching is profitable.
19159         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
19160         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19161         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
19162         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19163         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
19164         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
19166 2009-06-08  Michael Matz  <matz@suse.de>
19168         PR debug/40012
19169         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
19170         partitions use the same.
19171         (expand_one_var): Deal with DECL_RTL sometimes begin set also
19172         for basevars of SSA_NAMEs.
19173         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
19174         to not expand them twice.
19175         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
19176         multiple places.
19178 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
19180         * common.opt (fcompare-debug=, fcompare-debug-second): New.
19181         (fdump-final-insns=, gtoggle): New.
19182         * doc/invoke.texi: Document them.
19183         * final.c (rest_of_clean_state): Dump final insn stream.
19184         * gcc.c (invoke_as): Hook in -fcompare-debug.
19185         (static_spec_functions): Add compare-debug-dump-opt,
19186         compare-debug-self-opt and compare-debug-auxbase-opt.
19187         (compare_debug, compare_debug_second, compare_debug_opt): New.
19188         (switches_debug_check, n_switches_debug_check): New.
19189         (debug_auxbase_opt, debug_check_temp_file): New.
19190         (process_command): Handle -fno-compare-debug, -fcompare-debug and
19191         -fcompare-debug=*.
19192         (do_self_spec): Handle arguments after switches.
19193         (do_spec_1): Add .gk extension to temp file basenames for compare.
19194         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
19195         (cc1_options): Use it instead of normal auxbase computation for
19196         the second compare-debug compilation.
19197         (compare_files): New.
19198         (main): Set up and implement compare debug mode.
19199         (compare_debug_dump_opt_spec_function): New.
19200         (compare_debug_self_opt_spec_function): New.
19201         (compare_debug_auxbase_opt_spec_function): New.
19202         * toplev.c (process_options): Handle flag_gtoggle,
19203         flag_dump_final_insns.
19204         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
19205         during -fcompare-debug-second compilation.
19207 2009-06-07  Ian Lance Taylor  <iant@google.com>
19209         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
19210         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
19212         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
19213         with no default node.  Change warning with %H to warning_at.
19214         Don't clear warn_switch around case checking.
19215         * doc/invoke.texi (Warning Options): Clarify distinction between
19216         -Wswitch and -Wswitch-enum.
19218 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19220         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
19222 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19224         * gbl-ctors.h: Add header guard.
19226 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19228         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
19229         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
19230         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
19231         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
19232         prototypes for removed functions.
19233         (expressions_equal_p): Move to ...
19234         * tree-ssa-sccvn.h: ... here and ...
19235         * matrix-reorg.c: ... adjust includes.
19237 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19239         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
19241 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19243         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
19244         (finish_function): Remove erroneous whitespace.
19246 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19248         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
19249         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
19251 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19253         * errors.c (internal_error): Commentary typo fix.
19254         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
19255         * tree-ssa-pre.c: Ditto.
19257 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19259         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
19260         them is supposed to hold actual statements.
19262 2009-06-06  Ian Lance Taylor  <iant@google.com>
19264         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
19265         empty statements can now have attributes.
19267 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
19269         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
19270         * config/mips/mips.md: Ditto.
19272 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19274         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
19275         _RELOCATABLE.
19276         (__eabi_uconvert): Likewise.
19278 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
19280         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
19281         CFI_* definitions with IN_GCC.
19283 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
19285         * xcoffout.h (xcoffout_source_line): Update prototype.
19287 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19289         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
19290         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
19292 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19294         PR middle-end/40340
19295         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
19296         inlined_function_outer_scope_p blocks for artificial inlines
19297         even at -g0/-g1.
19298         * tree.c (tree_nonartificial_location): Rewrite using
19299         block_nonartificial_location.
19301 2009-06-05  Revital Eres  <eres@il.ibm.com>
19302             Leehod Baruch  <leehod@il.ibm.com>
19304         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
19305         (expand_expr_real_1): Remove comment.
19306         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19307         Vectorize misaligned access when the target supports it.
19308         (vect_supportable_dr_alignment): Check for unaligned access support.
19309         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
19310         and remove asset.
19312 2009-06-05  Julian Brown  <julian@codesourcery.com>
19314         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
19315         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
19317 2009-06-05  Richard Guenther  <rguenther@suse.de>
19319         PR bootstrap/40350
19320         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
19321         as possibly unused.
19323 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
19325         * config/s390/s390.c (global_not_special_regno_p): New static inline.
19326         (save_gprs): Don't tell unwinder when a global register is saved.
19327         (s390_emit_epilogue): Emit needed epilogue unwind info.
19329 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19331         * dwarf2out.c (deferred_asm_name): New.
19332         (add_name_and_src_coords_attributes): Defer creation of
19333         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
19334         computed yet.
19335         (move_linkage_attr): New.
19336         (dwarf2out_finish): Revisit deferrals and emit attributes at the
19337         right place.
19339 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
19341         * tree-nested.c (finalize_nesting_tree_1): Declare the
19342         frame_decl in the binding tree.
19344 2009-06-04  Cary Coutant  <ccoutant@google.com>
19346         * basic-block.h (struct basic_block_def): Add discriminator field.
19347         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
19348         callers.
19349         * debug.c (do_nothing_debug_hooks): Add additional entry.
19350         (debug_nothing_int_charstar_int): New function.
19351         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
19352         (debug_nothing_int_charstar_int): New declaration.
19353         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
19354         discriminator value in .loc directive.
19355         * final.c (last_discriminator): New variable.
19356         (discriminator): New variable.
19357         (final_start_function): Initialize above variables, pass current
19358         discriminator to debug hook.
19359         (notice_source_line): Check for discriminator change.
19360         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
19361         * sdbout.c (sdbout_source_line): New parameter.
19362         * tree-cfg.c (struct locus_discrim_map): New structure type.
19363         (discriminator_per_locus): New hash table.
19364         (build_gimple_cfg): Allocate and free discriminator hash table.
19365         (make_edges): Call assign_discriminator.
19366         (locus_map_hash): New function.
19367         (locus_map_eq): New function.
19368         (next_discriminator_for_locus): New function.
19369         (same_line_p): New function.
19370         (assign_discriminator): New function.
19371         (make_cond_expr_edges): Call assign_discriminator.
19372         (make_gimple_switch_edges): Likewise.
19373         (first_non_label_stmt): New function.
19374         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
19375         all callers.
19376         * xcoffout.c (xcoffout_source_line): Add new parameter.
19378         * configure.ac (gcc_cv_as_discriminator): New configury check for
19379         gas support for discriminator.
19380         * configure: Regenerate.
19381         * config.in: Regenerate.
19383 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19385         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
19386         val after checking for integers.
19388 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
19390         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
19391         X64_REGPARM_MAX.
19392         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
19393         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
19394         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
19395         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
19396         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
19397         X64_SSE_REGPARM_MAX.
19398         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
19399         X64_SSE_REGPARM_MAX.
19401 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19403         * gcc.c (report_times_to_file): New.
19404         (execute): Implement it.
19405         (process_command): Support -time=.
19406         * doc/invoke.texi: Document it.
19408 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19410         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
19411         that have value exprs.
19413 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
19415         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
19416         declarations for constants until...
19417         (dw2_output_indirect_constant_1): ... this point.
19419 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
19421         PR target/10242
19422         * arm.md (arm_addsi3): Don't try to split an add with an
19423         eliminable register until after reload has completed.
19425 2009-06-03  Ian Lance Taylor  <iant@google.com>
19427         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
19428         * genattrtab.c (write_length_unit_log): Likewise.
19429         * genchecksum.c (dosum): Likewise.
19430         * gengtype.c (write_rtx_next): Likewise.
19431         (finish_root_table, write_roots): Likewise.
19432         * gimple.c (gimple_ops_offset_): Likewise.
19433         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
19434         * config/arc/arc.c (arc_attribute_table): Likewise.
19435         * config/arm/arm.c (arm_attribute_table): Likewise.
19436         * config/avr/avr.c (avr_attribute_table): Likewise.
19437         * config/crx/crx.c (crx_attribute_table): Likewise.
19438         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
19439         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
19440         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
19441         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
19442         * config/sh/sh.c (sh_attribute_table): Likewise.
19443         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
19444         * config/spu/spu.c (spu_attribute_table): Likewise.
19445         * config/v850/v850.c (v850_attribute_table): Likewise.
19447         * config/alpha/alpha.c (vms_attribute_table): Make static.
19448         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
19449         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
19450         * config/mips/mips.c (mips_attribute_table): Likewise.
19452         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
19453         $(SYSTEM_H).
19454         (cc1-checksum.o): Likewise.
19456 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
19458         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
19460 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
19462         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
19463         insn if it is changing sp.  Use gen_add3_insn instead of
19464         conditionally gen_addsi3 and gen_adddi3.
19465         (offset_below_red_zone_p): New static inline function.
19466         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
19467         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
19468         * config/rs6000/ppc-asm.h: Include auto-host.h.
19469         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
19470         CFI_RESTORE): Define.
19471         * config/rs6000/crtresxgpr.asm: Add unwind info.
19472         * config/rs6000/crtresxfpr.asm: Likewise.
19473         * config/rs6000/crtresgpr.asm: Likewise.
19474         * config/rs6000/crtresfpr.asm: Likewise.
19475         * config/rs6000/crtsavgpr.asm: Likewise.
19476         * config/rs6000/crtsavfpr.asm: Likewise.
19478         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
19479         argument of DWARF2_FRAME_REG_OUT macros.
19481 2009-06-03  Julian Brown  <julian@codesourcery.com>
19483         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
19484         words or less (including TImode) in core registers.
19486 2009-06-03  Richard Guenther  <rguenther@suse.de>
19488         PR middle-end/40328
19489         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
19491 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
19493         * statistics.c (statistics_counter_event): Do not record event
19494         in pass dump if its number == -1.
19495         (curr_statistics_hash): Add assert that we never get passes
19496         with static number == -1.
19498 2009-06-03  Richard Guenther  <rguenther@suse.de>
19499             Andrey Belevantsev  <abel@ispras.ru>
19501         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
19502         non-BLKmode arrays addressable.
19504 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
19506         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
19507         * config/m68k/m68k.h: ... here.
19509 2009-06-03  Martin Jambor  <mjambor@suse.cz>
19511         PR tree-optimization/40323
19512         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
19513         assignment.
19515 2009-06-03  Richard Guenther  <rguenther@suse.de>
19517         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19518         consistently.
19520 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
19522         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
19523         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
19524         JUMP_TABLE_DATA_P where applicable.
19525         * config/sh/sh.c: Ditto.
19526         * config/sh/sh.h: Ditto.
19527         * config/sh/sh.md: Ditto.
19528         * config/sh/symbian.c: Ditto.
19530 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
19532         * config/i386/driver-i386.c (describe_cache): Optimize
19533         concatenation of strings.  Use snprintf instead of sprintf.
19534         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
19535         target when not compiling with GCC.
19537 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
19539         * config/sh/sh.c: Revert last change.
19540         (sh_expand_epilogue): Emit a blockage insn before the frame
19541         pointer adjustment unconditionally.
19543 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19545         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
19546         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
19547         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
19548         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
19549         to COLLECT_GCC_OPTIONS.
19551 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19553         * collect2.c (target_system_root): New variable.
19554         (main): Handle --sysroot=.
19555         (ignore_library): Strip the sysroot from the library path.
19557 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19559         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
19560         (collect2.o): Depend on collect2-aix.h.
19561         (collect2-aix.o): New rule.
19562         * collect2-aix.h: New file.
19563         * collect2-aix.c: Likewise.
19564         * collect2.c: Include collect2-aix.h.  Don't undefine
19565         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
19566         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
19567         Use TARGET_AIX_VERSION instead of _AIX51.
19568         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
19569         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
19570         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
19571         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
19572         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
19574 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19576         * collect2.c (ignore_library): Avoid premature post-increment
19577         and null deference.
19579 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
19581         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
19582         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
19583         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
19584         CROSS_DIRECTORY_STRUCTURE too.
19585         (LINK_LIBG_SPEC): Likewise.
19586         (LIB_SPEC): Add %R to sysroot paths.
19587         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
19588         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
19589         * config/rs6000/aix51.h: As for aix43.h.
19590         * config/rs6000/aix52.h: Likewise.
19591         * config/rs6000/aix53.h: Likewise.
19592         * config/rs6000/aix61.h: Likewise.
19593         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
19594         to the beginning of sysroot paths.
19596 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19598         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
19599         INSN_LISTs that are out of the REG_NOTE range.
19601 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19603         * loop-unroll.c (struct iv_to_split): Add pointer to next.
19604         (struct var_to_expand): Likewise.
19605         (struct opt_info): Add head and tail for linked lists of the above.
19606         (analyze_insn_to_expand_var): Initialize next.
19607         (analyze_iv_to_split_insn): Likewise.
19608         (analyze_insns_in_loop): Create linked lists.
19609         (allocate_basic_variable): Simplify for use without hash table.
19610         (insert_var_expansion_initialization): Likewise, make it type-safer.
19611         (combine_var_copies_in_loop_exit): Likewise.
19612         (apply_opt_in_copies): Walk lists rather than hash tables.
19613         (release_var_copies): Simplified and inlined by hand into...
19614         (free_opt_info): ... this function.
19616 2009-06-02  Richard Guenther  <rguenther@suse.de>
19618         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
19619         for field decls.
19621 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19623         * cfgexpand.c (gimple_expand_cfg): Discard the source location
19624         only for builtins that are not overridden.
19626 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19628         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
19629         label string.
19631 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19633         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
19635 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19637         * combine.c (move_deaths): Compare LUIDs within the same BB only.
19639 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
19641         * common.opt (fdump-unnumbered-links): New.
19642         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
19643         * print-rtl.c (flag_dump_unnumbered_links): New.
19644         (print_rtx): Test it.
19646 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
19648         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
19649         push/pop multiple to 8-byte alignment.
19651 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
19653         * config/i386/i386.c (queued_cfa_restores): New static variable.
19654         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
19655         functions.
19656         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
19657         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
19658         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
19659         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
19660         note unconditionally.
19661         (ix86_emit_restore_regs_using_mov): Likewise.
19662         (ix86_emit_restore_sse_regs_using_mov): Likewise.
19663         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
19664         it through to ix86_emit_restore_reg_using_pop.
19665         (ix86_emit_leave): Add RED_OFFSET argument.  Call
19666         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
19667         instead of adding REG_CFA_OFFSET note unconditionally.
19668         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
19669         the above functions.  Call ix86_add_queued_cfa_restore_notes when
19670         needed.
19672         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
19673         force output of the label even for dwarf2out_do_cfi_asm.
19674         (add_fde_cfi): If -g2 and above and cfi might change CFA,
19675         force creation of CFI label and chain DW_CFA_set_loc jumping to it
19676         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
19677         caller.
19678         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
19679         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
19680         dwarf2out_cfi_label callers.
19681         * tree.h (dwarf2out_cfi_label): Adjust prototype.
19682         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
19683         Adjust dwarf2out_cfi_label callers.
19684         * config/vax/vax.c (vax_output_function_prologue): Likewise.
19686         * config/i386/i386.h (struct machine_cfa_state,
19687         struct machine_function): Guard with ifndef USED_FOR_TARGET
19688         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
19690         PR other/40024
19691         * emutls.c (__emutls_get_address): Change arr->size to mean number
19692         of allocated arr->data entries instead of # of slots + 1.
19694         PR middle-end/40316
19695         * recog.c (peep2_reinit_state): New function.
19696         (peephole2_init_state): Use it at the end of a basic block and also
19697         when seeing a RTX_FRAME_RELATED_P insn.
19699 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
19701         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
19702         fixuns_truncrfdi2): New.
19703         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
19704         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
19705         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
19706         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
19707         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
19708         *recip_approx): Remove.
19709         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
19710         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
19711         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
19712         move to div.md.
19713         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
19714         setf_exp_rf): New.
19716 2009-06-01  Ian Lance Taylor  <iant@google.com>
19718         * attribs.c (register_attribute): Use CONST_CAST.
19719         * collect2.c (main): Use CONST_CAST2.
19720         (scan_prog_file): Likewise.
19721         * gcc.c (process_command, main): Likewise.
19722         * toplev.c (toplev_main): Likewise.
19724         * c-typeck.c (handle_warn_cast_qual): New static function,
19725         partially broken out of build_c_cast.
19726         (build_c_cast): Call handle_warn_cast_qual.
19727         * doc/invoke.texi (Warning Options): Document new effect of
19728         -Wcast-qual.
19730 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
19732         * diagnostic.c (diagnostic_build_prefix): Always print columns.
19733         (diagnostic_report_current_module): Print columns.
19734         * common.opt (flag_show_column): Enable by default.
19736 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
19738         * alias.c (find_base_term): Check for NULL term before returning.
19740 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19742         Revert due to PR40320:
19743         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19744         * calls.c (emit_library_call_value_1): Don't force_operand for move
19745         and push insns.
19747 2009-06-01  Olivier Hainque  <hainque@adacore.com>
19748             Eric Botcazou  <ebotcazou@adacore.com>
19750         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
19751         to be processed as a bitfield for constructor output purposes.
19752         * output.h (initializer_constant_valid_for_bitfield_p): Declare
19753         new function.
19754         * varasm.c (oc_local_state): New type, output_constructor
19755         local state to support communication with helpers.
19756         (oc_outer_state): New type, output_constructor outer state of
19757         relevance in recursive calls.
19758         (output_constructor_array_range): New output_constructor helper,
19759         extracted code for an array range element.
19760         (output_constructor_regular_field): New output_constructor helper,
19761         extracted code for an element that is not a bitfield.
19762         (output_constructor_bitfield): New output_constructor helper,
19763         extracted code for a bitfield element.  Accept an OUTER state
19764         argument for recursive processing.  Recurse on record or array
19765         CONSTRUCTOR values, possibly past noop conversions.
19766         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
19767         VALUE is a valid constant-valued expression for use in a static
19768         bit-field initializer.
19769         (output_constructor): Rework to use helpers.  Accept and honor an
19770         OUTER state argument for recursive calls.  Return total size.  Be
19771         prepared for nested constructors initializing bitfields.
19772         (output_constant): Feed OUTER in calls to output_constructor.
19774 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19776         * calls.c (emit_library_call_value_1): Don't force_operand for move
19777         and push insns.
19779 2009-06-01  Nick Clifton  <nickc@redhat.com>
19781         * doc/invoke.texi (IA-64 Options): Fix typo.
19783 2009-06-01  Ira Rosen  <irar@il.ibm.com>
19785         PR tree-optimization/39129
19786         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
19787         printed message.
19788         (vect_do_peeling_for_loop_bound): Use
19789         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19790         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19791         (vect_loop_versioning): Likewise.
19792         (vect_create_cond_for_alias_checks): Fix indentation.
19793         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
19794         macros.
19795         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
19796         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
19797         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
19798         "control flow in loop".
19799         (vect_estimate_min_profitable_iters): Use
19800         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
19801         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
19802         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19803         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
19804         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
19805         statement belongs to a group of strided accesses with the exact code
19806         check.
19807         (vectorizable_load): Likewise.
19808         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
19809         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19811 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
19813         * config/freebsd-stdint.h: New file.
19814         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
19815         Add freebsd-stdint.h to tm_file.
19817 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
19819         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
19820         (thumb2_extendhidi2): Likewise.
19822 2009-05-31  Ian Lance Taylor  <iant@google.com>
19824         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
19826 2009-05-31  Ian Lance Taylor  <iant@google.com>
19828         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
19829         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
19830         (ipa-reference.o): Depend upon gt-ipa-reference.h.
19832 2009-05-31  Jason Merrill  <jason@redhat.com>
19834         * tree-pretty-print.c (print_call_name): Take the callee, not the
19835         call itself.  Make non-static.  Use dump_function_name for functions.
19836         (dump_generic_node): Adjust.
19837         * diagnostic.h: Declare print_call_name.
19838         * gimple-pretty-print.c (dump_gimple_call): Use it.
19840 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19842         * config/sh/sh.md (ashldi3_std): New define_expand.
19843         (ashldi3): Use it.
19845 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19847         PR target/40313
19848         * config/sh/sh.c: Include debug.h.
19849         (sh_expand_epilogue): Emit a blockage insn before the frame
19850         pointer adjustment also when dwarf2out_do_frame returns true.
19852 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
19854         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
19855         (thumb2_extendqidi2): New pattern.
19857 2009-05-31  Ira Rosen  <irar@il.ibm.com>
19859         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19860         mark phis for renaming.
19861         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
19862         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
19863         Call mark_sym_for_renaming.
19864         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
19865         * tree-vect-loop.c (vect_transform_loop): Remove
19866         vect_memsyms_to_rename initialization and a call to
19867         mark_set_for_renaming.
19869 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
19871         PR middle-end/40304
19872         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
19873         frame related even if !set_cfa && style < 0.
19875 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
19877         * config/i386/mingw-tls.c: New file.
19878         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
19879         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
19880         defining _WIN32 but not __CYGWIN__.
19882 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19884         * configure.ac: Add MPC support.
19886         * config.in, configure: Regenerate.
19888 2009-05-29  Richard Henderson  <rth@redhat.com>
19890         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
19891         NOTE_INSN_BASIC_BLOCK.
19892         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
19893         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
19894         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
19895         to be deleted.
19896         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
19897         add in_use field.
19898         (add_cfi): Disable check redefining cfa away from drap.
19899         (lookup_cfa_1): Add remember argument; handle remember/restore.
19900         (lookup_cfa): Pass remember argument.
19901         (cfa_remember): New.
19902         (compute_barrier_args_size_1): Remove sibcall check.
19903         (dwarf2out_frame_debug_def_cfa): New.
19904         (dwarf2out_frame_debug_adjust_cfa): New.
19905         (dwarf2out_frame_debug_cfa_offset): New.
19906         (dwarf2out_frame_debug_cfa_register): New.
19907         (dwarf2out_frame_debug_cfa_restore): New.
19908         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
19909         (dwarf2out_begin_epilogue): New.
19910         (dwarf2out_frame_debug_restore_state): New.
19911         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
19912         DW_CFA_restore_state.
19913         (output_cfi_directive): Likewise.
19914         (convert_cfa_to_fb_loc_list): Likewise.
19915         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
19916         * dwarf2out.h: Update.
19917         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
19918         (copy_insn_1): Early out for null.
19919         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
19920         and dwarf2out_frame_debug_restore_state.
19921         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
19922         (prologue_insn_hash, epilogue_insn_hash): New.
19923         (free_after_compilation): Adjust freeing accordingly.
19924         (record_insns): Create hash table if needed; push insns into
19925         hash instead of array.
19926         (maybe_copy_epilogue_insn): New.
19927         (contains): Search hash table instead of array.
19928         (sibcall_epilogue_contains): Remove.
19929         (thread_prologue_and_epilogue_insns): Split eh_return insns
19930         and mark them as epilogues.
19931         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
19932         scanning in terms of basic blocks.
19933         * insn-notes.def (CFA_RESTORE_STATE): New.
19934         * jump.c (returnjump_p_1): Accept EH_RETURN.
19935         (eh_returnjump_p_1, eh_returnjump_p): New.
19936         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
19937         CFA_REGISTER, CFA_RESTORE): New.
19938         * rtl.def (EH_RETURN): New.
19939         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
19941         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
19942         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
19944         * config/i386/i386.c (gen_push): Update cfa state.
19945         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
19946         add a CFA_ADJUST_CFA note.
19947         (ix86_dwarf_handle_frame_unspec): Remove.
19948         (ix86_expand_prologue): Update cfa state.
19949         (ix86_emit_restore_reg_using_pop): New.
19950         (ix86_emit_restore_regs_using_pop): New.
19951         (ix86_emit_leave): New.
19952         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
19953         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
19954         * config/i386/i386.h (struct machine_cfa_state): New.
19955         (ix86_cfa_state): New.
19956         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
19957         (eh_return_internal): Merge from eh_return_<mode>,
19958         use eh_return rtx, split w/ epilogue.
19960 2009-05-29  Ian Lance Taylor  <iant@google.com>
19962         * builtins.c (validate_gimple_arglist): Don't use va_arg with
19963         enum type.
19964         * calls.c (emit_library_call_value_1): Likewise.
19966         * c-typeck.c (c_build_va_arg): New function.
19967         * c-tree.h (c_build_va_arg): Declare.
19968         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
19969         instead of build_va_arg.
19971 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
19973         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
19974         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
19975         (ptr_difference_cost): Use affine combinations to compute it.
19976         (difference_cost): Likewise.
19977         (get_computation_cost_at): Compute more accurate cost for addresses
19978         if the ratio is a multiplier allowed in addresses.
19979         For non-addresses, consider that an additional offset or symbol is
19980         added only once.
19982 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
19984         * config/i386/i386.c (ix86_decompose_address): Avoid useless
19985         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
19987         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
19988         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
19989         (prefix_rex): For UNIT_MMX don't imply the prefix by default
19990         if MODE_DI.
19991         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
19992         to 1 for TYPE_SSE{IADD1,CVT1}.
19993         (prefix_vex_imm8): Removed.
19994         (length_vex): Only pass 1 as second argument to
19995         ix86_attr_length_vex_default if prefix_extra is 0.
19996         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
19997         (length): For prefix vex computation use length_immediate
19998         attribute instead of prefix_vex_imm8.
19999         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
20000         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
20001         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
20002         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
20003         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
20004         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
20005         a space in between the operands.
20006         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
20007         if one operand is 0xff and the other one si, di, bp or sp.
20008         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
20009         other one si, di, bp or sp.
20010         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
20011         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
20012         type and mode attributes.
20013         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
20014         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
20015         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
20016         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
20017         prefix_data16 attribute iff MODE_DF.
20018         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
20019         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
20020         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
20021         constm128_operand in length_immediate computation.
20022         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
20023         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
20024         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
20025         length_immediate attribute to 1.
20026         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
20027         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
20028         for certain alternatives.
20029         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
20030         prefix_data16 attribute if MODE_V1DF.
20031         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
20032         length_immediate to 1.
20033         (set_got_rex64, set_rip_rex64): Remove length attribute, set
20034         length_address to 4, set mode attribute to MODE_DI.
20035         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
20036         (fxam<mode>2_i387): Set length attribute to 4.
20037         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
20038         *prefetch_3dnow_rex): Override length_address attribute.
20039         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
20040         attributes.
20041         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
20042         (constm128_operand): Removed.
20043         * config/i386/i386.c (memory_address_length): For
20044         disp && !index && !base in 64-bit mode account for SIB byte if
20045         print_operand_address can't optimize disp32 into disp32(%rip)
20046         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
20047         for fs: or gs: segment.
20048         (ix86_attr_length_immediate_default): When checking if shortform
20049         is possible, truncate immediate to the length of the non-shortened
20050         immediate.
20051         (ix86_attr_length_address_default): Ignore MEM_P operands
20052         with X constraint.
20053         (ix86_attr_length_vex_default): Only check for DImode on
20054         GENERAL_REG_P operands.
20055         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
20056         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
20057         (sse_cvttps2pi): Clear prefix_rep attribute.
20058         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
20059         attribute.
20060         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
20061         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
20062         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
20063         iff operand 2 is const_int_operand.
20064         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
20065         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
20066         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
20067         instead of vex.
20068         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
20069         prefix_data16.
20070         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
20071         prefix_data16 attribute for movlpd and movhpd instructions.
20072         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
20073         length_immediate for shufpd instruction.
20074         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
20075         (avx_cmpp<avxmodesuffixf2c><mode>3,
20076         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
20077         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
20078         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
20079         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
20080         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
20081         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
20082         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
20083         prefix_data16 attribute for the first alternative to 1.
20084         (*avx_loadlps): Override length_immediate for the first alternative.
20085         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
20086         attributes for second alternative.
20087         (*vec_concatv2sf_sse4_1): Override length_immediate and
20088         prefix_data16 attributes for second alternative.
20089         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
20090         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
20091         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
20092         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
20093         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
20094         prefix_data16 and length_immediate to 1.
20095         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
20096         to 1.
20097         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
20098         prefix_extra attribute for variants that don't have 0f prefix alone.
20099         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
20100         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
20101         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
20102         *sse4_1_pextrd): Set length_immediate to 1.
20103         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
20104         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
20105         to 1.
20106         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
20107         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
20108         length_immediate to 1 for second alternative.
20109         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
20110         prefix_extra and length_immediate attributes for the first
20111         alternative.
20112         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
20113         first alternative.
20114         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
20115         to 1 for the first and third alternative.
20116         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
20117         alternative.
20118         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
20119         attribute.
20120         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
20121         attribute to 0.
20122         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
20123         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
20124         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
20125         *avx_psign<mode>3): Set prefix_extra attribute to 1.
20126         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
20127         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
20128         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
20129         ssse3_psign<mode>3): Override prefix_rex attribute.
20130         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
20131         (ssse3_palignrti): Override length_immediate to 1.
20132         (ssse3_palignrdi): Override length_immediate to 1, override
20133         prefix_rex attribute.
20134         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
20135         (sse4a_extrqi): Override length_immediate to 2.
20136         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
20137         (sse4a_insertq): Override prefix_data16 to 0.
20138         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
20139         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
20140         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
20141         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
20142         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
20143         and length_immediate to 1.
20144         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
20145         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
20146         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
20147         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
20148         and length_immediate to 1.
20149         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
20150         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
20151         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
20152         avx_ptest256): Override prefix_extra to 1.
20153         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
20154         Override prefix_data16 and length_immediate to 1.
20155         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
20156         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
20157         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
20158         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
20159         prefix_data16 to 0 and prefix_extra to 2.
20160         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
20161         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
20162         attribute.
20163         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
20164         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
20165         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
20166         and prefix_extra to 2.
20167         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
20168         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
20169         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
20170         avx_vpermilvar<mode>3,
20171         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
20172         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
20173         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
20174         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
20175         Override prefix_extra to 1.
20176         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
20177         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
20178         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
20179         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
20180         prefix_extra and length_immediate to 1.
20181         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
20182         modrm to 0.
20183         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
20184         to 1 for the first alternative.
20185         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
20186         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
20187         cases.
20188         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
20189         *movv2sf_internal_avx, *movv2sf_internal): Override
20190         prefix_rep attribute for certain alternatives.
20191         (*mov<mode>_internal): Override prefix_rep or prefix_data16
20192         attributes for certain alternatives.
20193         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
20194         attributes for certain alternatives.
20195         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
20196         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
20197         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
20198         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
20199         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
20200         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
20201         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
20202         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
20203         length_immediate to 1 if operand 2 is const_int_operand.
20204         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
20205         *vec_extractv2si_1): Set length_immediate attribute to 1.
20206         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
20207         using old 3DNOW insn rather than SSE/3DNOW_A.
20208         (mmx_emms, mmx_femms): Clear modrm attribute.
20210 2009-05-29  Martin Jambor  <mjambor@suse.cz>
20212         * tree-sra.c:  New implementation of SRA.
20214         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
20215         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
20216         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
20217         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
20218         (SRA_MAX_STRUCTURE_COUNT): Removed.
20219         (SRA_FIELD_STRUCTURE_RATIO): Removed.
20220         * doc/invoke.texi (sra-max-structure-size): Removed.
20221         (sra-field-structure-ratio): Removed.
20223 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20225         PR middle-end/40291
20226         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
20227         before expansion.
20229 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
20231         PR rtl-optimization/40101
20232         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
20233         seqno.  Adjust comment.
20234         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
20235         inserting bookkeeping before a jump, the jump is not scheduled.
20236         When no positive seqno found, provide a value.  Add comment.
20238 2009-05-29  Richard Guenther  <rguenther@suse.de>
20240         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
20241         short-cutting on the first component.
20243 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20245         PR middle-end/39958
20246         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
20247         for trees other than decls/types.
20249 2009-05-29  Richard Guenther  <rguenther@suse.de>
20251         * tree-ssa-operands.c (get_expr_operands): Do not handle
20252         INDIRECT_REFs in the handled-component case.  Remove
20253         unused get_ref_base_and_extent case.
20254         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
20255         tree_low_cst and host_integerp where possible.
20256         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
20257         codes for equivalence.
20258         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
20260 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
20262         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
20263         to tmake_file for i[34567]86-*-cygwin*.
20265 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
20267         PR target/40017
20268         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
20269         (altivec_categorize_keyword, init_vector_keywords,
20270         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
20271         similar to bool.
20273 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
20275         * tree.c (handle_dll_attribute): Check if node is
20276         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
20278 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
20280         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
20281         component.
20282         (thumb2_zero_extendqidi2): Likewise.
20284 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20286         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
20287         instead of gen_movrt.
20288         * config/sh/sh.md (movrt): Remove.
20290 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
20292         * doc/invoke.texi (IA-64 Options):
20293         Add -msdata, -mfused-madd, -mno-inline-float-divide,
20294         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
20295         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
20296         -msched-prefer-non-control-spec-insns,
20297         -msched-stop-bits-after-every-cycle,
20298         -msched-count-spec-in-critical-path,
20299         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
20300         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
20301         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
20302         and -msched-spec-verbose.
20304 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
20306         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
20307         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
20308         error if used.
20309         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
20311 2009-05-28  Richard Guenther  <rguenther@suse.de>
20313         * tree-ssa-alias.c (ao_ref_init): New function.
20314         (ao_ref_base): Likewise.
20315         (ao_ref_base_alias_set): Likewise.
20316         (ao_ref_alias_set): Likewise.
20317         (refs_may_alias_p_1): Change signature.
20318         (refs_may_alias_p): Adjust.
20319         (refs_anti_dependent_p): Likewise.
20320         (refs_output_dependent_p): Likewise.
20321         (call_may_clobber_ref_p_1): Change signature.
20322         (call_may_clobber_ref_p): Adjust.
20323         (stmt_may_clobber_ref_p_1): New function split out from ...
20324         (stmt_may_clobber_ref_p): ... here.
20325         (maybe_skip_until): Adjust signature.
20326         (get_continuation_for_phi): Likewise.
20327         (walk_non_aliased_vuses): Likewise.
20328         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
20329         (ao_ref_init): Declare.
20330         (ao_ref_base): Likewise.
20331         (ao_ref_alias_set): Likewise.
20332         (stmt_may_clobber_ref_p_1): Likewise.
20333         (walk_non_aliased_vuses): Adjust.
20334         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
20335         (get_ref_from_reference_ops): remove.
20336         (vn_reference_lookup_2): Adjust signature.
20337         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
20338         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
20339         (vn_reference_lookup): Adjust.
20340         (vn_reference_insert): Likewise.
20341         (vn_reference_insert_pieces): Adjust signature.
20342         (visit_reference_op_call): Adjust.
20343         * tree-ssa-pre.c (get_expr_type): Simplify.
20344         (phi_translate_1): Adjust.
20345         (compute_avail): Likewise.
20346         (translate_vuse_through_block): Do not re-build trees.
20347         (value_dies_in_block_x): Likewise.
20348         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
20349         fields.
20350         (vn_reference_lookup_pieces): Adjust declaration.
20351         (vn_reference_insert_pieces): Likewise.
20353 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
20355         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
20356         with checking disabled.
20358 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
20360         PR target/37216
20362         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
20363         macro definition for support of three-operand format aligned
20364         .comm directive in assembler on cygwin/pe/mingw target OS.
20365         * configure:  Regenerate.
20366         * config.h:  Regenerate.
20368         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
20369         aligned form of .comm directive if -mpe-aligned-commons is in effect.
20370         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
20372         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
20373         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
20375 2009-05-28  Ira Rosen  <irar@il.ibm.com>
20377         PR tree-optimization/40254
20378         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
20379         in analysis of basic blocks.
20381 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
20383         PR middle-end/33699
20384         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
20385         * target-def.h (TARGET_CONST_ANCHOR): New macro.
20386         (TARGET_INITIALIZER): Use it.
20387         * cse.c (CHEAPER): Move it up to the other macros.
20388         (insert): Rename this ...
20389         (insert_with_costs): ... to this.  Add cost parameters.  Update
20390         function comment.
20391         (insert): New function.  Call insert_with_costs.
20392         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
20393         find_reg_offset_for_const, try_const_anchors): New functions.
20394         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
20395         when using a const-anchor.  Call insert_const_anchors.
20396         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
20397         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
20399 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20401         * tree-inline.c (remap_decls): Enable nonlocalized variables
20402         when not optimizing.
20404 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
20406         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
20407         Simplify other tests involving optimize.
20409 2009-05-27  Tom Tromey  <tromey@redhat.com>
20411         * unwind-dw2.c (_Unwind_DebugHook): New function.
20412         (uw_install_context): Call _Unwind_DebugHook.
20414 2009-05-27  Tom Tromey  <tromey@redhat.com>
20416         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
20418 2009-05-27  Ian Lance Taylor  <iant@google.com>
20420         * Makefile.in (LINKER, LINKER_FLAGS): Define.
20421         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
20422         (ALL_LINKERFLAGS): Define.
20423         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
20424         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20425         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
20426         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20427         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
20428         $(LINKER_FOR_BUILD).
20429         (build/gcov-iov$(build_exeext)): Likewise.
20431 2009-05-27  Julian Brown  <julian@codesourcery.com>
20433         * gcse.c (target.h): Include.
20434         (can_assign_to_reg_without_clobbers_p): Check that the target allows
20435         copy of argument to a pseudo register.
20437 2009-05-27  Diego Novillo  <dnovillo@google.com>
20439         * tree-ssa-live.c (dump_scope_block): Document arguments.
20440         (dump_scope_blocks): Document.
20441         (debug_scope_blocks): New.
20442         * tree-flow.h (debug_scope_blocks): Declare.
20444 2009-05-21  Denis Chertykov  <denisc@overta.ru>
20446         * doc/contrib.texi (Contributors): Add myself to the list.
20448 2009-05-27  Olivier Hainque  <hainque@adacore.com>
20450         * expr.c (target_align): New function.  Alignment the TARGET of an
20451         assignment may be assume to have.
20452         (highest_pow2_factor_for_target): Use it instead of relying on
20453         immediate tree attributes of TARGET, not necessarily honored when
20454         intermediate bitfields are involved.
20456 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
20458         PR target/40266
20459         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20460         AVX, SSE4, AES, PCLMUL and POPCNT.
20462 2009-05-27  Diego Novillo  <dnovillo@google.com>
20464         * tree-pretty-print.c (dump_location): New.
20465         (dump_generic_node): Call it.
20466         Factor code to handle BLOCK nodes ...
20467         (dump_block_node): ... here.
20469 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
20471         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
20472         with it.
20473         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
20474         included.
20475         * gcc-plugin.h: Include config.h and system.h.
20476         (IN_GCC): Define if not defined.
20478 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
20480         PR middle-end/40249
20481         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
20482         with -fno-inline.
20484 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
20486         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
20487         applicable.
20488         * config/m32r/m32r.h: Ditto.
20489         * config/m32r/m32r.md: Ditto.
20490         * config/m32r/predicates.md: Ditto.
20492 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
20494         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
20496 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
20498         * doc/plugins.texi
20499         (Loading plugins): typo.
20500         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
20501         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20502         (Interacting with the GCC Garbage Collector): Added new section.
20503         (Giving information about a plugin): Added new section for
20504         PLUGIN_INFO.
20505         * ggc.h (ggc_register_root_tab): Added declaration.
20506         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
20507         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
20508         (register_callback): Improved comment in declaration.
20509         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
20510         (extra_root_vec) Added static variable for dynamic roots registration.
20511         (ggc_register_root_tab) Added new routine.
20512         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
20513         PLUGIN_GGC_MARKING event.
20514         * ggc-zone.c: Include plugin.h.
20515         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20516         * ggc-page.c: Include plugin.h.
20517         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
20518         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
20519         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
20520         (register_callback): check lack of callbacks for
20521         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
20522         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
20523         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
20524         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
20525         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
20526         dependency on plugin.h.
20527         (plugin.o): Added dependency on ggc.h...
20529 2009-05-26  Richard Guenther  <rguenther@suse.de>
20531         PR middle-end/40248
20532         Revert
20533         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
20534         with mismatched comparison modes.
20536         * expr.c (expand_expr_real_1): Expand the operand of a
20537         VIEW_CONVERT_EXPR in its natural mode.
20539 2009-05-26  Ian Lance Taylor  <iant@google.com>
20541         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
20542         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
20543         (ALL_COMPILERFLAGS): Define.
20544         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
20545         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
20546         (collect2$(exeext), collect2.o): Likewise.
20547         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
20548         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
20549         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
20550         (libbackend.o, intl.o, cppdefault.o): Likewise.
20551         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
20552         (build/%.o): Use $(COMPILER_FOR_BUILD).
20553         (build/gen%$(build_exeext)): Likewise.
20554         (build/gcov-iov$(build_exeext)): LIkewise.
20555         * config/t-darwin (darwin.o): Use $(COMPILER).
20556         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
20557         * config/t-sol2 (sol2-c.o): Likewise.
20558         (sol2.o): Likewise.
20559         * config/t-vxworks (vxworks.o): Likewise.
20560         * config/x-darwin (host-darwin.o): Likewise.
20561         * config/x-hpux (host-hpux.o): Likewise.
20562         * config/x-linux (host-linux.o): Likewise.
20563         * config/x-solaris (host-solaris.o): Likewise.
20564         * config/alpha/x-alpha (driver-alpha.o): Likewise.
20565         * config/arm/t-arm (arm-c.o): Likewise.
20566         * config/arm/t-pe (pe.o): Likewise.
20567         * config/arm/t-wince-pe (pe.o): Likewise.
20568         * config/i386/t-cygming (winnt.o): Likewise.
20569         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
20570         * config/i386/t-cygwin (cygwin1.o): Likewise.
20571         (cygwin2.o): Likewise.
20572         * config/i386/t-i386 (i386-c.o): Likewise.
20573         * config/i386/t-interix (winnt.o): Likewise.
20574         * config/i386/t-netware (netware.o): Likewise.
20575         * config/i386/t-nwld (nwld.o): Likewise.
20576         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
20577         * config/i386/x-i386 (driver-i386.o): Likewise.
20578         * config/i386/x-cygwin (host-cygwin.o): Likewise.
20579         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
20580         * config/ia64/t-ia64 (ia64-c.o): Likewise.
20581         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
20582         * config/mips/x-native (driver-native.o): Likewise.
20583         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
20584         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
20585         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
20586         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
20587         * config/score/t-score-elf (score7.o): Likewise.
20588         (score3.o): Likewise.
20589         * config/sh/t-sh (sh-c.o): Likewise.
20590         * config/sh/t-symbian (sh-c.o): Likewise.
20591         (symbian.o): Likewise.
20592         * config/spu/t-spu-elf (spu-c.o): Likewise.
20593         * config/v850/t-v850 (v850-c.o): Likewise.
20594         * config/v850/t-v850e (v850-c.o): Likewise.
20596 2009-05-26  Richard Guenther  <rguenther@suse.de>
20598         PR tree-optimization/40122
20599         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
20600         VECTOR_CSTs if possible.
20601         (fold_gimple_assign): Likewise.
20603 2009-05-26  Richard Guenther  <rguenther@suse.de>
20605         PR middle-end/40252
20606         * fold-const.c (fold_binary): Use the correct types for building
20607         rotates.
20609 2009-05-26  Richard Guenther  <rguenther@suse.de>
20611         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
20612         redundant calls to merge_alias_info.
20613         (bump_vector_ptr): Likewise.
20614         * tree-ssa-copy.c (merge_alias_info): Remove.
20615         (replace_exp_1): Remove call to merge_alias_info.
20616         (propagate_tree_value): Likewise.
20617         (fini_copy_prop): Propagate points-to info.
20618         * tree-flow.h (merge_alias_info): Remove.
20620 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20622         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
20624 2009-05-25  Jan Hubicka  <jh@suse.cz>
20626         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20627         * cgraph.h (struct inline_summary): New filed self_wize,
20628         size_inlining_benefit, self_time and time_inlining_benefit.
20629         (struct cgraph_global_info): Replace insns by time ans size fields.
20630         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
20631         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
20632         (ipcp_update_callgraph): Do not touch function bodies.
20633         * ipa-inline.c: Include except.h
20634         (MAX_TIME): New constant.
20635         (overall_insns): Remove.
20636         (leaf_node_p): New.
20637         (overall_size, max_benefit): New static variables.
20638         (cgraph_estimate_time_after_inlining): New function.
20639         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
20640         (cgraph_clone_inlined_nodes): Update size.
20641         (cgraph_mark_inline_edge): Update size.
20642         (cgraph_estimate_growth): Use size info.
20643         (cgraph_check_inline_limits): Check size.
20644         (cgraph_default_inline_p): Likewise.
20645         (cgraph_edge_badness): Compute badness based on benefit and size cost.
20646         (cgraph_decide_recursive_inlining): Check size.
20647         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
20648         and times.
20649         (cgraph_decide_inlining): Likewise.
20650         (cgraph_decide_inlining_incrementally): Likewise; honor
20651         PARAM_EARLY_INLINING_INSNS.
20652         (likely_eliminated_by_inlining_p): New predicate.
20653         (estimate_function_body_sizes): New function.
20654         (compute_inline_parameters): Use it.
20655         * except.c (must_not_throw_labels): New function.
20656         * except.h (must_not_throw_labels): Declare.
20657         * tree-inline.c (init_inline_once): Kill inlining_weigths
20658         * tree-ssa-structalias.c: Avoid uninitialized warning.
20659         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
20660         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
20661         (PARAM_INLINE_CALL_COST): Remove.
20662         (PARAM_EARLY_INLINING_INSNS): New.
20664 2009-05-25  Richard Guenther  <rguenther@suse.de>
20666         PR tree-optimization/36327
20667         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
20668         callback for reference translation or lookup at the point of may-defs.
20669         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
20670         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
20671         for union COMPONENT_REFs.
20672         (vn_reference_lookup_3): New callback.  Lookup from memset
20673         and CONSTRUCTOR assignment, translate through struct copies.
20674         (vn_reference_lookup_pieces): Make sure to not free the
20675         passed operands array.  Adjust walk_non_aliased_vuses call.
20676         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
20677         make sure we do not leak memory.
20679 2009-05-25  Richard Guenther  <rguenther@suse.de>
20681         * tree-ssa-alias.h (dump_points_to_solution): Declare.
20682         * tree-inline.c (expand_call_inline): Reset the escaped and
20683         callused solutions.
20684         * tree-ssa-structalias.c (pass_build_ealias): New.
20685         * tree-pass.h (pass_build_ealias): Declare.
20686         * passes.c (init_optimization_passes): Add PTA during
20687         early optimizations.
20688         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
20689         and CALLUSED solutions.
20690         (dump_points_to_solution): New function, split out from ...
20691         (dump_points_to_info_for): ... here.
20692         * tree-parloops.c (parallelize_loops): Reset the escaped and
20693         callused solutions.
20695 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20697         PR bootstrap/40027
20698         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
20699         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
20701 2009-05-25  Ira Rosen  <irar@il.ibm.com>
20703         PR tree-optimization/40238
20704         * tree-vect-stmts.c (vect_init_vector): Insert initialization
20705         statements after basic block's labels.
20706         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
20707         to free the allocated memory.
20709 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20711         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
20712         return address with a USE.
20714 2009-05-24  Richard Guenther  <rguenther@suse.de>
20716         PR middle-end/40233
20717         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
20718         array type from the main variant of the inner type.
20720 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20722         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
20723         definition to bool (from int) to un-break build.
20724         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
20726 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
20728         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
20729         discard_stmt_changes): Delete.
20730         * tree-ssa-operands.c (scb_stack): Delete.
20731         (init_ssa_operands): Do not initialize it.
20732         (fini_ssa_operands): Do not free it.
20733         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
20735         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
20736         update_stmt, remove the others.  Fix comments.
20737         * tree-dfa.c (optimize_stack_restore): Likewise.
20738         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
20739         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
20740         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
20741         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
20742         Likewise.
20743         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
20744         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
20745         (dom_opt_finalize_block): Likewise, adjusting access to
20746         stmts_to_rescan.
20747         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
20748         (stmts_to_rescan): Change item type to gimple.
20749         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
20751 2009-05-24  Ira Rosen  <irar@il.ibm.com>
20753         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
20754         * tree-pass.h (pass_slp_vectorize): New pass.
20755         * params.h (SLP_MAX_INSNS_IN_BB): Define.
20756         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
20757         * tree-vectorizer.c (timevar.h): Include.
20758         (user_vect_verbosity_level): Declare.
20759         (vect_location): Fix comment.
20760         (vect_set_verbosity_level): Update user_vect_verbosity_level
20761         instead of vect_verbosity_level.
20762         (vect_set_dump_settings): Add an argument. Ignore user defined
20763         verbosity if dump flags require higher level of verbosity. Print to
20764         stderr only for loop vectorization.
20765         (vectorize_loops): Update call to vect_set_dump_settings.
20766         (execute_vect_slp): New function.
20767         (gate_vect_slp): Likewise.
20768         (struct gimple_opt_pass pass_slp_vectorize): New.
20769         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
20770         access its members.
20771         (vec_info_for_bb): New function.
20772         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
20773         (VECTORIZATION_ENABLED): New macro.
20774         (SLP_ENABLED, SLP_DISABLED): Likewise.
20775         (vect_is_simple_use): Add bb_vec_info argument.
20776         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
20777         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
20778         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
20779         vect_schedule_slp, vect_analyze_slp): Likewise.
20780         (vect_analyze_stmt): Add slp_tree argument.
20781         (find_bb_location): Declare.
20782         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20783         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
20784         (vect_analyze_loop_operations, vect_analyze_loop,
20785         get_initial_def_for_induction, vect_create_epilog_for_reduction,
20786         vect_finalize_reduction, vectorizable_reduction,
20787         vectorizable_live_operation, vect_transform_loop): Likewise.
20788         * tree-data-ref.c (dr_analyze_innermost): Update comment,
20789         skip evolution analysis if analyzing a basic block.
20790         (dr_analyze_indices): Likewise.
20791         (initialize_data_dependence_relation): Skip the test whether the
20792         object is invariant for basic blocks.
20793         (compute_all_dependences): Skip dependence analysis for data
20794         references in basic blocks.
20795         (find_data_references_in_stmt): Don't fail in case of invariant
20796         access in basic block.
20797         (find_data_references_in_bb): New function.
20798         (find_data_references_in_loop): Move code to
20799         find_data_references_in_bb and add a call to it.
20800         (compute_data_dependences_for_bb): New function.
20801         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
20802         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
20803         that STEP is 0.
20804         (vect_analyze_data_ref_dependence): Check for interleaving in case of
20805         unknown dependence in basic block and fail in case of dependence in
20806         basic block.
20807         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
20808         dependence instances from either loop or basic block vectorization
20809         info.
20810         (vect_compute_data_ref_alignment): Check if it is loop vectorization
20811         before calling nested_in_vect_loop_p.
20812         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
20813         dependence instances from either loop or basic block vectorization
20814         info.
20815         (vect_verify_datarefs_alignment): Likewise.
20816         (vect_enhance_data_refs_alignment): Adjust function calls.
20817         (vect_analyze_data_refs_alignment): Likewise.
20818         (vect_analyze_group_access): Fix printing. Skip different checks if
20819         DR_STEP is 0. Keep strided stores either in loop or basic block
20820         vectorization data structure. Fix indentation.
20821         (vect_analyze_data_ref_access): Fix comments, allow zero step in
20822         basic blocks.
20823         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
20824         dependence instances from either loop or basic block vectorization
20825         info.
20826         (vect_analyze_data_refs): Update comment. Call
20827         compute_data_dependences_for_bb to analyze basic blocks.
20828         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
20829         case of loop vectorization. In case of basic block vectorization use
20830         data-ref itself as a base.
20831         (vect_create_data_ref_ptr): In case of basic block vectorization:
20832         don't advance the pointer, add new statements before the current
20833         statement.  Adjust function calls.
20834         (vect_supportable_dr_alignment): Support only aligned accesses in
20835         basic block vectorization.
20836         * common.opt (ftree-slp-vectorize): New flag.
20837         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
20838         (vect_pattern_recog_1): Likewise.
20839         * tree-vect-stmts.c (process_use): Likewise.
20840         (vect_init_vector): Add new statements in the beginning of the basic
20841         block in case of basic block SLP.
20842         (vect_get_vec_def_for_operand): Adjust function calls.
20843         (vect_finish_stmt_generation): Likewise.
20844         (vectorizable_call): Add assert that it is loop vectorization, adjust
20845         function calls.
20846         (vectorizable_conversion, vectorizable_assignment): Likewise.
20847         (vectorizable_operation): In case of basic block SLP, take
20848         vectorization factor from statement's type and skip the relevance
20849         check. Adjust function calls.
20850         (vectorizable_type_demotion): Add assert that it is loop
20851         vectorization, adjust function calls.
20852         (vectorizable_type_promotion): Likewise.
20853         (vectorizable_store): Check for outer loop only in case of loop
20854         vectorization. Adjust function calls. For basic blocks, skip the
20855         relevance check and don't advance pointers.
20856         (vectorizable_load): Likewise.
20857         (vectorizable_condition): Add assert that it is loop vectorization,
20858         adjust function calls.
20859         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
20860         that it is not reduction, get vector type, call only supported
20861         functions, skip loop specific parts.
20862         (vect_transform_stmt): Check for outer loop only in case of loop
20863         vectorization.
20864         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
20865         (vect_is_simple_use): Fix comment, add new argument, fix conditions
20866         for external definition.
20867         * passes.c (pass_slp_vectorize): New pass.
20868         * tree-vect-slp.c (find_bb_location): New function.
20869         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
20870         check for patterns only in loops.
20871         (vect_build_slp_tree): Add argument, adjust function calls, fail in
20872         case of multiple types in basic block SLP.
20873         (vect_mark_slp_stmts_relevant): New function.
20874         (vect_supported_load_permutation_p): Fix comment.
20875         (vect_analyze_slp_instance): Add argument. In case of basic block
20876         SLP, take vectorization factor from statement's type, check that
20877         unrolling factor is 1. Adjust function call. Save SLP instance in
20878         either loop or basic block vectorization structure. Return FALSE,
20879         if SLP failed.
20880         (vect_analyze_slp): Add argument. Get strided stores groups from
20881         either loop or basic block vectorization structure. Return FALSE
20882         if basic block SLP failed.
20883         (new_bb_vec_info): New function.
20884         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
20885         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
20886         (vect_schedule_slp): Add argument. Get SLP instances from either
20887         loop or basic block vectorization structure. Set vectorization factor
20888         to be 1 for basic block SLP.
20889         (vect_slp_transform_bb): New function.
20890         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
20892 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
20894         * final.c (shorten_branches): Do not align labels for jump tables.
20895         (final_scan_insn): Use JUMP_TABLE_DATA_P.
20897 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20899         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
20900         Remove outdated reference to flow.c and fix nits.
20901         * doc/gccint.texi: Tweak RTL description.
20902         * doc/rtl.texi: Likewise.
20904 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
20906         * config/avr/avr.c: Change my email address.
20907         * config/avr/avr.h: Likewise.
20908         * config/avr/avr.md: Likewise.
20909         * config/avr/avr-protos.h: Likewise.
20910         * config/avr/libgcc.S: Likewise.
20912 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
20914         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
20915         (spu_split_load, spu_split_store): Change return type to int.
20916         (spu_split_convert): Declare.
20917         * config/spu/predicates.md (spu_mem_operand): Remove.
20918         (spu_mov_operand): Update.
20919         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
20920         * config/spu/spu.c (regno_aligned_for_load): Remove.
20921         (reg_aligned_for_addr, spu_expand_load): Define.
20922         (spu_expand_extv): Reimplement and handle MEM.
20923         (spu_expand_insv): Handle MEM.
20924         (spu_sched_reorder): Handle insn's with length 0.
20925         (spu_legitimate_address_p): Reimplement.
20926         (store_with_one_insn_p): Return TRUE for any mode with size
20927         larger than 16 bytes.
20928         (address_needs_split): Define.
20929         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
20930         operands.
20931         (spu_convert_move): Define.
20932         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
20933         (spu_split_store): Change all MEM's to TImode.
20934         (spu_init_expanders): Preallocate registers that correspond to
20935         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
20936         mark_reg_pointer.
20937         (spu_split_convert): Define.
20938         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
20939         (_move<mode>, _movdi, _movti): Update predicate and condition.
20940         (load, store): Change to define_split.
20941         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
20942         extend<mode>ti2.
20943         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
20944         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
20945         define_insn_and_split of lshr<mode>3.
20946         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
20947         (<v>ashr<mode>3_imm): Define.
20948         (extv, extzv, insv): Allow MEM operands.
20949         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
20950         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
20951         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
20952         (_spu_convert2): Change to define_insn_and_split and remove the
20953         corresponding define_peephole2.
20954         (stack_protect_set, stack_protect_test, stack_protect_test_si):
20955         Change predicates to memory_operand.
20957 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
20959         * config/arm/thumb2.md: Add 16-bit multiply instructions.
20961 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20963         PR tree-optimization/40219
20964         * tree.c (iterative_hash_expr): Make sure the builtin function is
20965         a normal builtin function and not a front end or back end builtin
20966         before indexing into the built_in_decls array.
20968 2009-05-22  Richard Guenther  <rguenther@suse.de>
20970         PR middle-end/38964
20971         * alias.c (write_dependence_p): Do not use TBAA for answering
20972         anti-dependence or output-dependence.
20973         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
20974         (emit_pointer_definition): Remove.
20975         (emit_alias_warning): Likewise.
20976         (find_what_var_points_to): Remove TBAA pruning code.
20977         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
20978         violations.
20979         (compute_points_to_sets): Remove code computing the set of
20980         dereferenced pointers.
20981         * tree-data-ref.c (dr_may_alias_p): Properly use the split
20982         oracle for querying anti and output dependencies.
20983         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
20984         if TBAA may be applied.
20985         (refs_anti_dependent_p): New function.
20986         (refs_output_dependent_p): Likewise.
20987         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
20988         (refs_output_dependent_p): Likewise.
20989         * doc/tree-ssa.texi (Memory model): New section.
20990         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
20991         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
20992         * cfgexpand.c (expand_gimple_basic_block): Do not handle
20993         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
20994         * expr.c (expand_expr_real_1): Likewise.
20995         * gimple-low.c (lower_stmt): Likewise.
20996         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
20997         (dump_gimple_cdt): Remove.
20998         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
20999         (gimple_size): Likewise.
21000         (walk_gimple_op): Likewise.
21001         (is_gimple_stmt): Likewise.
21002         (walk_stmt_load_store_addr_ops): Likewise.
21003         (gimple_build_cdt): Remove.
21004         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21005         * gimple.h (gimple_cdt_new_type): Remove.
21006         (gimple_cdt_new_type_ptr): Likewise.
21007         (gimple_cdt_set_new_type): Likewise.
21008         (gimple_cdt_location): Likewise.
21009         (gimple_cdt_location_ptr): Likewise.
21010         (gimple_cdt_set_location): Likewise.
21011         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21012         * tree-cfg.c (remove_useless_stmts_1): Do not handle
21013         GIMPLE_CHANGE_DYNAMIC_TYPE.
21014         (verify_types_in_gimple_stmt): Likewise.
21015         * tree-inline.c (estimate_num_insns): Likewise.
21016         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
21017         (copy_decl_to_var): Likewise.
21018         (copy_result_decl_to_var): Likewise.
21019         * tree-pretty-print.c (dump_generic_node): Do not handle
21020         CHANGE_DYNAMIC_TYPE_EXPR.
21021         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21022         * tree-ssa-operands.c (get_expr_operands): Likewise.
21023         * tree-ssa-structalias.c (struct variable_info): Remove
21024         no_tbaa_pruning member.
21025         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
21026         (unify_nodes): Do not copy it.
21027         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21028         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
21029         (set_uids_in_ptset): Do not check it.
21030         (find_what_var_points_to): Likewise.
21031         (compute_tbaa_pruning): Remove.
21032         (compute_points_to_sets): Do not call it.
21033         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
21034         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21035         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
21036         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
21037         (DECL_NO_TBAA_P): Likewise.
21038         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
21039         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
21040         (expand_omp_atomic_pipeline): Do not set it.
21041         * print-tree.c (print_node): Do not dump it.
21042         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21043         redundant check.
21045 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
21047         PR target/39856
21048         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
21049         for clobber.
21051 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
21053         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
21054         non-external.
21056 2009-05-22  Ben Elliston  <bje@au.ibm.com>
21058         * Makefile.in (bversion.h, s-bversion): New targets.
21059         (TOPLEV_H): Add bversion.h.
21060         * toplev.h: Include "bversion.h".
21061         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
21062         the __format__ attribute only if compiling with the same version
21063         of GCC as the sources (the "build version").
21065 2009-05-22  Ben Elliston  <bje@au.ibm.com>
21067         * c-format.c (handle_format_attribute): Fix comment typo.
21069 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
21071         PR target/37846
21072         * config/ia64/ia64.opt (mfused-madd): New.
21073         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
21074         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
21075         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
21076         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
21077         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
21078         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
21079         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
21080         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
21081         instruction if !TARGET_FUSED_MADD.
21082         (fpma, fpms): Remove colon from name.
21084 2009-05-22  Richard Guenther  <rguenther@suse.de>
21086         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
21087         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
21088         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21089         TARGET_MEM_REF.
21090         (create_expression_by_pieces): Only convert if necessary.
21091         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
21092         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
21094 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
21096         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
21097         regular pattern from a template and rename it ...
21098         (*extzv_truncsi_exts): ... to this.
21100 2009-05-21  Richard Guenther  <rguenther@suse.de>
21102         * cgraph.h (struct cgraph_node): Remove inline_decl member.
21103         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
21104         (cgraph_default_inline_p): Likewise.
21105         (cgraph_decide_inlining_incrementally): Likewise.
21107 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
21108             Uros Bizjak  <ubizjak@gmail.com>
21110         * config/i386/cpuid.h (bit_MOVBE): New.
21112         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
21114         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
21115         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
21116         (ix86_handle_option): Handle OPT_mmovbe.
21117         (ix86_target_string): Add -mmovbe.
21118         (pta_flags): Add PTA_MOVBE.
21119         (processor_alias_table): Add PTA_MOVBE to "atom".
21120         (override_options): Handle PTA_MOVBE.
21122         * config/i386/i386.h (TARGET_MOVBE): New.
21124         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
21125         (*bswapsi_movbe): New.
21126         (*bswapdi_movbe): Likewise.
21127         (bswapdi2): Renamed to ...
21128         (*bswapdi_1): This.
21129         (bswapdi2): New expander.
21131         * config/i386/i386.opt (mmovbe): New.
21133         * doc/invoke.texi: Document -mmovbe.
21135 2009-05-21  Taras Glek  <tglek@mozilla.com>
21137         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
21138         * gcc-plugin.h (plugin_init): Updated signature.
21139         * gcc-plugin.h (plugin_name_args): Moved to this header.
21140         * doc/plugins.texi (plugin_init): Updated documention to reflect
21141         API change.
21142         * doc/plugins.texi (plugin_name_args): Added to documention.
21144 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
21146         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
21147         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
21149 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
21151         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
21152         JUMP_TABLE_DATA_P predicates where applicable.
21153         * config/i386/predicates.md: Ditto.
21154         * config/i386/sse.md: Ditto.
21156 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
21158         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
21159         operand2 -128 override length_immediate attribute to 1.
21160         * config/i386/predicates.md (constm128_operand): New predicate.
21162         * config/i386/i386.c (memory_address_length): Handle %r12
21163         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
21164         also check REGNO.
21165         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
21166         mode look through optional ZERO_EXTEND and SUBREG.
21167         * config/i386/i386.md (R12_REG): New define_constant.
21168         (prefix_data16): For sse unit set also for MODE_TI insns.
21169         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
21170         insns set if operand 1 is ext_QIreg_operand.
21171         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
21172         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
21173         immediate.
21174         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
21175         mode from MODE_DI to MODE_SI.
21176         (movdi_1_rex64): Override modrm and length_immediate attributes
21177         only for movabs (TYPE_IMOV, alternative 2).
21178         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
21179         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21180         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21181         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21182         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
21183         prefix_rex attribute if DImode.
21184         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
21185         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
21186         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
21187         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
21188         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
21189         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
21190         Likewise.  For TYPE_IMOV clear length_immediate attribute.
21191         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
21192         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
21193         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
21194         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
21195         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
21196         or one operand TYPE_ISHIFT.
21197         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
21198         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
21199         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
21200         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
21201         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
21202         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
21203         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
21204         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
21205         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
21206         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
21207         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
21208         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
21209         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
21210         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
21211         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
21212         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
21213         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
21214         set mode attribute, don't override length attribute.
21215         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
21216         to 1.
21217         (return_internal_long): Set length attribute to 2 instead of 1.
21218         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
21219         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
21220         prefix_rex attribute.
21221         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
21222         New predicates.
21223         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
21225 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21227         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
21229 2009-05-20  Ian Lance Taylor  <iant@google.com>
21231         * tree.c (build_tree_list_vec_stat): New function.
21232         (ctor_to_vec): New function.
21233         (build_nt_call_vec): New function.
21234         (build_call_array): Change args to be a const pointer.
21235         (build_call_vec): New function.
21236         * tree.h (build_nt_call_vec): Declare.
21237         (build_tree_list_vec_stat): Declare.
21238         (build_tree_list_vec): Define.
21239         (build_call_array): Update declaration.
21240         (build_call_vec): Declare.
21241         (ctor_to_vec): Declare.
21242         * c-common.c (tree_vector_cache): New static variable.
21243         (make_tree_vector): New function.
21244         (release_tree_vector): New function.
21245         (make_tree_vector_single): New function.
21246         (make_tree_vector_copy): New function.
21247         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
21248         (make_tree_vector_single, make_tree_vector_copy): Declare.
21249         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
21250         (c_parser_expr_list): Don't manage cache here, instead call
21251         make_tree_vector.
21252         (c_parser_release_expr_list): Remove static function.
21253         (c_parser_vec_to_tree_list): Remove static function.
21254         (c_parser_attributes): Call build_tree_list_vec instead of
21255         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
21256         c_parser_release_expr_list.
21257         (c_parser_postfix_expression_after_primary): Likewise.
21258         (c_parser_objc_keywordexpr): Likewise.
21260 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
21262         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
21263         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
21264         TARGET_CONVERT_TO_TYPE.
21265         * hooks.c (hook_tree_const_tree_null): Define.
21266         * hooks.h (hook_tree_const_tree_null): Declare.
21267         * target.h (struct gcc_target):  Add invalid_parameter_type,
21268         invalid_return_type, promoted_type, and convert_to_type fields.
21269         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
21270         (TARGET_INVALID_RETURN_TYPE): Define.
21271         (TARGET_PROMOTED_TYPE): Define.
21272         (TARGET_CONVERT_TO_TYPE): Define.
21273         (TARGET_INITIALIZER): Update for new fields.
21274         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
21275         (grokparms): Check targetm.invalid_parameter_type.
21276         * c-typeck.c (default_conversion): Check targetm.promoted_type.
21277         * c-convert.c (convert): Check targetm.convert_to_type.
21279 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
21281         * config/mips/mips.md (*extenddi_truncate<mode>,
21282         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
21283         defintions.
21284         (*extendhi_truncateqi): New define_insn_and_sptit.
21286 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
21288         PR middle-end/40204
21289         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
21290         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
21292 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21294         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
21295         the operand of VIEW_CONVERT_EXPR.
21297 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
21299         * config/i386/driver-i386.c (host_detect_local_cpu): Check
21300         extended family and model for Intel processors.  Support Intel Atom.
21302 2009-05-20  Olivier Hainque  <hainque@adacore.com>
21304         * gstab.h (stab_code_type): Define, to be used instead of the
21305         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
21306         notice.
21307         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
21308         occurrences by stab_code_type.
21309         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
21311 2009-05-20  Martin Jambor  <mjambor@suse.cz>
21313         * tree-flow.h (insert_edge_copies_seq): Undeclare.
21314         (sra_insert_before): Likewise.
21315         (sra_insert_after): Likewise.
21316         (sra_init_cache): Likewise.
21317         (sra_type_can_be_decomposed_p): Likewise.
21318         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
21319         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
21320         (sra_insert_before): Likewise.
21321         (sra_insert_after): Likewise.
21322         (sra_init_cache): Likewise.
21323         (insert_edge_copies_seq): Made static and moved upwards.
21325         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
21326         case.
21328         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
21330         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
21331         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
21332         simple copies.
21334 2009-05-20  Richard Guenther  <rguenther@suse.de>
21336         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21337         with mismatched comparison modes.
21339 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21341         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
21342         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
21343         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
21344         with shifts for Thumb2.
21345         (orsi_notsi): New for orn.
21346         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
21347         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
21348         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
21349         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
21350         Don't invert remainder for IOR.
21352 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
21354         PR tree-optimization/40087
21355         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
21356         number_of_iterations_ne): Rename never_infinite argument.
21357         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
21358         number_of_iterations_le): Handle pointer-type ivs when
21359         exit_must_be_taken is false.
21360         (number_of_iterations_cond):  Do not always assume that
21361         exit_must_be_taken if the control variable is a pointer.
21363 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21365         * c-typeck.c (build_binary_op): Allow % on integal vectors.
21366         * doc/extend.texi (Vector Extension): Document that % is allowed too.
21368 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
21370         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
21371         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
21373 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21375         PR c/40172
21376         * c.opt (Wlogical-op): Disabled by default.
21377         * c-opt (c_common_post_options): Do not enable Wlogical-op with
21378         Wextra.
21379         * doc/invoke.texi (Wlogical-op): Likewise.
21381 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21383         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
21384         into CASE_CONVERT.
21385         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
21386         Propagate the type of the first operand.
21387         <ASSERT_EXPR>: Simplify.
21388         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
21389         Rewrite using the RHS code as discriminant.
21390         <NOP_EXPR>: Turn into CASE_CONVERT.
21391         <PLUS_EXPR>: Propagate the type of the first operand.
21393 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
21395         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
21396         (ia64_dconst_0_375): New.
21397         * config/ia64/ia64.c (ia64_override_options): Remove
21398         -minline-sqrt-min-latency warning.
21399         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
21400         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
21401         * config/ia64/ia64.md (*sqrt_approx): Remove.
21402         (sqrtsf2): Remove #if 0.
21403         (sqrtsf2_internal_thr): Rewrite and move to div.md.
21404         (sqrtdf): Remove assert.
21405         (sqrtdf2_internal_thr): Rewrite and move to div.md.
21406         (sqrtxf2): Remove #if 0.
21407         (sqrtxf2_internal_thr): Rewrite and move to div.md.
21408         * div.md (sqrt_approx_rf): New.
21409         (sqrtsf2_internal_thr): New implementation.
21410         (sqrtsf2_internal_lat): New.
21411         (sqrtdf2_internal_thr: New implementation.
21412         (sqrtxf2_internal): New implementation.
21414 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21415             Hans-Peter Nilsson  <hp@axis.com>
21417         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
21418         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
21419         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
21420         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
21421         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
21422         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
21423         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
21424         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
21425         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
21426         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
21427         * c-common.c: ...from here.
21429 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21431         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
21433 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21435         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
21437 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21439         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
21440         assignments with memcpy calls.
21441         (add_fdes): Likewise.
21442         (binary_search_unencoded_fdes): Likewise.
21443         (linear_search_fdes): Eliminate type puns.
21445 2009-05-19  Richard Guenther  <rguenther@suse.de>
21447         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
21448         not falsely claim to have propagated into all uses.
21450 2009-05-19  Ben Elliston  <bje@au.ibm.com>
21452         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
21453         version to v3.0.
21455 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21457         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
21458         * config/sh/sh.c (sh_legitimate_address_p): Make static.
21459         (TARGET_LEGITIMATE_ADDRESS_P): New.
21460         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
21461         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21463 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
21465         PR debug/40109
21466         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
21467         child of the containing namespace's DIE.
21469 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
21471         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
21472         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
21473         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
21474         extend patterns.
21476 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
21478         PR target/39942
21479         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
21480         gen_align with gen_pad.
21481         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
21482         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
21484         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
21485         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
21487         * config/i386/i386.md (align): Renamed to ...
21488         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
21489         ASM_OUTPUT_MAX_SKIP_PAD.
21491 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
21493         * config.gcc: Fix variable syntax.
21495         PR target/39531
21496         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
21497         before calling exact_log2.
21498         (output_iorsi3): Likewise.
21499         (output_xorsi3): Likewise.
21501 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21503         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
21504         for the none zero constant operand except for EQ and NE
21505         comprisons even when the first operand is R0.
21507 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
21509         * config/s390/2064.md: Remove trailing whitespaces.
21510         * config/s390/2084.md: Likewise.
21511         * config/s390/constraints.md: Likewise.
21512         * config/s390/fixdfdi.h: Likewise.
21513         * config/s390/libgcc-glibc.ver: Likewise.
21514         * config/s390/s390-modes.def: Likewise.
21515         * config/s390/s390-protos.h: Likewise.
21516         * config/s390/s390.c: Likewise.
21517         * config/s390/s390.h: Likewise.
21518         * config/s390/s390.md: Likewise.
21519         * config/s390/tpf-unwind.h: Likewise.
21521 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21523         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
21525 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
21527         M68K TLS support.
21528         * configure.ac (m68k-*-*): Check if binutils support TLS.
21529         * configure: Regenerate.
21530         * config/m68k/predicates.md (symbolic_operand): Extend comment.
21531         * config/m68k/constraints.md (Cu): New constraint.
21532         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
21533         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
21534         (movsi): Handle TLS symbols.
21535         (addsi3_5200): Handle XTLS symbols, indent.
21536         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
21537         (m68k_tls_reference_p): Declare.
21538         (m68k_legitimize_address): Declare.
21539         (m68k_unwrap_symbol): Declare.
21540         * config/m68k/m68k.opt (mxtls): New option.
21541         * config/m68k/m68k.c (ggc.h): Include.
21542         (m68k_output_dwarf_dtprel): Implement hook.
21543         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
21544         (m68k_expand_prologue): Load GOT pointer when function needs it.
21545         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
21546         (m68k_legitimate_constant_address_p): Same.
21547         (m68k_decompose_address): Handle TLS references.
21548         (m68k_get_gp): New static function.
21549         (enum m68k_reloc): New contants.
21550         (TLS_RELOC_P): New macro.
21551         (m68k_wrap_symbol): New static function.
21552         (m68k_unwrap_symbol): New function.
21553         (m68k_final_prescan_insn_1): New static function.
21554         (m68k_final_prescan_insn): New function.
21555         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
21556         functions.
21557         (legitimize_pic_address): Handle TLS references..
21558         (m68k_tls_get_addr, m68k_get_tls_get_addr)
21559         (m68k_libcall_value_in_a0_p)
21560         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
21561         (m68k_call_m68k_read_tp): Helper variables and functions for ...
21562         (m68k_legitimize_tls_address): Handle TLS references.
21563         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
21564         New functions.
21565         (m68k_legitimize_address): Handle TLS symbols.
21566         (m68k_get_reloc_decoration): New static function.
21567         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
21568         UNSPEC_RELOC32.
21569         (m68k_output_dwarf_dtprel): Implement hook.
21570         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
21571         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
21572         m68k_call_* routines.
21573         (sched_attr_op_type): Handle TLS symbols.
21574         (gt-m68k.h): Include.
21575         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
21576         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
21578 2009-05-18  Martin Jambor  <mjambor@suse.cz>
21580         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
21581         (visit_store_addr_for_mod_analysis): New function.
21582         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
21583         (determine_cst_member_ptr): Use gimple_assign_single_p.
21584         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
21585         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
21586         operands.  Don't check number of operands of a NOP_EXPR.
21588 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
21590         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
21592 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21594         PR c/40172
21595         * c-common.c (warn_logical_operator): Don't warn if one of
21596         expression isn't always true or false.
21598 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
21600         * config/i386/biarch32.h: New file.
21601         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
21603 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
21605         * config/mips/mips.md (*zero_extend<mode>_trunchi,
21606         *zero_extend<mode>_truncqi): Merge these into ...
21607         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
21608         Name the pattern following this as *zero_extendhi_truncqi.
21610 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
21612         PR middle-end/39301
21613         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
21614         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
21615         (output_info): Make field HOST_WIDEST_INT.
21616         (print_statistics): Use HOST_WIDEST_INT_PRINT.
21617         (dump_bitmat_statistics): Same.
21619 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
21621         * config.gcc (use_gcc_stdint):  Set to wrap.
21622         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
21623         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
21624         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21625         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21626         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21627         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21628         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21629         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
21631 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
21633         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
21634         tune_64.
21635         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
21636         Move definitions earlier.
21637         (OPT_ARCH64, OPT_ARCH32): Define.
21638         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
21639         and tune_64.
21641 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21643         PR target/40153
21644         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
21645         implies.
21647 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
21649         * arm.md (movdi2): Copy non-reg values to DImode registers.
21651 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
21653         PR target/39942
21654         * final.c (label_to_max_skip): New function.
21655         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
21656         CODE_LABEL_NUMBER <= max_labelno.
21657         * output.h (label_to_max_skip): New prototype.
21658         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
21659         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
21660         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
21661         Handle CODE_LABELs with >= 16 byte alignment or with
21662         max_skip == (1 << align) - 1.
21663         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
21664         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
21666         PR target/39942
21667         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
21668         .p2align 3 if MAX_SKIP is smaller than 7.
21669         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21671 2009-05-15  Ian Lance Taylor  <iant@google.com>
21673         * alias.c (struct alias_set_entry_d): Rename from struct
21674         alias_set_entry.  Change all uses.
21675         * except.c (struct call_site_record_d): Rename from struct
21676         call_site_record.  Change all uses.
21677         * except.h (struct eh_region_d): Rename from struct eh_region.
21678         Change all uses.
21679         * gcse.c (struct hash_table_d): Rename from struct hash_table.
21680         Change all uses.
21681         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
21682         ivtype_map_elt.  Change all uses.
21683         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
21684         Change all uses.
21685         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
21686         * graphite.h (struct name_tree_d): Rename from struct name_tree.
21687         Change all uses.
21688         (struct sese_d): Rename from struct sese.  Change all uses.
21689         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
21690         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
21691         * optabs.h (struct optab_d): Rename from struct optab.  Change all
21692         uses.
21693         (struct convert_optab_d): Rename from struct convert_optab.
21694         Change all uses.
21695         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
21696         ipa_opt_pass.  Change all uses.
21697         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
21698         all uses.
21700         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
21701         defined as a typedef.
21702         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
21703         defined as a tag.
21705 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21707         PR 16302
21708         * fold-const.c (make_range,build_range_check,merge_ranges): Move
21709         declaration to...
21710         (merge_ranges): Returns bool.
21711         * tree.h (make_range): .. to here.
21712         (build_range_check): Likewise.
21713         (merge_ranges): Likewise. Renamed from merge_ranges.
21714         * c-typeck.c (parser_build_binary_op): Update calls to
21715         warn_logical_operator.
21716         * c-common.c (warn_logical_operator): Add new warning.
21717         * c-common.h (warn_logical_operator): Update declaration.
21719 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21721         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
21723 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21725         * doc/install.texi: Document MPC requirements, flags etc.
21727         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
21728         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
21729         Evaluate constant arguments.
21730         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
21731         (fold_builtin_1): Likewise, also evaluate constant arguments.
21732         Remove superfluous break.
21733         (do_mpc_ckconv): New.
21734         * real.h: Include mpc.h.
21735         * toplev.c (print_version): Output MPC version info if available.
21737 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21739         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
21741 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21743         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
21744         only once.
21746 2009-05-15  Jan Hubicka  <jh@suse.cz>
21748         * doc/invoke.texi (max-early-inliner-iterations): New flag.
21749         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
21750         (try_inline): Fix return value.
21751         (cgraph_decide_inlining_incrementally): Honor new value.
21752         (cgraph_early_inlining): Handle indirect inlining.
21753         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
21755 2009-05-15  Jan Hubicka  <jh@suse.cz>
21757         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
21758         * cgraphunit.c (cgraph_finalize_function): Set it.
21759         (cgraph_expand_function): Use it.
21761 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21763         * real.c (encode_ieee_half): Define.
21764         (decode_ieee_half): Define.
21765         (ieee_half_format): Define.
21766         (arm_half_format): Define.
21767         * real.h (ieee_half_format): Declare.
21768         (arm_half_format): Declare.
21770 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
21772         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
21773         swapped, and reversed optabs exist before trying to use them.
21775 2009-05-15  Paul Brook  <paul@codesourcery.com>
21776             Sandra Loosemore  <sandra@codesourcery.com>
21778         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
21779         loads.  Allow PRE_DEC.
21780         (output_move_neon): Handle PRE_DEC.
21781         (arm_print_operand): Add 'A' for neon structure loads.
21782         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
21783         * config/arm/neon.md (neon_mov): Update comment.
21784         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
21785         calls.
21786         (Um): New constraint.
21788 2009-05-15  Jan Hubicka  <jh@suse.cz>
21790         Revert the following patch until testsuite fallout is fixed:
21791         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21792         * cgraph.h (struct inline_summary): New filed self_wize,
21793         size_inlining_benefit, self_time and time_inlining_benefit.
21794         (struct cgraph_global_info): Replace insns by time ans size fields.
21795         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21796         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21797         (ipcp_update_callgraph): Do not touch function bodies.
21798         * ipa-inline.c: Include except.h
21799         (MAX_TIME): New constant.
21800         (overall_insns): Remove
21801         (overall_size, max_benefit): New static variables.
21802         (cgraph_estimate_time_after_inlining): New function.
21803         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21804         (cgraph_clone_inlined_nodes): Update size.
21805         (cgraph_mark_inline_edge): Update size.
21806         (cgraph_estimate_growth): Use size info.
21807         (cgraph_check_inline_limits): Check size.
21808         (cgraph_default_inline_p): Likewise.
21809         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21810         (cgraph_decide_recursive_inlining): Check size.
21811         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21812         and times.
21813         (cgraph_decide_inlining): Likewise.
21814         (cgraph_decide_inlining_incrementally): Likewise; honor
21815         PARAM_EARLY_INLINING_INSNS.
21816         (likely_eliminated_by_inlining_p): New predicate.
21817         (estimate_function_body_sizes): New function.
21818         (compute_inline_parameters): Use it.
21819         * except.c (must_not_throw_labels): New function.
21820         * except.h (must_not_throw_labels): Declare.
21821         * tree-inline.c (init_inline_once): Kill inlining_weigths
21822         * tree-ssa-structalias.c: Avoid uninitialized warning.
21823         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21824         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21825         (PARAM_INLINE_CALL_COST): Remove.
21826         (PARAM_EARLY_INLINING_INSNS): New.
21828 2009-05-15  Richard Guenther  <rguenther@suse.de>
21830         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
21831         not TODO_update_ssa.
21833 2009-05-15  Richard Guenther  <rguenther@suse.de>
21835         PR tree-optimization/39999
21836         * gimple.h (gimple_expr_type): Use the expression type looking
21837         through useless conversions.
21838         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
21839         (vn_nary_op_insert_stmt): Likewise.
21840         (simplify_binary_expression): Likewise.
21842 2009-05-15  Richard Guenther  <rguenther@suse.de>
21844         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21845         New options, enabled by default.
21846         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
21847         Document.
21848         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
21849         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
21850         * tree-ssa-structalias.c (gate_tree_pta): New function.
21851         (pass_build_alias): Use it.
21853 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
21855         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
21856         recurse on an invariant address if a conversion from a pointer
21857         type to a wider integer type is involved.
21859 2009-05-15  Jan Hubicka  <jh@suse.cz>
21861         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21862         * cgraph.h (struct inline_summary): New filed self_wize,
21863         size_inlining_benefit, self_time and time_inlining_benefit.
21864         (struct cgraph_global_info): Replace insns by time ans size fields.
21865         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21866         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21867         (ipcp_update_callgraph): Do not touch function bodies.
21868         * ipa-inline.c: Include except.h
21869         (MAX_TIME): New constant.
21870         (overall_insns): Remove
21871         (overall_size, max_benefit): New static variables.
21872         (cgraph_estimate_time_after_inlining): New function.
21873         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21874         (cgraph_clone_inlined_nodes): Update size.
21875         (cgraph_mark_inline_edge): Update size.
21876         (cgraph_estimate_growth): Use size info.
21877         (cgraph_check_inline_limits): Check size.
21878         (cgraph_default_inline_p): Likewise.
21879         (cgraph_edge_badness): Compute badness based on benefit and size cost.
21880         (cgraph_decide_recursive_inlining): Check size.
21881         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21882         and times.
21883         (cgraph_decide_inlining): Likewise.
21884         (cgraph_decide_inlining_incrementally): Likewise; honor
21885         PARAM_EARLY_INLINING_INSNS.
21886         (likely_eliminated_by_inlining_p): New predicate.
21887         (estimate_function_body_sizes): New function.
21888         (compute_inline_parameters): Use it.
21889         * except.c (must_not_throw_labels): New function.
21890         * except.h (must_not_throw_labels): Declare.
21891         * tree-inline.c (init_inline_once): Kill inlining_weigths
21892         * tree-ssa-structalias.c: Avoid uninitialized warning.
21893         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21894         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21895         (PARAM_INLINE_CALL_COST): Remove.
21896         (PARAM_EARLY_INLINING_INSNS): New.
21897         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
21898         (inline-call-cost): Remove.
21899         (early-inlining-insns): New.
21901 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
21903         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
21904         for bounds.
21905         (print_int_cst_bounds_in_octal_p): Likewise.
21906         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
21907         with subtypes.
21908         * dwarf2out.c (base_type_die): Likewise.
21909         (is_subrange_type): Delete.
21910         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
21911         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
21912         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
21913         if the destination type is boolean.
21914         (build_range_check): Do not special-case subtypes.
21915         (fold_sign_changed_comparison): Likewise.
21916         (fold_unary): Likewise.
21917         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
21918         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
21919         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
21920         * tree.c (subrange_type_for_debug_p): New predicate based on the
21921         former is_subrange_type.
21922         * tree.h (subrange_type_for_debug_p): Declare.
21923         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
21924         (convert_affine_scev): Remove call to above function.
21925         (chrec_convert_aggressive): Likewise.
21926         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
21927         false for conversions involving subtypes.
21928         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
21929         (vrp_val_min): Likewise.
21930         (needs_overflow_infinity): Likewise.
21931         (extract_range_from_unary_expr): Likewise.
21933 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
21935         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
21936         * config/frv/frv.c: Likewise.
21937         * config/s390/s390.c: Likewise.
21938         * config/sparc/sparc.h: Likewise.
21939         * config/i386/i386.h: Likewise.
21940         * config/i386/i386.c: Likewise.
21941         * config/crx/crx.c: Likewise.
21942         * config/m68hc11/m68hc11.h: Likewise.
21943         * config/iq2000/iq2000.c: Likewise.
21944         * config/mn10300/mn10300.h: Likewise.
21945         * config/mn10300/mn10300.c: Likewise.
21946         * config/m68k/m68k.c: Likewise.
21947         * config/rs6000/rs6000.c: Likewise.
21948         * config/rs6000/xcoff.h: Likewise.
21949         * config/rs6000/linux64.h: Likewise.
21950         * config/rs6000/sysv4.h: Likewise.
21951         * config/score/score3.c: Likewise.
21952         * config/score/score7.c: Likewise.
21953         * config/score/score.c: Likewise.
21954         * config/arm/arm.md: Likewise.
21955         * config/mips/mips.c: Likewise.
21956         * config/mips/mips.md: Likewise.
21957         * config/bfin/bfin.h: Likewise.
21958         * config/pa/pa.c: Likewise.
21959         * config/pa/constraints.md: Likewise.
21961         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
21962         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
21963         * config/pdp11/pdp11.h: Use memory_address_p instead.
21965 2009-05-14  Ian Lance Taylor  <iant@google.com>
21967         * passes.c (finish_optimization_passes): Change i to int.
21968         * plugin.c (plugins_active_p): Change event to int.
21969         (dump_active_plugins): Likewise.
21970         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
21971         Add cast.
21972         * tree.c (tree_range_check_failed): Change c to unsigned int.
21973         (omp_clause_range_check_failed): Likewise.
21974         (build_common_builtin_nodes): Change mode to int.  Add cast.
21975         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
21976         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
21978         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
21979         ++ or -- with a variable of enum type.
21981 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21983         PR driver/40144
21984         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
21986 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21988         * store-motion.c: Do not include params.h
21989         * Makefile.in: Fix dependencies for various files.
21991 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
21993         * auto-inc-dec.c: Fix pass description, remove apparent
21994         accidental duplication.
21996 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21998         PR middle-end/40147
21999         * ipa-utils.h (memory_identifier_string): Moved to ...
22000         * tree.h (memory_identifier_string): Here.  Add GTY(()).
22002 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22004         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
22005         in the former documentation of...
22006         (GO_IF_LEGITIMATE_ADDRESS): ... this.
22007         * ira-conflicts.c (get_dup_num): Use address_operand.
22008         * targhooks.c (default_legitimate_address_p): New.
22009         * targhooks.h (default_legitimate_address_p): New.
22010         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
22011         Call hook.
22012         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
22013         * target.h (struct target): Add legitimate_address_p.
22014         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
22015         (TARGET_INITIALIZER): Include it.
22017         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22018         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
22019         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
22020         (TARGET_LEGITIMATE_ADDRESS_P): New.
22022         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22023         (REG_OK_STRICT_P): Delete.
22024         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
22025         (frv_legitimate_address_p_1): ... this.
22026         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
22027         (frv_legitimate_address_p_1): ... the renamed old
22028         frv_legitimate_address_p.
22029         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
22030         (TARGET_LEGITIMATE_ADDRESS_P): New.
22032         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22033         * config/s390/s390-protos.h (legitimate_address_p): Remove.
22034         * config/s390/s390.c (legitimate_address_p): Rename to...
22035         (s390_legitimate_address_p): ... this, make static.
22036         (legitimize_address): Adjust call.
22037         (TARGET_LEGITIMATE_ADDRESS_P): New.
22038         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
22040         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22041         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
22042         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
22043         (TARGET_LEGITIMATE_ADDRESS_P): New.
22045         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22046         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
22047         * config/spu/spu.c (spu_legitimate_address): Rename to...
22048         (spu_legitimate_address_p): ... this, make static.
22049         (TARGET_LEGITIMATE_ADDRESS_P): New.
22051         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22052         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
22053         * config/sparc/sparc.c (legitimate_address_p): Rename to...
22054         (sparc_legitimate_address_p): ... this, make static and return bool.
22055         (legitimize_address): Adjust call.
22056         (TARGET_LEGITIMATE_ADDRESS_P): New.
22058         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22059         * config/i386/i386-protos.h (legitimate_address_p): Remove.
22060         * config/i386/i386.c (legitimate_address_p): Rename to...
22061         (ix86_legitimate_address_p): ... this, make static.
22062         (constant_address_p): Move after it, adjust call.
22063         (TARGET_LEGITIMATE_ADDRESS_P): New.
22065         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22066         * config/avr/avr-protos.h (legitimate_address_p): Remove.
22067         * config/avr/avr.c (legitimate_address_p): Rename to...
22068         (avr_legitimate_address_p): ... this, make static.
22069         (legitimize_address): Adjust call.
22070         (TARGET_LEGITIMATE_ADDRESS_P): New.
22072         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22073         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
22074         * config/crx/crx.c (crx_legitimate_address_p): Make static.
22075         (TARGET_LEGITIMATE_ADDRESS_P): New.
22077         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22078         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
22079         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
22080         (TARGET_LEGITIMATE_ADDRESS_P): New.
22082         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22083         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
22084         Remove.
22085         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
22086         Make static.
22087         (TARGET_LEGITIMATE_ADDRESS_P): New.
22089         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22090         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
22091         Remove.
22092         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
22093         Rename to...
22094         (m68hc11_legitimate_address_p): ... this, make static.
22095         (go_if_legitimate_address_internal): Rename to...
22096         (m68hc11_legitimate_address_p_1): ... this.
22097         (legitimize_address): Adjust call.
22098         (TARGET_LEGITIMATE_ADDRESS_P): New.
22100         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22101         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
22102         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
22103         (TARGET_LEGITIMATE_ADDRESS_P): New.
22105         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22106         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
22107         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
22108         (mn10300_legitimate_address_p): ... this, make static.
22109         (TARGET_LEGITIMATE_ADDRESS_P): New.
22111         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22112         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
22113         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
22114         (TARGET_LEGITIMATE_ADDRESS_P): New.
22116         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22117         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
22118         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
22119         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22120         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
22121         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
22122         (rs6000_legitimate_address_p): ... this, make static.
22123         (TARGET_LEGITIMATE_ADDRESS_P): New.
22124         (REG_MODE_OK_FOR_BASE_P): Delete.
22125         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
22127         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22128         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
22129         Delete.
22130         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
22131         static, adjust types.
22132         (TARGET_LEGITIMATE_ADDRESS_P): New.
22134         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22135         * config/score/score.c (score_address_p): Rename to...
22136         (score_legitimate_address_p): ... this.
22137         (TARGET_LEGITIMATE_ADDRESS_P): New.
22138         * config/score/score3.c (score3_address_p): Rename to...
22139         (score3_legitimate_address_p): ... this.
22140         * config/score/score7.c (score7_address_p): Rename to...
22141         (score7_legitimate_address_p): ... this.
22143         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
22144         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
22145         GO_IF_LEGITIMATE_ADDRESS): Delete.
22146         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
22147         thumb2_legitimate_address_p): Delete.
22148         (arm_legitimate_address_p): Rename to...
22149         (arm_legitimate_address_outer_p): ... this.
22150         * config/arm/constraints.md ("Uq"): Adjust call.
22151         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
22152         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
22153         to...
22154         (arm_legitimate_address_outer_p): ... this.
22155         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
22156         static.
22157         (TARGET_LEGITIMATE_ADDRESS_P): New.
22159         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22160         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
22161         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
22162         (TARGET_LEGITIMATE_ADDRESS_P): New.
22164         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22165         * config/vax/vax-protos.h (legitimate_address_p): Remove.
22166         * config/vax/vax.c (legitimate_address_p): Rename to...
22167         (vax_legitimate_address_p): ... this, make static.
22168         (TARGET_LEGITIMATE_ADDRESS_P): New.
22170         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22171         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
22172         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
22173         (TARGET_LEGITIMATE_ADDRESS_P): New.
22175         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22176         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
22177         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
22178         (mmix_legitimate_address_p): ... this, make static.
22179         (TARGET_LEGITIMATE_ADDRESS_P): New.
22181         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22182         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
22183         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
22184         (TARGET_LEGITIMATE_ADDRESS_P): New.
22186 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
22188         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
22189         of MODE_COMPLEX_INT.
22191 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22193         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
22194         LCT_NORMAL in function call.
22195         * mips-tdump.c (print_file_desc): Add cast to enum type.
22196         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
22197         (mark_stabs): Add casts to enum types.
22198         (parse_stabs_common): Add casts to enum types.
22200 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22202         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
22203         Check for invalid values of LETTER.
22205 2009-05-13  Taras Glek  <tglek@mozilla.com>
22207         * attribs.c (register_attribute): moved out attribute registration
22208         into register_attribute.
22209         * doc/plugins.texi: Documented register_attribute and
22210         PLUGIN_ATTRIBUTES.
22211         * gcc-plugin.h: Added forward decl for register_attribute.
22212         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
22213         * plugin.c (register_callback, invoke_plugin_callbacks): Added
22214         PLUGIN_ATTRIBUTES boilerplate.
22216 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
22218         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
22219         values even in sentinel and empty entries.
22220         (ms_printf_flag_specs):  Likewise.
22221         (ms_scanf_flag_specs):  Likewise.
22222         (ms_strftime_flag_specs):  Likewise.
22223         (ms_print_char_table):  Likewise.
22224         (ms_scan_char_table):  Likewise.
22225         (ms_time_char_table):  Likewise.
22227 2009-05-13  Doug Kwan  <dougkwan@google.com>
22229         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
22231 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
22233         * config/mips/mips.md (store): Add attributes for QI and HI.
22234         Update comment.
22235         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
22236         (truncdi<mode>2): ... this new pattern.
22238 2009-05-13  Brad Hards  <bradh@kde.org>
22240         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
22242 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
22243             Ben Elliston <bje@au.ibm.com>
22245         PR middle-end/40035
22246         * dse.c (check_mem_read_rtx): Guard against width == -1.
22248 2009-05-13  Michael Matz  <matz@suse.de>
22250         PR middle-end/39976
22251         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
22252         (trivially_conflicts_p): New function.
22253         (insert_backedge_copies): Use it.
22255 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
22257         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
22258         (handle_stdc_pragma): Use new enum constant names.
22259         (handle_pragma_float_const_decimal64): Ditto.
22261 2009-05-13  Ian Lance Taylor  <iant@google.com>
22263         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
22264         tree.def.
22266 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
22268         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
22269         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
22270         multilibs.
22271         * config/m68k/m68k.h (FL_UCLINUX): Define.
22273 2009-05-13  Jan Hubicka  <jh@suse.cz>
22275         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
22277 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22279         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
22280         unless -fschedule-insns is specified.
22282 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22284         PR target/39561
22285         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
22286         TARGET_EXPAND_CBRANCHDI4.
22287         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
22288         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
22289         (cmpeqdi): Fix comment.
22291 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
22293         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
22294         (sh_legitimate_address_p): Likewise.
22295         * config/sh/sh.c (sh_legitimate_index_p): New.
22296         (sh_legitimate_address_p): Likewise.
22297         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
22298         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
22299         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
22300         (MAYBE_BASE_REGISTER_RTX_P): New macro.
22301         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
22302         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
22303         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
22304         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
22305         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
22307 2009-05-12  Jan Hubicka  <jh@suse.cz>
22309         * tree-inline.c (estimate_operator_cost): Add operands;
22310         when division happens by constant, it is cheap.
22311         (estimate_num_insns): Loads and stores are not having cost of 0;
22312         EH magic stuff is cheap; when computing runtime cost of switch,
22313         use log2 base of amount of its cases; builtin_expect has cost of 0;
22314         compute cost for moving return value of call.
22315         (init_inline_once): Initialize time_based flags.
22316         * tree-inline.h (eni_weights_d): Add time_based flag.
22318 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22320         * df-core.c: Update head documentation.
22322 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22324         PR bootstrap/40118
22325         * rs6000.c (rs6000_generate_compare): Use op1b instead of
22326         shadowing exisiting variable op1.
22328 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
22330         PR target/37179
22331         * config/i386/driver-i386.c (processor_signatures): New enum.
22332         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
22333         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
22334         processor signature to detect geode processor.
22336 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22338         Revert:
22340         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22342         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22343         causes spurious differences between trunk and cond-optab branch.
22345 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22347         * dojump.c (compare_from_rtx): Delete.
22348         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
22349         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
22350         if the comparison does not satisfy the predicate; test predicates for
22351         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
22352         further if one existing pattern fails.
22353         * expr.h (compare_from_rtx): Delete.
22354         (prepare_operand): Declare it.
22355         * optabs.c: Change "lib call" to "libcall" throughout.
22356         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
22357         HAVE_conditional_trap, emit_cmp_insn): Delete.
22358         (can_compare_p): Delete cmp_optab case.
22359         (prepare_float_lib_cmp): Return an rtx and a machine mode.
22360         Accept other parameters by value.
22361         (prepare_operand): Make non-static.
22362         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
22363         other parameters by value.  Try to widen operands here based on
22364         an optab_methods argument and looking at cbranch_optab.
22365         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
22366         loop.  Use cbranch_optab directly.
22367         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
22368         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
22369         assertion.
22370         (emit_conditional_move, emit_conditional_add): Inline what's needed
22371         of compare_from_rtx, using new prepare_cmp_insn for the rest.
22372         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
22373         with COMPARE.  Move cmov_optab and cstore_optab above
22374         with cbranch_optab, move cmp_optab down with ucmp_optab,
22375         remove tst_otpab.  Do not initialize trap_rtx.
22376         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
22377         for trap code.  Do not check HAVE_conditional_trap.  Use
22378         prepare_cmp_insn.  Accept no predicate for operand 3.
22379         * optabs.h (OTI_cmp): Mark as used only for libcalls.
22380         (OTI_ctrap, ctrap_optab): New.
22381         (tst_optab): Delete.
22382         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
22383         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
22384         with lookup of ctrap_optab.
22385         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
22386         Delete.
22387         (ctrap_optab): New.
22389         * combine.c (combine_simplify_rtx, simplify_set): Do not
22390         special case comparing against zero for cc0 machines.
22391         * simplify-rtx.c (simplify_binary_operation_1): Never remove
22392         COMPARE on cc0 machines.
22393         (simplify_relational_operation): Return a new expression when
22394         a COMPARE could be removed.
22395         * final.c (final_scan_insn): Compare cc_status values
22396         against LHS of a (compare FOO (const_int 0)) cc0 source.
22397         Also check if cc_status.value is the full compare.
22399         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
22400         (cstoreMM4): Document.
22401         (conditional_trap): Document ctrapMM4 instead.
22402         (sync_compare_and_swapMM): Refer to cbranchcc4.
22403         (Dependent Patterns): Eliminate obsolete information referring to
22404         the old jump optimization phase.
22405         (Canonicalization): Include cbranchcc4 case, omit canonicalization
22406         of compares with 0 on cc0 machines.
22407         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
22408         avoiding references to cc0.  Remove text about storing operands
22409         in cmpMM.
22410         * doc/tm.texi (Condition Codes): Include blurb on different
22411         condition code representations, separate into subsections for
22412         CC0, MODE_CC and conditional execution.
22414         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
22415         alpha_emit_setcc): Accept operands and a machine mode.
22416         * config/alpha/alpha.c (alpha_emit_conditional_branch):
22417         Get code/op0/op1 from operands, use machine mode argument
22418         instead of alpha_compare.fp_p.  Emit the branch here.
22419         (alpha_emit_setcc): Likewise, and return boolean.
22420         (alpha_emit_conditional_move): Likewise.  Assert that
22421         cmp_op_mode == cmp_mode, and simplify accordingly.
22422         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
22423         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
22424         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
22425         Delete.
22426         (stack probe test): Use cbranchdi4.
22427         * config/alpha/predicates.md (alpha_cbranch_operator): New.
22429         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
22430         * config/arc/arc.h (movsicc, movsfcc): Use it.
22431         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
22432         (cbranchsi4, cstoresi4): New.
22433         (cmpsi, bCC and sCC expanders): Remove.
22435         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
22436         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
22437         * config/arm/predicates.md (arm_comparison_operator): Only include
22438         floating-point operators if there is a hardware floating-point unit.
22439         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
22440         deferring to cbranch_cc and cstore_cc respectively.
22441         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
22442         cbranch_cc, cstore_cc): New.
22443         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
22444         arm_compare_op1.
22445         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
22447         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
22448         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
22449         as an argument.
22450         (adjust_insn_length): Adjust calls.
22451         (avr_reorg): Handle (compare (foo) (const_int 0)).
22452         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
22453         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
22454         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
22455         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
22456         (bCC): Remove.
22457         (cbranchqi4, cbranchhi4, cbranchsi4): New.
22458         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
22460         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
22461         (cbranchsi4, cstorebi4, cstoresi4): New.
22462         (movbisi): This insn is duplicate, split it to zero_extend.
22463         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
22464         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
22465         (bfin_optimize_loop): Use cbranch expander.
22466         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
22467         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
22468         (bfin_bimode_comparison_operator): ... this.
22469         (bfin_direct_comparison_operator): New.
22471         * config/cris/cris.c (cris_normal_notice_update_cc): Look
22472         inside (compare FOO (const_int 0)).
22473         (cris_rtx_costs): Handle ZERO_EXTRACT.
22474         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
22475         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
22476         (*tstdi_v32): Delete.
22477         (*cmpdi_non_v32): Add M alternative for operand 1.
22478         (cmpsi, cmp<mode>): Make private.
22479         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
22480         with COMPARE.
22481         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
22483         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
22484         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
22485         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
22486         (cc_reg_operand): New.
22487         (any_cond): Delete.
22488         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
22489         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
22490         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
22491         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
22492         crx_expand_scond): Delete.
22494         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
22495         (cbranchsi4): New.
22496         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
22497         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
22499         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
22500         cstoresi4, cstoresf4, cstoredf4): New.
22501         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
22502         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22503         Receive the entire operands array.
22504         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
22505         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
22506         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
22507         Get test/op0/op1 from the operands array.
22508         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
22510         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
22511         (h8300_expand_store): New.
22512         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
22513         (const_int 0)).
22514         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
22515         (h8300_expand_store): New.
22516         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
22517         or do not try to produce (set (cc0) REG).
22518         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
22519         change a compare into a move to a scratch register.  Disable some
22520         peepholes when comparing with zero.
22521         (tstsi, tsthi, tstsi, cmpqi): Make private.
22522         (cmphi): Delete.
22523         (bCC, sCC): Delete.
22524         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
22525         cstoresi4): New.
22527         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
22528         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
22529         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
22530         (ix86_emit_i387_log1p): Use cbranchxf2.
22531         (ix86_expand_setcc): Return void.
22532         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
22533         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
22534         cmp<MODEF>, cmpcc): Remove.
22535         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
22536         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
22537         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
22538         (sCC and bCC expanders): Remove.
22539         (stack_protect_test): Use cbranchcc4.
22541         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
22542         Delete.
22543         (ia64_expand_compare): Accept three rtx by reference and return void.
22544         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
22545         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
22546         from *expr.  Update *expr with the BImode comparison to do.
22547         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
22548         cmptf, bCC, sCC, conditional_trap): Delete.
22549         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
22550         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
22551         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
22552         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
22553         * config/ia64/predicates.md (ia64_cbranch_operator): New.
22555         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
22556         type of last argument.
22557         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
22558         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
22559         use machine mode argument instead of branch_type.  Remove dead
22560         code for floating-point comparisons.
22561         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
22562         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
22563         Remove.
22564         (cbranchsi4, cstoresi4): New.
22565         * config/iq2000/predicates.md (reg_or_const_operand): New.
22567         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
22568         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
22569         (b<code>_op): Rewrite to...
22570         (bcc_op): ... this, using match_operator.
22571         (s<code>_op): Rewrite to...
22572         (scc_op): ... this, using match_operator.
22573         (s<code>_24_op): Rewrite to...
22574         (scc_op_24): ... this, using match_operator.
22575         (s<code>_<mode>): Rewrite to...
22576         (cstore<mode>4): ... this, using match_operator.
22577         (s<code>_<mode>_24): Rewrite to...
22578         (cstore<mode>4_24): ... this, using match_operator.
22579         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
22580         m32c_unpend_compare, m32c_expand_scc): Delete.
22581         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
22582         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
22583         (m32c_expand_movcc): Change NE to EQ if necessary.
22584         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
22586         * config/m32r/m32r-protos.h (gen_cond_store): New.
22587         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
22588         (gen_cond_store): New, from sCC patterns.
22589         (m32r_expand_block_move): Use cbranchsi4.
22590         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
22591         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
22592         (cbranchsi4, cstoresi4): New.
22594         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
22595         Delete.
22596         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
22597         (m68hc11_notice_update_cc): Look into a compare with 0.
22598         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
22599         Delete.
22600         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
22601         cmphi, cmpqi, bCC): Delete.
22602         (cbranchsi4, cbranchhi4, cbranchqi4): New.
22603         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
22604         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
22605         sets with COMPARE.
22607         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
22608         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
22609         * config/m68k/constraints.md (H): New.
22610         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
22611         the define_insn below.
22612         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
22613         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
22614         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
22615         patterns): Wrap RHS with COMPARE.
22616         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
22617         (*cmpdi_internal): Name this pattern.
22618         (cmpdi): Change to define_insn.
22619         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
22620         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
22621         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
22622         predicate.
22623         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
22624         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
22625         (conditional_trap): Change to...
22626         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
22627         (*conditional_trap): Use the ordered_comparison_operator and
22628         const1_operand predicates.
22629         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
22630         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
22631         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
22632         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
22634         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
22635         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
22636         (mcore_gen_compare): New.
22637         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
22638         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
22639         (mcore_gen_compare): ... this.
22640         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
22641         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
22642         (stack probe pattern): Use cbranchsi4.
22644         * config/mips/predicates.md (mips_cstore_operator): New.
22645         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
22646         * config/mips/mips.md (any_cond): Delete.
22647         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
22648         always succeed.
22649         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
22650         fixuns_truncsfdi2): Use cbranch patterns.
22651         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
22652         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
22653         Adjust call to mips_expand_conditional_branch.
22654         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
22655         cstore<GPR:mode>4.
22656         * config/mips/mips-protos.h (mips_expand_conditional_branch,
22657         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
22658         * config/mips/mips.c (cmp_operands): Delete.
22659         (mips_emit_compare): Get comparison operands from *op0/*op1.
22660         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
22661         that it succeeds.  Use op0/op1 instead of cmp_operands.
22662         (mips_expand_conditional_branch, mips_expand_conditional_move,
22663         mips_expand_conditional_trap): Likewise.
22664         (mips_block_move_loop): Use cbranch patterns.
22665         * config/mips/mips.h (cmp_operands): Delete.
22667         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
22668         (mmix_gen_compare_reg): Just return a register in the right CC mode.
22669         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
22670         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
22671         (*cmpcc_folded): Rename to...
22672         (*cmpdi_folded): this.
22673         (*cmpcc): Rename to...
22674         (*cmps): ... this.
22675         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
22676         (bCC): Remove.
22677         (cbranchdi4): New.
22678         (cbranchdf4): New.  Handle invalid comparisons here.
22679         * config/mmix/predicates.md (float_comparison_operator): New.
22681         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
22682         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
22683         * config/mn10300/mn10300.md (tst): Delete.
22684         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
22685         Name these patterns and wrap RHS in a compare.
22686         (*cmpsi): Make this pattern private.  Include tst.
22687         (*cmpsf): Make this pattern private.
22688         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
22689         (compare with zero peepholes): Likewise.
22690         (bCC): Remove.
22691         (cbranchsi4, cbranchsf4): New.
22692         (casesi): Use cbranchsi4.
22694         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
22695         hppa_branch_type): Delete.
22696         (return_addr_rtx): Use cbranchsi4.
22697         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
22698         Emit CCFPmode comparison here.
22699         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
22700         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
22701         hppa_branch_type): Delete.
22702         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
22703         (movsicc, movdicc): Remove references to hppa_compare_op0,
22704         hppa_compare_op1 and compare_from_rtx.
22705         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
22706         (casesi): Use cbranchsi4.
22708         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
22709         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
22710         * config/pdp11/pdp11.md (register_or_const0_operand): New.
22711         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
22712         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
22713         (bCC): Delete.
22714         (cbranchdf4, cbranchhi4, cbranchqi4): New.
22715         (*branch, *branch_inverted): New.
22717         * config/picochip/picochip.md (cbranchhi4): Use
22718         ordered_comparison_operator.
22719         (cmphi, bCC): Remove.
22721         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
22722         (trap_comparison_operator): Delete.
22723         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
22724         rs6000_emit_cbranch): Accept mode and operands.
22725         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
22726         rs6000_compare_fp_p): Delete.
22727         (rs6000_generate_compare): Accept mode and comparison.  Extract code
22728         and op0/op1 from there.  Replace references to rs6000_compare_op0
22729         and rs6000_compare_op1.
22730         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
22731         extract result from passed operands.
22732         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
22733         extract loc from passed operands.
22734         (rs6000_emit_cmove): Likewise.
22735         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
22736         rs6000_compare_fp_p): Delete.
22737         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
22738         (cbranch<GPR>4, cbranch<FP>4): New.
22739         (cstore<mode>4): New.  Consolidate here all choices about when to use
22740         portable or specialized sCC sequences.
22741         (stack_protect_test): Use cbranchsi4.
22742         (conditional_trap): Replace with ctrap<GPR>4.
22743         (conditional trap insn): Replace trap_comparison_operator with
22744         ordered_comparison_operator.
22746         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
22747         (s390_emit_prologue): Use ctrap.
22748         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
22749         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
22750         New predicates replacing...
22751         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
22752         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
22753         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
22754         (add<mode>cc): Do not use s390_compare_op0/op1.
22755         (s<code>): Change to...
22756         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
22757         (seq): Change to...
22758         (cstorecc4): ... this.  Handle EQ or NE equally.
22759         (*sne): Un-privatize for use in cstorecc4.
22760         (b<code>): Change to...
22761         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
22762         (conditional_trap): Replace with...
22763         (ctrap<GPR>4, ctrap<FP>4): ... these.
22764         (stack_protect): Use cbranchcc4.
22766         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
22767         * config/score/score-protos.h (score_gen_cmp): Delete.
22768         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
22769         (score_block_move-loop): Use cbranchsi4.
22770         * config/score/score.md (cbranchsi4): New.
22771         (cmpsi, bCC): Delete.
22772         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
22773         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22774         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
22775         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
22776         * config/score/score3.h (score3_gen_cmp): Delete.
22777         * config/score/score7.h (score7_gen_cmp): Delete.
22779         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
22780         (sh_emit_scc_to_t): ... this.  Return void.
22781         (from_compare): Rename to...
22782         (sh_emit_compare_and_branch): ... this.
22783         (sh_emit_compare_and_set): New.
22784         (sh_expand_t_scc): Accept operands.
22785         * config/sh/predicates.md (sh_float_comparison_operator): New.
22786         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
22787         (prepare_scc_operands): Rename to...
22788         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
22789         arguments.
22790         (sh_emit_cheap_store_flag): New.
22791         (sh_emit_set_t_insn): New.
22792         (from_compare): Rename to...
22793         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
22794         handling of TARGET_SH2E floating point to avoid recursive call.
22795         Generate branch here.
22796         (sh_emit_compare_and_set): New.
22797         (sh_expand_t_scc): Get op0/op1 from arguments.
22798         (sh_emit_cheap_store_flag): New.
22799         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
22800         cases.
22801         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
22802         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
22803         (movsicc, movdicc): Do nothing when it recreated operands from
22804         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
22805         prepare_scc_operands (now sh_emit_scc_to_t).
22806         (udivdi3): Use cstoresi4.
22807         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
22808         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
22809         (cbranchint4_media, cbranchfp4_media): New.
22810         (casesi): Use cbranchdi4.
22811         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
22812         Delete.
22813         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
22814         (movnegt): Remove second operand.
22815         (cbranchsf4, cbranchdf4): New.
22816         (stack_protect): Use cbranchdi4/cbranchsi4.
22818         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
22819         (gen_compare_reg): Accept comparison, extract part of it to...
22820         (gen_compare_reg_1): ... this.
22821         (gen_compare_operator): Delete.
22822         (gen_v9_scc): Accept separate destination, comparison code and arms.
22823         Do not use sparc_compare_op0/sparc_compare_op1.
22824         (emit_scc_insn, emit_conditional_branch_insn): New.
22825         (emit_v9_brxx): Make static.  Remove useless assertion.
22826         (sparc_emit_float_lib_cmp): Return RTL instead of calling
22827         emit_cmp_insn.
22828         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
22829         * config/sparc/sparc-protos.h (gen_compare_reg,
22830         sparc_emit_float_lib_cmp): Adjust prototype.
22831         (emit_scc_insn, emit_conditional_branch_insn): New.
22832         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
22833         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
22834         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
22835         iterators to the top.
22836         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
22837         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
22838         snedi_special_trunc): Delete.
22839         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
22840         and snedi_special_trunc.
22841         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
22842         cbranchdi4, cbranch<F:mode>4): New.
22843         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
22844         here.  Use gen_compare_reg instead of gen_compare_operator.
22845         (conditional_trap): Replace with...
22846         (ctrapsi4, ctrapdi4): ... this.
22847         (stack_protect_test): Use cbranchcc4.
22849         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
22850         argument to rtx.
22851         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
22852         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
22853         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
22854         from operands[0] or operands[3] depending on is_set.
22855         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
22856         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
22857         cmpdf, bCC), sCC: Remove.
22858         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
22859         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
22860         cstoredf4): New.
22861         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
22862         spu_emit_branch_or_set.
22864         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
22865         Add two arguments.
22866         * config/stormy16/stormy16.h (xstormy16_compare_op0,
22867         xstormy16_compare_op1): Delete.
22868         * config/stormy16/stormy16.c (xstormy16_compare_op0,
22869         xstormy16_compare_op1): Delete.
22870         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
22871         Adjust calls.
22872         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
22873         (cmphi, cmpsi, bCC): Remove.
22875         * config/v850/v850.md (tstsi, cmpsi): Fold into...
22876         (*cmpsi): ... this one.
22877         (cbranchsi4, cstoresi4): New.
22878         (bCC expanders): Delete.
22879         (sCC insns): Fold into...
22880         (*setcc): ... this one.
22881         (casesi): Do not use gen_cmpsi and gen_bgtu.
22882         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
22883         (movsicc): Simplify.
22884         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
22886         * config/vax/vax-protos.h (cond_name): New.
22887         (vax_output_conditional_branch): Remove.
22888         * config/vax/vax.c (cond_name): New.
22889         (vax_output_conditional_branch): Remove.
22890         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
22891         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
22892         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
22893         (bit<VAXint>): Wrap source with (compare).
22894         (b<code> and following unnamed pattern): Rename to *branch and
22895         *branch_reversed.  Change macroization to match_operator.
22896         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
22898         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
22899         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
22900         Change last argument to machine_mode.
22901         (xtensa_expand_scc): Add machine_mode argument.
22902         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
22903         (gen_conditional_move, xtensa_expand_conditional_branch,
22904         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
22905         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
22906         Adjust operand numbers.
22907         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
22908         Delete.
22909         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
22910         (cmpsi, cmpsf, b<code>, s<code>): Delete.
22911         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
22913 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
22915         * optabs.c (prepare_cmp_insn): Temporarily disable test that
22916         causes spurious differences between trunk and cond-optab branch.
22918 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22920         PR target/37137
22921         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
22923 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
22925         * tree.c (iterative_hash_pointer): Delete.
22926         (iterative_hash_expr): Short-circuit handling of NULL pointer.
22927         Hash UIDs and versions of SSA names.  Don't special-case built-in
22928         function declarations.
22930 2009-05-11  Ian Lance Taylor  <iant@google.com>
22932         PR bootstrap/40103
22933         * graphite.c: Force -Wc++-compat to only be a warning before
22934         #including "cloog/cloog.h".
22936 2009-05-11  Martin Jambor  <mjambor@suse.cz>
22938         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
22940 2009-05-11  Jan Hubicka  <jh@suse.cz>
22942         * tree-ssa-loop-ivcanon.c: Include target.h
22943         (struct loop_size): new structure.
22944         (constant_after_peeling): New predicate.
22945         (tree_estimate_loop_size): New function.
22946         (estimated_unrolled_size): Rewrite for new estimates.
22947         (try_unroll_loop_completely): Use new estimates.
22948         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
22950 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22952         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
22953         libcpp interface change.
22954         (spu_macro_to_expand): Likewise.
22956 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
22958         PR tree-optimization/40026
22959         * gimplify.c (gimplify_init_constructor): Change initial conditional
22960         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
22961         optimize_compound_literals_in_ctor.
22963 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
22965         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
22966         New devices.
22967         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
22969 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
22971         * tree-vect-data-refs.c (vect_analyze_group_access): Use
22972         HOST_WIDE_INT for gap.
22974 2009-05-11  Ira Rosen  <irar@il.ibm.com>
22976         PR tree-optimization/40074
22977         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
22978         account in group size and step comparison.
22980 2009-05-11  Richard Guenther  <rguenther@suse.de>
22982         * passes.c (init_optimization_passes): Strip now incorrect comment.
22983         (execute_function_todo): Do not set PROP_alias.
22984         * tree-pass.h (PROP_alias): Remove.
22985         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
22986         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
22987         * tree-nrv.c (pass_return_slot): Likewise.
22988         * tree-object-size.c (pass_object_sizes): Likewise.
22989         * tree-ssa-dom.c (pass_dominator): Likewise.
22990         (pass_phi_only_cprop): Likewise.
22991         * tree-ssa-dse.c (pass_dse): Likewise.
22992         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
22993         (pass_cselim): Likewise.
22994         * tree-ssa-pre.c (pass_pre): Likewise.
22995         (pass_fre): Likewise.
22996         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22997         * tree-ssa-sink.c (pass_sink_code): Likewise.
22998         * tree-stdarg.c (pass_stdarg): Likewise.
22999         * tree-tailcall.c (pass_tail_calls): Likewise.
23000         * tree-vrp.c (pass_vrp): Likewise.
23002 2009-05-10  Ian Lance Taylor  <iant@google.com>
23004         * basic-block.h (enum profile_status): Break out of struct
23005         control_flow_graph.
23006         * cgraph.h (struct inline_summary): Break out of struct
23007         cgraph_local_info.
23008         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
23009         of struct cgraph_order_sort.
23010         * combine.c (enum undo_kind): New enum, broken out of struct undo.
23011         * cse.c (struct branch_path): Break out of struct
23012         cse_basic_block_data.
23013         * except.h (enum eh_region_type): Break out of struct eh_region.
23014         * gcc.c (enum add_del): Break out of struct modify_target.
23015         * genrecog.c (enum decision_type): Break out of struct decision_test.
23016         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
23017         ggc_pch_data.
23018         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
23019         * regmove.c (enum match_use): New enum, broken out of struct match.
23020         * sched-int.h (enum post_call_group): New enum, broken out of
23021         struct deps.
23022         (struct deps_reg): Break out of struct deps.
23023         * target.h (struct asm_int_op): Break out of struct gcc_target.
23024         * tree-eh.c (struct goto_queue_node): Break out of struct
23025         leh_tf_state.
23026         * tree-inline.h (enum copy_body_cge_which): Break out of
23027         copy_body_data.
23028         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
23030         * c-decl.c (in_struct, struct_types): New static variables.
23031         (pushtag): Add loc parameter.  Change all callers.
23032         (lookup_tag): Add ploc parameter.  Change all callers.
23033         (check_compound_literal_type): New function.
23034         (parser_xref_tag): Add loc parameter.  Change all callers.  If
23035         -Wc++-compat, warn about struct/union/enum types defined within a
23036         struct or union.
23037         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
23038         and loc parameters.  Change all callers.  Change error calls to
23039         error_at, using loc.  For a redefinition, if the location of the
23040         original definition is known, report it.  Set in_struct and
23041         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
23042         (finish_struct): Add new parameters enclosing_in_struct and
23043         enclosing_struct_types.  Change all callers.  Set
23044         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
23045         in the struct.  If in a struct, add this struct to struct_types.
23046         (start_enum): Add loc parameter.  Change all callers.  Use
23047         error_at for errors, using loc.  For a redefinition, if the
23048         location of the original definition is known, report it.  If in a
23049         struct, add this enum type to struct_types.  If -Wc++-compat warn
23050         if in sizeof, typeof, or alignof.
23051         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
23052         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
23053         (c_parser_enum_specifier): Get enum location for start_enum.
23054         (c_parser_struct_or_union_specifier): Get struct location for
23055         start_struct.  Save in_struct and struct_types status between
23056         start_struct and finish_struct.
23057         (c_parser_cast_expression): Get location of cast.
23058         (c_parser_alignof_expression): Get location of type.
23059         (c_parser_postfix_expression): Likewise.
23060         (c_parser_postfix_expression_after_paren_type): Add type_loc
23061         parameter.  Change all callers.  Call check_compound_literal_type.
23062         Use type_loc for error about variable size type.
23063         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
23064         of an enum constant from an enum type defined in a struct or union.
23065         (c_cast_expr): Add loc parameter.  Change all callers.  If
23066         -Wc++-compat, warn about defining a type in a cast.
23067         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
23068         (start_enum, start_struct, finish_struct): Update declarations.
23069         (parser_xref_tag, c_cast_expr): Update declarations.
23070         (check_compound_literal_type): Declare.
23072 2009-05-11  Ben Elliston  <bje@au.ibm.com>
23074         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
23075         for recent libcpp interface change.
23076         (rs6000_macro_to_expand): Likewise.
23078 2009-05-10  Michael Matz  <matz@suse.de>
23080         PR target/40031
23081         * config/arm/arm.c (require_pic_register): Emit on entry edge,
23082         not at entry of function.
23084 2009-05-10  Richard Guenther  <rguenther@suse.de>
23086         PR tree-optimization/40081
23087         Revert
23088         * tree-sra.c (instantiate_element): Instantiate scalar replacements
23089         using the main variant of the element type.  Do not fiddle with
23090         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23092         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
23093         structs with volatile fields.
23095 2009-05-10  Jan Hubicka  <jh@suse.cz>
23097         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
23098         (estimate_move_cost): Assert that it does not get called for
23099         VOID_TYPE_P.
23100         (estimate_num_insns): Skip VOID types in argument handling.
23101         (optimize_inline_calls): Delete unreachable blocks and verify that
23102         callgraph is valid.
23104 2009-05-10  Jan Hubicka  <jh@suse.cz>
23106         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
23107         * cgraph.c (cgraph_mark_address_taken_node): New function.
23108         (dump_cgraph_node): Dump new flag.
23109         * cgraph.h (struct cgraph_node): Add address_taken.
23110         (cgraph_mark_address_taken_node): New function.
23111         * ipa.c (cgraph_postorder): Prioritize functions with address taken
23112         since new direct calls can be born.
23114 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23116         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
23117         tok->val.node.node.
23119 2009-05-10  Jan Hubicka  <jh@suse.cz>
23121         PR middle-end/40084
23122         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
23123         argument; rewrite.
23124         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
23125         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
23126         * tree-inline.c (copy_bb): Set frequency correctly.
23127         (fold_marked_statements): Update call to
23128         cgraph_update_edges_for_call_stmt.
23130 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23132         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
23133         identifiers in diagnostics.
23134         * config/arm/arm.c (arm_handle_fndecl_attribute,
23135         arm_handle_isr_attribute): Likewise.
23136         * config/avr/avr.c (avr_handle_progmem_attribute,
23137         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
23138         * config/bfin/bfin.c (handle_int_attribute,
23139         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
23140         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
23141         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
23142         Likewise.
23143         * config/darwin.c (darwin_handle_kext_attribute,
23144         darwin_handle_weak_import_attribute): Likewise.
23145         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
23146         h8300_handle_eightbit_data_attribute,
23147         h8300_handle_tiny_data_attribute): Likewise.
23148         * config/i386/i386.c (ix86_handle_cconv_attribute,
23149         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
23150         * config/i386/winnt.c (ix86_handle_shared_attribute,
23151         ix86_handle_selectany_attribute): Likewise.
23152         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
23153         * config/m32c/m32c.c (function_vector_handler): Likewise.
23154         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
23155         m68hc11_handle_fntype_attribute): Likewise.
23156         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
23157         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
23158         * config/mips/mips.c (mips_insert_attributes,
23159         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
23160         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
23161         rs6000_handle_struct_attribute): Likewise.
23162         * config/sh/sh.c (sh_insert_attributes,
23163         sh_handle_resbank_handler_attribute,
23164         sh_handle_interrupt_handler_attribute,
23165         sh2a_handle_function_vector_handler_attribute,
23166         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
23167         Likewise.
23168         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
23169         * config/spu/spu.c (spu_handle_fndecl_attribute,
23170         spu_handle_vector_attribute): Likewise.
23171         * config/stormy16/stormy16.c
23172         (xstormy16_handle_interrupt_attribute): Likewise.
23173         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
23174         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
23176 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
23178         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
23179         (pp_translate_identifiers): New.
23180         (pp_identifier): Only conditionally translate identifier to locale
23181         character set.
23182         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
23183         (pp_base_tree_identifier): Only conditionally translate identifier
23184         to locale character set.
23185         * c-pretty-print.c (M_): Define.
23186         (pp_c_type_specifier, pp_c_primary_expression): Mark English
23187         fragments for conditional translation with M_.
23188         * tree-pretty-print.c (maybe_init_pretty_print): Disable
23189         identifier translation.
23191 2009-05-10  Richard Guenther  <rguenther@suse.de>
23193         PR tree-optimization/40081
23194         * tree-sra.c (instantiate_element): Instantiate scalar replacements
23195         using the main variant of the element type.  Do not fiddle with
23196         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
23198 2009-05-09  Jan Hubicka  <jh@suse.cz>
23200         PR middle-end/40080
23201         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
23202         indirect calls; verify cgraph afterwards.
23204 2009-05-09  Jan Hubicka  <jh@suse.cz>
23206         PR bootstrap/40082
23207         * ipa.c (update_inlined_to_pointer): New function.
23208         (cgraph_remove_unreachable_nodes): Use it.
23210 2009-05-09  Jan Hubicka  <jh@suse.cz>
23212         * tree-eh.c (struct leh_state): Remove prev_try.
23213         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
23214         not track prev_try.
23215         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
23216         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
23217         remove_eh_handler_and_replace, foreach_reachable_handler,
23218         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
23219         * except.h (struct eh_region): Remove eh_region_u_cleanup.
23220         (gen_eh_region_cleanup): Update prototype.
23222 2009-05-09  Jan Hubicka  <jh@suse.cz>
23224         PR middle-end/40043
23225         * except.c (copy_eh_region): Always set prev_try.
23226         (redirect_eh_edge_to_label): Find outer try.
23227         (foreach_reachable_handler): When looking for prev try
23228         handle case where previous try is not going to be taken.
23230 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
23232         PR tree-optimization/40049
23233         * tree-vect-stmts.c (vectorizable_operation): If the machine has
23234         only vector/vector shifts, convert the type of the constant to the
23235         appropriate type to avoid building incorrect trees, which
23236         eventually have problems with garbage collection.
23238 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23240         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
23241         -1 for complex floating-point types if honoring signed zeros.
23243 2009-05-08  Jan Hubicka  <jh@suse.cz>
23245         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
23246         argument; handle correctly when profile is absent.
23247         (build_cgraph_edges): Update.
23248         (rebuild_cgraph_edges): Update.
23249         * cgraph.c: Do not include varray.h.
23250         (cgraph_set_call_stmt_including_clones): New function.
23251         (cgraph_create_edge_including_clones): Likewise
23252         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
23253         (cgraph_update_edges_for_call_stmt): Handle clones.
23254         (cgraph_remove_node): Handle clone tree.
23255         (cgraph_remove_node_and_inline_clones): New function.
23256         (dump_cgraph_node): Dump clone tree.
23257         (cgraph_clone_node): Handle clone tree.
23258         (clone_function_name): Bring here from tree-inline.c.
23259         (cgraph_create_virtual_clone): New function.
23260         * cgraph.h (ipa_replace_map): Move here from ipa.h.
23261         (cgraph_clone_info): New function.
23262         (strut cgraph_node): Add clone_info and new clone tree pointers.
23263         (cgraph_remove_node_and_inline_clones,
23264         cgraph_set_call_stmt_including_clones,
23265         cgraph_create_edge_including_clones,
23266         cgraph_create_virtual_clone): Declare.
23267         (cgraph_function_versioning): Use VEC argument.
23268         (compute_call_stmt_bb_frequency): Update prototype.
23269         (cgraph_materialize_all_clones): New function.
23270         * ipa-cp.c (ipcp_update_cloned_node): Remove.
23271         (ipcp_create_replace_map): Update to VECtors.
23272         (ipcp_update_callgraph): Use virtual clones.
23273         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
23274         (ipcp_update_profiling): Do not update local profiling.
23275         (ipcp_insert_stage): Use VECtors and virtual clones.
23276         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
23277         (clone_of_p): New function.
23278         (cgraph_preserve_function_body_p): Use clone tree.
23279         (cgraph_optimize): Materialize clones.
23280         (cgraph_function_versioning): Update for VECtors.
23281         (save_inline_function_body): Use clone tree.
23282         (cgraph_materialize_clone): New function.
23283         (cgraph_materialize_all_clones): Likewise.
23284         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
23285         * ipa.c: Include gimple.h.
23286         (cgraph_remove_unreachable_nodes): Use clone tree.
23287         * ipa-prop.c (ipa_note_param_call): Update call to
23288         compute_call_stmt_bb_frequencycall.
23289         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
23290         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
23291         (copy_bb): Handle updating of clone tree; add new edge when new call
23292         appears.
23293         (expand_call_inline): Be strict about every call having edge.
23294         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
23295         (delete_unreachable_blocks_update_callgraph): New function.
23296         (tree_function_versioning): Use VECtors; always remove unreachable
23297         blocks and fold conditionals.
23298         * tree-inline.h: Do not include varray.h.
23299         (tree_function_versioning): Remove.
23300         * Makefile.in (GTFILES): Remove tree-inline.c
23301         * passes.c (do_per_function): Do only functions having body.
23302         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
23303         tree.
23305 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23306             Andrew Morrow  <acm@google.com>
23308         PR c/36892
23309         * c-common.c (c_common_attribute_table): Permit deprecated
23310         attribute to take an optional argument.
23311         (handle_deprecated_attribute): If the optional argument to
23312         __attribute__((deprecated)) is not a string ignore the attribute
23313         and emit a warning.
23315         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
23316         * c-typeck.c (build_component_ref): Likewise.
23317         (build_external_ref): Likewise.
23319         * toplev.c (warn_deprecated_use): Add an attribute argument.
23320         Emit the message associated with __attribute__((deprecated)).
23322         * toplev.h (warn_deprecated_use): Updated.
23324         * doc/extend.texi: Document new optional parameter to
23325         __attribute__((deprecated))
23327 2009-05-08  Michael Eager <eager@eagercon.com>
23329         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
23330         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
23332 2009-05-08  Richard Guenther  <rguenther@suse.de>
23334         PR tree-optimization/40062
23335         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
23336         Avoid exponential behavior.
23338 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23340         PR rtl-optimization/33928
23341         PR 26854
23342         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
23343         process_uses, build_single_def_use_links): New.
23344         (update_df): Update use_def_ref.
23345         (forward_propagate_into): Use get_def_for_use instead of use-def
23346         chains.
23347         (fwprop_init): Call build_single_def_use_links and let it initialize
23348         dataflow.
23349         (fwprop_done): Free use_def_ref.
23350         (fwprop_addr): Eliminate duplicate call to df_set_flags.
23351         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
23352         df_rd_simulate_one_insn): New.
23353         (df_rd_bb_local_compute_process_def): Update head comment.
23354         (df_chain_create_bb): Use the new RD simulation functions.
23355         * df.h (df_rd_simulate_artificial_defs_at_top,
23356         df_rd_simulate_one_insn): New.
23357         * opts.c (decode_options): Enable fwprop at -O1.
23358         * doc/invoke.texi (-fforward-propagate): Document this.
23360 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
23362         PR c/24581
23363         * c-typeck.c (build_binary_op): Handle arithmetic between one real
23364         and one complex operand specially.
23365         * tree-complex.c (some_nonzerop): Do not identify a real value as
23366         zero if flag_signed_zeros.
23368 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23370         PR rtl-optimization/33928
23371         * loop-invariant.c (record_use): Fix && vs. || mishap.
23373 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
23375         PR rtl-optimization/33928
23376         * loop-invariant.c (struct use): Add addr_use_p.
23377         (struct def): Add n_addr_uses.
23378         (struct invariant): Add cheap_address.
23379         (create_new_invariant): Set cheap_address.
23380         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
23381         (record_uses): Pass df_ref to record_use.
23382         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
23383         used only as such.
23385 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23387         * config/sh/sh.c: Do not include c-pragma.h.
23389 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23391         * config/spu/spu.c: Remove include of c-common.h.
23393 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
23395         PR c/39037
23396         * c-common.h (mark_valid_location_for_stdc_pragma,
23397         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
23398         clear_float_const_decimal64, float_const_decimal64_p): New.
23399         * c.opt (Wunsuffixed-float-constants): New.
23400         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
23401         unsuffixed float constant, handle new warning.
23402         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
23403         * c-decl.c (c_scope): New flag float_const_decimal64.
23404         (set_float_const_decimal64, clear_float_const_decimal64,
23405         float_const_decimal64_p): New.
23406         (push_scope): Set new flag.
23407         * c-parser.c (c_parser_translation_unit): Mark when it's valid
23408         to use STDC pragmas.
23409         (c_parser_external_declaration): Ditto.
23410         (c_parser_compound_statement_nostart): Ditto.
23411         * c-pragma.c (valid_location_for_stdc_pragma,
23412         mark_valid_location_for_stdc_pragma,
23413         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
23414         handle_pragma_float_const_decimal64): New.
23415         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
23416         * cp/semantics.c (valid_location_for_stdc_pragma_p,
23417         set_float_const_decimal64, clear_float_const_decimal64,
23418         float_const_decimal64_p): New dummy functions.
23419         * doc/extend.texi (Decimal Float): Remove statement that the
23420         pragma, and suffix for double constants, are not supported.
23421         * doc/invoke.texi (Warning Options): List new option.
23422         (-Wunsuffixed-float-constants): New.
23424 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
23426         * config/i386/i386.c: Do not include c-common.h.
23428 2009-05-07  Mark Heffernan  <meheff@google.com>
23430         * doc/invoke.texi (Debugging Options): Document change of debugging
23431         dump location.
23432         * opts.c (decode_options): Make dump_base_name relative to
23433         aux_base_name directory.
23435 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
23437         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
23438         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
23440 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
23442         * Makefile.in (install-plugin): Simplify a bit.
23444 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
23446         * Makefile.in (OBJS-common): Add regcprop.o.
23447         (regcprop.o): New.
23448         * timevar.def (TV_CPROP_REGISTERS): New.
23449         * regrename.c (regrename_optimize): Return 0.
23450         (rest_of_handle_regrename): Delete.
23451         (pass_rename_registers): Point to regrename_optimize.
23452         (struct value_data_entry, struct value_data,
23453         kill_value_one_regno, kill_value_regno, kill_value,
23454         set_value_regno, init_value_data, kill_clobbered_value,
23455         kill_set_value, kill_autoinc_value, copy_value,
23456         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
23457         replace_oldest_value_reg, replace_oldest_value_addr,
23458         replace_oldest_value_mem, copyprop_hardreg_forward_1,
23459         debug_value_data, validate_value_data): Move...
23460         * regcprop.c: ... here.
23461         (rest_of_handle_cprop): Delete.
23462         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
23464 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
23466         PR middle-end/40057
23467         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
23468         GEN_INT for 1 << bitnum.
23469         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
23470         build_int_cst_type.
23472 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
23474         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
23475         Remove wrong description of "nand" operation.
23477 2009-05-06  Richard Guenther  <rguenther@suse.de>
23478             Adam Nemet  <anemet@caviumnetworks.com>
23480         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
23481         comment.  Add that if LHS is not a gimple register, then RHS1 has
23482         to be a single object (GIMPLE_SINGLE_RHS).
23484 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
23486         * expr.c (get_def_for_expr): Move it up in the file.
23487         (store_field): When expanding a bit-field store, look at the
23488         defining gimple stmt for the masking conversion.
23490 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
23492         PR middle-end/39986
23493         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
23494         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
23495         32-bit memcpy into long.
23497 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
23499         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
23500         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
23501         new_reg_loc_descr.
23502         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
23503         instead of appending DW_OP_deref*.
23505 2009-05-06  Michael Matz  <matz@suse.de>
23507         PR middle-end/40021
23508         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
23509         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
23511 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
23513         * Makefile.in (install-plugin): Fix srcdir handling.
23515 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
23517         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
23518         when processing for not_regs_needed bitmap.
23519         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
23520         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
23521         handling it for rhs.
23523 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23525         * config/i386/i386.md (unnamed inc/dec peephole): Use
23526         optimize_insn_for_size_p instead of optimize_size.
23527         * config/i386/predicates.md (incdec_operand): Likewise.
23528         (aligned_operand): Likewise.
23529         * config/i386/sse.md (divv8sf3): Likewise.
23530         (sqrtv8sf2): Likewise.
23532 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23534         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
23536         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
23538 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23540         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
23541         ssemodesuffixf2c with avxmodesuffixf2c.
23543 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
23545         PR c/40032
23546         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
23548 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
23550         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
23551         (struct tree_base): Adjust spacing for 8 bit boundaries.
23552         (struct tree_decl_common): Add decl_by_reference_flag bit.
23553         (DECL_BY_REFERENCE): Adjust.
23554         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
23555         print DECL_BY_REFERENCE bit.
23556         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
23557         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
23558         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
23559         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
23560         unconditionally.
23562         PR middle-end/39666
23563         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
23564         range of the type, but default label is missing, add it with one
23565         of the existing labels instead of adding a new label for it.
23567 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
23569         * dwarf.h: Remove.
23571 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
23573         * Makefile.in (enable_plugin, plugin_includedir): New.
23574         (install): Depend on install-plugin.
23575         (PLUGIN_HEADERS): New.
23576         (install-plugin): New.
23577         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
23579 2009-05-05  Richard Guenther  <rguenther@suse.de>
23581         PR tree-optimization/40022
23582         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
23583         the only vuse.
23584         (phivn_valid_p): Fix tuplification error, simplify.
23585         (phiprop_insert_phi): Add dumps.
23586         (propagate_with_phi): Simplify.
23588 2009-05-05  Richard Guenther  <rguenther@suse.de>
23590         PR middle-end/40023
23591         * builtins.c (gimplify_va_arg_expr): Properly build the address.
23593 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
23595         * tree.h (strip_float_extensions): Remove duplicate declaration.
23596         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
23597         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
23598         block_ultimate_origin): Rearrange the declarations line to match the
23599         comment that indicates the .c file which the functions are defined.
23600         (dwarf2out_*, set_decl_rtl): Add comment.
23601         (get_base_address): Adjust comment.
23602         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
23603         declarations line and add comment.
23604         (is_builtin_name): Add blank after function name, for clarity.
23606 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23608         * attribs.c (decl_attributes): Use %qE for identifiers in
23609         diagnostics.
23610         * cgraphunit.c (verify_cgraph_node): Translate function names to
23611         locale character set in diagnostics.
23612         * coverage.c (get_coverage_counts): Use %qE for identifiers in
23613         diagnostics.
23614         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
23615         Document that functions are named in UTF-8.
23616         * expr.c (expand_expr_real_1): Translate function names to locale
23617         character set in diagnostics.
23618         * gimplify.c (omp_notice_variable, omp_is_private,
23619         gimplify_scan_omp_clauses): Use %qE for identifiers in
23620         diagnostics.
23621         * langhooks.c (lhd_print_error_function): Translate function names
23622         to locale character set.
23623         * langhooks.h (decl_printable_name): Document that return value is
23624         in internal character set.
23625         * stmt.c: Include pretty-print.h
23626         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
23627         diagnostics.
23628         (resolve_operand_name_1): Translate named operand name to locale
23629         character set.
23630         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
23631         diagnostics.
23632         * toplev.c (announce_function): Translate function names to locale
23633         character set.
23634         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
23635         (default_tree_printer): Use pp_identifier or translate identifiers
23636         to locale character set.  Mark "<anonymous>" for translation.
23637         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
23638         for identifiers in diagnostics.
23639         * tree.c (handle_dll_attribute): Use %qE for identifiers in
23640         diagnostics.
23641         * varasm.c (output_constructor): Use %qE for identifiers in
23642         diagnostics.
23644 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
23646         * configure.ac: use ` ` instead of $()
23647         * configure: Regenerate.
23649 2009-05-05  Ben Elliston  <bje@au.ibm.com>
23651         * config/pa/linux-atomic.c: Eliminate conditional include of
23652         errno.h on non-LP64 systems to simplify build requirements.
23654 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23656         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
23657         diagnostics.
23658         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
23659         and pass value to identifier_to_locale.
23660         (warn_variable_length_array): Make name a tree.
23661         (grokdeclarator): Separate diagnostic texts for named and unnamed
23662         declarators.  Use %qE for named declarators.
23663         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
23664         diagnostics.
23665         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
23666         identifiers in diagnostics.
23667         * c-typeck.c (push_member_name, start_init): Pass identifiers to
23668         identifier_to_locale.  Mark "anonymous" strings for translation.
23670 2009-05-04  Michael Eager <eager@eagercon.com>
23672         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
23673         address for DImode/DFmode only if double-precision FP regs.
23675 2009-05-04  Michael Eager <eager@eagercon.com>
23677         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
23678         TARGET_SINGLE_FLOAT check.
23680 2009-05-04  Michael Eager <eager@eagercon.com>
23682         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
23684 2009-05-04  Michael Eager <eager@eagercon.com>
23686         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
23687         * config/rs6000/t-xilinx: New
23689 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
23691         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
23692         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
23693         * gcc/explow.c (memory_address): Use target hook.
23694         * gcc/targhooks.c (default_legitimize_address): New.
23695         * gcc/targhooks.h (default_legitimize_address): New.
23696         * gcc/target.h (legitimize_address): New.
23697         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
23698         (TARGET_INITIALIZER): Include it.
23699         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
23701         * config/bfin/bfin-protos.h (legitimize_address): Remove.
23702         * config/bfin/bfin.c (legitimize_address): Remove.
23703         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
23704         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
23705         Remove.
23706         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
23707         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
23709         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
23710         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
23711         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
23712         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
23713         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
23714         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
23715         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
23716         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
23717         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
23718         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
23719         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
23720         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
23721         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
23722         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
23723         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
23724         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
23725         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
23726         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
23727         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
23728         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
23729         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
23730         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
23731         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
23733         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
23734         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
23735         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
23736         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
23737         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
23738         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
23739         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
23740         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
23741         (thumb_legitimize_address): Delete.
23742         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
23743         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
23744         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
23745         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
23746         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
23747         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
23748         Delete.
23749         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
23750         Delete.
23752         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
23753         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
23754         * config/m32r/m32r.c (m32r_legitimize_address): New.
23755         * config/m68k/m68k.c (m68k_legitimize_address): New.
23756         * config/score/score.c (score_legitimize_address): Standardize.
23757         * config/score/score3.c (score3_legitimize_address): Standardize.
23758         * config/score/score3.h (score3_legitimize_address): Adjust.
23759         * config/score/score7.c (score7_legitimize_address): Standardize.
23760         * config/score/score7.h (score7_legitimize_address): Adjust.
23761         * config/sh/sh.c (sh_legitimize_address): New.
23762         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
23764         * gcc/config/s390/s390.c (legitimize_address): Rename to...
23765         (s390_legitimize_address): ... this.
23766         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
23767         (sparc_legitimize_address): ... this.
23768         * gcc/config/i386/i386.c (legitimize_address): Rename to...
23769         (ix86_legitimize_address): ... this.
23770         * gcc/config/avr/avr.c (legitimize_address): Rename to...
23771         (avr_legitimize_address): ... this.
23772         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
23773         (mn10300_legitimize_address): ... this.
23774         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
23775         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
23776         (alpha_expand_mov): Adjust call.
23778         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
23779         * config/spu/spu.c (spu_legitimize_address): Likewise.
23780         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
23781         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
23783 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
23785         * intl.c (locale_encoding, locale_utf8): New.
23786         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
23787         * intl.h (locale_encoding, locale_utf8): Declare.
23788         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
23789         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
23790         New.
23791         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
23792         argument.
23793         (pp_tree_identifier): Define to call pp_base_tree_identifier.
23794         (pp_base_tree_identifier): Declare as function.
23795         (identifier_to_locale): Declare.
23796         * Makefile.in (pretty-print.o): Update dependencies.
23797         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
23799 2009-05-04  Richard Guenther  <rguenther@suse.de>
23801         PR middle-end/40015
23802         * builtins.c (fold_builtin_memory_op): Do not decay to element
23803         type if the size matches the whole array.
23805 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23807         * expmed.c (synth_mult): When trying out a shift, pass the result
23808         of a signed shift.
23810 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
23812         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
23813         (shiftsub1_cost): New.
23814         (init_expmed): Compute shiftsub1_cost.
23815         (synth_mult): Optimize multiplications by constants of the form
23816         -(2^^m-1) for some constant positive integer m.
23818 2009-05-03  Richard Guenther  <rguenther@suse.de>
23820         PR c/39983
23821         * c-typeck.c (array_to_pointer_conversion): Do not built
23822         ADDR_EXPRs of arrays of pointer-to-element type.
23823         * c-gimplify.c (c_gimplify_expr): Revert change fixing
23824         up wrong ADDR_EXPRs after-the-fact.
23825         * c-common.c (strict_aliasing_warning): Strip pointer
23826         conversions for obtaining the original type.
23827         * builtins.c (fold_builtin_memset): Handle array types.
23828         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
23829         and array types
23831 2009-05-03  Richard Guenther  <rguenther@suse.de>
23833         PR middle-end/23329
23834         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
23835         Do not lose casts from array types with unknown extent to array
23836         types with known extent.
23837         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
23838         alias set compatibility.
23840 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23842         * flags.h (extra_warnings): Delete.
23843         * toplev.c (process_options): Handle Wuninitialized here.
23844         * opts.c (extra_warnings): Delete.
23845         (set_Wextra): Delete.
23846         (common_handle_option): -Wextra can be handled automatically.
23847         * c-opts.c (c_common_handle_option): Delete obsolete code.
23848         (c_common_post_options): Simplify comment.
23849         * common.opt (W): Add Var.
23850         (Wextra): Add Var.
23851         (Wuninitialized): Initialize to -1.
23853 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
23854             Richard Guenther  <rguenther@suse.de>
23856         * expr.c (get_def_for_expr): New function.
23857         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
23858         SSA rather than trees.
23859         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
23860         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
23862 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
23864         * c-common.c (reswords): Add _Imaginary.
23865         * c-common.c (enum rid): Add RID_IMAGINARY.
23867 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
23869         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
23870         Patch by Richard Guenther.
23872 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
23874         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
23875         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
23876         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
23877         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
23878         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
23879         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
23880         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
23881         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
23882         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
23883         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
23884         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
23885         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
23886         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
23887         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
23888         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
23889         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
23890         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
23891         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
23893 2009-05-02  Richard Guenther  <rguenther@suse.de>
23895         PR tree-optimization/39940
23896         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
23897         doing so.
23899 2009-05-02  Richard Guenther  <rguenther@suse.de>
23901         PR middle-end/40001
23902         * tree-ssa.c (execute_update_addresses_taken): Properly check
23903         if we can mark a variable DECL_GIMPLE_REG_P.
23904         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
23905         back to the end of the function.
23906         (is_gimple_reg_type): Remove complex type special casing.
23907         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
23908         if not optimizing.
23910 2009-05-02  Ben Elliston  <bje@au.ibm.com>
23912         * doc/collect2.texi (Collect2): Document search path behaviour
23913         when configured with --with-ld.
23915 2009-05-02  Jan Hubicka  <jh@suse.cz>
23917         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
23918         parameter; update callers.
23919         (coalesce_cost_edge): EH edges are costier because they needs
23920         splitting even if not critical and even more costier when there are
23921         multiple EH predecestors.
23923 2009-05-02  Jan Hubicka  <jh@suse.cz>
23925         * except.c (remove_eh_handler_and_replace): Handle updating after
23926         removing TRY blocks.
23928 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
23930         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
23932 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
23934         * varasm.c: Do not include c-pragma.h.
23935         * attribs.c: Do not incude c-common.h.
23937 2009-05-01  Michael Matz  <matz@suse.de>
23939         * calls.c (initialize_argument_information): Handle SSA names like
23940         decls with a non MEM_P DECL_RTL.
23942 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23944         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
23945         * ipa-utils.c: Likewise.
23946         * ipa-type-escape.c: Likewise.
23947         * cgraphunit.c Do not include c-common.h.
23948         * ipa-pure-const.c: Likewise.
23949         * tree-if-conv.c: Likewise.
23950         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
23951         * ipa-struct-reorg.c: Likewise.
23952         * tree-nomudflap.c: Likewise.
23953         * tree-ssa-structalias.c: Likewise.
23955 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
23957         * store-motion.c: Many cleanups to make this pass a first-class
23958         citizen instead of an appendix to gcse load motion.  Add TODO list
23959         to make this pass faster/cleaner/better.
23961         (struct ls_expr): Post gcse.c-split cleanups.
23962         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
23963         "stores" field to "avail_stores".
23964         (pre_ldst_mems): Rename to store_motion_mems.
23965         (pre_ldst_table): Rename to store_motion_mems_table.
23966         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
23967         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
23968         (ldst_entry): Rename to st_expr_entry, update users.
23969         (free_ldst_entry): Rename to free_st_expr_entry, update users.
23970         (free_ldst_mems): Rename to free_store_motion_mems, update users.
23971         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
23972         update caller.
23973         (first_ls_expr): Rename to first_st_expr, update users.
23974         (next_ls_expr): Rename to next_st_expr, update users.
23975         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
23976         fields properly for store motion instead of names inherited from load
23977         motion in gcse.c.
23978         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
23979         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
23980         are done with it.
23982         (ae_kill): Rename to st_kill, update users.
23983         (ae_gen): Rename to st_avloc, update users.
23984         (transp): Rename to st_transp, update users.
23985         (pre_insert_map): Rename to st_insert_map, update users.
23986         (pre_delete_map): Rename to st_delete_map, update users.
23987         (insert_store, build_store_vectors, free_store_memory,
23988         one_store_motion_pass): Update for abovementioned changes.
23990         (gcse_subst_count, gcse_create_count): Remove.
23991         (one_store_motion_pass): New statistics counters "n_stores_deleted"
23992         and "n_stores_created", local variables.
23994         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
23995         use for_each_rtx.
23997         (regvec, compute_store_table_current_insn): Remove.
23998         (reg_set_info, reg_clear_last_set): Remove.
23999         (compute_store_table): Use DF caches instead of local dataflow
24000         solvers.
24002 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
24004         * c-objc-common.c (c_tree_printer): Print identifiers with
24005         pp_identifier, not pp_string.  Mark "({anonymous})" for
24006         translation.
24007         * c-pretty-print.c (pp_c_ws_string): New.
24008         (pp_c_cv_qualifier, pp_c_type_specifier,
24009         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
24010         pp_c_storage_class_specifier, pp_c_function_specifier,
24011         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
24012         pp_c_primary_expression, pp_c_postfix_expression,
24013         pp_c_unary_expression, pp_c_shift_expression,
24014         pp_c_relational_expression, pp_c_equality_expression,
24015         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
24016         use pp_string and pp_c_ws_string in place of pp_identifier and
24017         pp_c_identifier for non-identifiers.  Mark English strings for
24018         translation.
24019         * c-pretty-print.h (pp_c_ws_string): Declare.
24021 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
24022             Roland McGrath <roland@redhat.com>
24024         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
24025         (ENABLE_LD_BUILDID): New configuration option.
24026         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
24027         (LINK_BUILDID_SPEC): New macro.
24028         (init_spec): If defined, prepend it between LINK_EH_SPEC and
24029         link_spec.
24030         * doc/install.texi: Document --enable-linker-build-id option.
24031         * configure: Rebuild.
24032         * config.in: Rebuild.
24034 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
24036         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
24037         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
24038         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
24039         MIPS_GP_SAVE_AREA_SIZE.
24040         * config/mips/mips.c (struct mips_frame_info): Update comment
24041         before arg_pointer_offset and hard_frame_pointer_offset.
24042         (mips_compute_frame_info): Update diagram before function: to
24043         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
24044         indicate the position of frame_pointer_rtx with -fstack-protector and
24045         to show args_size.  Don't allocate cprestore area for leaf functions
24046         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
24047         cprestore_size.
24048         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
24050 2009-04-30  Michael Matz  <matz@suse.de>
24052         PR tree-optimization/39955
24053         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
24055 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
24057         * ira.c (setup_cover_and_important_classes):  Use safe macro
24058         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
24059         directly.
24060         * genpreds.c (write_tm_preds_h):  Output suitable definition of
24061         REG_CLASS_FOR_CONSTRAINT.
24063 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
24065         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
24066         instead of an int.
24067         * bitmap.c (bitmap_descriptor): Likewise.
24068         * ggc-common.c (loc_descriptor): Likewise.
24069         * varray.c (varray_descriptor): Likewise.
24070         * vec.c (vec_descriptor): Likewise.
24072 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
24074         * Makefile.in (dce.o): Add $(EXCEPT_H).
24075         * dce.c: Include except.h and delete redundant vector definitions.
24076         (deletable_insn_p): Return false for non-call insns that can throw
24077         if DF is running.
24079 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
24081         * gcse.c (ae_gen): Remove.
24082         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
24083         and make non-static function to make it available in store-motion.c.
24084         Update call sites with search-and-replace.
24085         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
24086         extract_mentioned_regs, extract_mentioned_regs_helper,
24087         find_moveable_store, compute_store_table, load_kills_store, find_loads,
24088         store_killed_in_insn, store_killed_after, store_killed_before,
24089         build_store_vectors, insert_insn_start_basic_block, insert-store,
24090         remove_reachable_equiv_notes, replace_store_insn, delete_store,
24091         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
24092         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
24093         * store-motion.c: ...new file.  Also copy data structures from gcse.c
24094         and clean up to remove parts not used by store motion.
24095         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
24096         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
24098 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24100         PR target/38571
24101         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
24102         when optimizing for size.
24104 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
24106         * gcse.c (gcse_constant_p): Fix typo in last change.
24108 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
24110         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
24112 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
24114         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
24116 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
24118         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
24119         CONST_HIGH_PART result.
24121 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
24123         * config/avr/avr.c (initial_elimination_offset): Rename to
24124         avr_initial_elimination_offset.
24125         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
24126         change return type to bool.
24127         (avr_can_eliminate): New function.
24128         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
24129         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
24130         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
24131         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
24132         avr_initial_elimination_offset.
24133         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
24134         (avr_initial_elimination_offset): Define.
24136 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
24137             Steven Bosscher  <steven@gcc.gnu.org>
24139         PR rtl-optimization/39938
24140         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
24141         * cfgrtl.c: Include insn-attr.h.
24142         (rest_of_pass_free_cfg): New function.
24143         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
24144         * resource.c (init_resource_info): Remove call to df_analyze.
24146 2009-04-29  Richard Guenther  <rguenther@suse.de>
24148         PR target/39943
24149         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
24150         allow conversion to signed integers.
24152 2009-04-29  Richard Guenther  <rguenther@suse.de>
24154         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
24155         shifts of floating point vectors if the shift amount is
24156         a constant multiple of the element size.
24158 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
24159             Michael Matz  <matz@suse.de>
24161         PR middle-end/39927
24162         PR bootstrap/39929
24163         * tree-outof-ssa.c (emit_partition_copy): New function.
24164         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
24165         insert_part_to_rtx_on_edge): Perform the partition base var
24166         copy using emit_partition_copy.
24167         (insert_value_copy_on_edge): Convert constants to the right mode.
24168         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
24169         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
24171 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24173         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
24174         scan backwards to try to find a constant to initialize it.
24176         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
24177         insn before the loop_end instruction, don't look past labels.
24179 2009-04-29  Richard Guenther  <rguenther@suse.de>
24181         PR middle-end/39937
24182         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
24183         loose type conversions.
24184         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
24185         stmts only if there are no uses of its definition.
24187 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24189         * config/bfin/bfin.h (splitting_loops): Declare.
24190         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
24191         Reorder bit definitions to be ascending.
24192         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
24193         * config/bfin/bfin.c (splitting_loops): New variable.
24194         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
24195         (struct loop_info): Remove members INIT and LOOP_INIT.
24196         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
24197         the LSETUP sequence.  Allow LC to be loaded from any register, but
24198         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
24199         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
24200         set to 1.
24201         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
24202         of reload_completed.
24204         From Jie Zhang:
24205         * config/bfin/bfin.md (movsi_insn): Refine constraints.
24207 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
24209         * Makefile.in (PLUGIN_VERSION_H): New.
24210         (OBJS-common): Remove plugin-version.o.
24211         (plugin.o): Depend on (PLUGIN_VERSION_H).
24212         (plugin-version.o): Remove.
24213         * configure: Regenerate
24214         * configure.ac: Create plugin-version.h.
24215         * gcc-plugin.h (plugin_gcc_version): Remove.
24216         (plugin_default_version_check): Change signature.
24217         * plugin-version.c: Remove.
24218         * plugin.c: Include plugin-version.h.
24219         (str_plugin_gcc_version_name): Remove.
24220         (try_init_one_plugin): Pass gcc version to plugin_init.
24221         (plugin_default_version_check): Both gcc and plugin versions are now
24222         arguments.
24224 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24226         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
24227         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
24228         Remove special case testing for last insn of inner loops. Don't fail
24229         if the loop ends with a jump, emit an extra nop instead.
24231         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
24232         DREGS rather than comparing directly.  Remove code that tries to
24233         account for latencies.
24235 2009-04-29  Richard Guenther  <rguenther@suse.de>
24237         PR tree-optimization/39941
24238         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
24239         eliminating an indirect call.
24241 2009-04-29  Richard Guenther  <rguenther@suse.de>
24243         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
24244         parameter.  Allow invariants as base if !require_lvalue.
24245         (verify_gimple_assign_single): Adjust.
24247 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
24249         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
24250         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
24251         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
24252         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
24253         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
24254         a VEC_SELECT.
24255         * config/bfin/bfin.c (bfin_expand_builtin,
24256         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
24258 2009-04-28  Richard Guenther  <rguenther@suse.de>
24260         * tree-vect-loop.c (get_initial_def_for_induction): Use
24261         correct types for pointer increment.
24263 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24265         * toplev.c (print_version): Update GMP version string calculation.
24267 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24269         PR rtl-optimization/39938
24270         * resource.c (init_resource_info): Add call to df_analyze.
24272 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24274         * config/alpha/alpha.md (usegp): Cast the result of
24275         alpha_find_lo_sum_using_gp to enum attr_usegp.
24276         * config/alpha/alpha.c (override_options): Remove end-of-structure
24277         marker element from cpu_table.  Use array size of cpu_table to handle
24278         -mcpu and -mtune options.
24279         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
24281 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
24283         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
24284         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
24285         tune_32 and tune_64.
24286         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
24287         support on PowerPC.
24288         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
24289         * config/rs6000/option-defaults.h: ... here.  New file.
24290         (OPT_64, OPT_32): Define.
24291         (MASK_64BIT): Define to 0 if not already defined.
24292         (OPT_ARCH64, OPT_ARCH32): Define.
24293         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
24294         and tune_64.
24296 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24298         * config/arm/arm.c (arm_override_options): Emit error on using
24299         fpa with AAPCS.
24301 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24303         PR rtl-optimization/39914
24304         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24305         registers for allocnos created from user-defined variables only
24306         when not optimizing.
24308 2009-04-28  Richard Guenther  <rguenther@suse.de>
24310         PR middle-end/39937
24311         * fold-const.c (fold_binary): Use distribute_real_division only
24312         on float types.
24314 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
24316         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
24317         add hpux-stdint.h to tm_file.
24318         (hppa[12]*-*-hpux11*): Ditto.
24319         (ia64*-*-hpux*): Ditto.
24320         * config/hpux-stdint.h: New.
24321         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
24322         __STDC_EXT__ for all compiles.
24323         * config/pa/pa-hpux.h: Ditto.
24324         * config/pa/pa-hpux10.h: Ditto.
24325         * config/pa/pa-hpux11.h: Ditto.
24327 2009-04-28  Catherine Moore  <clm@codesourcery.com>
24329         * debug.h (set_name): Add comment.
24331 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
24333         PR target/39929
24334         * config/darwin.c (machopic_gen_offset): Check
24335         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
24336         * config/arm/arm.c (require_pic_register): Likewise.
24338 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
24340         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
24341         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
24342         m32c_promote_prototypes): Delete.
24344 2009-04-28  Michael Matz  <matz@suse.de>
24346         PR middle-end/39922
24347         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
24348         constants.
24350 2009-04-28  Richard Guenther  <rguenther@suse.de>
24352         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
24354 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24356         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
24357         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
24358         * config/arm/arm-tune.md: Regenerate.
24360 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
24362         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
24363         block if there are complex incoming edges.
24364         (sel_merge_blocks): Remove useless assert.
24365         (sel_redirect_edge_and_branch): Check that edge was redirected.
24366         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
24367         (sel_find_rgns): Delete declaration.
24368         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
24369         the region when it is not a preheader.
24371 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24373         PR c/39323
24374         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
24376 2009-04-28  Richard Guenther  <rguenther@suse.de>
24378         * tree.h (SSA_NAME_VALUE): Remove.
24379         (struct tree_ssa_name): Remove value_handle member.
24380         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
24381         array for jump threading.
24382         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
24383         SSA_NAME_VALUEs.
24384         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
24385         * tree-flow.h (threadedge_initialize_values): Declare.
24386         (threadedge_finalize_values): Likewise.
24387         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
24388         (SSA_NAME_VALUE): Define.
24389         (threadedge_initialize_values): New function.
24390         (threadedge_finalize_values): Likewise.
24391         * tree-ssa-dom.c (ssa_name_values): New global variable.
24392         (SSA_NAME_VALUE): Define.
24393         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
24395 2009-04-28  Ira Rosen  <irar@il.ibm.com>
24397         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
24398         Use REPORT_VECTORIZED_LOCATIONS instead
24399         REPORT_VECTORIZED_LOOPS.
24400         * tree-vectorizer.c (vect_verbosity_level): Make static.
24401         (vect_loop_location): Rename to vect_location.
24402         (vect_set_verbosity_level): Update comment.
24403         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
24404         and vect_location.
24405         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
24406         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
24407         instead REPORT_UNVECTORIZED_LOOPS.
24408         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
24409         and vect_loop_def to vect_external_def and vect_internal_def.
24410         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
24411         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
24412         REPORT_UNVECTORIZED_LOCATIONS.
24413         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
24414         and vect_used_in_loop and to vect_unused_in_scope and
24415         vect_used_in_scope.
24416         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
24417         (vect_verbosity_level): Remove declaration.
24418         (vect_analyze_operations): Likewise.
24419         (vect_analyze_stmt): Declare.
24420         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
24421         REPORT_UNVECTORIZED_LOCATIONS.
24422         (vect_get_loop_niters): Fix indentation.
24423         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
24424         (vect_analyze_loop_operations): New function.
24425         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
24426         vect_analyze_operations.
24427         (vect_is_simple_reduction): Use new names.
24428         (vectorizable_live_operation, vect_transform_loop): Likewise.
24429         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
24430         to specify whether the data references can be a part of interleaving
24431         chain.
24432         (vect_analyze_data_ref_dependence): Use new names.
24433         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
24434         (vect_create_addr_base_for_vector_ref): Remove redundant code.
24435         * tree-vect-patterns.c (widened_name_p): Use new names.
24436         (vect_recog_dot_prod_pattern): Likewise.
24437         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
24438         (process_use, vect_mark_stmts_to_be_vectorized,
24439         vect_model_simple_cost, vect_model_store_cost,
24440         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
24441         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
24442         vectorizable_operation, vectorizable_type_demotion,
24443         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
24444         vectorizable_condition): Likewise.
24445         (vect_analyze_operations): Split into vect_analyze_loop_operations
24446         and ...
24447         (vect_analyze_stmt): ... new function.
24448         (new_stmt_vec_info): Use new names.
24449         (vect_is_simple_use): Use new names and fix comment.
24450         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
24451         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
24453 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
24455         PR target/39911
24456         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
24457         and integer modes for x87 operands.  Do not ICE for unsupported size,
24458         generate error instead.  Generate error for unsupported operand types.
24459         ['z']: Do not handle HImode memory operands specially.  Warning
24460         for floating-point operands.  Fallthru to 'Z' for unsupported operand
24461         types.  Do not ICE for unsupported size, generate error instead.
24462         (output_387_binary_op): Use %Z to output operands.
24463         (output_fp_compare): Ditto.
24464         (output_387_reg_move): Ditto.
24466 2009-04-28  Ben Elliston  <bje@au.ibm.com>
24468         PR c++/35652
24469         Revert:
24471         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24473         * builtins.c (c_strlen): Do not warn here.
24474         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24475         * c-common.c (pointer_int_sum): Take an explicit location.
24476         Warn about offsets out of bounds.
24477         * c-common.h (pointer_int_sum): Adjust declaration.
24479 2009-04-27  Ian Lance Taylor  <iant@google.com>
24481         * collect2.c (is_ctor_dtor): Change type of ret field in struct
24482         names to symkind.
24483         * dce.c (run_fast_df_dce): Change type of old_flags to int.
24484         * df-core.c (df_set_flags): Change return type to int.  Change
24485         type of old_flags to int.
24486         (df_clear_flags): Likewise.
24487         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
24488         (df_get_conditional_uses): Likewise.
24489         * df.h (df_set_flags, df_clear_flags): Update declarations.
24490         * dwarf2out.c (struct indirect_string_node): Change type of form
24491         field to enum dwarf_form.
24492         (AT_string_form): Change return type to enum dwarf_form.
24493         * fixed-value.c (fixed_compare): Add cast to enum type.
24494         * fwprop.c (update_df): Change 0 to VOIDmode.
24495         * gensupport.c: Change 0 to UNKNOWN.
24496         * gimple.h (gimple_cond_code): Add cast to enum type.
24497         * haifa-sched.c (reemit_notes): Add cast to enum type.
24498         * hooks.c (hook_int_void_no_regs): Remove function.
24499         * hooks.h (hook_int_void_no_regs): Remove declaration.
24500         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
24501         * predict.c (combine_predictions_for_insn): Add casts to enum type.
24502         * real.c (real_arithmetic): Add cast to enum type.
24503         (real_compare): Likewise.
24504         * target.h (struct gcc_target): Change return type of
24505         branch_target_register_class to enum reg_class.
24506         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
24507         default_branch_target_register_class.
24508         * targhooks.c (default_branch_target_register_class): New function.
24509         * targhooks.h (default_branch_target_register_class): Declare.
24510         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
24511         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
24512         cast to int.
24513         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
24514         ERROR_MARK.
24515         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
24516         vect_uninitialized_def.  Change 0 to ERROR_MARK.
24517         * tree-vect-stmts.c (supportable_widening_operation): Don't
24518         initialize icode1 and icode2.
24519         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
24520         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
24521         and to STD_C89.
24522         (cmn_err_flag_specs): Change 0 to STD_C89.
24523         (cmn_err_char_table): Likewise.
24524         * config/arm/arm.c (get_arm_condition_code): Change type of code
24525         to enum arm_cond_code.
24526         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
24527         (IWMMXT_BUILTIN2): Likewise.
24528         (neon_builtin_type_bits): Don't define typedef.
24529         (neon_builtin_datum): Change type of bits field to int.
24530         (arm_expand_neon_args): Add cast to enum type.
24531         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
24532         TLS_MODEL_NONE.
24533         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
24534         casts to enum type.
24535         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
24536         MIPS_FP_COND_f.
24537         * config/mips/mips.md (jal_macro): Return enum constant.
24538         (single_insn): Likewise.
24539         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
24540         CODE_FOR_nothing.
24541         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24542         casts to enum type.
24543         * config/s390/s390.c (s390_tune_flags): Change type to int.
24544         (s390_arch_flags): Likewise.
24545         (s390_handle_arch_option): Change flags field of struct pta to int.
24546         * config/s390/s390.h (s390_tune_flags): Update declaration.
24547         (s390_arch_flags): Likewise.
24548         * config/sh/sh.c (prepare_move_operands): Compare
24549         tls_symbolic_operand result with enum constant.
24550         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
24551         (sh_expand_prologue): Add cast to enum type.
24552         (sh_expand_epilogue): Likewise.
24553         (tls_symbolic_operand): Change return type to enum tls_model.
24554         (fpscr_set_from_mem): Add cast to enum type.
24555         (legitimize_pic_address): Compare tls_symbolic_operand result with
24556         enum constant.
24557         (sh_target_reg_class): Change return type to enum reg_class.
24558         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
24559         PROCESSOR_xxx.
24560         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
24561         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
24562         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
24563         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
24564         (delayed_branch, tls_call_delay): Likewise.
24565         (eligible_for_sibcall_delay): Likewise.
24566         (eligible_for_return_delay): Likewise.
24567         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
24568         (spu_expand_builtin_1): Likewise.
24570         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
24571         for all types of conversions.
24572         (output_init_element): Issue -Wc++-compat warning if needed when
24573         initializing a bitfield with enum type.
24574         * c-parser.c (c_parser_expression): Set original_type to
24575         original_type of right hand operand of comma operator.
24577 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24579         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
24580         grammar nits.
24581         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
24582         * doc/cpp.texi (Standard Predefined Macros)
24583         (Implementation-defined behavior): Likewise.
24584         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
24585         * doc/gimple.texi (GIMPLE Exception Handling)
24586         (@code{GIMPLE_ASSIGN}): Likewise.
24587         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
24588         * doc/invoke.texi (Warning Options, Optimize Options)
24589         (AVR Options, Darwin Options): Likewise.
24590         (Optimize Options): Reformulate -fwhole-program description.
24591         * doc/loop.texi (Lambda): Likewise.
24592         * doc/md.texi (Output Template, Define Constraints)
24593         (Standard Names, Insn Splitting): Likewise.
24594         * doc/options.texi (Option properties): Likewise.
24595         * doc/passes.texi (Tree-SSA passes): Likewise.
24596         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
24597         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
24598         (File Names and DBX): Likewise.
24599         * doc/trouble.texi (Incompatibilities): Likewise.
24601 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24603         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
24604         instruction is correct.
24606 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
24608         Allow non-constant arguments to conversion intrinsics.
24609         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
24610         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
24611         * spu.c (print_operand): Handle 'v' and 'w'.
24612         (exp2_immediate_p, spu_gen_exp2): Define.
24613         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
24614         spu_convtf_1): Update parameter descriptions.
24615         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
24616         * constraints.md ('v', 'w'): New.
24617         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
24618         Remove.
24619         (i2f, I2F): New define_mode_attr.
24620         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
24621         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
24622         fixuns_truncv4sfv4si2):  Update to use mode attribute.
24623         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
24624         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
24625         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
24626         patterns for combine.
24628 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
24630         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
24631         (cprop, hoist, pre, store_motion): New debug counters.
24632         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
24633         is not an RTL pass anymore.
24634         (pass_profiling): Remove extern decl for pass removed in 2005.
24635         (pass_gcse, pass_jump_bypass): Remove.
24636         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
24637         to 0 for clean state.
24638         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
24639         * cse.c (gate_handle_cse_after_global_opts,
24640         rest_of_handle_cse_after_global_opts): New functions.
24641         (pass_cse_after_global_opts): New pass, does local CSE.
24642         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
24643         (TV_CPROP): New timevar.
24644         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
24645         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
24646         (gcse_main, recompute_all_luids): Remove.
24647         (compute_hash_table_work): Call max_reg_num instead of reading
24648         max_gcse_regno.
24649         (cprop_jump): Don't set run_jump_opt_after_gcse.
24650         (constprop_register): Always allow to alter jumps.
24651         (cprop_insn): Likewise.
24652         (do_local_cprop): Likewise.
24653         (local_cprop_pass): Likewise.  Return non-zero if something changed.
24654         (cprop): Remove function, fold interesting bits into one_cprop_pass.
24655         (find_implicit_sets): Add note about missed optimization opportunity.
24656         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
24657         pass_rtl_cprop execute function.
24658         Don't bother tracking the pass number, each pass gets its own dumpfile
24659         now anyway.
24660         Always allow to alter jumpsand bypass jumps.
24661         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
24662         will just find no suitable set.
24663         (pre_edge_insert): Fix dumping, this function is for PRE only.
24664         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
24665         pass_rtl_pre execute function.
24666         (hoist_code): Return non-zero if something changed.  Keep track of
24667         substitutions and insertions for statistics gathering similar to PRE.
24668         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
24669         called from the pass_rtl_hoist execute function.  Show pass statistics.
24670         (compute_store_table): Use max_reg_num directly instead of using the
24671         formerly global max_gcse_regno.
24672         (build_store_vectors): Likewise.
24673         (replace_store_insn): Fix dumping.
24674         (store_motion): Rename to ...
24675         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
24676         pass, called from the pass_rtl_store_motion execute function.  Keep
24677         track of substitutions and insertions for statistics gathering similar
24678         to PRE.
24679         (bypass_jumps): Remove, fold interesting bits into ...
24680         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
24681         from the pass_rtl_cprop execute function.
24682         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
24683         pass_jump_bypass): Remove.
24684         (gate_handle_gcse, rest_of_handle_gcse): Remove.
24685         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
24686         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
24687         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
24688         (gate_rtl_store_motion, execute_rtl_store_motion,
24689         pass_rtl_store_motion): New.
24690         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
24691         make it clear that -fcse-skip-blocks is a no-op for backward compat.
24692         * passes.c (init_optimization_passes): Remove pass_gcse and
24693         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
24694         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
24695         instead of pass_jump_bypass.
24697 2009-04-27  Richard Guenther  <rguenther@suse.de>
24699         PR middle-end/39928
24700         * gimplify.c (gimplify_expr): If we are required to create
24701         a temporary make sure it ends up as register.
24703 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
24705         PR target/39903
24706         * config/i386/i386.c (construct_container): Don't call
24707         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
24708         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
24710 2009-04-27  Michael Matz  <matz@suse.de>
24712         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
24713         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
24714         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
24715         (dump_replaceable_exprs): Take a bitmap.
24716         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
24717         array.
24718         (expand_gimple_basic_block): Likewise.
24719         * tree-ssa-ter.c (struct temp_expr_table_d): Make
24720         replaceable_expressions member a bitmap.
24721         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
24722         (mark_replaceable): Likewise.
24723         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
24724         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
24726 2009-04-27  Richard Guenther  <rguenther@suse.de>
24728         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
24729         (verify_stmts): Dispatch to gimple/type verification code.
24730         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
24731         issue with call argument types.
24733 2009-04-27  Michael Matz  <matz@suse.de>
24735         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
24736         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
24737         to above.
24739 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24740             Eric Botcazou  <ebotcazou@adacore.com>
24742         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
24743         a label's basic block.
24744         (mark_target_live_regs): Tidy and rework obsolete comments.
24745         Change back DF problem to LIVE.  If a label starts a basic block,
24746         assume that all registers that used to be live then still are.
24747         (init_resource_info): If a label starts a basic block, set its
24748         BLOCK_FOR_INSN accordingly.
24749         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
24751 2009-04-27  Richard Guenther  <rguenther@suse.de>
24753         * tree-flow-inline.h (function_ann): Remove.
24754         (get_function_ann): Likewise.
24755         * tree-dfa.c (create_function_ann): Remove.
24756         * tree-flow.h (struct static_var_ann_d): Remove.
24757         (struct function_ann_d): Likewise.
24758         (union tree_ann_d): Remove fdecl member.
24759         (function_ann_t): Remove.
24760         (function_ann, get_function_ann, create_function_ann): Remove
24761         declarations.
24763 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
24765         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
24767 2009-04-27  Jan Hubicka  <jh@suse.cz>
24769         * ipa-pure-const.c (struct funct_state_d): New fields
24770         state_previously_known, looping_previously_known; remove
24771         state_set_in_source.
24772         (analyze_function): Use new fields.
24773         (propagate): Avoid assumption that state_set_in_source imply
24774         nonlooping.
24776         * tree-ssa-loop-niter.c (finite_loop_p): New function.
24777         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
24778         * cfgloop.h (finite_loop_p): Declare.
24780 2009-04-26  Michael Matz  <matz@suse.de>
24782         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
24784 2009-04-26  Michael Matz  <matz@suse.de>
24786         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
24787         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
24788         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
24789         pass_mark_used_blocks): Remove.
24790         * tree-optimize.c (pass_free_datastructures,
24791         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
24792         * passes.c (init_optimization_passes): Don't call
24793         pass_mark_used_blocks, remove dead code.
24795 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
24797         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
24798         * tree-ssa-live.h (register_ssa_partition): Likewise.
24800 2009-04-26  Michael Matz  <matz@suse.de>
24802         Expand from SSA.
24803         * builtins.c (fold_builtin_next_arg): Handle SSA names.
24804         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
24805         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
24806         SSA names.
24807         (compare_pairs): Swap cost comparison.
24808         (coalesce_ssa_name): Don't use change_partition_var.
24809         * tree-nrv.c (struct nrv_data): Add modified member.
24810         (finalize_nrv_r): Set it.
24811         (tree_nrv): Use it to update statements.
24812         (pass_nrv): Require PROP_ssa.
24813         * tree-mudflap.c (mf_decl_cache_locals,
24814         mf_build_check_statement_for): Use make_rename_temp.
24815         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
24816         * alias.c (find_base_decl): Handle SSA names.
24817         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
24818         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
24819         * rtl.h (set_reg_attrs_for_parm): Declare.
24820         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
24821         to "optimized", remove unused locals at finish.
24822         (execute_free_datastructures): Make global, call
24823         delete_tree_cfg_annotations.
24824         (execute_free_cfg_annotations): Don't call
24825         delete_tree_cfg_annotations.
24827         * ssaexpand.h: New file.
24828         * expr.c (toplevel): Include ssaexpand.h.
24829         (expand_assignment): Handle SSA names the same as register variables.
24830         (expand_expr_real_1): Expand SSA names.
24831         * cfgexpand.c (toplevel): Include ssaexpand.h.
24832         (SA): New global variable.
24833         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
24834         (SSAVAR): New macro.
24835         (set_rtl): New helper function.
24836         (add_stack_var): Deal with SSA names, use set_rtl.
24837         (expand_one_stack_var_at): Likewise.
24838         (expand_one_stack_var): Deal with SSA names.
24839         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
24840         before unique numbers.
24841         (expand_stack_vars): Use set_rtl.
24842         (expand_one_var): Accept SSA names, add asserts for them, feed them
24843         to above subroutines.
24844         (expand_used_vars): Expand all partitions (without default defs),
24845         then only the local decls (ignoring those expanded already).
24846         (expand_gimple_cond): Remove edges when jumpif() expands an
24847         unconditional jump.
24848         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
24849         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
24850         SSA name.
24851         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
24852         members of SA; deal with PARM_DECL partitions here; expand
24853         all PHI nodes, free tree datastructures and SA.  Commit instructions
24854         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
24855         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
24856         info and statements at start, collect garbage at finish.
24857         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
24858         (VAR_ANN_PARTITION) Remove.
24859         (change_partition_var): Don't declare.
24860         (partition_to_var): Always return SSA names.
24861         (var_to_partition): Only accept SSA names.
24862         (register_ssa_partition): Only check argument.
24863         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
24864         member.
24865         (delete_var_map): Don't free it.
24866         (var_union): Only accept SSA names, simplify.
24867         (partition_view_init): Mark only useful SSA names as used.
24868         (partition_view_fini): Only deal with SSA names.
24869         (change_partition_var): Remove.
24870         (dump_var_map): Use ssa_name instead of partition_to_var member.
24871         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
24872         basic blocks.
24873         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
24874         (struct _elim_graph): New member const_dests; nodes member vector of
24875         ints.
24876         (set_location_for_edge): New static helper.
24877         (create_temp): Remove.
24878         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
24879         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
24880         (new_elim_graph): Allocate const_dests member.
24881         (clean_elim_graph): Truncate const_dests member.
24882         (delete_elim_graph): Free const_dests member.
24883         (elim_graph_size): Adapt to new type of nodes member.
24884         (elim_graph_add_node): Likewise.
24885         (eliminate_name): Likewise.
24886         (eliminate_build): Don't take basic block argument, deal only with
24887         partition numbers, not variables.
24888         (get_temp_reg): New static helper.
24889         (elim_create): Use it, deal with RTL temporaries instead of trees.
24890         (eliminate_phi): Adjust all calls to new signature.
24891         (assign_vars, replace_use_variable, replace_def_variable): Remove.
24892         (rewrite_trees): Only do checking.
24893         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
24894         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
24895         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
24896         contains_tree_r, MAX_STMTS_IN_LATCH,
24897         process_single_block_loop_latch, analyze_edges_for_bb,
24898         perform_edge_inserts): Remove.
24899         (expand_phi_nodes): New global function.
24900         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
24901         functions, initialize new parameter, remember partitions having a
24902         default def.
24903         (finish_out_of_ssa): New global function.
24904         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
24905         don't reset in_ssa_p here, don't disable TER when mudflap.
24906         (pass_del_ssa): Remove.
24907         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
24908         partition members.
24909         (execute_free_datastructures): Declare.
24910         * Makefile.in (SSAEXPAND_H): New variable.
24911         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
24912         * basic-block.h (commit_one_edge_insertion): Declare.
24913         * passes.c (init_optimization_passes): Move pass_nrv and
24914         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
24915         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
24916         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
24917         (redirect_branch_edge): Deal with super block when expanding, split
24918         out jump patching itself into ...
24919         (patch_jump_insn): ... here, new static helper.
24921 2009-04-26  Michael Matz  <matz@suse.de>
24923         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
24924         beyond num_ssa_names.
24925         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
24926         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
24928 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24930         PR inline-asm/39543
24931         * fwprop.c (forward_propagate_asm): New function.
24932         (forward_propagate_and_simplify): Propagate also into __asm, if it
24933         doesn't increase the number of referenced registers.
24935         PR c/39889
24936         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
24938 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
24940         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
24941         note_nonlocal_vla_type for nonlocal VLAs.
24942         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
24943         contains_remapped_vars, remap_vla_decls): New functions.
24944         (convert_nonlocal_reference_stmt): If not optimizing, call
24945         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
24946         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
24947         if it wasn't found in var_map.
24948         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
24949         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
24950         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
24951         declare_vars.
24952         * gimplify.c (nonlocal_vlas): New variable.
24953         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
24954         referenced VLAs.
24955         (gimplify_body): Create and destroy nonlocal_vlas.
24957         * dwarf2out.c (loc_descr_plus_const): New function.
24958         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
24959         mem_loc_descriptor, loc_descriptor_from_tree_1,
24960         descr_info_loc, gen_variable_die): Use it.
24962         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
24963         !TREE_STATIC VAR_DECLs.
24964         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
24965         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
24966         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
24967         DECL_BY_REFERENCE is valid.
24968         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
24969         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
24970         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
24971         Copy DECL_BY_REFERENCE.
24972         (struct nesting_copy_body_data): New type.
24973         (nesting_copy_decl): New function.
24974         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
24975         if they have variable length.
24977 2009-04-26  Michael Matz  <matz@suse.de>
24979         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
24980         mark new temporaries for renaming.
24982 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
24984         PR c/39581
24985         * c-decl.c (global_bindings_p): Return negative value.
24986         (c_variable_size): New.  Based on variable_size from
24987         stor-layout.c.
24988         (grokdeclarator): Call c_variable_size not variable_size.
24990 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
24992         * config/i386/i386.c (print_operand) ['z']: Fix typo.
24994 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
24996         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
24997         Redefine it to just use mingw/include.
24998         (ASM_SPEC): Rules for -m32 and -m64.
24999         (LINK_SPEC): Use Likewise.
25000         (SPEC_32): New define.
25001         (SPEC_64): Likewise.
25002         (SUB_LINK_SPEC): Likewise.
25003         (MULTILIB_DEFAULTS): New define.
25004         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25005         Add multilib options.
25006         (MULTILIB_DIRNAMES): Likewise.
25007         (MULTILIB_OSDIRNAMES): Likewise.
25008         (LIBGCC): Likewise.
25009         (INSTALL_LIBGCC): Likewise.
25011 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
25013         PR c/39556
25014         * c-tree.h (enum c_inline_static_type): New.
25015         (record_inline_static): Declare.
25016         * c-decl.c (struct c_inline_static, c_inline_statics,
25017         record_inline_static, check_inline_statics): New.
25018         (pop_file_scope): Call check_inline_statics.
25019         (start_decl): Call record_inline_static instead of pedwarning
25020         directly for static in inline function.
25021         * c-typeck.c (build_external_ref): Call record_inline_static
25022         instead of pedwarning directly for static referenced in inline
25023         function.
25025 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
25027         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
25028         not new but only being rescanned.
25029         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
25030         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
25031         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
25032         record_set_info, compute_set, grealloc): Remove.
25033         (recompute_all_luids): New function.
25034         (gcse_main): Don't compute sets, and don't do related memory
25035         allocations/free-ing.  If something changed before the end of the
25036         pass, update LUIDs using recompute_all_luids.
25037         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
25038         (free_gcse_mem): Don't free it either.
25039         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
25040         Use the df insn LUIDs.
25041         (load_killed_in_block): Likewise.
25042         (compute_hash_table_work): Don't compute reg_set_in_block.
25043         (compute_transp): Use DF_REG_DEF_CHAINs.
25044         (local_cprop_pass): Don't use compute_sets and related functions.
25045         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
25046         Use get_max_uid() instead of max_cuid.
25047         (insert_insn_end_basic_block, pre_insert_copy_insn,
25048         update_ld_motion_stores): Don't try to
25049         keep reg_set tables up to date.
25050         (pre_insert_copies): Use df insn LUIDs.
25051         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
25052         (reg_set_info): Don't use extra bitmap argument.
25053         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
25054         information to compute regs_set_in_block.
25055         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
25056         (bypass_jumps): Don't use compute_sets and friends.
25058 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25060         PR testsuite/39710
25061         * opts.c (undocumented_msg): Do not leave blank even with
25062         ENABLE_CHECKING.
25064 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25066         * c-decl.c (build_enumerator): Allow values folding to integer
25067         constants but not integer constant expressions with a pedwarn if
25068         pedantic.
25070 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25072         PR c/39582
25073         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
25074         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
25075         type is an integer constant.
25077 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
25079         PR target/39897
25080         * config/i386/i386.c (print_operand) ['z']: Revert handling of
25081         HImode operands.
25083 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
25085         PR c/39564
25086         * c-decl.c (grokdeclarator): Diagnose declarations of functions
25087         with variably modified return type and no storage class
25088         specifiers, except for the case of nested functions.  Distinguish
25089         extern declarations of functions with variably modified return
25090         types from those of objects with variably modified types.
25092 2009-04-25  Jan Hubicka  <jh@suse.cz>
25094         * tree.c (list_equal_p): New function.
25095         * tree.h (list_equal_p): Declare.
25096         * coretypes.h (edge_def, edge, const_edge, basic_block_def
25097         basic_block_def, basic_block, const_basic_block): New.
25098         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
25099         (redirect_eh_edge): New function.
25100         (make_eh_edge_update_phi): EH edges are not abnormal.
25101         * except.c: Include tree-flow.h.
25102         (list_match): New function.
25103         (eh_region_replaceable_by_p): New function.
25104         (replace_region): New function.
25105         (hash_type_list): New function.
25106         (hash_eh_region): New function.
25107         (eh_regions_equal_p): New function.
25108         (merge_peers): New function.
25109         (remove_unreachable_regions): Verify EH tree when checking;
25110         merge peers.
25111         (copy_eh_region_1): New function.
25112         (copy_eh_region): New function.
25113         (push_reachable_handler): New function.
25114         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
25115         regions without label but with live RESX.
25116         * except.h (redirect_eh_edge_to_label): New.
25117         * tree-flow.h (redirect_eh_edge): New.
25118         * coretypes.h (edge_def, edge, const_edge, basic_block_def
25119         basic_block_def, basic_block, const_basic_block): Remove.
25120         * Makefile.in (except.o): Add dependency on tree-flow.h
25121         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
25122         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
25123         Remove.
25125 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
25127         PR bootstrap/39645
25128         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
25129         on the destination of memcpy.
25131 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
25133         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
25134         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
25135         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
25137 2009-04-25  Jan Hubicka  <jh@suse.cz>
25139         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
25140         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
25141         to be reached by different label than left.
25142         (update_eh_edges): Update comment; remove edge_to_remove if possible
25143         and return true if suceeded.
25144         (cleanup_empty_eh): Accept sharing map; handle shared regions.
25145         (cleanup_eh): Compute sharing map.
25146         * except.c (remove_eh_handler_and_replace): Add argument if we should
25147         update regions.
25148         (remove_unreachable_regions): Update for label sharing.
25149         (label_to_region_map): Likewise.
25150         (get_next_region_sharing_label): New function.
25151         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
25152         prev_try pointers.
25153         (remove_eh_handler): Update.
25154         (remove_eh_region_and_replace_by_outer_of): New function.
25155         * except.h (struct eh_region): Add next_region_sharing_label.
25156         (remove_eh_region_and_replace_by_outer_of,
25157         get_next_region_sharing_label): Declare.
25158         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
25160 2009-04-25  Jan Hubicka  <jh@suse.cz>
25162         * tree-cfg.c (split_critical_edges): Split also edges where we can't
25163         insert code even if they are not critical.
25165 2009-04-25  Jan Hubicka  <jh@suse.cz>
25167         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25168         (gimple_can_remove_branch_p): EH edges won't remove branch by
25169         redirection.
25170         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
25171         updating of non-abnormal EH edges.
25172         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
25173         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
25174         (split_critical_edges): Split also edges where emitting code on them
25175         will lead to splitting later.
25177 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
25178             H.J. Lu  <hongjiu.lu@intel.com>
25180         PR target/39590
25181         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
25182         the configured assembler supports fildq and fistpq mnemonics.
25183         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
25184         * configure: Regenerated.
25185         * config.in: Ditto.
25187         * config/i386/i386.c (print_operand): Handle 'Z'.
25188         ['z']: Remove handling of special fild/fist suffixes.
25189         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
25190         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
25191         suffix of fild insn.
25192         (*floatsi<mode>2_vector_mixed): Ditto.
25193         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
25194         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
25195         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
25196         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
25197         * config/i386/gas.h (GAS_MNEMONICS): Remove.
25199 2009-04-25  Ben Elliston  <bje@au.ibm.com>
25201         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
25202         the source of a set operation.
25204 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
25206         * target.h (struct gcc_target): Add case_values_threshold field.
25207         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
25208         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
25209         * targhooks.c (default_case_values_threshold): New function.
25210         * targhooks.h (default_case_values_threshold): Declare function.
25211         * stmt.c (expand_case): Use case_values_threshold target hook.
25212         * expr.h (case_values_threshold): Remove declartation.
25213         * expr.c (case_values_threshold): Remove function.
25214         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
25216         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
25217         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25218         (avr_case_values_threshold): Declare as static.
25219         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
25221         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
25222         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
25223         (mn10300_case_values_threshold): New function.
25225 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25227         * ira.c (setup_cover_and_important_classes): Add enum cast.
25229 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
25231         * genpreds.c (write_enum_constraint_num): Output definition of
25232         CONSTRAINT_NUM_DEFINED_P macro.
25233         * ira.c (setup_cover_and_important_classes): Use
25234         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
25236 2009-04-24  DJ Delorie  <dj@redhat.com>
25238         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
25239         __SH2A_SINGLE_ONLY__ also.
25241 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
25243         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
25244         (movdf_internal): Ditto.
25245         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
25246         SFmode and DFmode constants.
25247         (ia64_print_operand): Add 'G' format for printing
25248         floating point constants.
25250 2009-04-24  Richard Guenther  <rguenther@suse.de>
25252         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
25253         from unsigned additions.
25255 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
25257         * c-typeck.c (set_init_index): Allow array designators that are
25258         not integer constant expressions with a pedwarn if pedantic.
25260 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25262         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
25263         zero if no overlap in nonzero bits between the operands.
25265 2009-04-24  Ian Lance Taylor  <iant@google.com>
25267         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
25268         (record_dead_and_set_regs): Likewise.
25269         * df.h (struct df_mw_hardreg): Change flags field to int.
25270         (struct df_base_ref): Likewise.
25271         (struct df): Change changeable_flags field to int.
25272         * df-scan.c (df_defs_record): Change clobber_flags to int.
25273         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
25274         constants rather than #define macros.
25275         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
25276         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
25277         (enum dwarf_calling_convention): Likewise.
25278         (enum dwarf_line_number_x_ops): Likewise.
25279         (enum dwarf_call_frame_info): Likewise.
25280         (enum dwarf_source_language): Likewise.
25281         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
25282         (add_calling_convention_attribute): Likewise.
25283         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
25284         (combine_comparisons): Change compcode to int.  Add cast to enum type.
25285         * genrecog.c (maybe_both_true_2): Change c to int.
25286         (write_switch): Likewise.  Add cast to enum type.
25287         * gimplify.c (gimplify_omp_for): Handle return values from
25288         gimplify_expr using MIN rather than bitwise or.
25289         (gimplify_expr): Add cast to enum type.
25290         * ipa-prop.c (update_jump_functions_after_inlining): Change
25291         IPA_BOTTOM to IPA_JF_UNKNOWN.
25292         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
25293         Add casts to enum type.
25294         (setup_cover_and_important_classes): Change cl to int.  Add casts
25295         to enum type.
25296         (setup_class_translate): Change cl and mode to int.
25297         (ira_init_once): Change mode to int.
25298         (free_register_move_costs): Likewise.
25299         (setup_prohibited_mode_move_regs): Add casts to enum type.
25300         * langhooks.c (add_builtin_function_common): Rework assertion that
25301         value fits bitfield.
25302         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
25303         * omega.c (omega_do_elimination): Avoid math on enum types.
25304         * optabs.c (expand_vec_shift_expr): Remove casts to int.
25305         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
25306         int local to handle integral_argment value.
25307         * regmove.c (try_auto_increment): Change PUT_MODE to
25308         PUT_REG_NOTE_KIND.
25309         * reload.c (push_secondary_reload): Add casts to enum type.
25310         (secondary_reload_class, find_valid_class): Likewise.
25311         * reload1.c (emit_input_reload_insns): Likewise.
25312         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
25313         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
25314         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
25315         constant.
25316         * tree.c (build_common_builtin_nodes): Add casts to enum type.
25317         * tree-complex.c (complex_lattice_t): Typedef to int rather than
25318         enum type.
25319         (expand_complex_libcall): Add casts to enum type.
25320         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
25321         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
25322         with ERROR_MARK, not NUM_TREE_CODES.
25323         (vect_create_epilog_for_reduction): Likewise.
25324         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
25325         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
25326         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
25327         enum machine_mode.
25328         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
25329         vect_unused_in_loop.  Change 0 to loop_vect.
25330         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
25331         * var-tracking.c (get_init_value): Change return type to enum
25332         var_init_status.
25333         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
25334         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
25335         arm_fp_model.
25336         (arm_override_options): Add casts to enum type.
25337         (arm_emit_tls_decoration): Likewise.
25338         * config/i386/i386.c (ix86_function_specific_restore): Add casts
25339         to enum type.
25340         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
25341         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
25342         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
25343         enum type.
25344         * config/s390/s390.c (code_for_builtin_64): Change to array of
25345         enum insn_code.
25346         (code_for_builtin_31): Likewise.
25347         (s390_expand_builtin): Change code_for_builtin to enum insn_code
25348         const *.
25349         * config/sparc/sparc.c (sparc_override_options): Change value
25350         field in struct code_model to enum cmodel.  In initializer change
25351         0 to NULL and add cast to enum type.
25353         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
25354         Change all callers.  Issue a -Wc++-compat warning using
25355         lhs_origtype if necessary.
25356         (convert_for_assignment): Issue -Wc++-compat warnings about
25357         invalid conversions to enum type on assignment.
25358         * c-common.h (build_modify_expr): Update declaration.
25360 2009-04-24  Nick Clifton  <nickc@redhat.com>
25362         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
25363         (function_arg_advance): Likewise.
25364         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
25365         5th alternative.
25367 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25369         * config/s390/constraints.md ('I', 'J'): Fix condition.
25371 2009-04-24  Diego Novillo  <dnovillo@google.com>
25373         * gengtype-parse.c (parse_error): Add newline after message.
25375 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
25377         * config/i386/sse.md (avxmodesuffixs): Removed.
25378         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
25379         (*avx_pinsr<ssevecsize>): This.
25381 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
25383         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
25384         follow chains of regs with a single definition, and allow expressions
25385         that are function_invariant_p.
25386         (simple_rhs_p): Allow expressions that are function_invariant_p.
25388 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
25390         PR middle-end/39867
25391         * fold-const.c (fold_cond_expr_with_comparison): When folding
25392         > and >= to MAX, make sure the MAX uses the same type as the
25393         comparison's operands.
25395 2009-04-24  Nick Clifton  <nickc@redhat.com>
25397         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
25398         addressing for DImode accesses.
25399         (frv_print_operand_address): Handle PLUS case.
25400         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
25402 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
25404         PR rtl-optimization/39794
25405         * alias.c (canon_true_dependence): Add x_addr argument.
25406         * rtl.h (canon_true_dependence): Adjust prototype.
25407         * cse.c (check_dependence): Adjust canon_true_dependence callers.
25408         * cselib.c (cselib_invalidate_mem): Likewise.
25409         * gcse.c (compute_transp): Likewise.
25410         * dse.c (scan_reads_nospill): Likewise.
25411         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
25412         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
25413         canon_base_addr of the group, plus optional offset.
25414         (struct group_info): Rename canon_base_mem to
25415         canon_base_addr.
25416         (get_group_info): Set canon_base_addr to canon_rtx of base, not
25417         canon_rtx of base_mem.
25419 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
25421         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
25422         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
25424 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25426         * config/spu/spu-builtins.h: Delete file.
25428         * config/spu/spu.h (enum spu_builtin_type): Move here from
25429         spu-builtins.h.
25430         (struct spu_builtin_description): Likewise.  Add GTY marker.
25431         Do not use enum spu_function_code or enum insn_code.
25432         (spu_builtins): Add extern declaration.
25434         * config/spu/spu.c: Do not include "spu-builtins.h".
25435         (enum spu_function_code, enum spu_builtin_type_index,
25436         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
25437         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
25438         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
25439         unsigned_V2DI_type_node): Move here from spu-builtins.h.
25440         (spu_builtin_types): Make static.  Add GTY marker.
25441         (spu_builtins): Add extern declaration with GTY marker.
25442         Include "gt-spu.h".
25444         * config/spu/spu-c.c: Do not include "spu-builtins.h".
25445         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
25446         Check programmatically whether all parameters are scalar.
25448         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
25450 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
25452         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
25453         assignment from the constructor either if the target is volatile.
25455 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
25457         * config/arm/arm.md (insv): Do not share operands[0].
25459 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
25461         * config/vxlib-tls.c (active_tls_threads): Delete.
25462         (delete_hook_installed): New.
25463         (tls_delete_hook): Don't delete the delete hook.
25464         (tls_destructor): Delete it here.
25465         (__gthread_set_specific): Adjust installing the delete hook.
25466         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
25467         __gthread_leave_tsd_dtor_context.
25469 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
25471         * c-format.c (gcc_tdiag_char_table): Add support for %E.
25473 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
25475         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
25476         enum type.
25477         (alpha_rtx_costs): Ditto.
25478         (emit_unlikely_jump): Use add_reg_note.
25479         (emit_frame_store_1): Ditto.
25480         (alpha_expand_prologue): Ditto.
25481         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25482         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
25484 2009-04-23  Nick Clifton  <nickc@redhat.com>
25486         * config/v850/v850.md (epilogue): Remove suppressed code.
25487         (return): Rename to return_simple and remove test of frame size.
25488         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
25489         to gen_return_simple.
25491 2009-04-22  Jing Yu  <jingyu@google.com>
25493         PR testsuite/39781
25494         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
25496 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25498         PR C/31499
25499         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
25500         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
25501         value is a VECTOR_CST, the element type is the element type of the
25502         vector.
25504 2009-04-22  DJ Delorie  <dj@redhat.com>
25506         * config/m32c/m32c.h: Update GTY annotations to new syntax.
25508 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
25510         * alias.c (find_base_term): Move around LO_SUM case, so that
25511         CONST falls through into PLUS/MINUS handling.
25513         PR c/39855
25514         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
25515         into 0, use omit_one_operand.
25517 2009-04-23  Ben Elliston  <bje@au.ibm.com>
25519         * config/rs6000/linux-unwind.h (get_regs): Remove type
25520         puns. Change the type of `pc' to an array of unsigned ints and
25521         update all users.  Constify frame24.
25523 2009-04-22  DJ Delorie  <dj@redhat.com>
25525         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
25526         declarations before code.
25527         (current_function_special_page_vector): Likewise.
25528         (m32c_expand_insv): Silence a warning.
25530 2009-04-21  Taras Glek  <tglek@mozilla.com>
25532         * alias.c: Update GTY annotations to new syntax.
25533         * basic-block.h: Likewise.
25534         * bitmap.h: Likewise.
25535         * c-common.h: Likewise.
25536         * c-decl.c: Likewise.
25537         * c-parser.c: Likewise.
25538         * c-pragma.c: Likewise.
25539         * c-tree.h: Likewise.
25540         * cfgloop.h: Likewise.
25541         * cgraph.h: Likewise.
25542         * config/alpha/alpha.c: Likewise.
25543         * config/arm/arm.h: Likewise.
25544         * config/avr/avr.h: Likewise.
25545         * config/bfin/bfin.c: Likewise.
25546         * config/cris/cris.c: Likewise.
25547         * config/darwin.c: Likewise.
25548         * config/frv/frv.c: Likewise.
25549         * config/i386/i386.c: Likewise.
25550         * config/i386/i386.h: Likewise.
25551         * config/i386/winnt.c: Likewise.
25552         * config/ia64/ia64.h: Likewise.
25553         * config/iq2000/iq2000.c: Likewise.
25554         * config/mips/mips.c: Likewise.
25555         * config/mmix/mmix.h: Likewise.
25556         * config/pa/pa.c: Likewise.
25557         * config/pa/pa.h: Likewise.
25558         * config/rs6000/rs6000.c: Likewise.
25559         * config/s390/s390.c: Likewise.
25560         * config/sparc/sparc.c: Likewise.
25561         * config/xtensa/xtensa.c: Likewise.
25562         * cselib.h: Likewise.
25563         * dbxout.c: Likewise.
25564         * dwarf2out.c: Likewise.
25565         * except.c: Likewise.
25566         * except.h: Likewise.
25567         * fixed-value.h: Likewise.
25568         * function.c: Likewise.
25569         * function.h: Likewise.
25570         * gimple.h: Likewise.
25571         * integrate.c: Likewise.
25572         * optabs.c: Likewise.
25573         * output.h: Likewise.
25574         * real.h: Likewise.
25575         * rtl.h: Likewise.
25576         * stringpool.c: Likewise.
25577         * tree-data-ref.c: Likewise.
25578         * tree-flow.h: Likewise.
25579         * tree-scalar-evolution.c: Likewise.
25580         * tree-ssa-address.c: Likewise.
25581         * tree-ssa-alias.h: Likewise.
25582         * tree-ssa-operands.h: Likewise.
25583         * tree.c: Likewise.
25584         * tree.h: Likewise.
25585         * varasm.c: Likewise.
25586         * varray.h: Likewise.
25587         * vec.h: Likewise.
25588         * coretypes.h: Do not define GTY macro if it is already defined.
25589         * doc/gty.texi: Update GTY documentation to new syntax.
25590         * gengtype-lex.l: Enforce attribute-like syntax for GTY
25591         annotations on structs.
25592         * gengtype-parse.c: Likewise.
25594 2009-04-22  Mark Heffernan  <meheff@google.com>
25596         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
25598 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25600         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
25601         where appropriate.
25603 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
25605         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
25606         the same as a PLUS without a shift.  Increase the cost of a
25607         CONST_INT in MULT.
25609 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25611         * Makefile.in: Update dependencies.
25612         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
25613         * errors.h: Remove bogus comment about compatibility.
25614         (warning): Update declaration.
25615         * genautomata.c: Update all calls to warning.
25616         * gimple.c: Do not include errors.h. Include toplev.h.
25617         * tree-ssa-structalias.c: Do not include errors.h.
25618         * omega.c: Likewise.
25619         * tree-ssa-reassoc.c: Likewise.
25620         * config/spu/spu-c.c: Likewise.
25621         * config/spu/t-spu-elf: Update dependencies.
25623 2009-04-22  Richard Guenther  <rguenther@suse.de>
25625         PR tree-optimization/39824
25626         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
25627         make sure the types are compatible.
25629 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25631         PR c++/14875
25632         * c-common.c (c_parse_error): Take a token_flags parameter.
25633         Use token_type for the token type instead.
25634         Pass token_flags to cpp_type2name.
25635         * c-common.h (c_parse_error): Update declaration.
25636         * c-parser.c (c_parser_error): Pass 0 as token flags.
25638 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
25640         PR rtl-optimization/39580
25641         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
25643 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25645         * function.c (expand_function_end): Do not emit a jump to the "naked"
25646         return label for fall-through returns.
25647         * except.c (sjlj_emit_function_exit): Always place the call to the
25648         unregister function at the location installed by expand_function_end.
25650 2009-04-22  Richard Guenther  <rguenther@suse.de>
25652         PR tree-optimization/39845
25653         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
25654         (gen_inbound_check): Likewise.
25656 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
25658         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
25659         padding for PPC.
25660         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
25661         * config/vxlib.c (__gthread_once): Add race guard for PPC.
25663 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25665         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
25666         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
25667         shift counts to avoid out-of-bounds array accesses.
25669 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25671         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
25672         (Pmode): Move above.
25674 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
25676         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
25677         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
25678         GET_CODE macro.  Use IN_RANGE macro where appropriate.
25679         * config/alpha/alpha.h: Ditto.
25680         * config/alpha/alpha.md: Ditto.
25681         * config/alpha/constraints.md: Ditto.
25682         * config/alpha/predicates.md: Ditto.
25684 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
25686         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
25687         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25688         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25689         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25690         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25691         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25692         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25693         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25694         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25695         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25696         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25697         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25698         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25699         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25700         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25701         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25702         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25703         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25704         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25705         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25706         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25707         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25708         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25709         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25710         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25711         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25712         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
25714 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25716         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
25717         references from comments.
25718         * cfgbuild.c (count_basic_blocks): Delete.
25719         (find_basic_blocks_1): Delete.
25720         (find_basic_blocks): Delete.
25721         * except.c (finish_eh_generation): Make static.  Move comment from
25722         except.h here.  Remove find_basic_blocks references from comments.
25723         * except.h (finish_eh_generation): Delete.
25724         * basic-block.h (find_basic_blocks): Delete.
25725         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
25727 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
25729         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
25730         (sdbout_parms):  Likewise.
25732 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
25734         * config/sh/sh.c (prepare_cbranch_operands): Use
25735         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
25736         (expand_cbranchdi4): Likewise.
25737         (from_compare): Add cast to enum type.
25738         (expand_cbranchsi4): Use add_reg_note.
25739         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
25740         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
25741         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
25742         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
25743         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
25744         instead of CODE_FOR_nothing.
25745         (cbranchdi4): Likewise.  Fix the order of arguments for
25746         gen_rtx_fmt_ee.
25747         (push_fpscr): Use add_reg_note.
25748         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
25749         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
25751 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
25753         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
25754         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25755         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25756         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
25757         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
25758         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
25759         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
25760         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
25761         config/alpha/x-vms, config/arc/t-arc,
25762         config/arm/README-interworking, config/arm/arm-c.c,
25763         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
25764         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
25765         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
25766         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
25767         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
25768         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
25769         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
25770         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
25771         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
25772         config/cris/t-elfmulti, config/crx/t-crx,
25773         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
25774         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
25775         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
25776         config/h8300/t-h8300, config/i386/athlon.md,
25777         config/i386/darwin-libgcc.10.4.ver,
25778         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
25779         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
25780         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
25781         config/i386/t-linux64, config/i386/t-nwld,
25782         config/i386/t-rtems-i386, config/i386/t-sol2-10,
25783         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
25784         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
25785         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
25786         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
25787         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
25788         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
25789         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
25790         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
25791         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
25792         config/m68k/t-uclinux, config/mcore/t-mcore,
25793         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
25794         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
25795         config/mips/crtn.asm, config/mips/irix-crti.asm,
25796         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
25797         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
25798         config/mips/mips-fixed.md, config/mips/sb1.md,
25799         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
25800         config/mips/t-iris6, config/mips/t-isa3264,
25801         config/mips/t-libgcc-mips16, config/mips/t-linux64,
25802         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
25803         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
25804         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
25805         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
25806         config/mn10300/t-linux, config/mn10300/t-mn10300,
25807         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
25808         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
25809         config/picochip/libgccExtras/clzsi2.asm,
25810         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
25811         config/rs6000/darwin-libgcc.10.4.ver,
25812         config/rs6000/darwin-libgcc.10.5.ver,
25813         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
25814         config/rs6000/t-aix43, config/rs6000/t-aix52,
25815         config/rs6000/t-darwin, config/rs6000/t-fprules,
25816         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
25817         config/rs6000/t-lynx, config/rs6000/t-netbsd,
25818         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
25819         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
25820         config/rs6000/t-rtems, config/rs6000/t-spe,
25821         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
25822         config/score/t-score-elf, config/sh/divcost-analysis,
25823         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
25824         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
25825         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
25826         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
25827         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
25828         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
25829         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
25830         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
25831         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
25832         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
25833         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
25834         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
25835         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
25836         limitx.h, version.c, xcoff.h: Add copyright and license notices.
25837         * config/h8300/genmova.sh: Include copyright and license notices
25838         in generated output.
25839         * config/h8300/mova.md: Regenerate.
25840         * doc/install.texi2html: Include word "Copyright" in copyright
25841         notice and use name "Free Software Foundation, Inc.".
25842         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
25843         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
25844         ChangeLog-2007, ChangeLog-2008: Correct dates.
25846 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25848         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
25849         NE_EXPR operations as well.
25850         * c-parser.c (c_parser_condition): Do not set location information on
25851         the condition.
25852         (c_parser_conditional_expression): Likewise.
25853         (c_parser_binary_expression): Set location information on operators.
25854         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
25855         TRUTH_NOT_EXPR has been folded.
25856         * fold-const.c (fold_truth_not_expr): Copy location information from
25857         the incoming expression to the outgoing one.
25858         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
25859         recursive calls on the LHS of the operator but pass that of the
25860         operator to recursive calls on the RHS of the operator.  Set it
25861         on the COND_EXPR.
25862         (shortcut_cond_expr): Set the locus of the operator on the second
25863         COND_EXPR and that of the expression on the first in degenerate cases.
25864         Pass the locus of the expression to calls to shortcut_cond_r.
25865         Set the locus of the 'then' block on the associated jump, if any.
25866         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
25867         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
25868         expression to call to gimplify_boolean_expr.
25870 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
25872         * config.gcc: Add additional configuration for
25873         i686-w64-mingw* and x86_64-w64-mingw* triplet.
25874         * config/i386/mingw-w64.h: New mingw-w64 specific header.
25875         (CPP_SPEC): Redefine for allowing -municode option.
25876         (STARTFILE_SPEC): Likewise.
25877         * config/i386/t-mingw-w64: New.
25878         * config/i386/mingw-w64.opt: New.
25879         (municode): Add new target option.
25880         * doc/invoke.texi (municode): Add documentation for new option.
25882 2009-04-21  Ian Lance Taylor  <iant@google.com>
25884         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25885         Correct test for number of arguments.
25886         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25888 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
25890         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
25891         argument of emit_library_call.
25893 2009-04-21  Richard Guenther  <rguenther@suse.de>
25895         PR middle-end/39829
25896         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
25897         inside VIEW_CONVERT_EXPRs.
25899 2009-04-21  Martin Jambor  <mjambor@suse.cz>
25901         * tree-switch-conversion.c (build_constructors): Split a long line.
25902         (constructor_contains_same_values_p): New function.
25903         (build_one_array): Create assigns of constants if possible, do not
25904         call mark_sym_for_renaming, call update_stmt.
25905         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
25906         make_rename_temp.  Do not call mark_symbols_for_renaming, call
25907         update_stmt.
25908         (gen_def_assigns): Do not call mark_symbols_for_renaming or
25909         find_new_referenced_vars, call update_stmt.
25910         (gen_inbound_check): Use create_tmp_var and create ssa names manually
25911         instead of calling make_rename_temp.  Do not call
25912         find_new_referenced_vars or mark_symbols_for_renaming, call
25913         update_stmt.
25915 2009-04-21  Richard Guenther  <rguenther@suse.de>
25917         PR tree-optimization/39827
25918         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
25919         (tree_ssa_phiprop): Pass the correct array size.
25921 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
25923         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
25925 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25927         PR 16202
25928         * c-typeck.c (lvalue_p): Move declaration ...
25929         * c-common.h (lvalue_p): ... to here.
25930         * c-common.c (candidate_equal_p): New.
25931         (add_tlist): Use it.
25932         (merge_tlist): Use it.
25933         (warn_for_collisions_1): Likewise.
25934         (warning_candidate_p): Accept more candidates.
25935         (verify_tree): A warning candidate can be an expression. Use
25936         candidate_equal_p.
25938 2009-04-21  Ben Elliston  <bje@au.ibm.com>
25940         PR target/5267
25941         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
25942         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
25943         options.  Remove -mcall-solaris documentation.
25945 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25947         PR c++/13358
25948         * doc/invoke.texi (-Wlong-long): Update description.
25949         * c-lex (interpret_integer): Only warn if there was no previous
25950         overflow and -Wlong-long is enabled.
25951         * c-decl.c (declspecs_add_type): Drop redundant flags.
25952         * c.opt (Wlong-long): Init to -1.
25953         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
25954         and front-end warn_long_long. Wlong-long only depends on other
25955         flags if it is uninitialized.
25956         * c-parser.c (disable_extension_diagnostics): warn_long_long is
25957         the same for CPP and FE.
25958         (restore_extension_diagnostics): Likewise.
25960 2009-04-20  Ian Lance Taylor  <iant@google.com>
25962         Fix enum conversions which are invalid in C++:
25963         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
25964         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
25965         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
25966         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
25967         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
25968         (dbxout_parms): Likewise.
25969         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
25970         (df_clear_flags): Likewise.
25971         * df-problems.c (df_rd_bb_local_compute_process_def): Change
25972         top_flag parameter to int.
25973         (df_chain_create_bb_process_use): Likewise.
25974         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
25975         Remove cast.
25976         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
25977         (df_ref_create_structure, df_def_record_1): Likewise.
25978         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
25979         (df_notes_rescan): Change 0 to VOIDmode in function call.
25980         (df_get_call_refs, df_insn_refs_collect): Likewise.
25981         (df_bb_regs_collect): Likewise.
25982         (df_entry_block_defs_collect): Likewise.
25983         (df_exit_block_uses_collect): Likewise.
25984         * df.h: Update declarations.
25985         * double-int.c (double_int_divmod): Add cast to enum type.
25986         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
25987         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
25988         (based_loc_descr): Likewise.
25989         (loc_descriptor_from_tree_1): Change first_op and second_op to
25990         enum dwarf_location_atom.  Add cast to enum type.
25991         * expmed.c (init_expmed): Change 0 to SET in function call.
25992         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
25993         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
25994         (do_store_flag): Likewise.
25995         * fixed-value.h (struct fixed_value): Change mode to enum
25996         machine_mode.
25997         * function.c (assign_parms): Change 0 to VOIDmode in function call.
25998         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
25999         function call.
26000         (insert_insn_decl, insert_decl, insert_state): Likewise.
26001         (automata_list_finish): Likewise.
26002         * genrecog.c (process_define_predicate): Add cast to enum type.
26003         * gensupport.c (init_predicate_table): Add cast to enum type.
26004         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
26005         function call.
26006         (gimple_build_call_1, gimple_build_label): Likewise.
26007         (gimple_build_goto, gimple_build_asm_1): Likewise.
26008         (gimple_build_switch_1, gimple_build_cdt): Likewise.
26009         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
26010         (enum fallback): Rename from enum fallback_t.
26011         (fallback_t): Typedef as int.
26012         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
26013         GSI_SAME_STMT in function call.
26014         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
26015         enum type.
26016         (setup_reg_class_relations): Likewise.
26017         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
26018         (setup_prohibited_class_mode_regs): Add cast to enum type.
26019         (setup_prohibited_mode_move_regs): Likewise.
26020         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
26021         (record_address_regs): Change i to enum reg_class.
26022         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
26023         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
26024         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
26025         (GET_MODE_2XWIDER_MODE): Likewise.
26026         (GET_CLASS_NARROWEST_MODE): Likewise.
26027         * omp-low.c (expand_omp_for): Add cast to enum type.
26028         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
26029         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
26030         * postreload.c (reload_cse_simplify_operands): Change rclass local
26031         to enum reg_class.
26032         * predict.c (combine_predictions_for_insn): Change best_predictor
26033         and predictor to enum br_predictor.
26034         (combine_predictions_for_bb): Likewise.
26035         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
26036         use SET_PREDICT_EXPR_OUTCOME.
26037         * real.c (real_arithmetic): Change icode to code in function call.
26038         * reginfo.c (init_move_cost): Add casts to enum type.
26039         (init_reg_sets_1, init_fake_stack_mems): Likewise.
26040         * regmove.c (regclass_compatible_p): Change class0 and class1 to
26041         enum reg_class.
26042         * reload.c (find_valid_class): Add casts to enum type.
26043         (push_reload): Change 0 to NO_REGS in function call.
26044         (find_reloads): Change this_alternative to array of enum
26045         reg_class.  Remove some now-unnecessary casts.
26046         (make_memloc): Change 0 to VOIDmode in function call.
26047         * reload1.c (reload): Change 0 to VOIDmode in function call.
26048         (eliminate_regs_1, elimination_effects): Likewise.
26049         (eliminate_regs_in_insn): Likewise.
26050         (emit_input_reload_insns): Add cast to enum type.
26051         (delete_output_reload): Change 0 to VOIDmode in function call.
26052         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
26053         to enum type in function call.
26054         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
26055         (SET_PREDICT_EXPR_OUTCOME): Define.
26056         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
26057         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
26058         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
26059         (dump_function): Likewise.
26060         * tree-dump.h: Update declarations.
26061         * tree-pass.h: Update declarations.
26062         * varasm.c (assemble_integer): Change mclass to enum mode_class.
26063         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
26064         enum type.
26065         (arm_rtx_costs_1): Correct parenthesization.
26066         (arm_rtx_costs): Add casts to enum type.
26067         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
26068         (vfp_emit_fstmd): Use add_rg_note.
26069         (emit_multi_reg_push, emit_sfm): Likewise.
26070         (thumb_set_frame_pointer): Likewise.
26071         (arm_expand_prologue): Likewise.
26072         (arm_regno_class): Change return type to enum reg_class.
26073         (thumb1_expand_prologue): Use add_reg_note.
26074         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
26075         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
26076         in function call.
26077         * config/arm/gentune.sh: Add cast to enum type.
26078         * config/arm/arm-tune.md: Rebuild.
26079         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
26080         (ix86_split_fp_branch, predict_jump): Likewise.
26081         (ix86_expand_multi_arg_builtin): Change sub_code from enum
26082         insn_code to enum rtx_code.
26083         (ix86_builtin_vectorized_function): Add cast to enum type.
26084         * config/i386/i386.md (truncdfsf2): Change slot to enum
26085         ix86_stack_slot.
26086         (truncxf<mode>2, isinf<mode>2): Likewise.
26087         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
26088         enum type.
26089         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
26090         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
26091         (insert_bundle_state): Change 1 to INSERT in function call.
26092         (ia64_add_bundle_selector_before): Likewise.
26093         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
26094         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
26095         (restore_stack_nonlocal): Likewise.
26096         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
26097         function call.
26098         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
26099         function call.
26100         (mips_rtx_costs): Likewise.
26101         (mips_override_options): Add casts to enum type.
26102         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
26103         in function call.
26104         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
26105         (store_reg, set_reg_plus_d): Likewise.
26106         (hppa_expand_prologue, hppa_profile_hook): Likewise.
26107         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26108         cast to enum type.
26109         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
26110         function call.
26111         (emit_unlikely_jump): Use add_reg_note.
26112         (rs6000_emit_allocate_stack): Likewise.
26113         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
26114         (output_toc): Change 1 to INSERT in function call.
26115         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
26116         (rs6000_initialize_trampoline): Likewise.
26117         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
26118         function call.
26119         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
26120         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
26121         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
26122         (save_gprs): Use add_reg_note.
26123         (s390_emit_prologue): Likewise.
26124         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26125         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
26126         (sparc_fold_builtin): Add cast to enum type.
26127         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
26128         enum insn_code.
26129         (spu_expand_prologue): Use add_reg_note.
26130         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
26132 2009-04-20  Ian Lance Taylor  <iant@google.com>
26134         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
26135         (c_parser_postfix_expression_after_primary): Get VEC for list of
26136         arguments.  Get original types of arguments.  Call
26137         build_function_call_vec.
26138         (cached_expr_list_1, cached_expr_list_2): New static variables.
26139         (c_parser_expr_list): Change return type to VEC *.  Add
26140         p_orig_types parameter.  Change all callers.
26141         (c_parser_release_expr): New static function.
26142         (c_parser_vec_to_tree_list): New static function.
26143         * c-typeck.c (build_function_call): Rewrite to build a VEC and
26144         call build_function_call_vec.
26145         (build_function_call_vec): New function, based on old
26146         build_function_call.
26147         (convert_arguments): Remove nargs and argarray parameters.  Change
26148         values to a VEC.  Add origtypes parameter.
26149         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
26150         (convert_for_assignment): Add origtype parameter.  Change all
26151         callers.  If warn_cxx_compat, check for conversion to an enum
26152         type when calling a function.
26153         (store_init_value): Add origtype parameter.  Change all callers.
26154         (digest_init): Likewise.
26155         (struct init_node): Add origtype field.
26156         (add_pending_init): Add origtype parameter.  Change all callers.
26157         (output_init_element): Likewise.
26158         (output_pending_init_elements): Pass origtype from init_node to
26159         output_init_element.
26160         (process_init_element): Pass origtype from c_expr to
26161         output_init_element.
26162         (c_finish_return): Add origtype parameter.  Change all callers.
26163         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
26164         caller.
26165         (sync_resolve_params): Likewise.
26166         (sync_resolve_return): Change params to first_param.  Change caller.
26167         (resolve_overloaded_builtins): Change params to VEC *.  Change
26168         callers.  Save first parameter around call to build_function_call_vec.
26169         * c-decl.c (finish_decl): Add origtype parameter.  Change all
26170         callers.  Call build_function_call_vec rather than
26171         build_function_call for cleanup.
26172         * c-tree.h: Update declarations.
26173         * c-common.h: Update declarations.
26174         * stub-objc.c (objc_rewrite_function_call): Change parameter from
26175         params to first_param.
26176         * target.h (struct gcc_target): Change resolve_overloaded_builtin
26177         params parameter from tree to void *.
26178         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26179         Change arglist parameter to have type void *, and to be a pointer
26180         to a VEC.
26181         * config/rs6000/rs6000-protos.h
26182         (altivec_resolve_overloaded_builtin): Update declaration.
26183         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
26184         fnargs parameter to have type void *, and to be a pointer to a
26185         VEC.  Call build_function_call_vec instead of
26186         build_function_call.
26187         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
26189 2009-04-20  Joey Ye  <joey.ye@intel.com>
26190             Xuepeng Guo  <xuepeng.guo@intel.com>
26191             H.J. Lu  <hongjiu.lu@intel.com>
26193         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
26195         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
26196         (IX86_LEA_PRIORITY): Likewise.
26197         (distance_non_agu_define): New function.
26198         (distance_agu_use): Likewise.
26199         (ix86_lea_for_add_ok): Likewise.
26200         (ix86_dep_by_shift_count): Likewise.
26202         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
26203         should split for LEA.
26205         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
26206         function.
26207         (ix86_dep_by_shift_count): Likewise.
26209 2009-04-20  Richard Guenther  <rguenther@suse.de>
26211         * expr.c (handled_component_p): Move ...
26212         * tree.h (handled_component_p): ... here.
26213         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
26214         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
26215         and REALPART_EXPR to be in one group.
26217 2009-04-20  Richard Guenther  <rguenther@suse.de>
26219         * basic-block.h (get_all_dominated_blocks): Declare.
26220         * dominance.c (get_all_dominated_blocks): New function.
26221         * tree-cfg.c (get_all_dominated_blocks): Remove.
26222         (remove_edge_and_dominated_blocks): Adjust.
26223         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
26224         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
26225         instead of recursing.
26227 2009-04-20  Doug Kwan  <dougkwan@google.com>
26229         * cgraph.h (cgraph_node_ptr): New type for vector functions.
26230         (struct cgraph_node_set_def): New type.
26231         (cgraph_node_set) New type. Also declare vector functions.
26232         (struct cgraph_node_set_element_def): New type.
26233         (cgraph_node_set_element): Ditto.
26234         (cgraph_node_set_iterator): New iterator type.
26235         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
26236         cgraph_node_set_remove, dump_cgraph_node_set,
26237         debug_cgraph_node_set): New prototypes.
26238         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
26239         cgraph_node_set_size): New inlines.
26240         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
26241         including cgraph.h.
26242         (struct ipa_opt_pass): Add struct cgraph_node_set_def
26243         argument to function 'write_summary'.
26244         * ipa.c: Include ggc.h.
26245         (hash_cgraph_node_set_element,
26246         eq_cgraph_node_set_element, cgraph_node_set_new,
26247         cgraph_node_set_add, cgraph_node_set_remove,
26248         cgraph_node_set_find, dump_cgraph_node_set,
26249         debug_cgraph_node_set): New functions.
26250         * Makefile.in (ipa.o): Add dependency on GGC_H.
26252 2009-04-20  Ira Rosen  <irar@il.ibm.com>
26254         PR tree-optimization/39675
26255         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
26256         check of the return code of vect_schedule_slp. Check that
26257         stmt_vec_info still exists for the statement, before checking its
26258         vectorization type.
26260 2009-04-20  Michael Matz  <matz@suse.de>
26262         * Makefile.in (generated_files): Take out $(simple_generated_c).
26264 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
26266         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
26267         (UINTPTR_TYPE):  Likewise.
26269 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26271         PR c/37481
26272         * c-typeck.c (digest_init): Check for initializing an array with a
26273         string literal.
26275 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26277         PR c/19771
26278         * c-semantics.c (pop_stmt_list): Propagate
26279         STATEMENT_LIST_HAS_LABEL to parent statement list.
26281 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
26283         * config/mips/mips.h (mips_tune_attr): New macro.
26284         * config/mips/mips.md (cpu): Use it.
26286 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
26288         PR c/38243
26289         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
26290         declaring a tag.
26292 2009-04-19  Diego Novillo  <dnovillo@google.com>
26294         * toplev.c (compile_file): Move call to coverage_finish ...
26295         * cgraphunit.c (ipa_passes): ... here.
26296         Call cgraph_process_new_functions.
26297         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
26298         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
26300 2009-04-19  Jan Hubicka  <jh@suse.cz>
26302         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
26303         cfun.
26304         (dump_cgraph_node): Dump can throw external flag.
26305         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
26307 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26309         PR c/32061
26310         PR c++/36954
26311         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
26312         * common.opt (Wlogical-op): Move from here...
26313         * c.opt (Wlogical-op): ... to here.
26314         * c-typeck.c (parser_build_binary_op): Update call to
26315         warn_logical_operator.
26316         * c-opts.c (c_common_post_options): Enable warn_logical_op with
26317         extra_warnings.
26318         * c-common.c (warn_logical_op): Update.
26319         * c-common.h (warn_logical_op): Update declaration.
26321 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26323         * tree.c (protected_set_expr_location): Fix formatting.
26325 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26327         PR c/27676
26328         * c-typeck.c (readonly_warning): new.
26329         (build_unary_op, build_modify_expr): Use readonly_warning for
26330         storing into something readonly but not const-qualified.
26332 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26334         PR c/22367
26335         * c-typeck.c (build_unary_op): Check for taking address of
26336         expression of type void.
26338 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
26340         PR c/35210
26341         * c-typeck.c (build_function_call): Check for calling a function
26342         with qualified void return types.  Call require_complete_type when
26343         generating a trap.
26345 2009-04-18  Jan Hubicka  <jh@suse.cz>
26347         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
26348         Set nothrow flag.
26349         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
26350         can_throw_external flag.
26351         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
26352         * ipa-pure-const.c (ignore_edge): New function.
26353         (propagate): Compute order for NOTHROW computation; set NOTHROWs
26354         only over can_throw_external edges.
26355         (local_pure_const): Add nothrow flag.
26356         * ipa-utils.c (searchc): Add ignore_edge callback.
26357         (ipa_utils_reduced_inorder): Add ignore_edge callback.
26358         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
26359         (set_nothrow_function_flags): Update cgraph.
26360         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
26362 2009-04-18  Richard Guenther  <rguenther@suse.de>
26364         PR middle-end/39804
26365         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
26366         (fold_stmt): ... this and ...
26367         (fold_stmt_inplace): ... this.
26368         (fold_stmt_1): Fold references in calls and asms.
26369         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
26371 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26373         * tree-vrp.c (ssa_name_nonzero_p): Remove.
26374         * tree.h: Remove the prototype for ssa_name_nonzero_p.
26376 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26378         * tree.c (function_args_count): Remove.
26379         * tree.h: Remove the prototype for function_args_count.
26381 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26383         * tree-iterator.c (expr_only): Remove.
26384         * tree.h: Remove the prototype for expr_only.
26386 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26388         * reginfo.c (cannot_change_mode_set_regs): Remove.
26389         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
26391 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
26393         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
26394         whether operands 0 and 1 overlaps.
26396 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26398         PR middle-end/36902
26399         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
26400         pointer. Use warning_at instead of warning.
26401         (search_for_addr_array): Likewise.
26402         (check_array_bounds): Likewise.
26403         (check_all_array_refs): Check that the incoming edge is not in the
26404         list of edges to be removed.
26405         (check_all_array_refs): Avoid the temporal pointer.
26406         (vrp_visit_cond_stmt): Fix typo.
26407         (simplify_switch_using_ranges): Handle the case where the switch
26408         index is an integer constant.
26410 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
26412         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
26414 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
26416         * doc/extend.texi, doc/invoke.texi: Fix typos.
26418 2009-04-17  Cary Coutant  <ccoutant@google.com>
26420         * tree-flow-inline.h (get_lineno): Fix inverted test.
26422 2009-04-17  Diego Novillo  <dnovillo@google.com>
26424         * tree-ssa-pre.c (create_expression_by_pieces): Remove
26425         assertion for AVAIL_OUT.
26427 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
26429         PR target/38627
26430         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
26431         * config/sh/linux-atomic.asm: Likewise.
26433 2009-04-17  Diego Novillo  <dnovillo@google.com>
26435         * except.c (debug_eh_tree): New.
26436         (struct eh_region, struct eh_status): Move ...
26437         * except.h: ... here.
26438         (add_type_for_runtime): Declare extern.
26439         (lookup_type_for_runtime): Likewise.
26440         (debug_eh_tree): Declare.
26441         * Makefile.in (GTFILES): List except.h before except.c
26443 2009-04-17  Diego Novillo  <dnovillo@google.com>
26445         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
26446         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
26447         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
26448         (find_vars_r): ... here.
26449         * tree-flow.h (find_referenced_vars_in): Declare.
26450         * tree-ssa-pre.c (create_expression_by_pieces): Assert
26451         that AVAIL_OUT exists for BLOCK.
26452         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
26453         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
26454         (tree-parloops.o): Likewise.
26456 2009-04-17  Simon Baldwin  <simonb@google.com>
26458         * toplev.c (default_tree_printer): Add handling for %E format.
26460 2009-04-17  Diego Novillo  <dnovillo@google.com>
26462         * tree-pretty-print.c (dump_generic_node): Add break after
26463         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
26464         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
26465         FUNCTION_TYPE together.  Call print_struct_decl when printing
26466         structures and TDF_SLIM is not given.
26467         (print_struct_decl): Fix logic for detecting recursion.
26469 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26471         PR 31567
26472         * gcc.c (create_at_file): New.
26473         (compile_input_file_p): New.
26474         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
26475         * main.c (main): Update call to toplev_main.
26476         * toplev.c (toplev_main): Change signature. Call expandargv.
26477         * toplev.h (toplev_main): Change signature.
26479 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26481         * dwarf2out.c (field_byte_offset): Use the type size as the field size
26482         if the latter is not constant.
26484 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
26486         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
26488 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26490         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
26491         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
26493 2009-04-17  Richard Guenther  <rguenther@suse.de>
26495         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26496         Handle component references view-converting an invariant address.
26498 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
26500         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
26501         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
26502         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
26503         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
26504         Use @deftypevr rather than @deftypevar.
26506 2009-04-17  Richard Guenther  <rguenther@suse.de>
26508         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
26509         (get_prop_source_stmt): Likewise.
26510         (can_propagate_from): Likewise.
26512 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
26514         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
26515         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
26516         (--with-multilib-list): Add default value.
26517         * configure: Regenerate.
26518         * Makefile.in (TM_ENDIAN_CONFIG): Define.
26519         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
26520         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
26521         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
26522         Don't add default cpu to multilib list unnecessarily, but do enable
26523         the relevant compiler option..
26524         Add support for --with-multilib-list=<blank> and
26525         --with-multilib-list=!<somelib> to supress unwanted multilibs.
26526         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
26527         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
26528         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
26529         TM_MULTILIB_CONFIG.
26530         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
26531         (MULTILIB_OSDIRNAMES): New variable.
26532         * config/sh/t-1e: Delete file.
26533         * config/sh/t-mlib-sh1: Delete file.
26534         * config/sh/t-mlib-sh2: Delete file.
26535         * config/sh/t-mlib-sh2a: Delete file.
26536         * config/sh/t-mlib-sh2a-nofpu: Delete file.
26537         * config/sh/t-mlib-sh2a-single: Delete file.
26538         * config/sh/t-mlib-sh2a-single-only: Delete file.
26539         * config/sh/t-mlib-sh2e: Delete file.
26540         * config/sh/t-mlib-sh3e: Delete file.
26541         * config/sh/t-mlib-sh4: Delete file.
26542         * config/sh/t-mlib-sh4-nofpu: Delete file.
26543         * config/sh/t-mlib-sh4-single: Delete file.
26544         * config/sh/t-mlib-sh4-single-only: Delete file.
26545         * config/sh/t-mlib-sh4a: Delete file.
26546         * config/sh/t-mlib-sh4a-nofpu: Delete file.
26547         * config/sh/t-mlib-sh4a-single: Delete file.
26548         * config/sh/t-mlib-sh4a-single-only: Delete file.
26549         * config/sh/t-mlib-sh4al: Delete file.
26550         * config/sh/t-mlib-sh5-32media: Delete file.
26551         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
26552         * config/sh/t-mlib-sh5-64media: Delete file.
26553         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
26554         * config/sh/t-mlib-sh5-compact: Delete file.
26555         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
26556         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
26557         * doc/install.texi (Options specification): Add
26558         --with-multilib-list and --with-endian.
26560 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
26562         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
26563         REVISION_c.
26564         (OBJS-common): Add plugin-version.o.
26565         (plugin-version.o): New.
26566         * gcc-plugin.h (plugin_gcc_version): New.
26567         (plugin_default_version_check): New.
26568         (plugin_init_func, plugin_init): Add version argument.
26569         * plugin-version.c: New.
26570         * plugin.c (str_plugin_gcc_version_name): New.
26571         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
26572         pass it to the init function.
26573         (plugin_default_version_check): New.
26575 2009-04-17  Richard Guenther  <rguenther@suse.de>
26577         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
26578         for decl-vs-decl disambiguation.
26580 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
26582         * config/s390/s390.h (s390_tune_attr): New macro definition.
26583         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
26585 2009-04-17  Richard Guenther  <rguenther@suse.de>
26587         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
26588         (fold_stmt_r): Likewise.
26589         (maybe_fold_reference): New function.
26590         (fold_gimple_assign): Handle cases fold_stmt_r did.
26591         (fold_stmt): Do not use fold_stmt_r.
26592         (fold_stmt_inplace): Likewise.
26594 2009-04-17  Richard Guenther  <rguenther@suse.de>
26596         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
26597         (record_equivalences_from_stmt): Remove useless checks and
26598         simplifications.
26599         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
26600         the type is already suitable.
26602 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
26604         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
26606 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
26608         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
26609         (CMPtype): Define as __gcc_CMPtype.
26611 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
26613         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
26614         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
26616 2009-04-17  Richard Guenther  <rguenther@suse.de>
26618         PR tree-optimization/39746
26619         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
26620         special-casing for builtins and static variable use/def.
26621         (call_may_clobber_ref_p_1): Likewise.
26623 2009-04-16  Ian Lance Taylor  <iant@google.com>
26625         * df.h: Include "timevar.h".
26626         (struct df_problem): Change tv_id field to timevar_id_t.
26627         * tree-pass.h: Include "timevar.h".
26628         (struct opt_pass): Change tv_id field to timevar_id_t.
26629         * timevar.h (timevar_id_t): Define TV_NONE.
26630         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
26631         TV_NONE rather than tv_id != 0.
26632         (execute_one_pass): Likewise.
26633         * Makefile.in (DF_H): Add $(TIMEVAR_H).
26634         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
26635         dependencies to $(TREE_PASS_H).
26636         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
26637         to TV_NONE.
26638         (pass_branch_target_load_optimize2): Likewise.
26639         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
26640         (pass_outof_cfg_layout_mode): Likewise.
26641         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
26642         (pass_rebuild_cgraph_edges): Likewise.
26643         (pass_remove_cgraph_callee_edges): Likewise.
26644         * df-core.c (pass_df_initialize_opt): Likewise.
26645         (pass_df_initialize_no_opt): Likewise.
26646         (pass_df_finish): Likewise.
26647         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
26648         * except.c (pass_set_nothrow_function_flags): Likewise.
26649         (pass_convert_to_eh_region_ranges): Likewise.
26650         * final.c (pass_compute_alignments): Likewise.
26651         * function.c (pass_instantiate_virtual_regs): Likewise.
26652         (pass_init_function): Likewise.
26653         (pass_leaf_regs): Likewise.
26654         (pass_match_asm_constraints): Likewise.
26655         * gimple-low.c (pass_lower_cf): Likewise.
26656         (pass_mark_used_blocks): Likewise.
26657         * init-regs.c (pass_initialize_regs): Likewise.
26658         * integrate.c (pass_initial_value_sets): Likewise.
26659         * ira.c (pass_ira): Likewise.
26660         * jump.c (pass_cleanup_barriers): Likewise.
26661         * omp-low.c (pass_expand_omp): Likewise.
26662         (pass_lower_omp): Likewise.
26663         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
26664         * recog.c (pass_split_all_insns): Likewise.
26665         (pass_split_after_reload): Likewise.
26666         (pass_split_before_regstack): Likewise.
26667         (pass_split_before_sched2): Likewise.
26668         (pass_split_for_shorten_branches): Likewise.
26669         * reginfo.c (pass_reginfo_init): Likewise.
26670         (pass_subregs_of_mode_init): Likewise.
26671         (pass_subregs_of_mode_finish): Likewise.
26672         * passes.c (pass_postreload): Likewise.
26673         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
26674         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
26675         (pass_warn_function_return): Likewise.
26676         (pass_warn_function_noreturn): Likewise.
26677         * tree-complex.c (pass_lower_complex): Likewise.
26678         (pass_lower_complex_O0): Likewise.
26679         * tree-if-conv.c (pass_if_conversion): Likewise.
26680         * tree-into-ssa.c (pass_build_ssa): Likewise.
26681         * tree-mudflap.c (pass_mudflap_1): Likewise.
26682         (pass_mudflap_2): Likewise.
26683         * tree-nomudflap.c (pass_mudflap_1): Likewise.
26684         (pass_mudflap_2): Likewise.
26685         * tree-nrv.c (pass_return_slot): Likewise.
26686         * tree-object-size.c (pass_object_sizes): Likewise.
26687         * tree-optimize.c (pass_all_optimizations): Likewise.
26688         (pass_early_local_passes): Likewise.
26689         (pass_all_early_optimizations): Likewise.
26690         (pass_cleanup_cfg): Likewise.
26691         (pass_cleanup_cfg_post_optimizing): Likewise.
26692         (pass_free_datastructures): Likewise.
26693         (pass_free_cfg_annotations): Likewise.
26694         (pass_fixup_cfg): Likewise.
26695         (pass_init_datastructures): Likewise.
26696         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
26697         (pass_late_warn_uninitialized): Likewise.
26698         (pass_update_address_taken): Likewise.
26699         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
26700         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
26701         (pass_cse_sincos): Likewise.
26702         (pass_convert_to_rsqrt): Likewise.
26703         * tree-ssa-structalias.c (pass_build_alias): Likewise.
26704         * tree-stdarg.c (pass_stdarg): Likewise.
26705         * tree-tailcall.c (pass_tail_recursion): Likewise.
26706         (pass_tail_calls): Likewise.
26707         * tree-vect-generic.c (pass_lower_vector): Likewise.
26708         (pass_lower_vector_ssa): Likewise.
26709         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
26711 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
26713         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
26714         XLR entry.
26715         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
26716         Handle -march=xlr.
26717         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
26718         logical and signext.
26720 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
26722         PR target/39767
26723         * config/sh/predicates.md (arith_operand): Check if the operand
26724         of TRUNCATE is a REG.
26726 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26728         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
26729         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
26731 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26733         * tree-iterator.c (tsi_split_statement_list_after,
26734         tsi_split_statement_list_before): Remove.
26735         * tree-iterator.h: Remove the prototypes for
26736         tsi_split_statement_list_after and tsi_split_statement_list_before.
26738 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26740         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
26741         * tree-ssa-propagate.h: Remove the prototype for
26742         stmt_makes_single_load.
26744 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26746         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
26747         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
26749 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26751         * tree-iterator.c (EXPR_LAST_BODY): Remove.
26753 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26755         * except.c (eh_region_outer_p): Remove.
26756         * except.h: Remove the prototype for eh_region_outer_p.
26758 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
26760         * function.c (current_function_assembler_name): Remove.
26761         * function.h: Remove the prototype for
26762         current_function_assembler_name.
26764 2009-04-16  Ian Lance Taylor  <iant@google.com>
26766         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
26767         (add_reg_note): Call alloc_reg_note.
26768         * rtl.h (alloc_reg_note): Declare.
26769         * combine.c (try_combine): Use alloc_reg_note.
26770         (recog_for_combine, move_deaths): Likewise.
26771         (distribute_notes): Use alloc_reg_note and add_reg_note.
26772         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
26773         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
26774         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
26776 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
26778         PR rtl-optimization/39762
26779         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
26780         ira_may_move_out_cost): Add comments about way of their usage.
26781         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
26783         * ira-conflicts.c (process_regs_for_copy): Use function
26784         ira_get_register_move_cost instead of global
26785         ira_register_move_cost.
26787         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
26788         color_pass, move_spill_restore, update_curr_costs): Ditto.
26790         * ira-lives.c (process_single_reg_class_operands): Ditto.
26792         * ira-emit.c (emit_move_list): Ditto.
26794         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
26795         (record_reg_classes): Ditto.  Use functions
26796         ira_get_register_move_cost and ira_get_may_move_cost instead of
26797         global vars ira_register_move_cost, ira_may_move_out_cost and
26798         ira_may_move_in_cost.
26799         (record_address_regs): Don't call ira_init_register_move_cost.
26800         Use function ira_get_may_move_cost instead of global
26801         ira_may_move_in_cost.
26802         (process_bb_node_for_hard_reg_moves): Use function
26803         ira_get_register_move_cost instead of global ira_register_move_cost.
26804         (ira_costs): Don't call ira_init_register_move_cost.
26806 2009-04-16  Richard Guenther  <rguenther@suse.de>
26808         * tree-cfg.c (verify_gimple_assign_binary):
26809         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
26810         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
26811         (create_general_new_stmt): Note that this function is broken.
26813 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26815         * common.opt (fhelp): Add Var(help_flag).
26816         * gcc-plugin.h (plugin_info): Add help.
26817         * plugin.c (plugin_name_args): Add help.
26818         (register_plugin_info): Set plugin->help.
26819         (print_help_one_plugin): New.
26820         (print_plugins_help): New.
26821         * plugin.h (print_plugins_help): New.
26822         * toplev.c (toplev_main): Call print_plugins_help if needed.
26824 2009-04-16  Richard Guenther  <rguenther@suse.de>
26826         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
26827         (gimple_ior_addresses_taken_1): New function.
26828         (gimple_ior_addresses_taken): Likewise.
26829         * gimple.h (struct gimple_statement_with_ops_base): Remove
26830         addresses_taken member.
26831         (gimple_ior_addresses_taken): Declare.
26832         (gimple_addresses_taken, gimple_addresses_taken_ptr,
26833         gimple_set_addresses_taken): Remove.
26834         * ipa-reference.c (mark_address): New function.
26835         (scan_stmt_for_static_refs): Use it for marking addresses taken.
26836         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
26837         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
26838         (gimple_add_to_addresses_taken): Remove.
26839         (get_tmr_operands): Call mark_address_taken.
26840         (get_asm_expr_operands): Likewise.
26841         (get_expr_operands): Likewise.
26842         (build_ssa_operands): Do not clear the addresses_taken bitmap.
26843         (free_stmt_operands): Do not free it.
26844         * tree-ssa.c (delete_tree_ssa): Likewise.
26845         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
26847 2009-04-16  Richard Guenther  <rguenther@suse.de>
26849         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
26850         (walk_stmt_load_store_ops): Likewise.
26851         * gimple.c (get_base_loadstore): New function.
26852         (walk_stmt_load_store_addr_ops): Likewise.
26853         (walk_stmt_load_store_ops): Likewise.
26854         * ipa-pure-const.c (check_op): Simplify.
26855         (check_load, check_store): New functions.
26856         (check_stmt): Use walk_stmt_load_store_ops.
26857         * ipa-reference.c (mark_load): Adjust signature.
26858         (mark_store): Likewise.
26859         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
26861 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26863         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
26864         (plugin_info): New.
26865         * opts.c (common_handle_option): Don't call print_version.
26866         * plugin.c (plugin_name_args): Add version.
26867         (register_plugin_info): New.
26868         (register_callback): Handle PLUGIN_INFO.
26869         (try_init_one_plugin): New.
26870         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
26871         if failed to init.
26872         (finalize_one_plugin): New.
26873         (finalize_plugins): New.
26874         (print_one_plugin): New.
26875         (print_plugins_versions): New.
26876         * plugin.h (print_plugins_versions): New.
26877         (finalize_plugins): New.
26878         * toplev.c (compile_file): Don't call initialize_plugins.
26879         (print_version): Call print_plugins_versions.
26880         (toplev_main): Call initialize_plugins. Print version if needed.
26881         Call finalize_plugins.
26883 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
26885         * common.opt (fversion): New.
26886         * gcc.c (print_version): New.
26887         (process_command): Don't print the version. Just set print_version.
26888         (main): Print version. Call subprocesses if print_version and
26889         verbose_flag are set.
26890         * opts.c (common_handle_option): Handle OPT_fversion.
26892 2009-04-16  Richard Guenther  <rguenther@suse.de>
26893             Ira Rosen  <irar@il.ibm.com>
26895         PR tree-optimization/39698
26896         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
26897         type of the reduction variable.  Only generate the def if
26898         it is needed.
26900         * omp-low.c (expand_omp_for_generic): When converting to a pointer
26901         make sure to first convert to an integer of the same precision.
26902         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
26903         the type of the evolution correctly in computing the new
26904         induction variable base.
26906 2009-04-16  Richard Guenther  <rguenther@suse.de>
26908         PR middle-end/39625
26909         * tree-cfg.c (make_blocks): Split statements with to-be
26910         abnormal SSA names on the lhs.
26912 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
26914         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
26915         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
26916         * c-typeck.c (really_start_incremental_init): Likewise.
26917         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
26918         (TARGET_INITIALIZER): Remove it.
26919         * target.h (struct target): Remove vector_opaque_p.
26920         * tree.c (build_opaque_vector_type): New.
26921         * tree.h (TYPE_VECTOR_OPAQUE): New.
26922         (build_opaque_vector_type): Declare.
26923         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
26924         * config/rs6000/rs6000.c (build_opaque_vector_type,
26925         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
26926         (rs6000_init_builtins): Use build_opaque_vector_type for
26927         opaque_V4SI_type_node.
26929 2009-04-15  Catherine Moore  <clm@codesourcery.com>
26931         * debug.h (set_name):  Declare.
26932         * dwarf2out.c (dwarf2out_set_name): Declare.
26933         (dwarf2_debug_hooks): Add set_name.
26934         (find_AT_string): New.
26935         (add_AT_string): Call find_AT_string.
26936         (dwarf2out_set_name): New.
26937         * cp/decl.c (grokdeclarator): Call set_name.
26938         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
26939         * debug.c (do_nothing_debug_hooks):  Likewise.
26940         * dbxout.c (dbx_debug_hooks): Likewise.
26941         * sdbout.c (sdb_debug_hooks): Likewise.
26943 2009-04-15  Michael Eager  <eager@eagercon.com>
26945         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
26946         reg for single-precision FPU.
26947         * config/rs6000/rs6000.md (movsi_internal1): Only for
26948         !TARGET_SINGLE_FPU.
26949         (movsi_internal1_single): New. Add pattern to move SI values to/from
26950         single-precision FP regs.
26952 2009-04-15  Richard Guenther  <rguenther@suse.de>
26954         * omp-low.c (lower_rec_input_clauses): Build correct address
26955         expressions.
26956         (expand_omp_for_generic): Fix multiplication type.
26957         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
26958         (generate_memset_zero): Fix types.
26959         * tree-profile.c (prepare_instrumented_value): Correctly
26960         widen a pointer.
26962 2009-04-15  Ian Lance Taylor  <iant@google.com>
26964         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
26965         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
26966         for -Wall and for -Wc++-compat.
26967         (c_common_post_options): For C++, set warn_enum_compare if not
26968         already set.
26969         * c-tree.h (struct c_expr): Add field original_type.
26970         (build_external_ref): Update declaration.
26971         * c-parser.c (c_parser_braced_init): Set original_type.
26972         (c_parser_initelt): Likewise.
26973         (c_parser_expr_no_commas): Likewise.
26974         (c_parser_conditional_expression): Likewise.
26975         (c_parser_cast_expression): Likewise.
26976         (c_parser_unary_expression): Likewise.  Pull setting of
26977         original_code to top of function.
26978         (c_parser_sizeof_expression): Set original_type.
26979         (c_parser_alignof_expression): Likewise.
26980         (c_parser_postfix_expression): Likewise.  Pull setting of
26981         original_code to top of function.
26982         (c_parser_postfix_expression_after_paren_type): Set original_type.
26983         (c_parser_postfix_expression_after_primary): Likewise.
26984         (c_parser_expression): Likewise.
26985         * c-typeck.c (build_external_ref): Add type parameter.  Change all
26986         callers.
26987         (c_expr_sizeof_expr): Set original_type field.
26988         (parser_build_unary_op): Likewise.
26989         (parser_build_binary_op): Likewise.  Optionally warn about
26990         comparisons of enums of different types.
26991         (digest_init): Set original_type field.
26992         (really_start_incremental_init): Likewise.
26993         (push_init_level, pop_init_level): Likewise.
26994         * doc/invoke.texi (Warning Options): -Wenum-compare now
26995         supported in C.
26997 2009-04-15  Richard Guenther  <rguenther@suse.de>
26999         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
27000         out a necessary conversion.
27001         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
27002         names we didn't value number.
27003         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
27005 2009-04-15  Richard Guenther  <rguenther@suse.de>
27007         PR tree-optimization/39764
27008         * tree-ssa-ccp.c (get_value): Canonicalize value with
27009         canonicalize_float_value.
27011 2009-04-15  Jan Hubicka  <jh@suse.cz>
27013         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
27014         Wrong version of patch.
27016 2009-04-15  Jan Hubicka  <jh@suse.cz>
27018         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
27020 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
27022         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
27023         our distinct integral and vector types.
27025 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
27027         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
27028         * init.c (build_vtbl_address): Remove call to assemble_external.
27030 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
27032         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
27033         output for other floating point modes.
27035 2009-04-14  Diego Novillo  <dnovillo@google.com>
27037         * diagnostic.c (diagnostic_report_diagnostic): Do not
27038         warn about loaded plugins for DK_ERROR and DK_WARNING.
27039         * c-decl.c (declspecs_add_type): Move call to
27040         invoke_plugin_callbacks ...
27041         * c-parser.c (c_parser_declspecs): ... here.
27042         * plugin.c (dump_active_plugins): Tidy output.
27044 2009-04-14  Diego Novillo  <dnovillo@google.com>
27045             Le-Chun Wu  <lcwu@google.com>
27047         * configure.ac: Add --enable-plugin support.
27048         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
27049         * Makefile.in (PLUGIN_H): Define.
27050         Export ENABLE_PLUGIN and GMPINC to site.exp.
27051         Add PLUGINLIBS to link command.
27052         Add/modify dependencies for plugin.o and files including plugin.h.
27053         (plugin.o): New.
27054         * config.in: Regenerate.
27056         * opts.c (common_handle_option): Handle OPT_fplugin_ and
27057         OPT_fplugin_arg_.
27059 2009-04-14  Le-Chun Wu  <lcwu@google.com>
27061         * tree-pass.h (register_one_dump_file): Add a prototype for
27062         register_one_dump_file.
27063         * toplev.c (compile_file): Call initialize_plugins.
27064         (do_compile): Call invoke_plugin_callbacks.
27065         (toplev_main): Call invoke_plugin_callbacks.
27066         * common.opt: Add -fplugin= and -fplugin-arg-.
27067         * gcc-plugin.h: New public header file for plugins to include.
27068         * plugin.c: New source file.
27069         * plugin.h: New internal header file.
27070         * passes.c (register_one_dump_file): Make it external.
27072         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
27074 2009-04-14  Diego Novillo  <dnovillo@google.com>
27076         * doc/plugins.texi: New.
27077         * doc/gccint.texi: Add reference to Plugins chapter.
27078         * doc/invoke.texi: Document -fplugin and -fplugin-arg
27079         * diagnostic.c (diagnostic_report_diagnostic): Warn about
27080         loaded plugins, if any.
27081         * timevar.def (TV_PLUGIN_INIT): Define.
27082         (TV_PLUGIN_RUN): Define.
27083         * plugin.c: Include timevar.h
27084         (plugins_active_p): New.
27085         (dump_active_plugins): New.
27086         (debug_active_plugins): New.
27088 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
27090         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
27091         library paths.
27092         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
27094 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
27096         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
27097         the same as a minus without a shift.
27099 2009-04-14  Nick Clifton  <nickc@redhat.com>
27101         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
27102         comparisons with small integers will always produce a short
27103         branch.
27105 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
27107         Merge:
27108         2008-12-19  Diego Novillo  <dnovillo@google.com>
27110         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
27112 2009-04-14  Richard Guenther  <rguenther@suse.de>
27114         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
27115         verification.
27116         (verify_gimple_assign_binary): Likewise.  Handle shifts and
27117         rotates correctly.
27118         (verify_gimple_phi): Print the mismatched argument position.
27119         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
27120         Fix types.
27121         (vect_update_init_of_dr): Likewise.
27122         * matrix-reorg.c (transform_access_sites): Do what the
27123         comment suggests.
27124         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
27126 2009-04-13  Michael Eager  <eager@eagercon.com>
27128         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
27129         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
27130         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
27131         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
27132         remove duplicate config
27134 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
27136         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
27137         file_name:line_number type locator of the call site.
27139 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
27141         * genautomata.c: Put blank after comma.
27142         (automaton_decls): New.
27143         (struct unit_usage): Add comments to member next.
27144         (store_alt_unit_usage): Keep the list ordered.
27145         (unit_present_on_list_p, equal_alternatives_p): New.
27146         (check_regexp_units_distribution): Check units distribution
27147         correctness correctly.
27148         (main): Don't write automata if error is found.  Return correct
27149         exit code.
27151         * config/m68k/cf.md (cfv4_ds): Remove.
27152         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
27153         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
27155         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
27156         power4-load-ext, power4-store, power4-store-update,
27157         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
27158         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
27159         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
27160         power4-sqrt, power4-isync): Modify reservation to make correct
27161         unit distribution to automata.
27163         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
27164         power5-store-update, power5-two, power5-three, power5-lmul,
27165         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
27167 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
27169         * except.c (pass_set_nothrow_function_flags): Set name and add
27170         TODO_dump_func.
27171         (set_nothrow_function_flags): Mention in the dump file when
27172         changing a function to nothrow.
27174 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
27176         PR/39066
27177         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
27178         instead of unsigned long.
27180 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27182         * config/arm/arm.c (return_used_this_function): Remove.
27183         (arm_output_function_prologue): Remove use of
27184         return_used_this_function.
27185         (output_return_instruction): Replace use of
27186         return_used_this_function
27187         by cfun->machine->return_used_this_function.
27188         (arm_output_epilogue): Likewise.
27189         (arm_output_function_epilogue): Likewise.
27190         (thumb_unexpanded_epilogue): Likewise.
27191         * config/arm/arm.h (struct machine_function):
27192         New member return_used_this_function.
27194 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
27196         * doc/install.texi: Correct description of default directory for
27197         --with-gxx-include-dir.
27199 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
27201         * fold-const.c (build_range_check): Properly deal with enumeral and
27202         boolean base types.
27204 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27206         * doc/invoke.texi (max_gcse_passes): Remove documentation.
27207         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
27208         * params.h (MAX_GCSE_PASSES): Remove.
27209         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
27210         in sequence.  Remove ability to run multiple passes.
27211         (bypass_jumps): Report run as third CPROP pass.
27213 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
27215         PR middle-end/39651
27216         * except.c (can_throw_external): Look at each insn in a SEQUENCE
27217         when deciding whether the whole SEQUENCE can throw.
27219 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
27221         PR target/39740
27222         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
27223         offseted label references.
27225 2009-04-11  Jan Hubicka  <jh@suse.cz>
27227         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
27229 2009-04-11  Richard Guenther  <rguenther@suse.de>
27231         PR middle-end/39732
27232         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
27233         return variables as TREE_ADDRESSABLE.
27235 2009-04-11  Richard Guenther  <rguenther@suse.de>
27237         PR tree-optimization/39713
27238         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
27239         reference trees have SSA_NAME operands.
27241 2009-04-11  Richard Guenther  <rguenther@suse.de>
27243         PR c/39712
27244         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
27245         address expressions.
27247 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
27249         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
27250         match changes in Cygwin 1.7
27251         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
27252         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
27254 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27256         PR tree-optimization/39701
27257         * doc/invoke.texi (Optimization Options): Document change in
27258         meaning and initialization of -fdelete-null-pointer-checks.
27260 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27262         PR middle-end/39701
27263         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
27265         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
27266         here.
27268         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
27270 2009-04-10  Chao-ying Fu  <fu@mips.com>
27272         * doc/tm.texi (Instruction Output): Document
27273         TARGET_ASM_FINAL_POSTSCAN_INSN.
27274         * target.h (final_postscan_insn): New field in asm_out.
27275         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27276         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
27277         * final.c (final_scan_insn): Call
27278         targetm.asm_out.final_postscan_insn after outputting
27279         an asm macro and a normal instruction.
27281         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
27282         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
27283         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
27284         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
27285         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
27287 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
27289         PR middle-end/39701
27290         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
27291         variables as non-NULL even with -fdelete-null-pointer-checks.
27293 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27295         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
27297 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
27299         PR target/39678
27300         * config/i386/i386.c (classify_argument): Handle SCmode with
27301         (bit_offset % 64) != 0.
27303 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
27305         * doc/invoke.texi (Optimize Options): Add cross-reference to
27306         -Q --help=optimizers examples.
27308 2009-04-10  Ben Elliston  <bje@au.ibm.com>
27310         PR target/36800
27311         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
27312         regalign for the reg == fpr and TDmode case.
27314 2009-04-09  David Ayers  <ayers@fsfe.org>
27316         PR objc/29200
27317         * objc/objc-act.c (warn_with_method): Remove helper function.
27318         (check_duplicates): Call warning and inform directly.
27319         (really_start_method): Likewise.
27321 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27323         * expmed.c (expand_divmod): Always use a comparison for a division
27324         by a large unsigned integer.
27326         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
27327         for things others than variables or functions as nonzero.
27329 2009-04-09  Nick Clifton  <nickc@redhat.com>
27331         * unwind-compat.c: Change copyright header to refer to version
27332         3 of the GNU General Public License with version 3.1 of the
27333         GCC Runtime Library Exception and to point readers at the
27334         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
27335         * config/alpha/crtfastmath.c: Likewise.
27336         * config/alpha/linux-unwind.h: Likewise.
27337         * config/alpha/qrnnd.asm: Likewise.
27338         * config/alpha/vms-crt0-64.c: Likewise.
27339         * config/alpha/vms-crt0.c: Likewise.
27340         * config/alpha/vms-dwarf2.asm: Likewise.
27341         * config/alpha/vms-dwarf2eh.asm: Likewise.
27342         * config/alpha/vms-psxcrt0-64.c: Likewise.
27343         * config/alpha/vms-psxcrt0.c: Likewise.
27344         * config/alpha/vms_tramp.asm: Likewise.
27345         * config/arc/initfini.c: Likewise.
27346         * config/arc/lib1funcs.asm: Likewise.
27347         * config/arm/bpabi-v6m.S: Likewise.
27348         * config/arm/bpabi.S: Likewise.
27349         * config/arm/bpabi.c: Likewise.
27350         * config/arm/crti.asm: Likewise.
27351         * config/arm/crtn.asm: Likewise.
27352         * config/arm/ieee754-df.S: Likewise.
27353         * config/arm/ieee754-sf.S: Likewise.
27354         * config/arm/lib1funcs.asm: Likewise.
27355         * config/arm/libunwind.S: Likewise.
27356         * config/arm/linux-atomic.c: Likewise.
27357         * config/arm/mmintrin.h: Likewise.
27358         * config/arm/pr-support.c: Likewise.
27359         * config/arm/unaligned-funcs.c: Likewise.
27360         * config/arm/unwind-arm.c: Likewise.
27361         * config/arm/unwind-arm.h: Likewise.
27362         * config/avr/libgcc.S: Likewise.
27363         * config/bfin/crti.s: Likewise.
27364         * config/bfin/crtlibid.s: Likewise.
27365         * config/bfin/crtn.s: Likewise.
27366         * config/bfin/lib1funcs.asm: Likewise.
27367         * config/bfin/linux-unwind.h: Likewise.
27368         * config/cris/arit.c: Likewise.
27369         * config/cris/cris_abi_symbol.c: Likewise.
27370         * config/darwin-64.c: Likewise.
27371         * config/darwin-crt2.c: Likewise.
27372         * config/darwin-crt3.c: Likewise.
27373         * config/darwin.h: Likewise.
27374         * config/dbxelf.h: Likewise.
27375         * config/dfp-bit.c: Likewise.
27376         * config/dfp-bit.h: Likewise.
27377         * config/elfos.h: Likewise.
27378         * config/fixed-bit.c: Likewise.
27379         * config/fixed-bit.h: Likewise.
27380         * config/fp-bit.c: Likewise.
27381         * config/fp-bit.h: Likewise.
27382         * config/fr30/crti.asm: Likewise.
27383         * config/fr30/crtn.asm: Likewise.
27384         * config/fr30/lib1funcs.asm: Likewise.
27385         * config/freebsd-spec.h: Likewise.
27386         * config/frv/cmovd.c: Likewise.
27387         * config/frv/cmovh.c: Likewise.
27388         * config/frv/cmovw.c: Likewise.
27389         * config/frv/frvbegin.c: Likewise.
27390         * config/frv/frvend.c: Likewise.
27391         * config/frv/lib1funcs.asm: Likewise.
27392         * config/glibc-stdint.h: Likewise.
27393         * config/h8300/clzhi2.c: Likewise.
27394         * config/h8300/crti.asm: Likewise.
27395         * config/h8300/crtn.asm: Likewise.
27396         * config/h8300/ctzhi2.c: Likewise.
27397         * config/h8300/fixunssfsi.c: Likewise.
27398         * config/h8300/lib1funcs.asm: Likewise.
27399         * config/h8300/parityhi2.c: Likewise.
27400         * config/h8300/popcounthi2.c: Likewise.
27401         * config/i386/ammintrin.h: Likewise.
27402         * config/i386/att.h: Likewise.
27403         * config/i386/avxintrin.h: Likewise.
27404         * config/i386/biarch64.h: Likewise.
27405         * config/i386/bmmintrin.h: Likewise.
27406         * config/i386/cpuid.h: Likewise.
27407         * config/i386/cross-stdarg.h: Likewise.
27408         * config/i386/crtfastmath.c: Likewise.
27409         * config/i386/crtprec.c: Likewise.
27410         * config/i386/cygming-crtbegin.c: Likewise.
27411         * config/i386/cygming-crtend.c: Likewise.
27412         * config/i386/cygwin.asm: Likewise.
27413         * config/i386/emmintrin.h: Likewise.
27414         * config/i386/gmm_malloc.h: Likewise.
27415         * config/i386/gthr-win32.c: Likewise.
27416         * config/i386/i386.h: Likewise.
27417         * config/i386/immintrin.h: Likewise.
27418         * config/i386/linux-unwind.h: Likewise.
27419         * config/i386/linux64.h: Likewise.
27420         * config/i386/mm3dnow.h: Likewise.
27421         * config/i386/mmintrin-common.h: Likewise.
27422         * config/i386/mmintrin.h: Likewise.
27423         * config/i386/nmmintrin.h: Likewise.
27424         * config/i386/pmm_malloc.h: Likewise.
27425         * config/i386/pmmintrin.h: Likewise.
27426         * config/i386/smmintrin.h: Likewise.
27427         * config/i386/sol2-c1.asm: Likewise.
27428         * config/i386/sol2-ci.asm: Likewise.
27429         * config/i386/sol2-cn.asm: Likewise.
27430         * config/i386/sol2-gc1.asm: Likewise.
27431         * config/i386/tmmintrin.h: Likewise.
27432         * config/i386/unix.h: Likewise.
27433         * config/i386/w32-unwind.h: Likewise.
27434         * config/i386/wmmintrin.h: Likewise.
27435         * config/i386/x86-64.h: Likewise.
27436         * config/i386/x86intrin.h: Likewise.
27437         * config/i386/xmmintrin.h: Likewise.
27438         * config/ia64/crtbegin.asm: Likewise.
27439         * config/ia64/crtend.asm: Likewise.
27440         * config/ia64/crtfastmath.c: Likewise.
27441         * config/ia64/crti.asm: Likewise.
27442         * config/ia64/crtn.asm: Likewise.
27443         * config/ia64/fde-glibc.c: Likewise.
27444         * config/ia64/lib1funcs.asm: Likewise.
27445         * config/ia64/linux-unwind.h: Likewise.
27446         * config/ia64/quadlib.c: Likewise.
27447         * config/ia64/unwind-ia64.c: Likewise.
27448         * config/linux.h: Likewise.
27449         * config/m32c/m32c-lib1.S: Likewise.
27450         * config/m32c/m32c-lib2-trapv.c: Likewise.
27451         * config/m32c/m32c-lib2.c: Likewise.
27452         * config/m32r/initfini.c: Likewise.
27453         * config/m68hc11/larith.asm: Likewise.
27454         * config/m68hc11/m68hc11-crt0.S: Likewise.
27455         * config/m68k/cf.md: Likewise.
27456         * config/m68k/crti.s: Likewise.
27457         * config/m68k/crtn.s: Likewise.
27458         * config/m68k/lb1sf68.asm: Likewise.
27459         * config/m68k/linux-unwind.h: Likewise.
27460         * config/mcore/crti.asm: Likewise.
27461         * config/mcore/crtn.asm: Likewise.
27462         * config/mcore/lib1.asm: Likewise.
27463         * config/mips/linux-unwind.h: Likewise.
27464         * config/mips/loongson.h: Likewise.
27465         * config/mips/mips16.S: Likewise.
27466         * config/mmix/crti.asm: Likewise.
27467         * config/mmix/crtn.asm: Likewise.
27468         * config/pa/fptr.c: Likewise.
27469         * config/pa/hpux-unwind.h: Likewise.
27470         * config/pa/lib2funcs.asm: Likewise.
27471         * config/pa/linux-atomic.c: Likewise.
27472         * config/pa/linux-unwind.h: Likewise.
27473         * config/pa/milli64.S: Likewise.
27474         * config/pa/quadlib.c: Likewise.
27475         * config/pa/stublib.c: Likewise.
27476         * config/picochip/libgccExtras/adddi3.asm: Likewise.
27477         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
27478         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
27479         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
27480         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
27481         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
27482         * config/picochip/libgccExtras/divmod15.asm: Likewise.
27483         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
27484         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
27485         * config/picochip/libgccExtras/longjmp.asm: Likewise.
27486         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
27487         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
27488         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
27489         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
27490         * config/picochip/libgccExtras/setjmp.asm: Likewise.
27491         * config/picochip/libgccExtras/subdi3.asm: Likewise.
27492         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
27493         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
27494         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
27495         * config/rs6000/750cl.h: Likewise.
27496         * config/rs6000/altivec.h: Likewise.
27497         * config/rs6000/biarch64.h: Likewise.
27498         * config/rs6000/crtresfpr.asm: Likewise.
27499         * config/rs6000/crtresgpr.asm: Likewise.
27500         * config/rs6000/crtresxfpr.asm: Likewise.
27501         * config/rs6000/crtresxgpr.asm: Likewise.
27502         * config/rs6000/crtsavfpr.asm: Likewise.
27503         * config/rs6000/crtsavgpr.asm: Likewise.
27504         * config/rs6000/darwin-asm.h: Likewise.
27505         * config/rs6000/darwin-fallback.c: Likewise.
27506         * config/rs6000/darwin-fpsave.asm: Likewise.
27507         * config/rs6000/darwin-ldouble.c: Likewise.
27508         * config/rs6000/darwin-tramp.asm: Likewise.
27509         * config/rs6000/darwin-unwind.h: Likewise.
27510         * config/rs6000/darwin-vecsave.asm: Likewise.
27511         * config/rs6000/darwin-world.asm: Likewise.
27512         * config/rs6000/e500crtres32gpr.asm: Likewise.
27513         * config/rs6000/e500crtres64gpr.asm: Likewise.
27514         * config/rs6000/e500crtres64gprctr.asm: Likewise.
27515         * config/rs6000/e500crtrest32gpr.asm: Likewise.
27516         * config/rs6000/e500crtrest64gpr.asm: Likewise.
27517         * config/rs6000/e500crtresx32gpr.asm: Likewise.
27518         * config/rs6000/e500crtresx64gpr.asm: Likewise.
27519         * config/rs6000/e500crtsav32gpr.asm: Likewise.
27520         * config/rs6000/e500crtsav64gpr.asm: Likewise.
27521         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
27522         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
27523         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
27524         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
27525         * config/rs6000/eabi-ci.asm: Likewise.
27526         * config/rs6000/eabi-cn.asm: Likewise.
27527         * config/rs6000/eabi.asm: Likewise.
27528         * config/rs6000/linux-unwind.h: Likewise.
27529         * config/rs6000/linux64.h: Likewise.
27530         * config/rs6000/paired.h: Likewise.
27531         * config/rs6000/paired.md: Likewise.
27532         * config/rs6000/ppc64-fp.c: Likewise.
27533         * config/rs6000/ppu_intrinsics.h: Likewise.
27534         * config/rs6000/rs6000.h: Likewise.
27535         * config/rs6000/si2vmx.h: Likewise.
27536         * config/rs6000/sol-ci.asm: Likewise.
27537         * config/rs6000/sol-cn.asm: Likewise.
27538         * config/rs6000/spe.h: Likewise.
27539         * config/rs6000/spu2vmx.h: Likewise.
27540         * config/rs6000/sysv4.h: Likewise.
27541         * config/rs6000/tramp.asm: Likewise.
27542         * config/rs6000/vec_types.h: Likewise.
27543         * config/s390/linux-unwind.h: Likewise.
27544         * config/s390/tpf-unwind.h: Likewise.
27545         * config/score/crti.asm: Likewise.
27546         * config/score/crtn.asm: Likewise.
27547         * config/sh/crt1.asm: Likewise.
27548         * config/sh/crti.asm: Likewise.
27549         * config/sh/crtn.asm: Likewise.
27550         * config/sh/divtab-sh4-300.c: Likewise.
27551         * config/sh/divtab-sh4.c: Likewise.
27552         * config/sh/divtab.c: Likewise.
27553         * config/sh/lib1funcs-4-300.asm: Likewise.
27554         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
27555         * config/sh/lib1funcs.asm: Likewise.
27556         * config/sh/lib1funcs.h: Likewise.
27557         * config/sh/linux-atomic.asm: Likewise.
27558         * config/sh/linux-unwind.h: Likewise.
27559         * config/sh/shmedia.h: Likewise.
27560         * config/sh/sshmedia.h: Likewise.
27561         * config/sh/ushmedia.h: Likewise.
27562         * config/sparc/crtfastmath.c: Likewise.
27563         * config/sparc/linux-unwind.h: Likewise.
27564         * config/sparc/sol2-c1.asm: Likewise.
27565         * config/sparc/sol2-ci.asm: Likewise.
27566         * config/sparc/sol2-cn.asm: Likewise.
27567         * config/spu/divmodti4.c: Likewise.
27568         * config/spu/divv2df3.c: Likewise.
27569         * config/spu/float_disf.c: Likewise.
27570         * config/spu/float_unsdidf.c: Likewise.
27571         * config/spu/float_unsdisf.c: Likewise.
27572         * config/spu/float_unssidf.c: Likewise.
27573         * config/spu/mfc_multi_tag_release.c: Likewise.
27574         * config/spu/mfc_multi_tag_reserve.c: Likewise.
27575         * config/spu/mfc_tag_release.c: Likewise.
27576         * config/spu/mfc_tag_reserve.c: Likewise.
27577         * config/spu/mfc_tag_table.c: Likewise.
27578         * config/spu/multi3.c: Likewise.
27579         * config/spu/spu_internals.h: Likewise.
27580         * config/spu/spu_intrinsics.h: Likewise.
27581         * config/spu/spu_mfcio.h: Likewise.
27582         * config/spu/vec_types.h: Likewise.
27583         * config/spu/vmx2spu.h: Likewise.
27584         * config/stormy16/stormy16-lib2.c: Likewise.
27585         * config/svr4.h: Likewise.
27586         * config/sync.c: Likewise.
27587         * config/v850/lib1funcs.asm: Likewise.
27588         * config/vxlib-tls.c: Likewise.
27589         * config/vxlib.c: Likewise.
27590         * config/vxworks-dummy.h: Likewise.
27591         * config/xtensa/crti.asm: Likewise.
27592         * config/xtensa/crtn.asm: Likewise.
27593         * config/xtensa/ieee754-df.S: Likewise.
27594         * config/xtensa/ieee754-sf.S: Likewise.
27595         * config/xtensa/lib1funcs.asm: Likewise.
27596         * config/xtensa/lib2funcs.S: Likewise.
27597         * config/xtensa/linux-unwind.h: Likewise.
27598         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
27599         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
27600         * coretypes.h: Likewise.
27601         * crtstuff.c: Likewise.
27602         * defaults.h: Likewise.
27603         * dwarf2.h: Likewise.
27604         * emutls.c: Likewise.
27605         * gbl-ctors.h: Likewise.
27606         * gcov-io.h: Likewise.
27607         * ginclude/float.h: Likewise.
27608         * ginclude/iso646.h: Likewise.
27609         * ginclude/stdarg.h: Likewise.
27610         * ginclude/stdbool.h: Likewise.
27611         * ginclude/stddef.h: Likewise.
27612         * ginclude/stdfix.h: Likewise.
27613         * ginclude/stdint-gcc.h: Likewise.
27614         * ginclude/tgmath.h: Likewise.
27615         * gthr-aix.h: Likewise.
27616         * gthr-dce.h: Likewise.
27617         * gthr-gnat.c: Likewise.
27618         * gthr-gnat.h: Likewise.
27619         * gthr-lynx.h: Likewise.
27620         * gthr-mipssde.h: Likewise.
27621         * gthr-nks.h: Likewise.
27622         * gthr-posix.c: Likewise.
27623         * gthr-posix.h: Likewise.
27624         * gthr-posix95.h: Likewise.
27625         * gthr-rtems.h: Likewise.
27626         * gthr-single.h: Likewise.
27627         * gthr-solaris.h: Likewise.
27628         * gthr-tpf.h: Likewise.
27629         * gthr-vxworks.h: Likewise.
27630         * gthr-win32.h: Likewise.
27631         * gthr.h: Likewise.
27632         * libgcc2.c: Likewise.
27633         * libgcc2.h: Likewise.
27634         * libgcov.c: Likewise.
27635         * tsystem.h: Likewise.
27636         * typeclass.h: Likewise.
27637         * unwind-c.c: Likewise.
27638         * unwind-compat.h: Likewise.
27639         * unwind-dw2-fde-compat.c: Likewise.
27640         * unwind-dw2-fde-darwin.c: Likewise.
27641         * unwind-dw2-fde-glibc.c: Likewise.
27642         * unwind-dw2-fde.c: Likewise.
27643         * unwind-dw2-fde.h: Likewise.
27644         * unwind-dw2.c: Likewise.
27645         * unwind-dw2.h: Likewise.
27646         * unwind-generic.h: Likewise.
27647         * unwind-pe.h: Likewise.
27648         * unwind-sjlj.c: Likewise.
27649         * unwind.inc: Likewise.
27650         * config/arm/neon-gen.ml: Change generated copyright header to
27651         refer to version 3 of the GNU General Public License with
27652         version 3.1 of the GCC Runtime Library Exception and to point
27653         readers at the COPYING3 and COPYING3.RUNTIME files and the
27654         FSF's license web page.
27655         * config/arm/arm_neon.h: Regenerate.
27657 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
27659         * config/cris/cris.md: Change copyright header to refer to version
27660         3 of the GNU General Public License.
27661         * doc/install.texi2html: Change copyright header to refer to version
27662         3 of the GNU General Public License and to point readers at the
27663         COPYING3 file and the FSF's license web page.
27664         * config/vax/linux.h: Likewise.
27666 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
27668         * config/i386/i386.md (cmpcc): New.
27669         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
27670         (sync_compare_and_swap_cc*): Delete.
27672         * config/s390/s390.c (s390_compare_emitted): Remove.
27673         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
27674         s390_compare_emitted used to be handled.  Assert that modes match.
27675         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
27676         refer to sync_compare_and_swap_ccsi.
27677         * config/s390/s390.h (s390_compare_emitted): Remove.
27678         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
27679         instead of s390_compare_emitted.
27680         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
27681         instead of s390_compare_emitted.
27682         * config/s390/s390.md (cmpcc): New.
27683         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
27684         CC_REGNUM, do not pretend it's set.
27685         (sync_compare_and_swap_cc*): Delete.
27686         * config/s390/predicates.md (cc_reg_operand): New.
27688         * expr.c (sync_compare_and_swap_cc): Delete.
27689         * optabs.h (sync_compare_and_swap_cc): Delete.
27690         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
27691         is being used with can_compare_p.
27692         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
27693         (find_cc_set): New.
27694         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
27695         look for a MODE_CC set instead.  Use emit_store_flag.
27696         (expand_compare_and_swap_loop): Likewise, with some additional
27697         complication to avoid a force_reg when useless.  Use
27698         emit_cmp_and_jump_insns.
27699         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
27700         * doc/md.texi (sync_compare_and_swap_cc): Merge with
27701         sync_compare_and_swap documentation.
27703 2009-04-09  Jan Hubicka  <jh@suse.cz>
27705         * except.c (find_prev_try): Break out from ....
27706         (duplicate_eh_regions): ... here; properly update prev_try pointers
27707         when duplication part of tree.
27708         (dump_eh_tree): Improve dumping.
27709         (verify_eh_region): New.
27710         (verify_eh_tree): Use it.
27712 2009-04-06  Richard Guenther  <rguenther@suse.de>
27714         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
27715         &ARRAY addresses by adjusting their types and prepending
27716         a conversion.
27717         * tree-cfg.c (verify_gimple_assign_single): Verify that
27718         addresses are correct.
27720 2009-04-09  Richard Guenther  <rguenther@suse.de>
27722         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
27723         indices into an array reference if possible.
27724         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
27725         Fold POINTER_PLUS_EXPR statements with invariant address.
27727 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
27729         PR target/39634
27730         * config.gcc (powerpc64-*-linux*): Always build biarch.
27732 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
27734         PR c/39613
27735         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
27736         it and pedwarn if this results in an INTEGER_CST.
27738 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27740         * doc/install.texi: Update minimum GMP version.  Remove obsolete
27741         text in MPFR section.
27743 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
27745         * dwarf2out.c (class_scope_p): New static inline.
27746         (class_or_namespace_scope_p): Use it.
27747         (gen_variable_die): Use DW_TAG_member tag for static data member
27748         declarations instead of DW_TAG_variable.
27750         PR middle-end/39573
27751         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
27752         variables.
27754 2009-04-08  Richard Guenther  <rguenther@suse.de>
27756         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
27757         valueize random data.
27759 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
27761         * config.gcc (aix tm_file):  Add aix-stdint.h.
27762         (aix tm clause use_gcc_stdint):  Set to wrap.
27763         * config/rs6000/aix-stdint.h:  New file.
27765 2009-04-08  Richard Guenther  <rguenther@suse.de>
27767         PR middle-end/36291
27768         * tree-dfa.c (add_referenced_var): Do not recurse into
27769         global initializers.
27770         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
27771         exposed variables.
27772         (fold_const_aggregate_ref): Likewise.
27774 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27776         * recog.c (ordered_comparison_operator): New.
27777         * gensupport.c (std_preds): Add it.
27778         * doc/md.texi (Machine-Independent Predicates): Document it.
27780 2009-04-08  Jan Hubicka  <jh@suse.cz>
27782         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
27783         * function.h (rtl_eh): Remove exception_handler_label_map.
27784         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
27785         remove_exception_handler_label, for_each_eh_label_1): Remove.
27786         (rtl_remove_unreachable_regions): Remove.
27787         (convert_from_eh_region_ranges): Do not remove unreachable regions.
27788         (find_exception_handler_labels): Don't build the hashtable.
27789         (maybe_remove_eh_handler): Remove.
27790         (for_each_eh_label): Rewrite to walk the tree.
27791         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
27792         * except.h (maybe_remove_eh_handler): Remove.
27793         * passes.c (init_optimization_passes): Schedule second EH cleanup
27794         before out-of-ssa.
27795         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
27796         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
27798 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
27800         * genoutput.c (validate_optab_operands): New.
27801         (gen_insn, gen_expand): Call it.
27803         * genflags.c (gen_insn): Detect misused iterators.
27804         (main): Pass line_no to gen_insn, exit with status 1 on error.
27806         * genextract.c (line_no): Make global.
27807         (VEC_safe_set_locstr): Change assertion to error message.
27808         (main): Exit with status 1 on error.
27810 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
27812         PR c/39614
27813         PR c/39673
27814         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27815         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27816         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
27817         * c-convert.c (convert): Do not call fold on results of conversion
27818         functions when the result is a C_MAYBE_CONST_EXPR.
27819         * c-parser.c (c_parser_postfix_expression): Do not fold condition
27820         of __builtin_choose_expr.
27821         * c-typeck.c (remove_c_maybe_const_expr): New.
27822         (build_unary_op, build_conditional_expr, build_compound_expr,
27823         build_binary_op, c_objc_common_truthvalue_conversion): Call
27824         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
27825         integer operands.
27827 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
27829         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
27830         CODE to produce a new one. Add a prototype to use fold_convert_const
27832 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
27834         PR bootstrap/39660
27835         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
27836         mix declarations and code.
27838 2009-04-08  Ben Elliston  <bje@au.ibm.com>
27840         * gcc.c: Replace `CC' with `GCC' throughout.
27842 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
27844         * doc/invoke.texi: Document Atom support.
27846 2009-04-07  Jason Merrill  <jason@redhat.com>
27848         PR c++/25185
27849         * c-common.h, c-common.c: Add flag_pretty_templates.
27850         * c-opts.c (c_common_handle_option): Set it.
27851         * c.opt: Add -fno-pretty-templates.
27852         * doc/invoke.texi (C++ Dialect Options): Likewise.
27854 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
27856         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
27857         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
27858         (ia64_expand_builtin): Likewise.
27860 2009-04-07  Martin Jambor  <mjambor@suse.cz>
27862         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
27863         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
27864         ADDR_EXPRS are include too.
27866 2009-04-07  Richard Guenther  <rguenther@suse.de>
27868         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
27869         decls are only used if passes as parameters or if they are
27870         local statics and the call is not to a builtin.
27871         (call_may_clobber_ref_p_1): Likewise.
27873 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27875         * expr.c (do_store_flag): Remove last argument.  Simplify code
27876         to avoid duplication of tests already done by can_compare_p.
27877         (expand_expr_real_1): Adjust caller.
27879 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27881         * optabs.c (can_compare_p): Test the predicate of a
27882         cbranch and cstore pattern.
27884 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27886         * expr.c (convert_move): Use emit_store_flag instead of
27887         "emulating" it.
27889 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
27891         * config/i386/i386.c (ix86_compare_emitted): Remove.
27892         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
27893         ix86_compare_op0 like ix86_compare_emitted used to be handled.
27894         * config/i386/i386.h (ix86_compare_emitted): Remove.
27895         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
27896         instead of ix86_compare_emitted.
27897         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
27899 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
27901         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
27902         Add t-sysroot-suffix to tmake_file.
27903         * config/print-sysroot-suffix.sh: New file.
27904         * config/t-sysroot-suffix: New file.
27906 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27908         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
27909         as the latter produces a warning when the target does not support
27910         infinity.
27912 2009-04-07  Ben Elliston  <bje@au.ibm.com>
27914         * dfp.c: Replace type punning assignments with memcpy throughout.
27915         * Makefile.in (dfp.o-warn): Remove.
27917 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
27919         PR target/39634
27920         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
27921         Include soft-fp/t-softfp after rs6000/t-linux64.
27923 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
27925         * stor-layout.c (set_sizetype): Use the full precision of their
27926         machine mode for bitsize types.
27928 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27930         * config/i386/i386.md: Revert 2 accidental checkins.
27932 2009-04-06  Joey Ye  <joey.ye@intel.com>
27933             Xuepeng Guo  <xuepeng.guo@intel.com>
27934             H.J. Lu  <hongjiu.lu@intel.com>
27936         Atom pipeline model, tuning and insn selection.
27937         * config.gcc (atom): Add atom config options and target.
27939         * config/i386/atom.md: New.
27941         * config/i386/i386.c (atom_cost): New cost.
27942         (m_ATOM): New macro flag.
27943         (initial_ix86_tune_features): Set m_ATOM.
27944         (x86_accumulate_outgoing_args): Likewise.
27945         (x86_arch_always_fancy_math_387): Likewise.
27946         (processor_target): Add Atom cost.
27947         (cpu_names): Add Atom cpu name.
27948         (override_options): Set Atom ISA.
27949         (ix86_issue_rate): New case PROCESSOR_ATOM.
27950         (ix86_adjust_cost): Likewise.
27952         * config/i386/i386.h (TARGET_ATOM): New target macro.
27953         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
27954         (TARGET_OPT_AGU): New target option.
27955         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
27956         (processor_type): Add PROCESSOR_ATOM.
27958         * config/i386/i386.md (cpu): Add new value "atom".
27959         (use_carry, movu): New attr.
27960         (atom.md): Include atom.md.
27961         (adddi3_carry_rex64): Set attr "use_carry".
27962         (addqi3_carry): Likewise.
27963         (addhi3_carry): Likewise.
27964         (addsi3_carry): Likewise.
27965         (*addsi3_carry_zext): Likewise.
27966         (subdi3_carry_rex64): Likewise.
27967         (subqi3_carry): Likewise.
27968         (subhi3_carry): Likewise.
27969         (subsi3_carry): Likewise.
27970         (x86_movdicc_0_m1_rex64): Likewise.
27971         (*x86_movdicc_0_m1_se): Likewise.
27972         (x86_movsicc_0_m1): Likewise.
27973         (*x86_movsicc_0_m1_se): Likewise.
27974         (*adddi_1_rex64): Emit add insn as much as possible.
27975         (*addsi_1): Likewise.
27976         (return_internal): Set atom_unit.
27977         (return_internal_long): Likewise.
27978         (return_pop_internal): Likewise.
27979         (*rcpsf2_sse): Set atom_sse_attr attr.
27980         (*qrt<mode>2_sse): Likewise.
27981         (*prefetch_sse): Likewise.
27983         * config/i386/i386-c.c (ix86_target_macros_internal): New case
27984         PROCESSOR_ATOM.
27985         (ix86_target_macros_internal): Likewise.
27987         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
27988         (*prefetch_sse_rex): Likewise.
27989         (sse_rcpv4sf2): Likewise.
27990         (sse_vmrcpv4sf2): Likewise.
27991         (sse_sqrtv4sf2): Likewise.
27992         (<sse>_vmsqrt<mode>2): Likewise.
27993         (sse_ldmxcsr): Likewise.
27994         (sse_stmxcsr): Likewise.
27995         (*sse_sfence): Likewise.
27996         (sse2_clflush): Likewise.
27997         (*sse2_mfence): Likewise.
27998         (*sse2_lfence): Likewise.
27999         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
28000         (<sse>_movup<ssemodesuffixf2c>): Likewise.
28001         (avx_movdqu<avxmodesuffix>): Likewise.
28002         (avx_lddqu<avxmodesuffix>): Likewise.
28003         (sse2_movntv2di): Change attr "type" to "ssemov".
28004         (sse2_movntsi): Likewise.
28005         (rsqrtv8sf2): Change attr "type" to "sseadd".
28006         (sse3_addsubv2df3): Set attr "atom_unit".
28007         (sse3_h<plusminus_insn>v4sf3): Likewise.
28008         (*sse2_pmaddwd): Likewise.
28009         (*vec_extractv2di_1_rex64): Likewise.
28010         (*vec_extractv2di_1_avx): Likewise.
28011         (sse2_psadbw): Likewise.
28012         (ssse3_phaddwv8hi3): Likewise.
28013         (ssse3_phaddwv4hi3): Likewise.
28014         (ssse3_phadddv4si3): Likewise.
28015         (ssse3_phadddv2si3): Likewise.
28016         (ssse3_phaddswv8hi3): Likewise.
28017         (ssse3_phaddswv4hi3): Likewise.
28018         (ssse3_phsubwv8hi3): Likewise.
28019         (ssse3_phsubwv4hi3): Likewise.
28020         (ssse3_phsubdv4si3): Likewise.
28021         (ssse3_phsubdv2si3): Likewise.
28022         (ssse3_phsubswv8hi3): Likewise.
28023         (ssse3_phsubswv4hi3): Likewise.
28024         (ssse3_pmaddubsw128): Likewise.
28025         (sse3_pmaddubsw: Likewise.
28026         (ssse3_palignrti): Likewise.
28027         (ssse3_palignrdi): Likewise.
28029 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
28031         * doc/install.texi (Specific): Fix two cross-references to MinGW.
28033 2009-04-06  Richard Guenther  <rguenther@suse.de>
28035         PR tree-optimization/28868
28036         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
28037         of which PHI results we inserted.
28038         (insert_into_preds_of_block): Record inserted PHIs.
28039         (eliminate): Eliminate redundant PHI nodes.
28040         (init_pre): Init inserted_phi_names.
28042 2009-04-06  Richard Guenther  <rguenther@suse.de>
28044         PR tree-optimization/39643
28045         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
28046         IMAGPART_EXPRs of complex constants.
28047         (execute_fold_all_builtins): If we folded a call queue
28048         TODO_update_address_taken.
28050 2009-04-06  Jan Hubicka  <jh@suse.cz>
28052         PR middle-end/39659
28053         * except.c (remove_unreachable_regions): Propagate may_contain_throw
28054         flag.
28056 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
28058         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
28059         delay slot.
28060         (ic_invalidate_array): Likewise.
28062 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
28064         * calls.c (emit_library_call_value_1): Fix a problem with parameter
28065         alignment for library calls.
28067 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
28069         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
28070         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
28071         * config/i386/mingw-stdint.h:  New file.
28073 2009-04-05  Richard Guenther  <rguenther@suse.de>
28075         PR tree-optimization/39648
28076         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
28077         our &A vs. &A[0] IL deficiencies.
28079 2009-04-04  Jan Hubicka  <jh@suse.cz>
28081         * except.c (sjlj_find_directly_reachable_regions): Be ready for
28082         removed toplevel regions.
28083         (sjlj_mark_call_sites): Likewise.
28085 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
28087         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
28088         (cygwin tm clause use_gcc_stdint):  Set to wrap.
28089         * config/i386/cygwin-stdint.h:  New file.
28091 2009-04-04  Richard Guenther  <rguenther@suse.de>
28093         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
28094         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
28095         single-argument PHIs if we are in loop-closed SSA form.
28096         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
28097         for the pre-condition.
28098         (slpeel_tree_peel_loop_to_edge): Likewise.
28099         (vect_build_loop_niters): Take an optional sequence to append stmts.
28100         (vect_generate_tmps_on_preheader): Likewise.
28101         (vect_do_peeling_for_loop_bound): Take extra guards for the
28102         pre-condition.
28103         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
28104         the cost model check.
28105         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
28106         guards if we are going to peel.  Do not apply versioning in that case.
28107         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
28108         (vect_do_peeling_for_loop_bound): Likewise.
28109         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
28110         loop bound only record extra pre-conditions, do not apply loop
28111         versioning.
28113 2009-04-04  Richard Guenther  <rguenther@suse.de>
28115         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
28116         renaming code.
28118 2009-04-04  Jan Hubicka  <jh@suse.cz>
28120         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
28121         last_basic_block for size of bb->index indexed array.
28122         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
28123         compute_out, link_btr_uses, build_btr_def_use_webs,
28124         build_btr_def_use_webs, migrate_btr_defs): Likewise.
28126 2009-04-04  Jan Hubicka  <jh@suse.cz>
28128         * except.c (remove_eh_handler_and_replace): Break out from ...
28129         (remove_eh_handler): ... here.
28130         (bring_to_root): New function.
28131         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
28132         handled ones, bring others to root of tree.
28134 2009-04-04  Jan Hubicka  <jh@suse.cz>
28136         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
28137         (all_phis_safe_to_merge): New function.
28138         (update_info): New structure.
28139         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
28140         (cleanup_empty_eh): Update SSA if possible.
28142 2009-04-04  Richard Guenther  <rguenther@suse.de>
28144         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
28145         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
28146         (append_vuse): Likewise.
28148 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
28150         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
28151         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
28152         instead of REG_UNSAVED for DW_CFA_undefined.
28153         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
28154         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
28155         outermost frame.
28157 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
28159         PR target/39501
28160         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
28162 2009-04-04  Richard Guenther  <rguenther@suse.de>
28164         PR tree-optimization/8781
28165         PR tree-optimization/37892
28166         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
28167         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
28168         (valueize_refs): Call it for *& valueizations.
28169         (shared_reference_ops_from_ref): Rename to ...
28170         (valueize_shared_reference_ops_from_ref): ... this and valueize.
28171         (shared_reference_ops_from_call): Rename to ...
28172         (valueize_shared_reference_ops_from_call): ... this and valueize.
28173         (vn_reference_lookup): Update.
28174         (visit_reference_op_call): Likewise.
28175         * tree-ssa-pre.c (phi_translate_1): Fold *&.
28176         (eliminate): Value-replace the call address in call statements.
28178 2009-04-04  Richard Guenther  <rguenther@suse.de>
28180         PR tree-optimization/39636
28181         * tree-ssa-forwprop.c
28182         (forward_propagate_addr_into_variable_array_index): Check for
28183         GIMPLE_ASSIGN before accessing the rhs code.
28185 2009-04-03  Jason Merrill  <jason@redhat.com>
28187         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
28189 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
28191         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
28192         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
28193         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
28194         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
28195         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
28196         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
28197         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
28198         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
28199         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
28200         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
28201         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
28202         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
28203         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
28204         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
28205         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
28206         Use fr_reg_or_fp01_operand instead of fr_register_operand
28208         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
28209         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
28210         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
28212 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
28214         PR rtl-optimization/39607
28215         PR rtl-optimization/39631
28217         Revert:
28219         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
28220         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
28221         instead of DF_LR_OUT.
28222         * ira-lives.c (process_bb_node_lives): Ditto.
28223         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
28224         instead of DF_LR_{OUT,IN}.
28225         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
28226         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
28228 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
28230         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
28231         (execute_lower_omp): Always run but take the short way out if -fopenmp
28232         is not given.
28233         (gate_lower_omp): Remove, forcing the pass manager to always run the
28234         pass and always set PROP_gimple_lomp.
28235         (pass_lower_omp): Remove gate function.
28236         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
28237         PROP_trees.  Instead, require it.
28238         * ipa-cp.c (pass_ipa_cp): Likewise.
28239         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
28240         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
28241         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
28242         and PROP_gimple_leh.
28244 2009-04-03  Richard Guenther  <rguenther@suse.de>
28246         PR middle-end/13146
28247         PR tree-optimization/23940
28248         PR tree-optimization/33237
28249         PR middle-end/33974
28250         PR middle-end/34093
28251         PR tree-optimization/36201
28252         PR tree-optimization/36230
28253         PR tree-optimization/38049
28254         PR tree-optimization/38207
28255         PR tree-optimization/38230
28256         PR tree-optimization/38301
28257         PR tree-optimization/38585
28258         PR middle-end/38895
28259         PR tree-optimization/38985
28260         PR tree-optimization/39299
28261         * tree-ssa-structalias.h: Remove.
28262         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
28263         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
28264         (struct vuse_element_d): Remove.
28265         (struct vuse_vec_d): Likewise.
28266         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
28267         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
28268         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
28269         VUSE_ELEMENT_VAR): Likewise.
28270         (struct voptype_d): Likewise.
28271         (NUM_VOP_FREE_BUCKETS): Likewise.
28272         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
28273         (struct stmt_operands_d): Remove.
28274         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
28275         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
28276         VDEF_NUM, VDEF_VECT): Likewise.
28277         (copy_virtual_operands): Remove.
28278         (operand_build_cmp): Likewise.
28279         (create_ssa_artificial_load_stmt): Likewise.
28280         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
28281         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
28282         vuse_index and mayuse_index members.  Pack and move done and iter_type
28283         members to the front.
28284         (SSA_OP_VMAYUSE): Remove.
28285         (SSA_OP_VIRTUAL_USES): Adjust.
28286         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
28287         (unlink_stmt_vdef): Declare.
28288         (add_to_addressable_set): Remove.
28289         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
28290         (vrp_visit_stmt): Likewise.
28291         * doc/tree-ssa.texi (Alias analysis): Update.
28292         * doc/invoke.texi (max-aliased-vops): Remove docs.
28293         (avg-aliased-vops): Likewise.
28294         * tree-into-ssa.c (syms_to_rename): Remove.
28295         (need_to_update_vops_p): Likewise.
28296         (need_to_initialize_update_ssa_p): Rename to ...
28297         (update_ssa_initialized_fn): ... this.  Track function we are
28298         initialized for.
28299         (symbol_marked_for_renaming): Simplify.
28300         (add_new_name_mapping): Do not set need_to_update_vops_p.
28301         (dump_currdefs): Use SYMS_TO_RENAME.
28302         (rewrite_update_stmt): Always walk all uses/defs.
28303         (dump_update_ssa): Adjust.
28304         (init_update_ssa): Take function argument.  Track what we are
28305         initialized for.
28306         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
28307         (create_new_def_for): Initialize for cfun, assert we are initialized
28308         for cfun.
28309         (mark_sym_for_renaming): Simplify.
28310         (mark_set_for_renaming): Do not initialize update-ssa.
28311         (need_ssa_update_p): Simplify.  Take function argument.
28312         (name_mappings_registered_p): Assert we ask for the correct function.
28313         (name_registered_for_update_p): Likewise.
28314         (ssa_names_to_replace): Likewise.
28315         (release_ssa_name_after_update_ssa): Likewise.
28316         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
28317         (dump_decl_set): Do not print a newline.
28318         (debug_decl_set): Do it here.
28319         (dump_update_ssa): And here.
28320         * tree-ssa-loop-im.c (move_computations): Adjust.
28321         (movement_possibility): Likewise.
28322         (determine_max_movement): Likewise.
28323         (gather_mem_refs_stmt): Likewise.
28324         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
28325         or NAME_MEMORY_TAG.
28326         * tree-complex.c (update_all_vops): Remove.
28327         (expand_complex_move): Adjust.
28328         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
28329         Simplify test for memory referencing statement.  Exclude
28330         non-invariant ADDR_EXPRs.
28331         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
28332         * tree-loop-distribution.c (generate_memset_zero): Adjust.
28333         (rdg_flag_uses): Likewise.
28334         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
28335         related code.
28336         (tree_optimize_tail_calls_1): Also split the
28337         edge from the entry block if we have degenerate PHI nodes in
28338         the first basic block.
28339         * tree.c (init_ttree): Remove memory-tag related code.
28340         (tree_code_size): Likewise.
28341         (tree_node_structure): Likewise.
28342         (build7_stat): Re-write to be build6_stat.
28343         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
28344         (SSA_VAR_P): Adjust.
28345         (struct tree_memory_tag): Remove.
28346         (struct tree_memory_partition_tag): Likewise.
28347         (union tree_node): Adjust.
28348         (build7): Re-write to be build6.
28349         * tree-pass.h (pass_reset_cc_flags): Remove.
28350         (TODO_update_address_taken): New flag.
28351         (pass_simple_dse): Remove.
28352         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
28353         * params.h (MAX_ALIASED_VOPS): Remove.
28354         (AVG_ALIASED_VOPS): Likewise.
28355         * omp-low.c (expand_omp_taskreg): Update SSA form.
28356         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
28357         aliases the lhs in a copy stmt.
28358         * tree-ssa-dse.c (struct address_walk_data): Remove.
28359         (memory_ssa_name_same): Likewise.
28360         (memory_address_same): Likewise.
28361         (get_kill_of_stmt_lhs): Likewise.
28362         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
28363         unused stores.  Look through PHI nodes into post-dominated regions.
28364         (dse_optimize_stmt): Simplify.  Properly remove stores.
28365         (tree_ssa_dse): Compute dominators.
28366         (execute_simple_dse): Remove.
28367         (pass_simple_dse): Likewise.
28368         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
28369         gimple_loaded_syms and gimple_stored_syms computation.
28370         * toplev.c (dump_memory_report): Dump alias and pta stats.
28371         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
28372         (vn_reference_eq): Likewise.
28373         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
28374         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
28375         valueize_vuses): Remove.
28376         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
28377         (get_def_ref_stmt_vuse): ... this.
28378         (vn_reference_lookup_2): New function.
28379         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
28380         walking equivalent vuses.  Simplify.
28381         (vn_reference_lookup): Likewise.
28382         (vn_reference_insert): Likewise.
28383         (vn_reference_insert_pieces): Likewise.
28384         (visit_reference_op_call): Simplify.
28385         (visit_reference_op_load): Likewise.
28386         (visit_reference_op_store): Likewise.
28387         (init_scc_vn): Remove shared_lookup_vuses initialization.
28388         (free_scc_vn): Remove shared_lookup_vuses freeing.
28389         (sort_vuses, sort_vuses_heap): Remove.
28390         (get_ref_from_reference_ops): Export.
28391         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
28392         vector with single vuse pointer.
28393         (vn_reference_lookup_pieces, vn_reference_lookup,
28394         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
28395         (shared_vuses_from_stmt): Remove.
28396         (get_ref_from_reference_ops): Declare.
28397         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
28398         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
28399         memory-tag related code.
28400         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
28401         (likely_value): Add comment, skip static-chain of call statements.
28402         (surely_varying_stmt_p): Adjust.
28403         (gimplify_and_update_call_from_tree): Likewise.
28404         (execute_fold_all_builtins): Do not rebuild alias info.
28405         (gimplify_and_update_call_from_tree): Properly update VOPs.
28406         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
28407         (copy_ref_info): Remove memory-tag related code.
28408         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
28409         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
28410         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
28411         computation.
28412         * tree-ssa-dom.c (gimple_p): Remove typedef.
28413         (eliminate_redundant_computations): Adjust.
28414         (record_equivalences_from_stmt): Likewise.
28415         (avail_expr_hash): Likewise.
28416         (avail_expr_eq): Likewise.
28417         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
28418         (stmt_makes_single_load): Likewise.
28419         (stmt_makes_single_store): Likewise.
28420         * tree-ssa-alias.c: Rewrite completely.
28421         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
28422         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
28423         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
28424         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
28425         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
28426         Remove public functions.
28427         (pass_reset_cc_flags): Remove.
28428         (pass_build_alias): Move ...
28429         * tree-ssa-structalias.c (pass_build_alias): ... here.
28430         * tree-ssa-alias.c (may_be_aliased): Move ...
28431         * tree-flow-inline.h (may_be_aliased): ... here.
28432         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
28433         count_uses_and_derefs): Move ...
28434         * gimple.c: ... here.
28435         * gimple.h (count_uses_and_derefs): Declare.
28436         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
28437         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
28438         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
28439         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
28440         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
28441         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
28442         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
28443         New functions.
28444         * tree-dfa.c (refs_may_alias_p): Move ...
28445         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
28446         * tree-ssa-alias.h: New file.
28447         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
28448         (statement_sink_location): Likewise.
28449         * opts.c (decode_options): Do not adjust max-aliased-vops or
28450         avg-aliased-vops values.
28451         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
28452         (TV_CALL_CLOBBER): Likewise.
28453         (TV_FLOW_SENSITIVE): Likewise.
28454         (TV_FLOW_INSENSITIVE): Likewise.
28455         (TV_MEMORY_PARTITIONING): Likewise.
28456         (TV_ALIAS_STMT_WALK): New timevar.
28457         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
28458         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
28459         (get_address_description): Remove memory-tag related code.
28460         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
28461         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
28462         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
28463         and immediate uses in statements.  Document.
28464         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
28465         (dump_symbols): Remove.
28466         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
28467         * alias.c (get_deref_alias_set): New function split out from ...
28468         (get_alias_set): ... here.
28469         * alias.h (get_deref_alias_set): Declare.
28470         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
28471         type parameter.  Remove restrict pointer handling.  Create a
28472         ref-all pointer in case type-based alias sets do not conflict.
28473         (vect_analyze_data_refs): Remove SMT related code.
28474         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
28475         (vectorizable_load): Likewise.
28476         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
28477         (DR_SYMBOL_TAG, DR_VOPS): Remove.
28478         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
28479         Ignore vops and SMTs.
28480         (dr_analyze_alias): Likewise..
28481         (free_data_ref): Likewise.
28482         (create_data_ref): Likewise.
28483         (analyze_all_data_dependences): Likewise.
28484         (get_references_in_stmt): Adjust.
28485         * tree-flow-inline.h (gimple_aliases_computed_p,
28486         gimple_addressable_vars, gimple_call_clobbered_vars,
28487         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
28488         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
28489         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
28490         gimple_mem_ref_stats): Remove.
28491         (gimple_vop): New function.
28492         (op_iter_next_use): Remove vuses and mayuses cases.
28493         (op_iter_next_def): Remove vdefs case.
28494         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
28495         (clear_and_done_ssa_iter): Do not set removed fields.
28496         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
28497         Assert we are not iterating over vuses or vdefs if not also
28498         iterating over uses or defs.
28499         (op_iter_init_use): Likewise.
28500         (op_iter_init_def): Likewise.
28501         (op_iter_next_vdef): Remove.
28502         (op_iter_next_mustdef): Likewise.
28503         (op_iter_init_vdef): Likewise.
28504         (compare_ssa_operands_equal): Likewise.
28505         (link_use_stmts_after): Handle vuse operand.
28506         (is_call_used): Use is_call_clobbered.
28507         (is_call_clobbered): Global variables are always call clobbered,
28508         query the call-clobbers bitmap.
28509         (mark_call_clobbered): Ignore global variables.
28510         (clear_call_clobbered): Likewise.
28511         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
28512         virtual operands sanity check.
28513         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
28514         Remove.
28515         (TARGET_MEM_REF): Remove TMR_TAG operand.
28516         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
28517         Remove call-clobber related code.
28518         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
28519         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
28520         partitions or escape reason.
28521         (get_single_def_stmt, get_single_def_stmt_from_phi,
28522         get_single_def_stmt_with_phi): Remove.
28523         (dump_referenced_vars): Tidy.
28524         (get_ref_base_and_extent): Allow bare decls.
28525         (collect_dfa_stats): Adjust.
28526         * graphite.c (rename_variables_in_stmt): Adjust.
28527         (graphite_copy_stmts_from_block): Likewise.
28528         (translate_clast): Likewise.
28529         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
28530         (EXPR_DIES): New.
28531         (translate_vuse_through_block): Use the oracle.
28532         (phi_translate_1): Adjust.
28533         (value_dies_in_block_x): Use the oracle.  Cache the outcome
28534         in EXPR_DIES.
28535         (valid_in_sets): Check if the VUSE for
28536         a REFERENCE is available.
28537         (eliminate): Do not remove stmts during elimination,
28538         instead queue and remove them afterwards.
28539         (do_pre): Do not rebuild alias info.
28540         (pass_pre): Run TODO_rebuild_alias before PRE.
28541         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
28542         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
28543         (mark_all_v_defs_stmt): Remove.
28544         (mark_all_v_defs_seq): Adjust.
28545         (sra_replace): Likewise.
28546         (scalarize_use): Likewise.
28547         (scalarize_copy): Likewise.
28548         (scalarize_init): Likewise.
28549         (scalarize_ldst): Likewise.
28550         (todoflags): Remove.
28551         (tree_sra): Do not rebuild alias info.
28552         (tree_sra_early): Adjust.
28553         (pass_sra): Run TODO_update_address_taken before SRA.
28554         * tree-predcom.c (set_alias_info): Remove.
28555         (prepare_initializers_chain): Do not call it.
28556         (mark_virtual_ops_for_renaming): Adjust.
28557         (mark_virtual_ops_for_renaming_list): Remove.
28558         (initialize_root_vars): Adjust.
28559         (initialize_root_vars_lm): Likewise.
28560         (prepare_initializers_chain): Likewise.
28561         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
28562         (may_propagate_copy_into_stmt): Likewise.
28563         (merge_alias_info): Do nothing for now.
28564         (propagate_tree_value_into_stmt): Adjust.
28565         (stmt_may_generate_copy): Likewise.
28566         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
28567         not mark symbols for renaming.
28568         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
28569         with the same statement, make sure to update the new pointed-to one.
28570         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
28571         call statements, do not mark symbols for renaming.
28572         (mark_operand_necessary): Dump something.
28573         (ref_may_be_aliased): New function.
28574         (mark_aliased_reaching_defs_necessary_1): New helper function.
28575         (mark_aliased_reaching_defs_necessary): Likewise.
28576         (mark_all_reaching_defs_necessary_1): Likewise.
28577         (mark_all_reaching_defs_necessary): Likewise.
28578         (propagate_necessity): Do not process virtual PHIs.  For
28579         non-aliased loads mark all reaching definitions as necessary.
28580         For aliased loads and stores mark the immediate dominating
28581         aliased clobbers as necessary.
28582         (visited): New global static.
28583         (perform_tree_ssa_dce): Free visited bitmap after propagating
28584         necessity.
28585         (remove_dead_phis): Perform simple dead virtual PHI removal.
28586         (remove_dead_stmt): Properly unlink virtual operands when
28587         removing stores.
28588         (eliminate_unnecessary_stmts): Schedule PHI removal after
28589         stmt removal.
28590         * tree-ssa-ter.c (is_replaceable_p): Adjust.
28591         (process_replaceable): Likewise.
28592         (find_replaceable_in_bb): Likewise.
28593         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
28594         based on the single gimple vop.
28595         (verify_flow_insensitive_alias_info): Remove.
28596         (verify_flow_sensitive_alias_info): Likewise.
28597         (verify_call_clobbering): Likewise.
28598         (verify_memory_partitions): Likewise.
28599         (verify_alias_info): Likewise.
28600         (verify_ssa): Adjust..
28601         (execute_update_addresses_taken): Export.  Update SSA
28602         manually.  Optimize only when optimizing.  Use a local bitmap.
28603         (pass_update_address_taken): Remove TODO_update_ssa, add
28604         TODO_dump_func.
28605         (pass_update_address_taken): Just use TODO_update_address_taken.
28606         (init_tree_ssa): Do not initialize addressable_vars.
28607         (verify_ssa): Verify new VUSE / VDEF properties.
28608         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
28609         Do not call verify_alias_info.
28610         (delete_tree_ssa): Clear the VUSE, VDEF operands.
28611         Do not free the loaded and stored syms bitmaps.  Reset the escaped
28612         and callused solutions.  Do not free addressable_vars.
28613         Remove memory-tag related code.
28614         (warn_uninitialized_var): Aliases are always available.
28615         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
28616         * lambda-code.c (can_put_in_inner_loop): Adjust.
28617         (can_put_after_inner_loop): Likewise.
28618         (perfect_nestify): Likewise.
28619         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
28620         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
28621         (vectorizable_conversion): Do not mark symbols for renaming.
28622         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
28623         (expand_call_inline): Unlink the calls virtual operands before
28624         replacing it.
28625         (tree_function_versioning): Do not call update_ssa if we are not
28626         updating clones.  Simplify.
28627         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
28628         (propagate_with_phi): Likewise..
28629         * tree-outof-ssa.c (create_temp): Remove memory tag and call
28630         clobber code.  Assert we are not aliased or global.
28631         * tree-flow.h: Include tree-ssa-alias.h
28632         (enum escape_type): Remove.
28633         (struct mem_sym_stats_d): Likewise.
28634         (struct mem_ref_stats_d): Likewise.
28635         (struct gimple_df): Add vop member.  Remove global_var,
28636         call_clobbered_vars, call_used_vars, addressable_vars,
28637         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
28638         escaped and callused members.
28639         (struct ptr_info_def): Remove all members, add points-to solution
28640         member pt.
28641         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
28642         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
28643         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
28644         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
28645         (tree-ssa-alias.o): Likewise.
28646         (toplev.o): Add tree-ssa-alias.h
28647         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
28648         * gimple.c (gimple_set_bb): Fix off-by-one error.
28649         (is_gimple_reg): Do not handle memory tags.
28650         (gimple_copy): Also copy virtual operands.
28651         Delay updating the statement.  Do not reset loaded and stored syms.
28652         (gimple_set_stored_syms): Remove.
28653         (gimple_set_loaded_syms): Likewise.
28654         (gimple_call_copy_skip_args): Copy the virtual operands
28655         and mark the new statement modified.
28656         * tree-ssa-structalias.c (may_alias_p): Remove.
28657         (set_uids_in_ptset): Take the alias set to prune with as
28658         parameter.  Fold in the alias test of may_alias_p.
28659         (compute_points_to_sets): Compute whether a ptr is dereferenced
28660         in a local sbitmap.
28661         (process_constraint): Deal with &ANYTHING on the lhs, reject all
28662         other ADDRESSOF constraints on the lhs.
28663         (get_constraint_for_component_ref): Assert that we don't get
28664         ADDRESSOF constraints from the base of the reference.
28665         Properly generate UNKNOWN_OFFSET for DEREF if needed.
28666         (struct variable_info): Remove collapsed_to member.
28667         (get_varinfo_fc): Remove.
28668         (new_var_info): Do not set collapsed_to.
28669         (dump_constraint): Do not follow cycles.
28670         (dump_constraint_graph): Likewise.
28671         (build_pred_graph): Likewise.
28672         (build_succ_graph): Likewise.
28673         (rewrite_constraints): Likewise.
28674         (do_simple_structure_copy): Remove.
28675         (do_rhs_deref_structure_copy): Remove.
28676         (do_lhs_deref_structure_copy): Remove.
28677         (collapse_rest_of_var): Remove.
28678         (do_structure_copy): Re-implement.
28679         (pta_stats): New global variable.
28680         (dump_pta_stats): New function.
28681         (struct constraint_expr): Make offset signed.
28682         (UNKNOWN_OFFSET): Define special value.
28683         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
28684         (solution_set_expand): New helper function split out from ...
28685         (do_sd_constraint): ... here.
28686         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
28687         (do_ds_constraint): Likewise.
28688         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
28689         and CALLUSED = *CALLUSED.
28690         (set_union_with_increment): Make inc argument signed.
28691         (type_safe): Remove.
28692         (get_constraint_for_ptr_offset): Handle unknown and negative
28693         constant offsets.
28694         (first_vi_for_offset): Handle offsets before start.  Bail
28695         out early for offsets beyond the variable extent.
28696         (first_or_preceding_vi_for_offset): New function.
28697         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
28698         Together with ESCAPED = *ESCAPED this properly computes reachability.
28699         (find_what_var_points_to): New function.
28700         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
28701         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
28702         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
28703         pt_solutions_intersect): New functions.
28704         (compute_call_used_vars): Remove.
28705         (compute_may_aliases): New main entry into PTA computation.
28706         * gimple.h (gimple_p): New typedef.
28707         (struct gimple_statement_base): Remove references_memory_p.
28708         (struct gimple_statement_with_memory_ops_base): Remove
28709         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
28710         members.
28711         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
28712         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
28713         gimple_set_references_memory): Remove.
28714         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
28715         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
28716         New functions.
28717         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
28718         (verify_expr): Allow RESULT_DECL.
28719         (gimple_duplicate_bb): Do not copy virtual operands.
28720         (gimple_duplicate_sese_region): Adjust.
28721         (gimple_duplicate_sese_tail): Likewise.
28722         (mark_virtual_ops_in_region): Remove.
28723         (move_sese_region_to_fn): Do not call it.
28724         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
28725         and pass_simple_dse.
28726         (execute_function_todo): Handle TODO_update_address_taken,
28727         call execute_update_addresses_taken for TODO_rebuild_alias.
28728         (execute_todo): Adjust.
28729         (execute_one_pass): Init dump files early.
28730         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
28731         call-clobbered.
28732         (create_general_new_stmt): Clear vops.
28733         * tree-ssa-reassoc.c (get_rank): Adjust.
28734         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
28735         symbols for renaming.
28736         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
28737         (PARAM_AVG_ALIASED_VOPS): Likewise.
28738         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
28739         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
28740         * tree-ssa-operands.c: Simplify for new virtual operand representation.
28741         (operand_build_cmp, copy_virtual_operands,
28742         create_ssa_artificial_load_stmt, add_to_addressable_set,
28743         gimple_add_to_addresses_taken): Remove public functions.
28744         (unlink_stmt_vdef): New function.
28746 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28748         * config.gcc (powerpc-*-linux*): Merge variants.
28750 2009-04-02  Chao-ying Fu  <fu@mips.com>
28751             James Grosbach  <james.grosbach@microchip.com>
28753         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
28754         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
28755         cop0_sp_offset.
28756         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
28757         keep_interrupts_masked_p, use_debug_exception_return_p.
28758         (mips_attribute_table): Add interrupt, use_shadow_register_set,
28759         keep_interrupts_masked, use_debug_exception_return.
28760         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
28761         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
28762         New functions.
28763         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
28764         (mips_print_operand): Process COP0 registers to print $0 .. $31
28765         correctly for GAS to process.
28766         (mips_interrupt_extra_call_saved_reg_p): New function.
28767         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
28768         extra registers.
28769         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
28770         (mips_compute_frame_info): Add supports for interrupt context that
28771         includes doubleword accumulators and COP0 registers.
28772         (mips_for_each_saved_acc): New function.
28773         (mips_for_each_saved_gpr_and_fpr): Change the function name from
28774         mips_for_each_saved_reg.
28775         (mips_save_reg): Save accumulators.
28776         (mips_kernel_reg_p): A new for_each_rtx callback.
28777         (mips_expand_prologue): Support interrupt handlers.
28778         (mips_restore_reg): Restore accumulators.
28779         (mips_expand_epilogue): Support interrupt handlers.
28780         (mips_can_use_return_insn): Return false for interrupt handlers.
28781         (mips_epilogue_uses): New function.
28782         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
28783         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
28784         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
28785         cop0_move): New instructions.
28786         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
28787         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
28788         defines.
28789         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
28790         New defines.
28791         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
28792         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
28793         interrupt handlers, we use K0 as the temporary register.
28794         (EPILOGUE_USES): Change to a function call.
28795         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
28796         handlers, we use K0 as the temporary register.
28798         * doc/extend.texi (Function Attributes): Document interrupt,
28799         use_shadow_register_set, keep_interrupts_masked,
28800         use_debug_exception_return for MIPS attributes.
28802 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
28804         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
28805         Remove a number of t-files from tmake_file.
28806         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
28807         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
28808         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
28809         target_prototype, not TARGET_PROTOTYPE.
28810         (LINK_OS_GNU_SPEC): Define.
28811         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
28812         and darwin-ldoubdle.c.
28814 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28816         PR driver/39293
28817         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
28818         (cpp_options): Ditto.
28819         (default_compilers): Ditto.
28820         (display_help): Ditto.
28821         (process_command): Ditto.
28822         (do_spec_1): Ditto.
28823         (set_input): Use lbasename instead of duplicate code.
28824         (save_temps_prefix): New static for -save-temps=obj.
28825         (save_temps_length): Ditto.
28827         * doc/invoke.texi (-save-temps=obj): Document new variant to
28828         -save-temps switch.
28830 2009-04-02  Jeff Law  <law@redhat.com>
28832         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
28833         variable.
28835 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28837         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
28838         * configure: Regenerated.
28840 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28842         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
28843         share the argument list.
28845 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28847         Merge
28849         2009-02-12  Diego Novillo  <dnovillo@google.com>
28851         * varpool.c (debug_varpool): New.
28852         * cgraph.h (debug_varpool): Declare.
28854 2009-04-02  Jan Hubicka  <jh@suse.cz>
28856         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
28857         pass.
28859 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28861         * config/i386/i386.c (ix86_abi): Move initialization to ...
28862         (override_options): Here.
28864 2009-04-02  Christian Bruel  <christian.bruel@st.com>
28866         * config/sh/sh.c (sh_dwarf_register_span): New function.
28867         (TARGET_DWARF_REGISTER_SPAN): Define.
28868         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
28870 2009-04-02  Ira Rosen  <irar@il.ibm.com>
28872         PR tree-optimization/39595
28873         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
28874         interleaved loads group is not  greater than the SLP group size.
28876 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
28878         * builtins.c (is_builtin_name): New.
28879         (called_as_built_in): Use is_builtin_name.
28880         * tree.h (is_builtin_name): New.
28881         * varasm.c (incorporeal_function_p): Use is_builtin_name
28883 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
28885         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
28887 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
28889         PR c++/26693
28890         * c-decl.c (clone_underlying_type): Move this ...
28891         * c-common.c (set_underlying_type): ... here.
28892         Also, make sure the function properly sets TYPE_STUB_DECL() on
28893         the newly created typedef variant type.
28894         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
28895         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
28896         points.
28898 2009-04-02  Richard Guenther  <rguenther@suse.de>
28900         PR tree-optimization/37221
28901         * tree-flow.h (degenerate_phi_result): Declare.
28902         * tree-ssa-dom.c (degenerate_phi_result): Export.
28903         * tree-scalar-evolution.c (analyze_initial_condition): If
28904         the initial condition is defined by a degenerate PHI node
28905         use the degenerate value.
28907 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
28909         PR rtl-optimization/39588
28910         * combine.c (merge_outer_ops): Do not set the constant when this
28911         is not necessary.
28912         (simplify_shift_const_1): Do not modify it either in this case.
28914 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28916         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
28917         tuning is deprecated if -mtune value is set to an Itanium1 variant.
28919 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
28921         PR c/29027
28922         * c-lex.c (interpret_float): Default (no suffix) is double.
28924 2009-04-1  Xinliang David Li  <davidxl@google.com>
28926         * config/i386/i386.c (legitimate_constant_p): Recognize
28927         all one vector constant.
28929 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28931         * config/vax/vax.c: Add #includes to silence warnings.
28932         Change #include order to silence two warnings.
28934 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28936         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
28937         (ASM_SPEC): Pass -k to the assembler for PIC code.
28939 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28941         * config.gcc: Add vax-*-linux* to the switch.
28942         * config/vax/linux.h: New file. (TARGET_VERSION,
28943         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
28945 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28947         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
28948         Use predicate macros instead of GET_CODE() == foo.
28949         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
28950         ashlsi3, rotrsi3, <unnamed>): Likewise.
28952 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28954         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
28955         jbbccihi, jbbccisi): Remova trailing whitespace.
28956         * config/vax/constraints.md: Likewise.
28957         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
28958         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
28959         * config/vax/predicates.md: Likewise.
28960         * config/vax/vax.c (print_operand_address, vax_output_int_move,
28961         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
28962         * config/vax/vax.h: Likewise.
28963         * config/vax/vax.md (nonlocal_goto): Likewise.
28965 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28967         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
28968         (indirectable_address_p, adjacent_operands_p): Add spaces around
28969         braces.
28970         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
28972 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28974         * config/vax/vax.c (legitimate_constant_address_p,
28975         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
28976         index_term_p, reg_plus_index_p, legitimate_address_p,
28977         vax_mode_dependent_address_p): Update comments to match functions
28978         modified by the recent int->bool conversion.
28980 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28982         * config/vax/builtins.md: Update copyright message.
28983         * config/vax/constraints.md: Likewise.
28984         * config/vax/netbsd-elf.h: Likewise.
28985         * config/vax/predicates.md: Likewise.
28986         * config/vax/vax-protos.h: Likewise.
28987         * config/vax/vax.c: Likewise.
28988         * config/vax/vax.h: Likewise.
28989         * config/vax/vax.md: Likewise.
28990         * config/vax/vax.opt: Likewise.
28992 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
28994         * config/vax/builtins.md (ffssi2, ffssi2_internal,
28995         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
28996         * config/vax/constraints.md (B, R): Likewise.
28997         * config/vax/predicates.md (external_memory_operand,
28998         nonimmediate_addsub_di_operand): Likewise.
28999         * config/vax/vax.c (vax_output_int_add): Likewise.
29000         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
29001         untyped_call): Likewise.
29003 2009-04-01  Matt Thomas  <matt@3am-software.com>
29005         * config/vax/predicates.md: New file.
29006         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
29007         external_const_operand, nonsymbolic_operand, external_memory_operand,
29008         indirect_memory_operand, indexed_memory_operand,
29009         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
29010         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
29011         predicate.
29012         * config/vax/constraints.md: New file.
29013         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
29014         New constraint.
29015         * config/vax/builtins.md: New file.
29016         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
29017         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
29018         jbbccisi): Define.
29019         * config/vax/vax.opt (mqmath): Add option.
29020         * config/vax/vax.md (isfx): Extend with DI.
29021         (VAXintQH, VAXintQHSD): Define.
29022         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
29023         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
29024         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
29025         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
29026         (movdi): Update constraints and use vax_output_int_move().
29027         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
29028         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
29029         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
29030         nonlocal_goto): New.
29031         (mov<mode>): Extend accepted operand types.
29032         (subdi3_old): Rename from subdi3, change update constraints and use
29033         a new implementation.
29034         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
29035         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
29036         MOVE_RATIO, CLEAR_RATIO): Define.
29037         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
29038         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
29039         (PRINT_OPERAND): Redefine using a function instead of inlined code.
29040         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
29041         (split_quadword_operands): Make static and really allow variable
29042         splitting.
29043         (print_operand_address): Update for PIC generation.
29044         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
29045         indexable_address_p, fixup_mathdi_operand,
29046         vax_expand_addsub_di_operands, adjacent_operands_p): New.
29047         (vax_float_literal, legitimate_constant_p,
29048         indirectable_constant_address_p, index_term_p,
29049         reg_plus_index_p): Return bool instead of int.
29050         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
29051         where needed.
29052         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
29053         generation.
29054         (vax_output_conditional_branch): Indent.
29055         (legitimate_constant_address_p, indirectable_constant_address_p,
29056         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
29057         vax_mode_dependent_address_p): Return bool instead of int, update for
29058         PIC generation.
29059         * config/vax/vax-protos.h (legitimate_constant_address_p,
29060         legitimate_constant_p, legitimate_address_p,
29061         vax_mode_dependent_address_p): Change declaration to bool.
29062         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
29063         vax_expand_addsub_di_operands, vax_output_int_subtract,
29064         vax_output_movmemsi): Declare.
29065         (split_quadword_operands, vax_float_literal): Delete declaration.
29066         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
29067         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
29068         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
29069         ASM_OUTPUT_DWARF_PCREL): Define.
29070         (ASM_SPEC): Change definition to allow PIC generation.
29072 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
29074         * doc/sourcebuild.texi: Update front-end requirements.
29076 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29078         PR target/39226
29079         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
29080         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
29081         (booldi3_internal3): Use boolean_or_operator instead of
29082         boolean_operator.
29084 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
29086         PR c/39605
29087         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
29088         declarator whose size is not an integer constant expression but
29089         folds to an integer constant, then treat it as a constant
29090         subsequently.
29092 2009-04-01  Richard Guenther  <rguenther@suse.de>
29094         * fold-const.c (fold_plusminus_mult_expr): Do not fold
29095         i * 4 + 2 to (i * 2 + 1) * 2.
29097 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29099         PR c/37772
29100         * c-parser.c (c_parser_asm_statement): Skip until close paren and
29101         return if c_parser_asm_string_literal returned NULL.
29103 2009-04-01  Nick Clifton  <nickc@redhat.com>
29105         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
29106         already defined.
29107         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
29108         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
29109         other typedefs to avoid conflicts with libgcc2.c.  Define labels
29110         to gain 16-bit bit-manipulation functions from libgcc2.c and then
29111         include it.
29112         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
29113         to gain 16-bit trapping arithmetic functions from libgcc2.c and
29114         then include it.
29116 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
29118         * varasm.c (default_function_rodata_section): Declare DOT as
29119         const char*.
29121 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
29122             Andrey Galkin  <agalkin@hypercom.com>
29124         PR/39492
29125         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
29126         Make object_name unique for each process.
29128 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
29130         PR other/39591
29131         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
29132         addressable variables in the parallel that could go out of scope while
29133         running queued tasks.
29135 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
29137         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
29138         (CASE_VALUES_THRESHOLD): Redefine.
29139         * config/avr/avr.c (avr_override_options): Remove initialization of
29140         avr_case_values_threshold variable.
29141         (avr_case_values_threshold): Remove variable. Add new function.
29142         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
29143         * config/avr/avr.opt (mno-tablejump): Remove option.
29144         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
29146 2009-04-01  DJ Delorie  <dj@redhat.com>
29148         * varasm.c (default_function_rodata_section): Don't assume
29149         anything about where the first '.' in the section name is.
29151 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
29153         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
29154         rs6000_emit_stack_tie.
29156 2009-03-31  Ian Lance Taylor  <iant@google.com>
29158         * tree-eh.c (tree_remove_unreachable_handlers): Compare
29159         gimple_code with GIMPLE_RESX, not RESX.
29161 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29163         * c-common.c (c_get_ident): New.
29164         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
29166 2009-04-01  Ben Elliston  <bje@au.ibm.com>
29168         * config/rs6000/sysv4.opt (msdata): Improve option description.
29170 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
29172         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
29173         (divdf3_internal_lat): Remove.
29174         (divxf3_internal_lat): Remove.
29175         (divxf3_internal_thr): Remove.
29176         (divxf): Use divxf3_internal.
29177         * config/ia64/div.md (divsf3_internal_lat): New.
29178         (divdf3_internal_lat): New.
29179         (divxf3_internal): New.
29181 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29183         PR c/448
29184         * Makefile.in (USE_GCC_STDINT): Define.
29185         (stmp-int-hdrs): Install stdint.h if applicable.
29186         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
29187         if known.
29188         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
29189         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
29190         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29191         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29192         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29193         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29194         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29195         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29196         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29197         (c_common_nodes_and_builtins): Initialize
29198         underlying_wchar_type_node.  Do not initialize
29199         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
29200         nodes for new types.
29201         (c_stddef_cpp_builtins): Define macros for new types.
29202         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
29203         Remove.
29204         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
29205         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
29206         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
29207         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
29208         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
29209         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
29210         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
29211         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
29212         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
29213         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
29214         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
29215         int16_type_node, int32_type_node, int64_type_node,
29216         uint8_type_node, uint16_type_node, c_uint32_type_node,
29217         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
29218         int_least32_type_node, int_least64_type_node,
29219         uint_least8_type_node, uint_least16_type_node,
29220         uint_least32_type_node, uint_least64_type_node,
29221         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
29222         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
29223         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
29224         uintptr_type_node): Define.
29225         * c-cppbuiltin.c (builtin_define_constants,
29226         builtin_define_type_minmax): New.
29227         (builtin_define_stdint_macros): Define more macros.
29228         (c_cpp_builtins): Define more limit macros.
29229         (type_suffix): New.
29230         (builtin_define_type_max): Define in terms of
29231         builtin_define_type_minmax.  Remove is_long parameter.  All
29232         callers changed.
29233         * config.gcc (use_gcc_stdint): Define.
29234         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
29235         Add newlib-stdint.h for generic targets.
29236         * config/glibc-stdint.h, config/newlib-stdint.h,
29237         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
29238         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
29239         * config/score/score.h (UINTPTR_TYPE): Define.
29240         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
29241         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
29242         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29243         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29244         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29245         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29246         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29247         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
29248         * config/spu/spu.h (STDINT_LONG32): Define.
29249         * configure.ac (use_gcc_stdint): Substitute.
29250         * configure: Regenerate.
29251         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
29252         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
29253         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
29254         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
29255         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
29256         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
29257         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
29258         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
29259         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
29260         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
29261         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
29262         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
29263         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
29264         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
29265         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
29266         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
29267         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
29268         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
29269         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
29270         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
29271         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
29272         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
29273         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
29274         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29275         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
29276         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
29277         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
29278         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29279         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
29281 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
29283         * loop-iv.c (suitable_set_for_replacement): Renamed from
29284         simplify_using_assignment; changed to return bool and to accept new
29285         args DEST and SRC.  Return true iff we find a source/destination pair
29286         that can be used to make a replacement, and fill SRC and DEST if so.
29287         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
29288         changed.
29289         (simplify_using_initial_values): Deal with altered regs here and track
29290         more precisely the effect they have on the validity of our expression.
29292         * loop-iv.c (simplify_using_condition): A condition of the form
29293         (EQ REG CONST) can be used to simply make a substitution.
29294         (simplify_using_initial_values): Keep track of conditions we have seen
29295         and keep using them to simplify new expressions, while applying the
29296         same substitutions to them as to the expression.
29298         * simplify-rtx.c (simplify_relational_operation_1): Simplify
29299         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
29300         GEU/LTU reversed.
29302         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
29303         changed.  Use this when trying to improve the upper bound.
29304         Generate the comparison by using simplify_gen_relational.
29306         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
29308         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
29309         functions.
29310         (simplify_using_assignment, simplify_using_initial_values): Call
29311         replace_in_expr to make replacements.  Call replace_single_def_regs
29312         once on the initial version of the expression.
29314 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29316         PR target/27237
29317         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
29319 2009-03-31  Richard Guenther  <rguenther@suse.de>
29321         PR middle-end/31029
29322         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
29323         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
29325 2009-03-31  Richard Guenther  <rguenther@suse.de>
29327         * tree.h (div_if_zero_remainder): Declare.
29328         * fold-const.c (div_if_zero_remainder): Export.
29329         * tree-ssa-forwprop.c
29330         (forward_propagate_addr_into_variable_array_index): Handle
29331         constant array index addition outside of the variable index.
29333 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29335         PR target/39592
29336         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
29337         define_splits, floatunssi<mode>2): Require x87 conversions from
29338         DImode to be permitted.
29340 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
29342         PR preprocessor/15638
29343         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
29345 2009-03-31  Richard Guenther  <rguenther@suse.de>
29347         PR middle-end/23401
29348         PR middle-end/27810
29349         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
29350         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
29351         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
29352         a separate statement.
29353         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
29354         (lookup_tmp_var): Likewise.
29355         (is_gimple_formal_tmp_or_call_rhs): Remove.
29356         (is_gimple_reg_or_call_rhs): Rename to ...
29357         (is_gimple_reg_rhs_or_call): ... this.
29358         (is_gimple_mem_or_call_rhs): Rename to ...
29359         (is_gimple_mem_rhs_or_call): ... this.
29360         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
29361         DECL_GIMPLE_REG_P only if is_formal is true.
29362         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
29363         for non-proper post-modify expression gimplification.
29364         (gimplify_self_mod_expr): For post-modify expressions gimplify
29365         the lvalue to a minimal lvalue.
29366         (rhs_predicate_for): Remove formal temp case.
29367         (gimplify_modify_expr_rhs): Likewise.
29368         (gimplify_addr_expr): Use is_gimple_reg.
29369         (gimplify_expr): Remove formal temp cases.
29370         (gimple_regimplify_operands): Likewise.
29371         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
29372         and FILTER_EXPR like constants.
29373         * gimple.c (walk_gimple_op): Fix val_only initialization, use
29374         is_gimple_reg.
29375         (is_gimple_formal_tmp_rhs): Remove.
29376         (is_gimple_reg_rhs): Remove special casing.
29377         (is_gimple_mem_rhs): Fix.
29378         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
29379         (is_gimple_formal_tmp_var): Remove.
29380         (is_gimple_formal_tmp_reg): Likewise.
29381         (is_gimple_min_lval): Allow invariant component ref parts.
29382         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
29383         is_gimple_formal_tmp_reg): Remove declarations.
29384         * tree-cfg.c (verify_expr): Verify that variables with address
29385         taken do not have DECL_GIMPLE_REG_P set.
29386         * tree-mudflap.c (mf_build_check_statement_for): Use
29387         force_gimple_operand instead of gimplify_expr.
29389 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
29391         * modulo-sched.c (sms_schedule_by_order): Pass the actual
29392         schedulable rows to compute_split_row.
29394 2009-03-31  Ben Elliston  <bje@au.ibm.com>
29396         PR target/31635
29397         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
29398         OPT_mvrsave.
29400 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29402         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
29403         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
29404         * configure: Regenerate.
29405         * config.in: Regenerate.
29406         * config/rs6000/rs6000.opt (mtls-markers): Add.
29407         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
29408         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
29409         (tls_ld_aix, tls_ld_sysv): Likewise.
29410         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
29411         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
29413 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
29415         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
29417 2009-03-30  Jan Hubicka  <jh@suse.cz>
29419         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
29420         out of RESX.
29421         (tree_remove_unreachable_handlers): Cleanup EH predecestor
29422         detection and label handling.
29424 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29426         * ira-int.h (ira_allocno): Rename left_conflicts_num to
29427         left_conflicts_size.
29428         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
29429         ALLOCNO_LEFT_CONFLICTS_SIZE.
29431         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
29432         remove_allocno_from_bucket_and_push,
29433         allocno_spill_priority_compare, push_allocnos_to_stack,
29434         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29435         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
29436         (setup_allocno_left_conflicts_num): Ditto.  Rename to
29437         setup_allocno_left_conflicts_size.
29438         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
29439         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
29440         setup_allocno_left_conflicts_size instead of
29441         setup_allocno_left_conflicts_num.
29443         * ira-build.c (ira_create_allocno): Use
29444         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
29445         ALLOCNO_LEFT_CONFLICTS_NUM.
29447 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29449         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29450         instead of DF_LR_OUT.
29452         * ira-lives.c (process_bb_node_lives): Ditto.
29454         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29455         instead of DF_LR_{OUT,IN}.
29457         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29459         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29461 2009-03-30  Jan Hubicka  <jh@suse.cz>
29463         * except.c (label_to_region_map): Fix thinko.
29465 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
29467         PR middle-end/38237
29468         * tree.h (tree_find_value): New declaration.
29469         * tree.c (tree_find_value): New function.
29470         * varasm.c (assemble_external): Avoid duplicate entries on lists.
29472 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
29474         PR debug/39563
29475         * c-decl.c (struct c_binding): Add locus field.
29476         (bind): Add locus argument, set locus field from it.
29477         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
29478         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
29479         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
29480         implicitly_declare, undeclared_variable, lookup_label,
29481         declare_label, c_make_fname_decl, c_builtin_function,
29482         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
29483         bind callers.
29485 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29487         PR target/38781
29488         * config/i386/i386.c (classify_argument): Check total size of
29489         structure.
29491 2009-03-30  Martin Jambor  <mjambor@suse.cz>
29493         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
29494         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
29495         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
29496         respectively.
29498         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
29499         seen_variable_array_ref while also traversing a union.
29501         * tree-inline.c (optimize_inline_calls): Do not call
29502         cgraph_node_remove_callees.
29503         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
29504         (pass_remove_cgraph_callee_edges): New variable.
29505         * passes.c (init_optimization_passes): Add
29506         pass_remove_cgraph_callee_edges after early inlining and before all
29507         late intraprocedural passes.
29509         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
29511 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29513         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
29514         Fix typos in names.
29516 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29518         * combine.c (simplify_comparison): Use have_insn_for.
29519         * dojump.c (do_jump): Likewise.
29521 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29523         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
29524         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
29525         sparc_compare_op0 like sparc_compare_emitted used to be handled.
29526         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
29527         instead of sparc_compare_emitted.
29528         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
29529         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
29530         instead of sparc_compare_emitted.
29532 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29534         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
29535         enter/exit cfglayout mode.
29536         (pass_partition_block): Require it.
29537         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
29538         (combine_instructions): Track basic blocks instead of labels.
29539         (update_cfg_for_uncondjump): New.
29540         (try_combine): Use it.  Update jumps after rescanning.
29541         (pass_combine): Require PROP_cfglayout.
29542         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
29544 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29546         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
29547         Provide/destroy PROP_cfglayout respectively.
29548         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
29549         * tree-pass.h (PROP_cfglayout): New.
29551 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
29553         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
29554         fold_convert_const_fixed_from_fixed,
29555         fold_convert_const_fixed_from_int,
29556         fold_convert_const_fixed_from_real, fold_negate_const): Do not
29557         set TREE_CONSTANT_OVERFLOW.
29558         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
29559         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
29561 2009-03-30  Ira Rosen  <irar@il.ibm.com>
29563         * tree-vect-loop-manip.c: New file.
29564         * tree-vectorizer.c: Update documentation and included files.
29565         (vect_loop_location): Make extern.
29566         (rename_use_op): Move to tree-vect-loop-manip.c
29567         (rename_variables_in_bb, rename_variables_in_loop,
29568         slpeel_update_phis_for_duplicate_loop,
29569         slpeel_update_phi_nodes_for_guard1,
29570         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
29571         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
29572         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
29573         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
29574         find_loop_location): Likewise.
29575         (new_stmt_vec_info): Move to tree-vect-stmts.c.
29576         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
29577         get_vectype_for_scalar_type, vect_is_simple_use,
29578         supportable_widening_operation, supportable_narrowing_operation):
29579         Likewise.
29580         (bb_in_loop_p): Move to tree-vect-loop.c.
29581         (new_loop_vec_info, destroy_loop_vec_info,
29582         reduction_code_for_scalar_code, report_vect_op,
29583         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
29584         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
29585         (vect_supportable_dr_alignment): Likewise.
29586         * tree-vectorizer.h (tree-data-ref.h): Include.
29587         (vect_loop_location): Declare.
29588         Reorganize function declarations according to the new file structure.
29589         * tree-vect-loop.c: New file.
29590         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
29591         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
29592         * tree-vect-data-refs.c: New file.
29593         * tree-vect-patterns.c (timevar.h): Don't include.
29594         * tree-vect-stmts.c: New file.
29595         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
29596         tree-vect-slp.c, tree-vect-loop.c.
29597         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
29598         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
29599         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
29600         (tree-vect-analyze.o): Remove.
29601         (tree-vect-transform.o): Likewise.
29602         (tree-vect-data-refs.o): Add rule.
29603         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
29604         tree-vect-slp.o): Likewise.
29605         (tree-vect-patterns.o): Remove redundant dependencies.
29606         (tree-vectorizer.o): Likewise.
29607         * tree-vect-slp.c: New file.
29609 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29611         * optc-gen.awk: Warn if an option flag has multiple different
29612         help strings.
29614 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
29616         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
29617         -floop-block): Document dependences on PPL, CLooG and Graphite.
29619 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29621         PR rtl-optimization/323
29622         * c-common.c (c_fully_fold, convert_and_check,
29623         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
29624         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
29625         * c-common.def (EXCESS_PRECISION_EXPR): New.
29626         * c-cppbuiltin.c (builtin_define_float_constants): Define
29627         constants with enough digits for long double.
29628         * c-lex.c (interpret_float): Interpret constant with excess
29629         precision where appropriate.
29630         * c-opts.c (c_common_post_options): Set
29631         flag_excess_precision_cmdline.  Give an error for
29632         -fexcess-precision=standard for C++ for processors where the
29633         option is significant.
29634         * c-parser.c (c_parser_conditional_expression): Handle excess
29635         precision in condition.
29636         * c-typeck.c (convert_arguments): Handle arguments with excess
29637         precision.
29638         (build_unary_op): Move excess precision outside operation.
29639         (build_conditional_expr): Likewise.
29640         (build_compound_expr): Likewise.
29641         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
29642         (build_modify_expr): Handle excess precision in RHS.
29643         (convert_for_assignment): Handle excess precision in converted
29644         value.
29645         (digest_init, output_init_element, process_init_element): Handle
29646         excess precision in initializer.
29647         (c_finish_return): Handle excess precision in return value.
29648         (build_binary_op): Handle excess precision in operands and add
29649         excess precision as needed for operation.
29650         * common.opt (-fexcess-precision=): New option.
29651         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
29652         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
29653         For standard excess precision, output explicit conversion to and
29654         truncation from XFmode.
29655         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
29656         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
29657         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
29658         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
29659         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
29660         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
29661         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
29662         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
29663         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
29664         define_splits, sqrt<mode>2): Disable where appropriate for
29665         standard excess precision.
29666         * convert.c (convert_to_real): Do not shorten arithmetic to type
29667         for which excess precision would be used.
29668         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
29669         * doc/invoke.texi (-fexcess-precision=): Document option.
29670         (-mfpmath=): Correct index entry.
29671         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
29672         flag_excess_precision): New.
29673         * langhooks.c (lhd_post_options): Set
29674         flag_excess_precision_cmdline.
29675         * opts.c (common_handle_option): Handle -fexcess-precision=.
29676         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
29677         init_excess_precision): New.
29678         (lang_dependent_init_target): Call init_excess_precision.
29679         * tree.c (excess_precision_type): New.
29680         * tree.h (excess_precision_type): Declare.
29682 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
29684         PR c/35235
29685         * c-typeck.c (build_component_ref): Do not copy qualifiers from
29686         non-lvalue to component.
29688 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29690         PR preprocessor/34695
29691         * Makefile.in (c-opts.o): Depend on c-tree.h.
29692         * c-common.c: Move down include of diagnostic.h.
29693         (done_lexing, c_cpp_error): New.
29694         * c-common.h (done_lexing): Declare.
29695         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
29696         (parse_in).
29697         * c-opts.c: Include c-tree.h.
29698         (c_common_init_options): Set preprocessor error callback.
29699         (c_common_handle_option): Do not set preprocessor
29700         inhibit_warnings, warnings_are_errors, warn_system_headers,
29701         pedantic_errors or inhibit_warnings flags.
29702         (c_common_post_options): Do not check cpp_errors (parse_in).
29703         (c_common_finish): Do not output dependencies if there were
29704         errors.  Do not check return value of cpp_finish.
29705         * c-ppoutput.c (pp_file_change): Set input_location.
29706         * c-tree.h (c_cpp_error): Declare.
29707         * diagnostic.c (diagnostic_set_info_translated): Also initialize
29708         override_column.
29709         (diagnostic_build_prefix): Check override_column.
29710         * diagnostic.h (diagnostic_info): Add override_column field.
29711         (diagnostic_override_column): Define.
29713 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
29715         * c-common.c (c_expand_expr, c_staticp): Remove.
29716         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
29717         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
29718         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
29719         * c-gimplify.c (gimplify_compound_literal_expr,
29720         optimize_compound_literals_in_ctor): Remove.
29721         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
29722         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
29723         * c-semantics.c (emit_local_var): Remove.
29725         * langhooks-def.h (lhd_expand_expr): Remove.
29726         * langhooks.c (lhd_expand_expr): Remove.
29727         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
29729         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
29730         handling from c-semantics.c; don't call into langhook.
29731         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
29732         * gimplify.c (gimplify_compound_literal_expr,
29733         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
29734         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
29735         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
29736         as was done in c-gimplify.c.
29737         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
29738         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
29739         Move from c-common.h.
29740         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
29742         * tree.c (staticp): Do not call langhook.
29743         * langhooks.c (lhd_staticp): Delete.
29744         * langhooks-def.h (lhd_staticp): Delete prototype.
29745         (LANG_HOOKS_STATICP): Delete.
29746         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
29748         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
29749         instead of DECL_STMTs.
29751 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
29753         PR c/456
29754         PR c/5675
29755         PR c/19976
29756         PR c/29116
29757         PR c/31871
29758         PR c/35198
29759         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
29760         void_type_node.
29761         (fold_call_expr): Return a NOP_EXPR from folding rather than the
29762         contained expression.
29763         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
29764         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
29765         conditional expressions for C.
29766         (decl_constant_value_for_optimization): Move from
29767         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
29768         whether optimizing and that the expression is a VAR_DECL not of
29769         array type instead of doing such checks in the caller.  Do not
29770         check pedantic.  Call gcc_unreachable for C++.
29771         * c-common.def (C_MAYBE_CONST_EXPR): New.
29772         * c-common.h (c_fully_fold, c_save_expr,
29773         decl_constant_value_for_optimization): New prototypes.
29774         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
29775         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
29776         EXPR_INT_CONST_OPERANDS): Define.
29777         * c-convert.c (convert): Strip nops from expression.
29778         * c-decl.c (groktypename): Take extra parameters expr and
29779         expr_const_operands.  Update call to grokdeclarator.
29780         (start_decl): Update call to grokdeclarator.  Add statement for
29781         expressions used in type of decl.
29782         (grokparm): Update call to grokdeclarator.
29783         (push_parm_decl): Update call to grokdeclarator.
29784         (build_compound_literal): Add parameter non_const and build a
29785         C_MAYBE_COSNT_EXPR if applicable.
29786         (grokdeclarator): Take extra parameters expr and
29787         expr_const_operands.  Track expressions used in declaration
29788         specifiers and declarators.  Fold array sizes and track whether
29789         they are constant expressions and whether they are integer
29790         constant expressions.
29791         (parser_xref_tag): Set expr and expr_const_operands fields in
29792         return value.
29793         (grokfield): Update call to grokdeclarator.
29794         (start_function): Update call to grokdeclarator.
29795         (build_null_declspecs): Set expr and expr_const_operands fields in
29796         return value.
29797         (declspecs_add_type): Handle expressions in typeof specifiers.
29798         * c-parser.c (c_parser_declspecs): Set expr and
29799         expr_const_operands fields for declaration specifiers.
29800         (c_parser_enum_specifier): Likewise.
29801         (c_parser_struct_or_union_specifier): Likewise.
29802         (c_parser_typeof_specifier): Likewise.  Update call to
29803         groktypename.  Fold expression as needed.  Return expressions with
29804         type instead of adding statements.
29805         (c_parser_attributes): Update calls to c_parser_expr_list.
29806         (c_parser_statement_after_labels): Fold expression before passing
29807         to objc_build_throw_stmt.
29808         (c_parser_condition): Fold expression.
29809         (c_parser_asm_operands): Fold expression.
29810         (c_parser_conditional_expression): Use c_save_expr.  Update call
29811         to build_conditional_expr.
29812         (c_parser_alignof_expression): Update call to groktypename.
29813         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
29814         original_code.  Fold expression argument of va_arg.  Create
29815         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
29816         argument to va_arg.  Update calls to groktypename.  Fold array
29817         index for offsetof.  Verify that first argument to
29818         __builtin_choose_expr has integer type.
29819         (c_parser_postfix_expression_after_paren_type): Update calls to
29820         groktypename and build_compound_literal.  Handle expressions with
29821         side effects in type name.
29822         (c_parser_postfix_expression_after_primary): Update call to
29823         c_parser_expr_list.  Set original_code for calls to
29824         __builtin_constant_p.
29825         (c_parser_expr_list): Take extra parameter fold_p.  Fold
29826         expressions if requested.
29827         (c_parser_objc_type_name): Update call to groktypename.
29828         (c_parser_objc_synchronized_statement): Fold expression.
29829         (c_parser_objc_receiver): Fold expression.
29830         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
29831         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
29832         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
29833         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
29834         (struct c_typespec): Add elements expr and expr_const_operands.
29835         (struct c_declspecs): Add elements expr and expr_const_operands.
29836         (groktypename, build_conditional_expr, build_compound_literal):
29837         Update prototypes.
29838         (in_late_binary_op): Declare.
29839         * c-typeck.c (note_integer_operands): New function.
29840         (in_late_binary_op): New variable.
29841         (decl_constant_value_for_broken_optimization): Move to c-common.c
29842         and rename to decl_constant_value_for_optimization.
29843         (default_function_array_conversion): Do not strip nops.
29844         (default_conversion): Do not call
29845         decl_constant_value_for_broken_optimization.
29846         (build_array_ref): Do not fold result.
29847         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
29848         result when operand is a VLA.
29849         (c_expr_sizeof_type): Update call to groktypename.  Handle
29850         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
29851         result when operand names a VLA type.
29852         (build_function_call): Update call to build_compound_literal.
29853         Only fold result for calls to __builtin_* functions.  Strip
29854         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
29855         the function designator.
29856         (convert_arguments): Fold arguments.  Update call to
29857         convert_for_assignment.
29858         (build_unary_op): Handle increment and decrement of
29859         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
29860         decrement earlier.  Fold operand of increment and decrement.
29861         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
29862         built for integer operand.  Wrap returns that are INTEGER_CSTs
29863         without being integer constant expressions or that have integer
29864         constant operands without being INTEGER_CSTs.
29865         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
29866         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
29867         result is an integer constant expression or can be used in
29868         unevaluated parts of one and avoid folding and wrap as
29869         appropriate.  Fold operands before possibly doing -Wsign-compare
29870         warnings.
29871         (build_compound_expr): Wrap result for C99 if operands can be used
29872         in integer constant expressions.
29873         (build_c_cast): Update call to digest_init.  Do not ignore
29874         overflow from casting floating-point constants to integers.  Wrap
29875         results that could be confused with integer constant expressions,
29876         null pointer constants or floating-point constants.
29877         (c_cast_expr): Update call to groktypename.  Handle expressions
29878         included in type name.
29879         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
29880         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
29881         Update calls to convert_for_assignment.
29882         (convert_for_assignment): Take new parameter
29883         null_pointer_constant.  Do not strip nops or call
29884         decl_constant_value_for_broken_optimization.  Set
29885         in_late_binary_op for conversions to boolean.
29886         (store_init_value): Update call to digest_init.
29887         (digest_init): Take new parameter null_pointer_constant.  Do not
29888         call decl_constant_value_for_broken_optimization.  pedwarn for
29889         initializers not constant expressions.  Update calls to
29890         convert_for_assignment.
29891         (constructor_nonconst): New.
29892         (struct constructor_stack): Add nonconst element.
29893         (really_start_incremental_init, push_init_level, pop_init_level):
29894         Handle constructor_nonconst and nonconst element.
29895         (set_init_index): Call constant_expression_warning for array
29896         designators.
29897         (output_init_element): Fold value.  Set constructor_nonconst as
29898         applicable.  pedwarn for initializers not constant expressions.
29899         Update call to digest_init.  Call constant_expression_warning
29900         where constant initializers are required.
29901         (process_init_element): Use c_save_expr.
29902         (c_finish_goto_ptr): Fold expression.
29903         (c_finish_return): Fold return value.  Update call to
29904         convert_for_assignment.
29905         (c_start_case): Fold switch expression.
29906         (c_process_expr_stmt): Fold expression.
29907         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
29908         ensure statement expression is not evaluated in constant expression.
29909         (build_binary_op): Track whether results are integer constant
29910         expressions or may occur in such, disable folding and wrap results
29911         as applicable.  Fold operands for -Wsign-compare warnings unless
29912         in_late_binary_op.
29913         (c_objc_common_truthvalue_conversion): Handle results folded to
29914         integer constants that are not integer constant expressions.
29915         * doc/extend.texi: Document when typeof operands are evaluated,
29916         that condition of __builtin_choose_expr is an integer constant
29917         expression, and more about use of __builtin_constant_p in
29918         initializers.
29920 2009-03-29  Richard Guenther  <rguenther@suse.de>
29922         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
29923         propagate addresses of array references.
29925 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29927         * regmove.c (perhaps_ends_bb_p): Remove.
29928         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
29929         from INSN and check that the main loop stays within that basic block.
29930         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
29931         (regmove_forward_pass): Split out from regmove_optimize.  Use
29932         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
29933         (regmove_backward_pass): Split out from regmove_optimize.  Use
29934         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
29935         (regmove_optimize): Simplify.
29937 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29939         PR target/39545
29940         * config/i386/i386.c (classify_argument): Ignore flexible array
29941         member in struct and warn ABI change.
29943 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
29945         * config/i386/i386-protos.h (ix86_agi_dependent): New.
29947         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
29948         (ix86_adjust_cost): Updated.
29950 2009-03-29  Jan Hubicka  <jh@suse.cz>
29952         PR middle-end/28850
29953         * tree-pass.h (pass_cleanup_eh): New function.
29954         (remove_unreachable_regions): Break code handling RTL
29955         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
29956         that can not be reached by runtime.
29957         (can_be_reached_by_runtime): New function.
29958         (label_to_region_map): New function.
29959         (num_eh_regions): New function.
29960         (rtl_remove_unreachable_regions): New function.
29961         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
29962         (remove_eh_region): New function.
29963         * except.h: Include sbitmap and vecprim.
29964         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
29965         num_eh_regions): Declare.
29966         * passes.c (init_optimization_passes): Schedule cleanup_eh.
29967         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
29968         * tree-eh.c (tree_remove_unreachable_handlers): New function.
29969         (tree_empty_eh_handler_p): New function.
29970         (cleanup_empty_eh): New function.
29971         (cleanup_eh): New function.
29972         (pass_cleanup_eh): New function.
29974 2009-03-29  Jan Hubicka  <jh@suse.cz>
29976         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
29977         for removed regions.
29979 2009-03-29  Jan Hubicka  <jh@suse.cz>
29981         * except.c (dump_eh_tree): Dump all datastructures.
29983 2009-03-29  Jan Hubicka  <jh@suse.cz>
29985         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
29986         (duplicate_eh_regions_1): Likewise.
29987         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
29988         vector; call EH verification.
29989         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
29990         Be ready for region being removed.
29992 2009-03-29  Jan Hubicka  <jh@suse.cz>
29994         * bitmap.c (bitmap_last_set_bit): New function.
29995         * bitmap.h (bitmap_last_set_bit): Declare.
29997 2009-03-29  David Ayers  <ayers@fsfe.org>
29999         PR objc/27377
30000         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
30001         by calling objc_compare_types and surpress warnings about
30002         incompatible C pointers that are compatible ObjC pointers.
30004 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
30006         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
30007         call initialize_inline_failed.
30008         (initialize_inline_failed): Move it from here ...
30009         * cgraph.c (initialize_inline_failed): ... to here.
30010         (cgraph_create_edge): Call initialize_inline_failed rather than
30011         setting inline_failed directly.
30013 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30015         PR target/32542
30016         * sysv4.opt (msdata): Improve comment.
30017         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
30018         * sysv4.h (SVR4_ASM_SPEC): Likewise.
30020 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30022         PR target/30451
30023         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
30024         load and store attributes.
30026 2009-03-29  Ben Elliston  <bje@au.ibm.com>
30028         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
30029         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
30030         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
30031         * doc/extend.texi (X86 Built-in Functions): Add index entries for
30032         __builtin_infq and __builtin_huge_valq.
30034 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
30036         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
30037         atmega8m1 devices.
30038         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
30039         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
30041 2009-03-28  Xinliang David Li  <davidxl@google.com>
30043         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
30044         (do_dbg_cnt): New function.
30046 2009-03-28  Jan Hubicka  <jh@suse.cz>
30048         Merge from pretty-ipa:
30050         2009-03-27  Jan Hubicka  <jh@suse.cz>
30052         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30053         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
30054         * passes.c (function_called_by_processed_nodes_p): New.
30055         * ipa-pure-const.c (check_call): Fix handling of operands.
30056         (analyze_function): Dump debug output for skipped bodies.
30057         (local_pure_const): Use function_called_by_processed_nodes_p.
30058         * dwarf2out.c (reference_to_unused): Use output.
30059         * passes.c (do_per_function_toporder): Likewise.
30061         2008-11-12  Jan Hubicka  <jh@suse.cz>
30063         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
30064         * ipa-pure-const.c (funct_state_d): Add can throw field; make
30065         state_set_in_source enum
30066         (check_decl): Ignore memory tags; do not set fake looping flags;
30067         dump diagnostics.
30068         (check_operand, check_tree, check_rhs_var, check_lhs_var,
30069         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
30070         (check_call, analyze_function): Rewrite.
30071         (check_stmt): New.
30072         (add_new_function): Update call of analyze_function.
30073         (generate_summary): Add call of analyze_function.
30074         (propagate): Propagate can_throw; handle state_set_in_source correctly.
30075         (local_pure_const): New function.
30076         (pass_local_pure_const): New pass.
30077         * ipa-inline.c (inline_transform): Set after_inlining.
30078         * tree-eh.c (stmt_can_throw_external): New.
30079         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
30080         work with aliasing built.
30081         * tree-flow.h (stmt_can_throw_external): New.
30082         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
30083         and local pure/const pass in early and late optimization queue.
30085 2009-03-28  Martin Jambor  <mjambor@suse.cz>
30087         * fold-const.c (get_pointer_modulus_and_residue): New parameter
30088         allow_func_align.
30089         (fold_binary): Allow function decl aligment consideration is the
30090         second argument is integer constant one.
30091         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
30092         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
30093         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
30095 2009-03-28  Jan Hubicka  <jh@suse.cz>
30097         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
30098         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
30099         * function.h (rtl_data): Add nothrow flag.
30100         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
30101         set DECL_NOTHROW for AVAILABLE functions.
30103 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
30105         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
30106         following vector keyword has expansion starting with pixel or bool
30107         keyword, expand vector to __vector and pixel or bool to __pixel or
30108         __bool.
30110         PR c++/39554
30111         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
30112         warn_if_disallowed_function_p): Removed.
30113         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
30114         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
30115         warning_if_disallowed_function_p.
30116         * flags.h (warn_if_disallowed_function_p,
30117         warn_disallowed_functions): Removed.
30118         * common.opt (Wdisallowed-function-list=): Removed.
30119         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
30121 2009-03-28  Richard Guenther  <rguenther@suse.de>
30123         PR tree-optimization/38723
30124         * tree-ssa-pre.c (compute_avail): Add all default definitions to
30125         the entry block.
30127 2009-03-28  Jan Hubicka  <jh@suse.cz>
30129         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
30130         test introduced by my previous patch.
30132 2009-03-28  Richard Guenther  <rguenther@suse.de>
30134         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
30135         the PHIs value undefined.
30137 2009-03-28  Jan Hubicka  <jh@suse.cz>
30139         * tree-pass.h (pass_fixup_cfg): New pass.
30140         * ipa-inline.c (inline_transform): Set
30141         always_inline_functions_inlined/after_inlining.
30142         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
30143         (pass_fixup_cfg): New pass.
30144         * passes.c (init_optimization_passes): Add fixup_cfg.
30146 2009-03-28  Richard Guenther  <rguenther@suse.de>
30148         PR tree-optimization/38458
30149         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
30150         argument use the arguments copy-of value.
30152 2009-03-28  Richard Guenther  <rguenther@suse.de>
30154         PR tree-optimization/38180
30155         * tree-ssa-ccp.c (get_default_value): Simplify.
30156         (likely_value): Likewise.
30157         (surely_varying_stmt_p): Properly handle VOP case.
30158         (ccp_initialize): Likewise.
30159         (ccp_fold): Handle propagating through *&.
30160         (fold_const_aggregate_ref): Also handle decls.
30162 2009-03-28  Jan Hubicka  <jh@suse.cz>
30164         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
30165         * cgraph.h (cgraph_node): Likewise.
30166         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
30167         (cgraph_reset_node): Use process flag.
30168         (cgraph_mark_functions_to_output): Likewise.
30169         (cgraph_expand_function): Likewise.
30170         (cgraph_expand_all_functions): Likewise.
30171         (cgraph_output_in_order): Likewise.
30172         * dwarf2out.c (reference_to_unused): Likewise.
30173         * passes.c do_per_function_toporder): Likewise.
30175 2009-03-28  Jan Hubicka  <jh@suse.cz>
30177         Bring from lto-branch:
30179         2008-09-03  Doug Kwan  <dougkwan@google.com>
30181         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
30182         enums instead of reason strings.
30183         * cgraph.c (cgraph_create_edge): Same.
30184         (cgraph_inline_failed_string): New function.
30185         * cgraph.h (cgraph_inline_failed_t): New enum type.
30186         (cgraph_inline_failed_string): New prototype.
30187         (struct cgraph_edge): Change type of INLINED_FAILED from constant
30188         char pointer to cgraph_inline_failed_t.
30189         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
30190         (cgraph_default_inline_p): Ditto.
30191         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
30192         to cgraph_inline_failed_t pointer.
30193         * cif-code.def: New file.
30194         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
30195         reason string.
30196         (cgraph_check_inline_limits): Change type of REASON to pointer to
30197         cgraph_inline_failed_t.  Replace reason strings with enums.
30198         (cgraph_default_inline_p): Ditto.
30199         (cgraph_recursive_inlining_p): Ditto.
30200         (update_caller_keys): Change type of FAILED_REASON to
30201         cgraph_inline_failed_t.
30202         (cgraph_set_inline_failed): Change type of REASON to pointer to
30203         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
30204         convert enums to strings for text output.
30205         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
30206         to be of type cgraph_inline_failed_t.  Replace reason strings with
30207         enums.  Call cgraph_inline_failed_string to covert enums
30208         to strings for text output.
30209         (cgraph_decide_inlining): Replace reason strings with enums.
30210         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
30211         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
30212         for text output.
30213         * tree-inline.c (expand_call_inline): Change type of REASON
30214         to cgraph_inline_failed_t.  Replace reason strings with enums.
30215         Call cgraph_inline_failed_string for text output.
30216         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
30217         (cgraph.o): Ditto.
30219 2009-03-28  Jan Hubicka  <jh@suse.cz>
30221         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
30222         cgraph_clone_node): Remove master clone handling.
30223         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30224         * cgraph.h (master_clone): Remove.
30225         (cgraph_is_master_clone, cgraph_master_clone): Remove.
30226         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
30227         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
30229 2009-03-28  Jan Hubicka  <jh@suse.cz>
30231         * cgraph.c (cgraph_function_body_availability): Functions declared
30232         inline are always safe to assume that it is not going to be replaced.
30234 2009-03-28  Richard Guenther  <rguenther@suse.de>
30236         PR tree-optimization/38513
30237         * tree-ssa-pre.c (eliminate): Remove redundant stores.
30238         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
30239         EXC_PTR_EXPR and FILTER_EXPR.
30240         (get_ref_from_reference_ops): Likewise.
30242 2009-03-28  Richard Guenther  <rguenther@suse.de>
30244         PR tree-optimization/38968
30245         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
30246         Use FLOOR_MOD_EXPR to compute misalignment.
30248 2009-03-28  Richard Guenther  <rguenther@suse.de>
30250         PR tree-optimization/37795
30251         * tree.h (combine_comparisons): Declare.
30252         * fold-const.c (combine_comparisons): Export.
30253         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
30254         comparisons.
30255         (ifcombine_iforif): Use combine_comparisons.
30257 2009-03-28  Jan Hubicka  <jh@suse.cz>
30259         * tree-eh.c (inlinable_call_p): New function.
30260         (make_eh_edges): Use it.
30261         (verify_eh_edges): Use it.
30262         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
30263         * except.c (reachable_next_level): Add inlinable_function argument
30264         (sjlj_find_directly_reachable_regions): Update.
30265         (add_reachable_handler): Do not set saw_any_handlers.
30266         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
30267         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30268         Add new inlinable call parameter.
30269         (can_throw_internal, can_throw_external): Update.
30270         * except.h (can_throw_internal_1, can_throw_external_1,
30271         foreach_reachable_handler): Update declaration.
30273 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
30275         * config/arm/t-arm-coff, config/h8300/coff.h,
30276         config/i386/i386-aout.h, config/i386/i386-coff.h,
30277         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
30278         config/pdp11/2bsd.h, config/rs6000/aix41.h,
30279         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
30280         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
30281         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
30282         sys-types.h: Remove.
30283         * Makefile.in: Remove protoize and fixproto support and references
30284         in comments.
30285         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
30286         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
30287         Remove.
30288         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
30289         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
30290         unprotoize$(exeext).
30291         (rest.encap): Don't depend on $(STMP_FIXPROTO)
30292         (.PHONY): Don't depend on proto.
30293         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
30294         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
30295         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
30296         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
30297         build/gen-protos.o, build/scan.o, xsys-protos.h,
30298         build/fix-header$(build_exeext), build/fix-header.o,
30299         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
30300         stmp-install-fixproto): Remove.
30301         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
30302         SYSCALLS.c or fixproto files.
30303         (install-common): Don't install protoize.
30304         (install-headers-tar, install-headers-cpio, install-headers-cp):
30305         Don't depend on $(STMP_FIXPROTO).
30306         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
30307         install fixproto files or write out fixproto settings.
30308         (uninstall): Don't uninstall protoize.
30309         * config.gcc (use_fixproto): Remove.
30310         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
30311         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
30312         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
30313         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
30314         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
30315         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
30316         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
30317         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
30318         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
30319         * config/t-vxworks (STMP_FIXPROTO): Remove.
30320         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
30321         STMP_FIXPROTO): Remove.
30322         * config.in, configure: Regenerate.
30323         * crtstuff.c (gid_t, uid_t): Don't undefine.
30324         * doc/install.texi: Change m68k-coff to m68k-elf in example.
30325         (arm-*-coff, arm-*-aout: Remove target entries.
30326         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
30327         Remove mention of AIX 4.1.
30328         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
30329         * doc/invoke.texi (Running Protoize): Remove.
30330         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
30331         (Protoize Caveats): Remove.
30332         * tsystem.h: Update comments on headers assumed to exist.
30334 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30336         * genautomata.c: Add a new year to the copyright.  Add a new
30337         reference.
30338         (struct insn_reserv_decl): Add comments for member bypass_list.
30339         (find_bypass): Remove.
30340         (insert_bypass): New.
30341         (process_decls): Use insert_bypass.
30342         (output_internal_insn_latency_func): Output all bypasses with the
30343         same input insn in one switch case.
30345         * rtl.def (define_bypass): Describe bypass choice.
30346         * doc/md.texi (define_bypass): Ditto.
30348 2009-03-27  Richard Guenther  <rguenther@suse.de>
30350         * gimplify.c (mark_addressable): Export.
30351         * tree-flow.h (mark_addressable): Declare.
30352         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
30353         * tree-ssa.c (verify_phi_args): Verify that address taken
30354         variables have TREE_ADDRESSABLE set.
30356 2009-03-27  Richard Guenther  <rguenther@suse.de>
30358         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
30359         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
30360         Do not mark decls TREE_ADDRESSABLE.
30361         (build_fold_addr_expr): Adjust.
30362         (fold_addr_expr): Remove.
30363         (fold_unary): Use build_fold_addr_expr.
30364         (fold_comparison): Likewise.
30365         (split_address_to_core_and_offset): Likewise.
30366         * coverage.c (tree_coverage_counter_addr): Mark the array decl
30367         TREE_ADDRESSABLE.
30368         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
30369         (gimplify_modify_expr_to_memcpy): Mark source and destination
30370         addressable.
30371         * omp-low.c (create_omp_child_function): Mark the object decl
30372         TREE_ADDRESSABLE.
30373         (lower_rec_input_clauses): Mark the var we take the address of
30374         TREE_ADDRESSABLE.
30375         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
30377 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30379         PR middle-end/39315
30380         * cfgexpand.c (expand_one_stack_var_at): Change alignment
30381         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
30383 2009-03-27  Richard Guenther  <rguenther@suse.de>
30385         PR tree-optimization/39120
30386         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
30387         constraints.
30388         (handle_lhs_call): Process return constraints.  Add escape
30389         constraints if necessary.
30390         (handle_const_call): Fill out return constraints.  Make nested
30391         case more precise.  Avoid consttmp if possible.
30392         (handle_pure_call): Fill out return constraints.  Avoid
30393         callused if possible.
30394         (find_func_aliases): Simplify call handling.
30396 2009-03-27  Richard Guenther  <rguenther@suse.de>
30398         PR tree-optimization/39120
30399         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
30400         as a representative.
30401         (solve_graph): Do propagate CALLUSED.
30402         (handle_pure_call): Use a scalar constraint from CALLUSED for
30403         the return value.
30404         (find_what_p_points_to): CALLUSED shall not appear in poins-to
30405         solutions.
30407 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30409         PR c/39323
30410         * c-common.c (handle_aligned_attribute): Properly check alignment
30411         overflow.  Use (1U << i) instead of (1 << i).
30413         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
30415         * expr.h (get_mem_align_offset): Updated.
30417         * tree.h (tree_decl_common): Change align to "unsigned int" and
30418         move it before pointer_alias_set.
30420 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30421             Jakub Jelinek  <jakub@redhat.com>
30423         PR target/38034
30424         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
30425         gr_register_operand with gr_reg_or_0_operand.
30426         (cmpxchg_rel_di): Likewise.
30427         (sync_lock_test_and_set<mode>): Likewise.
30429 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30431         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
30432         (true_regnum): Likewise.
30434         * rtlanal.c (subreg_info): Moved to ...
30435         * rtl.h (subreg_info): Here.  New.
30436         (subreg_get_info): New.
30438         * rtlanal.c (subreg_get_info): Make it extern.
30440 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30442         PR target/39472
30443         * config/i386/i386.c (ix86_abi): New.
30444         (override_options): Handle -mabi=.
30445         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
30446         (ix86_call_abi_override): Likewise.
30447         (init_cumulative_args): Likewise.
30448         (function_arg_advance): Likewise.
30449         (function_arg_64): Likewise.
30450         (function_arg): Likewise.
30451         (ix86_pass_by_reference): Likewise.
30452         (ix86_function_value_regno_p): Likewise.
30453         (ix86_build_builtin_va_list_abi): Likewise.
30454         (setup_incoming_varargs_64): Likewise.
30455         (is_va_list_char_pointer): Likewise.
30456         (ix86_init_machine_status): Likewise.
30457         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
30458         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
30459         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
30460         (ix86_function_abi): Make it static and return enum calling_abi.
30461         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
30462         with ix86_abi.
30463         (ix86_fn_abi_va_list): Updated.
30465         * config/i386/i386.h (ix86_abi): New.
30466         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
30467         (CONDITIONAL_REGISTER_USAGE): Likewise.
30468         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
30469         (machine_function): Likewise.
30471         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
30472         with ix86_abi.
30473         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
30474         (STACK_BOUNDARY): Likewise.
30475         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
30477         * config/i386/i386.opt (mabi=): New.
30479         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
30480         return enum calling_abi.
30481         (ix86_function_type_abi): Likewise.
30482         (ix86_function_abi): Removed.
30484         * doc/invoke.texi: Document -mabi= option for x86.
30486 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30488         * builtins.c (real_dconstp): Delete.
30489         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
30491 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
30492             Jakub Jelinek  <jakub@redhat.com>
30494         PR debug/37959
30495         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
30496         (gen_subprogram_die): When a function is explicit, generate the
30497         DW_AT_explicit attribute.
30498         * langhooks.h (struct lang_hooks_for_decls): Add
30499         function_decl_explicit_p langhook.
30500         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
30501         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
30503 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
30505         * builtins.c (fold_builtin_memory_op): Optimize memmove
30506         into memcpy if we can prove source and destination don't overlap.
30508         * tree-inline.c: Include gt-tree-inline.h.
30509         (clone_fn_id_num): New variable.
30510         (clone_function_name): New function.
30511         (tree_function_versioning): Use it.
30512         * Makefile.in (GTFILES): Add tree-inline.c.
30514 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
30516         * BASE-VER: Change to 4.5.0.
30518 2009-03-27  Xinliang David Li  <davidxl@google.com>
30520         PR tree-optimization/39557
30521         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
30523 2009-03-27  Xinliang David Li  <davidxl@google.com>
30525         PR tree-optimization/39548
30526         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
30527         candidate check.
30529 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30531         * c-common.c (pointer_int_sum): Use %wd on return from
30532         tree_low_cst.
30534 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30536         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
30537         on return from tree_low_cst.
30539 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30541         PR c++/36799
30542         * ginclude/stdarg.h (va_copy): Define also for
30543         __GXX_EXPERIMENTAL_CXX0X__.
30545 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
30547         PR c++/35652
30548         * builtins.h (c_strlen): Do not warn here.
30549         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
30550         * c-common.c (pointer_int_sum): Take an explicit location.
30551         Warn about offsets out of bounds.
30552         * c-common.h (pointer_int_sum): Adjust declaration.
30554 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30556         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
30557         markup glitch.
30559 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
30561         PR c++/39554
30562         * opts.c (warn_if_disallowed_function_p): Don't assume
30563         get_callee_fndecl must return non-NULL.
30565 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
30567         PR rtl-optimization/39522
30568         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
30569         when reg_reloaded_valid is set.
30571 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30573         * config/spu/divv2df3.c: New file.
30574         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
30575         (DPBIT_FUNCS): Filter out _div_df.
30577 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
30579         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
30580         a jump insn, count that jump in the distance to the loop start.
30582 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
30584         PR target/39523
30585         * config/sh/sh.c (calc_live_regs): Fix condition for global
30586         registers except PIC_OFFSET_TABLE_REGNUM.
30588 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
30590         PR/39518
30591         * doc/invoke.texi (-mconsole): New.
30592         (-mcygwin): New.
30593         (-mno-cygwin): New.
30594         (-mdll): New.
30595         (-mnop-fun-dllimport): New.
30596         (-mthread): New.
30597         (-mwin32): New.
30598         (-mwindows): New.
30599         (sub section "i386 and x86-64 Windows Options"): New.
30601 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
30603         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
30604         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
30606 2009-03-25  Richard Guenther  <rguenther@suse.de>
30608         PR middle-end/39497
30609         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
30610         of -Wno-error.
30612 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
30614         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
30615         neither of haifa/selective schedulers are working.
30617 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30619         * doc/invoke.texi (Debugging Options): Fix description of
30620         -fno-merge-debug-strings.
30622 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
30624         * config/cris/libgcc.ver: New version-script.
30625         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
30627         * configure.ac <GAS features, nop mnemonic>: Add pattern
30628         crisv32-*-* for "nop".
30629         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
30630         * configure: Regenerate.
30632 2009-03-24  Ira Rosen  <irar@il.ibm.com>
30634         PR tree-optimization/39529
30635         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
30636         mark_sym_for_renaming for the tag copied to the new vector
30637         pointer.
30639 2009-03-24  Arthur Loiret  <aloiret@debian.org>
30641         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
30642         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
30643         EXTRA_SPEC_FUNCTIONS.
30644         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
30645         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
30646         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
30647         -march and -mtune options.
30649 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
30651         * config/m68k/t-rtems: Add m5329 multilib.
30653 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
30654             Jakub Jelinek  <jakub@redhat.com>
30656         PR debug/39524
30657         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
30658         nodes.
30660 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30662         PR c/39495
30663         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
30664         instead of c_parser_expression_conv, if original_code isn't one of the
30665         4 allowed comparison codes, fail.
30667 2009-03-23  Richard Guenther  <rguenther@suse.de>
30669         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
30670         * tree.h (struct tree_type): Likewise.
30671         * reload.h (struct insn_chain): Likewise.
30672         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
30673         * function.h (struct function): Likewise.
30674         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
30676 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
30678         PR tree-optimization/39516
30679         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
30681 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
30683         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
30684         should be set true if BITS_PER_WORD of target is bigger than 32
30686 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
30688         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
30689         Translate -B-options to -rpath-link.  Correct existing
30690         rpath-link and conditionalize on !nostdlib.
30692 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30694         * doc/extend.texi (Function Attributes, Variable Attributes):
30695         Fix typos.
30696         * doc/invoke.texi (Debugging Options, Optimize Options)
30697         (i386 and x86-64 Options, MCore Options): Likewise.
30699 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
30701         PR debug/37890
30702         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
30703         it for block local namespace aliases.
30704         (gen_decl_die): Pass context_die to gen_namespace_die.
30706 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30708         PR c/39495
30709         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
30710         minimum or maximum value.
30712 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
30714         * reginfo.c (globalize_reg): Recompute derived reg sets.
30716 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
30718         PR target/39063
30719         * libgcc2.c (mprotect): Do not use signed arguments for
30720         VirtualProtect, use DWORD arguments.  Also fix the 'may
30721         be used uninitialized' warning for the np variable.
30723 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
30725         PR target/39496
30726         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
30727         functions using regparm calling conventions when not optimizing.
30728         (ix86_function_sseregparm): Similarly for sseregparm calling
30729         conventions.
30731 2009-03-19  Li Feng  <nemokingdom@gmail.com>
30733         PR middle-end/39500
30734         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
30735         dependence if the first conflict is after niter iterations.
30737 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
30739         PR middle-end/38609
30740         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
30741         functions with dynamic stack-pointer adjustments.
30743 2009-03-19  Ben Elliston  <bje@au.ibm.com>
30745         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
30746         option; change to -msdata=data.
30748 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30750         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
30751         and -fopenmp.
30753 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30755         PR target/35180
30756         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
30758 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
30760         * doc/invoke.texi (Code Gen Options): Expand discussion of
30761         -fno-common.
30763 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
30765         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
30766         * matrix-reorg.c (struct matrix_info): Likewise.
30767         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
30768         * rtl.h (struct mem_attrs): Likewise.
30769         * df.h (struct df): Likewise.
30770         * tree-data-ref.h (struct data_dependence_relation): Likewise.
30771         * ira-int.h (struct ira_allocno): Likewise.
30772         * df-scan.c (struct df_collection_rec): Likewise.
30773         * ira.c (struct equivalence): Likewise.
30774         * function.c (struct temp_slot): Likewise.
30775         * cfgloop.h (struct loop): Likewise.
30777         PR debug/39485
30778         * function.c (use_register_for_decl): When not optimizing, disregard
30779         register keyword for variables with types containing methods.
30781 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
30783         PR middle-end/39447
30784         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
30785         (is_simple_operand): Call contains_component_ref_p before calling data
30786         reference analysis that would fail on COMPONENT_REFs.
30788         * tree-vrp.c (search_for_addr_array): Fix formatting.
30790 2009-03-18  Richard Guenther  <rguenther@suse.de>
30792         * tree-vect-transform.c (vect_loop_versioning): Fold the
30793         generated comparisons.
30794         * tree-vectorizer.c (set_prologue_iterations): Likewise.
30795         (slpeel_tree_peel_loop_to_edge): Likewise.
30797 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30799         PR middle-end/37805
30800         * opts.c (print_specific_help): In addition to `undocumented',
30801         accept `separate' and `joined' flags if passed alone.  Describe
30802         output by the first matched one of those.
30803         (common_handle_option): Skip over empty strings.
30804         * gcc.c (display_help): Fix help string for `--help='.
30805         * doc/invoke.texi (Option Summary, Overall Options): With
30806         `--help=', classes and qualifiers can both be repeated, but
30807         only the latter can be negated.  One should not pass only
30808         negated qualifiers.  Fix markup and examples.
30810         Revert
30811         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
30812         PR middle-end/37805
30813         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
30814         and -fhelp=separate.
30816 2009-03-17  Jing Yu  <jingyu@google.com>
30818         PR middle-end/39378
30819         * function.h (struct rtl_data): Move is_thunk from here...
30820         (struct function): ...to here.
30821         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
30822         * varasm.c (assemble_start_function): Change is_thunk from crtl to
30823         cfun.
30824         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
30825         cfun.
30826         (alpha_does_function_need_gp, alpha_start_function): Likewise.
30827         (alpha_output_function_end_prologue): Likewise.
30828         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
30829         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
30830         (rs6000_output_function_epilogue): Likewise.
30831         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
30833 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
30835         PR target/39482
30836         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
30837         from different units in a single alternative.
30838         (*truncdfsf_i387): Ditto.
30839         (*truncxfsf2_mixed): Ditto.
30840         (*truncxfdf2_mixed): Ditto.
30842 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
30844         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
30845         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
30847         PR debug/39474
30848         * tree-ssa-live.c (remove_unused_locals): Don't remove local
30849         unused non-artificial variables when not optimizing.
30851         PR debug/39471
30852         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
30853         DW_TAG_imported_module even if decl is IMPORTED_DECL with
30854         NAMESPACE_DECL in its DECL_INITIAL.
30856         PR middle-end/39443
30857         * optabs.c (set_user_assembler_libfunc): New function.
30858         * expr.h (set_user_assembler_libfunc): New prototype.
30859         * c-common.c: Include libfuncs.h.
30860         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
30861         for memcmp, memset, memcpy, memmove and abort.
30862         * Makefile.in (c-common.o): Depend on libfuncs.h.
30864         PR debug/39412
30865         * dwarf2out.c (gen_inlined_enumeration_type_die,
30866         gen_inlined_structure_type_die, gen_inlined_union_type_die,
30867         gen_tagged_type_instantiation_die): Removed.
30868         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
30869         do nothing.
30871 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
30873         PR testsuite/38526
30874         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
30875         its use.
30876         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
30877         (check-parallel-%): Ditto.
30878         (check-consistency): Ditto.
30880 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
30882         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
30883         local variable rhs by NULL_TREE.
30885 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30887         PR target/39477
30888         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
30890 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30892         PR target/39476
30893         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
30895 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
30897         PR target/39473
30898         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
30899         for ms->sysv ABI calls only in 64bit mode.
30901         * config/i386/i386.md (untyped_call): Support 32bit.
30903 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
30905         * doc/extend.texi: Replace x86_65 with x86_64.
30907 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
30909         PR tree-optimization/39455
30910         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
30911         mismatches for POINTER_TYPE_P (type).
30912         (number_of_iterations_le): Likewise.
30914 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30916         * config/picochip/picochip.c: Removed profiling support.
30917         * config/picochip/picochip.md: Removed profiling instruction.
30918         * config/picochip/picochip.h: Removed profiling builtin.
30920 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
30922         * doc/install.texi (--with-host-libstdcxx): Document.
30924 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
30926         PR target/34299
30927         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
30928         generate a warning if the function name does not begin with
30929         "__vector" and the function has either the 'signal' or 'interrupt'
30930         attribute, from here to ...
30931         (avr_declare_function_name): ...here. New function.
30932         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
30933         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
30935 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
30937         PR bootstrap/39454
30938         * cse.c (fold_rtx): Don't modify original const_arg1 when
30939         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
30940         separate variable instead.
30941         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
30942         from out of range shift counts.
30943         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
30945 2009-03-13  Catherine Moore  <clm@codesourcery.com>
30947         * config/i386/x-mingw32 (host-mingw32.o): Replace
30948         diagnostic.h with $(DIAGNOSTIC_H).
30950 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
30952         PR target/39431
30953         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
30954         predicate.
30955         * config/i386/sync.md (sync_compare_and_swap<mode>,
30956         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
30957         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
30958         into a register.
30959         (sync_double_compare_and_swapdi_pic,
30960         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
30961         cmpxchg8b_pic_memory_operand instead of just memory_operand.
30963 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30965         PR target/39445
30966         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
30968 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30970         PR target/39327
30971         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
30972         (avx_addsubv4df3): Likewise.
30973         (*avx_addsubv4sf3): Likewise.
30974         (sse3_addsubv4sf3): Likewise.
30976 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30978         PR target/38824
30979         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
30981 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
30983         PR debug/39432
30984         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
30985         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
30986         registers for allocnos created from user-defined variables.
30988 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30990         PR target/39181
30991         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
30992         of non-integer mode as well.
30994 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
30996         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
30997         for functions for which the parameter types are unknown.
30999 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
31001         PR target/39137
31002         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
31003         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
31004         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
31005         * config/i386/i386.c (ix86_local_alignment): For
31006         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
31007         long long variables on the stack to avoid dynamic realignment.
31008         Allow the first argument to be a decl rather than type.
31009         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
31011 2009-03-11  Nick Clifton  <nickc@redhat.com>
31013         PR target/5362
31014         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
31015         options.
31016         Add description to mno-lsim option.
31017         * config/mcore/mcore.h: Remove comment about deprecated m4align
31018         option.
31019         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
31020         * doc/invoke.texi: Add description of mno-lsim and
31021         mstack-increment options.
31023         * config/fr30/fr30.opt: Document the -mno-lsim option.
31024         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
31025         and -mno-lsim options.
31027 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31029         * fold-const.c (fold_comparison): Only call fold_inf_compare
31030         if the mode supports infinities.
31032 2009-03-11  Jason Merrill  <jason@redhat.com>
31034         PR debug/39086
31035         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
31036         end already did.  Notice GIMPLE_CALL modifications of the result.
31037         Don't copy debug information from an ignored decl or a decl from
31038         another function.
31040 2009-03-10  Richard Guenther  <rguenther@suse.de>
31041             Nathan Froyd  <froydnj@codesourcery.com>
31043         PR middle-end/37850
31044         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
31045         (__divMODE3): Likewise.
31047 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
31049         PR tree-optimization/39394
31050         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
31051         DECL_SIZE_UNIT of variable length FIELD_DECLs.
31053 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31055         * recog.c (verfiy_changes): Disallow renaming of hard regs in
31056         inline asms for register asm ("") declarations.
31058 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
31060         * fold-const.c (fold_unary): Fix comment.
31062 2009-03-07  Jan Hubicka  <jh@suse.cz>
31064         PR target/39361
31065         * tree-inline.c (setup_one_parameter): Do replacement of const
31066         argument by constant in SSA form.
31068 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31070         PR middle-end/38028
31071         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
31072         determine alignment passed to assign_stack_local.
31073         (assign_parms_unsplit_complex): Likewise.
31074         * except.c (sjlj_build_landing_pads): Likewise.
31076 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
31078         PR middle-end/39360
31079         * tree-flow.h (add_referenced_var): Return bool instead of void.
31080         * tree-dfa.c (add_referenced_var): Return result of
31081         referenced_var_check_and_insert call.
31082         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
31083         of referenced_var_check_and_insert.
31085         PR debug/39372
31086         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
31087         (gen_variable_die): Emit DW_AT_location on abstract static variable's
31088         DIE, don't emit it if abstract origin already has it.
31089         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
31090         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
31092 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31094         * genpreds.c (needs_variable): Fix parentheses at variable name
31095         detection.
31096         (write_tm_constrs_h): Indent generated code.
31098 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31100         * doc/extend.texi (Function Attributes): Add documentation
31101         for isr attributes.
31103 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
31105         PR debug/39387
31106         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
31107         take locus from its DECL_SOURCE_LOCATION instead of input_location.
31109 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
31111         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
31112         the loop as bad.
31114 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
31116         PR debug/39379
31117         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
31118         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
31120 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
31122         * config/i386/i386.md (R8_REG, R9_REG): New constants.
31123         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
31124         constants instead of magic numbers.
31125         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
31126         (QI_REG_P): Ditto.
31127         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
31128         (x86_64_ms_abi_int_parameter_registers): Ditto.
31129         (x86_64_int_return_registers): Ditto.
31130         (ix86_maybe_switch_abi): Ditto.
31131         (ix86_expand_call): Ditto for clobbered_registers array.
31132         (ix86_hard_regno_mode_ok): Ditto.
31133         (x86_extended_QIreg_mentioned_p): Ditto.
31135 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
31137         PR tree-optimization/39349
31138         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
31140         * combine.c (gen_lowpart_for_combine): Use omode when generating
31141         clobber.
31143 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
31145         PR rtl-optimization/39235
31146         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
31148 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
31150         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
31152 2009-03-04  Richard Guenther  <rguenther@suse.de>
31154         PR tree-optimization/39362
31155         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
31156         that occur in abnormal PHIs should be varying.
31158 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
31160         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
31161         Extend comments.
31162         (simple_iv):  Take loop as an argument instead of statement.
31163         * tree-scalar-evolution.h (simple_iv): Declaration changed.
31164         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
31165         to simple_iv.
31166         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
31167         Ditto.
31168         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
31169         * matrix-reorg.c (analyze_transpose): Ditto.
31170         * tree-data-ref.c (dr_analyze_innermost): Ditto.
31171         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
31172         * tree-predcom.c (ref_at_iteration): Ditto.
31173         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
31175 2009-03-04  Richard Guenther  <rguenther@suse.de>
31177         PR tree-optimization/39358
31178         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
31179         escaped_id and callused_id.
31180         (solve_graph): Likewise.
31182 2009-03-04  Richard Guenther  <rguenther@suse.de>
31184         PR tree-optimization/39339
31185         * tree-sra.c (try_instantiate_multiple_fields): Make it
31186         no longer ICE on the above.
31188 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
31190         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
31191         that fits within Pmode.
31193 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31195         PR middle-end/10109
31196         * tm.texi (LIBCALL_VALUE): Update description.
31198 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
31200         PR middle-end/34443
31201         * doc/extend.texi (section): Update description.
31203 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31205         PR middle-end/39345
31206         * tree-inline.c (remapped_type): New.
31207         (can_be_nonlocal): Call remapped_type instead of remap_type.
31209 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31211         PR fortran/39354
31212         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
31213         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
31215 2009-03-03  Richard Guenther  <rguenther@suse.de>
31217         PR middle-end/39272
31218         * tree.c (tree_nonartificial_location): New function.
31219         * tree.h (tree_nonartificial_location): Declare.
31220         * builtins.c (expand_builtin_memory_chk): Provide location
31221         of the call location for artificial function pieces.
31222         (maybe_emit_chk_warning): Likewise.
31223         (maybe_emit_sprintf_chk_warning): Likewise.
31224         (maybe_emit_free_warning): Likewise.
31225         * expr.c (expand_expr_real_1): Likewise.
31227 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
31229         PR tree-optimization/39343
31230         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
31231         COMPONENT_REF t has ARRAY_TYPE.
31233 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
31235         PR middle-end/39335
31236         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
31237         when the type precision of the induction variable should be
31238         larger than the type precision of nit.
31239         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
31240         * graphite.c (graphite_loop_normal_form): Same.
31241         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
31243 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31245         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
31246         (*call_1_rex64_ms_sysv): Use named constants instead of magic
31247         numbers to describe clobbered registers.
31248         (*call_value_0_rex64_ms_sysv): Ditto.
31249         * config/i386/mmx.md (mmx_emms): Ditto.
31250         (mmx_femms): Ditto.
31252 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
31254         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
31255         of ABI_64.
31257 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31259         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
31260         (spu_section_type_flags): New function.
31262 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
31264         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
31265         reg_class_contents of FLOAT_REGS into a temporary.
31267 2009-03-02  Richard Guenther  <rguenther@suse.de>
31268             Ira Rosen  <irar@il.ibm.com>
31270         PR tree-optimization/39318
31271         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
31272         information to the vectorized statement.
31274 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
31276         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
31277         variable.  Use defined names instead of magic constants for REX SSE
31278         registers.
31280 2009-03-01  Richard Guenther  <rguenther@suse.de>
31282         PR tree-optimization/39331
31283         * omp-low.c (lower_send_shared_vars): Do not receive new
31284         values for the reference of DECL_BY_REFERENCE parms or results.
31286 2009-03-01  Jan Hubicka  <jh@suse.cz>
31288         PR debug/39267
31289         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
31290         BLOCK_NONLOCALIZED_VAR): New macros.
31291         (tree_block): Add nonlocalized_vars.
31292         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
31293         gen_decl_die): Add origin argument.  Allow generation of die with
31294         origin at hand only.
31295         (gen_member_die, gen_type_die_with_usage, force_decl_die,
31296         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
31297         of gen_*.
31298         (gen_block_die): Fix checking for unused blocks.
31299         (process_scope_var): Break out from .... ; work with origins only.
31300         (decls_for_scope) ... here; process nonlocalized list.
31301         (dwarf2out_ignore_block): Look for nonlocalized vars.
31302         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
31303         vars.
31304         (dump_scope_block): Dump them.
31305         * tree-inline.c (remap_decls): Handle nonlocalized vars.
31306         (remap_block): Likewise.
31307         (can_be_nonlocal): New predicate.
31308         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
31310 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31312         * configure: Regenerate.
31314 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31316         * optc-gen.awk: No need to duplicate option flags twice.
31317         Reuse help texts for duplicate options which do not have any.
31319         * gcc.c (display_help): Document --version.
31321         * gcc.c (main): If print_help_list and verbose_flag, ensure
31322         driver output comes before subprocess output.
31324         * optc-gen.awk: Assign all remaining fields to help string,
31325         space-separated, for multi-line help in *.opt.
31327         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
31328         -Wno-pedantic-ms-format is for MinGW targets only.
31330         * doc/options.texi (Option file format): Fix bad indentation,
31331         restoring dropped sentence.
31333 2009-02-28  Jan Hubicka  <jh@suse.cz>
31335         * tree-inline.c (tree_function_versioning): Output debug info.
31337 2009-02-28  Jan Hubicka  <jh@suse.cz>
31339         PR debug/39267
31340         * tree-inline.c (setup_one_parameter): Do not copy propagate
31341         arguments when not optimizing.
31343 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31345         PR target/39327
31346         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31347         (avx_addsubv4df3): Likewise.
31348         (*avx_addsubv4sf3): Likewise.
31349         (sse3_addsubv4sf3): Likewise.
31350         (*avx_addsubv2df3): Likewise.
31351         (sse3_addsubv2df3): Likewise.
31352         (avx_unpckhps256): Correct item selectors.
31353         (avx_unpcklps256): Likewise.
31354         (avx_unpckhpd256): Likewise.
31355         (avx_unpcklpd256): Likewise.
31357 2009-02-28  Jan Hubicka  <jh@suse.cz>
31359         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
31360         static vars.
31361         (copy_arguments_for_versioning): If var is declared don't declare it.
31362         (tree_function_versioning): First setup substitutions and then copy
31363         args.
31365 2009-02-27  Jan Hubicka  <jh@suse.cz>
31367         PR debug/39267
31368         * cgraph.h (varpool_output_debug_info): Remove.
31369         * cgraphunit.c (varpool_output_debug_info): Remove.
31370         * dwarf2out.c (deferred_locations_struct): New struct
31371         (deferred_locations): New type.
31372         (deferred_locations_list): New static var.
31373         (deffer_location): New function.
31374         (gen_variable_die): Use it.
31375         (decls_for_scope): Output info on local static vars.
31376         (dwarf2out_finish): Process deferred locations.
31377         * varpool.c (varpool_output_debug_info): Remove.
31379 2009-02-27  Jan Hubicka  <jh@suse.cz>
31381         PR debug/39267
31382         * tree.h (TREE_PROTECTED): Fix comment.
31383         (BLOCK_HANDLER_BLOCK): Remove.
31384         (struct tree_block): Remove handler_block add body_block.
31385         (inlined_function_outer_scope_p): New.
31386         (is_body_block): Remove.
31387         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
31388         * dwarf2out.c (is_inlined_entry_point): Remove.
31389         (add_high_low_attributes): Use inlined_function_outer_scope_p.
31390         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
31391         code.
31392         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
31393         * gimplify.c (gimplify_expr): Gimplify body blocks.
31394         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
31395         block with multiple subblocks.
31396         (dump_scope_block): Prettier output; dump more flags and info.
31397         (dump_scope_blocks): New.
31398         (remove_unused_locals): Use dump_scope_blocks.
31399         * tree-flow.h (dump_scope_blocks): Declare.
31400         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
31401         * stmt.c (is_body_block): Remove.
31402         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
31403         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
31405 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
31407         PR middle-end/39308
31408         * graphite.c (graphite_loop_normal_form): Do not call
31409         number_of_iterations_exit from a gcc_assert.
31411 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31413         * config/s390/s390.c (s390_swap_cmp): Look for conditional
31414         jumps if COND is NULL.
31415         (find_cond_jump): New function.
31416         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
31417         * config/s390/s390.md: Remove z10_cobra attribute value.
31419 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
31421         * config/alpha/alpha.h (alpha_expand_mov): Return false if
31422         force_const_mem returns NULL_RTX.
31424 2009-02-26  Jan Hubicka  <jh@suse.cz>
31426         PR debug/39267
31427         * cgraph.h (varpool_output_debug_info): Remove.
31428         * cgraphunit.c (varpool_output_debug_info): Remove.
31429         * dwarf2out.c (deferred_locations_struct): New struct
31430         (deferred_locations): New type.
31431         (deferred_locations_list): New static var.
31432         (deffer_location): New function.
31433         (gen_variable_die): Use it.
31434         (decls_for_scope): Output info on local static vars.
31435         (dwarf2out_finish): Process deferred locations.
31436         * varpool.c (varpool_output_debug_info): Remove.
31438 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31440         PR rtl-optimization/39241
31441         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
31442         to subreg_offset_representable_p.
31444 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31446         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
31447         execute function prototype.  Get f and nregs from max_reg_num
31448         and get_insns.  Remove the first backward pass as it's dead,
31449         guard the forward pass by flag_expensive_optimizations.
31450         (rest_of_handle_regmove): Delete.
31451         (pass_regmove): Replace it with regmove_optimize.
31453 2009-02-25  Martin Jambor  <mjambor@suse.cz>
31455         PR tree-optimization/39259
31456         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
31457         calls_alloca function flags.
31458         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
31459         calls are detected.
31461 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
31463         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
31464         flags_set_1_rtx, flags_set_1_set): Delete.
31465         (regmove_optimize): Do not call mark_flags_life_zones.
31467 2009-02-24  Julian Brown  <julian@codesourcery.com>
31469         PR target/35965
31470         * config/arm/arm.c (require_pic_register): Only set
31471         cfun->machine->pic_reg once per function.
31473 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
31475         * doc/invoke.texi (Link Options): Document an easier way to pass
31476         options that take arguments to the GNU linker using -Xlinker and -Wl.
31478 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
31480         PR target/33785
31481         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
31483 2009-02-24  Richard Guenther  <rguenther@suse.de>
31485         PR debug/39285
31486         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
31488 2009-02-24  Richard Guenther  <rguenther@suse.de>
31489             Zdenek Dvorak  <ook@ucw.cz>
31491         PR tree-optimization/39233
31492         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
31493         from converting them to a generic type.
31495 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
31497         PR tree-optimization/39260
31498         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
31499         contains a condition with a real type.
31500         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
31502 2009-02-23  Jason Merrill  <jason@redhat.com>
31504         PR c++/38880
31505         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
31506         narrowing_initializer_constant_valid_p.
31507         (narrowing_initializer_constant_valid_p): Don't return
31508         null_pointer_node for adding a pointer to itself.
31510 2009-02-23  Jan Hubicka  <jh@suse.cz>
31512         PR c/12245
31513         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
31514         resizing.
31516 2009-02-23  Jan Hubicka  <jh@suse.cz>
31518         PR tree-optimization/37709
31519         * tree.c (block_ultimate_origin): Move here from dwarf2out.
31520         * tree.h (block_ultimate_origin): Declare.
31521         * dwarf2out.c (block_ultimate_origin): Move to tree.c
31522         * tree-ssa-live.c (remove_unused_scope_block_p):
31523         Eliminate blocks containig no instructions nor live variables nor
31524         nested blocks.
31525         (dump_scope_block): New function.
31526         (remove_unused_locals): Enable removal of dead blocks by default;
31527         enable dumping at TDF_DETAILS.
31529 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31531         * config/i386/i386.c (classify_argument): Don't allow COImode
31532         and OImode.
31533         (function_arg_advance_32): Don't allow OImode.
31534         (function_arg_32): Likewise.
31535         (function_value_32): Likewise.
31536         (return_in_memory_32): Likewise.
31537         (function_arg_64): Remove OImode comment.
31539 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31541         PR target/39261
31542         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
31543         ix86_expand_vector_set for V4DImode in 64bit mode only.
31544         (ix86_expand_vector_init_one_var): Likewise.
31546 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
31548         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
31550 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31552         PR bootstrap/39257
31553         * loop-iv.c: Revert last change.
31554         * emit-rtl.c: Likewise.
31556 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
31558         PR target/39256
31559         * config/i386/i386.c (type_natural_mode): Remove an extra
31560         space in the warning message.
31561         (function_value_32): Handle 32-byte vector modes.
31562         (return_in_memory_32): Likewise.
31564 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
31566         * loop-iv.c (truncate_value): New function.
31567         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
31568         of lowpart_subreg.
31569         (lowpart_subreg): Move to...
31570         * emit-rtl.c: ...here.
31572 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
31574         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
31575         accidental and undocumented change at revision 140860.
31577 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
31579         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
31580         take gimple_seq * arguments.
31581         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
31582         types_compatible_p langhook.
31584 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
31585             Joseph Myers  <joseph@codesourcery.com>
31587         * config/arm/arm.c (arm_builtin_va_list): New function.
31588         (arm_expand_builtin_va_start): Likewise.
31589         (arm_gimplify_va_arg_expr): Likewise.
31590         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
31591         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
31592         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
31593         (va_list_type): New variable.
31594         (arm_mangle_type): Mangle va_list_type appropriately.
31596 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31598         PR middle-end/39157
31599         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
31600         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
31601         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
31602         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
31603         parameter to 1000 for -O1 by default.
31604         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
31605         parameter.
31606         * loop-invariant.c: Include params.h.
31607         (move_loop_invariants): Don't call move_single_loop_invariants on
31608         very large loops.
31610 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
31612         * calls.c (emit_library_call_value_1): Use slot_offset instead of
31613         offset when calculating bounds for indexing stack_usage_map.  Fixes
31614         a buffer overflow with certain target setups.
31616 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
31618         PR target/39240
31619         * calls.c (expand_call): Clear try_tail_call if caller and callee
31620         disagree in promotion of function return value.
31622 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
31624         PR target/39175
31625         * c-common.c (c_determine_visibility): If visibility changed and
31626         DECL_RTL has been already set, call make_decl_rtl to update symbol
31627         flags.
31629 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
31631         PR c++/39188
31632         * varasm.c (assemble_variable): Don't check DECL_NAME when
31633         globalizing a variable.
31635 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
31637         PR c/38483
31638         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
31639         expression before any __builtin_trap call.
31640         * c-typeck.c (build_function_call): Convert and check function
31641         arguments before generating a call to a trap.  Evaluate the
31642         function arguments before the trap.
31644 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
31646         PR target/39228
31647         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
31648         (UNSPEC_FXAM_MEM): New unspec.
31649         (fxam<mode>2_i387_with_temp): New insn and split pattern.
31650         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
31651         memory using fxam<mode>2_i387_with_temp to remove excess precision.
31653 2009-02-19  Richard Guenther  <rguenther@suse.de>
31655         PR tree-optimization/39207
31656         PR tree-optimization/39074
31657         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
31658         storedanything_tree): New.
31659         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
31660         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
31661         (build_succ_graph): Add edges from STOREDANYTHING to all
31662         non-direct nodes.
31663         (init_base_vars): Initialize STOREDANYTHING.
31664         (compute_points_to_sets): Free substitution info after
31665         building the succ graph.
31666         (ipa_pta_execute): Likewise.
31668         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
31669         field.
31670         (do_ds_constraint): Do not add to special var or non-pointer
31671         field solutions.
31672         (type_could_have_pointers): Split out from ...
31673         (could_have_pointers): ... here.  For arrays use the element type.
31674         (create_variable_info_for): Initialize may_have_pointers.
31675         (new_var_info): Likewise.
31676         (handle_lhs_call): Make the HEAP variable unknown-sized.
31677         (intra_create_variable_infos): Use a type with pointers for
31678         PARM_NOALIAS, make it unknown-sized.
31680 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
31682         PR target/39224
31683         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
31685 2009-02-18  Jason Merrill  <jason@redhat.com>
31687         PR target/39179
31688         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
31689         value if DECL_EXTERNAL.
31690         * tree-sra.c (sra_walk_gimple_assign): Likewise.
31691         * target.h (gcc_target::binds_local_p): Clarify "module".
31692         * tree.h (TREE_PUBLIC): Clarify "module".
31694 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
31696         PR target/38891
31697         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
31698         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
31700 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
31702         PR target/39082
31703         * c.opt (Wabi): Support C and ObjC.
31704         (Wpsabi): New.
31706         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
31708         * config/i386/i386.c (classify_argument): Warn once about the ABI
31709         change when passing union with long double.
31711         * doc/invoke.texi: Update -Wabi for warning psABI changes.
31713 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
31715         PR c/35447
31716         * c-parser.c (c_parser_compound_statement): Always enter and leave
31717         a scope.
31719 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31721         PR target/34587
31722         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
31724 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
31726         PR tree-optimization/36922
31727         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
31728         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
31729         Likewise.
31731 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31733         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
31734         to 0 for EABI64.
31736 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31738         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
31740 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
31742         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
31743         tree sharing.
31745 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
31746             Richard Sandiford  <rdsandiford@googlemail.com>
31748         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
31749         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
31750         (loongson_biadd): ...this.
31752 2009-02-17  Richard Guenther  <rguenther@suse.de>
31754         PR tree-optimization/39202
31755         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
31756         a var make sure to follow existing collapses.
31758 2009-02-17  Richard Guenther  <rguenther@suse.de>
31760         PR middle-end/39214
31761         * langhooks.c (lhd_print_error_function): Check for NULL block.
31763 2009-02-17  Richard Guenther  <rguenther@suse.de>
31765         PR tree-optimization/39204
31766         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
31767         of the PHI arg.
31769 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
31771         * config/soft-fp/double.h: Update from glibc CVS.
31773 2009-02-17  Richard Guenther  <rguenther@suse.de>
31775         PR tree-optimization/39207
31776         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
31777         strict-aliasing warnings for pointers pointing to NULL.
31779 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
31781         PR c/35446
31782         * c-parser.c (c_parser_braced_init): Call pop_init_level when
31783         skipping until next close brace.
31785 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
31787         PR target/37049
31788         * config/i386/i386.c (ix86_expand_push): Set memory alignment
31789         to function argument boundary.
31791 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
31793         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
31794         in the lea_add. Reload eventually constraints it properly.
31795         * config/picochip/constraints.md: Remove the target constraint
31796         "b", since it is not needed anymore.
31798 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
31800         * gthr-dce.h: Uglify function parameter and local variable names.
31801         * gthr-gnat.h: Likewise.
31802         * gthr-mipssde.h: Likewise.
31803         * gthr-nks.h: Likewise.
31804         * gthr-posix95.h: Likewise.
31805         * gthr-posix.h: Likewise.
31806         * gthr-rtems.h: Likewise.
31807         * gthr-single.h: Likewise.
31808         * gthr-solaris.h: Likewise.
31809         * gthr-tpf.h: Likewise.
31810         * gthr-vxworks.h: Likewise.
31811         * gthr-win32.h: Likewise.
31813 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
31815         PR target/39196
31816         * config/i386/i386.md: Restrict the new peephole2 to move
31817         between MMX/SSE registers.
31819 2009-02-15  Richard Guenther  <rguenther@suse.de>
31821         Revert
31822         2009-02-13  Richard Guenther  <rguenther@suse.de>
31824         * configure.ac: Enable LFS.
31825         * configure: Re-generate.
31826         * config.in: Likewise.
31828 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31830         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
31831         spu_srqwbyte, spu_srqwbytebc): Define.
31832         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
31833         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
31834         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
31835         "shrqby_<mode>"): New insn-and-split patterns.
31836         * config/spu/spu.c (expand_builtin_args): Determine and return
31837         number of operands using spu_builtin_description data.
31838         (spu_expand_builtin_1): Use it.
31840 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
31842         PR target/38056
31843         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
31844         TARGET_CONST_GP.
31846 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31848         PR target/39149
31849         * config/i386/i386.c (override_options): Correct warning
31850         messages for -malign-loops, -malign-jumps and -malign-functions.
31852 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31854         PR target/39152
31855         * config/i386/i386.md: Restrict the new peephole2 to move
31856         between the general purpose registers.
31858 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31860         PR target/39162
31861         * config/i386/i386.c (type_natural_mode): Add a new argument.
31862         Return the original mode and warn ABI change if vector size is 32byte.
31863         (function_arg_advance): Updated.
31864         (function_arg): Likewise.
31865         (ix86_function_value): Likewise.
31866         (ix86_return_in_memory): Likewise.
31867         (ix86_sol10_return_in_memory): Likewise.
31868         (ix86_gimplify_va_arg): Likewise.
31869         (function_arg_32): Don't warn ABX ABI change here.
31870         (function_arg_64): Likewise.
31872 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
31874         * loop-iv.c (implies_p): In the final case, test that operands 0
31875         of the two comparisons match.
31877         * config/bfin/bfin.c (find_prev_insn_start): New function.
31878         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
31879         (find_next_insn_start): Move.
31881 2009-02-13  Richard Guenther  <rguenther@suse.de>
31883         * configure.ac: Enable LFS.
31884         * configure: Re-generate.
31885         * config.in: Likewise.
31887 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
31889         PR c/35444
31890         * c-parser.c (c_parser_parms_list_declarator): Discard pending
31891         sizes on syntax error after some arguments have been parsed.
31893 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31895         * doc/invoke.texi (-fira): Remove.
31897 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31899         * caller-save.c: Replace regclass.c with reginfo.c in comments.
31900         * recog.c: Likewise.
31901         * rtl.h: Likewise.
31903 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
31905         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
31906         (umul_ppmm): Likewise.
31907         (count_leading_zeros): Likewise.
31908         (count_trailing_zeros): Likewise.
31909         (UMUL_TIME): Likewise.
31911 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31913         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
31914         soft-fp/t-softfp to tmake_file.
31916         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
31917         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
31918         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
31919         IA64_BUILTIN_INFQ]: New.
31920         (ia64_init_builtins): Initialize __builtin_infq,
31921         __builtin_fabsq and __builtin_copysignq if not HPUX.
31922         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
31923         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
31925         * config/ia64/lib1funcs.asm (__divtf3): Define only if
31926         SHARED is defined.
31927         (__fixtfti): Likewise.
31928         (__fixunstfti): Likewise.
31929         (__floattitf): Likewise.
31931         * config/ia64/libgcc-glibc.ver: New.
31932         * config/ia64/t-fprules-softfp: Likewise.
31933         * config/ia64/sfp-machine.h: Likewise.
31935         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
31936         (LIBGCC2_TF_CEXT): Likewise.
31937         (TF_SIZE): Likewise.
31938         (TARGET_INIT_LIBFUNCS): Likewise.
31940         * config/ia64/t-glibc (SHLINB_MAPFILES):
31941         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
31943 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31945         * config/i386/i386.c (construct_container): Rewrite processing
31946         BLKmode with X86_64_SSE_CLASS.
31948 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
31950         PR target/39152
31951         * config/i386/i386.md: Replace simplify_replace_rtx with
31952         replace_rtx in the new peephole2.
31954 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
31956         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
31957         loop unrolling do not happen at -O2.
31959 2009-02-12  Michael Matz  <matz@suse.de>
31961         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
31963 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
31965         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
31966         for -g3.
31968 2009-02-12  Ben Elliston  <bje@au.ibm.com>
31970         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
31971         patterns when updating the back chain.  Missed in the 2009-02-10
31972         change.
31974 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
31976         * doc/extend.texi (Decimal Floating Types): Update identifier of
31977         draft TR and list of missing support.
31979 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
31981         PR middle-end/39154
31982         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
31983         bit to variable length decl's flags, add it also to its
31984         pointer replacement variable.
31986 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
31987             Jakub Jelinek  <jakub@redhat.com>
31989         PR target/39118
31990         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
31991         (memory_blockage): New expander.
31992         (*memory_blockage): New insn pattern.
31993         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
31994         instead of general blockage at the end of function prologue when
31995         frame pointer is used to access red zone area.  Do not emit blockage
31996         when profiling, it is emitted in generic code.
31997         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
31998         function epilogue when frame pointer is used to access red zone area.
32000 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
32002         PR target/38824
32003         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
32004         by arithmetic with memory operands.
32005         * config/i386/predicates.md (commutative_operator): New.
32007 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
32009         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
32010         bulleted lists.
32012 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32014         * alias.h (record_alias_subset): Declare.
32015         * alias.c (record_alias_subset): Make global.
32017 2009-02-10  Nick Clifton  <nickc@redhat.com>
32019         * tree-parloops.c: Change license to GPLv3.
32020         * ipa-struct-reorg.c: Change license to GPLv3.
32021         * ipa-struct-reorg.h: Change license to GPLv3.
32023 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
32025         PR c/39084
32026         * c-decl.c (start_struct): Return NULL on error.
32028 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
32030         PR middle-end/39124
32031         * cfgloopmanip.c (remove_path): Call remove_bbs after
32032         cancel_loop_tree, not before it.
32034         PR target/39139
32035         * function.h (struct function): Add has_local_explicit_reg_vars bit.
32036         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
32037         VAR_DECLs were seen.
32038         * tree-ssa-live.c (remove_unused_locals): Recompute
32039         cfun->has_local_explicit_reg_vars.
32040         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
32041         copies or clearings if cfun->has_local_explicit_reg_vars.
32043 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
32045         PR target/39118
32046         * config/i386/i386.c (expand_prologue): Emit blockage at the end
32047         of function prologue when frame pointer is used to access
32048         red zone area.
32050 2009-02-10  Richard Guenther  <rguenther@suse.de>
32052         PR middle-end/39127
32053         * gimplify.c (gimple_regimplify_operands): Always look if
32054         we need to create a temporary.
32056 2009-02-10  Richard Guenther  <rguenther@suse.de>
32058         PR tree-optimization/39132
32059         * tree-loop-distribution.c (todo): New global var.
32060         (generate_memset_zero): Trigger TODO_rebuild_alias.
32061         (tree_loop_distribution): Return todo.
32063 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
32065         PR target/39119
32066         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
32067         (x86_64_reg_class_name): Removed.
32068         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
32069         first one isn't X86_64_SSE_CLASS or any other ones aren't
32070         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
32071         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
32072         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
32073         and 3 X86_64_SSEUP_CLASS.
32074         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
32075         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
32077 2009-02-10  Ben Elliston  <bje@au.ibm.com>
32079         * config/rs6000/rs6000.md (allocate_stack): Always use an update
32080         form instruction to update the stack back chain word, even if the
32081         user has disabled the generation of update instructions.
32082         (movdi_<mode>_update_stack): New.
32083         (movsi_update_stack): Likewise.
32084         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
32085         always use an update form instruction to update the stack back
32086         chain word.
32088 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
32090         PR middle-end/38953
32091         * graphite.c (if_region_set_false_region): After moving a region in
32092         the false branch of a condition, remove the empty dummy basic block.
32093         (gloog): Remove wrong fix for PR38953.
32095 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32097         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
32098         generation due to implicit sign extension.
32100 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
32102         PR middle-end/38981
32103         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
32104         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
32106 2009-02-09  Richard Guenther  <rguenther@suse.de>
32108         PR middle-end/35202
32109         * convert.c (convert_to_real): Disable (float)fn((double)x)
32110         to fnf(x) conversion if errno differences may occur and
32111         -fmath-errno is set.
32113 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
32115         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
32116         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
32117         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
32119 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
32121         PR c/35434
32122         * c-common.c (handle_alias_attribute): Disallow attribute for
32123         anything not a FUNCTION_DECL or VAR_DECL.
32125 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
32127         PR c/39035
32128         * real.c (do_compare): Special-case compare of zero against
32129         decimal float value.
32131 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
32133         PR c/36432
32134         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
32135         as indicating flexible array members unless the field itself is
32136         being declarared as the incomplete array.
32138 2009-02-06  Jan Hubicka  <jh@suse.cz>
32140         PR tree-optimization/38844
32141         * ipa-inline.c (try_inline): Stop inlining recursion when edge
32142         is already inlined.
32144 2009-02-06  Richard Guenther  <rguenther@suse.de>
32146         PR middle-end/38977
32147         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
32148         fork because we may expand it as __gcov_fork.
32150 2009-02-06  Nick Clifton  <nickc@redhat.com>
32152         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
32154 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
32156         PR tree-optimization/35659
32157         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
32158         vn_phi_eq): Shortcut if hashcode does not match.
32159         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
32160         NULL operands.
32161         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
32162         and avoid iterative_hash_expr.
32163         (FOR_EACH_VALUE_ID_IN_SET): New.
32164         (value_id_compare): Remove.
32165         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
32166         sort expressions by value id.
32168 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
32170         PR target/38991
32171         * config/sh/predicates.md (general_movsrc_operand): Don't check
32172         the subreg of system registers here.
32174 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
32176         PR c++/39106
32177         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
32178         on the copied decl.
32180 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
32182         PR rtl-optimization/39110
32183         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
32184         addresses, not aligned ones.
32186 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
32187             Richard Guenther  <rguenther@suse.de>
32189         PR tree-optimization/39100
32190         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
32191         comment says and add edges.
32193 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
32195         PR c/35435
32196         * c-common.c (handle_tls_model_attribute): Ignore attribute for
32197         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
32199 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
32201         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
32202         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
32203         register_bb_in_sese, new_sese, free_sese): Moved.
32204         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
32205         outermost_loop_in_scop, build_scop_iteration_domain,
32206         expand_scalar_variables_ssa_name, get_vdef_before_scop,
32207         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
32208         Use loop_in_sese_p instead of loop_in_scop_p.
32209         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
32210         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
32211         (scopdet_basic_block_info): Fix bug in scop detection.
32212         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
32213         eq_loop_to_cloog_loop): Remove.
32214         (nb_loops_around_loop_in_scop, nb_loop
32215         ref_nb_loops): Moved here...
32216         * graphite.h (ref_nb_loops): ... from here.
32217         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
32218         (loop_domain_dim, loop_iteration_vector_dim): Remove.
32219         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
32221 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
32222             Hans-Peter Nilsson  <hp@axis.com>
32224         PR rtl-optimization/37889
32225         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
32226         Move offset handling from PLUS to before the switch.  Use new
32227         arguments when considering SYMBOL_REFs too.
32228         (rtx_addr_can_trap_p): Pass dummy offset and size.
32229         (enum may_trap_p_flags): Remove.
32230         (may_trap_p_1): Pass size from MEM_SIZE.
32232         PR rtl-optimization/38921
32233         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
32234         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
32235         * rtlanal.c (may_trap_after_code_motion_p): Delete.
32236         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
32238 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
32240         AVX Programming Reference (January, 2009)
32241         * config/i386/sse.md (*vpclmulqdq): New.
32243 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
32245         PR tree-optimization/38977
32246         PR gcov-profile/38292
32247         * calls.c (special_function_p): Disregard __builtin_ prefix.
32249 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
32251         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
32252         non-indexable addresses even before reload.
32254 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32256         PR c/29129
32257         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
32258         as having variable size.  Do not give an error for unnamed
32259         parameters with [*] declarators.  Give a warning for type names
32260         with [*] declarators and mark them as variable size.
32261         * c-parser.c (c_parser_sizeof_expression): Do not give an error
32262         for sizeof applied to [*] type names.
32264 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32266         PR C++/36607
32267         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
32269 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32271         * gcc.c (process_command): Update copyright notice dates.
32272         * gcov.c (print_version): Likewise.
32273         * gcov-dump.c (print_version): Likewise.
32274         * mips-tfile.c (main): Likewise.
32275         * mips-tdump.c (main): Likewise.
32277 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
32279         PR c/35433
32280         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
32281         for composite type involving a zero-length array type.
32283 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
32285         PR target/35318
32286         * function.c (match_asm_constraints_1): Skip over
32287         initial optional % in the constraint.
32289         PR inline-asm/39059
32290         * c-parser.c (c_parser_postfix_expression): If fixed point is not
32291         supported, don't accept FIXED_CSTs.
32292         * c-decl.c (finish_declspecs): Error if fixed point is not supported
32293         and _Sat is used without _Fract/_Accum.  Set specs->type to
32294         integer_type_node for cts_fract/cts_accum if fixed point is not
32295         supported.
32297 2009-02-02  Catherine Moore  <clm@codesourcery.com>
32299         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
32301 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32303         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
32304         (ABI_HAS_64BIT_SYMBOLS): Use it.
32305         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
32307 2009-02-02  Paul Brook  <paul@codesourcery.com>
32309         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
32311 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
32313         PR inline-asm/39058
32314         * recog.h (asm_operand_ok): Add constraints argument.
32315         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
32316         recurse on matching constraint.
32317         (check_asm_operands): Pass constraints as 3rd argument to
32318         asm_operand_ok.  Don't look up matching constraint here.
32319         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
32320         to asm_operand_ok.
32322 2009-02-02  Ben Elliston  <bje@au.ibm.com>
32324         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
32325         TARGET_NARROW_VOLATILE_BITFIELD macro names.
32327 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32329         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
32330         information.  Remove some obsolete information.  Reorganize.
32332         * config/pa/fptr.c: Revert license to GPL 2.
32333         * config/pa/milli64.S: Likewise.
32335 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32337         PR target/38904
32338         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
32339         LIBRARY name in, instead of hard-coding it.
32340         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
32341         extra target make frag to tmake_files according to EH model.
32342         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
32343         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
32344         frags that define makefile variable EH_MODEL appropriately.
32345         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
32346         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
32347         to "-sjlj" according to type of EH configured.
32348         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32349         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
32350         to "_sjlj" according to type of EH configured.
32351         (LIBGCC_SONAME):  Concatenate it to shared library base name.
32352         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
32353         (SHLIB_LINK):  Add missing semicolon to if-else construct.
32354         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32355         string value of "pe_dll" command-line option.
32356         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
32357         (SHLIB_SONAME):  Use it when overriding t-cygming default.
32358         (SHLIB_IMPLIB):  Override t-cygming default.
32359         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
32360         string value of "pe_dll" command-line option.
32362 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
32364         PR target/38952
32365         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
32366         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
32368 2009-01-31  Richard Guenther  <rguenther@suse.de>
32370         PR tree-optimization/38937
32371         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
32372         computing the transitive closure.
32374 2009-01-30  Richard Guenther  <rguenther@suse.de>
32376         PR tree-optimization/39041
32377         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
32378         Propagate variable indices only if the types match for this stmt.
32380 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
32382         PR target/39013
32383         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
32384         inline but never defined.
32386 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
32388         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
32389         (*insv_h_di_reg_extimm): New insn.
32390         (*insv_l<mode>_reg_extimm): New insn.
32392 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32394         * config/picochip/picochip.c (flag_conserve_stack): set
32395         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
32396         fconserve-stack. Reduce call-overhead used by inliner.
32398 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32400         PR/38157
32401         * common.opt (flag_conserve_stack): Initialised to zero.
32403 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
32405         PR/39002
32406         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
32407         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
32408         method.
32410 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
32412         * ira-color.c (allocno_reload_assign): Update comments.
32413         * regmove.c (regmove_optimize): Likewise.
32415         * ra.h: Removed.
32417 2009-01-29  Robert Millan  <rmh@aybabtu.com>
32419         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
32420         * config/i386/kopensolaris-gnu.h: New file.  Undefine
32421         `MD_UNWIND_SUPPORT'.
32422         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
32424 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
32426         PR tree-optimization/39007
32427         * tree-loop-distribution.c (generate_builtin): Use
32428         recompute_dominator to compute the immediate dominator of the
32429         basic block just after the loop.
32431 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32433         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
32434         (ASM_OUTPUT_DWARF_PCREL): Define.
32436 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
32438         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
32439         * doc/passes.texi: Remove entries about regclass, local-alloc, and
32440         global.  Modify entries about regmove and IRA.
32442         * ra-conflict.c: Remove the file.
32444         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
32446         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
32447         (pass_regclass_init): Rename to pass_reginfo_init.
32449         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
32451         * toplev.h (flag_ira): Remove.
32453         * caller-save.c (setup_save_areas): Remove flag_ira.
32455         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
32457         * global.c: Remove the file.
32459         * opts.c (decode_options): Remove flag_ira.
32461         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
32463         * regmove.c: Modify file description.
32464         (find_use_as_address, try_auto_increment): Define them only if
32465         AUTO_INC_DEC is defined.
32466         (replacement_quality, replace_in_call_usage, fixup_match_1,
32467         stable_and_no_regs_but_for_p): Remove.
32468         (reg_set_in_bb): Make it static.
32469         (regmove_optimize): Remove flag_ira and code which worked for
32470         !flag_ira.
32472         * local-alloc.c: Remove the file.
32474         * common.opt (fira): Remove.
32476         * ira.c: Include except.h.
32477         (eliminable_regset): Move from global.c.
32478         (mark_elimination): Ditto.  Remove flag_ira.
32479         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
32480         equiv_mem_modified, validate_equiv_mem_from_store,
32481         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
32482         contains_replace_regs, memref_referenced_p, memref_used_between_p,
32483         no_equiv, recorded_label_ref): Move from local-alloc.c.
32484         (update_equiv_regs): Ditto.  Make it static.
32485         (print_insn_chain, print_insn_chains): Move it from global.c.
32486         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
32487         (build_insn_chain): Ditto.  Make it static.
32488         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
32489         Rename to init_live_subregs.
32490         (gate_ira): Remove flag_ira.
32492         * regclass.c: Rename reginfo.c.  Change file description.
32493         (FORBIDDEN_INC_DEC_CLASSES): Remove.
32494         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
32495         (init_reg_sets_1): Remove code for evaluation of
32496         reg_class_superclasses and losing_caller_save_reg_set.
32497         (init_regs): Remove init_reg_autoinc.
32498         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
32499         ok_for_base_p_nonstrict): Remove.
32500         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
32501         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
32502         corresponding entries.
32503         (dump_regclass, record_operand_costs, scan_one_insn,
32504         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
32505         record_address_regs, auto_inc_dec_reg_p): Remove.
32506         (gt-regclass.h): Rename to gt-reginfo.h.
32508         * rtl.h (dump_global_regs, retry_global_alloc,
32509         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
32511         * Makefile.in (RA_H): Remove.
32512         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
32513         Rename regclass.o to reginfo.o.
32514         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
32515         gt-reginfo.h.
32516         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
32517         (GTFILES): Rename regclass.c to reginfo.c.
32519         * passes.c (init_optimization_passes): Remove pass_local_alloc and
32520         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
32522         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32523         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
32524         Remove flag_ira.
32525         (finish_spills): Ditto.  Remove code for !flag_ira.
32527 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
32529         PR middle-end/35854
32530         * doc/invoke.texi (rtl debug options): Complete rewrite.
32531         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
32532         to auto_inc_dec".
32533         * mode-switching.c (pass_mode_switching): Rename pass from
32534         "mode-sw" to "mode_sw".
32535         * except.c (pass_convert_to_eh_ranges): Rename pass from
32536         "eh-ranges" to "eh_ranges".
32537         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
32538         to "subreg1".
32541 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
32542             Alexander Monakov  <amonakov@ispras.ru>
32544         PR middle-end/38857
32545         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
32546         register.
32547         (move_exprs_to_boundary): Change return type and pass through
32548         should_move from move_op.  Relax assert.  Update usage ...
32549         (schedule_expr_on_boundary): ... here.  Use should_move instead of
32550         cant_move.
32551         (move_op_orig_expr_found): Indicate that insn was disconnected from
32552         stream.
32553         (code_motion_process_successors): Do not call after_merge_succs
32554         callback if original expression was not found when traversing any of
32555         the branches.
32556         (code_motion_path_driver): Change return type.  Update prototype.
32557         (move_op): Update comment.  Add a new parameter (should_move).  Update
32558         prototype.  Set *should_move based on indication provided by
32559         move_op_orig_expr_found.
32561 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
32563         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
32564         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
32565         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
32566         * config/rs6000/rs6000.c (rs6000_override_options): Default
32567         avoid-indexed-addresses on for Power6, off for everything else.
32568         (avoiding_indexed_address_p): New function.
32569         (rs6000_legitimize_address): Use it.
32570         (rs6000_legitimate_address): Likewise.
32571         * config/rs6000/rs6000.md (movXX_updateX): Likewise
32573 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
32575         PR tree-optimization/38997
32576         * tree-loop-distribution.c (generate_memset_zero): Use
32577         POINTER_PLUS_EXPR for a pointer addition.
32579 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
32581         * config/s390/s390.md (bswap<mode>2): New pattern added.
32583 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32585         * config/s390/s390.md (*tls_load_31): Added type attribute.
32587 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32589         * config/s390/s390.md: Fix a few comments.
32591 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
32593         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
32594         (*tm<mode>_full): Fixed z10prop attribute.
32595         (*tst<mode>_extimm): Fixed z10prop attribute.
32596         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
32597         (*tstqiCCT_cconly): Fixed z10prop attribute.
32598         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
32599         (*movsi_larl): Fixed z10prop attribute.
32600         (*movsi_zarch): Fixed z10prop attribute.
32601         (*movsi_eas): Fixed z10prop attribute.
32602         (*movhi): Fixed z10prop attribute.
32603         (*movqi): Fixed z10prop attribute.
32604         (*movstrictqi): Fixed z10prop attribute.
32605         (*mov<mode>): Fixed z10prop attribute.
32606         (*movcc): Fixed z10prop attribute.
32607         (*sethighpartdi_64): Fixed z10prop attribute.
32608         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
32609         (*negdi2_sign_cc): Fixed z10prop attribute.
32610         (*negdi2_sign): Fixed z10prop attribute.
32611         (*absdi2_sign_cc): Fixed z10prop attribute.
32612         (*absdi2_sign): Fixed z10prop attribute.
32613         (*negabsdi2_sign_cc): Fixed z10prop attribute.
32614         (*negabsdi2_sign): Fixed z10prop attribute.
32615         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
32616         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
32617         (doloop_si64): Fixed z10prop attribute.
32618         (doloop_si31): Fixed z10prop attribute.
32619         (doloop_long): Fixed z10prop attribute.
32620         (indirect_jump): Fixed z10prop attribute.
32621         (nop): Fixed z10prop attribute.
32622         (main_base_64): Fixed z10prop attribute.
32623         (reload_base_64): Fixed z10prop attribute.
32625 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32627         PR rtl-optimization/38740
32628         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
32629         if !optimize.
32630         * config/mips/mips.c (mips_reorg): Likewise.
32632 2009-01-28  Richard Guenther  <rguenther@suse.de>
32634         PR tree-optimization/38926
32635         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
32636         with the correct value id to a value.
32637         (do_regular_insertion): Use the value number of edoubleprime
32638         for the value number of the expr.
32640         Revert
32641         2008-08-21  Richard Guenther  <rguenther@suse.de>
32643         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
32644         a PHI ask VN if it is already available.
32645         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
32646         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
32648 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
32650         PR middle-end/38934
32651         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
32652         set to varying whenever max has TREE_OVERFLOW set, similarly
32653         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
32655 2009-01-28  Richard Guenther  <rguenther@suse.de>
32657         PR middle-end/38908
32658         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
32659         uninitialized aggregate uses in call arguments.
32661 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
32663         PR tree-optimization/38984
32664         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
32665         the nothing_id variable if -fno-delete-null-pointer-checks.
32667 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
32669         PR target/38988
32670         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
32671         (set_got_offset_rex64): Ditto.
32673 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
32675         PR target/38941
32676         * doc/extend.texi: Improve local variable with asm reg.
32678 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
32680         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
32681         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
32682         was not supplied then set warn_packed_bitfield_compat to the
32683         default value of 1.
32684         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
32685         against 1.
32687 2009-01-27  Richard Guenther  <rguenther@suse.de>
32689         PR tree-optimization/38503
32690         * cfgexpand.c (expand_gimple_basic_block): Ignore
32691         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
32692         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
32693         variables that cannot have TBAA applied.
32694         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
32695         statements.
32697 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
32699         PR middle-end/38969
32700         * calls.c (initialize_argument_information): Do not wrap complex
32701         arguments in SAVE_EXPR.
32703 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
32705         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
32706         (INSTALL_LIBGCC): Revert typo commit.
32708 2009-01-26  Richard Guenther  <rguenther@suse.de>
32710         PR tree-optimization/38745
32711         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
32712         from special handling.
32714 2009-01-26  Richard Guenther  <rguenther@suse.de>
32716         PR tree-optimization/38745
32717         * tree-ssa.c (execute_update_addresses_taken): Do not include
32718         variables that cannot possibly be a register in not_reg_needs.
32719         Do not clear TREE_ADDRESSABLE on vars that may not become
32720         registers.
32721         * tree-ssa.c (update_alias_info_1): Include those in the set
32722         of addressable vars.
32724 2009-01-26  Richard Guenther  <rguenther@suse.de>
32726         PR middle-end/38851
32727         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
32728         * tree-ssa-dse.c: Include langhooks.h
32729         (execute_simple_dse): Remove stores with zero size.
32731 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
32733         PR c/38957
32734         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
32735         as PLUS_EXPR.
32737 2009-01-24  Julian Brown  <julian@codesourcery.com>
32739         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
32740         config/arm/linux-atomic.c.
32741         * config/arm/linux-atomic.c: New.
32743 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
32745         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
32746         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
32747         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
32749 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
32751         PR c/38938
32752         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
32753         properly.
32755 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
32757         PR tree-optimization/38953
32758         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
32759         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
32760         (gloog): Split the exit of the scop when the scop exit is a loop exit.
32761         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
32762         changed the CFG.
32764 2009-01-24  Paul Brook  <paul@codesourcery.com>
32766         * config/arm/neon.md (neon_type): Move to arm.md.
32767         (neon_mov<VSTRUCT>): Add neon_type attribute.
32768         * config/arm/arm.md (neon_type): Move to here.
32769         (conds): Add "unconditioal" and use as default for NEON insns.
32771 2009-01-24  Ben Elliston  <bje@au.ibm.com>
32773         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
32774         void *' warning from -Wc++-compat.
32775         * Makefile.in (dominance.o-warn): Remove.
32777 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
32779         PR tree-optimization/38932
32780         * fold-const.c (fold_unary_ignore_overflow): New.
32781         * tree.h (fold_unary_ignore_overflow): Declare.
32782         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
32783         * tree-ssa-sccvn.c (visit_reference_op_load,
32784         simplify_unary_expression): Likewise.
32786 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
32788         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
32789         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
32790         regardless of their type.
32791         * c-common.c (handle_packed_attribute): Don't ignore packed on
32792         bitfields.
32793         * c.opt (Wpacked-bitfield-compat): New warning option.
32794         * stor-layout.c (place_field): Warn if offset of a field changed.
32795         * doc/extend.texi (packed): Mention the ABI change.
32796         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
32797         (Warning Options): Add it to the list.
32799 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
32801         * c-opts.c (c_common_post_options): Fix a typo in comments.
32803 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
32805         PR middle-end/38615
32806         * gimplify.c (gimplify_init_constructor): Fix promotion of const
32807         variables to static.
32808         * doc/invoke.texi (-fmerge-all-constants): Update description.
32810 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
32812         PR target/38931
32813         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
32814         (*movdi_1_rex64): Use type "mmx" for alternative 5.
32816 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
32818         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
32819         a word boundary.
32820         (LOCAL_ALIGNMENT): Similarly.
32822 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32823             Joseph Myers  <joseph@codesourcery.com>
32825         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
32826         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
32827         * config/arm/arm-tune.md: Regenerate.
32828         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
32829         -march=iwmmxt2.
32831 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
32833         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
32834         version number to five.
32836 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
32838         PR c++/38930
32839         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
32840         * c-common.c (set_underlying_type): Likewise.
32841         (is_typedef_decl ): Likewise
32842         * tree.h: Likewise
32843         (set_underlying_type): Likewise.
32844         (is_typedef_type): Likewise.
32846 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32848         PR middle-end/38587
32849         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
32850         crossing setjmps.
32852 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
32854         PR bootstrap/37660
32855         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
32856         (LIBGCC_SPEC):  Don't define.
32857         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
32859 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
32861         PR rtl-optimization/38879
32862         * alias.c (base_alias_check): Unaligned access via AND address can
32863         alias all surrounding object types except those with sizes equal
32864         or wider than the size of unaligned access.
32866 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
32868         PR c++/26693
32869         * c-decl.c (clone_underlying_type): Move this ...
32870         * c-common.c (set_underlying_type): ... here.
32871         Also, make sure the function properly sets TYPE_STUB_DECL() on
32872         the newly created typedef variant type.
32873         (is_typedef_decl ): New entry point.
32874         * tree.h: Added a new member member_types_needing_access_check to
32875         struct tree_decl_non_common.
32876         (set_underlying_type): New entry point.
32877         (is_typedef_type): Likewise.
32879 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
32881         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
32882         Check whether two instructions have memory references that
32883         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
32884         are helper functions for traversing.
32885         * alias.h (insn_alias_sets_confilict_p): New prototypes.
32886         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
32887         not to draw dependency edge for instructions with non-conflicting
32888         alias sets.
32890 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
32892         PR other/38758
32893         * longlong.h: Update copyright years.  Use soft-fp license notice.
32894         Sync __clz_tab declaration with glibc.
32896 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
32898         PR target/30687
32899         * doc/extend.texi (syscall_linkage): New.
32900         (version_id): Modify.
32902 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
32903             Richard Guenther  <rguenther@suse.de>
32905         PR tree-optimization/38747
32906         PR tree-optimization/38748
32907         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
32908         conversion if the base address is an indirect reference and the
32909         aliasing sets could cause issues.
32911 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32913         * common.opt (fgraphite, fgraphite-identity): Add comment for
32914         explaining why these options are not documented.
32916 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
32918         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
32919         gimple_call_lhs is NULL.
32921 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32923         PR target/38868
32924         * emit-rtl.c (adjust_address_1): Make sure memref is never
32925         overwritten.
32927 2009-01-20  Ben Elliston  <bje@au.ibm.com>
32929         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32930         const qualifier from arg parameter. Remove unnecessary cast to char *.
32931         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
32932         const qualifier from arg 2.
32934 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32936         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
32938 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
32940         PR c/38869
32941         * rtl.h (reinit_regs): New prototype.
32942         * regclass.c: Include ira.h.
32943         (reinit_regs): New.
32944         * Makefile.in (regclass.o): Add ira.h.
32945         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
32947 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32949         PR target/38736
32950         * c-common.c (handle_aligned_attribute): Use
32951         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
32952         default alignment value.
32954         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
32956         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
32957         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
32959         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
32960         __BIGGEST_ALIGNMENT__.
32962         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
32964 2009-01-18  Richard Guenther  <rguenther@suse.de>
32966         PR tree-optimization/38819
32967         * tree-flow.h (operation_could_trap_helper_p): Declare.
32968         * tree-eh.c (operation_could_trap_helper_p): Export.
32969         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
32970         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
32971         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
32972         are about to insert a possibly trapping instruction and fail
32973         in this case.
32975 2009-01-18  Andreas Schwab  <schwab@suse.de>
32977         * doc/install.texi (Configuration): Remove obsolete paragraph
32978         about use of --with-gnu-ld with --with-gnu-as.
32980 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
32982         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
32983         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
32984         Follow spelling conventions.
32986 2009-01-18  Ben Elliston  <bje@au.ibm.com>
32988         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
32989         C++ warning about implicit conversion from void * to struct
32990         bitmap_head_def *.
32991         (bitmap_obstack_free): Likewise for bitmap_element *.
32992         * Makefile.in (bitmap.o-warn): Remove.
32994 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32996         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
32998 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
32999             Tobias Grosser  <tobi.grosser@amd.com>
33001         * graphite.c (graphite_trans_scop_block): Do not block single
33002         nested loops.
33004 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
33006         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
33007         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
33008         test with assertion.
33010 2009-01-16  Richard Guenther  <rguenther@suse.de>
33012         PR tree-optimization/38835
33013         PR middle-end/36227
33014         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
33015         and INT + PTR -> (INT)(PTR p+ INT) folding.
33016         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
33018 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
33020         PR target/38554
33021         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
33022         the subreg from a lowpart subreg if it is also casting the value.
33024 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
33025             Tobias Grosser  <tobi.grosser@amd.com>
33027         * graphite.c (compare_prefix_loops): New.
33028         (build_scop_canonical_schedules): Rewritten.
33029         (graphite_transform_loops): Move build_scop_canonical_schedules
33030         after build_scop_iteration_domain.
33032 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
33033             Tobias Grosser  <tobi.grosser@amd.com>
33035         * graphite.c (add_conditions_to_domain): Add the loops to
33036         the dimension of the iteration domain.  Do copy the domain
33037         only when it exists.
33038         (build_scop_conditions_1): Do not call add_conditions_to_domain.
33039         (add_conditions_to_constraints): New.
33040         (can_generate_code_stmt, can_generate_code): Removed.
33041         (gloog): Do not call can_generate_code.
33042         (graphite_transform_loops): Call add_conditions_to_constraints
33043         after building the iteration domain.
33045 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
33047         PR tree-optimization/38789
33048         * tree-ssa-threadedge.c
33049         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
33050         __builtin_constant_p.
33052 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
33054         * dce.c (delete_unmarked_insns): Reversed the order that insns are
33055         examined before deleting them.
33057 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
33059         * function.c (aggregate_value_p): Correctly extract the function
33060         type from CALL_EXPR_FN lookup.
33062 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
33064         * config/picochip/picochip.c (picochip_override_options): Revert
33065         CFI asm flag disable commited previously.
33067 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
33068             Tobias Grosser  <tobi.grosser@amd.com>
33069             Jan Sjodin  <jan.sjodin@amd.com>
33071         * graphite.c (scan_tree_for_params): On substractions negate
33072         all the coefficients of the term.
33073         (clast_to_gcc_expression_red): New.  Handle reduction expressions
33074         of more than two operands.
33075         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
33076         (get_vdef_before_scop): Handle also the case of default definitions.
33078 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
33080         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
33081         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
33082         Also use them when walking CALL_INSN_FUNCTION_USAGE.
33084 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
33085             Joey Ye  <joey.ye@intel.com>
33087         PR middle-end/37843
33088         * cfgexpand.c (expand_stack_alignment): Don't update stack
33089         boundary nor check incoming stack boundary here.
33090         (gimple_expand_cfg): Update stack boundary and check incoming
33091         stack boundary here.
33093 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
33095         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
33097 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
33099         PR rtl-optimization/38245
33100         * calls.c (expand_call): Add stack arguments to
33101         CALL_INSN_FUNCTION_USAGE even for pure calls (when
33102         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
33103         in regs and partially in memory or BLKmode arguments.
33104         (emit_library_call_value_1): Add stack arguments to
33105         CALL_INSN_FUNCTION_USAGE even for pure calls (when
33106         ACCUMULATE_OUTGOING_ARGS).
33107         * dce.c: Include tm_p.h.
33108         (find_call_stack_args): New function.
33109         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
33110         argument.
33111         (mark_insn): Call find_call_stack_args for CALL_Ps.
33112         (prescan_insns_for_dce): Walk insns backwards in bb rather than
33113         forwards.  Allocate and free arg_stores bitmap if needed, pass it
33114         down to deletable_insn_p, don't mark stores set in arg_stores
33115         bitmap, clear the bitmap at the beginning of each bb.
33116         * Makefile.in (dce.o): Depend on $(TM_P_H).
33118 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
33120         PR target/22599
33121         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
33122         to make sure the insn is a conditional test (bug 22599).  Reformat a
33123         few long lines.
33125 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
33127         PR middle-end/38431
33128         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
33129         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
33130         (gloog): Do not call cleanup_tree_cfg.
33131         (graphite_transform_loops): Call cleanup_tree_cfg after all
33132         scops have been code generated.
33134 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
33135         * doc/gty.texi (Invoking the garbage collector): Added new node
33136         and section documenting ggc_collect.
33138 2009-01-14  Richard Guenther  <rguenther@suse.de>
33140         PR tree-optimization/38826
33141         PR middle-end/38477
33142         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
33143         initialization notes only if we actually emitted a warning.
33144         (intra_create_variable_infos): Add constraints for a result decl
33145         that is passed by hidden reference.
33146         (build_pred_graph): Mark all related variables non-direct on
33147         address-taking.
33149 2009-01-14  Nick Clifton  <nickc@redhat.com>
33151         * ira-conflicts.c: Include addresses.h for the definition of
33152         base_reg_class.
33153         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
33154         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
33156 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
33158         PR target/38811
33159         * Makefile.in (ira-lives.o): Add except.h.
33161         * ira-lives.c: Include except.h.
33162         (process_bb_node_lives): Process can_throw_internal.
33164 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
33166         PR rtl-optimization/38774
33167         * combine.c (simplify_set): When undoing cc_use change, don't do
33168         PUT_CODE on the newly created comparison, but instead put back the
33169         old comparison.
33171 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
33173         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
33174         values.  Remove duplicate arm8 entry.
33176 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33178         PR tree-optimization/38786
33179         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
33180         the SSA_NAME case of expand_scalar_variables_expr.
33181         Set the type of an expression to the type of its assign statement.
33182         (expand_scalar_variables_expr): Also gather the scalar computation
33183         used to index the memory access.  Do not pass loop_p.
33184         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
33185         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
33186         the gimple_stmt_iterator where it inserts new code.
33187         Do not pass loop_p.
33188         (copy_bb_and_scalar_dependences): Do not pass loop_p.
33189         (translate_clast): Update call to copy_bb_and_scalar_dependences.
33191 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
33193         * graphite.h (debug_value): Removed.
33194         * graphite.c (debug_value): Removed.
33196 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33198         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
33199         ldrd/strd with two 32-bit instructions.
33201 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
33203         * config/arm/arm.c (struct processors): Pass for speed down into
33204         cost helper functions.
33205         (const_ok_for_op): Handle COMPARE and inequality nodes.
33206         (arm_rtx_costs_1): Rewrite.
33207         (arm_size_rtx_costs): Update prototype.
33208         (arm_rtx_costs): Pass speed down to helper functions.
33209         (arm_slowmul_rtx_costs): Rework cost calculations.
33210         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
33211         (arm_9e_rtx_costs): Likewise.
33213 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
33215         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
33216         relocations of local symbols wider than UNITS_PER_WORD are not valid.
33217         (alpha_legitimize_address): Do not split local symbols wider than
33218         UNITS_PER_WORD into HIGH/LO_SUM parts.
33220 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
33222         PR bootstrap/38580
33223         * gcc.c (process_command): Replace call to execvp with calls
33224         to pex_one and exit.
33226 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
33228         PR target/29141
33229         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
33230         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
33231         variant for devices with 3-byte PC.
33232         (__tablejump_elpm__): New.
33234 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33236         PR c/32041
33237         * c-parser.c (c_parser_postfix_expression): Allow `->' in
33238         offsetof member-designator, handle it as `[0].'.
33240 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33242         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
33243         function when not using named sections on targets with named sections
33244         if branch distance is less than 262132.
33246 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
33248         * combine.c (combine_instructions):  Recompute
33249         optimize_this_for_speed_p  for each BB in the main combine loop.
33251 2009-01-12  Tomas Bily  <tbily@suse.cz>
33253         PR middlend/38385
33254         * tree-loop-distribution.c (prop_phis): New function.
33255         (generate_builtin): Call prop_phis.
33257 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
33259         PR tree-optimization/38807
33260         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
33261         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
33263 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
33265         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
33266         subreg of op0 to the original op0.
33268 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
33270         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
33272 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
33274         PR debug/7055
33275         * mips-tfile.c (parse_def): Fix parsing of def strings
33276         starting with digits.
33278 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
33280         PR target/38695
33281         * config/arm/arm.c (arm_is_long_call_p): Don't call
33282         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
33284 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
33286         * regrename.c (regrename_optimize): Fix dumping.
33287         (find_oldest_value_reg): Preserve REG_POINTER.
33288         (copy_hardreg_forward_1): Likewise.
33290 2009-01-09  Diego Novillo  <dnovillo@google.com>
33292         * gimple.h (struct gimple_statement_base) <uid>: Document
33293         the restrictions on its use.
33294         (gimple_uid): Tidy.
33295         (gimple_set_uid): Tidy.
33297 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33299         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
33300         zero guard even if align_bytes != 0 and count is smaller than
33301         size_needed.
33303 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
33305         PR rtl-optimization/38495
33306         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
33307         (add_range_and_copies_from_move_list): Print all added ranges.
33308         Add ranges to memory optimized destination.
33310 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33312         PR target/38686
33313         PR target/38708
33314         * config/i386/i386.c (override_options): Reject
33315         -mstringop-strategy=rep_8byte with -m32.
33316         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
33317         to 1.  Do count comparison against epilogue_size_needed at compile
33318         time even when count_exp was constant forced into register.  For
33319         size_needed don't jump to epilogue, instead just avoid aligning
33320         and invoke the body algorithm.  If need_zero_guard, add zero guard
33321         even if count is non-zero, but smaller than size_needed + number of
33322         bytes that could be stored for alignment.
33323         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
33324         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
33325         but smaller than size_needed + number of bytes that could be stored
33326         for alignment.  Compare size_needed with epilogue_size_needed instead
33327         of desired_align - align, don't adjust size_needed, pass
33328         epilogue_size_needed to the epilogue expanders.
33330         PR c/35742
33331         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
33333 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33335         * pa.c (last_address): Change to unsigned.
33336         (update_total_code_bytes): Change argument to unsigned.  Don't
33337         check if insn addresses are set.
33338         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
33339         addresses are not set.
33340         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
33342 2009-01-09  Nick Clifton  <nickc@redhat.com>
33344         * config/sh/symbian.c: Replace uses of DECL_INLINE with
33345         DECL_DECLARED_INLINE_P.
33347 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
33349         PR middle-end/38347
33350         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
33351         GET_MODE (op0) in operand_subword_force calls.
33353         PR middle-end/38771
33354         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
33355         fold_convert arg0 operands to TREE_TYPE (op0) first.
33357 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
33359         * params.def (ira-max-conflict-table-size): Decrease default value
33360         to 1000.
33362 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
33364         PR tree-optimization/37031
33365         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
33366         on parameter_set.
33367         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
33368         allocate it using gc instead of heap, use VEC_quick_push instead of
33369         VEC_safe_push.
33370         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
33371         instead of heap, use VEC_quick_push instead of VEC_safe_push.
33372         * tree-data-ref.h (struct access_matrix): Change matrix to gc
33373         allocated vector from heap allocated.
33374         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
33375         * tree-loop-linear.c (linear_transform_loops): Allocate nest
33376         vector only after perfect_loop_nest_depth call.
33378 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
33379             Jan Sjodin  <jan.sjodin@amd.com>
33381         PR tree-optimization/38559
33382         * graphite.c (debug_value, copy_constraint,
33383         swap_constraint_variables, scale_constraint_variable, ): New.
33384         (get_lower_bound, get_upper_bound): Removed.
33385         (graphite_trans_bb_strip_mine): Clean up this code that works
33386         only for constant number of iterations.  Fully copy upper and
33387         lower bound constraints, not only the constant part of them.
33388         * graphite.h (debug_value): Declared.
33390 2009-01-08  Ira Rosen  <irar@il.ibm.com>
33392         PR tree-optimization/37194
33393         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
33394         Don't add the cost of cost model guard in prologue to scalar
33395         outside cost in case of known number of iterations.
33397 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
33398             Alan Modra  <amodra@bigpond.net.au>
33400         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
33401         non-word-aligned REG+CONST addressing.
33403 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33405         PR target/38706
33406         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
33407         free_after_compilation when outputting a thunk.
33408         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
33409         Do not call free_after_compilation here.
33411 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
33413         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
33414         (ix86_valid_target_attribute_inner_p): Ditto.
33416 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
33418         PR tree-optimization/38492
33419         PR tree-optimization/38498
33420         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
33421         * tree-chrec.h (scev_is_linear_expression): Declared.
33422         * graphite.c (graphite_cannot_represent_loop_niter): New.
33423         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
33424         (graphite_loop_normal_form): Use gcc_assert.
33425         (scan_tree_for_params): Use CASE_CONVERT.
33426         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
33427         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
33428         Use gcc_assert.  Discard scops that contain unhandled cases.
33429         (build_scop_conditions): Return a boolean status for unhandled cases.
33430         (strip_mine_profitable_p): Print the loop number, not its depth.
33431         (is_interchange_valid): Pass the depth of the loop nest, don't
33432         recompute it wrongly.
33433         (graphite_trans_bb_block): Same.
33434         (graphite_trans_bb_block): Print tentative of loop blocking.
33435         (graphite_trans_scop_block): Do not print that the loop has been
33436         blocked.
33437         (graphite_transform_loops): Do not handle scops that contain condition
33438         scalar phi nodes.
33440 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
33442         AVX Programming Reference (December, 2008)
33443         * config/i386/avxintrin.h (_mm256_stream_si256): New.
33444         (_mm256_stream_pd): Likewise.
33445         (_mm256_stream_ps): Likewise.
33447         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
33448         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
33449         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
33450         (bdesc_special_args): Add __builtin_ia32_movntdq256,
33451         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
33452         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
33453         (ix86_expand_special_args_builtin): Likewise.
33455         * config/i386/sse.md (AVXMODEDI): New.
33456         (avx_movnt<mode>): Likewise.
33457         (avx_movnt<mode>): Likewise.
33458         (<sse>_movnt<mode>): Remove AVX support.
33459         (sse2_movntv2di): Likewise.
33461 2009-01-07  Richard Guenther  <rguenther@suse.de>
33463         PR middle-end/38751
33464         * fold-const.c (extract_muldiv): Remove obsolete comment.
33465         (fold_plusminus_mult_expr): Undo MINUS_EXPR
33466         to PLUS_EXPR canonicalization for the canonicalization.
33468 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
33470         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
33471         hosted cross-compilers generating less efficient code.
33473 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33475         * function.h (rtl_data): Add a dbr_scheduled_p field.
33476         * reorg.c (dbr_schedule): Set it.
33477         (gate_handle_delay_slots): Check it.
33478         * config/mips/mips.c (mips_base_delayed_branch): Delete.
33479         (mips_reorg): Check flag_delayed_branch instead of
33480         mips_base_delayed_branch.
33481         (mips_override_options): Don't set mips_base_delayed_branch
33482         or flag_delayed_branch.
33484 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
33486         PR rtl-optimization/38426.
33487         * ira.c (ira): Set current_function_is_leaf earlier.
33489 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
33491         PR rtl-optimization/38722
33492         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
33493         too early, only set a flag and modify after last possible
33494         undo_all point.
33496 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
33498         PR c/34252
33499         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
33500         * real.c (decimal_single_format): Correct values of emin and emax.
33501         (decimal_double_format): Ditto.
33502         (decimal_quad_format): Ditto.
33503         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
33504         computation of DECnn_MIN and DECnn_MAX for corrected values of
33505         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
33506         __DECnn_MIN__, and adjust its computation for the corrected value
33507         of emin.
33509 2009-01-06  Jan Hubicka  <jh@suse.cz>
33511         PR target/38744
33512         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
33514 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
33516         * doc/contrib.texi (Contributors): Slightly adjust the end note.
33517         Add Robert Clark to the list of testers.
33519 2009-01-06  Jan Hubicka  <jh@suse.cz>
33520             Kai Tietz  <kai.tietz@onevision.com>
33522         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
33523         * config/i386/i386.c (ix86_expand_call): Add clobbers.
33525 2009-01-06  Jan Hubicka  <jh@suse.cz>
33526             Kai Tietz  <kai.tietz@onevision.com>
33528         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
33529         for w64 ABI.
33530         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
33531         (ix86_nsaved_regs): Count only general purpose regs.
33532         (ix86_nsaved_sseregs): New.
33533         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
33534         to 16 for w64; compute padding and size of sse reg save area.
33535         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
33536         general purpose regs.
33537         (ix86_emit_save_sse_regs_using_mov): New.
33538         (ix86_expand_prologue): Save SSE regs if needed.
33539         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
33540         (ix86_emit_restore_sse_regs_using_mov): New.
33541         (ix86_expand_epilogue): Save SSE regs if needed.
33543 2009-01-06  Jan Hubicka  <jh@suse.cz>
33544             Kai Tietz  <kai.tietz@onevision.com>
33546         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
33547         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
33548         functions when accumulate outgoing args is off.
33550 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33552         PR bootstrap/38742
33553         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
33554         before using pseudos_have_intersected_live_ranges_p.
33556         * ira-int.h (ira_assert): Always define.
33558 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
33560         AVX Programming Reference (December, 2008)
33561         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
33562         (_mm256_permute2_pd): Likewise.
33563         (_mm_permute2_ps): Likewise.
33564         (_mm256_permute2_ps): Likewise.
33565         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
33566         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
33568         * config/i386/i386.c (ix86_builtins): Remove
33569         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
33570         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
33571         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
33572         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
33573         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
33574         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
33575         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
33576         __builtin_ia32_vpermil2ps256.
33577         (ix86_init_mmx_sse_builtins): Updated.
33578         (ix86_expand_args_builtin): Likewise.
33580 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33582         * pa.c (output_call): Relocate non-jump insns in the delay slot of
33583         long absolute calls when generating PA 2.0 code.
33585 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
33587         PR rtl-optimization/38583
33588         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
33590         * params.def (ira-max-conflict-table-size): New.
33592         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
33594         * ira.h (ira_conflicts_p): New external definition.
33596         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
33597         table.  Report this.  Return result of building.
33598         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
33599         building conflict table.
33601         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
33602         (ira_color): Use ira_conflicts_p.
33604         * global.c: Include ira.h.
33605         (pseudo_for_reload_consideration_p, build_insn_chain): Use
33606         ira_conflicts_p.
33608         * Makefile.in (global.o): Add ira.h.
33610         * ira-build.c (mark_all_loops_for_removal,
33611         propagate_some_info_from_allocno): New.
33612         (remove_unnecessary_allocnos): Call
33613         propagate_some_info_from_allocno.
33614         (remove_low_level_allocnos): New.
33615         (remove_unnecessary_regions): Add parameter.  Call
33616         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
33617         parameter to remove_unnecessary_regions.
33618         (ira_build): Remove all regions but root if the conflict table was
33619         not built.  Update conflict hard regs for allocnos crossing calls.
33621         * ira.c (ira_conflicts_p): New global.
33622         (ira): Define and use ira_conflicts_p.
33624         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33625         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
33626         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
33628 2009-01-06  Ben Elliston  <bje@au.ibm.com>
33630         * gengtype-lex.l (YY_NO_INPUT): Define.
33632 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33634         PR c/34911
33635         * c-common.c (handle_vector_size_attribute): Also reject
33636         BOOLEAN_TYPE types.
33638 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
33640         PR tree-optimization/38492
33641         * graphite.c (rename_map_elt, debug_rename_elt,
33642         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
33643         rename_map_elt_info, eq_rename_map_elts,
33644         get_new_name_from_old_name, bb_in_sese_p): Moved around.
33645         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
33646         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
33647         (sese_build_livein_liveouts): New.
33648         (new_sese, free_sese): New.
33649         (new_scop): Call new_sese.
33650         (free_scop): Call free_sese.
33651         (rename_variables_from_edge, rename_phis_end_scop): Removed.
33652         (register_old_new_names): Renamed register_old_and_new_names.
33653         (register_scop_liveout_renames, add_loop_exit_phis,
33654         insert_loop_close_phis, struct igp,
33655         default_liveout_before_guard, add_guard_exit_phis,
33656         insert_guard_phis, copy_renames): New.
33657         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
33658         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
33659         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
33660         (scop_adjust_phis_for_liveouts): New.
33661         (gloog): Call scop_adjust_phis_for_liveouts.
33663         * graphite.h (struct sese): Documented.  Added fields liveout,
33664         num_ver and livein.
33665         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
33666         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
33667         (struct scop): Added field liveout_renames.
33668         (SCOP_LIVEOUT_RENAMES): New.
33670 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33672         PR tree-optimization/38510
33673         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
33674         (translate_clast): Call recompute_all_dominators before
33675         graphite_verify.
33676         (gloog): Call recompute_all_dominators before graphite_verify.
33678 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
33679             Jan Sjodin  <jan.sjodin@amd.com>
33681         PR tree-optimization/38500
33682         * graphite.c (create_sese_edges): Call fix_loop_structure after
33683         splitting blocks.
33685 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
33687         * config.gcc: Add m32r*-*-rtems*.
33688         * config/m32r/rtems.h: New file.
33690 2009-01-05  Ben Elliston  <bje@au.ibm.com>
33692         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
33693         (.po.pox): Likewise.
33694         (po/gcc.pot): Likewise.
33696 2009-01-04  David S. Miller  <davem@davemloft.net>
33698         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
33699         (STARTING_FRAME_OFFSET): Always set to zero.
33701 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33703         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
33704         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
33705         fixed-point types, and vectors of the same.
33707 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
33709         * config/mips/sync.md (*mb_barrier): Rename to...
33710         (*memory_barrier): ...this.
33712 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
33714         * doc/extend.texi (Function Attributes): Move @cindex after @item
33715         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
33716         and put in alphabetical order. Fix 'target' name and put in order.
33717         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
33718         typos.
33720 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
33722         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
33723         (memory_barrier): Expand as unspec instead of unspec_volatile.
33724         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33725         (*memory_barrier): Define as unspec instead of unspec_volatile.
33726         Use (match_dup 0) as input operand.
33728         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
33729         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
33730         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
33731         scratch register.  Remove operand 1.
33732         (*stbar): Define as unspec instead of unspec_volatile.
33733         Use (match_dup 0) as input operand, remove (const_int 8).
33734         (*membar): Define as unspec instead of unspec_volatile.
33735         Use (match_dup 0) as input operand, remove input operand 2.
33737         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
33738         (memory_barrier): Expand as unspec instead of unspec_volatile.
33739         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33740         (*memory_barrier): Define as unspec instead of unspec_volatile.
33741         Use (match_dup 0) as input operand.
33743         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
33744         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33745         Set volatile flag on operand 0.
33746         (*memory_barrier): New insn pattern.
33748         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
33749         insn operands.
33750         (*memory_barrier): Use (match_dup 0) as input operand.
33752         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
33753         Remove mem:BLK from insn operands.  Use Pmode scratch register.
33754         Set volatile flag on operand 0.
33755         (*mb_internal): New insn pattern.
33757         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
33759 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33761         PR middle-end/38586
33762         * function.c (struct temp_slot): Move to the section of the file
33763         that deals with temp slots.  Remove field 'address'.
33764         (temp_slot_address_table): New hash table of address -> temp slot.
33765         (struct temp_slot_address_entry): New struct, items for the table.
33766         (temp_slot_address_compute_hash, temp_slot_address_hash,
33767         temp_slot_address_eq, insert_temp_slot_address): Support functions
33768         for the new table.
33769         (find_temp_slot_from_address): Rewrite to use the new hash table.
33770         (remove_unused_temp_slot_addresses): Remove addresses of temp
33771         slots that have been made available.
33772         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
33773         worker function for remove_unused_temp_slot_addresses.
33774         (assign_stack_temp_for_type): Don't clear the temp slot address list.
33775         Add the temp slot address to the address -> temp slot map.
33776         (update_temp_slot_address): Update via insert_temp_slot_address.
33777         (free_temp_slots): Call remove_unused_temp_slot_addresses.
33778         (pop_temp_slots): Likewise.
33779         (init_temp_slots): Allocate the address -> temp slot map, or empty
33780         the map if it is already allocated.
33781         (prepare_function_start): Initialize temp slot processing.
33783 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
33785         PR middle-end/38584
33786         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
33787         Calculate the size of all stack vars assuming no packing of stack
33788         vars will happen, replacing a quadratic algorithm with a linear one.
33790 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33792         PR target/38707
33793         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
33794         can't be used.
33796 2009-01-03  Diego Novillo  <dnovillo@google.com>
33798         * doc/contrib.texi: Update contributions.
33800 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
33802         PR c++/38705
33803         * builtins.c (fold_builtin_memory_op): Give up if either operand
33804         is volatile.  Set srctype or desttype to non-qualified version
33805         of the other type.
33807         PR c/38700
33808         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
33809         and FUNCTION_DECLs.
33811 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
33813         PR rtl-optimization/35805
33814         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
33815         problem if fast dce is able to remove any instructions.
33816         * dce.c (dce_process_block): Fix dump message.
33818 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
33820         PR 33649
33821         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
33823 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
33825         PR middle-end/38690
33826         * tree-flow.h (op_code_prio, op_prio): New prototypes.
33827         * tree-pretty-print.c (op_code_prio): New function.
33828         (op_prio): No longer static.  Use op_code_prio.
33829         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
33830         Use op_prio and op_code_prio to determine if () should be
33831         printed around operand(s) or not.
33833         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
33834         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
33835         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
33836         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
33837         pp_character instead of pp_string for single letter printing.
33839 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33841         * doc/extend.texi: Fix '#pragma GCC option' typo.
33843 2009-01-02  Richard Guenther  <rguenther@suse.de>
33845         * doc/install.texi (--enable-checking): Mention different
33846         default for stage1.
33847         (--enable-stage1-checking): Document.
33849 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
33851         PR middle-end/30142
33852         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
33853         case to be an error.
33855 2009-01-02  Ben Elliston  <bje@au.ibm.com>
33857         * config/fp-bit.h (pack_d): Constify argument.
33858         * config/fp-bit.c (makenan): Constify return type. Remove casts.
33859         (isnan): Constify argument.
33860         (isinf): Likewise.
33861         (iszero): Likewise.
33862         (pack_d): Likewise.
33863         (_fpadd_parts): Constify return type.
33864         (_fpmul_parts): Likewise.
33865         (_fpdiv_parts): Likewise.
33867 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
33869         PR c/36489
33870         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
33871         warn about overwriting initializer with side-effects or
33872         -Woverride-init if !IMPLICIT.
33873         (output_init_element): Likewise.  Pass IMPLICIT down to
33874         add_pending_init.
33875         (process_init_element): Add IMPLICIT argument.  Pass it down
33876         to output_init_element.
33877         (push_init_element, pop_init_level, set_designator): Adjust
33878         process_init_element callers.
33879         (set_nonincremental_init, set_nonincremental_init_from_string):
33880         Adjust add_pending_init callers.
33881         (output_pending_init_elements): Adjust output_init_element callers.
33882         * c-tree.h (process_init_element): Adjust prototype.
33883         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
33884         process_init_element callers.
33887 Copyright (C) 2009 Free Software Foundation, Inc.
33889 Copying and distribution of this file, with or without modification,
33890 are permitted in any medium without royalty provided the copyright
33891 notice and this notice are preserved.